1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4620],{26121:function(e,t,r){"use strict";r.d(t,{Sg:function(){return o},zt:function(){return s}});var n=r(71803);r(29280);var i=r(52696);let a=new(r(58179)).Yd("abstract-provider/5.8.0");class o extends i.dk{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class s{constructor(){a.checkAbstract(new.target,s),(0,i.zG)(this,"_isProvider",!0)}getFeeData(){var e,t,r,a;return e=this,t=void 0,r=void 0,a=function*(){let{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,a=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=n.O$.from("1500000000"),a=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:a,maxPriorityFeePerGas:o,gasPrice:t}},new(r||(r=Promise))(function(n,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((a=a.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},88091:function(e,t,r){"use strict";r.d(t,{E:function(){return c},b:function(){return u}});var n=r(52696),i=r(58179),a=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let o=new i.Yd("abstract-signer/5.8.0"),s=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[i.Yd.errors.INSUFFICIENT_FUNDS,i.Yd.errors.NONCE_EXPIRED,i.Yd.errors.REPLACEMENT_UNDERPRICED];class c{constructor(){o.checkAbstract(new.target,c),(0,n.zG)(this,"_isSigner",!0)}getBalance(e){return a(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return a(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return a(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return a(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return a(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return a(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return a(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return a(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return a(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===s.indexOf(t)&&o.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,n.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&o.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return a(this,void 0,void 0,function*(){let t=yield(0,n.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>a(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&o.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?o.throwArgumentError("eip-1559 transaction do n
1ot support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&o.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&o.throwError("network does not support EIP-1559",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):o.throwError("failed to get consistent fee data",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return o.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&o.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,n.mE)(t)})}_checkProvider(e){this.provider||o.throwError("missing provider",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class u extends c{constructor(e,t){super(),(0,n.zG)(this,"address",e),(0,n.zG)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{o.throwError(e,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new u(this.address,e)}}},76621:function(e,t,r){"use strict";r.d(t,{Kn:function(){return f},CR:function(){return m},hB:function(){return b},vU:function(){return h},UJ:function(){return p}});var n=r(29280),i=r(71803),a=r(34185),o=r(37121);let s=new(r(58179)).Yd("address/5.8.0");function l(e){(0,n.A7)(e,20)||s.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.lE)((0,a.w)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);let u=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=u;){let e=t.substring(0,u);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function f(e){let t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==d(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,i.g$)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function p(e){try{return f(e),!0}catch(e){}return!1}function h(e){let t=(0,i.t2)(f(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+d("XE00"+t)+t}function m(e){let t=null;try{t=f(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}let r=(0,n.G1)((0,n.lE)(i.O$.from(e.nonce).toHexString()));return f((0,n.p3)((0,a.w)((0,o.encode)([t,r])),12))}function b(e,t,r){return 32!==(0,n.E1)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.E1)(r)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),f((0,n.p3)((0,a.w)((0,n.zo)(["0xff",f(e),t,r])),12))}},97393:function(e,t,r){"use strict";r.d(t,{J:function(){return i},c:function(){return a}});var n=r(29280);function i(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,n.lE)(t)}function a(e){e=(0,n.lE)(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}},66574:function(e,t,r){"use strict";r.d(t,{eU:function(){return o}});var n=r(29280),i=r(52696);class a{constructor(e){(0,i.zG)(this,"alphabet",e),(0,i.zG)(this,"base",e.length),(0,i.zG)(this,"_alphabetMap",{}),(0,i.zG)(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,n.lE)(e);if(0===t.length)return"";let r=[0];for(let e=0;e<t.length;++e){let n=t[e];for(let e=0;e<r.length;++e)n+=r[e]<<8,r[e]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let i="";for(let e=0;0===t[e]&&e<t.length-1;++e)i+=this._leader;for(let e=r.length-1;e>=0;--e)i+=this.alphabet[r[e]];return i}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,n.lE)(new Uint8Array(t.reverse()))}}new a("abcdefghijklmnopqrstuvwxyz234567");let o=new a("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},75561:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n="bignumber/5.8.0"},71803:function(e,t,r){"use strict";r.d(t,{O$:function(){return p},Zm:function(){return d},g$:function(){return g},t2:function(){return v}});var n=r(72925),i=r.n(n),a=r(29280),o=r(58179),s=r(75561),l=i().BN;let c=new o.Yd(s.i),u={};function d(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,a.A7)(e)||"bigint"==typeof e||(0,a._t)(e))}let f=!1;class p{constructor(e,t){e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(b(this).fromTwos(e))}toTwos(e){return m(b(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return m(b(this).add(b(e)))}sub(e){return m(b(this).sub(b(e)))}div(e){return p.from(e).isZero()&&y("division-by-zero","div"),m(b(this).div(b(e)))}mul(e){return m(b(this).mul(b(e)))}mod(e){let t=b(e);return t.isNeg()&&y("division-by-zero","mod"),m(b(this).umod(t))}pow(e){let t=b(e);return t.isNeg()&&y("negative-power","pow"),m(b(this).pow(t))}and(e){let t=b(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),m(b(this).and(t))}or(e){let t=b(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),m(b(this).or(t))}xor(e){let t=b(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),m(b(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),m(b(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),m(b(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),m(b(this).shrn(e))}eq(e){return b(this).eq(b(e))}lt(e){return b(this).lt(b(e))}lte(e){return b(this).lte(b(e))}gt(e){return b(this).gt(b(e))}gte(e){return b(this).gte(b(e))}isNegative(){return"-"===this._hex[0]}isZero(){return b(this).isZero()}toNumber(){try{return b(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>
10&&(10===arguments[0]?f||(f=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),b(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(u,h(e)):e.match(/^-?[0-9]+$/)?new p(u,h(new l(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),p.from(String(e));if("bigint"==typeof e)return p.from(e.toString());if((0,a._t)(e))return p.from((0,a.Dv)(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,a.A7)(t)||"-"===t[0]&&(0,a.A7)(t.substring(1))))return p.from(t)}}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function h(e){if("string"!=typeof e)return h(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=h(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return p.from(h(e))}function b(e){let t=p.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),c.throwError(e,o.Yd.errors.NUMERIC_FAULT,n)}function g(e){return new l(e,36).toString(16)}function v(e){return new l(e,16).toString(36)}},29280:function(e,t,r){"use strict";r.d(t,{lE:function(){return c},zo:function(){return u},xs:function(){return g},E1:function(){return b},p3:function(){return y},Ou:function(){return w},$P:function(){return v},$m:function(){return E},Dv:function(){return m},_t:function(){return l},Zq:function(){return o},A7:function(){return p},gV:function(){return A},N:function(){return x},G1:function(){return d},Bu:function(){return f}});let n=new(r(58179)).Yd("bytes/5.8.0");function i(e){return!!e.toHexString}function a(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return p(e)&&!(e.length%2)||l(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!s(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!s(r)||r<0||r>=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),a(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),p(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return a(new Uint8Array(i))}return l(e)?a(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function u(e){let t=e.map(e=>c(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),a(r)}function d(e){let t=c(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function f(e,t){(e=c(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),a(r)}function p(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let h="0123456789abcdef";function m(e,t){if(t||(t={}
1),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=h[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=h[(240&n)>>4]+h[15&n]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function b(e){if("string"!=typeof e)e=m(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function y(e,t,r){return("string"!=typeof e?e=m(e):(!p(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function g(e){let t="0x";return e.forEach(e=>{t+=m(e).substring(2)}),t}function v(e){let t=w(m(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!=typeof e&&(e=m(e)),p(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function E(e,t){for("string"!=typeof e?e=m(e):p(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){let r=c(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=m(r.slice(0,32)),t.s=m(r.slice(32,64))):65===r.length?(t.r=m(r.slice(0,32)),t.s=m(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=m(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=f(c(t._vs),32);t._vs=m(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let a=m(r);null==t.s?t.s=a:t.s!==a&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=E(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=E(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);let r=c(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=m(r);t._vs&&(p(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=E(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function A(e){return m(u([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},83293:function(e,t,r){"use strict";r.d(t,{d:function(){return n}});let n="0x0000000000000000000000000000000000000000"},22403:function(e,t,r){"use strict";r.d(t,{$B:function(){return u},Bz:function(){return c},Ce:function(){return l},PS:function(){return d},Py:function(){return s},_Y:function(){return a},fh:function(){return o},tL:function(){return i}});var n=r(71803);let i=n.O$.from(-1),a=n.O$.from(0),o=n.O$.from(1),s=n.O$.from(2),l=n.O$.from("1000000000000000000"),c=n.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),u=n.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),d=n.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},89126:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});let n="0x0000000000000000000000000000000000000000000000000000000000000000"},34217:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n="hash/5.8.0"},70578:function(e,t,r){"use strict";r.d(t,{id:function(){return a}});var n=r(34185),i=r(84122);function a(e){return(0,n.w)((0,i.Y0)(e))}},76733:function(e,t,r){"use strict";let n,i;r.d(t,{Kn:function(){return _},r1:function(){return C},VM:function(){return T}});var a,o=r(29280),s=r(84122),l=r(34185),c=r(58179),u=r(34217);function d(e,t){null==t&&(t=1);let r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function f(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function p(e,t){let r=f(e(),e),n=e(),i=f(n,e),a=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<a[e];t++)r.push(i[e]+t);return t?r.map(e=>t[e]):r}function h(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,a=0;i<e;i++){var n;r[i]=a+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}let m=(a=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,a=[0,1];for(let e=1;e<n;e++)a.push(i+=r());
1let o=r(),s=t;t+=o;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|u();let f=[],p=0,h=2147483648;for(;;){let e=Math.floor(((d-p+1)*i-1)/h),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<a[n]?r=n:t=n}if(0==t)break;f.push(t);let o=p+Math.floor(h*a[t]/i),s=p+Math.floor(h*a[t+1]/i)-1;for(;((o^s)&1073741824)==0;)d=d<<1&2147483647|u(),o=o<<1&2147483647,s=s<<1&2147483647|1;for(;o&~s&536870912;)d=1073741824&d|d<<1&1073741823|u(),o=o<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=o,h=1+s-o}let m=n-4;return f.map(t=>{switch(t-m){case 3:return m+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return m+256+(e[s++]<<8|e[s++]);case 1:return m+e[s++];default:return t-1}})}((0,r(97393).J)
vendor: 14,758 bytes, line 1
1("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==")),
1i=0,()=>a[i++]),b=new Set(p(m)),y=new Set(p(m)),g=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return d(h(i.length,1+e,t).map((e,t)=>{let a=e[0],o=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[a+t*r,o.map(e=>e+i)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[n[0]]=n[1]}return t}(d(t))}(m),v=(n=p(m).sort((e,t)=>e-t),function e(){let t=[];for(;;){let r=p(m,n);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((e,t)=>
1t.set.size-e.set.size);let r=m();return{branches:t,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function w(e){return e.filter(e=>65039!=e)}function E(e){for(let t of e.split(".")){let e=(0,s.XL)(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}let x=new c.Yd(u.i),A=new Uint8Array(32);function k(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function P(e){let t=(0,s.Y0)(E(function(e,t){let r=(0,s.XL)(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i;let a=v,o=[],s=e.length;for(;s;){let t=e[--s];if(!(a=null===(r=a.branches.find(e=>e.set.has(t)))||void 0===r?void 0:r.node))break;if(a.save)i=t;else if(a.check&&t===i)break;o.push(t),a.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),a.valid&&(n=o.slice(),2==a.valid&&n.splice(1,1),e.length=s)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(b.has(i)){n.push(i);continue}if(y.has(i))continue;let a=g[i];if(a){n.push(...a);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return E(String.fromCodePoint(...n).normalize("NFC"))}(e,w))),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(k(t.slice(n,e))),n=e+1);if(n>=t.length)throw Error("invalid ENS name; empty component");return r.push(k(t.slice(n))),r}function C(e){try{return 0!==P(e).length}catch(e){}return!1}function T(e){"string"!=typeof e&&x.throwArgumentError("invalid ENS name; not a string","name",e);let t=A,r=P(e);for(;r.length;)t=(0,l.w)((0,o.zo)([t,(0,l.w)(r.pop())]));return(0,o.Dv)(t)}function _(e){return(0,o.Dv)((0,o.zo)(P(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}A.fill(0)},49552:function(e,t,r){"use strict";r.d(t,{E:function(){return P}});var n=r(76621),i=r(71803),a=r(29280),o=r(34185),s=r(52696),l=r(58179),c=r(34217),u=r(70578);let d=new l.Yd(c.i),f=new Uint8Array(32);f.fill(0);let p=i.O$.from(-1),h=i.O$.from(0),m=i.O$.from(1),b=i.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),y=(0,a.$m)(m.toHexString(),32),g=(0,a.$m)(h.toHexString(),32),v={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},w=["name","version","chainId","verifyingContract","salt"];function E(e){return function(t){return"string"!=typeof t&&d.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let x={name:E("name"),version:E("version"),chainId:function(e){try{return i.O$.from(e).toString()}catch(e){}return d.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.Kn)(e).toLowerCase()}catch(e){}return d.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,a.lE)(e);if(32!==t.length)throw Error("bad length");return(0,a.Dv)(t)}catch(e){}return d.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function A(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&d.throwArgumentError("invalid numeric width","type",e);let o=b.mask(r?n-1:n),s=r?o.add(m).mul(p):h;return function(t){let r=i.O$.from(t);return(r.lt(s)||r.gt(o))&&d.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,a.$m)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&d.throwArgumentError("invalid bytes width","type",e),function(t){return(0,a.lE)(t).length!==r&&d.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){let t=(0,a.lE)(e),r=t.length%32;return r?(0,a.xs)([t,f.slice(r)]):(0,a.Dv)(t)}(t)}}}switch(e){case"address":return function(e){return(0,a.$m)((0,n.Kn)(e),32)};case"bool":return function(e){return e?y:g};case"bytes":return function(e){return(0,o.w)(e)};case"string":return function(e){return(0,u.id)(e)}}return null}function k(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class P{constructor(e){(0,s.zG)(this,"types",Object.freeze((0,s.p$)(e))),(0,s.zG)(this,"_encoderCache",{}),(0,s.zG)(this,"_types",{});let t={},r={},n={};
1for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(a=>{n[a.name]&&d.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(i)}`,"types",e),n[a.name]=!0;let o=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===i&&d.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),A(o)||(r[o]||d.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",e),r[o].push(i),t[i][o]=!0)})}let i=Object.keys(r).filter(e=>0===r[e].length);for(let a in 0===i.length?d.throwArgumentError("missing primary type","types",e):i.length>1&&d.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,s.zG)(this,"primaryType",i[0]),!function i(a,o){o[a]&&d.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),o[a]=!0,Object.keys(t[a]).forEach(e=>{r[e]&&(i(e,o),Object.keys(o).forEach(t=>{n[t][e]=!0}))}),delete o[a]}(this.primaryType,{}),n){let t=Object.keys(n[a]);t.sort(),this._types[a]=k(a,e[a])+t.map(t=>k(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=A(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(o.w)),(0,o.w)((0,a.xs)(i))}}let r=this.types[e];if(r){let t=(0,u.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,o.w)(n):n});return n.unshift(t),(0,a.xs)(n)}}return d.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||d.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,o.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(A(e))return r(e,t);let n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):d.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new P(e)}static getPrimaryType(e){return P.from(e).primaryType}static hashStruct(e,t,r){return P.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=v[r];n||d.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>w.indexOf(e.name)-w.indexOf(t.name)),P.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,a.xs)(["0x1901",P.hashDomain(e),P.from(t).hash(r)])}static hash(e,t,r){return(0,o.w)(P.encode(e,t,r))}static resolveNames(e,t,r,n){var i,o,l,c;return i=this,o=void 0,l=void 0,c=function*(){e=(0,s.DC)(e);let i={};e.verifyingContract&&!(0,a.A7)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let o=P.from(t);for(let e in o.visit(r,(e,t)=>("address"!==e||(0,a.A7)(t,20)||(i[t]="0x"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:r}},new(l||(l=Promise))(function(e,t){function r(e){try{a(c.next(e))}catch(e){t(e)}}function n(e){try{a(c.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(r,n)}a((c=c.apply(i,o||[])).next())})}static getPayload(e,t,r){P.hashDomain(e);let n={},o=[];w.forEach(t=>{let r=e[t];null!=r&&(n[t]=x[t](r),o.push({name:t,type:v[t]}))});let l=P.from(t),c=(0,s.DC)(t);return c.EIP712Domain?d.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):c.EIP712Domain=o,l.encode(r),{types:c,domain:n,primaryType:l.primaryType,message:l.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,a.Dv)((0,a.lE)(t));if(e.match(/^u?int/))return i.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&d.throwArgumentError("invalid string","value",t),t}return d.throwArgumentError("unsupported type","type",e)})}}}},34185:function(e,t,r){"use strict";r.d(t,{w:function(){return o}});var n=r(22134),i=r.n(n),a=r(29280);function o(e){return"0x"+i().keccak_256((0,a.lE)(e))}}
1,58179:function(e,t,r){"use strict";var n,i,a,o;r.d(t,{jK:function(){return i},Yd:function(){return h}});let s=!1,l=!1,c={debug:1,default:2,info:2,warning:3,error:4,off:5},u=c.default,d=null,f=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(a=n||(n={})).DEBUG="DEBUG",a.INFO="INFO",a.WARNING="WARNING",a.ERROR="ERROR",a.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let p="0123456789abcdef";class h{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",e),u>c[r]||console.log.apply(console,t)}debug(...e){this._log(h.levels.DEBUG,e)}info(...e){this._log(h.levels.INFO,e)}warn(...e){this._log(h.levels.WARNING,e)}makeError(e,t,r){if(l)return this.makeError("censored error",t,{});t||(t=h.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=p[t[e]>>4]+p[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let a=e,o="";switch(t){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let s=Error(e);return s.reason=a,s.code=t,Object.keys(r).forEach(function(e){s[e]=r[e]}),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,h.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,h.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,h.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",h.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return d||(d=new h("logger/5.8.0")),d}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!e)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}l=!!e,s=!!t}static setLogLevel(e){let t=c[e.toLowerCase()];if(null==t){h.globalLogger().warn("invalid log level - "+e);return}u=t}static from(e){return new h(e)}}h.errors=i,h.levels=n},52696:function(e,t,r){"use strict";r.d(t,{dk:function(){return d},uj:function(){return s},p$:function(){return u},zG:function(){return i},tu:function(){return a},mE:function(){return o},DC:function(){return l}});let n=new(r(58179)).Yd("properties/5.8.0");function i(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function a(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function o(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>Promise.resolve(e[t]).then(e=>({key:t,value:e})));return(yield Promise.all(t)).reduce((e,t)=>
1(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(o,s)}l((i=i.apply(t,r||[])).next())})}function s(e,t){e&&"object"==typeof e||n.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||n.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function l(e){let t={};for(let r in e)t[r]=e[r];return t}let c={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function u(e){return function(e){if(function e(t){if(null==t||c[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return n.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>u(e)));if("object"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&i(t,r,u(n))}return t}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class d{constructor(e){for(let t in e)this[t]=u(e[t])}}},56627:function(e,t,r){"use strict";r.r(t),r.d(t,{AlchemyProvider:function(){return eS},AlchemyWebSocketProvider:function(){return eO},AnkrProvider:function(){return ej},BaseProvider:function(){return en},CloudflareProvider:function(){return eR},EtherscanProvider:function(){return eG},FallbackProvider:function(){return e3},Formatter:function(){return S},InfuraProvider:function(){return e4},InfuraWebSocketProvider:function(){return e7},IpcProvider:function(){return e6},JsonRpcBatchProvider:function(){return e9},JsonRpcProvider:function(){return eg},JsonRpcSigner:function(){return em},NodesmithProvider:function(){return tt},PocketProvider:function(){return ti},Provider:function(){return n.zt},QuickNodeProvider:function(){return to},Resolver:function(){return ee},StaticJsonRpcProvider:function(){return eP},UrlJsonRpcProvider:function(){return eC},Web3Provider:function(){return tu},WebSocketProvider:function(){return eA},getDefaultProvider:function(){return tf},getNetwork:function(){return f},isCommunityResourcable:function(){return I},isCommunityResource:function(){return B},showThrottleMessage:function(){return M}});var n=r(26121),i=r(58179);let a=new i.Yd("networks/5.8.0");function o(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.QuickNodeProvider&&"-"!==r.quicknode)try{n.push(new t.QuickNodeProvider(e,r.quicknode))}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return o(e)},t}function s(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return s(e,t)},r}let l={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:s("https://www.ethercluster.com/mordor","classicMordor")},d={unspecified:{chainId:0,name:"unspecified"},homestead:l,mainnet:l,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")}
1,kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"sepolia",_defaultProvider:o("sepolia")},holesky:{chainId:17e3,name:"holesky",_defaultProvider:o("holesky")},classic:{chainId:61,name:"classic",_defaultProvider:s("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:s("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum",_defaultProvider:o("maticmum")},optimism:{chainId:10,name:"optimism",_defaultProvider:o("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},"optimism-sepolia":{chainId:11155420,name:"optimism-sepolia"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},"arbitrum-sepolia":{chainId:421614,name:"arbitrum-sepolia"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function f(e){if(null==e)return null;if("number"==typeof e){for(let t in d){let r=d[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let t=d[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=d[e.name];if(!t)return"number"!=typeof e.chainId&&a.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&a.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var p=r(97393),h=r(66574),m=r(71803),b=r(29280),y=r(89126),g=r(76733),v=r(52696),w=r(10772),E=r(84122),x=r(65712),A=r(89923),k=r.n(A);let P="providers/5.8.0";var C=r(76621),T=r(83293),_=r(56973);let O=new i.Yd(P);class S{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),o=this.hex.bind(this),s=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:a,type:l,accessList:S.allowNull(this.accessList.bind(this),null),blockHash:S.allowNull(a,null),blockNumber:S.allowNull(s,null),transactionIndex:S.allowNull(s,null),confirmations:S.allowNull(s,null),from:t,gasPrice:S.allowNull(r),maxPriorityFeePerGas:S.allowNull(r),maxFeePerGas:S.allowNull(r),gasLimit:r,to:S.allowNull(t,null),value:r,nonce:s,data:i,r:S.allowNull(this.uint256),s:S.allowNull(this.uint256),v:S.allowNull(s),creates:S.allowNull(t,null),raw:S.allowNull(i)},e.transactionRequest={from:S.allowNull(t),nonce:S.allowNull(s),gasLimit:S.allowNull(r),gasPrice:S.allowNull(r),maxPriorityFeePerGas:S.allowNull(r),maxFeePerGas:S.allowNull(r),to:S.allowNull(t),value:S.allowNull(r),data:S.allowNull(e=>this.data(e,!0)),type:S.allowNull(s),accessList:S.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:a,address:t,topics:S.arrayOf(a),data:i,logIndex:s,blockHash:a},e.receipt={to:S.allowNull(this.address,null),from:S.allowNull(this.address,null),contractAddress:S.allowNull(t,null),transactionIndex:s,root:S.allowNull(o),gasUsed:r,logsBloom:S.allowNull(i),blockHash:a,transactionHash:a,logs:S.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:S.allowNull(s,null),cumulativeGasUsed:r,effectiveGasPrice:S.allowNull(r),status:S.allowNull(s),type:l},e.block={hash:S.allowNull(a),parentHash:a,number:s,timestamp:s,nonce:S.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:S.allowNull(t),extraData:i,transactions:S.allowNull(S.arrayOf(a)),baseFeePerGas:S.allowNull(r)},e.blockWithTransactions=(0,v.DC)(e.block),e.blockWithTransactions.transactions=S.allowNull(S.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:S.allowNull(n,void 0),toBlock:S.allowNull(n,void 0),blockHash:S.allowNull(a,void 0),address:S.allowNull(t,void 0),topics:S.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:S.allowNull(s),blockHash:S.allowNull(a),transactionIndex:s,removed:S.allowNull(this.boolean.bind(this)),address:t,data:S.allowF
1alsish(i,"0x"),topics:S.arrayOf(a),transactionHash:a,logIndex:s},e}accessList(e){return(0,_.z7)(e||[])}number(e){return"0x"===e?0:m.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:m.O$.from(e).toNumber()}bigNumber(e){return m.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,b.A7)(e))?e.toLowerCase():O.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,C.Kn)(e)}callAddress(e){if(!(0,b.A7)(e,32))return null;let t=(0,C.Kn)((0,b.p3)(e,12));return t===T.d?null:t}contractAddress(e){return(0,C.CR)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,b.A7)(e))return(0,b.$P)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,b.E1)(r)?O.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=m.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,b.A7)(e))throw Error("invalid uint256");return(0,b.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=S.check(t,e);return n._difficulty=null==r?null:m.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return S.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&m.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=S.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,b.A7)(r)&&(r=m.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,b.A7)(r)&&(r=m.O$.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,_.Qc)(e)}receiptLog(e){return S.check(this.formats.receiptLog,e)}receipt(e){let t=S.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=m.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&O.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):O.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&O.throwArgumentError("invalid root hash","value.root",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return S.check(this.formats.filter,e)}filterLog(e){return S.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}function I(e){return e&&"function"==typeof e.isCommunityResource}function B(e){return I(e)&&e.isCommunityResource()}let j=!1;function M(){j||(j=!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("=========================="))}var R=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let N=new i.Yd(P);function U(e){return null==e?"null":(32!==(0,b.E1)(e)&&N.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function z(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return U(e);{let t={};
1e.forEach(e=>{t[U(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function D(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,b.E1)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+z(e);else if(n.Sg.isForkEvent(e))throw N.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+z(e.topics||[]);throw Error("invalid event - "+e)}function F(){return new Date().getTime()}function L(e){return new Promise(t=>{setTimeout(t,e)})}let H=["block","network","pending","poll"];class G{constructor(e,t,r){(0,v.zG)(this,"tag",e),(0,v.zG)(this,"listener",t),(0,v.zG)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],n=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||H.indexOf(this.tag)>=0}}let q={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 $(e){return(0,b.$m)(m.O$.from(e).toHexString(),32)}function K(e){return h.eU.encode((0,b.zo)([e,(0,b.p3)((0,w.JQ)((0,w.JQ)(e)),0,4)]))}let Z=RegExp("^(ipfs)://(.*)$","i"),V=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),Z,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function W(e,t){try{return(0,E.ZN)(Y(e,t))}catch(e){}return null}function Y(e,t){if("0x"===e)return null;let r=m.O$.from((0,b.p3)(e,t,t+32)).toNumber(),n=m.O$.from((0,b.p3)(e,r,r+32)).toNumber();return(0,b.p3)(e,r+32,r+32+n)}function X(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):N.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function J(e){let t=(0,b.lE)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function Q(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){let i=(0,b.lE)(e[n]);t[n]=J(r),t.push(J(i.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(i)),r+=32+32*Math.ceil(i.length/32)}return(0,b.xs)(t)}class ee{constructor(e,t,r,n){(0,v.zG)(this,"provider",e),(0,v.zG)(this,"name",r),(0,v.zG)(this,"address",e.formatter.address(t)),(0,v.zG)(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>m.O$.from(e).eq(1)).catch(e=>{if(e.code===i.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return R(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,b.xs)([e,(0,g.VM)(this.name),t||"0x"])},n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,b.xs)(["0x9061b923",Q([(0,g.Kn)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,b.lE)(e).length%32==4&&N.throwError("resolver threw error",i.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=Y(e,0)),e}catch(e){if(e.code===i.Yd.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return R(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?Y(r,0):null})}_getAddress(e,t){let r=q[String(e)];if(null==r&&N.throwError(`unsupported coin type: ${e}`,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let n=(0,b.lE)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return K((0,b.zo)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return K((0,b.zo)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=k().toWords(n.slice(2));return e.unshift(t),k().encode(r.prefix,e)}}return null}getAddress(e){return R(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===y.R)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===i.Yd.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",$(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&N.throwError("invalid or unsupported coin data",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return R(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<V.length;r++){let n=t.match(V[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:X(t)};case"erc721":case"erc1155":{let r="erc721"===i?"0xc87b56dd":"0x0e89341c";e.push({type:i,content:t});let a=this._resolvedAddress||(yield this.getAddress()),o=(n[2]||"").split("/");if(2!==o.length)return null;let s=yield this.provider.formatter.address(o[0]),l=(0,b.$m)(m.O$.from(o[1]).toHexString(),32);if("erc721"===i){let t=this.provider.formatter.callAddress((yield this.provider.call({to:s,data:(0,b.xs)(["0x6352211e",l])})));if(a!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===i){let t=m.O$.from((yield this.provider.call({to:s,data:(0,b.xs)(["0x00fdd58e",(0,b.$m)(a,32),l])})));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}let c={to:this.provider.formatter.address(o[0]),data:(0,b.xs)([r,l])},u=W((yield this.provider.call(c)),0);if(null==u)return null;e.push({type:"metadata-url-base",content:u}),"erc1155"===i&&(u=u.replace("{id}",l.substring(2)),e.push({type:"metadata-url-expanded",content:u})),u.match(/^ipfs:/i)&&(u=X(u)),e.push({type:"metadata-url",content:u});let d=yield(0,x.rd)(u);if(!d)return null;e.push({type:"metadata",content:JSON.stringify(d)});let f=d.image;if("string"!=typeof f)return null;if(f.match(/^(https:\/\/|data:)/i));else{let t=f.match(Z);if(null==t)return null;e.push({type:"url-ipfs",content:f}),f=X(f)}return e.push({type:"url",content:f}),{linkage:e,url:f}}}}}catch(e){}return null})}getContentHash(){return R(this,void 0,void 0,function*(){let e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;let t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+h.eU.encode("0x"+t[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+h.eU.encode("0x"+r[1])}let n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];let a=e.match(/^0x90b2c605([0-9a-f]*)$/);if(a&&68===a[1].length){let e={"=":"","+":"-","/":"_"};return"sia://"+(0,p.c)("0x"+a[1]).replace(/[=+\/]/g,t=>e[t])}return N.throwError("invalid or unsupported content hash data",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return R(this,void 0,void 0,function*(){let t=(0,E.Y0)(e);(t=(0,b.zo)([$(64),$(t.length),t])).length%32!=0&&(t=(0,b.zo)([t,(0,b.$m)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,b.Dv)(t));return null==r||"0x"===r?null:(0,E.ZN)(r)})}}let et=null,er=1;class en extends n.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,v.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,v.tu)(new.target,"getNetwork")(e);
1t?((0,v.zG)(this,"_network",t),this.emit("network",t,null)):N.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return R(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||N.throwError("no network detected",i.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,v.zG)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,x.$l)(()=>this._ready().then(e=>e,e=>{if(e.code!==i.Yd.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==et&&(et=new S),et}static getNetwork(e){return f(null==e?"homestead":e)}ccipReadFetch(e,t,r){return R(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),a=t.toLowerCase(),o=[];for(let e=0;e<r.length;e++){let t=r[e],s=t.replace("{sender}",n).replace("{data}",a),l=t.indexOf("{data}")>=0?null:JSON.stringify({data:a,sender:n}),c=yield(0,x.rd)({url:s,errorPassThrough:!0},l,(e,t)=>(e.status=t.statusCode,e));if(c.data)return c.data;let u=c.message||"unknown error";if(c.status>=400&&c.status<500)return N.throwError(`response not found during CCIP fetch: ${u}`,i.Yd.errors.SERVER_ERROR,{url:t,errorMessage:u});o.push(u)}return N.throwError(`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,i.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:o})})}_getInternalBlockNumber(e){return R(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(F()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=F(),r=(0,v.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=F();return(e=m.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return R(this,void 0,void 0,function*(){let e=er++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)N.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",N.makeError("network block skew detected",i.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let a=this.getLogs(n).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit
1(n,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(a)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return R(this,void 0,void 0,function*(){return N.throwError("provider does not support network detection",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return R(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,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",t,e),yield L(0),this._network;let r=N.makeError("underlying network changed",i.Yd.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=F();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=F(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return R(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return R(this,void 0,void 0,function*(){let a=yield this.getTransactionReceipt(e);return(a?a.confirmations:0)>=t?a:new Promise((a,o)=>{let s=[],l=!1,c=function(){return!!l||(l=!0,s.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||c()||a(e)};if(this.on(e,u),s.push(()=>{this.removeListener(e,u)}),n){let r=n.startBlock,a=null,u=s=>R(this,void 0,void 0,function*(){l||(yield L(1e3),this.getTransactionCount(n.from).then(d=>R(this,void 0,void 0,function*(){if(!l){if(d<=n.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==a&&(a=r-3)<n.startBlock&&(a=n.startBlock);a<=s;){if(l)return;let r=yield this.getBlockWithTransactions(a);for(let a=0;a<r.transactions.length;a++){let s=r.transactions[a];if(s.hash===e)return;if(s.from===n.from&&s.nonce===n.nonce){if(l)return;let r=yield this.waitForTransaction(s.hash,t);if(c())return;let a="replaced";s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?a="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(a="cancelled"),o(N.makeError("transaction was replaced",i.Yd.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===a||"cancelled"===a,reason:a,replacement:this._wrapTransaction(s),hash:e,receipt:r}));return}}a++}}l||this.once("block",u)}}),e=>{l||this.once("block",u)}))});if(l)return;this.once("block",u),s.push(()=>{this.removeListener("block",u)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{c()||o(N.makeError("timeout exceeded",i.Yd.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return R(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return R(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return m.O$.from(e)}catch(t){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return R(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return m.O$.from(n)}catch(e){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}})}getTransactionCount(e,t){return R(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return m.O$.from(n).toNumber()}catch(e){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}})}getCode(e,t){return R(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,b.Dv)(n)}catch(e){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return R(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,v.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Prom
1ise.resolve(t).then(e=>(0,b.$P)(e))}),a=yield this.perform("getStorageAt",n);try{return(0,b.Dv)(a)}catch(e){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:a,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,b.E1)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&N.throwError("Transaction hash mismatch from Provider.sendTransaction.",i.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>R(this,void 0,void 0,function*(){let a;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let o=yield this._waitForTransaction(e.hash,t,n,a);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&N.throwError("transaction failed",i.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)}),e}sendTransaction(e){return R(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,b.Dv)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return R(this,void 0,void 0,function*(){let t=yield e,r={};return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?m.O$.from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,b.Dv)(e):null))}),this.formatter.transactionRequest((yield(0,v.mE)(r)))})}_getFilter(e){return R(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,v.mE)(t)))})}_call(e,t,r){return R(this,void 0,void 0,function*(){r>=10&&N.throwError("CCIP read exceeded maximum redirections",i.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,a=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===a.substring(0,10)&&(0,b.E1)(a)%32==4)try{let o=(0,b.p3)(a,4),s=(0,b.p3)(o,0,32);m.O$.from(s).eq(n)||N.throwError("CCIP Read sender did not match",i.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let l=[],c=m.O$.from((0,b.p3)(o,32,64)).toNumber(),u=m.O$.from((0,b.p3)(o,c,c+32)).toNumber(),d=(0,b.p3)(o,c+32);for(let t=0;t<u;t++){let r=W(d,32*t);null==r&&N.throwError("CCIP Read contained corrupt URL string",i.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),l.push(r)}let f=Y(o,64);m.O$.from((0,b.p3)(o,100,128)).isZero()||N.throwError("CCIP Read callback selector included junk",i.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let p=(0,b.p3)(o,96,100),h=Y(o,128),y=yield this.ccipReadFetch(e,f,l);null==y&&N.throwError("CCIP Read disabled or provided no URLs",i.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let g={to:n,data:(0,b.xs)([p,Q([y,h])])};return this._call(g,t,r+1)}catch(e){if(e.code===i.Yd.errors.SERVER_ERROR)throw e}try{return(0,b.Dv)(a)}catch(r){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:a,error:r})}})}call(e,t){return R(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,v.mE)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.cci
1pReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return R(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,v.mE)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return m.O$.from(r)}catch(e){return N.throwError("bad result from backend",i.Yd.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})}})}_getAddress(e){return R(this,void 0,void 0,function*(){"string"!=typeof(e=yield e)&&N.throwArgumentError("invalid address or ENS name","name",e);let t=yield this.resolveName(e);return null==t&&N.throwError("ENS name not configured",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return R(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,n={includeTransactions:!!t};if((0,b.A7)(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),(0,b.A7)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){N.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return(0,x.$l)(()=>R(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){let n=e.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return R(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,x.$l)(()=>R(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return R(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,x.$l)(()=>R(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}),{oncePoll:this})})}getLogs(e){return R(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,v.mE)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),S.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return R(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return R(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&N.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return R(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let n=new ee(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return R(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||N.throwError("network does not support ENS",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,g.VM)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return R(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,b.A7)(e))throw t}"string"!=typeof e&&N.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return R(this,void 0,void 0,function*(){e=yield e;let t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let n=W((yield this.call({to:r,data:"0x691f3431"+(0,g.VM)(t).substring(2)})),0);return(yield this.resolveName(n))!=e?null:n})}getAvatar(e){return R(this,void 0,void 0,function*(){let t=null;if((0,b.A7)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new ee(this,n,r);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==i.Yd.errors.CALL_EXCEPTION)throw e}try{let e=W((yield this.call({to:n,data:"0x691f3431"+(0,g.VM)(r).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==i.Yd.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return N.throwError(e+" not implemented",i.Yd.errors.NOT_IMPLEMENT
1ED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let n=new G(D(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=D(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=D(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=D(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=D(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||!!n||(n=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=D(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var ei=r(88091),ea=r(49552),eo=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let es=new i.Yd(P),el=["call","estimateGas"];function ec(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,b.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let n=ec(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return ec(JSON.parse(e),t)}catch(e){}return null}function eu(e,t,r){let n=r.transaction||r.signedTransaction;if("call"===e){let e=ec(t,!0);if(e)return e.data;es.throwError("missing revert data in call exception; Transaction reverted without a reason string",i.Yd.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=ec(t.body,!1);null==r&&(r=ec(t,!1)),r&&es.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let a=t.message;throw t.code===i.Yd.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?a=t.error.message:"string"==typeof t.body?a=t.body:"string"==typeof t.responseText&&(a=t.responseText),(a=(a||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&es.throwError("insufficient funds for intrinsic transaction cost",i.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),a.match(/nonce (is )?too low/i)&&es.throwError("nonce has already been used",i.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&es.throwError("replacement fee too low",i.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),a.match(/only replay-protected/i)&&es.throwError("legacy pre-eip-155 transactions not supported",i.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),el.indexOf(e)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&es.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function ed(e){return new Promise(function(t){setTimeout(t,e)})}function ef(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function ep(e){return e?e.toLowerCase():e}let eh={};class em extends ei.E{constructor(e,t,r){if(super(),e!==eh)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,v.zG)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,v.zG)(this,"_address",this.provider.formatter.address(r)),(0,v.zG)(this,"_index",null)):"number"==typeof r?((0,v.zG)(this,"_index",r),(0,v.zG)(this,"_address",null)):es.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return es.throwError("cannot alter JSON-RPC Signer connection",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new eb(eh,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&es.throwError("unknown account #"+this._index,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,v.DC)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));
1if(null==e.gasLimit){let r=(0,v.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>eo(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&es.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,v.mE)({tx:(0,v.mE)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&es.throwArgumentError("from address mismatch","transaction",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&es.throwError("user rejected transaction",i.Yd.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),eu("sendTransaction",e,n)))})}signTransaction(e){return es.throwError("signing transactions is unsupported",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return eo(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,x.$l)(()=>eo(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return eo(this,void 0,void 0,function*(){let t="string"==typeof e?(0,E.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,b.Dv)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&es.throwError("user rejected signing",i.Yd.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return eo(this,void 0,void 0,function*(){let t="string"==typeof e?(0,E.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,b.Dv)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&es.throwError("user rejected signing",i.Yd.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return eo(this,void 0,void 0,function*(){let n=yield ea.E.resolveNames(e,t,r,e=>this.provider.resolveName(e)),a=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[a.toLowerCase(),JSON.stringify(ea.E.getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&es.throwError("user rejected signing",i.Yd.errors.ACTION_REJECTED,{action:"_signTypedData",from:a,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return eo(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class eb extends em{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let ey={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class eg extends en{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,v.tu)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,v.zG)(this,"connection",Object.freeze({url:e})):(0,v.zG)(this,"connection",Object.freeze((0,v.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return eo(this,void 0,void 0,function*(){yield ed(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,v.tu)(this.constructor,"getNetwork");try{return t(m.O$.from(e).toNumber())}
1catch(t){return es.throwError("could not detect network",i.Yd.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return es.throwError("could not detect network",i.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new em(eh,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,v.p$)(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=(0,x.rd)(this.connection,JSON.stringify(r),ef).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[ep(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[ep(t.address),t.blockTag]];case"getCode":return["eth_getCode",[ep(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[ep(t.address),(0,b.$m)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,v.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,v.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=ep(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return eo(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&m.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,v.DC)(t)).transaction=(0,v.DC)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&es.throwError(e+" not implemented",i.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return eu(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return function n(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),n.then(function(){return ed(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){n()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,v.DC)(ey);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,v.uj)(e,r);let n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,b.$P)(m.O$.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(n[t]=(0,b.Dv)(e[t]))}),e.accessList&&(n.accessList=(0,_.z7)(e.accessList)),n}}let ev=null;try{if(ev=WebSocket,null==ev)throw Error("inject please")}catch(t){let e=new i.Yd(P);ev=function(){e.throwError("WebSockets not supported in this environment",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var ew=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let eE=new i.Yd(P),ex=1;class eA extends eg{constructor(e,t){"any"===t&&eE.throwError("WebSocketProvider does not support 'any' network yet",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,v.zG)(this,"_websocket",new ev(this.connection.url)):(0,v.zG)(this,"_websocket",e),(0,v.zG)(this,"_requests",{}),(0,v.zG)(this,"_subs",{}),(0,v.zG)(this,"_subIds",{}),(0,v.zG)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>
1{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this.websocket.send(this._requests[e].payload)})},this.websocket.onmessage=e=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=Error(r.error.message||"unknown error"),(0,v.zG)(e,"code",r.error.code||null),(0,v.zG)(e,"response",t)):e=Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){eE.throwError("cannot reset events block on WebSocketProvider",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){eE.throwError("cannot set polling interval on WebSocketProvider",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return ew(this,void 0,void 0,function*(){return null})}set polling(e){e&&eE.throwError("cannot set polling on WebSocketProvider",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=ex++;return new Promise((n,i)=>{let a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(a),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:a},this._wsReady&&this.websocket.send(a)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return ew(this,void 0,void 0,function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=n);let i=yield n;this._subs[i]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=m.O$.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))});break;case"tx":{let t=e=>{let t=e.hash;this.getTransactionReceipt(t).then(e=>{e&&this.emit(t,e)})};t(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(t)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;t="tx"}else if(this.listenerCount(e.event))return;let r=this._subIds[t];r&&(delete this._subIds[t],r.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return ew(this,void 0,void 0,function*(){this.websocket.readyState===ev.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}let ek=new i.Yd(P);class eP extends eg{detectNetwork(){var e,t,r,n;let a=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,n=function*(){let e=this.network;return null==e&&((e=yield a.detectNetwork.call(this))||ek.throwError("no network detected",i.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,v.zG)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}}class eC extends eP{constructor(e,t){ek.checkAbstract(new.target,eC),e=(0,v.tu)(new.target,"getNetwork")(e),super((0,v.tu)(new.target,"getUrl")(e,t=(0,v.tu)(new.target,"getApiKey")(t)),e),"string"==typeof t?(0,v.zG)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e
1=>{(0,v.zG)(this,e,t[e])})}_startPending(){ek.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return ek.throwError("API provider does not support signing",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return ek.throwError("not implemented; sub-classes must override getUrl",i.Yd.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}let eT=new i.Yd(P),e_="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class eO extends eA{constructor(e,t){let r=new eS(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,v.zG)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===e_}}class eS extends eC{static getWebSocketProvider(e,t){return new eO(e,t)}static getApiKey(e){return null==e?e_:(e&&"string"!=typeof e&&eT.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"sepolia":r="eth-sepolia.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"arbitrum-sepolia":r="arb-sepolia.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;case"optimism-sepolia":r="opt-sepolia.g.alchemy.com/v2/";break;default:eT.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===e_&&M(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===e_}}let eI=new i.Yd(P),eB="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class ej extends eC{isCommunityResource(){return this.apiKey===eB}static getApiKey(e){return null==e?eB:e}static getUrl(e,t){null==t&&(t=eB);let r={allowGzip:!0,url:"https://"+function(e){switch(e){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"sepolia":return"rpc.ankr.com/eth_sepolia/";case"matic":return"rpc.ankr.com/polygon/";case"maticmum":return"rpc.ankr.com/polygon_mumbai/";case"optimism":return"rpc.ankr.com/optimism/";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet/";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return eI.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===eB&&M(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}let eM=new i.Yd(P);class eR extends eC{static getApiKey(e){return null!=e&&eM.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":eM.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){var r,n,i,a;let o=Object.create(null,{perform:{get:()=>super.perform}});return r=this,n=void 0,i=void 0,a=function*(){return"getBlockNumber"===e?(yield o.perform.call(this,"getBlock",{blockTag:"latest"})).number:o.perform.call(this,e,t)},new(i||(i=Promise))(function(e,t){function o(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(o,s)}l((a=a.apply(r,n||[])).next())})}}var eN=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let eU=new i.Yd(P);function ez(e){let t={};for(let r in e){if(null==e[r])continue;let n=e[r];("type"!==r||0!==n)&&(n=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r]?(0,b.$P)((0,b.Dv)(n)):"accessList"===r?"["+(0,_.z7)(n).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,b.Dv)(n),t[r]=n)}return t}
1function eD(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function eF(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function eL(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function eH(e,t,r){if("call"===e&&t.code===i.Yd.errors.SERVER_ERROR){let e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,b.A7)(r))return r;eU.throwError("missing revert data in call exception",i.Yd.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===i.Yd.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),(n=(n||"").toLowerCase()).match(/insufficient funds/)&&eU.throwError("insufficient funds for intrinsic transaction cost",i.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&eU.throwError("nonce has already been used",i.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&eU.throwError("replacement fee too low",i.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&eU.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class eG extends en{constructor(e,t){super(e),(0,v.zG)(this,"baseUrl",this.getBaseUrl()),(0,v.zG)(this,"apiKey",t||null)}getBaseUrl(){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"}return eU.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let n=t[r];return null!=n&&(e+=`&${r}=${n}`),e},""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return eN(this,void 0,void 0,function*(){let n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,a="proxy"===e?eF:eD;this.emit("debug",{action:"request",request:n,provider:this});let o={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&M(),Promise.resolve(!0))},s=null;i&&(o.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map(e=>`${e}=${i[e]}`).join("&"));let l=yield(0,x.rd)(o,s,a||eF);return this.emit("debug",{action:"response",request:n,response:(0,v.p$)(l),provider:this}),l})}detectNetwork(){return eN(this,void 0,void 0,function*(){return this.network})}perform(e,t){let r=Object.create(null,{perform:{get:()=>super.perform}});return eN(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(e=>eH("sendTransaction",e,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let e=ez(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return eH("call",e,t.transaction)}}case"estimateGas":{let e=ez(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return eH("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=eL(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=eL(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&eU.throwError("unsupported topic count",i.Yd.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let r=t.filter.topics[0];("string"!=typeof r||66!==r.length)&&eU.throwError("unsupported topic format",i.Yd.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),n={};for(let e=0;e<r.length;e++){let t=r[e];if(null==t.blockHash){if(null==n[t.blockNumber]){let e=yield this.getBlock(t.blockNumber);e&&(n[t.blockNumber]=e.hash)}t.blockHash=n[t.blockNumber]}}return r}case"getEtherPrice":if("homestead"!==this.network.name)return 0;return parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return r.perform.call(this,e,t)})}getHistory(e,t,r){return eN(this,void 0,void 0,function*(){let n={action:"txlist",address:yield this.resolveName(e),startblock:null==t?0:t,endblock:null==r?99999999:r,sort:"asc"};return(yield this.fetch("account",n)).map(e=>{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}var eq=r(67998),e$=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let eK=new i.Yd(P);function eZ(){return new Date().getTime()}function eV(e){let t=null;for(let r=0;r<e.length;r++){let n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||eK.throwArgumentError("provider mismatch","networks",e):t=n}return t}function eW(e,t){let r=Math.floor((e=e.slice().sort()).length/2);if(e.length%2)return e[r];let n=e[r-1],i=e[r];return null!=t&&Math.abs(n-i)>t?null:(n+i)/2}function eY(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(m.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>eY(e)));if("object"==typeof e){let t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let r=e[t];return r="function"==typeof r?"[function]":eY(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let eX=1;function eJ(e){let t=null,r=null,n=new Promise(n=>{r=setTimeout(t=function(){r&&(clearTimeout(r),r=null),n()},e)});return{cancel:t,getPromise:function(){return n},wait:e=>n=n.then(e)}}let eQ=[i.Yd.errors.CALL_EXCEPTION,i.Yd.errors.INSUFFICIENT_FUNDS,i.Yd.errors.NONCE_EXPIRED,i.Yd.errors.REPLACEMENT_UNDERPRICED,i.Yd.errors.UNPREDICTABLE_GAS_LIMIT],e0=["address","args","errorArgs","errorSignature","method","transaction"];function e1(e,t){let r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function e2(e,t){return e$(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,x.$l)(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}
1,0)}),{oncePoll:r})})}class e3 extends en{constructor(e,t){0===e.length&&eK.throwArgumentError("missing providers","providers",e);let r=e.map((e,t)=>{if(n.zt.isProvider(e)){let t=B(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:1})}let r=(0,v.DC)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=B(e)?2e3:750),null==r.weight&&(r.weight=1);let i=r.weight;return(i%1||i>512||i<1)&&eK.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,i),Object.freeze(r)}),i=r.reduce((e,t)=>e+t.weight,0);null==t?t=i/2:t>i&&eK.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=eV(r.map(e=>e.provider.network));null==a&&(a=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(a),(0,v.zG)(this,"providerConfigs",Object.freeze(r)),(0,v.zG)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return e$(this,void 0,void 0,function*(){return eV((yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()))))})}perform(e,t){return e$(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;t<e.length;t++){let r=e[t];if("string"==typeof r)return r}throw e[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==e&&(yield this.getBlockNumber());let r=function(e,t,r){var n,i;let a=eY;switch(t){case"getBlockNumber":return function(t){let r=t.map(e=>e.result),n=eW(t.map(e=>e.result),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){let t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return eW(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":a=function(e){return null==e?null:((e=(0,v.DC)(e)).confirmations=-1,eY(e))};break;case"getBlock":a=r.includeTransactions?function(e){return null==e?null:((e=(0,v.DC)(e)).transactions=e.transactions.map(e=>((e=(0,v.DC)(e)).confirmations=-1,e)),eY(e))}:function(e){return null==e?null:eY(e)};break;default:throw Error("unknown method: "+t)}return n=a,i=e.quorum,function(e){let t={};e.forEach(e=>{let r=n(e.result);t[r]||(t[r]={count:0,result:e.result}),t[r].count++});let r=Object.keys(t);for(let e=0;e<r.length;e++){let n=t[r[e]];if(n.count>=i)return n.result}}}(this,e,t),n=(0,eq.y)(this.providerConfigs.map(v.DC));n.sort((e,t)=>e.priority-t.priority);let a=this._highestBlockNumber,o=0,s=!0;for(;;){let l=eZ(),c=n.filter(e=>e.runner&&l-e.start<e.stallTimeout).reduce((e,t)=>e+t.weight,0);for(;c<this.quorum&&o<n.length;){let r=n[o++],s=eX++;r.start=eZ(),r.staller=eJ(r.stallTimeout),r.staller.wait(()=>{r.staller=null}),r.runner=(function(e,t,r,n){return e$(this,void 0,void 0,function*(){let a=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return a[r]();case"getEtherPrice":if(a.getEtherPrice)return a.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,b.A7)(n.blockTag)&&(a=yield e2(e,t)),a[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,b.A7)(n.blockTag)&&(a=yield e2(e,t)),a.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,b.A7)(n.blockTag)&&(a=yield e2(e,t)),a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":if(n.blockTag&&(0,b.A7)(n.blockTag)&&(a=yield e2(e,t)),"call"===r&&n.blockTag)return a[r](n.transaction,n.blockTag);return a[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return a[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,b.A7)(r.fromBlock)||r.toBlock&&(0,b.A7)(r.toBlock))&&(a=yield e2(e,t)),a.getLogs(r)}}return eK.throwError("unknown method error",i.Yd.errors.UNKNOWN_ERROR,{method:r,params:n})})})(r,a,e,t).then(n=>
1{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:e1(r,eZ()),request:{method:e,params:(0,v.p$)(t)},provider:this})},n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:e1(r,eZ()),request:{method:e,params:(0,v.p$)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:e1(r,null),request:{method:e,params:(0,v.p$)(t)},provider:this}),c+=r.weight}let u=[];n.forEach(e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))}),u.length&&(yield Promise.race(u));let d=n.filter(e=>e.done&&null==e.error);if(d.length>=this.quorum){let e=r(d);if(void 0!==e)return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;s||(yield eJ(100).getPromise()),s=!1}let f=n.reduce((e,t)=>{if(!t.done||null==t.error)return e;let r=t.error.code;return eQ.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{});if(Object.keys(f).forEach(e=>{let t=f[e];if(t.weight<this.quorum)return;n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=t.error,i={};e0.forEach(e=>{null!=r[e]&&(i[e]=r[e])}),eK.throwError(r.reason||r.message,e,i)}),0===n.filter(e=>!e.done).length)break}return n.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),eK.throwError("failed to meet quorum",i.Yd.errors.SERVER_ERROR,{method:e,params:t,results:n.map(e=>e1(e)),provider:this})})}}let e6=null,e5=new i.Yd(P),e8="84842078b09946638c03157f83405213";class e7 extends eA{constructor(e,t){let r=new e4(e,t),n=r.connection;n.password&&e5.throwError("INFURA WebSocket project secrets unsupported",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,v.zG)(this,"apiKey",r.projectId),(0,v.zG)(this,"projectId",r.projectId),(0,v.zG)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===e8}}class e4 extends eC{static getWebSocketProvider(e,t){return new e7(e,t)}static getApiKey(e){let t={apiKey:e8,projectId:e8,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(e5.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),e5.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"optimism-sepolia":r="optimism-sepolia.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;case"arbitrum-sepolia":r="arbitrum-sepolia.infura.io";break;default:e5.throwError("unsupported network",i.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===e8&&M(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===e8}}class e9 extends eg{send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let n={request:r,resolve:null,reject:null},i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,v.p$)(t),provider:this}),(0,x.rd)(this.connection,JSON.stringify(t)).then(r=>
1{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach((e,t)=>{let n=r[t];if(n.error){let t=Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)})},r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach(e=>{e.reject(r)})})},10)),i}}let te=new i.Yd(P);class tt extends eC{static getApiKey(e){return e&&"string"!=typeof e&&te.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){te.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:te.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}let tr=new i.Yd(P),tn="62e1ad51b37b8e00394bda3b";class ti extends eC{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=tn:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:tr.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:tr.throwError("unsupported network",i.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===tn}}let ta=new i.Yd(P);class to extends eC{static getApiKey(e){return e&&"string"!=typeof e&&ta.throwArgumentError("invalid apiKey","apiKey",e),e||"919b412a057b5e9c9b6dce193c5a60242d6efadb"}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="ethers.quiknode.pro";break;case"goerli":r="ethers.ethereum-goerli.quiknode.pro";break;case"sepolia":r="ethers.ethereum-sepolia.quiknode.pro";break;case"holesky":r="ethers.ethereum-holesky.quiknode.pro";break;case"arbitrum":r="ethers.arbitrum-mainnet.quiknode.pro";break;case"arbitrum-goerli":r="ethers.arbitrum-goerli.quiknode.pro";break;case"arbitrum-sepolia":r="ethers.arbitrum-sepolia.quiknode.pro";break;case"base":r="ethers.base-mainnet.quiknode.pro";break;case"base-goerli":r="ethers.base-goerli.quiknode.pro";break;case"base-spolia":r="ethers.base-sepolia.quiknode.pro";break;case"bnb":r="ethers.bsc.quiknode.pro";break;case"bnbt":r="ethers.bsc-testnet.quiknode.pro";break;case"matic":r="ethers.matic.quiknode.pro";break;case"maticmum":r="ethers.matic-testnet.quiknode.pro";break;case"optimism":r="ethers.optimism.quiknode.pro";break;case"optimism-goerli":r="ethers.optimism-goerli.quiknode.pro";break;case"optimism-sepolia":r="ethers.optimism-sepolia.quiknode.pro";break;case"xdai":r="ethers.xdai.quiknode.pro";break;default:ta.throwArgumentError("unsupported network","network",arguments[0])}return"https://"+r+"/"+t}}let ts=new i.Yd(P),tl=1;function tc(e,t){let r="Web3LegacyFetcher";return function(e,n){let i={method:e,params:n,id:tl++,jsonrpc:"2.0"};return new Promise((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,v.p$)(i),provider:this}),t(i,(t,a)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:a,provider:this}),a.error){let e=Error(a.error.message);return e.code=a.error.code,e.data=a.error.data,n(e)}e(a.result)})})}}class tu extends eg{constructor(e,t){null==e&&ts.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),i=e,e.request)?(""===r&&(r="eip-1193:"),n=function(t,r){null==r&&(r=[]);let n={method:t,params:r};
1return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,v.p$)(n),provider:this}),e.request(n).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e})}):e.sendAsync?n=tc(e,e.sendAsync.bind(e)):e.send?n=tc(e,e.send.bind(e)):ts.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,v.zG)(this,"jsonRpcFetchFunc",n),(0,v.zG)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}let td=new i.Yd(P);function tf(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new eg(e);case"ws":case"wss":return new eA(e);default:td.throwArgumentError("unsupported URL scheme","network",e)}}let r=f(e);return r&&r._defaultProvider||td.throwError("unsupported getDefaultProvider network",i.Yd.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:e3,AlchemyProvider:eS,AnkrProvider:ej,CloudflareProvider:eR,EtherscanProvider:eG,InfuraProvider:e4,JsonRpcProvider:eg,NodesmithProvider:tt,PocketProvider:ti,QuickNodeProvider:to,Web3Provider:tu,IpcProvider:e6},t)}},67998:function(e,t,r){"use strict";function n(e){e=e.slice();for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}r.d(t,{y:function(){return n}})},37121:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return d},encode:function(){return l}});var n=r(29280),i=r(58179);let a=new i.Yd("rlp/5.8.0");function o(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function l(e){return(0,n.Dv)(function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=o(r.length);return n.unshift(247+n.length),n.concat(r)}(0,n.Zq)(t)||a.throwArgumentError("RLP object must be BytesLike","object",t);let r=Array.prototype.slice.call((0,n.lE)(t));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=o(r.length);return i.unshift(183+i.length),i.concat(r)}(e))}function c(e,t,r,n){let o=[];for(;r<t+1+n;){let s=u(e,r);o.push(s.result),(r+=s.consumed)>t+1+n&&a.throwError("child data too short",i.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function u(e,t){if(0===e.length&&a.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&a.throwError("data short segment too short",i.Yd.errors.BUFFER_OVERRUN,{});let n=s(e,t+1,r);return t+1+r+n>e.length&&a.throwError("data long segment too short",i.Yd.errors.BUFFER_OVERRUN,{}),c(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&a.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{}),c(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&a.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{});let o=s(e,t+1,r);t+1+r+o>e.length&&a.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{});let l=(0,n.Dv)(e.slice(t+1+r,t+1+r+o));return{consumed:1+r+o,result:l}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&a.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{});let o=(0,n.Dv)(e.slice(t+1,t+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:(0,n.Dv)(e[t])}}function d(e){let t=(0,n.lE)(e),r=u(t,0);return r.consumed!==t.length&&a.throwArgumentError("invalid rlp data","data",e),r.result}},10772:function(e,t,r){"use strict";r.d(t,{Gy:function(){return f},bP:function(){return c},JQ:function(){return u},o:function(){return d}});var n=r(77118),i=r.n(n),a=r(29280),o=r(80782),s=r(58179);let l=new s.Yd("sha2/5.8.0");function c(e){return"0x"+i().ripemd160().update((0,a.lE)(e)).digest("hex")}function u(e){return"0x"+i().sha256().update((0,a.lE)(e)).digest("hex")}function d(e){return"0x"+i().sha512().update((0,a.lE)(e)).digest("hex")}function f(e,t,r){return o.p[e]||l.throwError("unsupported algorithm "+e,s.Yd.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i().hmac(i()[e],(0,a.lE)(t)).update((0,a.lE)(r)).digest("hex")}},80782:function(e,t,r){"use strict";var n,i;r.d(t,{p:function(){return n}}),(i=n||(n={})).sha256="sha256",i.sha512="sha512"},93200:function(e,t,r){"use strict";r.d(t,{Et:function(){return H},VW:function(){return q},LO:function(){return G}});var n=r(72925),i=r.n(n),a=r(77118),o=r.n(a);function s(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?r.path:t)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var l=c;function c(e,t){if(!e)throw Error(t||"Assertion failed")}c.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var u=s(function(e,t){function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}),d=s(function(e,t){t.assert=l,t.toArray=u.toArray,t.zero2=u.zero2,t.toHex=u.toHex,t.encode=u.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(o=0;o<n.length;o+=1)n[o]=0;var i=1<<t+1,a=e.clone();for(o=0;o<n.length;o++){var o,s,l=a.andln(i-1);a.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,a.isubn(s)):s=0,n[o]=s,a.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,o,s,l=e.andln(3)+n&3,c=t.andln(3)+i&3;3===l&&(l=-1),3===c&&(c=-1),o=(1&l)==0?0:(3==(a=e.andln(7)+n&7)||5===a)&&2===c?-l:l,r[0].push(o),s=(1&c)==0?0:(3==(a=t.andln(7)+i&7)||5===a)&&2===l?-c:c,r[1].push(s),2*n===o+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new(i())(e,"hex","le")}}),f=d.getNAF,p=d.getJSF,h=d.assert;function m(e,t){this.type=e,this.p=new(i())(t.p,16),this.red=t.prime?i().red(t.prime):i().mont(this.p),this.zero=new(i())(0).toRed(this.red),this.one=new(i())(1).toRed(this.red),this.two=new(i())(2).toRed(this.red),this.n=t.n&&new(i())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
1function b(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw Error("Not implemented")},m.prototype.validate=function(){throw Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){h(e.precomputed);var r,n,i=e._getDoubles(),a=f(t,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var s=[];for(r=0;r<a.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+a[l];s.push(n)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=o;d>0;d--){for(r=0;r<s.length;r++)(n=s[r])===d?u=u.mixedAdd(i.points[r]):n===-d&&(u=u.mixedAdd(i.points[r].neg()));c=c.add(u)}return c.toP()},m.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=f(t,r,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;s>=0;s--){for(var l=0;s>=0&&0===a[s];s--)l++;if(s>=0&&l++,o=o.dblp(l),s<0)break;var c=a[s];h(0!==c),o="affine"===e.type?c>0?o.mixedAdd(i[c-1>>1]):o.mixedAdd(i[-c-1>>1].neg()):c>0?o.add(i[c-1>>1]):o.add(i[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,r,n,i){var a,o,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(a=0;a<n;a++){var h=(s=t[a])._getNAFPoints(e);l[a]=h.wnd,c[a]=h.points}for(a=n-1;a>=1;a-=2){var m=a-1,b=a;if(1!==l[m]||1!==l[b]){u[m]=f(r[m],l[m],this._bitLength),u[b]=f(r[b],l[b],this._bitLength),d=Math.max(u[m].length,d),d=Math.max(u[b].length,d);continue}var y=[t[m],null,null,t[b]];0===t[m].y.cmp(t[b].y)?(y[1]=t[m].add(t[b]),y[2]=t[m].toJ().mixedAdd(t[b].neg())):0===t[m].y.cmp(t[b].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[b]),y[2]=t[m].add(t[b].neg())):(y[1]=t[m].toJ().mixedAdd(t[b]),y[2]=t[m].toJ().mixedAdd(t[b].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=p(r[m],r[b]);for(o=0,d=Math.max(v[0].length,d),u[m]=Array(d),u[b]=Array(d);o<d;o++){var w=0|v[0][o],E=0|v[1][o];u[m][o]=g[(w+1)*3+(E+1)],u[b][o]=0,c[m]=y}}var x=this.jpoint(null,null,null),A=this._wnafT4;for(a=d;a>=0;a--){for(var k=0;a>=0;){var P=!0;for(o=0;o<n;o++)A[o]=0|u[o][a],0!==A[o]&&(P=!1);if(!P)break;k++,a--}if(a>=0&&k++,x=x.dblp(k),a<0)break;for(o=0;o<n;o++){var C=A[o];0!==C&&(C>0?s=c[o][C-1>>1]:C<0&&(s=c[o][-C-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(a=0;a<n;a++)c[a]=null;return i?x:x.toP()},m.BasePoint=b,b.prototype.eq=function(){throw Error("Not implemented")},b.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,t){e=d.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?h(e[e.length-1]%2==0):7===e[0]&&h(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},b.prototype.encodeCompressed=function(e){return this.encode(e,!0)},b.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},b.prototype.encode=function(e,t){return d.encode(this._encode(t),e)},b.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},b.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},b.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},b.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},b.prototype._getBeta=function(){return null},b.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var y=s(function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),g=d.assert;function v(e){m.call(this,"short",e),this.a=new(i())(e.a,16).toRed(this.red),this.b=new(i())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function w(e,t,r,n){m.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(i())(t,16),this.y=new(i())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function E(e,t,r,n){m.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(i())(0)):(this.x=new(i())(t,16),this.y=new(i())(r,16),this.z=new(i())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}y(v,m),v.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){
1if(e.beta)t=new(i())(e.beta,16).toRed(this.red);else{var t,r,n,a=this._getEndoRoots(this.p);t=(t=0>a[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new(i())(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],g(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new(i())(e.a,16),b:new(i())(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},v.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i().mont(e),r=new(i())(2).toRed(t).redInvm(),n=r.redNeg(),a=new(i())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(a).fromRed(),n.redSub(a).fromRed()]},v.prototype._getEndoBasis=function(e){for(var t,r,n,a,o,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,p=this.n.clone(),h=new(i())(1),m=new(i())(0),b=new(i())(0),y=new(i())(1),g=0;0!==f.cmpn(0);){var v=p.div(f);c=p.sub(v.mul(f)),u=b.sub(v.mul(h));var w=y.sub(v.mul(m));if(!n&&0>c.cmp(d))t=l.neg(),r=h,n=c.neg(),a=u;else if(n&&2==++g)break;l=c,p=f,f=c,b=h,h=u,y=m,m=w}o=c.neg(),s=u;var E=n.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(E)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:a},{a:o,b:s}]},v.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),l=i.mul(r.b),c=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:l.add(c).neg()}},v.prototype.pointFromX=function(e,t){(e=new(i())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=n.fromRed().isOdd();return(t&&!a||!t&&a)&&(n=n.redNeg()),this.point(e,n)},v.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},v.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],l=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),n[2*a]=s,n[2*a+1]=l,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var c=this._wnafMulAdd(1,n,i,2*a,r),u=0;u<2*a;u++)n[u]=null,i[u]=null;return c},y(w,m.BasePoint),v.prototype.point=function(e,t,r){return new w(this,e,t,r)},v.prototype.pointFromJSON=function(e,t){return w.fromJSON(this,e,t)},w.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},w.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},w.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},w.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},w.prototype.isInfinity=function(){return this.inf},w.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},w.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},w.prototype.getX=function(){return this.x.fromRed()},w.prototype.getY=function(){return this.y.fromRed()},w.prototype.mul=function(e){return(e=new(i())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},w.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},w.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},w.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},w.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
vendor: 4,387 bytes, line 1
1if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},w.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(E,m.BasePoint),v.prototype.jpoint=function(e,t,r){return new E(this,e,t,r)},E.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=a.redSub(o);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),p=l.redMul(d.redISub(f)).redISub(a.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,p,h)},E.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(c)),p=this.z.redMul(o);return this.curve.jpoint(d,f,p)},E.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,l=s.redSqr().redSqr(),c=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),d=c.redSqr(),f=d.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),h=a.redMul(d),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),y=p.redMul(b);y=y.redIAdd(y).redISub(f);var g=c.redMul(s);t+1<e&&(l=l.redMul(f)),a=m,s=g,c=y}return this.curve.jpoint(a,c.redMul(i),s)},E.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},E.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(o).redISub(o),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(o.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(u).redISub(f);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=f.redIAdd(f);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},E.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(o).redISub(o);e=l;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=f.redIAdd(f),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var b=d.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,r)},E.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var p=s.redMul(d).redISub(f),h=r.redAdd(r).redMul(n);return this.curve.jpoint(u,p,h)},E.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,418 bytes, line 1
1var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(c.redMul(l.redISub(c)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var p=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,f,p)},E.prototype.mul=function(e,t){return e=new(i())(e,t),this.curve._wnafMul(this,e)},E.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},E.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},E.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},E.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var x=s(function(e,t){t.base=m,t.short=v,t.mont=null,t.edwards=null}),A=s(function(e,t){var r,n=d.assert;function i(e){"short"===e.type?this.curve=new x.short(e):"edwards"===e.type?this.curve=new x.edwards(e):this.curve=new x.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,a("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:o().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:o().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:o().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:o().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"]}),a("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:o().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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o().sha256,gRed:!1,g:["9"]}),a("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:o().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}a("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:o().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function k(e){if(!(this instanceof k))return new k(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=u.toArray(e.entropy,e.entropyEnc||"hex"),r=u.toArray(e.nonce,e.nonceEnc||"hex"),n=u.toArray(e.pers,e.persEnc||"hex");l(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}k.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},k.prototype._hmac=function(){return new(o()).hmac(this.hash,this.K)},k.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},k.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=u.toArray(e,t),r=u.toArray(r,n),l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},k.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=u.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(r),this._reseed++,u.encode(a,t)};var P=d.assert;function C(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}C.fromPublic=function(e,t,r){return t instanceof C?t:new C(e,{pub:t,pubEnc:r})},C.fromPrivate=function(e,t,r){return t instanceof C?t:new C(e,{priv:t,privEnc:r})},C.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"}},C.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},C.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(e,t){this.priv=new(i())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?P(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&P(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)},C.prototype.derive=function(e){return e.validate()||P(e.validate(),"public point not validated"),e.mul(this.priv).getX()},C.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},C.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var T=d.assert;function _(e,t){if(e instanceof _)return e;this._importDER(e,t)||(T(e.r&&e.s,"Signature without r or s"),this.r=new(i())(e.r,16),this.s=new(i())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function O(){this.place=0}function S(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,a=0,o=t.place;a<n;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function I(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function B(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}_.prototype._importDER=function(e,t){e=d.toArray(e,t);var r=new O;if(48!==e[r.place++])return!1;var n=S(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var a=S(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var o=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var s=S(e,r);if(!1===s||e.length!==s+r.place||(128&e[r.place])!=0)return!1;var l=e.slice(r.place,s+r.place);
1if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new(i())(o),this.s=new(i())(l),this.recoveryParam=null,!0},_.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=I(t),r=I(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];B(n,t.length),(n=n.concat(t)).push(2),B(n,r.length);var i=n.concat(r),a=[48];return B(a,i.length),a=a.concat(i),d.encode(a,e)};var j=function(){throw Error("unsupported")},M=d.assert;function R(e){if(!(this instanceof R))return new R(e);"string"==typeof e&&(M(Object.prototype.hasOwnProperty.call(A,e),"Unknown curve "+e),e=A[e]),e instanceof A.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}R.prototype.keyPair=function(e){return new C(this,e)},R.prototype.keyFromPrivate=function(e,t){return C.fromPrivate(this,e,t)},R.prototype.keyFromPublic=function(e,t){return C.fromPublic(this,e,t)},R.prototype.genKeyPair=function(e){e||(e={});for(var t=new k({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(i())(2));;){var a=new(i())(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},R.prototype._truncateToN=function(e,t,r){if(i().isBN(e)||"number"==typeof e)n=(e=new(i())(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new(i())(e,16);else{var n,a=e.toString();n=a.length+1>>>1,e=new(i())(a,16)}"number"!=typeof r&&(r=8*n);var o=r-this.n.bitLength();return(o>0&&(e=e.ushrn(o)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},R.prototype.sign=function(e,t,r,n){if("object"==typeof r&&(n=r,r=null),n||(n={}),"string"!=typeof e&&"number"!=typeof e&&!i().isBN(e)){M("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),M(e.length>>>0===e.length);for(var a=0;a<e.length;a++)M((255&e[a])===e[a])}t=this.keyFromPrivate(t,r),M(!(e=this._truncateToN(e,!1,n.msgBitLength)).isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),l=e.toArray("be",o);M(new(i())(l).eq(e),"Can not sign message");for(var c=new k({hash:this.hash,entropy:s,nonce:l,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(i())(1)),d=0;;d++){var f=n.k?n.k(d):new(i())(c.generate(this.n.byteLength()));if(!(0>=(f=this._truncateToN(f,!0)).cmpn(1)||f.cmp(u)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var h=p.getX(),m=h.umod(this.n);if(0!==m.cmpn(0)){var b=f.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==h.cmp(m)?2:0);return n.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new _({r:m,s:b,recoveryParam:y})}}}}}},R.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var a,o=(t=new _(t,"hex")).r,s=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var l=s.invm(this.n),c=l.mul(e).umod(this.n),u=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,r.getPublic(),u)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(c,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},R.prototype.recoverPubKey=function(e,t,r,n){M((3&r)===r,"The recovery param is more than two bits"),t=new _(t,n);var a=this.n,o=new(i())(e),s=t.r,l=t.s,c=1&r,u=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var d=t.r.invm(a),f=a.sub(o).mul(d).umod(a),p=l.mul(d).umod(a);return this.g.mulAdd(f,s,p)},R.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new _(t,n)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw Error("Unable to find valid recovery factor")};var N=s(function(e,t){t.version="6.6.1",t.utils=d,t.rand=function(){throw Error("unsupported")},t.curve=x,t.curves=A,t.ec=R,t.eddsa=null}).ec,U=r(29280),z=r(52696);let D=new(r(58179)).Yd("signing-key/5.8.0"),F=null;function L(){return F||(F=new N("secp256k1")),F}class H{constructor(e){(0,z.zG)(this,"curve","secp256k1"),(0,z.zG)(this,"privateKey",(0,U.Dv)(e)),32!==(0,U.E1)(this.privateKey)&&D.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=L().keyFromPrivate((0,U.lE)(this.privateKey));(0,z.zG)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,z.zG)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,z.zG)(this,"_isSigningKey",!0)}_addPoint(e){let t=L().keyFromPublic((0,U.lE)(this.publicKey)),r=L().keyFromPublic((0,U.lE)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}
1signDigest(e){let t=L().keyFromPrivate((0,U.lE)(this.privateKey)),r=(0,U.lE)(e);32!==r.length&&D.throwArgumentError("bad digest length","digest",e);let n=t.sign(r,{canonical:!0});return(0,U.N)({recoveryParam:n.recoveryParam,r:(0,U.$m)("0x"+n.r.toString(16),32),s:(0,U.$m)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){let t=L().keyFromPrivate((0,U.lE)(this.privateKey)),r=L().keyFromPublic((0,U.lE)(q(e)));return(0,U.$m)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function G(e,t){let r=(0,U.N)(t),n={r:(0,U.lE)(r.r),s:(0,U.lE)(r.s)};return"0x"+L().recoverPubKey((0,U.lE)(e),n,r.recoveryParam).encode("hex",!1)}function q(e,t){let r=(0,U.lE)(e);if(32===r.length){let e=new H(r);return t?"0x"+L().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,U.Dv)(r):"0x"+L().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+L().keyFromPublic(r).getPublic(!0,"hex"):(0,U.Dv)(r):D.throwArgumentError("invalid public or private key","key","[REDACTED]")}},84122:function(e,t,r){"use strict";r.d(t,{Uj:function(){return a},te:function(){return u},Uw:function(){return o},U$:function(){return h},uu:function(){return m},Y0:function(){return f},XL:function(){return y},ZN:function(){return b}});var n,i,a,o,s=r(29280);let l=new(r(58179)).Yd("strings/5.8.0");function c(e,t,r,n,i){if(e===o.BAD_PREFIX||e===o.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===o.OVERRUN?r.length-t-1:0}(n=a||(a={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=o||(o={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let u=Object.freeze({error:function(e,t,r,n,i){return l.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:c,replace:function(e,t,r,n,i){return e===o.OVERLONG?(n.push(i),0):(n.push(65533),c(e,t,r,n,i))}});function d(e,t){null==t&&(t=u.error),e=(0,s.lE)(e);let r=[],n=0;for(;n<e.length;){let i=e[n++];if(i>>7==0){r.push(i);continue}let a=null,s=null;if((224&i)==192)a=1,s=127;else if((240&i)==224)a=2,s=2047;else if((248&i)==240)a=3,s=65535;else{(192&i)==128?n+=t(o.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(o.BAD_PREFIX,n-1,e,r);continue}if(n-1+a>=e.length){n+=t(o.OVERRUN,n-1,e,r);continue}let l=i&(1<<8-a-1)-1;for(let i=0;i<a;i++){let i=e[n];if((192&i)!=128){n+=t(o.MISSING_CONTINUE,n,e,r),l=null;break}l=l<<6|63&i,n++}if(null!==l){if(l>1114111){n+=t(o.OUT_OF_RANGE,n-1-a,e,r,l);continue}if(l>=55296&&l<=57343){n+=t(o.UTF16_SURROGATE,n-1-a,e,r,l);continue}if(l<=s){n+=t(o.OVERLONG,n-1-a,e,r,l);continue}r.push(l)}}return r}function f(e,t=a.current){t!=a.current&&(l.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let a=65536+((1023&n)<<10)+(1023&i);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,s.lE)(r)}function p(e){let t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function h(e,t){return'"'+d(e,t).map(e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?p(e):p(((e-=65536)>>10&1023)+55296)+p((1023&e)+56320)}).join("")+'"'}function m(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function b(e,t){return m(d(e,t))}function y(e,t=a.current){return d(f(e,t))}},56973:function(e,t,r){"use strict";r.d(t,{em:function(){return i},z7:function(){return A},db:function(){return v},Qc:function(){return O},RJ:function(){return w},qC:function(){return T}});var n,i,a=r(76621),o=r(71803),s=r(29280),l=r(22403),c=r(34185),u=r(52696),d=r(37121),f=r(93200),p=r(58179);let h=new p.Yd("transactions/5.8.0");function m(e){return"0x"===e?null:(0,a.Kn)(e)}function b(e){return"0x"===e?l._Y:o.O$.from(e)}(n=i||(i={}))[n.legacy=0]="legacy",n[n.eip2930=1]="eip2930",n[n.eip1559=2]="eip1559";let y=[{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"}],g={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){let t=(0,f.VW)(e);return(0,a.Kn)((0,s.p3)((0,c.w)((0,s.p3)(t,1)),12))}function w(e,t){return v((0,f.LO)((0,s.lE)(e),t))}function E(e,t){let r=(0,s.G1)(o.O$.from(e).toHexString());return r.length>32&&h.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function x(e,t){return{address:(0,a.Kn)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,s.E1)(t)&&h.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function A(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&h.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),x(e[0],e[1])):x(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>
1(e[t]=!0,e),{});return x(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function k(e){return A(e).map(e=>[e.address,e.storageKeys])}function P(e,t){if(null!=e.gasPrice){let t=o.O$.from(e.gasPrice),r=o.O$.from(e.maxFeePerGas||0);t.eq(r)||h.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.Kn)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){let e=(0,s.N)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,s.G1)(e.r)),r.push((0,s.G1)(e.s))}return(0,s.xs)(["0x02",d.encode(r)])}function C(e,t){let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.Kn)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){let e=(0,s.N)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,s.G1)(e.r)),r.push((0,s.G1)(e.s))}return(0,s.xs)(["0x01",d.encode(r)])}function T(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&h.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.uj)(e,g);let r=[];y.forEach(function(t){let n=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),n=(0,s.lE)((0,s.Dv)(n,i)),t.length&&n.length!==t.length&&n.length>0&&h.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,s.G1)(n)).length>t.maxLength&&h.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,s.Dv)(n))});let n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&h.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,s.Zq)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,s.Dv)(n)),r.push("0x"),r.push("0x")),!t)return d.encode(r);let i=(0,s.N)(t),a=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),a+=2*n+8,i.v>28&&i.v!==a&&h.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&h.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,s.Dv)(a)),r.push((0,s.G1)((0,s.lE)(i.r))),r.push((0,s.G1)((0,s.lE)(i.s))),d.encode(r)}(e,t);switch(e.type){case 1:return C(e,t);case 2:return P(e,t)}return h.throwError(`unsupported transaction type: ${e.type}`,p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function _(e,t,r){try{let r=b(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){h.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,s.$m)(t[1],32),e.s=(0,s.$m)(t[2],32);try{let t=(0,c.w)(r(e));e.from=w(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function O(e){let t=(0,s.lE)(e);if(t[0]>127)return function(e){let t=d.decode(e);9!==t.length&&6!==t.length&&h.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:b(t[0]).toNumber(),gasPrice:b(t[1]),gasLimit:b(t[2]),to:m(t[3]),value:b(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.O$.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,s.$m)(t[7],32),r.s=(0,s.$m)(t[8],32),o.O$.from(r.r).isZero()&&o.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,s.Dv)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let a=(0,c.w)(d.encode(i));try{r.from=w(a,{r:(0,s.Dv)(r.r),s:(0,s.Dv)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,c.w)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=d.decode(e.slice(1));8!==t.length&&11!==t.length&&h.throwArgumentError("invalid component count for transaction type: 1","payload",(0,s.Dv)(e));let r={type:1,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),gasPrice:b(t[2]),gasLimit:b(t[3]),to:m(t[4]),value:b(t[5]),data:t[6],accessList:A(t[7])};return 8===t.length||(r.hash=(0,c.w)(e),_(r,t.slice(8),C)),r}(t);case 2:return function(e){let t=d.decode(e.slice(1));9!==t.length&&12!==t.length&&h.throwArgumentError("invalid component count for transaction type: 2","payload",(0,s.Dv)(e));
1let r=b(t[2]),n=b(t[3]),i={type:2,chainId:b(t[0]).toNumber(),nonce:b(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:b(t[4]),to:m(t[5]),value:b(t[6]),data:t[7],accessList:A(t[8])};return 9===t.length||(i.hash=(0,c.w)(e),_(i,t.slice(9),P)),i}(t)}return h.throwError(`unsupported transaction type: ${t[0]}`,p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},65712:function(e,t,r){"use strict";r.d(t,{MY:function(){return d},rd:function(){return f},$l:function(){return p}});var n=r(97393),i=r(29280),a=r(52696),o=r(84122),s=r(58179);let l=new s.Yd("web/5.8.0");function c(e){return new Promise(t=>{setTimeout(t,e)})}function u(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.Zq)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,o.ZN)(e)}catch(e){}return(0,i.Dv)(e)}return e}function d(e,t,r){let d;let f="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(f>0&&f%1==0,"invalid connection throttle limit","connection.throttleLimit",f);let p="object"==typeof e?e.throttleCallback:null,h="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(h>0&&h%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",h);let m="object"==typeof e&&!!e.errorPassThrough,b={},y=null,g={method:"GET"},v=!1,w=12e4;if("string"==typeof e)y=e;else if("object"==typeof e){if((null==e||null==e.url)&&l.throwArgumentError("missing URL","connection.url",e),y=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(let t in e.headers)b[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(v=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==y.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",s.Yd.errors.INVALID_ARGUMENT,{argument:"url",url:y,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;b.authorization={key:"Authorization",value:"Basic "+(0,n.c)((0,o.Y0)(t))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,a.DC)(e.fetchOptions))}let E=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),x=y?y.match(E):null;if(x)try{var A;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":x[1]||"text/plain"},body:x[2]?(0,n.J)(x[3]):(A=x[3],(0,o.Y0)(A.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){l.throwError("processing response error",s.Yd.errors.SERVER_ERROR,{body:u(x[1],x[2]),error:e,requestBody:null,requestMethod:"GET",url:y})}t&&(g.method="POST",g.body=t,null==b["content-type"]&&(b["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==b["content-length"]&&(b["content-length"]={key:"Content-Length",value:String(t.length)}));let k={};Object.keys(b).forEach(e=>{let t=b[e];k[t.key]=t.value}),g.headers=k;let P=(d=null,{promise:new Promise(function(e,t){w&&(d=setTimeout(()=>{null!=d&&(d=null,t(l.makeError("timeout",s.Yd.errors.TIMEOUT,{requestBody:u(g.body,k["content-type"]),requestMethod:g.method,timeout:w,url:y})))},w))}),cancel:function(){null!=d&&(clearTimeout(d),d=null)}}),C=function(){var e,t,n,a;return e=this,t=void 0,n=void 0,a=function*(){for(let e=0;e<f;e++){let t=null;try{if(t=yield function(e,t){var r,n,a,o;return r=this,n=void 0,a=void 0,o=function*(){null==t&&(t={});let r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};
1if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let n=yield fetch(e,r),a=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach((e,t)=>{o[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{o[e.toLowerCase()]=n.headers.get(e)}),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:(0,i.lE)(new Uint8Array(a))}},new(a||(a=Promise))(function(e,t){function i(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(i,s)}l((o=o.apply(r,n||[])).next())})}(y,g),e<f){if(301===t.statusCode||302===t.statusCode){let e=t.headers.location||"";if("GET"===g.method&&e.match(/^https:/)){y=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(p&&(r=yield p(e,y)),r){let r=0,n=t.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):h*parseInt(String(Math.random()*Math.pow(2,e))),yield c(r);continue}}}}catch(e){null==(t=e.response)&&(P.cancel(),l.throwError("missing response",s.Yd.errors.SERVER_ERROR,{requestBody:u(g.body,k["content-type"]),requestMethod:g.method,serverError:e,url:y}))}let n=t.body;if(v&&304===t.statusCode?n=null:!m&&(t.statusCode<200||t.statusCode>=300)&&(P.cancel(),l.throwError("bad response",s.Yd.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:u(n,t.headers?t.headers["content-type"]:null),requestBody:u(g.body,k["content-type"]),requestMethod:g.method,url:y})),r)try{let e=yield r(n,t);return P.cancel(),e}catch(r){if(r.throttleRetry&&e<f){let t=!0;if(p&&(t=yield p(e,y)),t){let t=h*parseInt(String(Math.random()*Math.pow(2,e)));yield c(t);continue}}P.cancel(),l.throwError("processing response error",s.Yd.errors.SERVER_ERROR,{body:u(n,t.headers?t.headers["content-type"]:null),error:r,requestBody:u(g.body,k["content-type"]),requestMethod:g.method,url:y})}return P.cancel(),n}return l.throwError("failed response",s.Yd.errors.SERVER_ERROR,{requestBody:u(g.body,k["content-type"]),requestMethod:g.method,url:y})},new(n||(n=Promise))(function(r,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((a=a.apply(e,t||[])).next())})}();return Promise.race([P.promise,C])}function f(e,t,r){let n=null;if(null!=t){n=(0,o.Y0)(t);let r="string"==typeof e?{url:e}:(0,a.DC)(e);r.headers?0!==Object.keys(r.headers).filter(e=>"content-type"===e.toLowerCase()).length||(r.headers=(0,a.DC)(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},e=r}return d(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,o.ZN)(e))}catch(t){l.throwError("invalid JSON",s.Yd.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function p(e,t){return t||(t={}),null==(t=(0,a.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,a=!1,o=()=>!a&&(a=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{o()&&n(Error("timeout"))},t.timeout));let s=t.retryLimit,l=0;!function i(){return e().then(function(e){if(void 0!==e)o()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!a){if(++l>s){o()&&n(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){o()&&n(e)})}()})}},18046:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=o,t.createCurve=function(e,t){let r=t=>(0,a.weierstrass)({...e,...o(t)});return{...r(t),create:r}};let n=r(50602),i=r(21415),a=r(91366);function o(e){return{hash:e,hmac:(t,...r)=>
1(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}},92321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:s,hasPrecomputes:e=>1!==m(e),unsafeLadder(t,r,n=e.ZERO){let i=t;for(;r>a;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(e,r){let{windows:n,windowSize:i}=c(r,t),a=[],o=e,s=o;for(let e=0;e<n;e++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(r,n,i){let a=e.ZERO,o=e.BASE,l=c(r,t);for(let e=0;e<l.windows;e++){let{nextN:t,offset:r,isZero:c,isNeg:d,isNegF:f,offsetF:p}=u(i,e,l);i=t,c?o=o.add(s(f,n[p])):a=a.add(s(d,n[r]))}return{p:a,f:o}},wNAFUnsafe(r,n,i,o=e.ZERO){let s=c(r,t);for(let e=0;e<s.windows&&i!==a;e++){let{nextN:t,offset:r,isZero:a,isNeg:l}=u(i,e,s);if(i=t,!a){let e=n[r];o=o.add(l?e.negate():e)}}return o},getPrecomputes(e,t,r){let n=p.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&p.set(t,r(n))),n},wNAFCached(e,t,r){let n=m(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let i=m(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){l(r,t),h.set(e,r),p.delete(e)}}},t.pippenger=function(e,t,r,n){d(r,e),f(n,t);let a=r.length,o=n.length;if(a!==o)throw Error("arrays of points and scalars must have equal length");let s=e.ZERO,l=(0,i.bitLen)(BigInt(a)),c=1;l>12?c=l-3:l>4?c=l-2:l>0&&(c=2);let u=(0,i.bitMask)(c),p=Array(Number(u)+1).fill(s),h=Math.floor((t.BITS-1)/c)*c,m=s;for(let e=h;e>=0;e-=c){p.fill(s);for(let t=0;t<o;t++){let i=Number(n[t]>>BigInt(e)&u);p[i]=p[i].add(r[t])}let t=s;for(let e=p.length-1,r=s;e>0;e--)r=r.add(p[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<c;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,n){l(n,t.BITS),d(r,e);let a=e.ZERO,o=2**n-1,s=Math.ceil(t.BITS/n),c=(0,i.bitMask)(n),u=r.map(e=>{let t=[];for(let r=0,n=e;r<o;r++)t.push(n),n=n.add(e);return t});return e=>{if(f(e,t),e.length>r.length)throw Error("array of scalars must be smaller than array of points");let i=a;for(let t=0;t<s;t++){if(i!==a)for(let e=0;e<n;e++)i=i.double();let r=BigInt(s*n-(t+1)*n);for(let t=0;t<e.length;t++){let n=Number(e[t]>>r&c);n&&(i=i.add(u[t][n-1]))}}return i}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};let n=r(20952),i=r(70090),a=BigInt(0),o=BigInt(1);function s(e,t){let r=t.negate();return e?r:t}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function c(e,t){l(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),a=2**e;return{windows:r,windowSize:n,mask:(0,i.bitMask)(e),maxNumber:a,shiftBy:BigInt(e)}}function u(e,t,r){let{windowSize:n,mask:i,maxNumber:a,shiftBy:s}=r,l=Number(e&i),c=e>>s;l>n&&(l-=a,c+=o);let u=t*n,d=u+Math.abs(l)-1;return{nextN:c,offset:d,isZero:0===l,isNeg:l<0,isNegF:t%2!=0,offsetF:u}}function d(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}function f(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}let p=new WeakMap,h=new WeakMap;function m(e){return h.get(e)||1}},42292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=l,t.expand_message_xof=c,t.hash_to_field=u,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,i)=>{let[a,o,s,l]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[c,u]=(0,n.FpInvertBatch)(e,[o,l],!0);return t=e.mul(a,c),i=e.mul(i,e.mul(s,u)),{x:t,y:i}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");function n(r){return e.fromAffine(t(r))}function i(t){let r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){let a=u(e,2,{...r,DST:r.DST,...t}),o=n(a[0]),s=n(a[1]);return i(o.add(s))},encodeToCurve:(e,t)=>
1i(n(u(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw Error("expected array of bigints");for(let t of e)if("bigint"!=typeof t)throw Error("expected array of bigints");return i(n(e))}}};let n=r(20952),i=r(70090),a=i.bytesToNumberBE;function o(e,t){if(s(e),s(t),e<0||e>=1<<8*t)throw Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function l(e,t,r,n){(0,i.abytes)(e),(0,i.abytes)(t),s(r),t.length>255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:a,blockLen:l}=n,c=Math.ceil(r/a);if(r>65535||c>255)throw Error("expand_message_xmd: invalid lenInBytes");let u=(0,i.concatBytes)(t,o(t.length,1)),d=o(0,l),f=o(r,2),p=Array(c),h=n((0,i.concatBytes)(d,e,f,o(0,1),u));p[0]=n((0,i.concatBytes)(h,o(1,1),u));for(let e=1;e<=c;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(h,p[e-1]),o(e+1,1),u];p[e]=n((0,i.concatBytes)(...t))}return(0,i.concatBytes)(...p).slice(0,r)}function c(e,t,r,n,a){if((0,i.abytes)(e),(0,i.abytes)(t),s(r),t.length>255&&(t=a.create({dkLen:Math.ceil(2*n/8)}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function u(e,t,r){let o;(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:u,k:d,m:f,hash:p,expand:h,DST:m}=r;(0,i.abytes)(e),s(t);let b="string"==typeof m?(0,i.utf8ToBytes)(m):m,y=Math.ceil((u.toString(2).length+d)/8),g=t*f*y;if("xmd"===h)o=l(e,b,g,p);else if("xof"===h)o=c(e,b,g,d,p);else if("_internal_pass"===h)o=e;else throw Error('expand must be "xmd" or "xof"');let v=Array(t);for(let e=0;e<t;e++){let t=Array(f);for(let r=0;r<f;r++){let i=y*(r+e*f),s=o.subarray(i,i+y);t[r]=(0,n.mod)(a(s),u)}v[e]=t}return v}},20952:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=f,t.pow=function(e,t,r){return v(A(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},t.invert=p,t.tonelliShanks=b,t.FpSqrt=y,t.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.validateObject)(e,t)},t.FpPow=v,t.FpInvertBatch=w,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?p(r,e.ORDER):e.inv(r))},t.FpLegendre=E,t.FpIsSquare=function(e,t){return 1===E(e,t)},t.nLength=x,t.Field=A,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let n=(e=(0,i.ensureBytes)("privateHash",e)).length,a=x(t).nByteLength+8;if(a<24||n<a||n>1024)throw Error("hashToPrivateScalar: expected "+a+"-1024 bytes of input, got "+n);return f(r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=k,t.getMinHashLength=P,t.mapHashToField=function(e,t,r=!1){let n=e.length,a=k(t),s=P(t);if(n<16||n<s||n>1024)throw Error("expected "+s+"-1024 bytes of input, got "+n);let l=f(r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e),t-o)+o;return r?(0,i.numberToBytesLE)(l,a):(0,i.numberToBytesBE)(l,a)};let n=r(21415),i=r(70090),a=BigInt(0),o=BigInt(1),s=BigInt(2),l=BigInt(3),c=BigInt(4),u=BigInt(5),d=BigInt(8);function f(e,t){let r=e%t;return r>=a?r:t+r}function p(e,t){if(e===a)throw Error("invert: expected non-zero number");if(t<=a)throw Error("invert: expected positive modulus, got "+t);let r=f(e,t),n=t,i=a,s=o,l=o,c=a;for(;r!==a;){let e=n/r,t=n%r,a=i-l*e,o=s-c*e;n=r,r=t,i=l,s=c,l=a,c=o}if(n!==o)throw Error("invert: does not exist");return f(i,t)}function h(e,t){let r=(e.ORDER+o)/c,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw Error("Cannot find square root");return n}function m(e,t){let r=(e.ORDER-u)/d,n=e.mul(t,s),i=e.pow(n,r),a=e.mul(t,i),o=e.mul(e.mul(a,s),i),l=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(l),t))throw Error("Cannot find square root");return l}function b(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-o,r=0;for(;t%s===a;)t/=s,r++;let n=s,i=A(e);for(;1===E(i,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return h;let l=i.pow(n,t),c=(t+o)/s;return function(e,n){if(e.is0(n))return n;if(1!==E(e,n))throw Error("Cannot find square root");let i=r,a=e.mul(e.ONE,l),s=e.pow(n,t),u=e.pow(n,c);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=o<<BigInt(i-t-1),l=e.pow(a,n);i=t,a=e.sqr(l),s=e.mul(s,a),u=e.mul(u,l)}return u}}function y(e){return e%c===l?h:e%d===u?m:b(e)}t.isNegativeLE=(e,t)=>(f(e,t)&o)===o;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e,t,r){if(r<a)throw Error("invalid exponent, negatives unsupported");if(r===a)return e.ONE;if(r===o)return t;let n=e.ONE,i=t;for(;r>a;)r&o&&(n=e.mul(n,i)),i=e.sqr(i),r>>=o;return n}function w(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),a=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),a),n}function E(e,t){let r=(e.ORDER-o)/s,n=e.pow(t,r),i=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),l=e.eql(n,e.neg(e.ONE));if(!i&&!a&&!l)throw Error("invalid Legendre symbol result");return i?1:a?0:-1}function x(e,t){void 0!==t&&(0,n.anumber)(t);let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function A(e,t,r=!1,n={}){let s;if(e<=a)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:l,nByteLength:c}=x(e,t);if(c>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let u=Object.freeze({ORDER:e,isLE:r,BITS:l,BYTES:c,MASK:(0,i.bitMask)(l),ZERO:a,ONE:o,create:t=>f(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return a<=t&&t<e},is0:e=>e===a,isOdd:e=>(e&o)===o,neg:t=>f(-t,e),eql:(e,t)=>
1e===t,sqr:t=>f(t*t,e),add:(t,r)=>f(t+r,e),sub:(t,r)=>f(t-r,e),mul:(t,r)=>f(t*r,e),pow:(e,t)=>v(u,e,t),div:(t,r)=>f(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:n.sqrt||(t=>(s||(s=y(e)),s(u,t))),toBytes:e=>r?(0,i.numberToBytesLE)(e,c):(0,i.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return r?(0,i.bytesToNumberLE)(e):(0,i.bytesToNumberBE)(e)},invertBatch:e=>w(u,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(u)}function k(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function P(e){let t=k(e);return t+Math.ceil(t/2)}},70090:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=i,t.abytes=a,t.abool=function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=o,t.hexToNumber=s,t.bytesToHex=u,t.hexToBytes=p,t.bytesToNumberBE=function(e){return s(u(e))},t.bytesToNumberLE=function(e){return a(e),s(u(Uint8Array.from(e).reverse()))},t.numberToBytesBE=h,t.numberToBytesLE=function(e,t){return h(e,t).reverse()},t.numberToVarBytesBE=function(e){return p(o(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(i(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=n.length;if("number"==typeof r&&a!==r)throw Error(e+" of length "+r+" expected, got "+a);return n},t.concatBytes=m,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.utf8ToBytes=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))},t.inRange=y,t.aInRange=function(e,t,r,n){if(!y(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n},t.bitSet=function(e,t,i){return e|(i?n:r)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=g(e),i=g(e),a=0,o=()=>{n.fill(1),i.fill(0),a=0},s=(...e)=>r(i,n,...e),l=(e=g(0))=>{i=s(v([0]),e),n=s(),0!==e.length&&(i=s(v([1]),e),n=s())},c=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return m(...r)};return(e,t)=>{let r;for(o(),l(e);!(r=t(c()));)l();return o(),r}},t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let i=w[r];if("function"!=typeof i)throw Error("invalid validator function");let a=e[t];if((!n||void 0!==a)&&!i(a,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e},t.memoized=function(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let a=e(r,...n);return t.set(r,a),a}};let r=BigInt(0),n=BigInt(1);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!i(e))throw Error("Uint8Array expected")}function o(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function s(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}let l="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){if(a(e),l)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}let d={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=f(e.charCodeAt(i)),a=f(e.charCodeAt(i+1));if(void 0===r||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+a}return n}function h(e,t){return p(e.toString(16).padStart(2*t,"0"))}function m(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];a(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}let b=e=>"bigint"==typeof e&&r<=e;function y(e,t,r){return b(e)&&b(t)&&b(r)&&t<=e&&e<r}t.bitMask=e=>(n<<BigInt(e))-n;let g=e=>new Uint8Array(e),v=e=>Uint8Array.from(e),w={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||i(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw Error("not implemented")}},91366:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=h,t.weierstrass=function(e){let r=function(e){let t=(0,n.validateBasic)(e);return(0,a.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:d,nByteLength:f,nBitLength:p}=r,m=s.BYTES+1,b=2*s.BYTES+1;function y(e){return(0,i.mod)(e,d)}function g(e){return(0,i.invert)(e,d)}let{ProjectivePoint:v,normPrivateKeyToScalar:w,weierstrassEquation:E,isWithinCurveOrder:x}=h({...r,toBytes(e,t,r){let n=t.toAffine(),i=s.toBytes(n.x),o=a.concatBytes;return((0,a.abool)("isCompressed",r),r)?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,s.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===m&&(2===r||3===r)){let e;let t=(0,a.bytesToNumberBE)(n);if(!(0,a.inRange)(t,u,s.ORDER))throw Error("Point is not on curve");let i=E(t);try{e=s.sqrt(i)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&u)===u)&&(e=s.neg(e)),{x:t,y:e}}if(t===b&&4===r)return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))};throw Error("invalid Point, expected length of "+m+", or uncompressed "+b+", got "+t)}}),A=(e,t,r)=>(0,a.bytesToNumberBE)(e.slice(t,r));class k{constructor(e,t,r){(0,a.aInRange)("r",e,u,d),(0,a.aInRange)("s",t,u,d),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){return new k(A(e=(0,a.ensureBytes)("compactSignature",e,2*f),0,f),A(e,f,2*f))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new k(r,n)}assertValidity(){}addRecoveryBit(e){return new k(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:i}=this,o=T((0,a.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw Error("recovery id invalid");let c=2===i||3===i?t+r.n:t;if(c>=s.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&i)==0?"02":"03",d=v.fromHex(u+l(c,s.BYTES)),f=g(c),p=y(-o*f),h=y(n*f),m=v.BASE.multiplyAndAddUnsafe(d,p,h);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>d>>u}normalizeS(){return this.hasHighS()?new k(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return(0,a.hexToBytes)(this.toDERHex())}toDERHex(){return t.DER.hexFromSig(this)}toCompactRawBytes(){return(0,a.hexToBytes)(this.toCompactHex())}toCompactHex(){return l(this.r,f)+l(this.s,f)}}function P(e){if("bigint"==typeof e)return!1;if(e instanceof v)return!0;let t=(0,a.ensureBytes)("key",e).length,n=s.BYTES,i=n+1;if(!r.allowedPrivateKeyLengths&&f!==i)return t===i||t===2*n+1}let C=r.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,a.bytesToNumberBE)(e),r=8*e.length-p;return r>0?t>>BigInt(r):t},T=r.bits2int_modN||function(e){return y(C(e))},_=(0,a.bitMask)(p);function O(e){return(0,a.aInRange)("num < 2^"+p,e,c,_),(0,a.numberToBytesBE)(e,f)}let S={lowS:r.lowS,prehash:!1},I={lowS:r.lowS,prehash:!1};return v.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return v.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===P(e))throw Error("first arg must be private key");if(!1===P(t))throw Error("second arg must be public key");return v.fromHex(t).multiply(w(e)).toRawBytes(r)},sign:function(e,t,n=S){let{seed:i,k2sig:l}=function(e,t,n=S){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:i,randomBytes:l}=r,{lowS:f,prehash:p,extraEntropy:h}=n;null==f&&(f=!0),e=(0,a.ensureBytes)("msgHash",e),o(n),p&&(e=(0,a.ensureBytes)("prehashed msgHash",i(e)));let m=T(e),b=w(t),E=[O(b),O(m)];if(null!=h&&!1!==h){let e=!0===h?l(s.BYTES):h;E.push((0,a.ensureBytes)("extraEntropy",e))}return{seed:(0,a.concatBytes)(...E),k2sig:function(e){let t=C(e);if(!x(t))return;let r=g(t),n=v.BASE.multiply(t).toAffine(),i=y(n.x);if(i===c)return;let a=y(r*y(m+i*b));if(a===c)return;let o=(n.x===i?0:2)|Number(n.y&u),s=a;if(f&&a>d>>u)s=a>d>>u?y(-a):a,o^=1;return new k(i,s,o)}}}(e,t,n);return(0,a.createHmacDrbg)(r.hash.outputLen,r.nByteLength,r.hmac)(i,l)},verify:function(e,n,i,s=I){let l,c;n=(0,a.ensureBytes)("msgHash",n),i=(0,a.ensureBytes)("publicKey",i);let{lowS:u,prehash:d,format:f}=s;if(o(s),"strict"in s)throw Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw Error("format must be compact or der");
1let p="string"==typeof e||(0,a.isBytes)(e),h=!p&&!f&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!p&&!h)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(h&&(c=new k(e.r,e.s)),p){try{"compact"!==f&&(c=k.fromDER(e))}catch(e){if(!(e instanceof t.DER.Err))throw e}c||"der"===f||(c=k.fromCompact(e))}l=v.fromHex(i)}catch(e){return!1}if(!c||u&&c.hasHighS())return!1;d&&(n=r.hash(n));let{r:m,s:b}=c,w=T(n),E=g(b),x=y(w*E),A=y(m*E),P=v.BASE.multiplyAndAddUnsafe(l,x,A)?.toAffine();return!!P&&y(P.x)===m},ProjectivePoint:v,Signature:k,utils:{isValidPrivateKey(e){try{return w(e),!0}catch(e){return!1}},normPrivateKeyToScalar:w,randomPrivateKey:()=>{let e=(0,i.getMinHashLength)(r.n);return(0,i.mapHashToField)(r.randomBytes(e),r.n)},precompute:(e=8,t=v.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if((0,i.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=m(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let a,o,s,l,c,u,d,f;a=e.sqr(n),a=e.mul(a,t.Z),o=e.sqr(a),o=e.add(o,a),s=e.add(o,e.ONE),s=e.mul(s,t.B),l=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),l=e.mul(l,t.A),o=e.sqr(s),u=e.sqr(l),c=e.mul(u,t.A),o=e.add(o,c),o=e.mul(o,s),u=e.mul(u,l),c=e.mul(u,t.B),o=e.add(o,c),d=e.mul(a,s);let{isValid:p,value:h}=r(o,u);f=e.mul(a,n),f=e.mul(f,h),d=e.cmov(d,s,p),f=e.cmov(f,h,p);let m=e.isOdd(n)===e.isOdd(f);f=e.cmov(e.neg(f),f,m);let b=(0,i.FpInvertBatch)(e,[l],!0)[0];return{x:d=e.mul(d,b),y:f}}};let n=r(92321),i=r(20952),a=r(70090);function o(e){void 0!==e.lowS&&(0,a.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,a.abool)("prehash",e.prehash)}class s extends Error{constructor(e=""){super(e)}}function l(e,t){return(0,a.bytesToHex)((0,a.numberToBytesBE)(e,t))}t.DERErr=s,t.DER={Err:s,_tlv:{encode:(e,r)=>{let{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");let i=r.length/2,o=(0,a.numberToHexUnpadded)(i);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let s=i>127?(0,a.numberToHexUnpadded)(o.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+o+r},decode(e,r){let{Err:n}=t.DER,i=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[i++]!==e)throw new n("tlv.decode: wrong tlv");let a=r[i++],o=0;if(128&a){let e=127&a;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let t=r.subarray(i,i+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of t)o=o<<8|e;if(i+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=a;let s=r.subarray(i,i+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(i+o)}}},_int:{encode(e){let{Err:r}=t.DER;if(e<c)throw new r("integer: negative integers are not allowed");let n=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){let{Err:r,_int:n,_tlv:i}=t.DER,o=(0,a.ensureBytes)("signature",e),{v:s,l:l}=i.decode(48,o);if(l.length)throw new r("invalid signature: left bytes after parsing");let{v:c,l:u}=i.decode(2,s),{v:d,l:f}=i.decode(2,u);if(f.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:r,_int:n}=t.DER,i=r.encode(2,n.encode(e.r)),a=r.encode(2,n.encode(e.s));return r.encode(48,i+a)}};let c=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(3),p=BigInt(4);function h(e){let t=function(e){let t=(0,n.validateBasic)(e);(0,a.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:i,a:o}=t;if(r){if(!i.eql(o,i.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=t,o=(0,i.Field)(t.n,t.nBitLength),s=t.toBytes||((e,t,n)=>{let i=t.toAffine();return(0,a.concatBytes)(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),l=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:n,b:i}
1=t,a=r.sqr(e),o=r.mul(a,e);return r.add(r.add(o,r.mul(e,n)),i)}function h(e,t){let n=r.sqr(t),i=d(e);return r.eql(n,i)}if(!h(t.Gx,t.Gy))throw Error("bad curve params: generator point");let m=r.mul(r.pow(t.a,f),p),b=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(m,b)))throw Error("bad curve params: a or b");function y(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:s,n:l}=t;if(n&&"bigint"!=typeof e){if((0,a.isBytes)(e)&&(e=(0,a.bytesToHex)(e)),"string"!=typeof e||!n.includes(e.length))throw Error("invalid private key");e=e.padStart(2*o,"0")}try{r="bigint"==typeof e?e:(0,a.bytesToNumberBE)((0,a.ensureBytes)("private key",e,o))}catch(t){throw Error("invalid private key, expected hex or "+o+" bytes, got "+typeof e)}return s&&(r=(0,i.mod)(r,l)),(0,a.aInRange)("private key",r,u,l),r}function g(e){if(!(e instanceof E))throw Error("ProjectivePoint expected")}let v=(0,a.memoized)((e,t)=>{let{px:n,py:i,pz:a}=e;if(r.eql(a,r.ONE))return{x:n,y:i};let o=e.is0();null==t&&(t=o?r.ONE:r.inv(a));let s=r.mul(n,t),l=r.mul(i,t),c=r.mul(a,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),w=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw Error("bad point: x or y not FE");if(!h(n,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class E{constructor(e,t,n){if(null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof E)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?E.ZERO:new E(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=(0,i.FpInvertBatch)(r,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(E.fromAffine)}static fromHex(e){let t=E.fromAffine(l((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return E.BASE.multiply(y(e))}static msm(e,t){return(0,n.pippenger)(E,o,e,t)}_setWindowSize(e){k.setWindowSize(this,e)}assertValidity(){w(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){g(e);let{px:t,py:n,pz:i}=this,{px:a,py:o,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(a,i)),c=r.eql(r.mul(n,s),r.mul(o,i));return l&&c}negate(){return new E(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,f),{px:a,py:o,pz:s}=this,l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(a,a),p=r.mul(o,o),h=r.mul(s,s),m=r.mul(a,o);return m=r.add(m,m),u=r.mul(a,s),u=r.add(u,u),l=r.mul(e,u),c=r.mul(i,h),c=r.add(l,c),l=r.sub(p,c),c=r.add(p,c),c=r.mul(l,c),l=r.mul(m,l),u=r.mul(i,u),h=r.mul(e,h),m=r.sub(d,h),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,h),d=r.mul(d,m),c=r.add(c,d),h=r.mul(o,s),h=r.add(h,h),d=r.mul(h,m),l=r.sub(l,d),u=r.mul(h,p),u=r.add(u,u),new E(l,c,u=r.add(u,u))}add(e){g(e);let{px:n,py:i,pz:a}=this,{px:o,py:s,pz:l}=e,c=r.ZERO,u=r.ZERO,d=r.ZERO,p=t.a,h=r.mul(t.b,f),m=r.mul(n,o),b=r.mul(i,s),y=r.mul(a,l),v=r.add(n,i),w=r.add(o,s);v=r.mul(v,w),w=r.add(m,b),v=r.sub(v,w),w=r.add(n,a);let x=r.add(o,l);return w=r.mul(w,x),x=r.add(m,y),w=r.sub(w,x),x=r.add(i,a),c=r.add(s,l),x=r.mul(x,c),c=r.add(b,y),x=r.sub(x,c),d=r.mul(p,w),c=r.mul(h,y),d=r.add(c,d),c=r.sub(b,d),d=r.add(b,d),u=r.mul(c,d),b=r.add(m,m),b=r.add(b,m),y=r.mul(p,y),w=r.mul(h,w),b=r.add(b,y),y=r.sub(m,y),y=r.mul(p,y),w=r.add(w,y),m=r.mul(b,w),u=r.add(u,m),m=r.mul(x,w),c=r.mul(v,c),c=r.sub(c,m),m=r.mul(v,b),d=r.mul(x,d),new E(c,u,d=r.add(d,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(E.ZERO)}wNAF(e){return k.wNAFCached(this,e,E.normalizeZ)}multiplyUnsafe(e){let{endo:n,n:i}=t;(0,a.aInRange)("scalar",e,c,i);let o=E.ZERO;if(e===c)return o;if(this.is0()||e===u)return this;if(!n||k.hasPrecomputes(this))return k.wNAFCachedUnsafe(this,e,E.normalizeZ);
1let{k1neg:s,k1:l,k2neg:d,k2:f}=n.splitScalar(e),p=o,h=o,m=this;for(;l>c||f>c;)l&u&&(p=p.add(m)),f&u&&(h=h.add(m)),m=m.double(),l>>=u,f>>=u;return s&&(p=p.negate()),d&&(h=h.negate()),h=new E(r.mul(h.px,n.beta),h.py,h.pz),p.add(h)}multiply(e){let n,i;let{endo:o,n:s}=t;if((0,a.aInRange)("scalar",e,u,s),o){let{k1neg:t,k1:a,k2neg:s,k2:l}=o.splitScalar(e),{p:c,f:u}=this.wNAF(a),{p:d,f:f}=this.wNAF(l);c=k.constTimeNegate(t,c),d=k.constTimeNegate(s,d),d=new E(r.mul(d.px,o.beta),d.py,d.pz),n=c.add(d),i=u.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return E.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=E.BASE,i=(e,t)=>t!==c&&t!==u&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,r));return a.is0()?void 0:a}toAffine(e){return v(this,e)}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(E,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===u?this:r?r(E,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,a.abool)("isCompressed",e),this.assertValidity(),s(E,this,e)}toHex(e=!0){return(0,a.abool)("isCompressed",e),(0,a.bytesToHex)(this.toRawBytes(e))}}E.BASE=new E(t.Gx,t.Gy,r.ONE),E.ZERO=new E(r.ZERO,r.ONE,r.ZERO);let{endo:x,nBitLength:A}=t,k=(0,n.wNAF)(E,x?Math.ceil(A/2):A);return{CURVE:t,ProjectivePoint:E,normPrivateKeyToScalar:y,weierstrassEquation:d,isWithinCurveOrder:function(e){return(0,a.inRange)(e,u,t.n)}}}function m(e,t){let r=e.ORDER,n=c;for(let e=r-u;e%d===c;e/=d)n+=u;let i=n,a=d<<i-u-u,o=a*d,s=(r-u)/o,l=(s-u)/d,h=o-u,m=e.pow(t,s),b=e.pow(t,(s+u)/d),y=(t,r)=>{let n=m,o=e.pow(r,h),s=e.sqr(o);s=e.mul(s,r);let c=e.mul(t,s);c=e.pow(c,l),c=e.mul(c,o),o=e.mul(c,r),s=e.mul(c,t);let f=e.mul(s,o);c=e.pow(f,a);let p=e.eql(c,e.ONE);o=e.mul(s,b),c=e.mul(f,n),s=e.cmov(o,s,p),f=e.cmov(c,f,p);for(let t=i;t>u;t--){let r=t-d;r=d<<r-u;let i=e.pow(f,r),a=e.eql(i,e.ONE);o=e.mul(s,n),n=e.mul(n,n),i=e.mul(f,n),s=e.cmov(o,s,a),f=e.cmov(i,f,a)}return{isValid:p,value:s}};if(e.ORDER%p===f){let r=(e.ORDER-f)/p,n=e.sqrt(e.neg(t));y=(t,i)=>{let a=e.sqr(i),o=e.mul(t,i);a=e.mul(a,o);let s=e.pow(a,r);s=e.mul(s,o);let l=e.mul(s,n),c=e.mul(e.sqr(s),i),u=e.eql(c,t),d=e.cmov(l,s,u);return{isValid:u,value:d}}}return y}},49630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p521_hasher=t.secp521r1=t.p521=t.p384_hasher=t.secp384r1=t.p384=t.p256_hasher=t.secp256r1=t.p256=void 0;let n=r(38393),i=r(18046),a=r(42292),o=r(20952),s=r(91366),l=(0,o.Field)(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),c=l.create(BigInt("-3")),u=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b");t.p256=(0,i.createCurve)({a:c,b:u,Fp:l,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},n.sha256),t.secp256r1=t.p256;let d=(0,s.mapToCurveSimpleSWU)(l,{A:c,B:u,Z:l.create(BigInt("-10"))});t.p256_hasher=(0,a.createHasher)(t.secp256r1.ProjectivePoint,e=>d(e[0]),{DST:"P256_XMD:SHA-256_SSWU_RO_",encodeDST:"P256_XMD:SHA-256_SSWU_NU_",p:l.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});let f=(0,o.Field)(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),p=f.create(BigInt("-3")),h=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");t.p384=(0,i.createCurve)({a:p,b:h,Fp:f,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},n.sha384),t.secp384r1=t.p384;let m=(0,s.mapToCurveSimpleSWU)(f,{A:p,B:h,Z:f.create(BigInt("-12"))});t.p384_hasher=(0,a.createHasher)(t.secp384r1.ProjectivePoint,e=>m(e[0]),{DST:"P384_XMD:SHA-384_SSWU_RO_",encodeDST:"P384_XMD:SHA-384_SSWU_NU_",p:f.ORDER,m:1,k:192,expand:"xmd",hash:n.sha384});let b=(0,o.Field)(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),y=b.create(BigInt("-3")),g=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");t.p521=(0,i.createCurve)({a:y,b:g,Fp:b,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},n.sha512),t.secp521r1=t.p521;let v=(0,s.mapToCurveSimpleSWU)(b,{A:y,B:g,Z:b.create(BigInt("-4"))});t.p521_hasher=(0,a.createHasher)(t.secp521r1.ProjectivePoint,e=>v(e[0]),{DST:"P521_XMD:SHA-512_SSWU_RO_",encodeDST:"P521_XMD:SHA-512_SSWU_NU_",p:b.ORDER,m:1,k:256,expand:"xmd",hash:n.sha512})},54584:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256r1=t.p256=void 0;let n=r(49630);t.p256=n.p256,t.secp256r1=n.p256,t.hashToCurve=n.p256_hasher.hashToCurve,t.encodeToCurve=n.p256_hasher.encodeToCurve},64733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;let n=r(38393),i=r(21415),a=r(18046),o=r(42292),s=r(20952),l=r(70090),c=r(91366),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(0),p=BigInt(1),h=BigInt(2),m=(e,t)=>(e+t/h)/t;function b(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),l=BigInt(88),c=e*e*e%u,d=c*c*e%u,f=(0,s.pow2)(d,t,u)*d%u,p=(0,s.pow2)(f,t,u)*d%u,m=(0,s.pow2)(p,h,u)*c%u,b=(0,s.pow2)(m,n,u)*m%u,g=(0,s.pow2)(b,i,u)*b%u,v=(0,s.pow2)(g,o,u)*g%u,w=(0,s.pow2)(v,l,u)*v%u,E=(0,s.pow2)(w,o,u)*g%u,x=(0,s.pow2)(E,t,u)*d%u,A=(0,s.pow2)(x,a,u)*b%u,k=(0,s.pow2)(A,r,u)*c%u,P=(0,s.pow2)(k,h,u);if(!y.eql(y.sqr(P),e))throw Error("Cannot find square root");return P}let y=(0,s.Field)(u,void 0,void 0,{sqrt:b});t.secp256k1=(0,a.createCurve)({a:f,b:BigInt(7),Fp:y,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=m(t*e,d),o=m(-r*e,d),l=(0,s.mod)(e-a*t-o*n,d),c=(0,s.mod)(-a*r-o*t,d),u=l>i,f=c>i;if(u&&(l=d-l),f&&(c=d-c),l>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:l,k2neg:f,k2:c}}}},n.sha256);let g={};function v(e,...t){let r=g[e];if(void 0===r){let t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,l.concatBytes)(t,t),g[e]=r}return(0,n.sha256)((0,l.concatBytes)(r,...t))}let w=e=>e.toRawBytes(!0).slice(1),E=e=>(0,l.numberToBytesBE)(e,32),x=e=>(0,s.mod)(e,u),A=e=>(0,s.mod)(e,d),k=t.secp256k1.ProjectivePoint,P=(e,t,r)=>k.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:A(-r),bytes:w(n)}}function T(e){(0,l.aInRange)("x",e,p,u);let t=x(e*e),r=b(x(t*e+BigInt(7)));r%h!==f&&(r=x(-r));let n=new k(e,r,p);return n.assertValidity(),n}let _=l.bytesToNumberBE;function O(...e){return A(_(v("BIP0340/challenge",...e)))}function S(e,t,r){let n=(0,l.ensureBytes)("signature",e,64),i=(0,l.ensureBytes)("message",t),a=(0,l.ensureBytes)("publicKey",r,32);try{let e=T(_(a)),t=_(n.subarray(0,32));if(!(0,l.inRange)(t,p,u))return!1;let r=_(n.subarray(32,64));if(!(0,l.inRange)(r,p,d))return!1;let o=O(E(t),w(e),i),s=P(e,r,A(-o));if(!s||!s.hasEvenY()||s.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return C(e).bytes},sign:function(e,t,r=(0,i.randomBytes)(32)){let n=(0,l.ensureBytes)("message",e),{bytes:a,scalar:o}=C(t),s=E(o^_(v("BIP0340/aux",(0,l.ensureBytes)("auxRand",r,32)))),c=A(_(v("BIP0340/nonce",s,a,n)));if(c===f)throw Error("sign failed: k is zero");let{bytes:u,scalar:d}=C(c),p=O(u,a,n),h=new Uint8Array(64);if(h.set(u,0),h.set(E(A(d+p*o)),32),!S(h,n,a))throw Error("sign: Invalid signature produced");return h},verify:S,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:T,pointToBytes:w,numberToBytesBE:l.numberToBytesBE,bytesToNumberBE:l.bytesToNumberBE,taggedHash:v,mod:s.mod}};let I=(0,o.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>
1BigInt(e)))),B=(0,c.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))});t.secp256k1_hasher=(0,o.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=B(y.create(e[0]));return I(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},6019:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=function(e){return{hash:e}},t.createCurve=function(e,t){let r=t=>(0,n.weierstrass)({...e,hash:t});return{...r(t),create:r}};let n=r(95195)},63947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=void 0,t.negateCt=s,t.normalizeZ=function(e,t){let r=(0,i.FpInvertBatch)(e.Fp,t.map(e=>e.Z));return t.map((t,n)=>e.fromAffine(t.toAffine(r[n])))},t.mulEndoUnsafe=function(e,t,r,n){let i=t,s=e.ZERO,l=e.ZERO;for(;r>a||n>a;)r&o&&(s=s.add(i)),n&o&&(l=l.add(i)),i=i.double(),r>>=o,n>>=o;return{p1:s,p2:l}},t.pippenger=function(e,t,r,i){d(r,e),f(i,t);let a=r.length,o=i.length;if(a!==o)throw Error("arrays of points and scalars must have equal length");let s=e.ZERO,l=(0,n.bitLen)(BigInt(a)),c=1;l>12?c=l-3:l>4?c=l-2:l>0&&(c=2);let u=(0,n.bitMask)(c),p=Array(Number(u)+1).fill(s),h=Math.floor((t.BITS-1)/c)*c,m=s;for(let e=h;e>=0;e-=c){p.fill(s);for(let t=0;t<o;t++){let n=Number(i[t]>>BigInt(e)&u);p[n]=p[n].add(r[t])}let t=s;for(let e=p.length-1,r=s;e>0;e--)r=r.add(p[e]),t=t.add(r);if(m=m.add(t),0!==e)for(let e=0;e<c;e++)m=m.double()}return m},t.precomputeMSMUnsafe=function(e,t,r,i){l(i,t.BITS),d(r,e);let a=e.ZERO,o=2**i-1,s=Math.ceil(t.BITS/i),c=(0,n.bitMask)(i),u=r.map(e=>{let t=[];for(let r=0,n=e;r<o;r++)t.push(n),n=n.add(e);return t});return e=>{if(f(e,t),e.length>r.length)throw Error("array of scalars must be smaller than array of points");let n=a;for(let t=0;t<s;t++){if(n!==a)for(let e=0;e<i;e++)n=n.double();let r=BigInt(s*i-(t+1)*i);for(let t=0;t<e.length;t++){let i=Number(e[t]>>r&c);i&&(n=n.add(u[t][i-1]))}}return n}},t.validateBasic=function(e){return(0,i.validateField)(e.Fp),(0,n.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})},t._createCurveFields=function(e,t,r={},n){if(void 0===n&&(n="edwards"===e),!t||"object"!=typeof t)throw Error(`expected valid ${e} CURVE object`);for(let e of["p","n","h"]){let r=t[e];if(!("bigint"==typeof r&&r>a))throw Error(`CURVE.${e} must be positive bigint`)}let i=g(t.p,r.Fp,n),o=g(t.n,r.Fn,n);for(let r of["Gx","Gy","a","weierstrass"===e?"b":"d"])if(!i.isValid(t[r]))throw Error(`CURVE.${r} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:o}};let n=r(91541),i=r(96567),a=BigInt(0),o=BigInt(1);function s(e,t){let r=t.negate();return e?r:t}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function c(e,t){l(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),a=2**e;return{windows:r,windowSize:i,mask:(0,n.bitMask)(e),maxNumber:a,shiftBy:BigInt(e)}}function u(e,t,r){let{windowSize:n,mask:i,maxNumber:a,shiftBy:s}=r,l=Number(e&i),c=e>>s;l>n&&(l-=a,c+=o);let u=t*n,d=u+Math.abs(l)-1;return{nextN:c,offset:d,isZero:0===l,isNeg:l<0,isNegF:t%2!=0,offsetF:u}}function d(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}function f(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}let p=new WeakMap,h=new WeakMap;function m(e){return h.get(e)||1}function b(e){if(e!==a)throw Error("invalid wNAF")}class y{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,r=this.ZERO){let n=e;for(;t>a;)t&o&&(r=r.add(n)),n=n.double(),t>>=o;return r}precomputeWindow(e,t){let{windows:r,windowSize:n}=c(t,this.bits),i=[],a=e,o=a;for(let e=0;e<r;e++){o=a,i.push(o);for(let e=1;e<n;e++)o=o.add(a),i.push(o);a=o.double()}return i}wNAF(e,t,r){if(!this.Fn.isValid(r))throw Error("invalid scalar");let n=this.ZERO,i=this.BASE,a=c(e,this.bits);for(let e=0;e<a.windows;e++){let{nextN:o,offset:l,isZero:c,isNeg:d,isNegF:f,offsetF:p}=u(r,e,a);r=o,c?i=i.add(s(f,t[p])):n=n.add(s(d,t[l]))}return b(r),{p:n,f:i}
1}wNAFUnsafe(e,t,r,n=this.ZERO){let i=c(e,this.bits);for(let e=0;e<i.windows&&r!==a;e++){let{nextN:a,offset:o,isZero:s,isNeg:l}=u(r,e,i);if(r=a,!s){let e=t[o];n=n.add(l?e.negate():e)}}return b(r),n}getPrecomputes(e,t,r){let n=p.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&("function"==typeof r&&(n=r(n)),p.set(t,n))),n}cached(e,t,r){let n=m(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)}unsafe(e,t,r,n){let i=m(e);return 1===i?this._unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)}createCache(e,t){l(t,this.bits),h.set(e,t),p.delete(e)}hasCache(e){return 1!==m(e)}}function g(e,t,r){if(!t)return(0,i.Field)(e,{isLE:r});if(t.ORDER!==e)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(t),t}t.wNAF=y},78035:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._DST_scalar=void 0,t.expand_message_xmd=c,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[a,o,s,l]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n))),[c,u]=(0,i.FpInvertBatch)(e,[o,l],!0);return t=e.mul(a,c),n=e.mul(n,e.mul(s,u)),{x:t,y:n}}},t.createHasher=function(e,r,n){if("function"!=typeof r)throw Error("mapToCurve() must be defined");function i(t){return e.fromAffine(r(t))}function a(t){let r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:n,hashToCurve(e,t){let r=d(e,2,Object.assign({},n,t)),o=i(r[0]),s=i(r[1]);return a(o.add(s))},encodeToCurve(e,t){let r=n.encodeDST?{DST:n.encodeDST}:{};return a(i(d(e,1,Object.assign({},n,r,t))[0]))},mapToCurve(e){if(!Array.isArray(e))throw Error("expected array of bigints");for(let t of e)if("bigint"!=typeof t)throw Error("expected array of bigints");return a(i(e))},hashToScalar:(r,i)=>d(r,1,Object.assign({},n,{p:e.Fn.ORDER,m:1,DST:t._DST_scalar},i))[0][0]}};let n=r(91541),i=r(96567),a=n.bytesToNumberBE;function o(e,t){if(s(e),s(t),e<0||e>=1<<8*t)throw Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function l(e){if(!(0,n.isBytes)(e)&&"string"!=typeof e)throw Error("DST must be Uint8Array or string");return"string"==typeof e?(0,n.utf8ToBytes)(e):e}function c(e,t,r,i){(0,n.abytes)(e),s(r),(t=l(t)).length>255&&(t=i((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:a,blockLen:c}=i,u=Math.ceil(r/a);if(r>65535||u>255)throw Error("expand_message_xmd: invalid lenInBytes");let d=(0,n.concatBytes)(t,o(t.length,1)),f=o(0,c),p=o(r,2),h=Array(u),m=i((0,n.concatBytes)(f,e,p,o(0,1),d));h[0]=i((0,n.concatBytes)(m,o(1,1),d));for(let e=1;e<=u;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(m,h[e-1]),o(e+1,1),d];h[e]=i((0,n.concatBytes)(...t))}return(0,n.concatBytes)(...h).slice(0,r)}function u(e,t,r,i,a){if((0,n.abytes)(e),s(r),(t=l(t)).length>255&&(t=a.create({dkLen:Math.ceil(2*i/8)}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:r}).update(e).update(o(r,2)).update(t).update(o(t.length,1)).digest()}function d(e,t,r){let o;(0,n._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:l,k:d,m:f,hash:p,expand:h,DST:m}=r;if(!(0,n.isHash)(r.hash))throw Error("expected valid hash");(0,n.abytes)(e),s(t);let b=Math.ceil((l.toString(2).length+d)/8),y=t*f*b;if("xmd"===h)o=c(e,m,y,p);else if("xof"===h)o=u(e,m,y,d,p);else if("_internal_pass"===h)o=e;else throw Error('expand must be "xmd" or "xof"');let g=Array(t);for(let e=0;e<t;e++){let t=Array(f);for(let r=0;r<f;r++){let n=b*(r+e*f),s=o.subarray(n,n+b);t[r]=(0,i.mod)(a(s),l)}g[e]=t}return g}t._DST_scalar=(0,n.utf8ToBytes)("HashToScalar-")},96567:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=h,t.pow=function(e,t,r){return x(C(r),e,t)},t.pow2=function(e,t,r){let n=e;for(;t-- >i;)n*=n,n%=r;return n},t.invert=m,t.tonelliShanks=v,t.FpSqrt=w,t.validateField=function(e){let t=E.reduce((e,t)=>
1(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,n._validateObject)(e,t),e},t.FpPow=x,t.FpInvertBatch=A,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?m(r,e.ORDER):e.inv(r))},t.FpLegendre=k,t.FpIsSquare=function(e,t){return 1===k(e,t)},t.nLength=P,t.Field=C,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){let i=(e=(0,n.ensureBytes)("privateHash",e)).length,o=P(t).nByteLength+8;if(o<24||i<o||i>1024)throw Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+i);return h(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=T,t.getMinHashLength=_,t.mapHashToField=function(e,t,r=!1){let i=e.length,o=T(t),s=_(t);if(i<16||i<s||i>1024)throw Error("expected "+s+"-1024 bytes of input, got "+i);let l=h(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-a)+a;return r?(0,n.numberToBytesLE)(l,o):(0,n.numberToBytesBE)(l,o)};let n=r(91541),i=BigInt(0),a=BigInt(1),o=BigInt(2),s=BigInt(3),l=BigInt(4),c=BigInt(5),u=BigInt(7),d=BigInt(8),f=BigInt(9),p=BigInt(16);function h(e,t){let r=e%t;return r>=i?r:t+r}function m(e,t){if(e===i)throw Error("invert: expected non-zero number");if(t<=i)throw Error("invert: expected positive modulus, got "+t);let r=h(e,t),n=t,o=i,s=a,l=a,c=i;for(;r!==i;){let e=n/r,t=n%r,i=o-l*e,a=s-c*e;n=r,r=t,o=l,s=c,l=i,c=a}if(n!==a)throw Error("invert: does not exist");return h(o,t)}function b(e,t,r){if(!e.eql(e.sqr(t),r))throw Error("Cannot find square root")}function y(e,t){let r=(e.ORDER+a)/l,n=e.pow(t,r);return b(e,n,t),n}function g(e,t){let r=(e.ORDER-c)/d,n=e.mul(t,o),i=e.pow(n,r),a=e.mul(t,i),s=e.mul(e.mul(a,o),i),l=e.mul(a,e.sub(s,e.ONE));return b(e,l,t),l}function v(e){if(e<s)throw Error("sqrt is not defined for small field");let t=e-a,r=0;for(;t%o===i;)t/=o,r++;let n=o,l=C(e);for(;1===k(l,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return y;let c=l.pow(n,t),u=(t+a)/o;return function(e,n){if(e.is0(n))return n;if(1!==k(e,n))throw Error("Cannot find square root");let i=r,o=e.mul(e.ONE,c),s=e.pow(n,t),l=e.pow(n,u);for(;!e.eql(s,e.ONE);){if(e.is0(s))return e.ZERO;let t=1,r=e.sqr(s);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=a<<BigInt(i-t-1),c=e.pow(o,n);i=t,o=e.sqr(c),s=e.mul(s,o),l=e.mul(l,c)}return l}}function w(e){return e%l===s?y:e%d===c?g:e%p===f?function(e){let t=C(e),r=v(e),n=r(t,t.neg(t.ONE)),i=r(t,n),a=r(t,t.neg(n)),o=(e+u)/p;return(e,t)=>{let r=e.pow(t,o),s=e.mul(r,n),l=e.mul(r,i),c=e.mul(r,a),u=e.eql(e.sqr(s),t),d=e.eql(e.sqr(l),t);r=e.cmov(r,s,u),s=e.cmov(c,l,d);let f=e.eql(e.sqr(s),t),p=e.cmov(r,s,f);return b(e,p,t),p}}(e):v(e)}t.isNegativeLE=(e,t)=>(h(e,t)&a)===a;let E=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function x(e,t,r){if(r<i)throw Error("invalid exponent, negatives unsupported");if(r===i)return e.ONE;if(r===a)return t;let n=e.ONE,o=t;for(;r>i;)r&a&&(n=e.mul(n,o)),o=e.sqr(o),r>>=a;return n}function A(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),a=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),a),n}function k(e,t){let r=(e.ORDER-a)/o,n=e.pow(t,r),i=e.eql(n,e.ONE),s=e.eql(n,e.ZERO),l=e.eql(n,e.neg(e.ONE));if(!i&&!s&&!l)throw Error("invalid Legendre symbol result");return i?1:s?0:-1}function P(e,t){void 0!==t&&(0,n.anumber)(t);let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function C(e,t,r=!1,o={}){let s,l,c,u;if(e<=i)throw Error("invalid field: expected ORDER > 0, got "+e);let d=!1;if("object"==typeof t&&null!=t){if(o.sqrt||r)throw Error("cannot specify opts in two arguments");t.BITS&&(l=t.BITS),t.sqrt&&(c=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE),"boolean"==typeof t.modFromBytes&&(d=t.modFromBytes),u=t.allowedLengths}else"number"==typeof t&&(l=t),o.sqrt&&(c=o.sqrt);let{nBitLength:f,nByteLength:p}=P(e,l);if(p>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let b=Object.freeze({ORDER:e,isLE:r,BITS:f,BYTES:p,MASK:(0,n.bitMask)(f),ZERO:i,ONE:a,allowedLengths:u,create:t=>h(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isValidNot0:e=>!b.is0(e)&&b.isValid(e),isOdd:e=>(e&a)===a,neg:t=>h(-t,e),eql:(e,t)=>
1e===t,sqr:t=>h(t*t,e),add:(t,r)=>h(t+r,e),sub:(t,r)=>h(t-r,e),mul:(t,r)=>h(t*r,e),pow:(e,t)=>x(b,e,t),div:(t,r)=>h(t*m(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>m(t,e),sqrt:c||(t=>(s||(s=w(e)),s(b,t))),toBytes:e=>r?(0,n.numberToBytesLE)(e,p):(0,n.numberToBytesBE)(e,p),fromBytes:(t,i=!0)=>{if(u){if(!u.includes(t.length)||t.length>p)throw Error("Field.fromBytes: expected "+u+" bytes, got "+t.length);let e=new Uint8Array(p);e.set(t,r?0:e.length-t.length),t=e}if(t.length!==p)throw Error("Field.fromBytes: expected "+p+" bytes, got "+t.length);let a=r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t);if(d&&(a=h(a,e)),!i&&!b.isValid(a))throw Error("invalid field element: outside of range 0..ORDER");return a},invertBatch:e=>A(b,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(b)}function T(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function _(e){let t=T(e);return t+Math.ceil(t/2)}},95195:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t._splitEndoScalar=c,t._normFnElement=g,t.weierstrassN=v,t.SWUFpSqrtRatio=E,t.mapToCurveSimpleSWU=function(e,t){(0,s.validateField)(e);let{A:r,B:n,Z:i}=t;if(!e.isValid(r)||!e.isValid(n)||!e.isValid(i))throw Error("mapToCurveSimpleSWU: invalid opts");let a=E(e,i);if(!e.isOdd)throw Error("Field does not have .isOdd()");return t=>{let o,l,c,u,d,f,p,h;o=e.sqr(t),o=e.mul(o,i),l=e.sqr(o),l=e.add(l,o),c=e.add(l,e.ONE),c=e.mul(c,n),u=e.cmov(i,e.neg(l),!e.eql(l,e.ZERO)),u=e.mul(u,r),l=e.sqr(c),f=e.sqr(u),d=e.mul(f,r),l=e.add(l,d),l=e.mul(l,c),f=e.mul(f,u),d=e.mul(f,n),l=e.add(l,d),p=e.mul(o,c);let{isValid:m,value:b}=a(l,f);h=e.mul(o,t),h=e.mul(h,b),p=e.cmov(p,c,m),h=e.cmov(h,b,m);let y=e.isOdd(t)===e.isOdd(h);h=e.cmov(e.neg(h),h,y);let g=(0,s.FpInvertBatch)(e,[u],!0)[0];return{x:p=e.mul(p,g),y:h}}},t.ecdh=A,t.ecdsa=k,t.weierstrassPoints=function(e){let{CURVE:t,curveOpts:r}=P(e);return function(e,t){let{Fp:r,Fn:n}=t,i=C(r,e.a,e.b);return Object.assign({},{CURVE:e,Point:t,ProjectivePoint:t,normPrivateKeyToScalar:e=>g(n,e),weierstrassEquation:i,isWithinCurveOrder:function(e){return(0,a.inRange)(e,h,n.ORDER)}})}(e,v(t,r))},t._legacyHelperEquat=C,t.weierstrass=function(e){let{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:i}=function(e){let{CURVE:t,curveOpts:r}=P(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}(e);return function(e,t){let r=t.Point;return Object.assign({},t,{ProjectivePoint:r,CURVE:Object.assign({},e,(0,s.nLength)(r.Fn.ORDER,r.Fn.BITS))})}(e,k(v(t,r),n,i))};let n=r(50602),i=r(21415),a=r(91541),o=r(63947),s=r(96567),l=(e,t)=>
1(e+(e>=0?t:-t)/m)/t;function c(e,t,r){let[[n,i],[o,s]]=t,c=l(s*e,r),u=l(-i*e,r),d=e-c*n-u*o,f=-c*i-u*s,m=d<p,b=f<p;m&&(d=-d),b&&(f=-f);let y=(0,a.bitMask)(Math.ceil((0,a.bitLen)(r)/2))+h;if(d<p||d>=y||f<p||f>=y)throw Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:m,k1:d,k2neg:b,k2:f}}function u(e){if(!["compact","recovered","der"].includes(e))throw Error('Signature format must be "compact", "recovered", or "der"');return e}function d(e,t){let r={};for(let n of Object.keys(t))r[n]=void 0===e[n]?t[n]:e[n];return(0,a._abool2)(r.lowS,"lowS"),(0,a._abool2)(r.prehash,"prehash"),void 0!==r.format&&u(r.format),r}class f extends Error{constructor(e=""){super(e)}}t.DERErr=f,t.DER={Err:f,_tlv:{encode:(e,r)=>{let{Err:n}=t.DER;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");let i=r.length/2,o=(0,a.numberToHexUnpadded)(i);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let s=i>127?(0,a.numberToHexUnpadded)(o.length/2|128):"";return(0,a.numberToHexUnpadded)(e)+s+o+r},decode(e,r){let{Err:n}=t.DER,i=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[i++]!==e)throw new n("tlv.decode: wrong tlv");let a=r[i++],o=0;if(128&a){let e=127&a;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let t=r.subarray(i,i+e);if(t.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===t[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of t)o=o<<8|e;if(i+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=a;let s=r.subarray(i,i+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:r.subarray(i+o)}}},_int:{encode(e){let{Err:r}=t.DER;if(e<p)throw new r("integer: negative integers are not allowed");let n=(0,a.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:r}=t.DER;if(128&e[0])throw new r("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,a.bytesToNumberBE)(e)}},toSig(e){let{Err:r,_int:n,_tlv:i}=t.DER,o=(0,a.ensureBytes)("signature",e),{v:s,l:l}=i.decode(48,o);if(l.length)throw new r("invalid signature: left bytes after parsing");let{v:c,l:u}=i.decode(2,s),{v:d,l:f}=i.decode(2,u);if(f.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:r,_int:n}=t.DER,i=r.encode(2,n.encode(e.r)),a=r.encode(2,n.encode(e.s));return r.encode(48,i+a)}};let p=BigInt(0),h=BigInt(1),m=BigInt(2),b=BigInt(3),y=BigInt(4);function g(e,t){let r;let{BYTES:n}=e;if("bigint"==typeof t)r=t;else{let i=(0,a.ensureBytes)("private key",t);try{r=e.fromBytes(i)}catch(e){throw Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw Error("invalid private key: out of range [1..N-1]");return r}function v(e,t={}){let r=(0,o._createCurveFields)("weierstrass",e,t),{Fp:n,Fn:i}=r,s=r.CURVE,{h:l,n:u}=s;(0,a._validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:d}=t;if(d&&(!n.is0(s.a)||"bigint"!=typeof d.beta||!Array.isArray(d.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let f=x(n,i);function m(){if(!n.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let v=t.toBytes||function(e,t,r){let{x:i,y:o}=t.toAffine(),s=n.toBytes(i);if((0,a._abool2)(r,"isCompressed"),!r)return(0,a.concatBytes)(Uint8Array.of(4),s,n.toBytes(o));{m();let e=!n.isOdd(o);return(0,a.concatBytes)(w(e),s)}},E=t.fromBytes||function(e){(0,a._abytes2)(e,void 0,"Point");let{publicKey:t,publicKeyUncompressed:r}=f,i=e.length,o=e[0],s=e.subarray(1);if(i===t&&(2===o||3===o)){let e;let t=n.fromBytes(s);if(!n.isValid(t))throw Error("bad point: is not on curve, wrong x");let r=A(t);try{e=n.sqrt(r)}catch(e){throw Error("bad point: is not on curve, sqrt error"+(e instanceof Error?": "+e.message:""))}return m(),(1&o)==1!==n.isOdd(e)&&(e=n.neg(e)),{x:t,y:e}}if(i===r&&4===o){let e=n.BYTES,t=n.fromBytes(s.subarray(0,e)),r=n.fromBytes(s.subarray(e,2*e));if(!k(t,r))throw Error("bad point: is not on curve");return{x:t,y:r}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${r}`)};function A(e){let t=n.sqr(e),r=n.mul(t,e);return n.add(n.add(r,n.mul(e,s.a)),s.b)}function k(e,t){let r=n.sqr(t),i=A(e);return n.eql(r,i)}if(!k(s.Gx,s.Gy))throw Error("bad curve params: generator point");let P=n.mul(n.pow(s.a,b),y),C=n.mul(n.sqr(s.b),BigInt(27));if(n.is0(n.add(P,C)))throw Error("bad curve params: a or b");function T(e,t,r=!1){if(!n.isValid(t)||r&&n.is0(t))throw Error(`bad point coordinate ${e}`);return t}function _(e){if(!(e instanceof j))throw Error("ProjectivePoint expected")}function O(e){if(!d||!d.basises)throw Error("no endo");return c(e,d.basises,i.ORDER)}let S=(0,a.memoized)((e,t)=>{let{X:r,Y:i,Z:a}=e;if(n.eql(a,n.ONE))return{x:r,y:i};let o=e.is0();null==t&&(t=o?n.ONE:n.inv(a));let s=n.mul(r,t),l=n.mul(i,t),c=n.mul(a,t);if(o)return{x:n.ZERO,y:n.ZERO};
1if(!n.eql(c,n.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),I=(0,a.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.Y))return;throw Error("bad point: ZERO")}let{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw Error("bad point: x or y not field elements");if(!k(r,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function B(e,t,r,i,a){return r=new j(n.mul(r.X,e),r.Y,r.Z),t=(0,o.negateCt)(i,t),r=(0,o.negateCt)(a,r),t.add(r)}class j{constructor(e,t,r){this.X=T("x",e),this.Y=T("y",t,!0),this.Z=T("z",r),Object.freeze(this)}static CURVE(){return s}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error("invalid affine point");if(e instanceof j)throw Error("projective point not allowed");return n.is0(t)&&n.is0(r)?j.ZERO:new j(t,r,n.ONE)}static fromBytes(e){let t=j.fromAffine(E((0,a._abytes2)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return j.fromBytes((0,a.ensureBytes)("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return R.createCache(this,e),t||this.multiply(b),this}assertValidity(){I(this)}hasEvenY(){let{y:e}=this.toAffine();if(!n.isOdd)throw Error("Field doesn't support isOdd");return!n.isOdd(e)}equals(e){_(e);let{X:t,Y:r,Z:i}=this,{X:a,Y:o,Z:s}=e,l=n.eql(n.mul(t,s),n.mul(a,i)),c=n.eql(n.mul(r,s),n.mul(o,i));return l&&c}negate(){return new j(this.X,n.neg(this.Y),this.Z)}double(){let{a:e,b:t}=s,r=n.mul(t,b),{X:i,Y:a,Z:o}=this,l=n.ZERO,c=n.ZERO,u=n.ZERO,d=n.mul(i,i),f=n.mul(a,a),p=n.mul(o,o),h=n.mul(i,a);return h=n.add(h,h),u=n.mul(i,o),u=n.add(u,u),l=n.mul(e,u),c=n.mul(r,p),c=n.add(l,c),l=n.sub(f,c),c=n.add(f,c),c=n.mul(l,c),l=n.mul(h,l),u=n.mul(r,u),p=n.mul(e,p),h=n.sub(d,p),h=n.mul(e,h),h=n.add(h,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,p),d=n.mul(d,h),c=n.add(c,d),p=n.mul(a,o),p=n.add(p,p),d=n.mul(p,h),l=n.sub(l,d),u=n.mul(p,f),u=n.add(u,u),new j(l,c,u=n.add(u,u))}add(e){_(e);let{X:t,Y:r,Z:i}=this,{X:a,Y:o,Z:l}=e,c=n.ZERO,u=n.ZERO,d=n.ZERO,f=s.a,p=n.mul(s.b,b),h=n.mul(t,a),m=n.mul(r,o),y=n.mul(i,l),g=n.add(t,r),v=n.add(a,o);g=n.mul(g,v),v=n.add(h,m),g=n.sub(g,v),v=n.add(t,i);let w=n.add(a,l);return v=n.mul(v,w),w=n.add(h,y),v=n.sub(v,w),w=n.add(r,i),c=n.add(o,l),w=n.mul(w,c),c=n.add(m,y),w=n.sub(w,c),d=n.mul(f,v),c=n.mul(p,y),d=n.add(c,d),c=n.sub(m,d),d=n.add(m,d),u=n.mul(c,d),m=n.add(h,h),m=n.add(m,h),y=n.mul(f,y),v=n.mul(p,v),m=n.add(m,y),y=n.sub(h,y),y=n.mul(f,y),v=n.add(v,y),h=n.mul(m,v),u=n.add(u,h),h=n.mul(w,v),c=n.mul(g,c),c=n.sub(c,h),h=n.mul(g,m),d=n.mul(w,d),new j(c,u,d=n.add(d,h))}subtract(e){return this.add(e.negate())}is0(){return this.equals(j.ZERO)}multiply(e){let r,n;let{endo:a}=t;if(!i.isValidNot0(e))throw Error("invalid scalar: out of range");let s=e=>R.cached(this,e,e=>(0,o.normalizeZ)(j,e));if(a){let{k1neg:t,k1:i,k2neg:o,k2:l}=O(e),{p:c,f:u}=s(i),{p:d,f:f}=s(l);n=u.add(f),r=B(a.beta,c,d,t,o)}else{let{p:t,f:i}=s(e);r=t,n=i}return(0,o.normalizeZ)(j,[r,n])[0]}multiplyUnsafe(e){let{endo:r}=t;if(!i.isValid(e))throw Error("invalid scalar: out of range");if(e===p||this.is0())return j.ZERO;if(e===h)return this;if(R.hasCache(this))return this.multiply(e);if(!r)return R.unsafe(this,e);{let{k1neg:t,k1:n,k2neg:i,k2:a}=O(e),{p1:s,p2:l}=(0,o.mulEndoUnsafe)(j,this,n,a);return B(r.beta,s,l,t,i)}}multiplyAndAddUnsafe(e,t,r){let n=this.multiplyUnsafe(t).add(e.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(e){return S(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return l===h||(e?e(j,this):R.unsafe(this,u).is0())}clearCofactor(){let{clearCofactor:e}=t;return l===h?this:e?e(j,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(e=!0){return(0,a._abool2)(e,"isCompressed"),this.assertValidity(),v(j,this,e)}toHex(e=!0){return(0,a.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return(0,o.normalizeZ)(j,e)}static msm(e,t){return(0,o.pippenger)(j,i,e,t)}static fromPrivateKey(e){return j.BASE.multiply(g(i,e))}}j.BASE=new j(s.Gx,s.Gy,n.ONE),j.ZERO=new j(n.ZERO,n.ONE,n.ZERO),j.Fp=n,j.Fn=i;let M=i.BITS,R=new o.wNAF(j,t.endo?Math.ceil(M/2):M);return j.BASE.precompute(8),j}function w(e){return Uint8Array.of(e?2:3)}function E(e,t){let r=e.ORDER,n=p;for(let e=r-h;e%m===p;e/=m)n+=h;let i=n,a=m<<i-h-h,o=a*m,s=(r-h)/o,l=(s-h)/m,c=o-h,u=e.pow(t,s),d=e.pow(t,(s+h)/m),f=(t,r)=>{let n=u,o=e.pow(r,c),s=e.sqr(o);s=e.mul(s,r);let f=e.mul(t,s);f=e.pow(f,l),f=e.mul(f,o),o=e.mul(f,r),s=e.mul(f,t);let p=e.mul(s,o);f=e.pow(p,a);let b=e.eql(f,e.ONE);o=e.mul(s,d),f=e.mul(p,n),s=e.cmov(o,s,b),p=e.cmov(f,p,b);for(let t=i;t>h;t--){let r=t-m;r=m<<r-h;let i=e.pow(p,r),a=e.eql(i,e.ONE);o=e.mul(s,n),n=e.mul(n,n),i=e.mul(p,n),s=e.cmov(o,s,a),p=e.cmov(i,p,a)}return{isValid:b,value:s}};if(e.ORDER%y===b){let r=(e.ORDER-b)/y,n=e.sqrt(e.neg(t));f=(t,i)=>{let a=e.sqr(i),o=e.mul(t,i);a=e.mul(a,o);let s=e.pow(a,r);s=e.mul(s,o);let l=e.mul(s,n),c=e.mul(e.sqr(s),i),u=e.eql(c,t),d=e.cmov(l,s,u);return{isValid:u,value:d}}}return f}function x(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function A(e,t={}){let{Fn:r}=e,n=t.randomBytes||a.randomBytes,i=Object.assign(x(e.Fp,r),{seed:(0,s.getMinHashLength)(r.ORDER)});function o(e){try{return!!g(r,e)}catch(e){return!1}}function l(e=n(i.seed)){return(0,s.mapHashToField)((0,a._abytes2)(e,i.seed,"seed"),r.ORDER)}function c(t,n=!0){return e.BASE.multiply(g(r,t)).toBytes(n)}function u(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;let{secretKey:n,publicKey:o,publicKeyUncompressed:s}=i;
vendor: 6,300 bytes, line 1
1if(r.allowedLengths||n===o)return;let l=(0,a.ensureBytes)("key",t).length;return l===o||l===s}return Object.freeze({getPublicKey:c,getSharedSecret:function(t,n,i=!0){if(!0===u(t))throw Error("first arg must be private key");if(!1===u(n))throw Error("second arg must be public key");let a=g(r,t);return e.fromHex(n).multiply(a).toBytes(i)},keygen:function(e){let t=l(e);return{secretKey:t,publicKey:c(t)}},Point:e,utils:{isValidSecretKey:o,isValidPublicKey:function(t,r){let{publicKey:n,publicKeyUncompressed:a}=i;try{let i=t.length;if(!0===r&&i!==n||!1===r&&i!==a)return!1;return!!e.fromBytes(t)}catch(e){return!1}},randomSecretKey:l,isValidPrivateKey:o,randomPrivateKey:l,normPrivateKeyToScalar:e=>g(r,e),precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)},lengths:i})}function k(e,r,o={}){(0,i.ahash)(r),(0,a._validateObject)(o,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let s=o.randomBytes||a.randomBytes,l=o.hmac||((e,...t)=>(0,n.hmac)(r,e,(0,a.concatBytes)(...t))),{Fp:c,Fn:f}=e,{ORDER:b,BITS:y}=f,{keygen:v,getPublicKey:E,getSharedSecret:x,utils:k,lengths:P}=A(e,o),C={prehash:!1,lowS:"boolean"==typeof o.lowS&&o.lowS,format:void 0,extraEntropy:!1},T="compact";function _(e,t){if(!f.isValidNot0(t))throw Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class O{constructor(e,t,r){this.r=_("r",e),this.s=_("s",t),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(e,r=T){let n;if(!function(e,t){u(t);let r=P.signature;(0,a._abytes2)(e,"compact"===t?r:"recovered"===t?r+1:void 0,`${t} signature`)}(e,r),"der"===r){let{r,s:n}=t.DER.toSig((0,a._abytes2)(e));return new O(r,n)}"recovered"===r&&(n=e[0],r="compact",e=e.subarray(1));let i=f.BYTES,o=e.subarray(0,i),s=e.subarray(i,2*i);return new O(f.fromBytes(o),f.fromBytes(s),n)}static fromHex(e,t){return this.fromBytes((0,a.hexToBytes)(e),t)}addRecoveryBit(e){return new O(this.r,this.s,e)}recoverPublicKey(t){let r=c.ORDER,{r:n,s:i,recovery:o}=this;if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");if(b*m<r&&o>1)throw Error("recovery id is ambiguous for h>1 curve");let s=2===o||3===o?n+b:n;if(!c.isValid(s))throw Error("recovery id 2 or 3 invalid");let l=c.toBytes(s),u=e.fromBytes((0,a.concatBytes)(w((1&o)==0),l)),d=f.inv(s),p=I((0,a.ensureBytes)("msgHash",t)),h=f.create(-p*d),y=f.create(i*d),g=e.BASE.multiplyUnsafe(h).add(u.multiplyUnsafe(y));if(g.is0())throw Error("point at infinify");return g.assertValidity(),g}hasHighS(){return this.s>b>>h}toBytes(e=T){if(u(e),"der"===e)return(0,a.hexToBytes)(t.DER.hexFromSig(this));let r=f.toBytes(this.r),n=f.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw Error("recovery bit must be present");return(0,a.concatBytes)(Uint8Array.of(this.recovery),r,n)}return(0,a.concatBytes)(r,n)}toHex(e){return(0,a.bytesToHex)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return O.fromBytes((0,a.ensureBytes)("sig",e),"compact")}static fromDER(e){return O.fromBytes((0,a.ensureBytes)("sig",e),"der")}normalizeS(){return this.hasHighS()?new O(this.r,f.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,a.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,a.bytesToHex)(this.toBytes("compact"))}}let S=o.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,a.bytesToNumberBE)(e),r=8*e.length-y;return r>0?t>>BigInt(r):t},I=o.bits2int_modN||function(e){return f.create(S(e))},B=(0,a.bitMask)(y);function j(e){return(0,a.aInRange)("num < 2^"+y,e,p,B),f.toBytes(e)}function M(e,t){return(0,a._abytes2)(e,void 0,"message"),t?(0,a._abytes2)(r(e),void 0,"prehashed message"):e}return Object.freeze({keygen:v,getPublicKey:E,getSharedSecret:x,utils:k,lengths:P,Point:e,sign:function(t,n,i={}){let{seed:o,k2sig:c}=function(t,r,n){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{lowS:i,prehash:o,extraEntropy:l}=d(n,C),c=I(t=M(t,o)),u=g(f,r),m=[j(u),j(c)];if(null!=l&&!1!==l){let e=!0===l?s(P.secretKey):l;m.push((0,a.ensureBytes)("extraEntropy",e))}return{seed:(0,a.concatBytes)(...m),k2sig:function(t){let r=S(t);if(!f.isValidNot0(r))return;let n=f.inv(r),a=e.BASE.multiply(r).toAffine(),o=f.create(a.x);if(o===p)return;let s=f.create(n*f.create(c+o*u));if(s===p)return;let l=(a.x===o?0:2)|Number(a.y&h),d=s;return i&&s>b>>h&&(d=f.neg(s),l^=1),new O(o,d,l)}}}(t=(0,a.ensureBytes)("message",t),n,i);return(0,a.createHmacDrbg)(r.outputLen,f.BYTES,l)(o,c)},verify:function(r,n,i,o={}){let{lowS:s,prehash:l,format:c}=d(o,C);if(i=(0,a.ensureBytes)("publicKey",i),n=M((0,a.ensureBytes)("message",n),l),"strict"in o)throw Error("options.strict was renamed to lowS");let u=void 0===c?function(e){let r;let n="string"==typeof e||(0,a.isBytes)(e),i=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!i)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(i)r=new O(e.r,e.s);else if(n){try{r=O.fromBytes((0,a.ensureBytes)("sig",e),"der")}catch(e){if(!(e instanceof t.DER.Err))throw e}if(!r)try{r=O.fromBytes((0,a.ensureBytes)("sig",e),"compact")}catch(e){return!1}}return!!r&&r}(r):O.fromBytes((0,a.ensureBytes)("sig",r),c);if(!1===u)return!1;try{let t=e.fromBytes(i);if(s&&u.hasHighS())return!1;let{r,s:a}=u,o=I(n),l=f.inv(a),c=f.create(o*l),d=f.create(r*l),p=e.BASE.multiplyUnsafe(c).add(t.multiplyUnsafe(d));if(p.is0())return!1;return f.create(p.x)===r}catch(e){return!1}},recoverPublicKey:function(e,t,r={}){let{prehash:n}=d(r,C);return t=M(t,n),O.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:O,hash:r})}function P(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0,i={Fp:r,Fn:(0,s.Field)(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function C(e,t,r){return function(n){let i=e.sqr(n),a=e.mul(i,n);return e.add(e.add(a,e.mul(n,t)),r)}}},79685:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;let n=r(38393),i=r(21415),a=r(6019),o=r(78035),s=r(96567),l=r(95195),c=r(91541),u={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},d={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},f=BigInt(0),p=BigInt(1),h=BigInt(2),m=(0,s.Field)(u.p,{sqrt:function(e){let t=u.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),l=BigInt(44),c=BigInt(88),d=e*e*e%t,f=d*d*e%t,p=(0,s.pow2)(f,r,t)*f%t,b=(0,s.pow2)(p,r,t)*f%t,y=(0,s.pow2)(b,h,t)*d%t,g=(0,s.pow2)(y,i,t)*y%t,v=(0,s.pow2)(g,a,t)*g%t,w=(0,s.pow2)(v,l,t)*v%t,E=(0,s.pow2)(w,c,t)*w%t,x=(0,s.pow2)(E,l,t)*v%t,A=(0,s.pow2)(x,r,t)*f%t,k=(0,s.pow2)(A,o,t)*g%t,P=(0,s.pow2)(k,n,t)*d%t,C=(0,s.pow2)(P,h,t);if(!m.eql(m.sqr(C),e))throw Error("Cannot find square root");return C}});t.secp256k1=(0,a.createCurve)({...u,Fp:m,lowS:!0,endo:d},n.sha256);let b={};function y(e,...t){let r=b[e];if(void 0===r){let t=(0,n.sha256)((0,c.utf8ToBytes)(e));r=(0,c.concatBytes)(t,t),b[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}let g=e=>e.toBytes(!0).slice(1),v=t.secp256k1.Point,w=e=>e%h===f;function E(e){let{Fn:t,BASE:r}=v,n=(0,l._normFnElement)(t,e),i=r.multiply(n);return{scalar:w(i.y)?n:t.neg(n),bytes:g(i)}}function x(e){if(!m.isValidNot0(e))throw Error("invalid x: Fail if x ⥠p");let t=m.create(e*e),r=m.create(t*e+BigInt(7)),n=m.sqrt(r);w(n)||(n=m.neg(n));let i=v.fromAffine({x:e,y:n});return i.assertValidity(),i}let A=c.bytesToNumberBE;function k(...e){return v.Fn.create(A(y("BIP0340/challenge",...e)))}function P(e){return E(e).bytes}function C(e,t,r=(0,i.randomBytes)(32)){let{Fn:n}=v,a=(0,c.ensureBytes)("message",e),{bytes:o,scalar:s}=E(t),l=(0,c.ensureBytes)("auxRand",r,32),u=n.toBytes(s^A(y("BIP0340/aux",l))),{bytes:d,scalar:f}=E(y("BIP0340/nonce",u,o,a)),p=k(d,o,a),h=new Uint8Array(64);if(h.set(d,0),h.set(n.toBytes(n.create(f+p*s)),32),!T(h,a,o))throw Error("sign: Invalid signature produced");return h}function T(e,t,r){let{Fn:n,BASE:i}=v,a=(0,c.ensureBytes)("signature",e,64),o=(0,c.ensureBytes)("message",t),s=(0,c.ensureBytes)("publicKey",r,32);try{let e=x(A(s)),t=A(a.subarray(0,32));if(!(0,c.inRange)(t,p,u.p))return!1;let r=A(a.subarray(32,64));if(!(0,c.inRange)(r,p,u.n))return!1;let l=k(n.toBytes(t),g(e),o),d=i.multiplyUnsafe(r).add(e.multiplyUnsafe(n.neg(l))),{x:f,y:h}=d.toAffine();if(d.is0()||!w(h)||f!==t)return!1;return!0}catch(e){return!1}}t.schnorr=(()=>{let e=48,r=(t=(0,i.randomBytes)(e))=>(0,s.mapHashToField)(t,u.n);return t.secp256k1.utils.randomSecretKey,{keygen:function(e){let t=r(e);return{secretKey:t,publicKey:P(t)}},getPublicKey:P,sign:C,verify:T,Point:v,utils:{randomSecretKey:r,randomPrivateKey:r,taggedHash:y,lift_x:x,pointToBytes:g,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,mod:s.mod},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:e}}})();let _=(0,o.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>
1BigInt(e)))),O=(0,l.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))});t.secp256k1_hasher=(0,o.createHasher)(t.secp256k1.Point,e=>{let{x:t,y:r}=O(m.create(e[0]));return _(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},91541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=t.utf8ToBytes=t.randomBytes=t.isBytes=t.hexToBytes=t.concatBytes=t.bytesToUtf8=t.bytesToHex=t.anumber=t.abytes=void 0,t.abool=function(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)},t._abool2=function(e,t=""){if("boolean"!=typeof e)throw Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e},t._abytes2=function(e,t,r=""){let i=(0,n.isBytes)(e),a=e?.length,o=void 0!==t;if(!i||o&&a!==t)throw Error((r&&`"${r}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(i?`length=${a}`:`type=${typeof e}`));return e},t.numberToHexUnpadded=s,t.hexToNumber=l,t.bytesToNumberBE=function(e){return l((0,n.bytesToHex)(e))},t.bytesToNumberLE=function(e){return(0,n.abytes)(e),l((0,n.bytesToHex)(Uint8Array.from(e).reverse()))},t.numberToBytesBE=c,t.numberToBytesLE=function(e,t){return c(e,t).reverse()},t.numberToVarBytesBE=function(e){return(0,n.hexToBytes)(s(e))},t.ensureBytes=function(e,t,r){let i;if("string"==typeof t)try{i=(0,n.hexToBytes)(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if((0,n.isBytes)(t))i=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=i.length;if("number"==typeof r&&a!==r)throw Error(e+" of length "+r+" expected, got "+a);return i},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},t.copyBytes=function(e){return Uint8Array.from(e)},t.asciiToBytes=function(e){return Uint8Array.from(e,(t,r)=>{let n=t.charCodeAt(0);if(1!==t.length||n>127)throw Error(`string contains non-ASCII character "${e[r]}" with code ${n} at position ${r}`);return n})},t.inRange=d,t.aInRange=function(e,t,r,n){if(!d(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>a;e>>=o,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&o},t.bitSet=function(e,t,r){return e|(r?o:a)<<BigInt(t)},t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let i=e=>new Uint8Array(e),a=e=>Uint8Array.of(e),o=i(e),s=i(e),l=0,c=()=>{o.fill(1),s.fill(0),l=0},u=(...e)=>r(s,o,...e),d=(e=i(0))=>{s=u(a(0),e),o=u(),0!==e.length&&(s=u(a(1),e),o=u())},f=()=>{if(l++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(o=u()).slice();r.push(t),e+=o.length}return(0,n.concatBytes)(...r)};return(e,t)=>{let r;for(c(),d(e);!(r=t(f()));)d();return c(),r}},t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let i=f[r];if("function"!=typeof i)throw Error("invalid validator function");let a=e[t];if((!n||void 0!==a)&&!i(a,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e},t.isHash=function(e){return"function"==typeof e&&Number.isSafeInteger(e.outputLen)},t._validateObject=function(e,t,r={}){if(!e||"object"!=typeof e)throw Error("expected valid options object");function n(t,r,n){let i=e[t];if(n&&void 0===i)return;let a=typeof i;if(a!==r||null===i)throw Error(`param "${t}" is invalid: expected ${r}, got ${a}`)}Object.entries(t).forEach(([e,t])=>n(e,t,!1)),Object.entries(r).forEach(([e,t])=>n(e,t,!0))},t.memoized=function(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let a=e(r,...n);return t.set(r,a),a}};let n=r(21415);var i=r(21415);Object.defineProperty(t,"abytes",{enumerable:!0,get:function(){return i.abytes}}),Object.defineProperty(t,"anumber",{enumerable:!0,get:function(){return i.anumber}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(t,"bytesToUtf8",{enumerable:!0,get:function(){return i.bytesToUtf8}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return i.hexToBytes}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return i.isBytes}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}});let a=BigInt(0),o=BigInt(1);function s(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?a:BigInt("0x"+e)}function c(e,t){return(0,n.hexToBytes)(e.toString(16).padStart(2*t,"0"))}let u=e=>"bigint"==typeof e&&a<=e;function d(e,t,r){return u(e)&&u(t)&&u(r)&&t<=e&&e<r}t.bitMask=e=>(o<<BigInt(e))-o;let f={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||(0,n.isBytes)(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw Error("not implemented")}},50460:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=i,t.Chi=function(e,t,r){return e&t^~e&r},t.Maj=function(e,t,r){return e&t^e&r^t&r};let n=r(21415);function i(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),a=BigInt(4294967295),o=Number(r>>i&a),s=Number(r&a),l=n?4:0,c=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+c,s,n)}class a extends n.Hash{constructor(e,t,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,n.createView)(this.buffer)}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{view:t,buffer:r,blockLen:i}=this,a=e.length;for(let o=0;o<a;){let s=Math.min(i-this.pos,a-o);if(s===i){let t=(0,n.createView)(e);for(;i<=a-o;o+=i)this.process(t,o);continue}r.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.aexists)(this),(0,n.aoutput)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:a,isLE:o}=this,{pos:s}=this;t[s++]=128,(0,n.clean)(this.buffer.subarray(s)),this.padOffset>a-s&&(this.process(r,0),s=0);for(let e=s;e<a;e++)t[e]=0;i(r,a-8,BigInt(8*this.length),o),this.process(r,0);let l=(0,n.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)l.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=n,e.pos=o,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}t.HashMD=a,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},50602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(21415);class i extends n.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(e);let r=(0,n.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,n.clean)(a)}update(e){return(0,n.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,n.aexists)(this),(0,n.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=n,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>new i(e,t)},88215:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;let n=r(50460),i=r(21415),a=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),o=new Uint32Array(80);class s extends n.HashMD{constructor(){super(64,20,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4]}get(){let{A:e,B:t,C:r,D:n,E:i}=this;return[e,t,r,n,i]}set(e,t,r,n,i){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i}process(e,t){for(let r=0;r<16;r++,t+=4)o[r]=e.getUint32(t,!1);for(let e=16;e<80;e++)o[e]=(0,i.rotl)(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let{A:r,B:a,C:s,D:l,E:c}=this;for(let e=0;e<80;e++){let t,u;e<20?(t=(0,n.Chi)(a,s,l),u=1518500249):e<40?(t=a^s^l,u=1859775393):e<60?(t=(0,n.Maj)(a,s,l),u=2400959708):(t=a^s^l,u=3395469782);let d=(0,i.rotl)(r,5)+t+c+u+o[e]|0;c=l,l=s,s=(0,i.rotl)(a,30),a=r,r=d}r=r+this.A|0,a=a+this.B|0,s=s+this.C|0,l=l+this.D|0,c=c+this.E|0,this.set(r,a,s,l,c)}roundClean(){(0,i.clean)(o)}destroy(){this.set(0,0,0,0,0),(0,i.clean)(this.buffer)}}t.SHA1=s,t.sha1=(0,i.createHasher)(()=>new s);let l=Array.from({length:64},(e,t)=>Math.floor(4294967296*Math.abs(Math.sin(t+1)))),c=a.slice(0,4),u=new Uint32Array(16);class d extends n.HashMD{constructor(){super(64,16,8,!0),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3]}get(){let{A:e,B:t,C:r,D:n}=this;return[e,t,r,n]}set(e,t,r,n){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!0);let{A:r,B:a,C:o,D:s}=this;for(let e=0;e<64;e++){let t,c,d;e<16?(t=(0,n.Chi)(a,o,s),c=e,d=[7,12,17,22]):e<32?(t=(0,n.Chi)(s,a,o),c=(5*e+1)%16,d=[5,9,14,20]):e<48?(t=a^o^s,c=(3*e+5)%16,d=[4,11,16,23]):(t=o^(a|~s),c=7*e%16,d=[6,10,15,21]),t=t+r+l[e]+u[c],r=s,s=o,o=a,a+=(0,i.rotl)(t,d[e%4])}r=r+this.A|0,a=a+this.B|0,o=o+this.C|0,s=s+this.D|0,this.set(r,a,o,s)}roundClean(){(0,i.clean)(u)}destroy(){this.set(0,0,0,0),(0,i.clean)(this.buffer)}}t.MD5=d,t.md5=(0,i.createHasher)(()=>new d);let f=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),p=Uint8Array.from(Array(16).fill(0).map((e,t)=>t)),h=p.map(e=>(9*e+5)%16),m=(()=>{let e=[[p],[h]];for(let t=0;t<4;t++)for(let r of e)r.push(r[t].map(e=>f[e]));return e})(),b=m[0],y=m[1],g=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),v=b.map((e,t)=>e.map(e=>g[t][e])),w=y.map((e,t)=>e.map(e=>g[t][e])),E=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),x=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function A(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let k=new Uint32Array(16);class P extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:e,h1:t,h2:r,h3:n,h4:i}=this;return[e,t,r,n,i]}set(e,t,r,n,i){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|i}process(e,t){for(let r=0;r<16;r++,t+=4)k[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,o=a,s=0|this.h2,l=s,c=0|this.h3,u=c,d=0|this.h4,f=d;for(let e=0;e<5;e++){let t=4-e,p=E[e],h=x[e],m=b[e],g=y[e],P=v[e],C=w[e];for(let t=0;t<16;t++){let n=(0,i.rotl)(r+A(e,a,s,c)+k[m[t]]+p,P[t])+d|0;r=d,d=c,c=0|(0,i.rotl)(s,10),s=a,a=n}for(let e=0;e<16;e++){let r=(0,i.rotl)(n+A(t,o,l,u)+k[g[e]]+h,C[e])+f|0;n=f,f=u,u=0|(0,i.rotl)(l,10),l=o,o=r}}this.set(this.h1+s+u|0,this.h2+c+f|0,this.h3+d+n|0,this.h4+r+o|0,this.h0+a+l|0)}roundClean(){(0,i.clean)(k)}destroy(){this.destroyed=!0,(0,i.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=P,t.ripemd160=(0,i.createHasher)(()=>new P)},88282:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=function(e,t,r,n){let s;let{c:l,dkLen:c,DK:u,PRF:d,PRFSalt:f}=a(e,t,r,n),p=new Uint8Array(4),h=(0,i.createView)(p),m=new Uint8Array(d.outputLen);for(let e=1,t=0;t<c;e++,t+=d.outputLen){let r=u.subarray(t,t+d.outputLen);h.setInt32(0,e,!1),(s=f._cloneInto(s)).update(p).digestInto(m),r.set(m.subarray(0,r.length));for(let e=1;e<l;e++){d._cloneInto(s).update(m).digestInto(m);for(let e=0;e<r.length;e++)r[e]^=m[e]}}return o(d,f,u,s,m)}
1,t.pbkdf2Async=s;let n=r(50602),i=r(21415);function a(e,t,r,a){(0,i.ahash)(e);let{c:o,dkLen:s,asyncTick:l}=(0,i.checkOpts)({dkLen:32,asyncTick:10},a);if((0,i.anumber)(o),(0,i.anumber)(s),(0,i.anumber)(l),o<1)throw Error("iterations (c) should be >= 1");let c=(0,i.kdfInputToBytes)(t),u=(0,i.kdfInputToBytes)(r),d=new Uint8Array(s),f=n.hmac.create(e,c),p=f._cloneInto().update(u);return{c:o,dkLen:s,asyncTick:l,DK:d,PRF:f,PRFSalt:p}}function o(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),(0,i.clean)(a),r}async function s(e,t,r,n){let s;let{c:l,dkLen:c,asyncTick:u,DK:d,PRF:f,PRFSalt:p}=a(e,t,r,n),h=new Uint8Array(4),m=(0,i.createView)(h),b=new Uint8Array(f.outputLen);for(let e=1,t=0;t<c;e++,t+=f.outputLen){let r=d.subarray(t,t+f.outputLen);m.setInt32(0,e,!1),(s=p._cloneInto(s)).update(h).digestInto(b),r.set(b.subarray(0,r.length)),await (0,i.asyncLoop)(l-1,u,()=>{f._cloneInto(s).update(b).digestInto(b);for(let e=0;e<r.length;e++)r[e]^=b[e]})}return o(f,p,d,s,b)}},12548:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;let n=r(88215);t.RIPEMD160=n.RIPEMD160,t.ripemd160=n.ripemd160},38393:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;let n=r(50460),i=r(80533),a=r(21415),o=Uint32Array.from([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]),s=new Uint32Array(64);class l extends n.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:a,G:o,H:s}=this;return[e,t,r,n,i,a,o,s]}set(e,t,r,n,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)s[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=s[e-15],r=s[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,i=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;s[e]=i+s[e-7]+n+s[e-16]|0}let{A:r,B:i,C:l,D:c,E:u,F:d,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,a.rotr)(u,6)^(0,a.rotr)(u,11)^(0,a.rotr)(u,25))+(0,n.Chi)(u,d,f)+o[e]+s[e]|0,h=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,i,l)|0;p=f,f=d,d=u,u=c+t|0,c=l,l=i,i=r,r=t+h|0}r=r+this.A|0,i=i+this.B|0,l=l+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,i,l,c,u,d,f,p)}roundClean(){(0,a.clean)(s)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,a.clean)(this.buffer)}}t.SHA256=l;class c extends l{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=c;let u=i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a854
16d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),d=u[0],f=u[1],p=new Uint32Array(80),h=new Uint32Array(80);class m extends n.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:a,Dh:o,Dl:s,Eh:l,El:c,Fh:u,Fl:d,Gh:f,Gl:p,Hh:h,Hl:m}=this;return[e,t,r,n,i,a,o,s,l,c,u,d,f,p,h,m]}set(e,t,r,n,i,a,o,s,l,c,u,d,f,p,h,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|a,this.Dh=0|o,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|p,this.Hh=0|h,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)p[r]=e.getUint32(t),h[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|p[e-15],r=0|h[e-15],n=i.rotrSH(t,r,1)^i.rotrSH(t,r,8)^i.shrSH(t,r,7),a=i.rotrSL(t,r,1)^i.rotrSL(t,r,8)^i.shrSL(t,r,7),o=0|p[e-2],s=0|h[e-2],l=i.rotrSH(o,s,19)^i.rotrBH(o,s,61)^i.shrSH(o,s,6),c=i.rotrSL(o,s,19)^i.rotrBL(o,s,61)^i.shrSL(o,s,6),u=i.add4L(a,c,h[e-7],h[e-16]),d=i.add4H(u,n,l,p[e-7],p[e-16]);p[e]=0|d,h[e]=0|u}let{Ah:r,Al:n,Bh:a,Bl:o,Ch:s,Cl:l,Dh:c,Dl:u,Eh:m,El:b,Fh:y,Fl:g,Gh:v,Gl:w,Hh:E,Hl:x}=this;for(let e=0;e<80;e++){let t=i.rotrSH(m,b,14)^i.rotrSH(m,b,18)^i.rotrBH(m,b,41),A=i.rotrSL(m,b,14)^i.rotrSL(m,b,18)^i.rotrBL(m,b,41),k=m&y^~m&v,P=b&g^~b&w,C=i.add5L(x,A,P,f[e],h[e]),T=i.add5H(C,E,t,k,d[e],p[e]),_=0|C,O=i.rotrSH(r,n,28)^i.rotrBH(r,n,34)^i.rotrBH(r,n,39),S=i.rotrSL(r,n,28)^i.rotrBL(r,n,34)^i.rotrBL(r,n,39),I=r&a^r&s^a&s,B=n&o^n&l^o&l;E=0|v,x=0|w,v=0|y,w=0|g,y=0|m,g=0|b,({h:m,l:b}=i.add(0|c,0|u,0|T,0|_)),c=0|s,u=0|l,s=0|a,l=0|o,a=0|r,o=0|n;let j=i.add3L(_,S,B);r=i.add3H(j,T,O,I),n=0|j}({h:r,l:n}=i.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:a,l:o}=i.add(0|this.Bh,0|this.Bl,0|a,0|o)),({h:s,l:l}=i.add(0|this.Ch,0|this.Cl,0|s,0|l)),({h:c,l:u}=i.add(0|this.Dh,0|this.Dl,0|c,0|u)),({h:m,l:b}=i.add(0|this.Eh,0|this.El,0|m,0|b)),({h:y,l:g}=i.add(0|this.Fh,0|this.Fl,0|y,0|g)),({h:v,l:w}=i.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:x}=i.add(0|this.Hh,0|this.Hl,0|E,0|x)),this.set(r,n,a,o,s,l,c,u,m,b,y,g,v,w,E,x)}roundClean(){(0,a.clean)(p,h)}destroy(){(0,a.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=m;class b extends m{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=b;let y=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),g=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,28279439
107,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class v extends m{constructor(){super(28),this.Ah=0|y[0],this.Al=0|y[1],this.Bh=0|y[2],this.Bl=0|y[3],this.Ch=0|y[4],this.Cl=0|y[5],this.Dh=0|y[6],this.Dl=0|y[7],this.Eh=0|y[8],this.El=0|y[9],this.Fh=0|y[10],this.Fl=0|y[11],this.Gh=0|y[12],this.Gl=0|y[13],this.Hh=0|y[14],this.Hl=0|y[15]}}t.SHA512_224=v;class w extends m{constructor(){super(32),this.Ah=0|g[0],this.Al=0|g[1],this.Bh=0|g[2],this.Bl=0|g[3],this.Ch=0|g[4],this.Cl=0|g[5],this.Dh=0|g[6],this.Dl=0|g[7],this.Eh=0|g[8],this.El=0|g[9],this.Fh=0|g[10],this.Fl=0|g[11],this.Gh=0|g[12],this.Gl=0|g[13],this.Hh=0|g[14],this.Hl=0|g[15]}}t.SHA512_256=w,t.sha256=(0,a.createHasher)(()=>new l),t.sha224=(0,a.createHasher)(()=>new c),t.sha512=(0,a.createHasher)(()=>new m),t.sha384=(0,a.createHasher)(()=>new b),t.sha512_256=(0,a.createHasher)(()=>new w),t.sha512_224=(0,a.createHasher)(()=>new v)},86960:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;let n=r(38393);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},50075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthersSigner=void 0;let n=r(65296);class i{chainId;provider;signer;constructor(e,t){if(this.chainId=e,void 0==t.provider)throw Error("signer is missing provider");this.signer=t,this.provider=t.provider}async signMessage(e){return this.signer.signMessage(n.ethers.utils.arrayify(e))}async signRawMessage(e){return this.signer.signMessage(e)}async signTypedData(e,t,r,n){return this.signer._signTypedData(e,t,r)}async getAddress(){return this.signer.getAddress()}async estimateGas(e){return(await this.provider.estimateGas({from:e.from,to:e.to,data:e.data,nonce:e.nonce})).toBigInt()}async signTransaction(e){return this.signer.signTransaction({to:e.to,data:e.data,value:e.value,gasLimit:e.gasLimit,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce})}async sendTransaction(e){return(await this.signer.sendTransaction({to:e.to,data:e.data,value:e.value,gasLimit:e.gasLimit,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce})).hash}async waitTillMined(e){return this.provider.waitForTransaction(e)}}t.EthersSigner=i},86034:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAbstractSigner=function(e,t){return t instanceof n.Wallet||t instanceof i.JsonRpcSigner?new a.EthersSigner(e,t):new o.ViemSigner(e,t)};let n=r(65296),i=r(56627),a=r(50075),o=r(74311)},91333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(67929);n.__exportStar(r(1059),t),n.__exportStar(r(86034),t),n.__exportStar(r(37653),t)},1059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViemSigner=void 0;let n=r(45964),i=r(94253);class a{chainId;walletClient;publicClient;constructor(e,t){if(this.chainId=e,void 0!=t.chain&&t.chain.id!=e)throw Error("wallet client chain id does not match chain id");this.walletClient=t;let r=t.transport;this.publicClient=(0,n.createPublicClient)({chain:(0,i.chainIdToChain)(e),transport:()=>({config:r.config,name:r.name,request:r.request,type:r.type,value:r.value})})}async signMessage(e){let[t]=this.walletClient.account?[this.walletClient.account]:await this.walletClient.requestAddresses(),r={raw:(0,n.toBytes)(e)};return this.walletClient.signMessage({account:t,message:r})}async signRawMessage(e){let[t]=this.walletClient.account?[this.walletClient.account]:await this.walletClient.requestAddresses();return this.walletClient.signMessage({account:t,message:{raw:e}})}async signTypedData(e,t,r,n){if(void 0==n)throw Error("primaryType is required in viem signers");let[i]=this.walletClient.account?[this.walletClient.account]:await this.walletClient.requestAddresses();return this.walletClient.signTypedData({account:i,domain:e,types:t,primaryType:n,message:r})}async getAddress(){if(void 0==this.walletClient.account){let[e]=await this.walletClient.requestAddresses();return e}return this.walletClient.account.address}async estimateGas(e){return this.publicClient.estimateGas({account:e.from,to:e.to,data:e.data,nonce:e.nonce})}async signTransaction(e){let t=void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas,r=void 0!==e.gasPrice;if(t&&r)throw Error("cannot specify both EIP1559 and legacy gas fields");let[n]=this.walletClient.account?[this.walletClient.account]:await this.walletClient.requestAddresses();return t?this.walletClient.signTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLim
1it,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce}):r?this.walletClient.signTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLimit,gasPrice:e.gasPrice,nonce:e.nonce}):this.walletClient.signTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLimit,nonce:e.nonce})}async sendTransaction(e){let t=void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas,r=void 0!==e.gasPrice;if(t&&r)throw Error("cannot specify both EIP1559 and legacy gas fields");let[n]=this.walletClient.account?[this.walletClient.account]:await this.walletClient.requestAddresses();return t?this.walletClient.sendTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLimit,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce}):r?this.walletClient.sendTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLimit,gasPrice:e.gasPrice,nonce:e.nonce}):this.walletClient.sendTransaction({account:n,chain:this.walletClient.chain,to:e.to,data:e.data,value:e.value,gas:e.gasLimit,nonce:e.nonce})}async waitTillMined(e){return this.publicClient.waitForTransactionReceipt({hash:e})}}t.ViemSigner=a},94253:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainIdToChain=void 0;let n=r(13418);t.chainIdToChain=e=>{switch(e){case 1:return n.mainnet;case 137:return n.polygon;case 80002:return n.polygonAmoy;default:throw Error(`unsupported chainId ${e}`)}}},35228:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.depositWalletV1Abi=void 0,t.depositWalletV1Abi=[{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]},61942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.erc20Abi=void 0,t.erc20Abi=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}]},20357:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(67929);n.__exportStar(r(47280),t),n.__exportStar(r(97448),t),n.__exportStar(r(61942),t),n.__exportStar(r(10660),t),n.__exportStar(r(19726),t),n.__exportStar(r(35228),t)},19726:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.multisendAbi=void 0,t.multisendAbi=[{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},97448:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.proxyWalletFactory=void 0,t.proxyWalletFactory=[{constant:!1,inputs:[{components:[{name:"typeCode",type:"uint8"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"proxy",outputs:[{name:"returnValues",type:"bytes[]"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"",type:"bytes"}],name:"cloneConstructor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"renounceOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getHubAddr",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"context",type:"bytes"}],name:"preRelayedCall",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"},{name:"",type:"bytes"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"bytes"},{name:"",type:"uint256"}],name:"acceptRelayedCall",outputs:[{name:"doCall",type:"uint256"},{name:"context",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getImplementation",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"relayHubVersion",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"gsnModule",type:"address"}],name:"setGSNModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"context",type:"bytes"},{name:"success",type:"bool"},{name:"actualCharge",type:"uint256"},{name:"preRetVal",type:"bytes32"}],name:"postRelayedCall",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getGSNModule",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"oldRelayHub",type:"address"},{indexed:!0,name:"newRelayHub",type:"address"}],name:"RelayHubChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"}]},10660:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeAbi=void 0,t.safeAbi=[{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"}]},47280:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.safeFactoryAbi=void 0,t.safeFactoryAbi=[{inputs:[{internalType:"address",name:"_masterCopy",type:"address"},{internalType:"address",name:"_fallbackHandler",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafe",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[],name:"CREATE_PROXY_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"computeProxyAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct SafeProxyFactory.Sig",name:"createSig",type:"tuple"}],name:"createProxy",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"fallbackHandler",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getContractBytecode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getSalt",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"masterCopy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}]},7162:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSafeCreateTransactionRequest=s;let n=r(15752),i=r(44464),a=r(26853);async function o(e,t,r,n,a,o){let s={name:i.SAFE_FACTORY_NAME,chainId:BigInt(r),verifyingContract:t},l={paymentToken:n,payment:BigInt(a),paymentReceiver:o},c=await e.signTypedData(s,{CreateProxy:[{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}]},l,"CreateProxy");return console.log(`Sig: ${c}`),c}async function s(e,t,r){let i=t.SafeFactory,s=await o(e,i,r.chainId,r.paymentToken,r.payment,r.paymentReceiver),l={paymentToken:r.paymentToken,payment:r.payment,paymentReceiver:r.paymentReceiver},c=(0,a.deriveSafe)(r.from,i),u={from:r.from,to:i,proxyWallet:c,data:"0x",signature:s,signatureParams:l,type:n.TransactionType.SAFE_CREATE};return console.log("Created a SAFE-CREATE Transaction:"),console.log(u),u}},88082:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDepositWalletBatchRequest=s,t.buildDepositWalletCreateRequest=function(e,t){return{type:i.TransactionType.WALLET_CREATE,from:e,to:t.DepositWalletFactory}};let n=r(44464),i=r(15752),a={Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],Batch:[{name:"wallet",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"calls",type:"Call[]"}]};async function o(e,t,r,i,o,s){let l={name:n.DEPOSIT_WALLET_DOMAIN_NAME,version:n.DEPOSIT_WALLET_DOMAIN_VERSION,chainId:t,verifyingContract:r},c={wallet:r,nonce:BigInt(i),deadline:BigInt(o),calls:s.map(e=>({target:e.target,value:BigInt(e.value),data:e.data}))};return e.signTypedData(l,a,c,"Batch")}async function s(e,t,r){let n=await o(e,t.chainId,t.walletAddress,t.nonce,t.deadline,t.calls);return{type:i.TransactionType.WALLET,from:t.from,to:r.DepositWalletFactory,nonce:t.nonce,signature:n,depositWalletParams:{depositWallet:t.walletAddress,deadline:t.deadline,calls:t.calls}}}},26853:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.deriveBeaconDepositWallet=t.deriveDepositWallet=t.deriveUupsDepositWallet=t.deriveSafe=t.deriveProxyWallet=void 0;let n=r(45964),i=r(44464);function a(e,t){let r=(0,n.pad)(e,{dir:"left",size:32});return(0,n.encodeAbiParameters)([{type:"address"},{type:"bytes32"}],[t,r])}t.deriveProxyWallet=(e,t)=>(0,n.getCreate2Address)({bytecodeHash:i.PROXY_INIT_CODE_HASH,from:t,salt:(0,n.keccak256)((0,n.encodePacked)(["address"],[e]))}),t.deriveSafe=(e,t)=>(0,n.getCreate2Address)({bytecodeHash:i.SAFE_INIT_CODE_HASH,from:t,salt:(0,n.keccak256)((0,n.encodeAbiParameters)([{name:"address",type:"address"}],[e]))}),t.deriveUupsDepositWallet=(e,t,r)=>{let i=a(e,t),o=(0,n.keccak256)(i),s=function(e,t){let r=BigInt((t.length-2)/2);return(0,n.keccak256)((0,n.concat)([(0,n.toHex)(0x61003d3d8160233d3973n+(r<<56n),{size:10}),e,"0x6009","0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076","0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3",t]))}(r,i);return(0,n.getCreate2Address)({from:t,salt:o,bytecodeHash:s})},t.deriveDepositWallet=(e,r,n)=>(0,t.deriveUupsDepositWallet)(e,r,n),t.deriveBeaconDepositWallet=(e,t,r)=>{let i=a(e,t),o=(0,n.keccak256)(i),s=function(e,t){let r=BigInt((t.length-2)/2);return(0,n.keccak256)((0,n.concat)([(0,n.toHex)(0x6100523d8160233d3973n+(r<<56n),{size:10}),e,"0x60195155f3363d3d373d3d363d602036600436635c60da","0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c","0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3",t]))}(r,i);return(0,n.getCreate2Address)({from:t,salt:o,bytecodeHash:s})}},92170:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveSafe=t.deriveProxyWallet=t.deriveDepositWallet=void 0;let n=r(67929);n.__exportStar(r(79839),t),n.__exportStar(r(7162),t);var i=r(26853);Object.defineProperty(t,"deriveDepositWallet",{enumerable:!0,get:function(){return i.deriveDepositWallet}}),Object.defineProperty(t,"deriveProxyWallet",{enumerable:!0,get:function(){return i.deriveProxyWallet}}),Object.defineProperty(t,"deriveSafe",{enumerable:!0,get:function(){return i.deriveSafe}}),n.__exportStar(r(82452),t),n.__exportStar(r(88082),t)},82452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildProxyTransactionRequest=l;let n=r(45964),i=r(15752),a=r(26853),o=BigInt(1e7);async function s(e,t){return e.signMessage(t)}async function l(e,t,r,o){let l=r.ProxyFactory,u=(0,a.deriveProxyWallet)(t.from,l),d=r.RelayHub,f=await c(e,l,t),p={gasPrice:t.gasPrice,gasLimit:f,relayerFee:"0",relayHub:d,relay:t.relay},h=function(e,t,r,i,a,o,s,l,c){let u=(0,n.toHex)("rlx:"),d=(0,n.toHex)(BigInt("0"),{size:32}),f=(0,n.toHex)(BigInt(a),{size:32}),p=(0,n.toHex)(BigInt(o),{size:32}),h=(0,n.toHex)(BigInt(s),{size:32}),m=(0,n.concat)([u,e,t,r,d,f,p,h,l,c]);return(0,n.keccak256)(m)}(t.from,l,t.data,0,t.gasPrice,f,t.nonce,d,t.relay),m=await s(e,h);void 0==o&&(o="");let b={from:t.from,to:l,proxyWallet:u,data:t.data,nonce:t.nonce,signature:m,signatureParams:p,type:i.TransactionType.PROXY,metadata:o};return console.log("Created Proxy Transaction Request:"),console.log(b),b}async function c(e,t,r){let n;if(r.gasLimit&&"0"!==r.gasLimit)return r.gasLimit;
1try{n=await e.estimateGas({from:r.from,to:t,data:r.data})}catch(e){console.log("Error estimating gas for proxy transaction, using default gas limit:",e),n=o}return n.toString()}},79839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregateTransaction=c,t.buildSafeTransactionRequest=u;let n=r(45964),i=r(15752),a=r(26853),o=r(46490),s=r(93919);async function l(e,t){return e.signMessage(t)}function c(e,t){return 1==e.length?e[0]:(0,o.createSafeMultisendTransaction)(e,t)}async function u(e,t,r,o){var u,d,f,p,h,m;let b=r.SafeFactory,y=r.SafeMultisend,g=c(t.transactions,y),v=n.zeroAddress,w=n.zeroAddress,E=(0,a.deriveSafe)(t.from,b),x=(u=t.chainId,d=g.to,f=g.value,p=g.data,h=g.operation,m=t.nonce,(0,n.hashTypedData)({primaryType:"SafeTx",domain:{chainId:u,verifyingContract:E},types:{SafeTx:[{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"}]},message:{to:d,value:f,data:p,operation:h,safeTxGas:"0",baseGas:"0",gasPrice:"0",gasToken:v,refundReceiver:w,nonce:m}})),A=await l(e,x),k=(0,s.splitAndPackSig)(A),P={gasPrice:"0",operation:`${g.operation}`,safeTxnGas:"0",baseGas:"0",gasToken:v,refundReceiver:w};void 0==o&&(o="");let C={from:t.from,to:g.to,proxyWallet:E,data:g.data,nonce:t.nonce,signature:k,signatureParams:P,type:i.TransactionType.SAFE,metadata:o};return console.log("Created Safe Transaction Request: "),console.log(C),C}},11848:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayClient=void 0;let n=r(45964),i=r(13418),a=r(91333),o=r(80497),s=r(15752),l=r(42934),c=r(92170),u=r(26853),d=r(93919),f=r(75425),p=r(52930),h=r(36233),m=r(39126);class b{relayerUrl;chainId;relayTxType;contractConfig;httpClient;publicClient;signer;builderConfig;constructor(e,t,r,l,c,u){this.relayerUrl=e.endsWith("/")?e.slice(0,-1):e,this.chainId=t,void 0==c&&(c=s.RelayerTxType.SAFE),this.relayTxType=c,this.contractConfig=(0,p.getContractConfig)(t),this.httpClient=new o.HttpClient;let d=u?.chain??i.polygon;if(d.id!==t)throw Error("chain id does not match chainId");this.publicClient=(0,n.createPublicClient)({chain:d,transport:(0,n.http)()}),void 0!=r&&(this.signer=(0,a.createAbstractSigner)(t,r)),void 0!==l&&(this.builderConfig=l)}async getNonce(e,t){return this.send(`${l.GET_NONCE}`,o.GET,{params:{address:e,type:t}})}async getRelayPayload(e,t){return this.send(`${l.GET_RELAY_PAYLOAD}`,o.GET,{params:{address:e,type:t}})}async getTransaction(e){return this.send(`${l.GET_TRANSACTION}`,o.GET,{params:{id:e}})}async getTransactions(){return this.sendAuthedRequest(o.GET,l.GET_TRANSACTIONS)}async execute(e,t){if(this.signerNeeded(),0==e.length)throw Error("no transactions to execute");switch(this.relayTxType){case s.RelayerTxType.SAFE:return this.executeSafeTransactions(e.map(e=>({to:e.to,operation:s.OperationType.Call,data:e.data,value:"0"})),t);case s.RelayerTxType.PROXY:return this.executeProxyTransactions(e.map(e=>({to:e.to,typeCode:s.CallType.Call,data:e.data,value:"0"})),t);default:throw Error(`Unsupported relay transaction type: ${this.relayTxType}`)}}async executeProxyTransactions(e,t){this.signerNeeded(),console.log("Executing proxy transactions...");let r=Date.now(),n=await this.signer.getAddress(),i=await this.getRelayPayload(n,s.TransactionType.PROXY),a={from:n,gasPrice:"0",data:(0,m.encodeProxyTransactionData)(e),relay:i.address,nonce:i.nonce},u=this.contractConfig.ProxyContracts;if(!(0,p.isProxyContractConfigValid)(u))throw h.CONFIG_UNSUPPORTED_ON_CHAIN;let d=await (0,c.buildProxyTransactionRequest)(this.signer,a,u,t);console.log(`Client side proxy request creation took: ${(Date.now()-r)/1e3} seconds`);let b=JSON.stringify(d),y=await this.sendAuthedRequest(o.POST,l.SUBMIT_TRANSACTION,b);return new f.ClientRelayerTransactionResponse(y.transactionID,y.state,y.transactionHash,this)}async executeSafeTransactions(e,t){this.signerNeeded(),console.log("Executing safe transactions...");let r=await this.getExpectedSafe();if(!await this.getDeployed(r))throw h.SAFE_NOT_DEPLOYED;let n=Date.now(),i=await this.signer.getAddress(),a=await this.getNonce(i,s.TransactionType.SAFE),u={transactions:e,from:i,nonce:a.nonce,chainId:this.chainId},d=this.contractConfig.SafeContracts;if(!(0,p.isSafeContractConfigValid)(d))throw h.CONFIG_UNSUPPORTED_ON_CHAIN;let m=await (0,c.buildSafeTransactionRequest)(this.signer,u,d,t);console.log(`Client side safe request creation took: ${(Date.now()-n)/1e3} seconds`);let b=JSON.stringify(m),y=await this.sendAuthedRequest(o.POST,l.SUBMIT_TRANSACTION,b);return new f.ClientRelayerTransactionResponse(y.transactionID,y.state,y.transactionHash,this)}async deploy(){this.signerNeeded();let e=await this.getExpectedSafe();
1if(await this.getDeployed(e))throw h.SAFE_DEPLOYED;return console.log(`Deploying safe ${e}...`),this._deploy()}async _deploy(){let e=Date.now(),t={from:await this.signer.getAddress(),chainId:this.chainId,paymentToken:n.zeroAddress,payment:"0",paymentReceiver:n.zeroAddress},r=this.contractConfig.SafeContracts,i=await (0,c.buildSafeCreateTransactionRequest)(this.signer,r,t);console.log(`Client side deploy request creation took: ${(Date.now()-e)/1e3} seconds`);let a=JSON.stringify(i),s=await this.sendAuthedRequest(o.POST,l.SUBMIT_TRANSACTION,a);return new f.ClientRelayerTransactionResponse(s.transactionID,s.state,s.transactionHash,this)}async getDeployed(e,t){let r={address:e};return void 0!==t&&(r.type=t),(await this.send(`${l.GET_DEPLOYED}`,o.GET,{params:r})).deployed}async deployDepositWallet(){this.signerNeeded();let e=await this.signer.getAddress(),t=this.contractConfig.DepositWalletContracts;if(!(0,p.isDepositWalletContractConfigValid)(t))throw h.CONFIG_UNSUPPORTED_ON_CHAIN;let r=JSON.stringify((0,c.buildDepositWalletCreateRequest)(e,t)),n=await this.sendAuthedRequest(o.POST,l.SUBMIT_TRANSACTION,r);return new f.ClientRelayerTransactionResponse(n.transactionID,n.state,n.transactionHash,this)}async executeDepositWalletBatch(e,t,r){this.signerNeeded();let n=await this.signer.getAddress(),i=this.contractConfig.DepositWalletContracts;if(!(0,p.isDepositWalletContractConfigValid)(i))throw h.CONFIG_UNSUPPORTED_ON_CHAIN;let a=await this.getNonce(n,s.TransactionType.WALLET),u={from:n,chainId:this.chainId,walletAddress:t,nonce:a.nonce,deadline:r,calls:e},d=JSON.stringify(await (0,c.buildDepositWalletBatchRequest)(this.signer,u,i)),m=await this.sendAuthedRequest(o.POST,l.SUBMIT_TRANSACTION,d);return new f.ClientRelayerTransactionResponse(m.transactionID,m.state,m.transactionHash,this)}async deriveDepositWalletAddress(){this.signerNeeded();let e=this.contractConfig.DepositWalletContracts;if(!(0,p.isDepositWalletContractConfigValid)(e))throw h.CONFIG_UNSUPPORTED_ON_CHAIN;let t=await this.signer.getAddress(),r=(0,u.deriveUupsDepositWallet)(t,e.DepositWalletFactory,e.DepositWalletImplementation),i=await this.getDepositWalletFactoryBeacon(e.DepositWalletFactory);return i.toLowerCase()===n.zeroAddress||await this.isContractDeployed(r)?r:(0,u.deriveBeaconDepositWallet)(t,e.DepositWalletFactory,i)}async isContractDeployed(e){let t=await this.publicClient.getCode({address:e});return void 0!==t&&"0x"!==t}async getDepositWalletFactoryBeacon(e){try{let{data:t}=await this.publicClient.call({to:e,data:"0x49493a4d"});return void 0===t||t.length<66?n.zeroAddress:`0x${t.slice(-40)}`}catch(e){if(e instanceof n.BaseError&&null!==e.walk(e=>e instanceof n.ContractFunctionRevertedError||e instanceof n.ExecutionRevertedError||e instanceof n.RawContractError&&3===e.code))return n.zeroAddress;throw e}}async pollUntilState(e,t,r,n,i){console.log(`Waiting for transaction ${e} matching states: ${t}...`);let a=void 0!=n?n:10,o=2e3;void 0!=i&&i>=1e3&&(o=i);let s=0;for(;s<a;){let n=await this.getTransaction(e);if(n.length>0){let i=n[0];if(t.includes(i.state))return i;if(void 0!=r&&i.state==r){console.error(`txn ${e} failed onchain! Transaction hash: ${i.transactionHash}`);return}}s++,await (0,d.sleep)(o)}console.log("Transaction not found or not in given states, timing out!")}async sendAuthedRequest(e,t,r){if(this.canBuilderAuth()){let n=await this._generateBuilderHeaders(e,t,r);if(void 0!==n)return this.send(t,e,{headers:n,data:r})}return this.send(t,e,{data:r})}async _generateBuilderHeaders(e,t,r){if(void 0!==this.builderConfig){let n=await this.builderConfig.generateBuilderHeaders(e,t,r);if(void 0!=n)return n}}canBuilderAuth(){return void 0!=this.builderConfig&&this.builderConfig.isValid()}async send(e,t,r){return(await this.httpClient.send(`${this.relayerUrl}${e}`,t,r)).data}signerNeeded(){if(void 0===this.signer)throw h.SIGNER_UNAVAILABLE}async getExpectedSafe(){let e=await this.signer.getAddress();return(0,c.deriveSafe)(e,this.contractConfig.SafeContracts.SafeFactory)}}t.RelayClient=b},52930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractConfig=void 0,t.isProxyContractConfigValid=function(e){return!!e.RelayHub&&!!e.ProxyFactory},t.isSafeContractConfigValid=function(e){return!!e.SafeFactory&&!!e.SafeMultisend},t.isDepositWalletContractConfigValid=function(e){return!!e.DepositWalletFactory&&!!e.DepositWalletImplementation};let r={ProxyContracts:{RelayHub:"",ProxyFactory:""},SafeContracts:{SafeFactory:"0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b",SafeMultisend:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},DepositWalletContracts:{DepositWalletFactory:"0x00000000000Fb5C9ADea0298D729A0CB3823Cc07",DepositWalletImplementation:"0x50a88fE9a441cB4c9c2aD6A2207CE2795C7D7Fbd"}},n={ProxyContracts:{ProxyFactory:"0xaB45c5A4B0c941a2F231C04C3f49182e1A254052",RelayHub:"0xD216153c06E857cD7f72665E0aF1d7D82172F494"},SafeContracts:{SafeFactory:"0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b",SafeMultisend:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},DepositWalletContracts:{DepositWalletFactory:"0x00000000000Fb5C9ADea0298D729A0CB3823Cc07",DepositWalletImplementation:"0x58CA52ebe0DadfdF531Cde7062e76746de4Db1eB"}};t.getContractConfig=e=>{switch(e){case 137:return n;case 80002:return r;default:throw Error("Invalid network")}}},44464:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.DEPOSIT_WALLET_DOMAIN_VERSION=t.DEPOSIT_WALLET_DOMAIN_NAME=t.SAFE_FACTORY_NAME=t.PROXY_INIT_CODE_HASH=t.SAFE_INIT_CODE_HASH=void 0,t.SAFE_INIT_CODE_HASH="0x2bce2127ff07fb632d16c8347c4ebf501f4841168bed00d9e6ef715ddb6fcecf",t.PROXY_INIT_CODE_HASH="0xd21df8dc65880a8606f09fe0ce3df9b8869287ab0b058be05aa9e8af6330a00b",t.SAFE_FACTORY_NAME="Polymarket Contract Proxy Factory",t.DEPOSIT_WALLET_DOMAIN_NAME="DepositWallet",t.DEPOSIT_WALLET_DOMAIN_VERSION="1"},39126:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(67929);n.__exportStar(r(46490),t),n.__exportStar(r(63487),t)},63487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeProxyTransactionData=function(e){return(0,i.encodeFunctionData)({...a,args:[e]})};let n=r(20357),i=r(45964),a=(0,i.prepareEncodeFunctionData)({abi:n.proxyWalletFactory,functionName:"proxy"})},46490:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSafeMultisendTransaction=void 0;let n=r(45964),i=r(20357),a=r(15752),o=(0,n.prepareEncodeFunctionData)({abi:i.multisendAbi,functionName:"multiSend"});t.createSafeMultisendTransaction=(e,t)=>{let r=[(0,n.concatHex)(e.map(e=>(0,n.encodePacked)(["uint8","address","uint256","uint256","bytes"],[e.operation,e.to,BigInt(e.value),BigInt((0,n.size)(e.data)),e.data])))];return{to:t,value:"0",data:(0,n.encodeFunctionData)({...o,args:r}),operation:a.OperationType.DelegateCall}}},42934:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GET_DEPLOYED=t.SUBMIT_TRANSACTION=t.GET_TRANSACTIONS=t.GET_TRANSACTION=t.GET_RELAY_PAYLOAD=t.GET_NONCE=void 0,t.GET_NONCE="/nonce",t.GET_RELAY_PAYLOAD="/relay-payload",t.GET_TRANSACTION="/transaction",t.GET_TRANSACTIONS="/transactions",t.SUBMIT_TRANSACTION="/submit",t.GET_DEPLOYED="/deployed"},36233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG_UNSUPPORTED_ON_CHAIN=t.SAFE_NOT_DEPLOYED=t.SAFE_DEPLOYE
1D=t.SIGNER_UNAVAILABLE=void 0,t.SIGNER_UNAVAILABLE=Error("signer is needed to interact with this endpoint!"),t.SAFE_DEPLOYED=Error("safe already deployed!"),t.SAFE_NOT_DEPLOYED=Error("safe not deployed!"),t.CONFIG_UNSUPPORTED_ON_CHAIN=Error("config is not supported on the chainId")},80497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=t.PUT=t.DELETE=t.POST=t.GET=void 0;let n=r(67929).__importDefault(r(29833));t.GET="GET",t.POST="POST",t.DELETE="DELETE",t.PUT="PUT";class i{instance;constructor(){this.instance=n.default.create({withCredentials:!0})}async send(e,t,r){void 0!==r&&void 0!=r.headers&&(r.headers["Access-Control-Allow-Credentials"]=!0);try{return await this.instance.request({url:e,method:t,headers:r?.headers,data:r?.data,params:r?.params})}catch(e){if(n.default.isAxiosError(e)){if(e.response){let t={error:"request error",status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data};throw console.error("request error",t),Error(JSON.stringify(t))}{let e={error:"connection error"};throw console.error("connection error",e),Error(JSON.stringify(e))}}throw Error(JSON.stringify({error:e}))}}}t.HttpClient=i},88311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(67929);n.__exportStar(r(11848),t),n.__exportStar(r(92170),t),n.__exportStar(r(39126),t),n.__exportStar(r(15752),t),n.__exportStar(r(75425),t)},75425:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientRelayerTransactionResponse=void 0;let n=r(15752);class i{client;transactionID;transactionHash;hash;state;constructor(e,t,r,n){this.transactionID=e,this.state=t,this.transactionHash=r,this.hash=r,this.client=n}async getTransaction(){return this.client.getTransaction(this.transactionID)}async wait(){return this.client.pollUntilState(this.transactionID,[n.RelayerTransactionState.STATE_MINED,n.RelayerTransactionState.STATE_CONFIRMED],n.RelayerTransactionState.STATE_FAILED,100)}}t.ClientRelayerTransactionResponse=i},15752:function(e,t){"use strict";var r,n,i,a,o,s,l,c,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.RelayerTransactionState=t.OperationType=t.CallType=t.TransactionType=t.RelayerTxType=void 0,(s=r||(t.RelayerTxType=r={})).SAFE="SAFE",s.PROXY="PROXY",(l=n||(t.TransactionType=n={})).SAFE="SAFE",l.PROXY="PROXY",l.SAFE_CREATE="SAFE-CREATE",l.WALLET="WALLET",l.WALLET_CREATE="WALLET-CREATE",(c=i||(t.CallType=i={})).Invalid="0",c.Call="1",c.DelegateCall="2",(u=a||(t.OperationType=a={}))[u.Call=0]="Call",u[u.DelegateCall=1]="DelegateCall",(d=o||(t.RelayerTransactionState=o={})).STATE_NEW="STATE_NEW",d.STATE_EXECUTED="STATE_EXECUTED",d.STATE_MINED="STATE_MINED",d.STATE_INVALID="STATE_INVALID",d.STATE_CONFIRMED="STATE_CONFIRMED",d.STATE_FAILED="STATE_FAILED"},93919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitAndPackSig=function(e){let t=function(e){let t=parseInt(e.slice(-2),16);switch(t){case 0:case 1:t+=31;break;case 27:case 28:t+=4;break;default:throw Error("Invalid signature")}return e=e.slice(0,-2)+t.toString(16),{r:(0,n.hexToBigInt)("0x"+e.slice(2,66)).toString(),s:(0,n.hexToBigInt)("0x"+e.slice(66,130)).toString(),v:(0,n.hexToBigInt)("0x"+e.slice(130,132)).toString()}}(e);return(0,n.encodePacked)(["uint256","uint256","uint8"],[BigInt(t.r),BigInt(t.s),parseInt(t.v)])},t.sleep=function(e){return new Promise(t=>setTimeout(t,e))};let n=r(45964)},10009:function(e,t){"use strict";function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function n(e,...t){if(!r(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>"string"==typeof e):t.every(e=>Number.isSafeInteger(e))))}function a(e){if("function"!=typeof e)throw Error("function expected");return!0}function o(e,t){if("string"!=typeof t)throw Error(`${e}: string expected`);return!0}function s(e){if(!Number.isSafeInteger(e))throw Error(`invalid integer: ${e}`)}function l(e){if(!Array.isArray(e))throw Error("array expected")}function c(e,t){if(!i(!0,t))throw Error(`${e}
1: array of strings expected`)}function u(e,t){if(!i(!1,t))throw Error(`${e}: array of numbers expected`)}function d(...e){let t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map(e=>e.encode).reduceRight(r,t),decode:e.map(e=>e.decode).reduce(r,t)}}function f(e){let t="string"==typeof e?e.split(""):e,r=t.length;c("alphabet",t);let n=new Map(t.map((e,t)=>[e,t]));return{encode:n=>(l(n),n.map(n=>{if(!Number.isSafeInteger(n)||n<0||n>=r)throw Error(`alphabet.encode: digit index outside alphabet "${n}". Allowed: ${e}`);return t[n]})),decode:t=>(l(t),t.map(t=>{o("alphabet.decode",t);let r=n.get(t);if(void 0===r)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}function p(e=""){return o("join",e),{encode:t=>(c("join.decode",t),t.join(e)),decode:t=>(o("join.decode",t),t.split(e))}}function h(e,t="="){return s(e),o("padding",t),{encode(r){for(c("padding.encode",r);r.length*e%8;)r.push(t);return r},decode(r){c("padding.decode",r);let n=r.length;if(n*e%8)throw Error("padding: invalid, string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if((n-1)*e%8==0)throw Error("padding: invalid, string has too much padding");return r.slice(0,n)}}}function m(e){return a(e),{encode:e=>e,decode:t=>e(t)}}function b(e,t,r){if(t<2)throw Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(l(e),!e.length)return[];let n=0,i=[],a=Array.from(e,e=>{if(s(e),e<0||e>=t)throw Error(`invalid integer: ${e}`);return e}),o=a.length;for(;;){let e=0,s=!0;for(let i=n;i<o;i++){let o=a[i],l=t*e,c=l+o;if(!Number.isSafeInteger(c)||l/t!==e||c-o!==l)throw Error("convertRadix: carry overflow");let u=c/r;e=c%r;let d=Math.floor(u);if(a[i]=d,!Number.isSafeInteger(d)||d*r+e!==c)throw Error("convertRadix: carry overflow");s&&(d?s=!1:n=i)}if(i.push(e),s)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=t.stringToBytes=t.str=t.bytesToString=t.hex=t.utf8=t.bech32m=t.bech32=t.base58check=t.createBase58check=t.base58xmr=t.base58xrp=t.base58flickr=t.base58=t.base64urlnopad=t.base64url=t.base64nopad=t.base64=t.base32crockford=t.base32hexnopad=t.base32hex=t.base32nopad=t.base32=t.base16=t.utils=void 0;let y=(e,t)=>0===t?e:y(t,e%t),g=(e,t)=>e+(t-y(e,t)),v=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function w(e,t,r,n){if(l(e),t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw Error(`convertRadix2: wrong to=${r}`);if(g(t,r)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${g(t,r)}`);let i=0,a=0,o=v[t],c=v[r]-1,u=[];for(let n of e){if(s(n),n>=o)throw Error(`convertRadix2: invalid data word=${n} from=${t}`);if(i=i<<t|n,a+t>32)throw Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=r;a-=r)u.push((i>>a-r&c)>>>0);let e=v[a];if(void 0===e)throw Error("invalid carry");i&=e-1}if(i=i<<r-a&c,!n&&a>=t)throw Error("Excess padding");if(!n&&i>0)throw Error(`Non-zero padding: ${i}`);return n&&a>0&&u.push(i>>>0),u}function E(e){return s(e),{encode:t=>{if(!r(t))throw Error("radix.encode input should be Uint8Array");return b(Array.from(t),256,e)},decode:t=>(u("radix.decode",t),Uint8Array.from(b(t,e,256)))}}function x(e,t=!1){if(s(e),e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(g(8,e)>32||g(e,8)>32)throw Error("radix2: carry overflow");return{encode:n=>{if(!r(n))throw Error("radix2.encode input should be Uint8Array");return w(Array.from(n),8,e,!t)},decode:r=>(u("radix2.decode",r),Uint8Array.from(w(r,e,8,t)))}}function A(e){return a(e),function(...t){try{return e.apply(null,t)}catch(e){}}}function k(e,t){return s(e),a(t),{encode(n){if(!r(n))throw Error("checksum.encode: input should be Uint8Array");let i=t(n).slice(0,e),a=new Uint8Array(n.length+e);return a.set(n),a.set(i,n.length),a},decode(n){if(!r(n))throw Error("checksum.decode: input should be Uint8Array");let i=n.slice(0,-e),a=n.slice(-e),o=t(i).slice(0,e);for(let t=0;t<e;t++)if(o[t]!==a[t])throw Error("Invalid checksum");return i}}}t.utils={alphabet:f,chain:d,checksum:k,convertRadix:b,convertRadix2:w,radix:E,radix2:x,join:p,padding:h},t.base16=d(x(4),f("0123456789ABCDEF"),p("")),t.base32=d(x(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h(5),p("")),t.base32nopad=d(x(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),p("")),t.base32hex=d(x(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h(5),p("")),t.base32hexnopad=d(x(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),p("")),t.base32crockford=d(x(5),f("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),p(""),m(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));let P="function"==typeof Uint8Array.from([]).toBase64&&"function"==typeof Uint8Array.fromBase64,C=(e,t)=>{if(o("base64",e),e.length>0&&!(t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/).test(e))throw Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:t?"base64url":"base64",lastChunkHandling:"strict"})};t.base64=P?{encode:e=>(n(e),e.toBase64()),decode:e=>C(e,!1)}:d(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/"),h(6),p("")),t.base64nopad=d(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),p("")),t.base64url=P?{encode:e=>(n(e),e.toBase64({alphabet:"base64url"})),decode:e=>C(e,!0)}:d(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(6),p("")),t.base64urlnopad=d(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),p(""));let T=e=>d(E(58),f(e),p(""));t.base58=T("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=T("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=T("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");let _=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let r="";for(let n=0;n<e.length;n+=8){let i=e.subarray(n,n+8);r+=t.base58.encode(i).padStart(_[i.length],"1")}return r},decode(e){let r=[];for(let n=0;n<e.length;n+=11){let i=e.slice(n,n+11),a=_.indexOf(i.length),o=t.base58.decode(i);for(let e=0;e<o.length-a;e++)if(0!==o[e])throw Error("base58xmr: wrong padding");r=r.concat(Array.from(o.slice(o.length-a)))}return Uint8Array.from(r)}},t.createBase58check=e=>d(k(4,t=>e(e(t))),t.base58),t.base58check=t.createBase58check;let O=d(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),p("")),S=[996825010,642813549,513874426,1027748829,705979059];function I(e){let t=e>>25,r=(33554431&e)<<5;for(let e=0;e<S.length;e++)(t>>e&1)==1&&(r^=S[e]);return r}function B(e,t,r=1){let n=e.length,i=1;for(let t=0;t<n;t++){let r=e.charCodeAt(t);if(r<33||r>126)throw Error(`Invalid prefix (${e})`);i=I(i)^r>>5}i=I(i);for(let t=0;t<n;t++)i=I(i)^31&e.charCodeAt(t);for(let e of t)i=I(i)^e;for(let e=0;e<6;e++)i=I(i);return i^=r,O.encode(w([i%v[30]],30,5,!1))}function j(e){let t="bech32"===e?1:734539939,n=x(5),i=n.decode,a=n.encode,s=A(i);function l(e,n,i=90){o("bech32.encode prefix",e),r(n)&&(n=Array.from(n)),u("bech32.encode",n);let a=e.length;if(0===a)throw TypeError(`Invalid prefix length ${a}`);let s=a+7+n.length;if(!1!==i&&s>i)throw TypeError(`Length ${s} exceeds limit ${i}`);let l=e.toLowerCase(),c=B(l,n,t);return`${l}1${O.encode(n)}${c}`}function c(e,r=90){o("bech32.decode input",e);let n=e.length;if(n<8||!1!==r&&n>r)throw TypeError(`invalid string length: ${n} (${e}). Expected (8..${r})`);let i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw Error("String must be lowercase or uppercase");let a=i.lastIndexOf("1");if(0===a||-1===a)throw Error('Letter "1" must be present between prefix and data only');let s=i.slice(0,a),l=i.slice(a+1);if(l.length<6)throw Error("Data must be at least 6 characters long");let c=O.decode(l).slice(0,-6),u=B(s,c,t);if(!l.endsWith(u))throw Error(`Invalid checksum in ${e}: expected "${u}"`);return{prefix:s,words:c}}let d=A(c);return{encode:l,decode:c,encodeFromBytes:function(e,t){return l(e,a(t))},decodeToBytes:function(e){let{prefix:t,words:r}=c(e,!1);return{prefix:t,words:r,bytes:i(r)}},decodeUnsafe:d,fromWords:i,fromWordsUnsafe:s,toWords:a}}t.bech32=j("bech32"),t.bech32m=j("bech32m"),t.utf8={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)};let M="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex;t.hex=M?{encode:e=>(n(e),e.toHex()),decode:e=>(o("hex",e),Uint8Array.fromHex(e))}:d(x(4),f("0123456789abcdef"),p(""),m(e=>{if("string"!=typeof e||e.length%2!=0)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));let R={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},N="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!R.hasOwnProperty(e))throw TypeError(N);if(!r(t))throw TypeError("bytesToString() expects Uint8Array");return R[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=(e,t)=>{if(!R.hasOwnProperty(e))throw TypeError(N);if("string"!=typeof t)throw TypeError("stringToBytes() expects string");return R[e].decode(t)},t.bytes=t.stringToBytes},9665:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.HDKey=t.HARDENED_OFFSET=void 0;let n=r(96567),i=r(79685),a=r(50602),o=r(88215),s=r(38393),l=r(21415),c=r(10009),u=i.secp256k1.ProjectivePoint,d=(0,c.createBase58check)(s.sha256);function f(e){return(0,l.abytes)(e),BigInt("0x"+(0===e.length?"0":(0,l.bytesToHex)(e)))}let p=(0,l.utf8ToBytes)("Bitcoin seed"),h={private:76066276,public:76067358};t.HARDENED_OFFSET=2147483648;let m=e=>(0,o.ripemd160)((0,s.sha256)(e)),b=e=>(0,l.createView)(e).getUint32(0,!1),y=e=>{if(!Number.isSafeInteger(e)||e<0||e>4294967296-1)throw Error("invalid number, should be from 0 to 2**32-1, got "+e);let t=new Uint8Array(4);return(0,l.createView)(t).setUint32(0,e,!1),t};class g{get fingerprint(){if(!this.pubHash)throw Error("No publicKey set!");return b(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){let e=this.privateKey;if(!e)throw Error("No private key");return d.encode(this.serialize(this.versions.private,(0,l.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw Error("No public key");return d.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=h){if((0,l.abytes)(e),8*e.length<128||8*e.length>512)throw Error("HDKey: seed length must be between 128 and 512 bits; 256 bits is advised, got "+e.length);let r=(0,a.hmac)(s.sha512,p,e);return new g({versions:t,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(e,t=h){let r=d.decode(e),n=(0,l.createView)(r),i=n.getUint32(0,!1),a={versions:t,depth:r[4],parentFingerprint:n.getUint32(5,!1),index:n.getUint32(9,!1),chainCode:r.slice(13,45)},o=r.slice(45),s=0===o[0];if(i!==t[s?"private":"public"])throw Error("Version mismatch");return new g(s?{...a,privateKey:o.slice(1)}:{...a,publicKey:o})}static fromJSON(e){return g.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||h,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){if(!i.secp256k1.utils.isValidPrivateKey(e.privateKey))throw Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:f(e.privateKey),this.privKeyBytes=function(e){if("bigint"!=typeof e)throw Error("bigint expected");return(0,l.hexToBytes)(e.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=i.secp256k1.getPublicKey(e.privateKey,!0)}else if(e.publicKey)this.pubKey=u.fromHex(e.publicKey).toRawBytes(!0);else throw Error("HDKey: no public or private key provided");this.pubHash=m(this.pubKey)}derive(e){if(!/^[mM]'?/.test(e))throw Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;let r=e.replace(/^[mM]'?\//,"").split("/"),n=this;for(let e of r){let r=/^(\d+)('?)$/.exec(e),i=r&&r[1];if(!r||3!==r.length||"string"!=typeof i)throw Error("invalid child index: "+e);let a=+i;if(!Number.isSafeInteger(a)||a>=t.HARDENED_OFFSET)throw Error("Invalid index");"'"===r[2]&&(a+=t.HARDENED_OFFSET),n=n.deriveChild(a)}return n}deriveChild(e){if(!this.pubKey||!this.chainCode)throw Error("No publicKey or chainCode set");let r=y(e);if(e>=t.HARDENED_OFFSET){let e=this.privateKey;if(!e)throw Error("Could not derive hardened child key");r=(0,l.concatBytes)(new Uint8Array([0]),e,r)}else r=(0,l.concatBytes)(this.pubKey,r);let o=(0,a.hmac)(s.sha512,this.chainCode,r),c=f(o.slice(0,32)),d=o.slice(32);if(!i.secp256k1.utils.isValidPrivateKey(c))throw Error("Tweak bigger than curve order");let p={versions:this.versions,chainCode:d,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){let e=(0,n.mod)(this.privKey+c,i.secp256k1.CURVE.n);if(!i.secp256k1.utils.isValidPrivateKey(e))throw Error("The tweak was out of range or the resulted private key is invali
1d");p.privateKey=e}else{let e=u.fromHex(this.pubKey).add(u.fromPrivateKey(c));if(e.equals(u.ZERO))throw Error("The tweak was equal to negative P, which made the result key invalid");p.publicKey=e.toRawBytes(!0)}return new g(p)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw Error("No privateKey set!");return(0,l.abytes)(e,32),i.secp256k1.sign(e,this.privKey).toCompactRawBytes()}verify(e,t){let r;if((0,l.abytes)(e,32),(0,l.abytes)(t,64),!this.publicKey)throw Error("No publicKey set!");try{r=i.secp256k1.Signature.fromCompact(t)}catch(e){return!1}return i.secp256k1.verify(r,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw Error("No chainCode set");return(0,l.abytes)(t,33),(0,l.concatBytes)(y(e),new Uint8Array([this.depth]),y(this.parentFingerprint),y(this.index),this.chainCode,t)}}t.HDKey=g},52055:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateMnemonic=function(e,t=128){if((0,a.anumber)(t),t%32!=0||t>256)throw TypeError("Invalid entropy");return h((0,a.randomBytes)(t/8),e)},t.mnemonicToEntropy=p,t.entropyToMnemonic=h,t.validateMnemonic=function(e,t){try{p(e,t)}catch(e){return!1}return!0},t.mnemonicToSeed=function(e,t=""){return(0,n.pbkdf2Async)(i.sha512,c(e).nfkd,m(t),{c:2048,dkLen:64})},t.mnemonicToSeedSync=function(e,t=""){return(0,n.pbkdf2)(i.sha512,c(e).nfkd,m(t),{c:2048,dkLen:64})};let n=r(88282),i=r(38393),a=r(21415),o=r(10009),s=e=>"ãããããã"===e[0];function l(e){if("string"!=typeof e)throw TypeError("invalid mnemonic type: "+typeof e);return e.normalize("NFKD")}function c(e){let t=l(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw Error("Invalid mnemonic");return{nfkd:t,words:r}}function u(e){(0,a.abytes)(e,16,20,24,28,32)}let d=e=>{let t=8-e.length/4;return new Uint8Array([(0,i.sha256)(e)[0]>>t<<t])};function f(e){if(!Array.isArray(e)||2048!==e.length||"string"!=typeof e[0])throw Error("Wordlist: expected array of 2048 strings");return e.forEach(e=>{if("string"!=typeof e)throw Error("wordlist: non-string element: "+e)}),o.utils.chain(o.utils.checksum(1,d),o.utils.radix2(11,!0),o.utils.alphabet(e))}function p(e,t){let{words:r}=c(e),n=f(t).decode(r);return u(n),n}function h(e,t){return u(e),f(t).encode(e).join(s(t)?"ã":" ")}let m=e=>l("mnemonic"+e)},64670:function(e){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function o(e,t,r,n,i){(null!=n||null!=i)&&(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,l=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(s[(240&n)>>4]+s[15&n])}return t.join("")}}),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],d=[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,23
11,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],f=[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],p=[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,16733
113503,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],h=[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],m=[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,389
1623319,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],b=[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],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,
1632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[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,12974
103050,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],w=[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,60
17398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[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],x=[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,12
101765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],A=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
1748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function P(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var C=function(e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(e,!0)}),this._prepare()};C.prototype._prepare=function(){var e=c[this.key.length];if(null==e)throw Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var r=(e+1)*4,n=this.key.length/4,i=P(this.key),t=0;t<n;t++)a=t>>2,this._Ke[a][t%4]=i[t],this._Kd[e-a][t%4]=i[t];for(var a,o,s=0,l=n;l<r;){if(o=i[n-1],i[0]^=d[o>>16&255]<<24^d[o>>8&255]<<16^d[255&o]<<8^d[o>>24&255]^u[s]<<24,s+=1,8!=n)for(var t=1;t<n;t++)i[t]^=i[t-1];else{for(var t=1;t<n/2;t++)i[t]^=i[t-1];o=i[n/2-1],i[n/2]^=d[255&o]^d[o>>8&255]<<8^d[o>>16&255]<<16^d[o>>24&255]<<24;for(var t=n/2+1;t<n;t++)i[t]^=i[t-1]}for(var f,p,t=0;t<n&&l<r;)f=l>>2,p=l%4,this._Ke[f][p]=i[t],this._Kd[e-f][p]=i[t++],l++}for(var f=1;f<e;f++)for(var p=0;p<4;p++)o=this._Kd[f][p],this._Kd[f][p]=E[o>>24&255]^x[o>>16&255]^A[o>>8&255]^k[255&o]},C.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=P(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var o=1;o<t;o++){for(var i=0;i<4;i++)r[i]=p[n[i]>>24&255]^h[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^b[255&n[(i+3)%4]]^this._Ke[o][i];n=r.slice()}for(var s,l=a(16),i=0;i<4;i++)s=this._Ke[t][i],l[4*i]=(d[n[i]>>24&255]^s>>24)&255,l[4*i+1]=(d[n[(i+1)%4]>>16&255]^s>>16)&255,l[4*i+2]=(d[n[(i+2)%4]>>8&255]^s>>8)&255,l[4*i+3]=(d[255&n[(i+3)%4]]^s)&255;return l},C.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");
1for(var t=this._Kd.length-1,r=[0,0,0,0],n=P(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var o=1;o<t;o++){for(var i=0;i<4;i++)r[i]=y[n[i]>>24&255]^g[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[o][i];n=r.slice()}for(var s,l=a(16),i=0;i<4;i++)s=this._Kd[t][i],l[4*i]=(f[n[i]>>24&255]^s>>24)&255,l[4*i+1]=(f[n[(i+3)%4]>>16&255]^s>>16)&255,l[4*i+2]=(f[n[(i+2)%4]>>8&255]^s>>8)&255,l[4*i+3]=(f[255&n[(i+1)%4]]^s)&255;return l};var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new C(e)};T.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n<e.length;n+=16)o(e,r,0,n,n+16),o(r=this._aes.encrypt(r),t,n);return t},T.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n<e.length;n+=16)o(e,r,0,n,n+16),o(r=this._aes.decrypt(r),t,n);return t};var _=function(e,t){if(!(this instanceof _))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else t=a(16);this._lastCipherblock=i(t,!0),this._aes=new C(e)};_.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n<e.length;n+=16){o(e,r,0,n,n+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),o(this._lastCipherblock,t,n)}return t},_.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),n=0;n<e.length;n+=16){o(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)t[n+s]=r[s]^this._lastCipherblock[s];o(e,this._lastCipherblock,0,n,n+16)}return t};var O=function(e,t,r){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw Error("invalid initialation vector size (must be 16 size)")}else t=a(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(t,!0),this._aes=new C(e)};O.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var a=0;a<this.segmentSize;a++)r[n+a]^=t[a];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},O.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=i(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var a=0;a<this.segmentSize;a++)r[n+a]^=t[a];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var S=function(e,t){if(!(this instanceof S))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else t=a(16);this._lastPrecipher=i(t,!0),this._lastPrecipherIndex=16,this._aes=new C(e)};S.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},S.prototype.decrypt=S.prototype.encrypt;var I=function(e){if(!(this instanceof I))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=a(16),this.setValue(e)):this.setBytes(e)};I.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},I.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},I.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var B=function(e,t){if(!(this instanceof B))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof I||(t=new I(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new C(e)};B.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt
1(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},B.prototype.decrypt=B.prototype.encrypt,e.exports={AES:C,Counter:I,ModeOfOperation:{ecb:T,cbc:_,cfb:O,ofb:S,ctr:B},utils:{hex:l,utf8:{toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return i(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,r=a(e.length+t);o(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=i(e,!0)).length<16)throw Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw Error("PKCS#7 invalid padding byte");var s=a(r);return o(e,s,0,0,r),s}}},_arrayTest:{coerceArray:i,createArray:a,copyArray:o}}}(0)},29833:function(e,t,r){e.exports=r(5468)},34207:function(e,t,r){"use strict";var n=r(18745),i=r(81820),a=r(91373),o=r(74538),s=r(82793),l=r(80358),c=r(56500),u=r(42461),d=r(63884),f=r(49828),p=r(74528);e.exports=function(e){return new Promise(function(t,r){var h,m=e.data,b=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete b["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";b.Authorization="Basic "+btoa(w+":"+E)}var x=s(e.baseURL,e.url);function A(){if(v){var n="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null;i(function(e){t(e),g()},function(e){r(e),g()},{data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v}),v=null}}if(v.open(e.method.toUpperCase(),o(x,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=A:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(A)},v.onabort=function(){v&&(r(new d("Request aborted",d.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,v,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,v)),v=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||c(x))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(b[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&n.forEach(b,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete b[t]:v.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),y&&"json"!==y&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){v&&(r(!e||e&&e.type?new f:e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var P=p(x);if(P&&-1===["http","https","file"].indexOf(P)){r(new d("Unsupported protocol "+P+":",d.ERR_BAD_REQUEST,e));return}v.send(m)})}},5468:function(e,t,r){"use strict";var n=r(18745),i=r(61897),a=r(67847),o=r(69337),s=function e(t){var r=new a(t),s=i(a.prototype.request,r);return n.extend(s,a.prototype,r),n.extend(s,r),s.create=function(r){return e(o(t,r))},s}(r(94850));s.Axios=a,s.CanceledError=r(49828),s.CancelToken=r(73968),s.isCancel=r(37839),s.VERSION=r(34474).version,s.toFormData=r(3402),s.AxiosError=r(63884),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(37263),s.isAxiosError=r(54628),e.exports=s,e.exports.default=s},73968:function(e,t,r){"use strict";var n=r(49828);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},49828:function(e,t,r){"use strict";var n=r(63884);function i(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(18745).inherits(i,n,{__CANCEL__:!0}),e.exports=i},37839:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},67847:function(e,t,r){"use strict";
vendor: 4,972 bytes, line 1
1var n=r(18745),i=r(74538),a=r(99653),o=r(16774),s=r(69337),l=r(82793),c=r(71623),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r,n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!a){var d=[o,void 0];for(Array.prototype.unshift.apply(d,i),d=d.concat(l),r=Promise.resolve(t);d.length;)r=r.then(d.shift(),d.shift());return r}for(var f=t;i.length;){var p=i.shift(),h=i.shift();try{f=p(f)}catch(e){h(e);break}}try{r=o(f)}catch(e){return Promise.reject(e)}for(;l.length;)r=r.then(l.shift(),l.shift());return r},d.prototype.getUri=function(e){return i(l((e=s(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)}),e.exports=d},63884:function(e,t,r){"use strict";var n=r(18745);function i(e,t,r,n,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}n.inherits(i,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 a=i.prototype,o={};["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(e){o[e]={value:e}}),Object.defineProperties(i,o),Object.defineProperty(a,"isAxiosError",{value:!0}),i.from=function(e,t,r,o,s,l){var c=Object.create(a);return n.toFlatObject(e,c,function(e){return e!==Error.prototype}),i.call(c,e.message,t,r,o,s),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},99653:function(e,t,r){"use strict";var n=r(18745);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},82793:function(e,t,r){"use strict";var n=r(26908),i=r(61573);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},16774:function(e,t,r){"use strict";var n=r(18745),i=r(6697),a=r(37839),o=r(94850),s=r(49828);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!a(t)&&(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},69337:function(e,t,r){"use strict";var n=r(18745);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function o(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function l(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};
1return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||a,i=t(e);n.isUndefined(i)&&t!==l||(r[e]=i)}),r}},81820:function(e,t,r){"use strict";var n=r(63884);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},6697:function(e,t,r){"use strict";var n=r(18745),i=r(94850);e.exports=function(e,t,r){var a=this||i;return n.forEach(r,function(r){e=r.call(a,e,t)}),e}},94850:function(e,t,r){"use strict";var n,i=r(32608),a=r(18745),o=r(36207),s=r(63884),l=r(42461),c=r(3402),u={"Content-Type":"application/x-www-form-urlencoded"};function d(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f={transitional:l,adapter:("undefined"!=typeof XMLHttpRequest?n=r(34207):void 0!==i&&"[object process]"===Object.prototype.toString.call(i)&&(n=r(34207)),n),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return d(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=a.isObject(e),i=t&&t["Content-Type"];if((r=a.isFileList(e))||n&&"multipart/form-data"===i){var s=this.env&&this.env.FormData;return c(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===i?(d(t,"application/json"),function(e,t,r){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s.from(e,s.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(56949)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(e){f.headers[e]={}}),a.forEach(["post","put","patch"],function(e){f.headers[e]=a.merge(u)}),e.exports=f},42461:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},34474:function(e){e.exports={version:"0.27.2"}},61897:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},74538:function(e,t,r){"use strict";var n=r(18745);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)a=r(t);else if(n.isURLSearchParams(t))a=t.toString();else{var a,o=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))}))}),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},61573:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},91373:function(e,t,r){"use strict";var n=r(18745);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},26908:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},54628:function(e,t,r){"use strict";var n=r(18745);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},56500:function(e,t,r){"use strict";var n=r(18745);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},36207:function(e,t,r){"use strict";var n=r(18745);
1e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},56949:function(e){e.exports=null},80358:function(e,t,r){"use strict";var n=r(18745),i=["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"];e.exports=function(e){var t,r,a,o={};return e&&n.forEach(e.split("\n"),function(e){a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),r=n.trim(e.substr(a+1)),t&&!(o[t]&&i.indexOf(t)>=0)&&("set-cookie"===t?o[t]=(o[t]?o[t]:[]).concat([r]):o[t]=o[t]?o[t]+", "+r:r)}),o}},74528:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},37263:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},3402:function(e,t,r){"use strict";var n=r(95425).Buffer,i=r(18745);e.exports=function(e,t){t=t||new FormData;var r=[];function a(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,o){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+o);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=o?o+"."+n:n;if(r&&!o&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,a(e))});return}}e(r,l)}}),r.pop()}else t.append(o,a(n))}(e),t}},71623:function(e,t,r){"use strict";var n=r(34474).version,i=r(63884),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(a(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var o=n[a],s=t[o];if(s){var l=e[o],c=void 0===l||s(l,o,e);if(!0!==c)throw new i("option "+o+" must be "+c,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},18745:function(e,t,r){"use strict";var n,i,a=r(61897),o=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=l("Date"),m=l("File"),b=l("Blob"),y=l("FileList");function g(e){return"[object Function]"===o.call(e)}var v=l("URLSearchParams");function w(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}}var E=(i="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return i&&e instanceof i});e.exports={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:p,isUndefined:u,isDate:h,isFile:m,isBlob:b,isFunction:g,isStream:function(e){return f(e)&&g(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function r(r,n){p(t[n])&&p(r)?t[n]=e(t[n],r):p(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)w(arguments[n],r);return t},extend:function(e,t,r){return w(t,function(t,n){r&&"function"==typeof t?e[n]=a(t,r):e[n]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,i,a,o={};t=t||{};do{for(i=(n=Object.getOwnPropertyNames(e)).length;i-- >0;)o[a=n[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:E,isFileList:y}},89923:function(e){"use strict";
1for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<t.length;n++){var i=t.charAt(n);if(void 0!==r[i])throw TypeError(i+" is ambiguous");r[i]=n}function a(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=a(t)^n>>5}for(r=0,t=a(t);r<e.length;++r){var i=e.charCodeAt(r);t=a(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var l=e.slice(0,s),c=e.slice(s+1);if(c.length<6)return"Data too short";var u=o(l);if("string"==typeof u)return u;for(var d=[],f=0;f<c.length;++f){var p=c.charAt(f),h=r[p];if(void 0===h)return"Unknown character "+p;u=a(u)^h,f+6>=c.length||d.push(h)}return 1!==u?"Invalid checksum for "+e:{prefix:l,words:d}}function l(e,t,r,n){for(var i=0,a=0,o=(1<<r)-1,s=[],l=0;l<e.length;++l)for(i=i<<t|e[l],a+=t;a>=r;)s.push(i>>(a-=r)&o);if(n)a>0&&s.push(i<<r-a&o);else{if(a>=t)return"Excess padding";if(i<<r-a&o)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"==typeof t)return t;throw Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw TypeError("Exceeds length limit");var i=o(e=e.toLowerCase());if("string"==typeof i)throw Error(i);for(var s=e+"1",l=0;l<r.length;++l){var c=r[l];if(c>>5!=0)throw Error("Non 5-bit word");i=a(i)^c,s+=t.charAt(c)}for(l=0;l<6;++l)i=a(i);for(i^=1,l=0;l<6;++l){var u=i>>(5-l)*5&31;s+=t.charAt(u)}return s},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},65296:function(e,t,r){"use strict";r.r(t),r.d(t,{BaseContract:function(){return eR},BigNumber:function(){return l.O$},Contract:function(){return eN},ContractFactory:function(){return eU},FixedNumber:function(){return eW},Signer:function(){return ev.E},VoidSigner:function(){return ev.b},Wallet:function(){return t$},Wordlist:function(){return e8},constants:function(){return n},errors:function(){return u.jK},ethers:function(){return o},getDefaultProvider:function(){return tX.getDefaultProvider},logger:function(){return rE},providers:function(){return tX},utils:function(){return a},version:function(){return rw},wordlists:function(){return tt}});var n={};r.r(n),r.d(n,{AddressZero:function(){return tV.d},EtherSymbol:function(){return tY},HashZero:function(){return tW.R},MaxInt256:function(){return I.PS},MaxUint256:function(){return I.Bz},MinInt256:function(){return I.$B},NegativeOne:function(){return I.tL},One:function(){return I.fh},Two:function(){return I.Py},WeiPerEther:function(){return I.Ce},Zero:function(){return I._Y}});var i={};r.r(i),r.d(i,{decode:function(){return tJ.J},encode:function(){return tJ.c}});var a={};r.r(a),r.d(a,{AbiCoder:function(){return el},ConstructorFragment:function(){return X},ErrorFragment:function(){return ee},EventFragment:function(){return Z},FormatTypes:function(){return H},Fragment:function(){return K},FunctionFragment:function(){return J},HDNode:function(){return td},Indexed:function(){return eh},Interface:function(){return ey},LogDescription:function(){return ed},Logger:function(){return u.Yd},ParamType:function(){return q},RLP:function(){return t4},SigningKey:function(){return e3.Et},SupportedAlgorithm:function(){return e6.p},TransactionDescription:function(){return ef},TransactionTypes:function(){return ew.em},UnicodeNormalizationForm:function(){return j.Uj},Utf8ErrorFuncs:function(){return j.te},Utf8ErrorReason:function(){return j.Uw},_TypedDataEncoder:function(){return eQ.E},_fetchData:function(){return rv.MY},_toEscapedUtf8String:function(){return j.U$},accessListify:function(){return ew.z7},arrayify:function(){return s.lE},base58:function(){return e0.eU},base64:function(){return i},checkProperties:function(){return c.uj},checkResultErrors:function(){return p},commify:function(){return rh},computeAddress:function(){return ew.db},computeHmac:function(){return e1.Gy},computePublicKey:function(){return e3.VW},concat:function(){return s.zo},deepCopy:function(){return c.p$},defaultAbiCoder:function(){return ec},defaultPath:function(){return tu},defineReadOnly:function(){return c.zG},dnsEncode:function(){return tQ.Kn},entropyToMnemonic:function(){return th},fetchJson:function(){return rv.rd},formatBytes32String:function(){return ru},formatEther:function(){return ry},formatUnits:function(){return rm},getAccountPath:function(){return tb},getAddress:function(){return y.Kn},getContractAddress:function(){return y.CR},getCreate2Address:function(){return y.hB},getIcapAddress:function(){return y.vU},getJsonWalletAddress:function(){return tH},getStatic:function(){return c.tu},hashMessage:function(){return eJ},hexConcat:function(){return s.xs},hexDataLength:function(){return s.E1},hexDataSlice:function(){return s.p3},hexStripZeros:function(){return s.Ou},hexValue:function(){return s.$P},hexZeroPad:function(){return s.$m},hexlify:function(){return s.Dv},id:function(){return g.id},isAddress:function(){return y.UJ},isBytes:function(){return s._t},isBytesLike:function(){return s.Zq},isHexString:function(){return s.A7},isValidMnemonic:function(){return tm},isValidName:function(){return tQ.r1},joinSignature:function(){return s.gV},keccak256:function(){return v.w},mnemonicToEntropy:function(){return tp}
1,mnemonicToSeed:function(){return tf},namehash:function(){return tQ.VM},nameprep:function(){return rc},parseBytes32String:function(){return rd},parseEther:function(){return rg},parseTransaction:function(){return ew.Qc},parseUnits:function(){return rb},poll:function(){return rv.$l},randomBytes:function(){return tw},recoverAddress:function(){return ew.RJ},recoverPublicKey:function(){return e3.LO},resolveProperties:function(){return c.mE},ripemd160:function(){return e1.bP},serializeTransaction:function(){return ew.qC},sha256:function(){return e1.JQ},sha512:function(){return e1.o},shallowCopy:function(){return c.DC},shuffled:function(){return t7.y},solidityKeccak256:function(){return t5},solidityPack:function(){return t6},soliditySha256:function(){return t8},splitSignature:function(){return s.N},stripZeros:function(){return s.G1},toUtf8Bytes:function(){return j.Y0},toUtf8CodePoints:function(){return j.XL},toUtf8String:function(){return j.ZN},verifyMessage:function(){return tK},verifyTypedData:function(){return tZ},zeroPad:function(){return s.Bu}});var o={};r.r(o),r.d(o,{BaseContract:function(){return eR},BigNumber:function(){return l.O$},Contract:function(){return eN},ContractFactory:function(){return eU},FixedNumber:function(){return eW},Signer:function(){return ev.E},VoidSigner:function(){return ev.b},Wallet:function(){return t$},Wordlist:function(){return e8},constants:function(){return n},errors:function(){return u.jK},getDefaultProvider:function(){return tX.getDefaultProvider},logger:function(){return rE},providers:function(){return tX},utils:function(){return a},version:function(){return rw},wordlists:function(){return tt}});var s=r(29280),l=r(71803),c=r(52696),u=r(58179);let d="abi/5.8.0",f=new u.Yd(d);function p(e){let t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){let a=e.slice();a.push(i);try{r(a,n[i])}catch(e){t.push({path:a,error:e})}}};return r([],e),t}class h{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){f.throwArgumentError(e,this.localName,t)}}class m{constructor(e){(0,c.zG)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,s.xs)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,s.zo)(e._data))}writeBytes(e){let t=(0,s.lE)(e),r=t.length%this.wordSize;return r&&(t=(0,s.zo)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,s.lE)(l.O$.from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",u.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,s.zo)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class b{constructor(e,t,r,n){(0,c.zG)(this,"_data",(0,s.lE)(e)),(0,c.zG)(this,"wordSize",t||32),(0,c.zG)(this,"_coerceFunc",r),(0,c.zG)(this,"allowLoose",n),this._offset=0}get data(){return(0,s.Dv)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):b.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:f.throwError("data out-of-bounds",u.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new b(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return l.O$.from(this.readBytes(this.wordSize))}}var y=r(76621),g=r(70578),v=r(34185);class w extends h{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,y.Kn)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,y.Kn)((0,s.$m)(e.readValue().toHexString(),20))}}class E extends h{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}
1defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}let x=new u.Yd(d);function A(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||x.throwError("cannot encode object for signature with missing names",u.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&x.throwError("cannot encode object for signature with duplicate names",u.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else x.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&x.throwArgumentError("types/value length mismatch","tuple",r);let i=new m(e.wordSize),a=new m(e.wordSize),o=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=a.length;e.encode(a,r);let n=i.writeUpdatableValue();o.push(e=>{n(e+t)})}else e.encode(i,r)}),o.forEach(e=>{e(i.length)}),e.appendWriter(i)+e.appendWriter(a)}function k(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),a=n.subReader(r.toNumber());try{i=t.decode(a)}catch(e){if(e.code===u.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===u.Yd.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)});let i=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let a=r[t];a instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw a}}):r[n]=a});for(let e=0;e<r.length;e++){let t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class P extends h{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),x.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return A(e,n,t)}decode(e){let t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&x.throwError("insufficient data length",u.Yd.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;e<t;e++)r.push(new E(this.coder));return e.coerce(this.name,k(e,r))}}class C extends h{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class T extends h{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,s.lE)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class _ extends T{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,s.Dv)(super.decode(e)))}}class O extends h{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,s.lE)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,s.Dv)(e.readBytes(this.size)))}}class S extends h{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var I=r(22403);class B extends h{constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=l.O$.from(t),n=I.Bz.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(I.fh).mul(I.tL)))&&this._throwError("value out-of-bounds",t)}else(r.lt(I._Y)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var j=r(84122);class M extends T{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,j.Y0)(t))}decode(e){return(0,j.ZN)(super.decode(e))}}class R extends h{constructor(e,t){let r=!1,n=[];
1e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return A(e,this.coders,t)}decode(e){return e.coerce(this.name,k(e,this.coders))}}let N=new u.Yd(d),U={},z={calldata:!0,memory:!0,storage:!0},D={calldata:!0,memory:!0};function F(e,t){if("bytes"===e||"string"===e){if(z[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&D[t])return!0;return(z[t]||"payable"===t)&&N.throwArgumentError("invalid modifier","name",t),!1}function L(e,t){for(let r in t)(0,c.zG)(e,r,t[r])}let H=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),G=new RegExp(/^(.*)\[([0-9]*)\]$/);class q{constructor(e,t){e!==U&&N.throwError("use fromString",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),L(this,t);let r=this.type.match(G);r?L(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:q.fromObject({type:r[1],components:this.components}),baseType:"array"}):L(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=H.sighash),H[e]||N.throwArgumentError("invalid format type","format",e),e===H.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?t+=this.arrayChildren.format(e)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==H.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===H.full?", ":",")+")"):t+=this.type,e!==H.sighash&&(!0===this.indexed&&(t+=" indexed"),e===H.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?q.fromString(e,t):q.fromObject(e)}static fromObject(e){return q.isParamType(e)?e:new q(U,{name:e.name||null,type:et(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(q.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){N.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let a={type:"",name:"",state:{allowType:!0}},o=a;for(let r=0;r<e.length;r++){let a=e[r];switch(a){case"(":o.state.allowType&&""===o.type?o.type="tuple":o.state.allowParams||n(r),o.state.allowType=!1,o.type=et(o.type),o.components=[i(o)],o=o.components[0];break;case")":delete o.state,"indexed"===o.name&&(t||n(r),o.indexed=!0,o.name=""),F(o.type,o.name)&&(o.name=""),o.type=et(o.type);let s=o;(o=o.parent)||n(r),delete s.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case",":delete o.state,"indexed"===o.name&&(t||n(r),o.indexed=!0,o.name=""),F(o.type,o.name)&&(o.name=""),o.type=et(o.type);let l=i(o.parent);o.parent.components.push(l),delete o.parent,o=l;break;case" ":o.state.allowType&&""!==o.type&&(o.type=et(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&""!==o.name&&("indexed"===o.name?(t||n(r),o.indexed&&n(r),o.indexed=!0,o.name=""):F(o.type,o.name)?o.name="":o.state.allowName=!1);break;case"[":o.state.allowArray||n(r),o.type+=a,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case"]":o.state.readArray||n(r),o.type+=a,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=a,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=a,delete o.state.allowArray):o.state.readArray?o.type+=a:n(r)}}return o.parent&&N.throwArgumentError("unexpected eof","param",e),delete a.state,"indexed"===o.name?(t||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=""):F(o.type,o.name)&&(o.name=""),a.type=et(a.type),a}(e,!!t),q.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function $(e,t){return(function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let a=e[i];","===a&&0===n?(t.push(r),r=""):(r+=a,"("===a?n++:")"===a&&-1==--n&&N.throwArgumentError("unbalanced parenthesis","value",e))}return r&&t.push(r),t})(e).map(e=>q.fromString(e,t))}class K{constructor(e,t){e!==U&&N.throwError("use a static from method",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),L(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return K.isFragment(e)?e:"string"==typeof e?K.fromString(e):K.fromObject(e)}static fromObject(e){if(K.isFragment(e))return e;switch(e.type){case"function":return J.fromObject(e);case"event":return Z.fromObject(e);case"constructor":return X.fromObject(e);case"error":return ee.fromObject(e);case"fallback":case"receive":return null}return N.throwArgumentError("invalid fragment object","value",e)}
1static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Z.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?J.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?X.fromString(e.trim()):"error"===e.split(" ")[0]?ee.fromString(e.substring(5).trim()):N.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class Z extends K{format(e){if(e||(e=H.sighash),H[e]||N.throwArgumentError("invalid format type","format",e),e===H.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==H.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===H.full?", ":",")+") ",e!==H.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?Z.fromString(e):Z.fromObject(e)}static fromObject(e){return Z.isEventFragment(e)?e:("event"!==e.type&&N.throwArgumentError("invalid event object","value",e),new Z(U,{name:en(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(q.fromObject):[],type:"event"}))}static fromString(e){let t=e.match(ei);t||N.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:N.warn("unknown modifier: "+e)}}),Z.fromObject({name:t[1].trim(),anonymous:r,inputs:$(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function V(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&N.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||N.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=l.O$.from(r[1]),r[0]):e}function W(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function Y(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&N.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&N.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||N.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&N.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&N.throwArgumentError("unable to determine stateMutability","value",e),t}class X extends K{format(e){if(e||(e=H.sighash),H[e]||N.throwArgumentError("invalid format type","format",e),e===H.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===H.sighash&&N.throwError("cannot format a constructor for sighash",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===H.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?X.fromString(e):X.fromObject(e)}static fromObject(e){if(X.isConstructorFragment(e))return e;"constructor"!==e.type&&N.throwArgumentError("invalid constructor object","value",e);let t=Y(e);return t.constant&&N.throwArgumentError("constructor cannot be constant","value",e),new X(U,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(q.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?l.O$.from(e.gas):null})}static fromString(e){let t={type:"constructor"},r=(e=V(e,t)).match(ei);return r&&"constructor"===r[1].trim()||N.throwArgumentError("invalid constructor string","value",e),t.input
1s=$(r[2].trim(),!1),W(r[3].trim(),t),X.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class J extends X{format(e){if(e||(e=H.sighash),H[e]||N.throwArgumentError("invalid format type","format",e),e===H.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==H.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===H.full?", ":",")+") ",e!==H.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?J.fromString(e):J.fromObject(e)}static fromObject(e){if(J.isFunctionFragment(e))return e;"function"!==e.type&&N.throwArgumentError("invalid function object","value",e);let t=Y(e);return new J(U,{type:e.type,name:en(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(q.fromObject):[],outputs:e.outputs?e.outputs.map(q.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?l.O$.from(e.gas):null})}static fromString(e){let t={type:"function"},r=(e=V(e,t)).split(" returns ");r.length>2&&N.throwArgumentError("invalid function string","value",e);let n=r[0].match(ei);if(n||N.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&en(t.name),t.inputs=$(n[2],!1),W(n[3].trim(),t),r.length>1){let n=r[1].match(ei);(""!=n[1].trim()||""!=n[3].trim())&&N.throwArgumentError("unexpected tokens","value",e),t.outputs=$(n[2],!1)}else t.outputs=[];return J.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function Q(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&N.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class ee extends K{format(e){if(e||(e=H.sighash),H[e]||N.throwArgumentError("invalid format type","format",e),e===H.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==H.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===H.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?ee.fromString(e):ee.fromObject(e)}static fromObject(e){return ee.isErrorFragment(e)?e:("error"!==e.type&&N.throwArgumentError("invalid error object","value",e),Q(new ee(U,{type:e.type,name:en(e.name),inputs:e.inputs?e.inputs.map(q.fromObject):[]})))}static fromString(e){let t={type:"error"},r=e.match(ei);return r||N.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&en(t.name),t.inputs=$(r[2],!1),Q(ee.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function et(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let er=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function en(e){return e&&e.match(er)||N.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let ei=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),ea=new u.Yd(d),eo=new RegExp(/^bytes([0-9]*)$/),es=new RegExp(/^(u?int)([0-9]*)$/);class el{constructor(e){(0,c.zG)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new w(e.name);case"bool":return new C(e.name);case"string":return new M(e.name);case"bytes":return new _(e.name);case"array":return new P(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new R((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new S(e.name)}let t=e.type.match(es);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&ea.throwArgumentError("invalid "+t[1]+" bit length","param",e),new B(r/8,"int"===t[1],e.name)}if(t=e.type.match(eo)){let r=parseInt(t[1]);return(0===r||r>32)&&ea.throwArgumentError("invalid bytes length","param",e),new O(r,e.name)}return ea.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new b(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new m(this._getWordSize())}getDefaultValue(e){return new R(e.map(e=>this._getCoder(q.from(e))),"_").defaultValue()}encode(e,t){e.length!==t.length&&ea.throwError("types/values length mismatch",u.Yd.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=new R(e.map(e=>this._getCoder(q.from(e))),"_"),n=this._getWriter();return r.encode(n,t),n.data}decode(e,t,r){return new R(e.map(e=>this._getCoder(q.from(e))),"_").decode(this._getReader((0,s.lE)(t),r))}}let ec=new el,eu=new u.Yd(d);class ed extends c.dk{}class ef extends c.dk{}class ep extends c.dk{}class eh extends c.dk{static isIndexed(e){return!!(e&&e._isIndexed)}}let em={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function eb(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class ey{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,c.zG)(this,"fragments",t.map(e=>K.from(e)).filter(e=>null!=e)),(0,c.zG)(this,"_abiCoder",(0,c.tu)(new.target,"getAbiCoder")()),(0,c.zG)(this,"functions",{}),(0,c.zG)(this,"errors",{}),(0,c.zG)(this,"events",{}),(0,c.zG)(this,"structs",{}
1),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy){eu.warn("duplicate definition - constructor");return}(0,c.zG)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();if(t[r]){eu.warn("duplicate definition - "+r);return}t[r]=e}),this.deploy||(0,c.zG)(this,"deploy",X.from({payable:!1,type:"constructor"})),(0,c.zG)(this,"_isInterface",!0)}format(e){e||(e=H.full),e===H.sighash&&eu.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===H.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return ec}static getAddress(e){return(0,y.Kn)(e)}static getSighash(e){return(0,s.p3)((0,g.id)(e.format()),0,4)}static getEventTopic(e){return(0,g.id)(e.format())}getFunction(e){if((0,s.A7)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];eu.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?eu.throwArgumentError("no matching function","name",t):r.length>1&&eu.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[J.fromString(e).format()];return t||eu.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.A7)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];eu.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?eu.throwArgumentError("no matching event","name",t):r.length>1&&eu.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[Z.fromString(e).format()];return t||eu.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.A7)(e)){let t=(0,c.tu)(this.constructor,"getSighash");for(let r in this.errors)if(e===t(this.errors[r]))return this.errors[r];eu.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?eu.throwArgumentError("no matching error","name",t):r.length>1&&eu.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[J.fromString(e).format()];return t||eu.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,c.tu)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,c.tu)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));let r=(0,s.lE)(t);return(0,s.Dv)(r.slice(0,4))!==this.getSighash(e)&&eu.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.Dv)((0,s.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.lE)(t);return(0,s.Dv)(r.slice(0,4))!==this.getSighash(e)&&eu.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.Dv)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.Dv)((0,s.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.lE)(t),n=null,i="",a=null,o=null,l=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,s.Dv)(r.slice(0,4)),t=em[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,l=t.signature,t.reason&&(n=a[0]),"Error"===o?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===o&&(i=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,l=t.format()}catch(e){}}}return eu.throwError("call revert exception"+i,u.Yd.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.Dv)(t),errorArgs:a,errorName:o,errorSignature:l,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.Dv)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>
1e.inputs.length&&eu.throwError("too many arguments for "+e.format(),u.Yd.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let n=(e,t)=>"string"===e.type?(0,g.id)(t):"bytes"===e.type?(0,v.w)((0,s.Dv)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=l.O$.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.$m)((0,s.Dv)(t),32));for(t.forEach((t,i)=>{let a=e.inputs[i];if(!a.indexed){null!=t&&eu.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t);return}null==t?r.push(null):"array"===a.baseType||"tuple"===a.baseType?eu.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?r.push(t.map(e=>n(a,e))):r.push(n(a,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&eu.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let o=t[a];if(e.indexed){if("string"===e.type)r.push((0,g.id)(o));else if("bytes"===e.type)r.push((0,v.w)(o));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[o]))}else n.push(e),i.push(o)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.A7)(r[0],32)&&r[0].toLowerCase()===t||eu.throwError("fragment/topic mismatch",u.Yd.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(q.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(n.push(e),a.push(!1)):(i.push(e),a.push(!1))});let o=null!=r?this._abiCoder.decode(n,(0,s.zo)(r)):null,l=this._abiCoder.decode(i,t,!0),c=[],d=0,f=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==o)c[t]=new eh({_isIndexed:!0,hash:null});else if(a[t])c[t]=new eh({_isIndexed:!0,hash:o[f++]});else try{c[t]=o[f++]}catch(e){c[t]=e}}else try{c[t]=l[d++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){let r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw eb(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}});for(let e=0;e<c.length;e++){let t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw eb(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ef({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:l.O$.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new ed({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,s.Dv)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new ep({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var eg=r(26121),ev=r(88091),ew=r(56973),eE=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let ex=new u.Yd("contracts/5.8.0"),eA={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function ek(e,t){return eE(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&ex.throwArgumentError("invalid address or ENS name","name",r);try{return(0,y.Kn)(r)}catch(e){}e||ex.throwError("a provider or signer is needed to resolve ENS names",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield e.resolveName(r);return null==n&&ex.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function eP(e,t,r){return eE(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>eP(e,Array.isArray(t)?t[n]:t[r.name],r))):"address"===r.type?yield ek(e,t):"tuple"===r.type?yield eP(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>eP(e,t,r.arrayChildren))):Promise.reject(ex.makeError("invalid value for array",u.Yd.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function eC(e,t,r){return eE(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,c.DC)(r.pop())
1),ex.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,c.mE)({override:ek(e.signer,n.from),signer:e.signer.getAddress()}).then(e=>eE(this,void 0,void 0,function*(){return(0,y.Kn)(e.signer)!==e.override&&ex.throwError("Contract with a Signer cannot override from",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):n.from=e.signer.getAddress():n.from&&(n.from=ek(e.provider,n.from));let i=yield(0,c.mE)({args:eP(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,c.mE)(n)||{}}),a=e.interface.encodeFunctionData(t,i.args),o={data:a,to:i.address},d=i.overrides;if(null!=d.nonce&&(o.nonce=l.O$.from(d.nonce).toNumber()),null!=d.gasLimit&&(o.gasLimit=l.O$.from(d.gasLimit)),null!=d.gasPrice&&(o.gasPrice=l.O$.from(d.gasPrice)),null!=d.maxFeePerGas&&(o.maxFeePerGas=l.O$.from(d.maxFeePerGas)),null!=d.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=l.O$.from(d.maxPriorityFeePerGas)),null!=d.from&&(o.from=d.from),null!=d.type&&(o.type=d.type),null!=d.accessList&&(o.accessList=(0,ew.z7)(d.accessList)),null==o.gasLimit&&null!=t.gas){let e=21e3,r=(0,s.lE)(a);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);o.gasLimit=l.O$.from(t.gas).add(e)}if(d.value){let e=l.O$.from(d.value);e.isZero()||t.payable||ex.throwError("non-payable method cannot override value",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),o.value=e}d.customData&&(o.customData=(0,c.DC)(d.customData)),d.ccipReadEnabled&&(o.ccipReadEnabled=!!d.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;let f=Object.keys(n).filter(e=>null!=n[e]);return f.length&&ex.throwError(`cannot override ${f.map(e=>JSON.stringify(e)).join(",")}`,u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:f}),o})}function eT(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,c.p$)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t))}function e_(e,t,r){let n=e.signer||e.provider;return function(...i){return eE(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){let e=(0,c.DC)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let o=yield eC(e,t,i),s=yield n.call(o,a);try{let n=e.interface.decodeFunctionResult(t,s);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===u.Yd.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=o),t}})}}function eO(e,t,r){return t.constant?e_(e,t,r):function(...r){return eE(this,void 0,void 0,function*(){e.signer||ex.throwError("sending a transaction requires a signer",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let n=yield eC(e,t,r),i=yield e.signer.sendTransaction(n);return eT(e,i),i})}}function eS(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class eI{constructor(e,t){(0,c.zG)(this,"tag",e),(0,c.zG)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class eB extends eI{constructor(){super("error",null)}}class ej extends eI{constructor(e,t,r,n){let i={address:e},a=t.getEventTopic(r);n?(a!==n[0]&&ex.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[a],super(eS(i),i),(0,c.zG)(this,"address",e),(0,c.zG)(this,"interface",t),(0,c.zG)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=p(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class eM extends eI{constructor(e,t){super("*",{address:e}),(0,c.zG)(this,"address",e),(0,c.zG)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class eR{constructor(e,t,r){(0,c.zG)(this,"interface",(0,c.tu)(new.target,"getInterface")(t)),null==r?((0,c.zG)(this,"provider",null),(0,c.zG)(this,"signer",null)):ev.E.isSigner(r)?((0,c.zG)(this,"provider",r.provider||null),(0,c.zG)(this,"signer",r)):eg.zt.isProvider(r)?((0,c.zG)(this,"provider",r),(0,c.zG)(this,"signer",null)):ex.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.zG)(this,"callStatic",{}),(0,c.zG)(this,"estimateGas",{}),(0,c.zG)(this,"functions",{}),(0,c.zG)(this,"populateTransaction",{}),(0,c.zG)(this,"filters",{});{let e={};
1Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,c.zG)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,c.zG)(this.filters,t,this.filters[r[0]]):ex.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,c.zG)(this,"_runningEvents",{}),(0,c.zG)(this,"_wrappedEmits",{}),null==e&&ex.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.zG)(this,"address",e),this.provider)(0,c.zG)(this,"resolvedAddress",ek(this.provider,e));else try{(0,c.zG)(this,"resolvedAddress",Promise.resolve((0,y.Kn)(e)))}catch(e){ex.throwError("provider is required to use ENS name as contract address",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let n={},i={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(i[e]){ex.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}i[e]=!0;{let r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}if(null==this[e]&&(0,c.zG)(this,e,eO(this,t,!0)),null==this.functions[e]&&(0,c.zG)(this.functions,e,eO(this,t,!1)),null==this.callStatic[e]&&(0,c.zG)(this.callStatic,e,e_(this,t,!0)),null==this.populateTransaction[e]){var r;(0,c.zG)(this.populateTransaction,e,(r=this,function(...e){return eC(r,t,e)}))}null==this.estimateGas[e]&&(0,c.zG)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...n){return eE(this,void 0,void 0,function*(){r||ex.throwError("estimate require a provider or signer",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield eC(e,t,n);return yield r.estimateGas(i)})}}(this,t))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,c.zG)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.zG)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.zG)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.zG)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.zG)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,y.CR)(e)}static getInterface(e){return ey.isInterface(e)?e:new ey(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&ex.throwError("contract not deployed",u.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||ex.throwError("sending a transactions require a signer",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,c.DC)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&ex.throwError("cannot override "+e,u.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new ev.b(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.zG)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return eh.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new eB);if("event"===e)return this._normalizeRunningEvent(new eI("event",null));if("*"===e)return this._normalizeRunningEvent(new eM(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new ej(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new ej(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new eI(eS(t),t))}return this._normalizeRunningEvent(new eM(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,c.p$)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||ex.throwError("events require a provider or a signer with a provider",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);
1this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let n=this._getRunningEvent(e),i=(0,c.DC)(n.filter);return"string"==typeof t&&(0,s.A7)(t,32)?(null!=r&&ex.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then(e=>e.map(e=>this._wrapEvent(n,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class eN extends eR{}class eU{constructor(e,t,r){let n=null;"0x"!==(n="string"==typeof t?t:(0,s._t)(t)?(0,s.Dv)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(n="0x"+n),(!(0,s.A7)(n)||n.length%2)&&ex.throwArgumentError("invalid bytecode","bytecode",t),r&&!ev.E.isSigner(r)&&ex.throwArgumentError("invalid signer","signer",r),(0,c.zG)(this,"bytecode",n),(0,c.zG)(this,"interface",(0,c.tu)(new.target,"getInterface")(e)),(0,c.zG)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,c.DC)(e.pop()))if(!eA[r])throw Error("unknown transaction override "+r)}return["data","from","to"].forEach(e=>{null!=t[e]&&ex.throwError("cannot override "+e,u.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})}),!t.value||l.O$.from(t.value).isZero()||this.interface.deploy.payable||ex.throwError("non-payable constructor cannot override value",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value}),ex.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,s.Dv)((0,s.zo)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return eE(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),ex.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield eP(this.signer,e,this.interface.deploy.inputs);r.push(t);let n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),a=(0,c.tu)(this.constructor,"getContractAddress")(i),o=(0,c.tu)(this.constructor,"getContract")(a,this.interface,this.signer);return eT(o,i),(0,c.zG)(o,"deployTransaction",i),o})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&ex.throwError("missing compiler output",u.Yd.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return eN.getInterface(e)}static getContractAddress(e){return(0,y.CR)(e)}static getContract(e,t,r){return new eN(e,t,r)}}var ez=r(75561);let eD=new u.Yd(ez.i),eF={},eL=l.O$.from(0),eH=l.O$.from(-1);function eG(e,t,r,n){let i={fault:t,operation:r};return void 0!==n&&(i.value=n),eD.throwError(e,u.Yd.errors.NUMERIC_FAULT,i)}let eq="0";for(;eq.length<256;)eq+=eq;function e$(e){if("number"!=typeof e)try{e=l.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+eq.substring(0,e):eD.throwArgumentError("invalid decimal size","decimals",e)}function eK(e,t){null==t&&(t=0);let r=e$(t),n=(e=l.O$.from(e)).lt(eL);n&&(e=e.mul(eH));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let a=e.div(r).toString();return e=1===r.length?a:a+"."+i,n&&(e="-"+e),e}function eZ(e,t){null==t&&(t=0);let r=e$(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||eD.throwArgumentError("invalid decimal value","value",e);let n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&eD.throwArgumentError("missing value","value",e);let i=e.split(".");i.length>2&&eD.throwArgumentError("too many decimal points","value",e);let a=i[0],o=i[1];for(a||(a="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&eG("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length<r.length-1;)o+="0";let s=l.O$.from(a),c=l.O$.from(o),u=s.mul(r).add(c);return n&&(u=u.mul(eH)),u}class eV{constructor(e,t,r,n){e!==eF&&eD.throwError("cannot use FixedFormat constructor; use FixedFormat.from",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=e$(n),Object.freeze(this)}static from(e){if(e instanceof eV)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e){if("fixed"===e);else if("ufixed"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||eD.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(e){let i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&eD.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&eD.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&eD.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new eV(eF,t,r,n)}}class eW{constructor(e,t,r,n){e!==eF&&eD.throwError("cannot use FixedNumber constructor; use FixedNumber.from",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&eD.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=eZ(this._value,this.format.decimals),r=eZ(e._value,e.format.decimals);return eW.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=eZ(this._value,this.format.decimals),r=eZ(e._value,e.format.decimals);return eW.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=eZ(this._value,this.format.decimals),r=eZ(e._value,e.format.decimals);return eW.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=eZ(this._value,this.format.decimals),r=eZ(e._value,e.format.decimals);return eW.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=eW.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(eY.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=eW.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(eY.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&eD.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=eW.from("1"+eq.substring(0,e),this.format),n=eX.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&eD.throwArgumentError("invalid byte width","width",e);let t=l.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,s.$m)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return eW.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,l.Zm)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),eW.fromString(eK(e,t),eV.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=eV.from(t),n=eZ(e,r.decimals);!r.signed&&n.lt(eL)&&eG("unsigned value cannot be negative","overflow","value",e);let i=null;return r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=(0,s.$m)(i,r.width/8)),new eW(eF,i,eK(n,r.decimals),r)}static fromBytes(e,t){null==t&&(t="fixed");let r=eV.from(t);if((0,s.lE)(e).length>r.width/8)throw Error("overflow");let n=l.O$.from(e);return r.signed&&(n=n.fromTwos(r.width)),new eW(eF,n.toTwos((r.signed?0:1)+r.width).toHexString(),eK(n,r.decimals),r)}static from(e,t){if("string"==typeof e)return eW.fromString(e,t);if((0,s._t)(e))return eW.fromBytes(e,t);try{return eW.fromValue(e,0,t)}catch(e){if(e.code!==u.Yd.errors.INVALID_ARGUMENT)throw e}return eD.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let eY=eW.from(1),eX=eW.from("0.5");function eJ(e){return"string"==typeof e&&(e=(0,j.Y0)(e)),(0,v.w)((0,s.zo)([(0,j.Y0)("\x19Ethereum Signed Message:\n"),(0,j.Y0)(String(e.length)),e]))}var eQ=r(49552),e0=r(66574),e1=r(10772);function e2(e,t,r,n,i){let a,o,l;e=(0,s.lE)(e),t=(0,s.lE)(t);let c=1,u=new Uint8Array(n),d=new Uint8Array(t.length+4);d.set(t);for(let f=1;f<=c;f++){d[t.length]=f>>24&255,d[t.length+1]=f>>16&255,d[t.length+2]=f>>8&255,d[t.length+3]=255&f;let p=(0,s.lE)((0,e1.Gy)(i,e,d));a||(l=new Uint8Array(a=p.length),c=Math.ceil(n/a),o=n-(c-1)*a),l.set(p);for(let t=1;t<r;t++){p=(0,s.lE)((0,e1.Gy)(i,e,p));for(let e=0;e<a;e++)l[e]^=p[e]}let h=(f-1)*a,m=f===c?o:a;u.set((0,s.lE)(l).slice(0,m),h)}return(0,s.Dv)(u)}var e3=r(93200),e6=r(80782);let e5=new u.Yd("wordlists/5.8.0");class e8{constructor(e){e5.checkAbstract(new.target,e8),(0,c.zG)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let t=[];for(let r=0;r<2048;r++){let n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return(0,g.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}let e7=null;function e4(e){if(null==e7&&(e7="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCat
1chCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobster
1LocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThe
1nTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==e8.check(e)))throw e7=null,Error("BIP39 Wordlist for en (English) FAILED")}class e9 extends e8{constructor(){super("en")}getWord(e){return e4(this),e7[e]}getWordIndex(e){return e4(this),e7.indexOf(e)}}let te=new e9;e8.register(te);let tt={en:te},tr=new u.Yd("hdnode/5.8.0"),tn=l.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ti=(0,j.Y0)("Bitcoin seed");function ta(e){return(1<<e)-1<<8-e}function to(e){return(0,s.$m)((0,s.Dv)(e),32)}function ts(e){return e0.eU.encode((0,s.zo)([e,(0,s.p3)((0,e1.JQ)((0,e1.JQ)(e)),0,4)]))}function tl(e){if(null==e)return tt.en;if("string"==typeof e){let t=tt[e];return null==t&&tr.throwArgumentError("unknown locale","wordlist",e),t}return e}let tc={},tu="m/44'/60'/0'/0/0";class td{constructor(e,t,r,n,i,a,o,l){if(e!==tc)throw Error("HDNode constructor cannot be called directly");if(t){let e=new e3.Et(t);(0,c.zG)(this,"privateKey",e.privateKey),(0,c.zG)(this,"publicKey",e.compressedPublicKey)}else(0,c.zG)(this,"privateKey",null),(0,c.zG)(this,"publicKey",(0,s.Dv)(r));(0,c.zG)(this,"parentFingerprint",n),(0,c.zG)(this,"fingerprint",(0,s.p3)((0,e1.bP)((0,e1.JQ)(this.publicKey)),0,4)),(0,c.zG)(this,"address",(0,ew.db)(this.publicKey)),(0,c.zG)(this,"chainCode",i),(0,c.zG)(this,"index",a),(0,c.zG)(this,"depth",o),null==l?((0,c.zG)(this,"mnemonic",null),(0,c.zG)(this,"path",null)):"string"==typeof l?((0,c.zG)(this,"mnemonic",null),(0,c.zG)(this,"path",l)):((0,c.zG)(this,"mnemonic",l),(0,c.zG)(this,"path",l.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return ts((0,s.zo)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,s.Dv)(this.depth),this.parentFingerprint,(0,s.$m)((0,s.Dv)(this.index),4),this.chainCode,null!=this.privateKey?(0,s.zo)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new td(tc,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,s.lE)(this.privateKey),1),t&&(t+="'")}else r.set((0,s.lE)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;let n=(0,s.lE)((0,e1.Gy)(e6.p.sha512,this.chainCode,r)),i=n.slice(0,32),a=n.slice(32),o=null,c=null;this.privateKey?o=to(l.O$.from(i).add(this.privateKey).mod(tn)):c=new e3.Et((0,s.Dv)(i))._addPoint(this.publicKey);let u=t,d=this.mnemonic;return d&&(u=Object.freeze({phrase:d.phrase,path:t,locale:d.locale||"en"})),new td(tc,o,c,this.fingerprint,to(a),e,this.depth+1,u)}derivePath(e){let t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e<t.length;e++){let n=t[e];if(n.match(/^[0-9]+'$/)){let e=parseInt(n.substring(0,n.length-1));if(e>=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+e)}else if(n.match(/^[0-9]+$/)){let e=parseInt(n);if(e>=2147483648)throw Error("invalid path index - "+n);r=r._derive(e)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(e,t){let r=(0,s.lE)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let n=(0,s.lE)((0,e1.Gy)(e6.p.sha512,ti,r));return new td(tc,to(n.slice(0,32)),null,"0x00000000",to(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return r=tl(r),e=th(tp(e,r),r),td._fromSeed(tf(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return td._fromSeed(e,null)}static fromExtendedKey(e){let t=e0.eU.decode(e);(82!==t.length||ts(t.slice(0,78))!==e)&&tr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=t[4],n=(0,s.Dv)(t.slice(5,9)),i=parseInt((0,s.Dv)(t.slice(9,13)).substring(2),16),a=(0,s.Dv)(t.slice(13,45)),o=t.slice(45,78);switch((0,s.Dv)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new td(tc,null,(0,s.Dv)(o),n,a,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new td(tc,(0,s.Dv)(o.slice(1)),null,n,a,i,r,null)}return tr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function tf(e,t){t||(t="");let r=(0,j.Y0)("mnemonic"+t,j.Uj.NFKD);return e2((0,j.Y0)(e,j.Uj.NFKD),r,2048,64,"sha512")}function tp(e,t){t=tl(t),tr.checkNormalize();let r=t.split(e);
1if(r.length%3!=0)throw Error("invalid mnemonic");let n=(0,s.lE)(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let e=0;e<r.length;e++){let a=t.getWordIndex(r[e].normalize("NFKD"));if(-1===a)throw Error("invalid mnemonic");for(let e=0;e<11;e++)a&1<<10-e&&(n[i>>3]|=1<<7-i%8),i++}let a=32*r.length/3,o=ta(r.length/3);if(((0,s.lE)((0,e1.JQ)(n.slice(0,a/8)))[0]&o)!=(n[n.length-1]&o))throw Error("invalid checksum");return(0,s.Dv)(n.slice(0,a/8))}function th(e,t){if(t=tl(t),(e=(0,s.lE)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let t=0;t<e.length;t++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[t]>>8-n,r.push(e[t]&(1<<8-n)-1),n+=3);let i=e.length/4,a=(0,s.lE)((0,e1.JQ)(e))[0]&ta(i);return r[r.length-1]<<=i,r[r.length-1]|=a>>8-i,t.join(r.map(e=>t.getWord(e)))}function tm(e,t){try{return tp(e,t),!0}catch(e){}return!1}function tb(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&tr.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}let ty=new u.Yd("random/5.8.0"),tg=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),tv=tg.crypto||tg.msCrypto;function tw(e){(e<=0||e>1024||e%1||e!=e)&&ty.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return tv.getRandomValues(t),(0,s.lE)(t)}tv&&tv.getRandomValues||(ty.warn("WARNING: Missing strong random number source"),tv={getRandomValues:function(e){return ty.throwError("no secure random source avaialble",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var tE=r(64670),tx=r.n(tE),tA=r(57527),tk=r.n(tA);function tP(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,s.lE)(e)}function tC(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function tT(e){return"string"==typeof e?(0,j.Y0)(e,j.Uj.NFKC):(0,s.lE)(e)}function t_(e,t){let r=e,n=t.toLowerCase().split("/");for(let e=0;e<n.length;e++){let t=null;for(let i in r)if(i.toLowerCase()===n[e]){t=r[i];break}if(null===t)return null;r=t}return r}let tO="json-wallets/5.8.0",tS=new u.Yd(tO);function tI(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class tB extends c.dk{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function tj(e,t){let r=tP(t_(e,"crypto/ciphertext"));if((0,s.Dv)((0,v.w)((0,s.zo)([t.slice(16,32),r]))).substring(2)!==t_(e,"crypto/mac").toLowerCase())throw Error("invalid password");let n=function(e,t,r){if("aes-128-ctr"===t_(e,"crypto/cipher")){let n=tP(t_(e,"crypto/cipherparams/iv")),i=new(tx()).Counter(n),a=new(tx()).ModeOfOperation.ctr(t,i);return(0,s.lE)(a.decrypt(r))}return null}(e,t.slice(0,16),r);n||tS.throwError("unsupported cipher",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let i=t.slice(32,64),a=(0,ew.db)(n);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,y.Kn)(t)!==a)throw Error("address mismatch")}let o={_isKeystoreAccount:!0,address:a,privateKey:(0,s.Dv)(n)};if("0.1"===t_(e,"x-ethers/version")){let t=tP(t_(e,"x-ethers/mnemonicCiphertext")),r=tP(t_(e,"x-ethers/mnemonicCounter")),n=new(tx()).Counter(r),a=new(tx()).ModeOfOperation.ctr(i,n),l=t_(e,"x-ethers/path")||tu,c=t_(e,"x-ethers/locale")||"en",d=(0,s.lE)(a.decrypt(t));try{let e=th(d,c),t=td.fromMnemonic(e,null,c).derivePath(l);if(t.privateKey!=o.privateKey)throw Error("mnemonic mismatch");o.mnemonic=t.mnemonic}catch(e){if(e.code!==u.Yd.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new tB(o)}function tM(e,t,r,n,i){return(0,s.lE)(e2(e,t,r,n,i))}function tR(e,t,r,n,i){return Promise.resolve(tM(e,t,r,n,i))}function tN(e,t,r,n,i){let a=tT(t),o=t_(e,"crypto/kdf");if(o&&"string"==typeof o){let t=function(e,t){return tS.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===o.toLowerCase()){let r=tP(t_(e,"crypto/kdfparams/salt")),s=parseInt(t_(e,"crypto/kdfparams/n")),l=parseInt(t_(e,"crypto/kdfparams/r")),c=parseInt(t_(e,"crypto/kdfparams/p"));s&&l&&c||t("kdf",o),(s&s-1)!=0&&t("N",s);let u=parseInt(t_(e,"crypto/kdfparams/dklen"));return 32!==u&&t("dklen",u),n(a,r,s,l,c,64,i)}if("pbkdf2"===o.toLowerCase()){let n=tP(t_(e,"crypto/kdfparams/salt")),i=null,o=t_(e,"crypto/kdfparams/prf");
1"hmac-sha256"===o?i="sha256":"hmac-sha512"===o?i="sha512":t("prf",o);let s=parseInt(t_(e,"crypto/kdfparams/c")),l=parseInt(t_(e,"crypto/kdfparams/dklen"));return 32!==l&&t("dklen",l),r(a,n,s,l,i)}}return tS.throwArgumentError("unsupported key-derivation function","kdf",o)}let tU=new u.Yd(tO);class tz extends c.dk{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function tD(e,t){let r=JSON.parse(e);t=tT(t);let n=(0,y.Kn)(t_(r,"ethaddr")),i=tP(t_(r,"encseed"));i&&i.length%16==0||tU.throwArgumentError("invalid encseed","json",e);let a=(0,s.lE)(e2(t,t,2e3,32,"sha256")).slice(0,16),o=i.slice(0,16),l=i.slice(16),c=new(tx()).ModeOfOperation.cbc(a,o),u=tx().padding.pkcs7.strip((0,s.lE)(c.decrypt(l))),d="";for(let e=0;e<u.length;e++)d+=String.fromCharCode(u[e]);let f=(0,j.Y0)(d);return new tz({_isCrowdsaleAccount:!0,address:n,privateKey:(0,v.w)(f)})}function tF(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function tL(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!!t.version&&parseInt(t.version)===t.version&&3===parseInt(t.version)}function tH(e){if(tF(e))try{return(0,y.Kn)(JSON.parse(e).ethaddr)}catch(e){return null}if(tL(e))try{return(0,y.Kn)(JSON.parse(e).address)}catch(e){}return null}var tG=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})};let tq=new u.Yd("wallet/5.8.0");class t$ extends ev.E{constructor(e,t){var r;if(super(),null!=(r=e)&&(0,s.A7)(r.privateKey,32)&&null!=r.address){let t=new e3.Et(e.privateKey);if((0,c.zG)(this,"_signingKey",()=>t),(0,c.zG)(this,"address",(0,ew.db)(this.publicKey)),this.address!==(0,y.Kn)(e.address)&&tq.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let t=e.mnemonic;return t&&t.phrase}(e)){let t=e.mnemonic;(0,c.zG)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||tu,locale:t.locale||"en"}));let r=this.mnemonic,n=td.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,ew.db)(n.privateKey)!==this.address&&tq.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,c.zG)(this,"_mnemonic",()=>null)}else{if(e3.Et.isSigningKey(e))"secp256k1"!==e.curve&&tq.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,c.zG)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let t=new e3.Et(e);(0,c.zG)(this,"_signingKey",()=>t)}(0,c.zG)(this,"_mnemonic",()=>null),(0,c.zG)(this,"address",(0,ew.db)(this.publicKey))}t&&!eg.zt.isProvider(t)&&tq.throwArgumentError("invalid provider","provider",t),(0,c.zG)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new t$(this,e)}signTransaction(e){return(0,c.mE)(e).then(t=>{null!=t.from&&((0,y.Kn)(t.from)!==this.address&&tq.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);let r=this._signingKey().signDigest((0,v.w)((0,ew.qC)(t)));return(0,ew.qC)(t,r)})}signMessage(e){return tG(this,void 0,void 0,function*(){return(0,s.gV)(this._signingKey().signDigest(eJ(e)))})}_signTypedData(e,t,r){return tG(this,void 0,void 0,function*(){let n=yield eQ.E.resolveNames(e,t,r,e=>(null==this.provider&&tq.throwError("cannot resolve ENS names without a provider",u.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,s.gV)(this._signingKey().signDigest(eQ.E.hash(n.domain,t,n.value)))})}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if((0,y.Kn)(e.address)!==(0,ew.db)(e.privateKey))throw Error("address/privateKey mismatch");if(tI(e)){let t=e.mnemonic;if(td.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||tu).privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let i=(0,s.lE)(e.privateKey),a=tT(t),o=null,l=null,c=null;if(tI(e)){let t=e.mnemonic;o=(0,s.lE)(tp(t.phrase,t.locale||"en")),l=t.path||tu,c=t.locale||"en"}let u=r.client;u||(u="ethers.js");let d=null;d=r.salt?(0,s.lE)(r.salt):tw(32);let f=null;if(r.iv){if(16!==(f=(0,s.lE)(r.iv)).length)throw Error("invalid iv")}else f=tw(16);let p=null;if(r.uuid){if(16!==(p=(0,s.lE)(r.uuid)).length)throw Error("invalid uuid")}else p=tw(16);let h=131072,m=8,b=1;return r.scrypt&&(r.scrypt.N&&(h=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(b=r.scrypt.p)),tk().scrypt
1(a,d,h,m,b,64,n).then(t=>{let r=(t=(0,s.lE)(t)).slice(0,16),n=t.slice(16,32),a=t.slice(32,64),y=new(tx()).Counter(f),g=new(tx()).ModeOfOperation.ctr(r,y),w=(0,s.lE)(g.encrypt(i)),E=(0,v.w)((0,s.zo)([n,w])),x={address:e.address.substring(2).toLowerCase(),id:function(e){let t=(0,s.lE)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;let r=(0,s.Dv)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}(p),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,s.Dv)(f).substring(2)},ciphertext:(0,s.Dv)(w).substring(2),kdf:"scrypt",kdfparams:{salt:(0,s.Dv)(d).substring(2),n:h,dklen:32,p:b,r:m},mac:E.substring(2)}};if(o){let e=tw(16),t=new(tx()).Counter(e),r=new(tx()).ModeOfOperation.ctr(a,t),n=(0,s.lE)(r.encrypt(o)),i=new Date,d=i.getUTCFullYear()+"-"+tC(i.getUTCMonth()+1,2)+"-"+tC(i.getUTCDate(),2)+"T"+tC(i.getUTCHours(),2)+"-"+tC(i.getUTCMinutes(),2)+"-"+tC(i.getUTCSeconds(),2)+".0Z";x["x-ethers"]={client:u,gethFilename:"UTC--"+d+"--"+x.address,mnemonicCounter:(0,s.Dv)(e).substring(2),mnemonicCiphertext:(0,s.Dv)(n).substring(2),path:l,locale:c,version:"0.1"}}return JSON.stringify(x)})}(this,e,t,r)}static createRandom(e){let t=tw(16);e||(e={}),e.extraEntropy&&(t=(0,s.lE)((0,s.p3)((0,v.w)((0,s.zo)([t,e.extraEntropy])),0,16)));let r=th(t,e.locale);return t$.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(function(e,t,r){if(tF(e)){r&&r(0);let n=tD(e,t);return r&&r(1),Promise.resolve(n)}return tL(e)?function(e,t,r){var n,i,a,o;return n=this,i=void 0,a=void 0,o=function*(){let n=JSON.parse(e),i=yield tN(n,t,tR,tk().scrypt,r);return tj(n,i)},new(a||(a=Promise))(function(e,t){function r(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(r,s)}l((o=o.apply(n,i||[])).next())})}(e,t,r):Promise.reject(Error("invalid JSON wallet"))})(e,t,r).then(e=>new t$(e))}static fromEncryptedJsonSync(e,t){return new t$(function(e,t){if(tF(e))return tD(e,t);if(tL(e))return function(e,t){let r=JSON.parse(e),n=tN(r,t,tM,tk().syncScrypt);return tj(r,n)}(e,t);throw Error("invalid JSON wallet")}(e,t))}static fromMnemonic(e,t,r){return t||(t=tu),new t$(td.fromMnemonic(e,null,r).derivePath(t))}}function tK(e,t){return(0,ew.RJ)(eJ(e),t)}function tZ(e,t,r,n){return(0,ew.RJ)(eQ.E.hash(e,t,r),n)}var tV=r(83293),tW=r(89126);let tY="Î";var tX=r(56627),tJ=r(97393),tQ=r(76733);let t0=RegExp("^bytes([0-9]+)$"),t1=RegExp("^(u?int)([0-9]*)$"),t2=RegExp("^(.*)\\[([0-9]*)\\]$"),t3=new u.Yd("solidity/5.8.0");function t6(e,t){e.length!=t.length&&t3.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return(0,s.Bu)(r,32);return(0,s.lE)(r);case"string":return(0,j.Y0)(r);case"bytes":return(0,s.lE)(r);case"bool":if(r=r?"0x01":"0x00",n)return(0,s.Bu)(r,32);return(0,s.lE)(r)}let i=t.match(t1);if(i){let e=parseInt(i[2]||"256");return(i[2]&&String(e)!==i[2]||e%8!=0||0===e||e>256)&&t3.throwArgumentError("invalid number type","type",t),n&&(e=256),r=l.O$.from(r).toTwos(e),(0,s.Bu)(r,e/8)}if(i=t.match(t0)){let e=parseInt(i[1]);return((String(e)!==i[1]||0===e||e>32)&&t3.throwArgumentError("invalid bytes type","type",t),(0,s.lE)(r).byteLength!==e&&t3.throwArgumentError(`invalid value for ${t}`,"value",r),n)?(0,s.lE)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(t2))&&Array.isArray(r)){let n=i[1];parseInt(i[2]||String(r.length))!=r.length&&t3.throwArgumentError(`invalid array length for ${t}`,"value",r);let a=[];return r.forEach(function(t){a.push(e(n,t,!0))}),(0,s.zo)(a)}return t3.throwArgumentError("invalid type","type",t)}(e,t[n]))}),(0,s.Dv)((0,s.zo)(r))}function t5(e,t){return(0,v.w)(t6(e,t))}function t8(e,t){return(0,e1.JQ)(t6(e,t))}var t7=r(67998),t4=r(37121);function t9(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach(e=>{let i=e.split(":");n[r+=parseInt(i[0],16)]=t(i[1])}),n}function re(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}function rt(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n];if(e>=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}let rr=re("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,
1115-,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"),rn="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),ri=[{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}],ra=t9("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"),ro=t9("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"),rs=t9("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",function(e){if(e.length%4!=0)throw Error("bad data");let t=[];for(let r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t}),rl=re("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 rc(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let t=(0,j.XL)(e);t=t.map(e=>rn.indexOf(e)>=0||e>=65024&&e<=65039?[]:function(e){let t=rt(e,ri);if(t)return[e+t.s];let r=ra[e];if(r)return r;let n=ro[e];return n?[e+n[0]]:rs[e]||null}(e)||[e]).reduce((e,t)=>
1(t.forEach(t=>{e.push(t)}),e),[]),(t=(0,j.XL)((0,j.uu)(t),j.Uj.NFKC)).forEach(e=>{if(rt(e,rl))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(rt(e,rr))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,j.uu)(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}function ru(e){let t=(0,j.Y0)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,s.Dv)((0,s.zo)([t,tW.R]).slice(0,32))}function rd(e){let t=(0,s.lE)(e);if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,j.ZN)(t.slice(0,r))}let rf=new u.Yd("units/5.8.0"),rp=["wei","kwei","mwei","gwei","szabo","finney","ether"];function rh(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&rf.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);let a=[];for(;r.length;){if(r.length<=3){a.unshift(r);break}{let e=r.length-3;a.unshift(r.substring(e)),r=r.substring(0,e)}}return n+a.join(",")+i}function rm(e,t){if("string"==typeof t){let e=rp.indexOf(t);-1!==e&&(t=3*e)}return eK(e,null!=t?t:18)}function rb(e,t){if("string"!=typeof e&&rf.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=rp.indexOf(t);-1!==e&&(t=3*e)}return eZ(e,null!=t?t:18)}function ry(e){return rm(e,18)}function rg(e){return rb(e,18)}var rv=r(65712);let rw="ethers/5.8.0",rE=new u.Yd(rw);try{let e=window;null==e._ethers&&(e._ethers=o)}catch(e){}},77118:function(e,t,r){t.utils=r(20798),t.common=r(66493),t.sha=r(34737),t.ripemd=r(36382),t.hmac=r(29742),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},66493:function(e,t,r){"use strict";var n=r(20798),i=r(37856);function a(){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}t.BlockHash=a,a.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(a=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;a<this.padLength;a++)n[i++]=0;return n}},29742:function(e,t,r){"use strict";var n=r(20798),i=r(37856);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},36382:function(e,t,r){"use strict";var n=r(20798),i=r(66493),a=n.rotl32,o=n.sum32,s=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],b=r,y=n,g=i,v=c,w=u,E=0;E<80;E++){var x,A,k=o(a(l(r,d(E,n,i,c),e[f[E]+t],(x=E)<=15?0:x<=31?1518500249:x<=47?1859775393:x<=63?2400959708:2840853838),h[E]),u);r=u,u=c,c=a(i,10),i=n,n=k,k=o(a(l(b,d(79-E,y,g,v),e[p[E]+t],(A=E)<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0),m[E]),w),b=w,w=v,v=a(g,10),g=y,y=k}k=s(this.h[1],i,v),this.h[1]=s(this.h[2],c,w),this.h[2]=s(this.h[3],u,b),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,g),this.h[0]=k},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[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],p=[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],h=[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],m=[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]},34737:function(e,t,r){"use strict";t.sha1=r(82540),t.sha224=r(9203),t.sha256=r(75283),t.sha384=r(57403),t.sha512=r(94073)},82540:function(e,t,r){"use strict";var n=r(20798),i=r(66493),a=r(40909),o=n.rotl32,s=n.sum32,l=n.sum32_5,c=a.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],f=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var h=~~(n/20),m=l(o(i,5),c(h,a,u,f),p,r[n],d[h]);
vendor: 4,437 bytes, line 1
1p=f,f=u,u=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],p)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9203:function(e,t,r){"use strict";var n=r(20798),i=r(75283);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},75283:function(e,t,r){"use strict";var n=r(20798),i=r(66493),a=r(40909),o=r(37856),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=a.ch32,d=a.maj32,f=a.s0_256,p=a.s1_256,h=a.g0_256,m=a.g1_256,b=i.BlockHash,y=[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 g(){if(!(this instanceof g))return new g;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=Array(64)}n.inherits(g,b),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],h(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],b=this.h[2],y=this.h[3],g=this.h[4],v=this.h[5],w=this.h[6],E=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var x=c(E,p(g),u(g,v,w),this.k[n],r[n]),A=s(f(i),d(i,a,b));E=w,w=v,v=g,g=s(y,x),y=b,b=a,a=i,i=s(x,A)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],E)},g.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},57403:function(e,t,r){"use strict";var n=r(20798),i=r(94073);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},94073:function(e,t,r){"use strict";var n=r(20798),i=r(66493),a=r(37856),o=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,f=n.sum64_lo,p=n.sum64_4_hi,h=n.sum64_4_lo,m=n.sum64_5_hi,b=n.sum64_5_lo,y=i.BlockHash,g=[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,
11322822218,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 v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=Array(160)}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=o(e,t,19)^o(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),a=function(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),u=r[n-14],d=r[n-13],f=function(e,t){var r=o(e,t,1)^o(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),m=function(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),b=r[n-32],y=r[n-31];r[n]=p(i,a,u,d,f,m,b,y),r[n+1]=h(i,a,u,d,f,m,b,y)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],l=this.h[2],c=this.h[3],p=this.h[4],h=this.h[5],y=this.h[6],g=this.h[7],v=this.h[8],w=this.h[9],E=this.h[10],x=this.h[11],A=this.h[12],k=this.h[13],P=this.h[14],C=this.h[15];a(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var _=P,O=C,S=function(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}(v,w),I=function(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}(v,w),B=function(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}(v,0,E,0,A,k),j=function(e,t,r,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}(0,w,0,x,0,k),M=this.k[T],R=this.k[T+1],N=r[T],U=r[T+1],z=m(_,O,S,I,B,j,M,R,N,U),D=b(_,O,S,I,B,j,M,R,N,U);_=function(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}(n,i);var F=d(_,O=function(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}(n,i),S=function(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}(n,0,l,0,p,h),I=function(e,t,r,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}(0,i,0,c,0,h)),L=f(_,O,S,I);P=A,C=k,A=E,k=x,E=v,x=w,v=d(y,g,z,D),w=f(g,g,z,D),y=p,g=h,p=l,h=c,l=n,c=i,n=d(z,D,F,L),i=f(z,D,F,L)}u(this.h,0,n,i),u(this.h,2,l,c),u(this.h,4,p,h),u(this.h,6,y,g),u(this.h,8,v,w),u(this.h,10,E,x),u(this.h,12,A,k),u(this.h,14,P,C)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},40909:function(e,t,r){"use strict";var n=r(20798).rotr32;function i(e,t,r){return e&t^e&r^t&r}t.ft_1=function(e,t,r,n){return 0===e?t&r^~t&n:1===e||3===e?t^r^n:2===e?i(t,r,n):void 0},t.ch32=function(e,t,r){return e&t^~e&r},t.maj32=i,t.p32=function(e,t,r){return e^t^r},t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},20798:function(e,t,r){"use strict";var n=r(37856),i=r(19046);function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a,o,s=e.charCodeAt(i);s<128?r[n++]=s:(s<2048?r[n++]=s>>6|192:((a=e,o=i,(64512&a.charCodeAt(o))!=55296||o<0||o+1>=a.length?1:(64512&a.charCodeAt(o+1))!=56320)?r[n++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128),r[n++]=s>>6&63|128),r[n++]=63&s|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=s(i.toString(16))}return r},t.zero2=o,t.zero8=s,t.join32=function(e,t,r,i){var a,o=r-t;n(o%4==0);for(var s=Array(o/4),l=0,c=t;l<s.length;l++,c+=4)a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=a>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0;e[t]=(a<n?1:0)+r+i>>>
10,e[t+1]=a},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,a,o,s){var l,c=t;return e+r+i+o+(0+((c=c+n>>>0)<t?1:0)+((c=c+a>>>0)<a?1:0)+((c=c+s>>>0)<s?1:0))>>>0},t.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,a,o,s,l,c){var u,d=t;return e+r+i+o+l+(0+((d=d+n>>>0)<t?1:0)+((d=d+a>>>0)<a?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+c>>>0)<c?1:0))>>>0},t.sum64_5_lo=function(e,t,r,n,i,a,o,s,l,c){return t+n+a+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},19046:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},22134:function(e,t,r){var n,i=r(32608);!function(){"use strict";var a="input is invalid type",o="object"==typeof window,s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var l=!o&&"object"==typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?s=r.g:l&&(s=self);var c=!s.JS_SHA3_NO_COMMON_JS&&e.exports,u=r.amdO,d=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),p=[4,1024,262144,67108864],h=[0,8,16,24],m=[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],b=[224,256,384,512],y=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(s.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),d&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new R(e,t,e).update(n)[r]()}},E=function(e,t,r){return function(n,i){return new R(e,t,i).update(n)[r]()}},x=function(e,t,r){return function(t,n,i,a){return T["cshake"+e].update(t,n,i,a)[r]()}},A=function(e,t,r){return function(t,n,i,a){return T["kmac"+e].update(t,n,i,a)[r]()}},k=function(e,t,r,n){for(var i=0;i<g.length;++i){var a=g[i];e[a]=t(r,n,a)}return e},P=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new R(e,t,e)},r.update=function(e){return r.create().update(e)},k(r,w,e,t)},C=[{name:"keccak",padding:[1,256,65536,16777216],bits:b,createMethod:P},{name:"sha3",padding:[6,1536,393216,100663296],bits:b,createMethod:P},{name:"shake",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(e,t){var r=E(e,t,"hex");return r.create=function(r){return new R(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},k(r,E,e,t)}},{name:"cshake",padding:p,bits:y,createMethod:function(e,t){var r=v[e],n=x(e,t,"hex");return n.create=function(n,i,a){return i||a?new R(e,t,n).bytepad([i,a],r):T["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},k(n,x,e,t)}},{name:"kmac",padding:p,bits:y,createMethod:function(e,t){var r=v[e],n=A(e,t,"hex");return n.create=function(n,i,a){return new N(e,t,i).bytepad(["KMAC",a],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},k(n,A,e,t)}}],T={},_=[],O=0;O<C.length;++O)for(var S=C[O],I=S.bits,B=0;B<I.length;++B){var j=S.name+"_"+I[B];if(_.push(j),T[j]=S.createMethod(I[B],S.padding),"sha3"!==S.name){var M=S.name+I[B];_.push(M),T[M]=T[j]}}function R(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function N(e,t,r){R.call(this,e,t,r)}R.prototype.update=function(e){if(this.finalized)throw Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(a);
1if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(a)}else throw Error(a);t=!0}for(var n,i,o=this.blocks,s=this.byteCount,l=e.length,c=this.blockCount,u=0,f=this.s;u<l;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<c+1;++n)o[n]=0;if(t)for(n=this.start;u<l&&n<s;++u)o[n>>2]|=e[u]<<h[3&n++];else for(n=this.start;u<l&&n<s;++u)(i=e.charCodeAt(u))<128?o[n>>2]|=i<<h[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<h[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<h[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++u)),o[n>>2]|=(240|i>>18)<<h[3&n++],o[n>>2]|=(128|i>>12&63)<<h[3&n++]),o[n>>2]|=(128|i>>6&63)<<h[3&n++]),o[n>>2]|=(128|63&i)<<h[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)f[n]^=o[n];U(f),this.reset=!0}else this.start=n}return this},R.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},R.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(a)}else throw Error(a);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},R.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,a=[];return a.length=i,this.update(a),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];U(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,o=0,s="";o<n;){for(a=0;a<t&&o<n;++a,++o)s+=f[(e=r[a])>>4&15]+f[15&e]+f[e>>12&15]+f[e>>8&15]+f[e>>20&15]+f[e>>16&15]+f[e>>28&15]+f[e>>24&15];o%t==0&&(U(r),a=0)}return i&&(s+=f[(e=r[a])>>4&15]+f[15&e],i>1&&(s+=f[e>>12&15]+f[e>>8&15]),i>2&&(s+=f[e>>20&15]+f[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,o=0,s=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:s));o<n;){for(a=0;a<t&&o<n;++a,++o)l[o]=r[a];o%t==0&&U(r)}return i&&(l[a]=r[a],e=e.slice(0,s)),e},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,l=[];s<i;){for(o=0;o<r&&s<i;++o,++s)e=s<<2,t=n[o],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%r==0&&U(n)}return a&&(e=s<<2,t=n[o],l[e]=255&t,a>1&&(l[e+1]=t>>8&255),a>2&&(l[e+2]=t>>16&255)),l},N.prototype=new R,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var U=function(e){var t,r,n,i,a,o,s,l,c,u,d,f,p,h,b,y,g,v,w,E,x,A,k,P,C,T,_,O,S,I,B,j,M,R,N,U,z,D,F,L,H,G,q,$,K,Z,V,W,Y,X,J,Q,ee,et,er,en,ei,ea,eo,es,el,ec,eu;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(o<<1|s>>>31),r=p^(s<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=a^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(u<<1|d>>>31),r=s^(d<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(f<<1|p>>>31),r=c^(p<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(i<<1|a>>>31),r=d^(a<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,h=e[0],b=e[1],Z=e[11]<<4|e[10]>>>28,V=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,S=e[21]<<3|e[20]>>>29,es=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,W=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,ec=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,U=e[14]<<6|e[15]>>>26,z=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,M=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,C=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,E=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,_=e[19]<<20|e[18]>>>12,ea=e[29]<<7|e[28]>>>25,eo=e[28]<<7|e[29]>>>25,L=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=h^~y&v,e[1]=b^~g&w,e[10]=P^~T&O,e[11]=C^~_&S,e[20]=R^~U&D,e[21]=N^~z&F,e[30]=$^~Z&W,e[31]=K^~V&Y,e[40]=et^~en&ea,e[41]=er^~ei&eo,e[2]=y^~v&E,e[3]=g^~w&x,e[12]=T^~O&I,e[13]=_^~S&B,e[22]=U^~D&L,e[23]=z^~F&H,e[32]=Z^~W&X,e[33]=V^~Y&J,e[42]=en^~ea&es,e[43]=ei^~eo&el,e[4]=v^~E&A,e[5]=w^~x&k,e[14]=O^~I&j,e[15]=S^~B&M,e[24]=D^~L&G,e[25]=F^~H&q,e[34]=W^~X&Q,e[35]=Y^~J&ee,e[44]=ea^~es&ec,e[45]=eo^~el&eu,e[6]=E^~A&h,e[7]=x^~k&b,e[16]=I^~j&P,e[17]=B^~M&C,e[26]=L^~G&R,e[27]=H^~q&N,e[36]=X^~Q&$,e[37]=J^~ee&K,e[46]=es^~ec&et,e[47]=el^~eu&er,e[8]=A^~h&y,e[9]=k^~b&g,e[18]=j^~P&T,e[19]=M^~C&_,e[28]=G^~R&U,e[29]=q^~N&z,e[38]=Q^~$&Z,e[39]=ee^~K&V,e[48]=ec^~et&en,e[49]=eu^~er&ei,e[0]^=m[n],e[1]^=m[n+1]};
1if(c)e.exports=T;else{for(O=0;O<_.length;++O)s[_[O]]=T[_[O]];u&&void 0!==(n=(function(){return T}).call(t,r,t,e))&&(e.exports=n)}}()},37856:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},9182:function(e,t,r){"use strict";var n,i;r.d(t,{CX:function(){return u},cn:function(){return y},ok:function(){return b}});let a={withStackTrace:!1},o=(e,t,r=a)=>({data:t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},message:e,stack:r.withStackTrace?Error().stack:void 0});function s(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function c(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function o(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof l?Promise.resolve(r.value.v).then(c,u):d(a[0][2],r)}catch(e){d(a[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}"function"==typeof SuppressedError&&SuppressedError;class u{constructor(e){this._promise=e}static fromSafePromise(e){return new u(e.then(e=>new g(e)))}static fromPromise(e,t){return new u(e.then(e=>new g(e)).catch(e=>new v(t(e))))}static fromThrowable(e,t){return(...r)=>new u(s(this,void 0,void 0,function*(){try{return new g((yield e(...r)))}catch(e){return new v(t?t(e):e)}}))}static combine(e){return p(e)}static combineWithAllErrors(e){return m(e)}map(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isErr()?new v(t.error):new g((yield e(t.value)))})))}andThrough(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){if(t.isErr())return new v(t.error);let r=yield e(t.value);return r.isErr()?new v(r.error):new g(t.value)})))}andTee(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){if(t.isErr())return new v(t.error);try{yield e(t.value)}catch(e){}return new g(t.value)})))}orTee(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){if(t.isOk())return new g(t.value);try{yield e(t.error)}catch(e){}return new v(t.error)})))}mapErr(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isOk()?new g(t.value):new v((yield e(t.error)))})))}andThen(e){return new u(this._promise.then(t=>{if(t.isErr())return new v(t.error);let r=e(t.value);return r instanceof u?r._promise:r}))}orElse(e){return new u(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isErr()?e(t.error):new g(t.value)})))}match(e,t){return this._promise.then(r=>r.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return c(this,arguments,function*(){return yield l((yield l((yield*function(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:l(e[n](t)),done:!1}:i?i(t):t}:i}}(function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}((yield l(this._promise.then(e=>e.safeUnwrap())))))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return c(this,arguments,function*(){let e=yield l(this._promise);return e.isErr()&&(yield yield l(d(e.error))),yield l(e.value)})}}function d(e){return new u(Promise.resolve(new v(e)))}u.fromPromise,u.fromSafePromise,u.fromThrowable;let f=e=>{let t=b([]);for(let r of e){if(r.isErr()){t=y(r.error);break}t.map(e=>
1e.push(r.value))}return t},p=e=>u.fromSafePromise(Promise.all(e)).andThen(f),h=e=>{let t=b([]);for(let r of e)r.isErr()&&t.isErr()?t.error.push(r.error):r.isErr()&&t.isOk()?t=y([r.error]):r.isOk()&&t.isOk()&&t.value.push(r.value);return t},m=e=>u.fromSafePromise(Promise.all(e)).andThen(h);function b(e){return new g(e)}function y(e){return new v(e)}(i=n||(n={})).fromThrowable=function(e,t){return(...r)=>{try{let t=e(...r);return b(t)}catch(e){return y(t?t(e):e)}}},i.combine=function(e){return f(e)},i.combineWithAllErrors=function(e){return h(e)};class g{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return b(e(this.value))}mapErr(e){return b(this.value)}andThen(e){return e(this.value)}andThrough(e){return e(this.value).map(e=>this.value)}andTee(e){try{e(this.value)}catch(e){}return b(this.value)}orTee(e){return b(this.value)}orElse(e){return b(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return u.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return function*(){return e}()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw o("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}}class v{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return y(this.error)}mapErr(e){return y(e(this.error))}andThrough(e){return y(this.error)}andTee(e){return y(this.error)}orTee(e){try{e(this.error)}catch(e){}return y(this.error)}andThen(e){return y(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return d(this.error)}asyncAndThrough(e){return d(this.error)}asyncMap(e){return d(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return function*(){throw yield y(e),Error("Do not use this generator out of `safeTry`")}()}_unsafeUnwrap(e){throw o("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){return yield this,this}}n.fromThrowable},57527:function(e){"use strict";!function(t){function r(e){let t=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]),r=1779033703,n=3144134277,i=1013904242,a=2773480762,o=1359893119,s=2600822924,l=528734635,c=1541459225,u=new Uint32Array(64);function d(e){let d=0,f=e.length;for(;f>=64;){let p=r,h=n,m=i,b=a,y=o,g=s,v=l,w=c,E,x,A,k,P;for(x=0;x<16;x++)A=d+4*x,u[x]=(255&e[A])<<24|(255&e[A+1])<<16|(255&e[A+2])<<8|255&e[A+3];for(x=16;x<64;x++)k=((E=u[x-2])>>>17|E<<15)^(E>>>19|E<<13)^E>>>10,P=((E=u[x-15])>>>7|E<<25)^(E>>>18|E<<14)^E>>>3,u[x]=(k+u[x-7]|0)+(P+u[x-16]|0)|0;for(x=0;x<64;x++)k=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&g^~y&v)|0)+(w+(t[x]+u[x]|0)|0)|0,P=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&h^p&m^h&m)|0,w=v,v=g,g=y,y=b+k|0,b=m,m=h,h=p,p=k+P|0;r=r+p|0,n=n+h|0,i=i+m|0,a=a+b|0,o=o+y|0,s=s+g|0,l=l+v|0,c=c+w|0,d+=64,f-=64}}d(e);let f,p=e.length%64,h=e.length/536870912|0,m=e.length<<3,b=p<56?56:120,y=e.slice(e.length-p,e.length);for(y.push(128),f=p+1;f<b;f++)y.push(0);return y.push(h>>>24&255),y.push(h>>>16&255),y.push(h>>>8&255),y.push(h>>>0&255),y.push(m>>>24&255),y.push(m>>>16&255),y.push(m>>>8&255),y.push(m>>>0&255),d(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function n(e,t,n){let i;e=e.length<=64?e:r(e);let a=64+t.length+4,o=Array(a),s=Array(64),l=[];for(i=0;i<64;i++)o[i]=54;
1for(i=0;i<e.length;i++)o[i]^=e[i];for(i=0;i<t.length;i++)o[64+i]=t[i];for(i=a-4;i<a;i++)o[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function c(){for(let e=a-1;e>=a-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)c(),l=l.concat(r(s.concat(r(o)))),n-=32;return n>0&&(c(),l=l.concat(r(s.concat(r(o))).slice(0,n))),l}function i(e,t,r,n,i){let l;for(s(e,(2*r-1)*16,i,0,16),l=0;l<2*r;l++)o(e,16*l,i,16),function(e,t){s(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}(i,n),s(i,0,e,t+16*l,16);for(l=0;l<r;l++)s(e,t+32*l,e,16*l,16);for(l=0;l<r;l++)s(e,t+(2*l+1)*16,e,(l+r)*16,16)}function a(e,t){return e<<t|e>>>32-t}function o(e,t,r,n){for(let i=0;i<n;i++)r[i]^=e[t+i]}function s(e,t,r,n,i){for(;i--;)r[n++]=e[t++]}function l(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){let r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function c(e,t){if("number"!=typeof e||e%1)throw Error("invalid "+t);return e}function u(e,t,r,a,u,d,f){let p;if(r=c(r,"N"),a=c(a,"r"),u=c(u,"p"),d=c(d,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/a)throw Error("N too large");if(a>2147483647/128/u)throw Error("r too large");if(!l(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!l(t))throw Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);let h=n(e,t,128*u*a),m=new Uint32Array(32*u*a);for(let e=0;e<m.length;e++){let t=4*e;m[e]=(255&h[t+3])<<24|(255&h[t+2])<<16|(255&h[t+1])<<8|(255&h[t+0])<<0}let b=new Uint32Array(64*a),y=new Uint32Array(32*a*r),g=32*a,v=new Uint32Array(16),w=new Uint32Array(16),E=u*r*2,x=0,A=null,k=!1,P=0,C=0,T,_=f?parseInt(1e3/a):4294967295,O="undefined"!=typeof setImmediate?setImmediate:setTimeout,S=function(){let t;if(k)return f(Error("cancelled"),x/E);switch(P){case 0:s(m,p=32*C*a,b,0,g),P=1,T=0;case 1:(t=r-T)>_&&(t=_);for(let e=0;e<t;e++)s(b,0,y,(T+e)*g,g),i(b,g,a,v,w);if(T+=t,x+=t,f){let e=parseInt(1e3*x/E);if(e!==A){if(k=f(null,x/E))break;A=e}}if(T<r)break;T=0,P=2;case 2:(t=r-T)>_&&(t=_);for(let e=0;e<t;e++)o(y,(b[(2*a-1)*16]&r-1)*g,b,g),i(b,g,a,v,w);if(T+=t,x+=t,f){let e=parseInt(1e3*x/E);if(e!==A){if(k=f(null,x/E))break;A=e}}if(T<r)break;if(s(b,0,m,p,g),++C<u){P=0;break}h=[];for(let e=0;e<m.length;e++)h.push(m[e]>>0&255),h.push(m[e]>>8&255),h.push(m[e]>>16&255),h.push(m[e]>>24&255);let l=n(e,h,d);return f&&f(null,1,l),l}f&&O(S)};if(!f)for(;;){let e=S();if(void 0!=e)return e}S()}e.exports={scrypt:function(e,t,r,n,i,a,o){return new Promise(function(s,l){let c=0;o&&o(0),u(e,t,r,n,i,a,function(e,t,r){if(e)l(e);else if(r)o&&1!==c&&o(1),s(new Uint8Array(r));else if(o&&t!==c)return c=t,o(t)})})},syncScrypt:function(e,t,r,n,i,a){return new Uint8Array(u(e,t,r,n,i,a))}}}(0)},30482:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(68132);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof i&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},96726:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(30482);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var i=r(42126);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return i.narrow}});var a=r(93573);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return a.formatAbi}});var o=r(89662);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=r(95008);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var l=r(93117);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return l.formatAbiParameters}});var c=r(96264);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return c.parseAbi}});var u=r(96485);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return u.parseAbiItem}});var d=r(24506);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(23067);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var p=r(90324);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return p.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return p.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return p.UnknownSolidityTypeError}});var h=r(43152);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return h.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return h.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return h.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return h.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return h.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return h.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return h.InvalidAbiParameterError}});var m=r(93828);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return m.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return m.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return m.UnknownSignatureError}});var b=r(86893);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return b.InvalidParenthesisError}});var y=r(21186);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return y.CircularReferenceError}})},90324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(30482);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=a;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=o},43152:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(30482);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class a extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=a;class o extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=o;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class l extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=l;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=c;class u extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=u},93828:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(30482);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class a extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=a;class o extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=o},86893:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(30482);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},21186:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(30482);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},93573:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=function(e){let t=[],r=e.length;for(let i=0;i<r;i++){let r=e[i],a=(0,n.formatAbiItem)(r);t.push(a)}return t};let n=r(89662)},89662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"};let n=r(93117)},95008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";let a=t.components.length;for(let n=0;n<a;n++)r+=e(t.components[n]),n<a-1&&(r+=", ");let o=(0,n.execTyped)(i,t.type);return r+=`)${o?.array||""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
1 indexed`),t.name)?`${r} ${t.name}`:r};let n=r(90021),i=/^tuple(?<array>(\[(\d*)\])*)$/},93117:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=function(e){let t="",r=e.length;for(let i=0;i<r;i++){let a=e[i];t+=(0,n.formatAbiParameter)(a),i!==r-1&&(t+=", ")}return t};let n=r(95008)},96264:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=function(e){let t=(0,i.parseStructs)(e),r=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,n.isStructSignature)(o)||r.push((0,a.parseSignature)(o,t))}return r};let n=r(38833),i=r(74392),a=r(90196)},96485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,o.parseSignature)(e);else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if(!(0,i.isStructSignature)(n)){t=(0,o.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t};let n=r(90324),i=r(38833),a=r(74392),o=r(90196)},24506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,o.parseAbiParameter)(e,{modifiers:i.modifiers});else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if(!(0,i.isStructSignature)(n)){t=(0,o.parseAbiParameter)(n,{modifiers:i.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t};let n=r(43152),i=r(38833),a=r(74392),o=r(90196)},23067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=function(e){let t=[];if("string"==typeof e){let r=(0,o.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:i.modifiers}))}else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if((0,i.isStructSignature)(n))continue;let l=(0,o.splitParameters)(n),c=l.length;for(let e=0;e<c;e++)t.push((0,s.parseAbiParameter)(l[e],{modifiers:i.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t};let n=r(43152),i=r(38833),a=r(74392),o=r(90196),s=r(90196)},14327:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=void 0,t.getParameterCacheKey=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},38833:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=void 0,t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)},t.isEventSignature=function(e){return a.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(a,e)},t.isFunctionSignature=function(e){return o.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(o,e)},t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)},t.isConstructorSignature=function(e){return l.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(l,e)},t.isFallbackSignature=function(e){return c.test(e)},t.execFallbackSignature=function(e){return(0,n.execTyped)(c,e)},t.isReceiveSignature=function(e){return u.test(e)};let n=r(90021),i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,l=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,c=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,u=/^receive\(\) external payable$/;t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},74392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,l.isStructSignature)(r))continue;let i=(0,l.execStructSignature)(r);if(!i)throw new o.InvalidSignatureError({signature:r,type:"struct"});let a=i.properties.split(";"),s=[],u=a.length;for(let e=0;e<u;e++){let t=a[e].trim();if(!t)continue;let r=(0,c.parseAbiParameter)(t,{type:"struct"});s.push(r)}if(!s.length)throw new o.InvalidStructSignatureError({signature:r});t[i.name]=s}let d={},f=Object.entries(t),p=f.length;for(let e=0;e<p;e++){let[r,o]=f[e];d[r]=function e(t=[],r={},o=new Set){let l=[],d=t.length;for(let f=0;f<d;f++){let d=t[f];if(n.isTupleRegex.test(d.type))l.push(d);else{let t=(0,n.execTyped)(u,d.type);if(!t?.type)throw new a.InvalidAbiTypeParameterError({abiParameter:d});let{array:f,type:p}=t;if(p in r){if(o.has(p))throw new s.CircularReferenceError({type:p});l.push({...d,type:`tuple${f??""}`,components:e(r[p],r,new Set([...o,p]))})}else if((0,c.isSolidityType)(p))l.push(d);else throw new i.UnknownTypeError({type:p})}}return l}(o,t)}return d};let n=r(90021),i=r(90324),a=r(43152),o=r(93828),s=r(21186),l=r(38833),c=r(90196),u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},90196:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e,t={}){if((0,c.isFunctionSignature)(e))return u(e,t);if((0,c.isEventSignature)(e))return d(e,t);if((0,c.isErrorSignature)(e))return f(e,t);if((0,c.isConstructorSignature)(e))return p(e,t);if((0,c.isFallbackSignature)(e))return h(e);if((0,c.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new o.UnknownSignatureError({signature:e})},t.parseFunctionSignature=u,t.parseEventSignature=d,t.parseErrorSignature=f,t.parseConstructorSignature=p,t.parseFallbackSignature=h,t.parseAbiParameter=g,t.splitParameters=v,t.isSolidityType=w,t.isSolidityKeyword=x,t.isValidDataLocation=A;let n=r(90021),i=r(90324),a=r(43152),o=r(93828),s=r(86893),l=r(14327),c=r(38833);function u(e,t={}){let r=(0,c.execFunctionSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"function"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{modifiers:c.functionModifiers,structs:t,type:"function"}));let s=[];if(r.returns){let e=v(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(g(e[r],{modifiers:c.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:s}}function d(e,t={}){let r=(0,c.execEventSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"event"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{modifiers:c.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}function f(e,t={}){let r=(0,c.execErrorSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"error"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}function p(e,t={}){let r=(0,c.execConstructorSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"constructor"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}function h(e){let t=(0,c.execFallbackSignature)(e);if(!t)throw new o.InvalidSignatureError({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}let m=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,y=/^u?int$/;function g(e,t){let r;let o=(0,l.getParameterCacheKey)(e,t?.type,t?.structs);if(l.parameterCache.has(o))return l.parameterCache.get(o);let s=n.isTupleRegex.test(e),u=(0,n.execTyped)(s?b:m,e);if(!u)throw new a.InvalidParameterError({param:e});if(u.name&&x(u.name))throw new a.SolidityProtectedKeywordError({param:e,name:u.name});let d=u.name?{name:u.name}:{},f="indexed"===u.modifier?{indexed:!0}:{},p=t?.structs??{},h={};if(s){r="tuple";let e=v(u.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(g(e[r],{structs:p}));h={components:t}}else if(u.type in p)r="tuple",h={components:p[u.type]};else if(y.test(u.type))r=`${u.type}256`;else if("address payable"===u.type)r="address";else if(r=u.type,t?.type!=="struct"&&!w(r))throw new i.UnknownSolidityTypeError({type:r});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new a.InvalidModifierError({param:e,type:t?.type,modifier:u.modifier});if(c.functionModifiers.has(u.modifier)&&!A(r,!!u.array))throw new a.InvalidFunctionModifierError({param:e,type:t?.type,modifier:u.modifier})}let E={type:`${r}${u.array??""}`,...d,...f,...h};return l.parameterCache.set(o,E),E}function v(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],o=e.slice(a+1);switch(i){case",":return 0===n?v(o,[...t,r.trim()]):v(o,t,`${r}${i}`,n);case"(":return v(o,t,`${r}${i}`,n+1);case")":return v(o,t,`${r}${i}`,n-1);default:return v(o,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function w(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}let E=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function x(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||E.test(e)}function A(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}}
1,42126:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=function(e){return e}},90021:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=void 0,t.execTyped=function(e,t){let r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},68132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.2.3"},3571:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(5125);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof i&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},18758:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(3571);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var i=r(73467);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return i.narrow}});var a=r(98080);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return a.formatAbi}});var o=r(73250);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=r(63397);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var l=r(78828);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return l.formatAbiParameters}});var c=r(49073);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return c.parseAbi}});var u=r(81449);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return u.parseAbiItem}});var d=r(25235);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(77470);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var p=r(86996);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return p.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return p.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return p.UnknownSolidityTypeError}});var h=r(74396);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return h.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return h.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return h.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return h.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return h.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return h.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return h.InvalidAbiParameterError}});var m=r(3032);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return m.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return m.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return m.UnknownSignatureError}});var b=r(42275);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return b.InvalidParenthesisError}});var y=r(42432);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return y.CircularReferenceError}})},86996:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(3571);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=a;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=o},74396:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(3571);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class a extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=a;class o extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=o;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class l extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=l;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=c;class u extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=u},3032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(3571);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class a extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=a;class o extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=o},42275:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(3571);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},42432:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(3571);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},98080:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=function(e){let t=[],r=e.length;for(let i=0;i<r;i++){let r=e[i],a=(0,n.formatAbiItem)(r);t.push(a)}return t};let n=r(73250)},73250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"};let n=r(78828)},63397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";let a=t.components.length;for(let n=0;n<a;n++)r+=e(t.components[n]),n<a-1&&(r+=", ");let o=(0,n.execTyped)(i,t.type);return r+=`)${o?.array||""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
1 indexed`),t.name)?`${r} ${t.name}`:r};let n=r(19084),i=/^tuple(?<array>(\[(\d*)\])*)$/},78828:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=function(e){let t="",r=e.length;for(let i=0;i<r;i++){let a=e[i];t+=(0,n.formatAbiParameter)(a),i!==r-1&&(t+=", ")}return t};let n=r(63397)},49073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=function(e){let t=(0,i.parseStructs)(e),r=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,n.isStructSignature)(o)||r.push((0,a.parseSignature)(o,t))}return r};let n=r(79054),i=r(33390),a=r(24472)},81449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,o.parseSignature)(e);else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if(!(0,i.isStructSignature)(n)){t=(0,o.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t};let n=r(86996),i=r(79054),a=r(33390),o=r(24472)},25235:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,o.parseAbiParameter)(e,{modifiers:i.modifiers});else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if(!(0,i.isStructSignature)(n)){t=(0,o.parseAbiParameter)(n,{modifiers:i.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t};let n=r(74396),i=r(79054),a=r(33390),o=r(24472)},77470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=function(e){let t=[];if("string"==typeof e){let r=(0,o.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:i.modifiers}))}else{let r=(0,a.parseStructs)(e),n=e.length;for(let a=0;a<n;a++){let n=e[a];if((0,i.isStructSignature)(n))continue;let l=(0,o.splitParameters)(n),c=l.length;for(let e=0;e<c;e++)t.push((0,s.parseAbiParameter)(l[e],{modifiers:i.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t};let n=r(74396),i=r(79054),a=r(33390),o=r(24472),s=r(24472)},27407:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=void 0,t.getParameterCacheKey=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`},t.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]])},79054:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=void 0,t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)},t.isEventSignature=function(e){return a.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(a,e)},t.isFunctionSignature=function(e){return o.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(o,e)},t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)},t.isConstructorSignature=function(e){return l.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(l,e)},t.isFallbackSignature=function(e){return c.test(e)},t.execFallbackSignature=function(e){return(0,n.execTyped)(c,e)},t.isReceiveSignature=function(e){return u.test(e)};let n=r(19084),i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,l=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,c=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,u=/^receive\(\) external payable$/;t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},33390:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,l.isStructSignature)(r))continue;let i=(0,l.execStructSignature)(r);if(!i)throw new o.InvalidSignatureError({signature:r,type:"struct"});let a=i.properties.split(";"),s=[],u=a.length;for(let e=0;e<u;e++){let t=a[e].trim();if(!t)continue;let r=(0,c.parseAbiParameter)(t,{type:"struct"});s.push(r)}if(!s.length)throw new o.InvalidStructSignatureError({signature:r});t[i.name]=s}let d={},f=Object.entries(t),p=f.length;for(let e=0;e<p;e++){let[r,o]=f[e];d[r]=function e(t=[],r={},o=new Set){let l=[],d=t.length;for(let f=0;f<d;f++){let d=t[f];if(n.isTupleRegex.test(d.type))l.push(d);else{let t=(0,n.execTyped)(u,d.type);if(!t?.type)throw new a.InvalidAbiTypeParameterError({abiParameter:d});let{array:f,type:p}=t;if(p in r){if(o.has(p))throw new s.CircularReferenceError({type:p});l.push({...d,type:`tuple${f??""}`,components:e(r[p],r,new Set([...o,p]))})}else if((0,c.isSolidityType)(p))l.push(d);else throw new i.UnknownTypeError({type:p})}}return l}(o,t)}return d};let n=r(19084),i=r(86996),a=r(74396),o=r(3032),s=r(42432),l=r(79054),c=r(24472),u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},24472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e,t={}){if((0,c.isFunctionSignature)(e))return u(e,t);if((0,c.isEventSignature)(e))return d(e,t);if((0,c.isErrorSignature)(e))return f(e,t);if((0,c.isConstructorSignature)(e))return p(e,t);if((0,c.isFallbackSignature)(e))return h(e);if((0,c.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new o.UnknownSignatureError({signature:e})},t.parseFunctionSignature=u,t.parseEventSignature=d,t.parseErrorSignature=f,t.parseConstructorSignature=p,t.parseFallbackSignature=h,t.parseAbiParameter=g,t.splitParameters=v,t.isSolidityType=w,t.isSolidityKeyword=x,t.isValidDataLocation=A;let n=r(19084),i=r(86996),a=r(74396),o=r(3032),s=r(42275),l=r(27407),c=r(79054);function u(e,t={}){let r=(0,c.execFunctionSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"function"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{modifiers:c.functionModifiers,structs:t,type:"function"}));let s=[];if(r.returns){let e=v(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(g(e[r],{modifiers:c.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:s}}function d(e,t={}){let r=(0,c.execEventSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"event"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{modifiers:c.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}function f(e,t={}){let r=(0,c.execErrorSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"error"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}function p(e,t={}){let r=(0,c.execConstructorSignature)(e);if(!r)throw new o.InvalidSignatureError({signature:e,type:"constructor"});let n=v(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(g(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}function h(e){let t=(0,c.execFallbackSignature)(e);if(!t)throw new o.InvalidSignatureError({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}let m=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,y=/^u?int$/;function g(e,t){let r;let o=(0,l.getParameterCacheKey)(e,t?.type,t?.structs);if(l.parameterCache.has(o))return l.parameterCache.get(o);let s=n.isTupleRegex.test(e),u=(0,n.execTyped)(s?b:m,e);if(!u)throw new a.InvalidParameterError({param:e});if(u.name&&x(u.name))throw new a.SolidityProtectedKeywordError({param:e,name:u.name});let d=u.name?{name:u.name}:{},f="indexed"===u.modifier?{indexed:!0}:{},p=t?.structs??{},h={};if(s){r="tuple";let e=v(u.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(g(e[r],{structs:p}));h={components:t}}else if(u.type in p)r="tuple",h={components:p[u.type]};else if(y.test(u.type))r=`${u.type}256`;else if("address payable"===u.type)r="address";else if(r=u.type,t?.type!=="struct"&&!w(r))throw new i.UnknownSolidityTypeError({type:r});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new a.InvalidModifierError({param:e,type:t?.type,modifier:u.modifier});if(c.functionModifiers.has(u.modifier)&&!A(r,!!u.array))throw new a.InvalidFunctionModifierError({param:e,type:t?.type,modifier:u.modifier})}let E={type:`${r}${u.array??""}`,...d,...f,...h};return l.parameterCache.set(o,E),E}function v(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],o=e.slice(a+1);switch(i){case",":return 0===n?v(o,[...t,r.trim()]):v(o,t,`${r}${i}`,n);case"(":return v(o,t,`${r}${i}`,n+1);case")":return v(o,t,`${r}${i}`,n-1);default:return v(o,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}function w(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}let E=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function x(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||E.test(e)}function A(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}},73467:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=function(e){return e}},19084:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=void 0,t.execTyped=function(e,t){let r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},5125:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.2.4"},97774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return[s(t),r]}return e})(),{bytecode:n}=r;if(t.inputs?.length===0)return;let i=r.data.replace(n,"0x");return a.decode(t.inputs,i)},t.encode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return[s(t),r]}return e})(),{bytecode:n,args:i}=r;return o.concat(n,t.inputs?.length&&i?.length?a.encode(t.inputs,i):"0x")},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e){return i.from(e)},t.fromAbi=s;let n=r(18758),i=r(97234),a=r(12600),o=r(81522);function s(e){let t=e.find(e=>"constructor"===e.type);if(!t)throw new i.NotFoundError({name:"constructor"});return t}},55003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=t.SelectorTopicMismatchError=t.TopicsMismatchError=t.DataMismatchError=t.InputNotFoundError=t.ArgsMismatchError=void 0,t.assertArgs=function(e,t,r){if(!t||!r)throw new b({abiEvent:e,expected:t,given:r});function n(e,t,r){return"address"===e.type?o.isEqual(t,r):"string"===e.type?c.keccak256(s.fromString(t))===r:"bytes"===e.type?c.keccak256(t)===r:t===r}if(Array.isArray(t)&&Array.isArray(r))for(let[i,a]of r.entries()){if(null==a)continue;let o=e.inputs[i];if(!o)throw new y({abiEvent:e,name:`${i}`});let s=Array.isArray(a)?a:[a],l=!1;for(let e of s)n(o,e,t[i])&&(l=!0);if(!l)throw new b({abiEvent:e,expected:t,given:r})}if("object"==typeof t&&!Array.isArray(t)&&"object"==typeof r&&!Array.isArray(r))for(let[i,a]of Object.entries(r)){if(null==a)continue;let o=e.inputs.find(e=>e.name===i);if(!o)throw new y({abiEvent:e,name:i});let s=Array.isArray(a)?a:[a],l=!1;for(let e of s)n(o,e,t[i])&&(l=!0);if(!l)throw new b({abiEvent:e,expected:t,given:r})}},t.decode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[h(t,r),n]}return e})(),{data:n,topics:i}=r,[o,...s]=i,l=m(t);if(o!==l)throw new w({abiEvent:t,actual:o,expected:l});let{inputs:c}=t,f=c?.every(e=>!("name"in e&&e.name)),p=f?[]:{},b=c.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<b.length;e++){let r=b[e],n=s[e];if(!n)throw new v({abiEvent:t,param:r});p[f?e:r.name||e]="string"===r.type||"bytes"===r.type||"tuple"===r.type||r.type.match(/^(.*)\[(\d+)?\]$/)?n:(a.decode([r],n)||[])[0]}let y=c.filter(e=>!("indexed"in e&&e.indexed));if(y.length>0){if(n&&"0x"!==n)try{let e=a.decode(y,n);if(e){if(f)p=[...p,...e];else for(let t=0;t<y.length;t++){let r=c.indexOf(y[t]);p[y[t].name||r]=e[t]}}}catch(e){if(e instanceof a.DataSizeTooSmallError||e instanceof d.PositionOutOfBoundsError)throw new g({abiEvent:t,data:n,parameters:y,size:u.size(n)});throw e}else throw new g({abiEvent:t,data:"0x",parameters:y,size:0})}return Object.values(p).length>0?p:void 0},t.encode=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[h(t,r),n]}let[t,r]=e;return[t,r]})(),n=[];if(r&&t.inputs){let e=t.inputs.filter(e=>"indexed"in e&&e.indexed),i=Array.isArray(r)?r:Object.values(r).length>0?e?.map((e,t)=>r[e.name??t])??[]:[];if(i.length>0){let t=(e,t)=>{if("string"===e.type)return c.keccak256(u.fromString(t));if("bytes"===e.type)return c.keccak256(t);if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new E(e.type);return a.encode([e],[t])};n=e?.map((e,r)=>Array.isArray(i[r])?i[r].map((n,a)=>t(e,i[r][a])):void 0!==i[r]&&null!==i[r]?t(e,i[r]):null)??[]}}return{topics:[t.hash?t.hash:m(t),...n]}},t.format=p,t.from=function(e,t={}){return i.from(e,t)},t.fromAbi=h,t.getSelector=m;let n=r(18758),i=r(97234),a=r(12600),o=r(51392),s=r(16827),l=r(73463),c=r(39304),u=r(81522),d=r(6597),f=r(99064);function p(e){return n.formatAbiItem(e)}function h(e,t,r){let n=i.fromAbi(e,t,r);if("event"!==n.type)throw new i.NotFoundError({name:t,type:"event"});return n}function m(e){return i.getSignatureHash(e)}class b extends l.BaseError{constructor({abiEvent:e,expected:t,given:r}){super("Given arguments do not match the expected arguments.",{metaMessages:[`Event: ${p(e)}`,`Expected Arguments: ${t?"":"None"}`,t?(0,f.prettyPrint)(t):void 0,`Given Arguments: ${r?"":"None"}`,r?(0,f.prettyPrint)(r):void 0]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.ArgsMismatchError"})}}t.ArgsMismatchError=b;class y extends l.BaseError{constructor({abiEvent:e,name:t}){super(`Parameter "${t}" not found on \`${p(e)}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.InputNotFoundError"})}}t.InputNotFoundError=y;class g extends l.BaseError{constructor({abiEvent:e,data:t,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Non-indexed Parameters: (${a.format(r)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.DataMismatchError"}),Object.defineProperty(this,"abiEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parameters",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiEvent=e,this.data=t,this.parameters=r,this.size=n}}t.DataMismatchError=g;class v extends l.BaseError{constructor({abiEvent:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} for "${p(e)}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.TopicsMismatchError"}),Object.defineProperty(this,"abiEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiEvent=e}}t.TopicsMismatchError=v;class w extends l.BaseError{constructor({abiEvent:e,actual:t,expected:r}){super(`topics[0]="${t}" does not match the expected topics[0]="${r}".`,{metaMessages:[`Event: ${p(e)}`,`Selector: ${r}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.SelectorTopicMismatchError"})}}t.SelectorTopicMismatchError=w;class E extends l.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEvent.FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=E},63843:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.decodeData=function(...e){let[t,r]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[s(t,r),n]}return e})(),{overloads:n}=t;if(4>o.size(r))throw new i.InvalidSelectorSizeError({data:r});if(t.inputs?.length===0)return;let l=n?s([t,...n],r):t;if(!(4>=o.size(r)))return a.decode(l.inputs,o.slice(r,4))},t.decodeResult=function(...e){let[t,r,n={}]=(()=>{if(Array.isArray(e[0])){let[t,r,n,i]=e;return[s(t,r),n,i]}return e})(),i=a.decode(t.outputs,r,n);if(!i||0!==Object.keys(i).length)return i&&1===Object.keys(i).length?Array.isArray(i)?i[0]:Object.values(i)[0]:i},t.encodeData=function(...e){let[t,r=[]]=(()=>{if(Array.isArray(e[0])){let[t,r,n]=e;return[s(t,r,{args:n}),n]}let[t,r]=e;return[t,r]})(),{overloads:n}=t,i=n?s([t,...n],t.name,{args:r}):t,c=l(i),u=r.length>0?a.encode(i.inputs,r):void 0;return u?o.concat(c,u):c},t.encodeResult=function(...e){let[t,r,n={}]=(()=>{if(Array.isArray(e[0])){let[t,r,n,i]=e;return[s(t,r),n,i]}return e})(),{as:i="Array"}=n,o=1===t.outputs.length?[r]:Array.isArray(r)?r:"Object"===i?Object.values(r):[r];return a.encode(t.outputs,o)},t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){return i.from(e,t)},t.fromAbi=s,t.getSelector=l;let n=r(18758),i=r(97234),a=r(12600),o=r(81522);function s(e,t,r){let n=i.fromAbi(e,t,r);if("function"!==n.type)throw new i.NotFoundError({name:t,type:"function"});return n}function l(e){return i.getSelector(e)}},97234:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSelectorSizeError=t.NotFoundError=t.AmbiguityError=void 0,t.format=function(e){return n.formatAbiItem(e)},t.from=function(e,t={}){let{prepare:r=!0}=t,i=Array.isArray(e)||"string"==typeof e?n.parseAbiItem(e):e;return{...i,...r?{hash:d(i)}:{}}},t.fromAbi=l,t.getSelector=c,t.getSignature=u,t.getSignatureHash=d;let n=r(18758),i=r(73463),a=r(39304),o=r(81522),s=r(41411);function l(e,t,r){let n;let{args:i=[],prepare:a=!0}=r??{},l=o.validate(t,{strict:!1}),u=e.filter(e=>l?"function"===e.type||"error"===e.type?c(e)===o.slice(t,0,4):"event"===e.type&&d(e)===t:"name"in e&&e.name===t);if(0===u.length)throw new p({name:t});if(1===u.length)return{...u[0],...a?{hash:d(u[0])}:{}};for(let e of u)if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...a?{hash:d(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&s.isArgOfType(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=s.getAmbiguousTypes(e.inputs,n.inputs,i);if(t)throw new f({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}let h=(()=>{if(n)return n;let[e,...t]=u;return{...e,overloads:t}})();if(!h)throw new p({name:t});return{...h,...a?{hash:d(h)}:{}}}function c(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return l(t,r)}return e[0]})();return o.slice(d(t),0,4)}function u(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return l(t,r)}return e[0]})(),r="string"==typeof t?t:n.formatAbiItem(t);return s.normalizeSignature(r)}function d(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return l(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:a.keccak256(o.fromString(u(t)))}class f extends i.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${s.normalizeSignature(n.formatAbiItem(e.abiItem))}\`, and`,`\`${t.type}\` in \`${s.normalizeSignature(n.formatAbiItem(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}t.AmbiguityError=f;class p extends i.BaseError{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}t.NotFoundError=p;class h extends i.BaseError{constructor({data:e}
1){super(`Selector size is invalid. Expected 4 bytes. Received ${o.size(e)} bytes ("${e}").`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.InvalidSelectorSizeError"})}}t.InvalidSelectorSizeError=h},12600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTypeError=t.InvalidArrayError=t.LengthMismatchError=t.BytesSizeMismatchError=t.ArrayLengthMismatchError=t.ZeroDataError=t.DataSizeTooSmallError=void 0,t.decode=function(e,t,r={}){let{as:n="Array",checksumAddress:i=!1}=r,o="string"==typeof t?a.fromHex(t):t,u=c.create(o);if(0===a.size(o)&&e.length>0)throw new p;if(a.size(o)&&32>a.size(o))throw new f({data:"string"==typeof t?t:s.fromBytes(t),parameters:e,size:a.size(o)});let d=0,h="Array"===n?[]:{};for(let t=0;t<e.length;++t){let r=e[t];d<o.length&&u.setPosition(d);let[a,s]=l.decodeParameter(u,r,{checksumAddress:i,staticPosition:0});d+=s,"Array"===n?h.push(a):h[r.name??t]=a}return h},t.encode=function(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new b({expectedLength:e.length,givenLength:t.length});let i=l.prepareParameters({checksumAddress:n,parameters:e,values:t}),a=l.encode(i);return 0===a.length?"0x":a},t.encodePacked=d,t.format=function(e){return n.formatAbiParameters(e)},t.from=function(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?n.parseAbiParameters(e):e};let n=r(18758),i=r(51392),a=r(16827),o=r(73463),s=r(81522),l=r(95906),c=r(6597),u=r(62241);function d(e,t){if(e.length!==t.length)throw new b({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n];r.push(d.encode(i,a))}return s.concat(...r)}(d||(t.encodePacked=d={})).encode=function e(t,r,n=!1){if("address"===t)return i.assert(r),s.padLeft(r.toLowerCase(),n?32:0);if("string"===t)return s.fromString(r);if("bytes"===t)return r;if("bool"===t)return s.padLeft(s.fromBoolean(r),n?32:1);let a=t.match(u.integerRegex);if(a){let[e,t,i="256"]=a,o=Number.parseInt(i,10)/8;return s.fromNumber(r,{size:n?32:o,signed:"int"===t})}let o=t.match(u.bytesRegex);if(o){let[e,t]=o;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new m({expectedSize:Number.parseInt(t,10),value:r});return s.padRight(r,n?32:0)}let l=t.match(u.arrayRegex);if(l&&Array.isArray(r)){let[t,n]=l,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":s.concat(...i)}throw new g(t)};class f extends o.BaseError{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${n.formatAbiParameters(t)})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}t.DataSizeTooSmallError=f;class p extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}t.ZeroDataError=p;class h extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}t.ArrayLengthMismatchError=h;class m extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${s.size(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}t.BytesSizeMismatchError=m;class b extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 2Expected length (parameters): ${e} 3Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}t.LengthMismatchError=b;class y extends o.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}t.InvalidArrayError=y;class g extends o.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}t.InvalidTypeError=g},62963:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStorageKeySizeError=void 0,t.fromTupleList=function(e){let t=[];for(let r=0;r<e.length;r++){let[i,s]=e[r];i&&n.assert(i,{strict:!1}),t.push({address:i,storageKeys:s.map(e=>a.validate(e)?e:o.trimLeft(e))})}return t},t.toTupleList=function(e){if(!e||0===e.length)return[];let t=[];for(let{address:r,storageKeys:i}of e){for(let e=0;e<i.length;e++)if(32!==o.size(i[e]))throw new s({storageKey:i[e]});r&&n.assert(r,{strict:!1}),t.push([r,i])}return t};let n=r(51392),i=r(73463),a=r(39304),o=r(81522);class s extends i.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${o.size(e)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=s},51392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChecksumError=t.InvalidInputError=t.InvalidAddressError=void 0,t.assert=c,t.checksum=u,t.from=d,t.fromPublicKey=function(e,t={}){let r=o.keccak256(`0x${s.toHex(e).slice(4)}`).substring(26);return d(`0x${r}`,t)},t.isEqual=function(e,t){return c(e,{strict:!1}),c(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()},t.validate=function(e,t={}){let{strict:r=!0}=t??{};try{return c(e,{strict:r}),!0}catch{return!1}};let n=r(16827),i=r(23109),a=r(73463),o=r(39304),s=r(11102),l=/^0x[a-fA-F0-9]{40}$/;function c(e,t={}){let{strict:r=!0}=t;if(!l.test(e))throw new f({address:e,cause:new p});if(r){if(e.toLowerCase()===e)return;if(u(e)!==e)throw new f({address:e,cause:new h})}}function u(e){if(i.checksum.has(e))return i.checksum.get(e);c(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=o.keccak256(n.fromString(t),{as:"Bytes"}),a=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let s=`0x${a.join("")}`;return i.checksum.set(e,s),s}function d(e,t={}){let{checksum:r=!1}=t;return(c(e),r)?u(e):e}class f extends a.BaseError{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}t.InvalidAddressError=f;class p extends a.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}t.InvalidInputError=p;class h extends a.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}t.InvalidChecksumError=h},47833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=s,t.fromRpc=l,t.fromRpcList=function(e){return e.map(l)},t.fromTuple=c,t.fromTupleList=function(e){let t=[];for(let r of e)t.push(c(r));return t},t.getSignPayload=function(e){return u(e,{presign:!0})},t.hash=u,t.toRpc=d,t.toRpcList=function(e){return e.map(d)},t.toTuple=f,t.toTupleList=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(f(r));return t};let n=r(39304),i=r(81522),a=r(79077),o=r(9527);function s(e,t={}){return"string"==typeof e.chainId?l(e):{...e,...t.signature}}function l(e){let{address:t,chainId:r,nonce:n}=e,i=o.extract(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...i}}function c(e){let[t,r,n,i,a,l]=e,c={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return i&&a&&l&&(c={...c,...o.fromTuple([i,a,l])}),s(c)}function u(e,t={}){let{presign:r}=t;return n.keccak256(i.concat("0x05",a.fromHex(f(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function d(e){let{address:t,chainId:r,nonce:n,...a}=e;return{address:t,chainId:i.fromNumber(r),nonce:i.fromNumber(n),...o.toRpc(a)}}function f(e){let{address:t,chainId:r,nonce:n}=e,a=o.extract(e);return[r?i.fromNumber(r):"0x",t,n?i.fromNumber(n):"0x",...a?o.toTuple(a):[]]}},16611:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.fromBytes=c,t.fromHex=function(e,t={}){return c(n.fromHex(e),t)},t.fromString=function(e,t={}){return c(n.fromString(e),t)},t.toBytes=u,t.toHex=function(e){return i.fromBytes(u(e))},t.toString=function(e){return n.toString(u(e))};let n=r(16827),i=r(81522),a=new TextEncoder,o=new TextDecoder,s=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)])),l={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function c(e,t={}){let{pad:r=!0,url:n=!1}=t,i=new Uint8Array(4*Math.ceil(e.length/3));for(let t=0,r=0;r<e.length;t+=4,r+=3){let n=(e[r]<<16)+(e[r+1]<<8)+(0|e[r+2]);i[t]=s[n>>18],i[t+1]=s[n>>12&63],i[t+2]=s[n>>6&63],i[t+3]=s[63&n]}let a=e.length%3,l=4*Math.floor(e.length/3)+(a&&a+1),c=o.decode(new Uint8Array(i.buffer,0,l));return r&&1===a&&(c+="=="),r&&2===a&&(c+="="),n&&(c=c.replaceAll("+","-").replaceAll("/","_")),c}function u(e){let t=e.replace(/=+$/,""),r=t.length,n=new Uint8Array(r+3);a.encodeInto(t+"===",n);for(let e=0,r=0;e<t.length;e+=4,r+=3){let t=(l[n[e]]<<18)+(l[n[e+1]]<<12)+(l[n[e+2]]<<6)+l[n[e+3]];n[r]=t>>16,n[r+1]=t>>8&255,n[r+2]=255&t}return new Uint8Array(n.buffer,0,(r>>2)*3+(r%4&&r%4-1))}},40636:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e.baseFeePerGas&&{baseFeePerGas:BigInt(e.baseFeePerGas)},...e.blobBaseFee&&{blobBaseFee:BigInt(e.blobBaseFee)},...e.feeRecipient&&{feeRecipient:e.feeRecipient},...e.gasLimit&&{gasLimit:BigInt(e.gasLimit)},...e.number&&{number:BigInt(e.number)},...e.prevRandao&&{prevRandao:BigInt(e.prevRandao)},...e.time&&{time:BigInt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i.fromRpc)}}},t.toRpc=function(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.fromNumber(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.fromNumber(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.fromNumber(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.fromNumber(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.fromNumber(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.fromNumber(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i.toRpc)}}};let n=r(81522),i=r(15706)},16827:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidBytesTypeError=t.InvalidBytesBooleanError=void 0,t.assert=d,t.concat=function(...e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r},t.from=function(e){return e instanceof Uint8Array?e:"string"==typeof e?p(e):f(e)},t.fromArray=f,t.fromBoolean=function(e,t={}){let{size:r}=t,n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof r)?(o.assertSize(n,r),h(n,r)):n},t.fromHex=p,t.fromNumber=function(e,t){return p(a.fromNumber(e,t))},t.fromString=function(e,t={}){let{size:r}=t,n=u.encode(e);return"number"==typeof r?(o.assertSize(n,r),m(n,r)):n},t.isEqual=function(e,t){return(0,n.equalBytes)(e,t)},t.padLeft=h,t.padRight=m,t.random=function(e){return crypto.getRandomValues(new Uint8Array(e))},t.size=function(e){return e.length},t.slice=function(e,t,r,n={}){let{strict:i}=n;o.assertStartOffset(e,t);let a=e.slice(t,r);return i&&o.assertEndOffset(a,t,r),a},t.toBigInt=function(e,t={}){let{size:r}=t;void 0!==r&&o.assertSize(e,r);let n=a.fromBytes(e,t);return a.toBigInt(n,t)},t.toBoolean=function(e,t={}){let{size:r}=t,n=e;if(void 0!==r&&(o.assertSize(n,r),n=b(n)),n.length>1||n[0]>1)throw new g(n);return!!n[0]},t.toHex=function(e,t={}){return a.fromBytes(e,t)},t.toNumber=function(e,t={}){let{size:r}=t;void 0!==r&&o.assertSize(e,r);let n=a.fromBytes(e,t);return a.toNumber(n,t)},t.toString=function(e,t={}){let{size:r}=t,n=e;return void 0!==r&&(o.assertSize(n,r),n=y(n)),c.decode(n)},t.trimLeft=b,t.trimRight=y,t.validate=function(e){try{return d(e),!0}catch{return!1}};let n=r(70090),i=r(73463),a=r(81522),o=r(98910),s=r(24319),l=r(43142),c=new TextDecoder,u=new TextEncoder;function d(e){if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new v(e)}function f(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function p(e,t={}){let{size:r}=t,n=e;r&&(s.assertSize(e,r),n=a.padRight(e,r));let l=n.slice(2);l.length%2&&(l=`0${l}`);let c=l.length/2,u=new Uint8Array(c);for(let e=0,t=0;e<c;
3e++){let r=o.charCodeToBase16(l.charCodeAt(t++)),n=o.charCodeToBase16(l.charCodeAt(t++));if(void 0===r||void 0===n)throw new i.BaseError(`Invalid byte sequence ("${l[t-2]}${l[t-1]}" in "${l}").`);u[e]=r<<4|n}return u}function h(e,t){return o.pad(e,{dir:"left",size:t})}function m(e,t){return o.pad(e,{dir:"right",size:t})}function b(e){return o.trim(e,{dir:"left"})}function y(e){return o.trim(e,{dir:"right"})}class g extends i.BaseError{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=g;class v extends i.BaseError{constructor(e){super(`Value \`${"object"==typeof e?l.stringify(e):e}\` of type \`${typeof e}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}t.InvalidBytesTypeError=v;class w extends i.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}t.SizeOverflowError=w;class E extends i.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=E;class x extends i.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=x},23109:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checksum=void 0,t.clear=function(){for(let e of Object.values(n))e.clear()};let n={checksum:new(r(52612)).LruMap(8192)};t.checksum=n.checksum},99723:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ByteStringTooLargeError=t.ObjectTooLargeError=t.ArrayTooLargeError=t.StringTooLargeError=t.NumberTooLargeError=t.UnexpectedTokenError=t.UnsupportedBigIntError=t.InvalidSimpleValueError=t.InvalidIndefiniteLengthChunkError=t.UnsupportedTagError=t.Unsupported64BitIntegerError=t.InvalidAdditionalInfoError=t.InvalidMajorTypeError=void 0,t.encode=function(e,t={}){let{as:r="Hex"}=t,n=E(e),i=s.create(new Uint8Array(n.length));return(n.encode(i),"Hex"===r)?o.fromBytes(i.bytes):i.bytes},t.decode=function(e){let t=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new o.InvalidLengthError(e);return i.fromHex(e)}return e})(),r=s.create(t);return x(r)};let i=r(16827),a=r(73463),o=r(81522),s=r(6597);class l extends a.BaseError{constructor({majorType:e}){super(`Invalid CBOR major type: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidMajorTypeError"})}}t.InvalidMajorTypeError=l;class c extends a.BaseError{constructor({additionalInfo:e}){super(`Invalid CBOR additional info: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidAdditionalInfoError"})}}t.InvalidAdditionalInfoError=c;class u extends a.BaseError{constructor(){super("64-bit integers are not supported in CBOR decoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.Unsupported64BitIntegerError"})}}t.Unsupported64BitIntegerError=u;class d extends a.BaseError{constructor({tag:e}){super(`CBOR tagged data (tag ${e}) is not yet supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedTagError"})}}t.UnsupportedTagError=d;class f extends a.BaseError{constructor({type:e}){super(`Invalid chunk type in indefinite-length ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidIndefiniteLengthChunkError"})}}t.InvalidIndefiniteLengthChunkError=f;class p extends a.BaseError{constructor({value:e}){super(`Invalid CBOR simple value: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidSimpleValueError"})}}t.InvalidSimpleValueError=p;class h extends a.BaseError{constructor(){super("BigInt values are not supported in CBOR encoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedBigIntError"})}}t.UnsupportedBigIntError=h;class m extends a.BaseError{constructor({token:e}){super(`Unexpected token: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnexpectedTokenError"})}}t.UnexpectedTokenError=m;class b extends a.BaseError{constructor({number:e}){super(`Number exceeds maximum safe integer (${Number.MAX_SAFE_INTEGER}): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.NumberTooLargeError"})}}t.NumberTooLargeError=b;class y extends a.BaseError{constructor({size:e}){super(`String length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.StringTooLargeError"})}}t.StringTooLargeError=y;class g extends a.BaseError{constructor({size:e}){super(`Array length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ArrayTooLargeError"})}}t.ArrayTooLargeError=g;class v extends a.BaseError{constructor({size:e}){super(`Object size exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ObjectTooLargeError"})}}t.ObjectTooLargeError=v;class w extends a.BaseError{constructor({size:e}){super(`Byte string length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ByteStringTooLargeError"})}}function E(e){if(void 0===e)return{length:1,encode:e=>e.pushUint8(247)};if(null===e)return{length:1,encode:e=>e.pushUint8(246)};if("boolean"==typeof e)return{length:1,encode:t=>t.pushUint8(e?245:244)};if("number"==typeof e)return E.number(e);if("bigint"==typeof e)throw new h;if("string"==typeof e)return E.string(e);if(Array.isArray(e))return E.array(e);
3if(e instanceof Uint8Array)return E.byteString(e);if(e instanceof ArrayBuffer)return E.byteString(new Uint8Array(e));if(ArrayBuffer.isView(e))return E.byteString(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));if(e instanceof Map)return E.map(e);if("object"==typeof e)return E.object(e);throw new m({token:String(e)})}function x(e){let t=e.readUint8(),r=t>>5,n=31&t;switch(r){case 0:return x.readUnsignedInteger(e,n);case 1:return x.readNegativeInteger(e,n);case 2:return x.readByteString(e,n);case 3:return x.readTextString(e,n);case 4:return x.readArray(e,n);case 5:return x.readMap(e,n);case 6:throw new d({tag:n});case 7:return x.readSimpleOrFloat(e,n);default:throw new l({majorType:r})}}t.ByteStringTooLargeError=w,(n=E||(E={})).number=function(e){if(!Number.isSafeInteger(e)){let t=Math.fround(e);return Number.isNaN(e)||e===t?{length:5,encode(t){t.pushUint8(250),t.dataView.setFloat32(t.position,e,!1),t.position+=4}}:{length:9,encode(t){t.pushUint8(251),t.dataView.setFloat64(t.position,e,!1),t.position+=8}}}if(e>=0){if(e<=23)return{length:1,encode:t=>t.pushUint8(e)};if(e<=255)return{length:2,encode:t=>{t.pushUint8(24),t.pushUint8(e)}};if(e<=65535)return{length:3,encode:t=>{t.pushUint8(25),t.pushUint16(e)}};if(e<=4294967295)return{length:5,encode:t=>{t.pushUint8(26),t.pushUint32(e)}};throw new b({number:e.toString(10)})}let t=-1-e;if(e>=-24)return{length:1,encode:e=>e.pushUint8(32+t)};if(t<=255)return{length:2,encode:e=>{e.pushUint8(56),e.pushUint8(t)}};if(t<=65535)return{length:3,encode:e=>{e.pushUint8(57),e.pushUint16(t)}};if(t<=4294967295)return{length:5,encode:e=>{e.pushUint8(58),e.pushUint32(t)}};throw new b({number:e.toString(10)})},n.string=function(e){let t=i.fromString(e),r=t.length;if(r<=23)return{length:1+r,encode(e){e.pushUint8(96+r),r>0&&e.pushBytes(t)}};if(r<=255)return{length:2+r,encode(e){e.pushUint8(120),e.pushUint8(r),e.pushBytes(t)}};if(r<=65535)return{length:3+r,encode(e){e.pushUint8(121),e.pushUint16(r),e.pushBytes(t)}};if(r<=4294967295)return{length:5+r,encode(e){e.pushUint8(122),e.pushUint32(r),e.pushBytes(t)}};throw new y({size:r})},n.array=function(e){let t=e.map(e=>n(e)),r=t.reduce((e,t)=>e+t.length,0),i=e.length;if(i<=23)return{length:1+r,encode(e){for(let r of(e.pushUint8(128+i),t))r.encode(e)}};if(i<=255)return{length:2+r,encode(e){for(let r of(e.pushUint8(152),e.pushUint8(i),t))r.encode(e)}};if(i<=65535)return{length:3+r,encode(e){for(let r of(e.pushUint8(153),e.pushUint16(i),t))r.encode(e)}};if(i<=4294967295)return{length:5+r,encode(e){for(let r of(e.pushUint8(154),e.pushUint32(i),t))r.encode(e)}};throw new g({size:i})},n.byteString=function(e){let t=e.byteLength;if(t<=23)return{length:1+t,encode(r){r.pushUint8(64+t),r.pushBytes(e)}};if(t<=255)return{length:2+t,encode(r){r.pushUint8(88),r.pushUint8(t),r.pushBytes(e)}};if(t<=65535)return{length:3+t,encode(r){r.pushUint8(89),r.pushUint16(t),r.pushBytes(e)}};if(t<=4294967295)return{length:5+t,encode(r){r.pushUint8(90),r.pushUint32(t),r.pushBytes(e)}};throw new w({size:t})},n.object=function(e){let t=Object.keys(e),r=t.map(t=>({key:n(t),value:n(e[t])})),i=r.reduce((e,t)=>e+t.key.length+t.value.length,0),a=t.length;if(a<=23)return{length:1+i,encode(e){for(let t of(e.pushUint8(160+a),r))t.key.encode(e),t.value.encode(e)}};if(a<=255)return{length:2+i,encode(e){for(let t of(e.pushUint8(184),e.pushUint8(a),r))t.key.encode(e),t.value.encode(e)}};if(a<=65535)return{length:3+i,encode(e){for(let t of(e.pushUint8(185),e.pushUint16(a),r))t.key.encode(e),t.value.encode(e)}};if(a<=4294967295)return{length:5+i,encode(e){for(let t of(e.pushUint8(186),e.pushUint32(a),r))t.key.encode(e),t.value.encode(e)}};throw new v({size:a})},n.map=function(e){let t=[];for(let[r,i]of e)t.push({key:n(r),value:n(i)});let r=t.reduce((e,t)=>e+t.key.length+t.value.length,0),i=e.size;if(i<=23)return{length:1+r,encode(e){for(let r of(e.pushUint8(160+i),t))r.key.encode(e),r.value.encode(e)}};if(i<=255)return{length:2+r,encode(e){for(let r of(e.pushUint8(184),e.pushUint8(i),t))r.key.encode(e),r.value.encode(e)}};if(i<=65535)return{length:3+r,encode(e){for(let r of(e.pushUint8(185),e.pushUint16(i),t))r.key.encode(e),r.value.encode(e)}};if(i<=4294967295)return{length:5+r,encode(e){for(let r of(e.pushUint8(186),e.pushUint32(i),t))r.key.encode(e),r.value.encode(e)}};throw new v({size:i})},function(e){function t(e,t){if(t<24)return t;if(24===t)return e.readUint8();if(25===t)return e.readUint16();if(26===t)return e.readUint32();if(27===t)throw new u;throw new c({additionalInfo:t})}e.readUnsignedInteger=function(e,r){return t(e,r)},e.readNegativeInteger=function(e,r){return -1-t(e,r)},e.readByteString=function(r,n){if(31===n){let t=[],n=0;for(;;){if(255===r.inspectUint8()){r.readUint8();break}let i=e(r);if(!(i instanceof Uint8Array))throw new f({type:"byte string"});t.push(i),n+=i.length}let i=new Uint8Array(n),a=0;for(let e of t)i.set(e,a),a+=e.length;return i}let i=t(r,n);return r.readBytes(i)},e.readTextString=function(r,n){if(31===n){let t=[];for(;;){if(255===r.inspectUint8()){r.readUint8();break}let n=e(r);
3if("string"!=typeof n)throw new f({type:"text string"});t.push(n)}return t.join("")}let a=t(r,n),o=r.readBytes(a);return i.toString(o)},e.readArray=function(r,n){if(31===n){let t=[];for(;;){if(255===r.inspectUint8()){r.readUint8();break}t.push(e(r))}return t}let i=t(r,n),a=[];for(let t=0;t<i;t++)a.push(e(r));return a},e.readMap=function(r,n){if(31===n){let t={};for(;;){if(255===r.inspectUint8()){r.readUint8();break}let n=e(r),i="string"==typeof n?n:String(n),a=e(r);t[i]=a}return t}let i=t(r,n),a={};for(let t=0;t<i;t++){let t=e(r),n="string"==typeof t?t:String(t),i=e(r);a[n]=i}return a},e.readSimpleOrFloat=function(e,t){if(20===t)return!1;if(21===t)return!0;if(22===t)return null;if(23!==t){if(25===t)return function(e){let t=e>>15&1,r=e>>10&31,n=1023&e;if(0===r){if(0===n)return t?-0:0;let e=n/1024*6103515625e-14;return t?-e:e}if(31===r)return 0===n?t?-1/0:1/0:NaN;let i=2**(r-15)*(1+n/1024);return t?-i:i}(e.readUint16());if(26===t){let t=e.dataView.getFloat32(e.position,!1);return e.position+=4,t}if(27===t){let t=e.dataView.getFloat64(e.position,!1);return e.position+=8,t}if(24===t){let t=e.readUint8();if(t<32)throw new p({value:t});return}throw new c({additionalInfo:t})}}}(x||(x={}))},23651:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=function(e){return e.salt?c(e):l(e)},t.fromCreate=l,t.fromCreate2=c;let n=r(51392),i=r(16827),a=r(39304),o=r(81522),s=r(79077);function l(e){let t=i.fromHex(n.from(e.from)),r=i.fromNumber(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),n.from(`0x${a.keccak256(s.fromBytes([t,r],{as:"Hex"})).slice(26)}`)}function c(e){let t=i.fromHex(n.from(e.from)),r=i.padLeft(i.validate(e.salt)?e.salt:i.fromHex(e.salt),32),s="bytecodeHash"in e?i.validate(e.bytecodeHash)?e.bytecodeHash:i.fromHex(e.bytecodeHash):a.keccak256(e.bytecode,{as:"Bytes"});return n.from(o.slice(a.keccak256(i.concat(i.fromHex("0xff"),t,r,s),{as:"Hex"}),12))}},45617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidCoseKeyError=void 0,t.fromPublicKey=function(e){let t=a.toBytes(e),r=t.slice(1,33),i=t.slice(33,65);return n.encode(new Map([[1,2],[3,-7],[-1,1],[-2,r],[-3,i]]))},t.toPublicKey=function(e){let t=n.decode(e),r=t["-2"],i=t["-3"];if(!(r instanceof Uint8Array)||!(i instanceof Uint8Array))throw new o;return a.from(new Uint8Array([4,...r,...i]))};let n=r(99723),i=r(73463),a=r(11102);class o extends i.BaseError{constructor(){super("COSE_Key does not contain valid P256 public key coordinates."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CoseKey.InvalidCoseKeyError"})}}t.InvalidCoseKeyError=o},73463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(99064);class i extends Error{static setStaticOptions(e){i.prototype.docsOrigin=e.docsOrigin,i.prototype.showVersion=e.showVersion,i.prototype.version=e.version}constructor(e,t={}){let r=(()=>{if(t.cause instanceof i){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof i&&t.cause.docsPath||t.docsPath,a=t.docsOrigin??i.prototype.docsOrigin,o=`${a}${n??""}`,s=!!(t.version??i.prototype.showVersion),l=t.version??i.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||s?["",r?`Details: ${r}`:void 0,n?`See: ${o}`:void 0,s?`Version: ${l}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=o,this.docsOrigin=a,this.docsPath=n,this.shortMessage=e,this.showVersion=s,this.version=l}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=i,Object.defineProperty(i,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${(0,n.getVersion)()}`}}),i.setStaticOptions(i.defaultStaticOptions)},39304:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,a.keccak_256)(s.from(e));return"Bytes"===r?n:l.fromBytes(n)},t.hmac256=function(e,t,r={}){let{as:i="string"==typeof t?"Hex":"Bytes"}=r,a=(0,n.hmac)(o.sha256,s.from(e),s.from(t));return"Bytes"===i?a:l.fromBytes(a)},t.ripemd160=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,i.ripemd160)(s.from(e));return"Bytes"===r?n:l.fromBytes(n)},t.sha256=function(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,o.sha256)(s.from(e));return"Bytes"===r?n:l.fromBytes(n)},t.validate=function(e){return 66===e.length&&l.validate(e,{strict:!0})};let n=r(50602),i=r(12548),a=r(70613),o=r(86960),s=r(16827),l=r(81522)},81522:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=t.SizeOverflowError=t.InvalidLengthError=t.InvalidHexValueError=t.InvalidHexTypeError=t.InvalidHexBooleanError=t.IntegerOutOfRangeError=void 0,t.assert=d,t.concat=function(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`},t.from=function(e){return e instanceof Uint8Array?f(e):Array.isArray(e)?f(new Uint8Array(e)):e},t.fromBoolean=function(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(s.assertSize(r,t.size),p(r,t.size)):r},t.fromBytes=f,t.fromNumber=function(e,t={}){let r;let{signed:n,size:i}=t,a=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let o="bigint"==typeof r&&n?-r-1n:0;if(r&&a>r||a<o){let t="bigint"==typeof e?"n":"";throw new y({max:r?`${r}${t}`:void 0,min:`${o}${t}`,signed:n,size:i,value:`${e}${t}`})}let s=(n&&a<0?BigInt.asUintN(8*i,BigInt(a)):a).toString(16),l=`0x${s}`;return i?p(l,i):l},t.fromString=function(e,t={}){return f(c.encode(e),t)},t.isEqual=function(e,t){return(0,n.equalBytes)(i.fromHex(e),i.fromHex(t))},t.padLeft=p,t.padRight=h,t.random=function(e){return f(i.random(e))},t.slice=function(e,t,r,n={}){let{strict:i}=n;s.assertStartOffset(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&s.assertEndOffset(a,t,r),a},t.size=function(e){return Math.ceil((e.length-2)/2)},t.trimLeft=m,t.trimRight=function(e){return s.trim(e,{dir:"right"})},t.toBigInt=b,t.toBoolean=function(e,t={}){t.size&&s.assertSize(e,t.size);let r=m(e);if("0x"===r)return!1;if("0x1"===r)return!0;throw new g(e)},t.toBytes=function(e,t={}){return i.fromHex(e,t)},t.toNumber=function(e,t={}){let{signed:r,size:n}=t;return r||n?Number(b(e,t)):Number(e)},t.toString=function(e,t={}){let{size:r}=t,n=i.fromHex(e);return r&&(o.assertSize(n,r),n=i.trimRight(n)),new TextDecoder().decode(n)},t.validate=function(e,t={}){let{strict:r=!1}=t;try{return d(e,{strict:r}),!0}catch{return!1}};let n=r(70090),i=r(16827),a=r(73463),o=r(98910),s=r(24319),l=r(43142),c=new TextEncoder,u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new v(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new w(e)}function f(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(s.assertSize(n,t.size),h(n,t.size)):n}function p(e,t){return s.pad(e,{dir:"left",size:t})}function h(e,t){return s.pad(e,{dir:"right",size:t})}function m(e){return s.trim(e,{dir:"left"})}function b(e,t={}){let{signed:r}=t;t.size&&s.assertSize(e,t.size);let n=BigInt(e);if(!r)return n;let i=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=i>>1n?n:n-i-1n}class y extends a.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=y;class g extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is not a valid boolean.`,{metaMessages:['The hex value must be `"0x0"` (false) or `"0x1"` (true).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexBooleanError"})}}t.InvalidHexBooleanError=g;class v extends a.BaseError{constructor(e){super(`Value \`${"object"==typeof e?l.stringify(e):e}\` of type \`${typeof e}
3\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}t.InvalidHexTypeError=v;class w extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}t.InvalidHexValueError=w;class E extends a.BaseError{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}t.InvalidLengthError=E;class x extends a.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}t.SizeOverflowError=x;class A extends a.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=A;class k extends a.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=k},43142:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canonicalize=function e(t){if(null===t||"boolean"==typeof t||"string"==typeof t)return JSON.stringify(t);if("number"==typeof t){if(!Number.isFinite(t))throw TypeError("Cannot canonicalize non-finite number");return Object.is(t,-0)?"0":JSON.stringify(t)}if("bigint"==typeof t)throw TypeError("Cannot canonicalize bigint");if(Array.isArray(t))return`[${t.map(t=>e(t)).join(",")}]`;if("object"==typeof t){let r=Object.keys(t).sort().reduce((r,n)=>{let i=t[n];return void 0!==i&&r.push(`${JSON.stringify(n)}:${e(i)}`),r},[]);return`{${r.join(",")}}`}},t.parse=function(e,t){return JSON.parse(e,(e,n)=>"string"==typeof n&&n.endsWith(r)?BigInt(n.slice(0,-r.length)):"function"==typeof t?t(e,n):n)},t.stringify=function(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+r:n,n)};let r="#__bigint"},84135:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e,t={}){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null}},t.toRpc=function(e,t={}){return{address:e.address,blockHash:e.blockHash,blockNumber:"bigint"==typeof e.blockNumber?n.fromNumber(e.blockNumber):null,data:e.data,logIndex:"number"==typeof e.logIndex?n.fromNumber(e.logIndex):null,topics:e.topics,transactionHash:e.transactionHash,transactionIndex:"number"==typeof e.transactionIndex?n.fromNumber(e.transactionIndex):null,removed:e.removed}};let n=r(81522)},57414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSeedSizeError=t.noble=void 0,t.createKeyPair=function(e={}){let{as:t="Hex"}=e,r=p({as:t}),n=f({privateKey:r});return{privateKey:r,publicKey:n}},t.fromMnemonic=function(e,t={}){let{passphrase:r}=t,n=c.toSeed(e,{passphrase:r});try{return d(n,t)}finally{n.fill(0)}},t.fromSeed=d,t.getPublicKey=f,t.getSharedSecret=function(e){let{as:t="Hex",privateKey:r,publicKey:i}=e,a=n.secp256r1.ProjectivePoint.fromHex(u.toHex(i).slice(2)),s="string"==typeof r?r.slice(2):o.fromBytes(r).slice(2),l=a.multiply(n.secp256r1.utils.normPrivateKeyToScalar(s)).toRawBytes(!0);return"Hex"===t?o.fromBytes(l):l},t.randomPrivateKey=p,t.recoverPublicKey=function(e){let{payload:t,signature:r}
3=e,{r:i,s:a,yParity:s}=r,l=new n.secp256r1.Signature(BigInt(i),BigInt(a)).addRecoveryBit(s),c=t instanceof Uint8Array?o.fromBytes(t):t,d=l.recoverPublicKey(c.substring(2));return u.from(d)},t.sign=function(e){let{extraEntropy:t=s.extraEntropy,hash:r,payload:a,privateKey:l}=e,{r:c,s:u,recovery:d}=n.secp256r1.sign(a instanceof Uint8Array?a:i.fromHex(a),l instanceof Uint8Array?l:i.fromHex(l),{extraEntropy:"boolean"==typeof t?t:o.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:c,s:u,yParity:d}},t.verify=function(e){let{hash:t,payload:r,publicKey:a,signature:o}=e;return n.secp256r1.verify(o,r instanceof Uint8Array?r:i.fromHex(r),u.toHex(a).substring(2),{lowS:!0,...t?{prehash:!0}:{}})};let n=r(54584),i=r(16827),a=r(73463),o=r(81522),s=r(71566),l=r(18686),c=r(69416),u=r(11102);function d(e,r={}){let{as:n="Hex"}=r,a=i.from(e);if(a.length<32)throw new h({size:a.length});let s=l.derive(a,m,{validate:t.noble.utils.isValidPrivateKey});if("Hex"===n){let e=o.fromBytes(s);return s.fill(0),e}return s}function f(e){let{privateKey:t}=e,r=n.secp256r1.ProjectivePoint.fromPrivateKey("string"==typeof t?t.slice(2):o.fromBytes(t).slice(2));return u.from(r)}function p(e={}){let{as:t="Hex"}=e,r=n.secp256r1.utils.randomPrivateKey();return"Hex"===t?o.fromBytes(r):r}t.noble=n.secp256r1;class h extends a.BaseError{constructor(e){super(`Seed must contain at least 32 bytes. Received ${e.size} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"P256.InvalidSeedSizeError"})}}t.InvalidSeedSizeError=h;let m=i.fromString("ox.p256.fromSeed.v1")},11102:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSerializedSizeError=t.InvalidUncompressedPrefixError=t.InvalidCompressedPrefixError=t.InvalidPrefixError=t.InvalidError=void 0,t.assert=s,t.compress=function(e){let{x:t,y:r}=e;return{prefix:r%2n===0n?2:3,x:t}},t.from=function(e){let t=(()=>{if(a.validate(e))return c(e);if(n.validate(e))return l(e);let{prefix:t,x:r,y:i}=e;return"bigint"==typeof r&&"bigint"==typeof i?{prefix:t??4,x:r,y:i}:{prefix:t,x:r}})();return s(t),t},t.fromBytes=l,t.fromHex=c,t.toBytes=function(e,t={}){return n.fromHex(u(e,t))},t.toHex=u,t.validate=function(e,t={}){try{return s(e,t),!0}catch(e){return!1}};let n=r(16827),i=r(73463),a=r(81522),o=r(43142);function s(e,t={}){let{compressed:r}=t,{prefix:n,x:i,y:a}=e;if(!1===r||"bigint"==typeof i&&"bigint"==typeof a){if(4!==n)throw new f({prefix:n,cause:new h});return}if(!0===r||"bigint"==typeof i&&void 0===a){if(3!==n&&2!==n)throw new f({prefix:n,cause:new p});return}throw new d({publicKey:e})}function l(e){return c(a.fromBytes(e))}function c(e){if(132!==e.length&&130!==e.length&&68!==e.length)throw new m({publicKey:e});return 130===e.length?{prefix:4,x:BigInt(a.slice(e,0,32)),y:BigInt(a.slice(e,32,64))}:132===e.length?{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33)),y:BigInt(a.slice(e,33,65))}:{prefix:Number(a.slice(e,0,1)),x:BigInt(a.slice(e,1,33))}}function u(e,t={}){s(e);let{prefix:r,x:n,y:i}=e,{includePrefix:o=!0}=t;return a.concat(o?a.fromNumber(r,{size:1}):"0x",a.fromNumber(n,{size:32}),"bigint"==typeof i?a.fromNumber(i,{size:32}):"0x")}class d extends i.BaseError{constructor({publicKey:e}){super(`Value \`${o.stringify(e)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}t.InvalidError=d;class f extends i.BaseError{constructor({prefix:e,cause:t}){super(`Prefix "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}t.InvalidPrefixError=f;class p extends i.BaseError{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}t.InvalidCompressedPrefixError=p;class h extends i.BaseError{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}t.InvalidUncompressedPrefixError=h;class m extends i.BaseError{constructor({publicKey:e}){super(`Value \`${e}
3\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${a.size(a.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=m},79077:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e){return s(e,"Bytes")},t.toHex=function(e){return s(e,"Hex")},t.to=s,t.decodeRlpCursor=l,t.readLength=c,t.readList=u,t.from=d,t.fromBytes=function(e,t={}){let{as:r="Bytes"}=t;return d(e,{as:r})},t.fromHex=function(e,t={}){let{as:r="Hex"}=t;return d(e,{as:r})};let n=r(16827),i=r(73463),a=r(81522),o=r(6597);function s(e,t){let r=t??("string"==typeof e?"Hex":"Bytes"),i=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new a.InvalidLengthError(e);return n.fromHex(e)}return e})();return l(o.create(i,{recursiveReadLimit:Number.POSITIVE_INFINITY}),r)}function l(e,t="Hex"){if(0===e.bytes.length)return"Hex"===t?a.fromBytes(e.bytes):e.bytes;let r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){let n=c(e,r,128),i=e.readBytes(n);return"Hex"===t?a.fromBytes(i):i}let n=c(e,r,192);return u(e,n,t)}function c(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new i.BaseError("Invalid RLP prefix")}function u(e,t,r){let n=e.position,i=[];for(;e.position-n<t;)i.push(l(e,r));return i}function d(e,t){let{as:r}=t,i=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=f(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?n.fromHex(e):e,r=f(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),s=o.create(new Uint8Array(i.length));return(i.encode(s),"Hex"===r)?a.fromBytes(s.bytes):s.bytes}function f(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new i.BaseError("Length is too large.")}},99177:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSeedSizeError=t.noble=void 0,t.createKeyPair=function(e={}){let{as:t="Hex"}=e,r=p({as:t}),n=f({privateKey:r});return{privateKey:r,publicKey:n}},t.fromMnemonic=function(e,t={}){let{as:r="Hex",passphrase:n,path:i}=t;return u.toPrivateKey(e,{as:r,passphrase:n,path:i})},t.fromSeed=function(e,r={}){let{as:n="Hex"}=r,i=a.from(e);if(i.length<32)throw new b({size:i.length});let o=c.derive(i,y,{validate:t.noble.utils.isValidPrivateKey});if("Hex"===n){let e=s.fromBytes(o);return o.fill(0),e}return o},t.getPublicKey=f,t.getSharedSecret=function(e){let{as:t="Hex",privateKey:r,publicKey:i}=e,a=n.secp256k1.ProjectivePoint.fromHex(d.toHex(i).slice(2)).multiply(n.secp256k1.utils.normPrivateKeyToScalar(s.from(r).slice(2))).toRawBytes(!0);return"Hex"===t?s.fromBytes(a):a},t.randomPrivateKey=p,t.recoverAddress=h,t.recoverPublicKey=m,t.sign=function(e){let{extraEntropy:t=l.extraEntropy,hash:r,payload:i,privateKey:o}=e,{r:c,s:u,recovery:d}=n.secp256k1.sign(a.from(i),a.from(o),{extraEntropy:"boolean"==typeof t?t:s.from(t).slice(2),lowS:!0,...r?{prehash:!0}:{}});return{r:c,s:u,yParity:d}},t.verify=function(e){let{hash:t,payload:r}=e;return e.address?i.isEqual(e.address,h({payload:r,signature:e.signature})):n.secp256k1.verify(e.signature,a.from(r),d.toBytes(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])};let n=r(64733),i=r(51392),a=r(16827),o=r(73463),s=r(81522),l=r(71566),c=r(18686),u=r(69416),d=r(11102);function f(e){let{privateKey:t}=e,r=n.secp256k1.ProjectivePoint.fromPrivateKey(s.from(t).slice(2));return d.from(r)}function p(e={}){let{as:t="Hex"}=e,r=n.secp256k1.utils.randomPrivateKey();return"Hex"===t?s.fromBytes(r):r}function h(e){return i.fromPublicKey(m(e))}function m(e){let{payload:t,signature:r}
3=e,{r:i,s:a,yParity:o}=r,l=new n.secp256k1.Signature(BigInt(i),BigInt(a)).addRecoveryBit(o).recoverPublicKey(s.from(t).substring(2));return d.from(l)}t.noble=n.secp256k1;class b extends o.BaseError{constructor(e){super(`Seed must contain at least 32 bytes. Received ${e.size} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Secp256k1.InvalidSeedSizeError"})}}t.InvalidSeedSizeError=b;let y=a.fromString("ox.secp256k1.fromSeed.v1")},9527:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVError=t.InvalidYParityError=t.InvalidSError=t.InvalidRError=t.MissingPropertiesError=t.InvalidSerializedSizeError=void 0,t.assert=c,t.fromBytes=u,t.fromHex=d,t.extract=function(e){if(void 0!==e.r&&void 0!==e.s)return f(e)},t.from=f,t.fromDerBytes=function(e){return p(o.fromBytes(e))},t.fromDerHex=p,t.fromLegacy=h,t.fromRpc=m,t.fromTuple=function(e){let[t,r,n]=e;return f({r:"0x"===r?0n:BigInt(r),s:"0x"===n?0n:BigInt(n),yParity:"0x"===t?0:Number(t)})},t.toBytes=function(e){return i.fromHex(b(e))},t.toHex=b,t.toDerBytes=function(e){return new n.secp256k1.Signature(e.r,e.s).toDERRawBytes()},t.toDerHex=function(e){let t=new n.secp256k1.Signature(e.r,e.s);return`0x${t.toDERHex()}`},t.toLegacy=function(e){return{r:e.r,s:e.s,v:g(e.yParity)}},t.toRpc=function(e){let{r:t,s:r,yParity:n}=e;return{r:o.fromNumber(t,{size:32}),s:o.fromNumber(r,{size:32}),yParity:0===n?"0x0":"0x1"}},t.toTuple=function(e){let{r:t,s:r,yParity:n}=e;return[n?"0x01":"0x",0n===t?"0x":o.trimLeft(o.fromNumber(t)),0n===r?"0x":o.trimLeft(o.fromNumber(r))]},t.validate=function(e,t={}){try{return c(e,t),!0}catch{return!1}},t.vToYParity=y,t.yParityToV=g;let n=r(64733),i=r(16827),a=r(73463),o=r(81522),s=r(43142),l=r(62241);function c(e,t={}){let{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new w({signature:e});if(e.r<0n||e.r>l.maxUint256)throw new E({value:e.r});if(e.s<0n||e.s>l.maxUint256)throw new x({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new A({value:e.yParity})}function u(e){return d(o.fromBytes(e))}function d(e){if(130!==e.length&&132!==e.length)throw new v({signature:e});let t=BigInt(o.slice(e,0,32)),r=BigInt(o.slice(e,32,64)),n=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return y(t)}catch{throw new A({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function f(e){let t="string"==typeof e?d(e):e instanceof Uint8Array?u(e):"string"==typeof e.r?m(e):e.v?h(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return c(t),t}function p(e){let{r:t,s:r}=n.secp256k1.Signature.fromDER(o.from(e).slice(2));return{r:t,s:r}}function h(e){return{r:e.r,s:e.s,yParity:y(e.v)}}function m(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=y(t)),"number"!=typeof r)throw new A({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function b(e){c(e);let t=e.r,r=e.s;return o.concat(o.fromNumber(t,{size:32}),o.fromNumber(r,{size:32}),"number"==typeof e.yParity?o.fromNumber(g(e.yParity),{size:1}):"0x")}function y(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new k({value:e})}function g(e){if(0===e)return 27;if(1===e)return 28;throw new A({value:e})}class v extends a.BaseError{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${o.size(o.from(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}t.InvalidSerializedSizeError=v;class w extends a.BaseError{constructor({signature:e}){super(`Signature \`${s.stringify(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}t.MissingPropertiesError=w;class E extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}t.InvalidRError=E;class x extends a.BaseError{constructor({value:e}){super(`Value \`${e}
3\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}t.InvalidSError=x;class A extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}t.InvalidYParityError=A;class k extends a.BaseError{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}t.InvalidVError=k},62241:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.maxInt8=2n**(8n-1n)-1n,t.maxInt16=2n**(16n-1n)-1n,t.maxInt24=2n**(24n-1n)-1n,t.maxInt32=2n**(32n-1n)-1n,t.maxInt40=2n**(40n-1n)-1n,t.maxInt48=2n**(48n-1n)-1n,t.maxInt56=2n**(56n-1n)-1n,t.maxInt64=2n**(64n-1n)-1n,t.maxInt72=2n**(72n-1n)-1n,t.maxInt80=2n**(80n-1n)-1n,t.maxInt88=2n**(88n-1n)-1n,t.maxInt96=2n**(96n-1n)-1n,t.maxInt104=2n**(104n-1n)-1n,t.maxInt112=2n**(112n-1n)-1n,t.maxInt120=2n**(120n-1n)-1n,t.maxInt128=2n**(128n-1n)-1n,t.maxInt136=2n**(136n-1n)-1n,t.maxInt144=2n**(144n-1n)-1n,t.maxInt152=2n**(152n-1n)-1n,t.maxInt160=2n**(160n-1n)-1n,t.maxInt168=2n**(168n-1n)-1n,t.maxInt176=2n**(176n-1n)-1n,t.maxInt184=2n**(184n-1n)-1n,t.maxInt192=2n**(192n-1n)-1n,t.maxInt200=2n**(200n-1n)-1n,t.maxInt208=2n**(208n-1n)-1n,t.maxInt216=2n**(216n-1n)-1n,t.maxInt224=2n**(224n-1n)-1n,t.maxInt232=2n**(232n-1n)-1n,t.maxInt240=2n**(240n-1n)-1n,t.maxInt248=2n**(248n-1n)-1n,t.maxInt256=2n**(256n-1n)-1n,t.minInt8=-(2n**(8n-1n)),t.minInt16=-(2n**(16n-1n)),t.minInt24=-(2n**(24n-1n)),t.minInt32=-(2n**(32n-1n)),t.minInt40=-(2n**(40n-1n)),t.minInt48=-(2n**(48n-1n)),t.minInt56=-(2n**(56n-1n)),t.minInt64=-(2n**(64n-1n)),t.minInt72=-(2n**(72n-1n)),t.minInt80=-(2n**(80n-1n)),t.minInt88=-(2n**(88n-1n)),t.minInt96=-(2n**(96n-1n)),t.minInt104=-(2n**(104n-1n)),t.minInt112=-(2n**(112n-1n)),t.minInt120=-(2n**(120n-1n)),t.minInt128=-(2n**(128n-1n)),t.minInt136=-(2n**(136n-1n)),t.minInt144=-(2n**(144n-1n)),t.minInt152=-(2n**(152n-1n)),t.minInt160=-(2n**(160n-1n)),t.minInt168=-(2n**(168n-1n)),t.minInt176=-(2n**(176n-1n)),t.minInt184=-(2n**(184n-1n)),t.minInt192=-(2n**(192n-1n)),t.minInt200=-(2n**(200n-1n)),t.minInt208=-(2n**(208n-1n)),t.minInt216=-(2n**(216n-1n)),t.minInt224=-(2n**(224n-1n)),t.minInt232=-(2n**(232n-1n)),t.minInt240=-(2n**(240n-1n)),t.minInt248=-(2n**(248n-1n)),t.minInt256=-(2n**(256n-1n)),t.maxUint8=2n**8n-1n,t.maxUint16=2n**16n-1n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},55214:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpcType=t.toRpcType=void 0,t.fromRpc=function(e,r={}){if(!e)return null;let i=a.extract(e),o={...e,...i};return o.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(o.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0),o.data=e.input,o.gas=BigInt(e.gas??0n),o.nonce=BigInt(e.nonce??0n),o.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,o.value=BigInt(e.value??0n),e.authorizationList&&(o.authorizationList=n.fromRpcList(e.authorizationList)),e.chainId&&(o.chainId=Number(e.chainId)),e.gasPrice&&(o.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(o.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(o.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(o.type=t.fromRpcType[e.type]??e.type),i&&(o.v=a.yParityToV(i.yParity)),o},t.toRpc=function(e,r){let a={};return a.blockHash=e.blockHash,a.blockNumber="bigint"==typeof e.blockNumber?i.fromNumber(e.blockNumber):null,"bigint"==typeof e.blockTimestamp?a.blockTimestamp=i.fromNumber(e.blockTimestamp):null===e.blockTimestamp&&(a.blockTimestamp=null),a.from=e.from,a.gas=i.fromNumber(e.gas??0n),a.hash=e.hash,a.input=e.input,a.nonce=i.fromNumber(e.nonce??0n),a.to=e.to,a.transactionIndex=e.transactionIndex?i.fromNumber(e.transactionIndex):null,a.type=t.toRpcType[e.type]??e.type,a.value=i.fromNumber(e.value??0n),e.accessList&&(a.accessList=e.accessList),e.authorizationList&&(a.authorizationList=n.toRpcList(e.authorizationList)),e.blobVersionedHashes&&(a.blobVersionedHashes=e.blobVersionedHashes),e.chainId&&(a.chainId=i.fromNumber(e.chainId)),"bigint"==typeof e.gasPrice&&(a.gasPrice=i.fromNumber(e.gasPrice)),"bigint"==typeof e.maxFeePerBlobGas&&(a.maxFeePerBlobGas=i.fromNumber(e.maxFeePerBlobGas)),"bigint"==typeof e.maxFeePerGas&&(a.maxFeePerGas=i.fromNumber(e.maxFeePerGas)),"bigint"==typeof e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=i.fromNumber(e.maxPriorityFeePerGas)),"bigint"==typeof e.r&&(a.r=i.fromNumber(e.r,{size:32})),"bigint"==typeof e.s&&(a.s=i.fromNumber(e.s,{size:32})),"number"==typeof e.v&&(a.v=i.fromNumber(e.v,{size:1})),"number"==typeof e.yParity&&(a.yParity=0===e.yParity?"0x0":"0x1"),a};let n=r(47833),i=r(81522),a=r(9527);t.toRpcType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},t.fromRpcType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"}},11257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRpcType=t.fromRpcType=t.toRpcStatus=t.fromRpcStatus=void 0,t.fromRpc=function(e){return e?{...e,blobGasPrice:e.blobGasPrice?BigInt(e.blobGasPrice):void 0,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,blockNumber:BigInt(e.blockNumber??0n),cumulativeGasUsed:BigInt(e.cumulativeGasUsed??0n),effectiveGasPrice:BigInt(e.effectiveGasPrice??0n),gasUsed:BigInt(e.gasUsed??0n),logs:e.logs.map(e=>i.fromRpc(e,{pending:!1})),status:t.fromRpcStatus[e.status],transactionIndex:Number(e.transactionIndex??0),type:t.fromRpcType[e.type]||e.type}:null},t.toRpc=function(e){return{blobGasPrice:e.blobGasPrice?n.fromNumber(e.blobGasPrice):void 0,blobGasUsed:e.blobGasUsed?n.fromNumber(e.blobGasUsed):void 0,blockHash:e.blockHash,blockNumber:n.fromNumber(e.blockNumber),contractAddress:e.contractAddress,cumulativeGasUsed:n.fromNumber(e.cumulativeGasUsed),effectiveGasPrice:n.fromNumber(e.effectiveGasPrice),from:e.from,gasUsed:n.fromNumber(e.gasUsed),logs:e.logs.map(i.toRpc),logsBloom:e.logsBloom,root:e.root,status:t.toRpcStatus[e.status],to:e.to,transactionHash:e.transactionHash,transactionIndex:n.fromNumber(e.transactionIndex),type:t.toRpcType[e.type]??e.type}};let n=r(81522),i=r(84135);t.fromRpcStatus={"0x0":"reverted","0x1":"success"},t.toRpcStatus={reverted:"0x0",success:"0x1"},t.fromRpcType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},t.toRpcType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"}},99815:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return void 0!==e.authorizationList&&(e.authorizationList=n.fromRpcList(e.authorizationList)),void 0!==e.chainId&&(e.chainId=i.toNumber(e.chainId)),void 0!==e.gas&&(e.gas=i.toBigInt(e.gas)),void 0!==e.gasPrice&&(e.gasPrice=i.toBigInt(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(e.maxFeePerBlobGas=i.toBigInt(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(e.maxFeePerGas=i.toBigInt(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=i.toBigInt(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(e.nonce=i.toBigInt(e.nonce)),void 0!==e.type&&(e.type=a.fromRpcType[e.type]||e.type),void 0!==e.value&&(e.value=i.toBigInt(e.value)),e},t.toRpc=function(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.authorizationList&&(t.authorizationList=n.toRpcList(e.authorizationList)),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(t.blobs=e.blobs),void 0!==e.chainId&&(t.chainId=i.fromNumber(e.chainId)),void 0!==e.data?(t.data=e.data,t.input=e.data):void 0!==e.input&&(t.data=e.input,t.input=e.input),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=i.fromNumber(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=i.fromNumber(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=i.fromNumber(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=i.fromNumber(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i.fromNumber(e.maxPriorityFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i.fromNumber(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=i.fromNumber(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=a.toRpcType[e.type]||e.type),void 0!==e.value&&(t.value=i.fromNumber(e.value)),t};let n=r(47833),i=r(81522),a=r(55214)},86136:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TipAboveFeeCapError=t.InvalidSerializedError=t.InvalidChainIdError=t.GasPriceTooHighError=t.FeeCapTooHighError=void 0;let n=r(73463),i=r(15746);class a extends n.BaseError{constructor({feeCap:e}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${e?` = ${i.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}t.FeeCapTooHighError=a;class o extends n.BaseError{constructor({gasPrice:e}={}){super(`The gas price (\`gasPrice\`${e?` = ${i.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.GasPriceTooHighError"})}}t.GasPriceTooHighError=o;class s extends n.BaseError{constructor({chainId:e}){super(void 0!==e?`Chain ID "${e}
3" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}t.InvalidChainIdError=s;class l extends n.BaseError{constructor({attributes:e,serialized:t,type:r}){let n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}t.InvalidSerializedError=l;class c extends n.BaseError{constructor({maxPriorityFeePerGas:e,maxFeePerGas:t}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${i.formatGwei(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${i.formatGwei(t)} gwei`:""}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}t.TipAboveFeeCapError=c},15746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidDecimalNumberError=t.exponents=void 0,t.format=i,t.formatEther=function(e,r="wei"){return i(e,t.exponents.ether-t.exponents[r])},t.formatGwei=function(e,r="wei"){return i(e,t.exponents.gwei-t.exponents[r])},t.from=a,t.fromEther=function(e,r="wei"){return a(e,t.exponents.ether-t.exponents[r])},t.fromGwei=function(e,r="wei"){return a(e,t.exponents.gwei-t.exponents[r])};let n=r(73463);function i(e,t=0){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}function a(e,t=0){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new o({value:e});let[r="",n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,a]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],o=Math.round(Number(`${i}.${a}`));(n=o>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${o}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}t.exponents={wei:0,gwei:9,szabo:12,finney:15,ether:18};class o extends n.BaseError{constructor({value:e}){super(`Value \`${e}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}t.InvalidDecimalNumberError=o},13837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSignPayload=t.getCredentialRequestOptions=t.getCredentialCreationOptions=t.getAttestationObject=t.getClientDataJSON=t.getAuthenticatorData=t.createChallenge=void 0,t.createCredential=o,t.sign=s,t.verify=function(e){return n.verify(e)};let n=r(11463),i=r(90239),a=r(34630);async function o(e){return a.create(e)}async function s(e){return n.sign(e)}t.createChallenge=a.createChallenge,t.getAuthenticatorData=i.getAuthenticatorData,t.getClientDataJSON=i.getClientDataJSON,t.getAttestationObject=i.getAttestationObject,t.getCredentialCreationOptions=a.getOptions,t.getCredentialRequestOptions=n.getOptions,t.getSignPayload=n.getSignPayload},16892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createKeyPair=s,t.createKeyPairECDH=l,t.getSharedSecret=c,t.sign=u,t.verify=d;let n=r(54584),i=r(16827),a=r(81522),o=r(11102);async function s(e={}){let{extractable:t=!1}=e,r=await globalThis.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},t,["sign","verify"]),n=await globalThis.crypto.subtle.exportKey("raw",r.publicKey),i=o.from(new Uint8Array(n));return{privateKey:r.privateKey,publicKey:i}}async function l(e={}){let{extractable:t=!1}=e,r=await globalThis.crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},t,["deriveKey","deriveBits"]),n=await globalThis.crypto.subtle.exportKey("raw",r.publicKey),i=o.from(new Uint8Array(n));return{privateKey:r.privateKey,publicKey:i}}async function c(e){let{as:t="Hex",privateKey:r,publicKey:n}=e;if("ECDSA"===r.algorithm.name)throw Error("privateKey is not compatible with ECDH. please use `createKeyPairECDH` to create an ECDH ke
3y.");let i=await globalThis.crypto.subtle.importKey("raw",o.toBytes(n),{name:"ECDH",namedCurve:"P-256"},!1,[]),s=new Uint8Array(await globalThis.crypto.subtle.deriveBits({name:"ECDH",public:i},r,256));return"Hex"===t?a.fromBytes(s):s}async function u(e){let{payload:t,privateKey:r}=e,a=await globalThis.crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},r,i.from(t)),o=i.fromArray(new Uint8Array(a)),s=i.toBigInt(i.slice(o,0,32)),l=i.toBigInt(i.slice(o,32,64));return l>n.p256.CURVE.n/2n&&(l=n.p256.CURVE.n-l),{r:s,s:l}}async function d(e){let{lowS:t=!0,payload:r,signature:a}=e;if(t&&a.s>n.p256.CURVE.n/2n)return!1;let s=await globalThis.crypto.subtle.importKey("raw",o.toBytes(e.publicKey),{name:"ECDSA",namedCurve:"P-256"},!0,["verify"]);return await globalThis.crypto.subtle.verify({name:"ECDSA",hash:"SHA-256"},s,i.concat(i.fromNumber(a.r),i.fromNumber(a.s)),i.from(r))}},15706:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){return{...e,amount:BigInt(e.amount),index:Number(e.index),validatorIndex:Number(e.validatorIndex)}},t.toRpc=function(e){return{address:e.address,amount:n.fromNumber(e.amount),index:n.fromNumber(e.index),validatorIndex:n.fromNumber(e.validatorIndex)}};let n=r(81522)},41411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",n=0,a="",o=!1;for(let i=0;i<e.length;i++){let s=e[i];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t){if(0===n){if(" "===s&&["event","function","error",""].includes(a))a="";else if(a+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[i-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}a+=s,r+=s}}if(!o)throw new i.BaseError("Unable to normalize signature.");return a},t.isArgOfType=function e(t,r){let i=typeof t,a=r.type;switch(a){case"address":return n.validate(t,{strict:!1});case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===a&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===i||t instanceof Uint8Array;
3if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}},t.getAmbiguousTypes=function e(t,r,i){for(let a in t){let o=t[a],s=r[a];if("tuple"===o.type&&"tuple"===s.type&&"components"in o&&"components"in s)return e(o.components,s.components,i[a]);let l=[o.type,s.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&n.validate(i[a],{strict:!1}))return l}};let n=r(51392),i=r(73463)},95906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeParameter=c,t.decodeAddress=u,t.decodeArray=d,t.decodeBool=f,t.decodeBytes=p,t.decodeNumber=h,t.decodeTuple=m,t.decodeString=b,t.prepareParameters=function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let i=0;i<t.length;i++)n.push(y({checksumAddress:e,parameter:t[i],value:r[i]}));return n},t.prepareParameter=y,t.encode=g,t.encodeAddress=v,t.encodeArray=w,t.encodeBytes=E,t.encodeBoolean=x,t.encodeNumber=A,t.encodeString=k,t.encodeTuple=P,t.getArrayComponents=C,t.hasDynamicChild=T;let n=r(12600),i=r(51392),a=r(16827),o=r(73463),s=r(81522),l=r(62241);function c(e,t,r){let{checksumAddress:i,staticPosition:a}=r,o=C(t.type);if(o){let[r,n]=o;return d(e,{...t,type:n},{checksumAddress:i,length:r,staticPosition:a})}if("tuple"===t.type)return m(e,t,{checksumAddress:i,staticPosition:a});if("address"===t.type)return u(e,{checksum:i});if("bool"===t.type)return f(e);if(t.type.startsWith("bytes"))return p(e,t,{staticPosition:a});if(t.type.startsWith("uint")||t.type.startsWith("int"))return h(e,t);if("string"===t.type)return b(e,{staticPosition:a});throw new n.InvalidTypeError(t.type)}function u(e,t={}){let r;let{checksum:n=!1}=t,o=e.readBytes(32);return[(r=s.fromBytes(a.slice(o,-20)),n?i.checksum(r):r),32]}function d(e,t,r){let{checksumAddress:n,length:i,staticPosition:o}=r;if(null===i){let r=o+a.toNumber(e.readBytes(32)),i=r+32;e.setPosition(r);let s=a.toNumber(e.readBytes(32)),l=T(t),u=0,d=[];for(let r=0;r<s;++r){e.setPosition(i+(l?32*r:u));let[a,o]=c(e,t,{checksumAddress:n,staticPosition:i});u+=o,d.push(a),0===o&&(e.assertReadLimit(),e._touch())}return e.setPosition(o+32),[d,32]}if(T(t)){let r=o+a.toNumber(e.readBytes(32)),s=[];for(let a=0;a<i;++a){e.setPosition(r+32*a);let[i]=c(e,t,{checksumAddress:n,staticPosition:r});s.push(i)}return e.setPosition(o+32),[s,32]}let s=0,l=[];for(let r=0;r<i;++r){let[r,i]=c(e,t,{checksumAddress:n,staticPosition:o+s});s+=i,l.push(r),0===i&&(e.assertReadLimit(),e._touch())}return[l,s]}function f(e){return[a.toBoolean(e.readBytes(32),{size:32}),32]}function p(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=a.toNumber(e.readBytes(32));e.setPosition(r+t);let n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[s.fromBytes(i),32]}return[s.fromBytes(e.readBytes(Number.parseInt(i,10),32)),32]}function h(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[n>48?a.toBigInt(i,{signed:r}):a.toNumber(i,{signed:r}),32]}function m(e,t,r){let{checksumAddress:n,staticPosition:i}=r,o=0===t.components.length||t.components.some(({name:e})=>!e),s=o?[]:{},l=0;if(T(t)){let r=i+a.toNumber(e.readBytes(32));for(let i=0;i<t.components.length;++i){let a=t.components[i];e.setPosition(r+l);let[u,d]=c(e,a,{checksumAddress:n,staticPosition:r});l+=d,s[o?i:a?.name]=u}return e.setPosition(i+32),[s,32]}for(let r=0;r<t.components.length;++r){let a=t.components[r],[u,d]=c(e,a,{checksumAddress:n,staticPosition:i});s[o?r:a?.name]=u,l+=d}return[s,l]}function b(e,{staticPosition:t}){let r=a.toNumber(e.readBytes(32));e.setPosition(t+r);let n=a.toNumber(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),o=a.toString(a.trimLeft(i));return e.setPosition(t+32),[o,32]}function y({checksumAddress:e=!1,parameter:t,value:r}){let i=C(t.type);if(i){let[n,a]=i;return w(r,{checksumAddress:e,length:n,parameter:{...t,type:a}})}if("tuple"===t.type)return P(r,{checksumAddress:e,parameter:t});if("address"===t.type)return v(r,{checksum:e});if("bool"===t.type)return x(r);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=l.integerRegex.exec(t.type)??[];return A(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return E(r,{type:t.type});if("string"===t.type)return k(r);throw new n.InvalidTypeError(t.type)}function g(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=s.size(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:l}=e[a];o?(r.push(s.fromNumber(t+i,{size:32})),n.push(l),i+=s.size(l)):r.push(l)}return s.concat(...r,...n)}function v(e,t){let{checksum:r=!1}=t;return i.assert(e,{strict:r}),{dynamic:!1,encoded:s.padLeft(e.toLowerCase())}}function w(e,t){let{checksumAddress:r,length:i,parameter:a}=t,o=null===i;if(!Array.isArray(e))throw new n.InvalidArrayError(e);
3if(!o&&e.length!==i)throw new n.ArrayLengthMismatchError({expectedLength:i,givenLength:e.length,type:`${a.type}[${i}]`});let l=0===e.length&&T(a),c=[];for(let t=0;t<e.length;t++){let n=y({checksumAddress:r,parameter:a,value:e[t]});n.dynamic&&(l=!0),c.push(n)}if(o||l){let e=g(c);if(o){let t=s.fromNumber(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?s.concat(t,e):t}}if(l)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:s.concat(...c.map(({encoded:e})=>e))}}function E(e,{type:t}){let[,r]=t.split("bytes"),i=s.size(e);if(!r){let t=e;return i%32!=0&&(t=s.padRight(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:s.concat(s.padLeft(s.fromNumber(i,{size:32})),t)}}if(i!==Number.parseInt(r,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:s.padRight(e)}}function x(e){if("boolean"!=typeof e)throw new o.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:s.padLeft(s.fromBoolean(e))}}function A(e,{signed:t,size:r}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new s.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:s.fromNumber(e,{size:32,signed:t})}}function k(e){let t=s.fromString(e),r=Math.ceil(s.size(t)/32),n=[];for(let e=0;e<r;e++)n.push(s.padRight(s.slice(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:s.concat(s.padRight(s.fromNumber(s.size(t),{size:32})),...n)}}function P(e,t){let{checksumAddress:r,parameter:n}=t,i=!1,a=[];for(let t=0;t<n.components.length;t++){let o=n.components[t],s=Array.isArray(e)?t:o.name,l=y({checksumAddress:r,parameter:o,value:e[s]});a.push(l),l.dynamic&&(i=!0)}return{dynamic:i,encoded:i?g(a):s.concat(...a.map(({encoded:e})=>e))}}function C(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function T(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(T);let r=C(e.type);return!!(r&&T({...e,type:r[1]}))}},98910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.charCodeMap=void 0,t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.charCodeToBase16=function(e){return e>=t.charCodeMap.zero&&e<=t.charCodeMap.nine?e-t.charCodeMap.zero:e>=t.charCodeMap.A&&e<=t.charCodeMap.F?e-(t.charCodeMap.A-10):e>=t.charCodeMap.a&&e<=t.charCodeMap.f?e-(t.charCodeMap.a-10):void 0},t.pad=function(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;if(e.length>i)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:i,type:"Bytes"});let a=new Uint8Array(i);for(let t=0;t<i;t++){let n="right"===r;a[n?t:i-t-1]=e[n?t:e.length-t-1]}return a},t.trim=function(e,t={}){let{dir:r="left"}=t,n=0;for(let t=0;t<e.length-1&&"0"===e["left"===r?t:e.length-t-1].toString();t++)n++;return"left"===r?e.slice(n):e.slice(0,e.length-n)};let n=r(16827);t.charCodeMap={zero:48,nine:57,A:65,F:70,a:97,f:102}},6597:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0,t.create=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};let n=r(73463),i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new o({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new a({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new a({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class a extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}t.NegativeOffsetError=a;class o extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=o;class s extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=s},71566:function(e,t){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.extraEntropy=void 0,t.setExtraEntropy=function(e){t.extraEntropy=e},t.extraEntropy=!1},99064:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=function(e){return e},t.getVersion=function(){return n.version},t.prettyPrint=function(e){if(!e)return"";let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")};let n=r(47238)},24319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=function(e,t){if(n.size(e)>t)throw new n.SizeOverflowError({givenSize:n.size(e),maxSize:t})},t.assertStartOffset=function(e,t){if("number"==typeof t&&t>0&&t>n.size(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:n.size(e)})},t.assertEndOffset=function(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.size(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:n.size(e)})},t.pad=function(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;let a=e.replace("0x","");if(a.length>2*i)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*i,"0")}`},t.trim=function(e,t={}){let{dir:r="left"}=t,n=e.replace("0x",""),i=0;for(let e=0;e<n.length-1&&"0"===n["left"===r?e:n.length-e-1].toString();e++)i++;return"0"===(n="left"===r?n.slice(i):n.slice(0,n.length-i))?"0x":"right"===r&&n.length%2==1?`0x${n}0`:`0x${n}`};let n=r(81522)},18686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.derive=function(e,t,r={}){let{validate:a}=r;for(let r=0;;r++){let o=i.hmac256(e,n.concat(t,n.fromNumber(r,{size:4})),{as:"Bytes"});if(!a||a(o))return o;o.fill(0)}};let n=r(16827),i=r(39304)},52612:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}t.LruMap=r},69416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPrivateKey=function(e,t={}){let{path:r="m/44'/60'/0'/0/0",passphrase:i}=t,s=n.HDKey.fromMasterSeed(o(e,{passphrase:i})).derive(r).privateKey;return"Bytes"===t.as?s:a.fromBytes(s)},t.toSeed=o;let n=r(9665),i=r(52055),a=r(81522);function o(e,t={}){return(0,i.mnemonicToSeedSync)(e,t.passphrase)}},7439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAsn1Signature=function(e){let t=n.p256.Signature.fromDER(e).normalizeS();return{r:t.r,s:t.s}},t.parseCredentialPublicKey=o;let n=r(54584),i=r(34630),a=r(11102);async function o(e,t){try{let t=e.getPublicKey();if(!t)throw new i.CreateFailedError;let r=new Uint8Array(t),n=await crypto.subtle.importKey("spki",new Uint8Array(r),{name:"ECDSA",namedCurve:"P-256",hash:"SHA-256"},!0,["verify"]),o=new Uint8Array(await crypto.subtle.exportKey("raw",n));return a.from(o)}catch(l){if("Permission denied to access object"!==l.message)throw l;let r=new Uint8Array(t??e.attestationObject),n=e=>{let t=new Uint8Array([e,88,32]);for(let e=0;e<r.length-t.length;e++)if(t.every((t,n)=>r[e+n]===t))return e+t.length;throw new i.CreateFailedError},o=n(33),s=n(34);return a.from(new Uint8Array([4,...r.slice(o,o+32),...r.slice(s,s+32)]))}}},47238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.1.1"},29574:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.universalSignatureValidatorAbi=t.universalSignatureValidatorBytecode=t.magicBytes=void 0,t.assert=o,t.from=function(e){return"string"==typeof e?s(e):e},t.unwrap=s,t.wrap=function(e){let{data:r,signature:i,to:o}=e;return a.concat(n.encode(n.from("address, bytes, bytes"),[o,r,i]),t.magicBytes)},t.validate=function(e){try{return o(e),!0}catch{return!1}};let n=r(12600),i=r(73463),a=r(81522);function o(e){if(a.slice(e,-32)!==t.magicBytes)throw new l(e)}function s(e){o(e);let[t,r,i]=n.decode(n.from("address, bytes, bytes"),e);return{data:r,signature:i,to:t}}t.magicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.universalSignatureValidatorBytecode="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b
360405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
3603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",t.universalSignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];class l extends i.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=l},30077:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc6492=void 0,t.SignatureErc6492=r(29574)},49038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidWrappedSignatureError=t.suffixParameters=t.magicBytes=void 0,t.assert=c,t.from=function(e){return"string"==typeof e?u(e):e},t.unwrap=u,t.wrap=function(e){let{data:r,signature:a}=e;c(e);let u=s.recoverAddress({payload:i.getSignPayload(e.authorization),signature:l.from(e.authorization)}),d=n.encode(t.suffixParameters,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??u,r??"0x"]),f=o.fromNumber(o.size(d),{size:32});return o.concat(a,d,f,t.magicBytes)},t.validate=function(e){try{return c(e),!0}catch{return!1}};let n=r(12600),i=r(47833),a=r(73463),o=r(81522),s=r(99177),l=r(9527);function c(e){if("string"==typeof e){if(o.slice(e,-32)!==t.magicBytes)throw new d(e)}else l.assert(e.authorization)}function u(e){c(e);let r=o.toNumber(o.slice(e,-64,-32)),a=o.slice(e,-r-64,-64),s=o.slice(e,0,-r-64),[l,u,d]=n.decode(t.suffixParameters,a);return{authorization:i.from({address:l.delegation,chainId:Number(l.chainId),nonce:l.nonce,yParity:l.yParity,r:l.r,s:l.s}),signature:s,...d&&"0x"!==d?{data:d,to:u}:{}}}t.magicBytes="0x8010801080108010801080108010801080108010801080108010801080108010",t.suffixParameters=n.from("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");class d extends a.BaseError{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}t.InvalidWrappedSignatureError=d},86766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureErc8010=void 0,t.SignatureErc8010=r(49038)},64150:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=l,t.fromRpc=c,t.fromRpcList=function(e){return e.map(e=>c(e))},t.fromTuple=u,t.fromTupleList=function(e){let t=[];for(let r of e)t.push(u(r));return t},t.getSignPayload=function(e){return d(e,{presign:!0})},t.hash=d,t.toRpc=f,t.toRpcList=function(e){return e.map(e=>f(e))},t.toTuple=p,t.toTupleList=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(p(r));return t};let n=r(39304),i=r(81522),a=r(79077),o=r(6013),s=r(56047);function l(e,t={}){if("string"==typeof e.chainId)return c(e);let r={...e,address:s.resolve(e.address)};return t.signature?{...r,signature:t.signature}:r}function c(e){let{address:t,chainId:r,nonce:n}=e,i=o.fromRpc(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:i}}function u(e){let[t,r,n,i]=e,a={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return i&&(a.signature=o.deserialize(i)),l(a)}function d(e,t={}){let{presign:r}=t;return n.keccak256(i.concat("0x05",a.fromHex(p(r?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function f(e){let{address:t,chainId:r,nonce:n,signature:a}=e;return{address:t,chainId:i.fromNumber(r),nonce:i.fromNumber(n),signature:o.toRpc(a)}}function p(e){let{address:t,chainId:r,nonce:n}=e,a=e.signature?o.serialize(e.signature):void 0;return[r?i.fromNumber(r):"0x",t,n?i.fromNumber(n):"0x",...a?[a]:[]]}},4193:function(e,t,r){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.voucherTypehash=t.closeGracePeriod=t.address=void 0,t.from=m,t.computeId=function(e,r){let i=m(e);return a.keccak256(n.encode(l,[i.payer,i.payee,i.operator,i.token,i.salt,i.authorizedSigner,i.expiringNonceHash,t.address,BigInt(r.chainId)]))},t.domainSeparator=b,t.getVoucherSignPayload=function(e){let r=a.keccak256(n.encode(u,[t.voucherTypehash,e.channelId,e.cumulativeAmount]));return a.keccak256(o.concat("0x1901",b({chainId:e.chainId}),r))};let n=r(12600),i=r(51392),a=r(39304),o=r(81522),s=r(4329),l=n.from("address, address, address, address, bytes32, address, bytes32, address, uint256"),c=n.from("bytes32, bytes32, bytes32, uint256, address"),u=n.from("bytes32, bytes32, uint96"),d=a.keccak256(o.fromString("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")),f=a.keccak256(o.fromString("TIP20 Channel Reserve")),p=a.keccak256(o.fromString("1")),h="0x0000000000000000000000000000000000000000";function m(e){let{authorizedSigner:t=h,expiringNonceHash:r,operator:n=h,payee:i,payer:a,salt:o,token:l}=e;return{authorizedSigner:y(t),expiringNonceHash:r,operator:y(n),payee:y(i),payer:y(a),salt:o,token:"string"==typeof l?y(l):s.toAddress(l)}}function b(e){return a.keccak256(n.encode(c,[d,f,p,BigInt(e.chainId),t.address]))}function y(e){return i.from(e)}t.address="0x4d50500000000000000000000000000000000000",t.closeGracePeriod=900n,t.voucherTypehash=a.keccak256(o.fromString("Voucher(bytes32 channelId,uint96 cumulativeAmount)"))},10557:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSlippageError=t.InvalidExpectedOutputError=t.basisPointScale=void 0,t.toAmount=function(e,t){return t*e.shareSupply/e.engineShares},t.toAmountUp=function(e,t){let{engineShares:r,shareSupply:n}=e;return(t*n+r-1n)/r},t.toVenueAmount=function(e,t){return t*e.engineShares/e.shareSupply},t.feeShares=function(e){let{activeAssets:t,shareSupply:r,totalFeeAssets:n}=e;return 0n===n||n>=t?0n:n*r/(t-n)},t.minimumOutput=function(e,r){if(e<=0n)throw new i({expectedAmount:e});if(!Number.isInteger(r)||r<0||r>=t.basisPointScale)throw new a({slippageBps:r});let n=BigInt(t.basisPointScale),o=e*(n-BigInt(r))/n;return 0n===o?1n:o};let n=r(73463);t.basisPointScale=1e4;class i extends n.BaseError{constructor(e){super(`Expected output \`${e.expectedAmount}\` must be greater than zero.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EarnShares.InvalidExpectedOutputError"})}}t.InvalidExpectedOutputError=i;class a extends n.BaseError{constructor(e){super(`Slippage tolerance \`${e.slippageBps}\` is invalid.`,{metaMessages:[`Slippage must be a whole number from 0 through ${t.basisPointScale-1} basis points.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EarnShares.InvalidSlippageError"})}}t.InvalidSlippageError=a},61199:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSignatureTypeError=t.InvalidAdminMarkerError=t.InvalidWitnessSizeError=void 0,t.from=c,t.fromRpc=u,t.fromTuple=d,t.getSignPayload=function(e){return f(e)},t.deserialize=function(e){return d(o.toHex(e))},t.hash=f,t.serialize=function(e){let t=p(e);return o.fromHex(t)},t.toRpc=function(e){let{address:t,scopes:r,chainId:n,expiry:i,limits:o,type:c,signature:u,witness:d,isAdmin:f,account:p}=e;v(u),void 0!==d&&g(d);let h=(()=>{if(!r)return;let e=new Map;for(let t of r){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push({selector:y(t.selector),...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
3)}return[...e.entries()].map(([e,t])=>({target:e,...t.length>0?{selectorRules:t}:{}}))})();return{chainId:0n===n?"0x":a.fromNumber(n),expiry:"number"==typeof i?a.fromNumber(i):null,keyId:l.resolve(t),keyType:c,limits:o?.map(({token:e,limit:t,period:r})=>({token:e,limit:a.fromNumber(t),...r?{period:m(r)}:{}})),signature:s.toRpc(u),...h?{allowedCalls:h}:{},...void 0!==d?{witness:d}:{},...f?{isAdmin:!0}:{},...void 0!==p?{account:p}:{}}},t.toTuple=p;let n=r(97234),i=r(39304),a=r(81522),o=r(79077),s=r(6013),l=r(56047);function c(e,t={}){if("keyId"in e)return u(e);void 0!==e.witness&&g(e.witness),e.signature&&v(e.signature);let r={...e,address:l.resolve(e.address),...e.limits?{limits:e.limits.map(e=>({...e,token:l.resolve(e.token)}))}:{},...e.scopes?{scopes:e.scopes.map(e=>({...e,address:l.resolve(e.address),selector:y(e.selector),...e.recipients?{recipients:e.recipients.map(e=>l.resolve(e))}:{}}))}:{}};if(t.signature){let e=s.from(t.signature);return v(e),{...r,signature:e}}return r}function u(e){let{allowedCalls:t,chainId:r,keyId:n,expiry:i,limits:o,keyType:l}=e,c=e.witness??void 0,u=e.isAdmin??void 0,d=e.account??void 0,f=s.fromRpc(e.signature);v(f),void 0!==c&&g(c);let p=t?t.flatMap(e=>e.selectorRules&&0!==e.selectorRules.length?e.selectorRules.map(t=>{var r;return{address:e.target,selector:"string"==typeof(r=t.selector)?r:Array.isArray(r)?a.fromBytes(new Uint8Array(r)):r,...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
3}):[{address:e.target}]):void 0;return{address:n,chainId:"0x"===r?0n:a.toBigInt(r),...null!=i?{expiry:Number(i)}:{},limits:o?.map(e=>({token:e.token,limit:BigInt(e.limit),...e.period&&b(e.period)>0?{period:b(e.period)}:{}})),...p?{scopes:p}:{},signature:f,type:l,...void 0!==c?{witness:c}:{},...void 0!==d?{account:d,isAdmin:u??!1}:{}}}function d(e){let[t,r]=e,[n,i,o,...l]=t,u=(()=>{switch(i){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw Error(`Invalid key type: ${i}`)}})(),[d,f,p,h,m,y]=l,E=w(d)?void 0:b(d)||void 0,A=Array.isArray(f)&&f.length>0?f.map(e=>{let[t,r,n]=e;return{token:t,limit:"0x"===r?0n:BigInt(r),...void 0!==n?{period:b(n)}:{}}}):void 0,k=Array.isArray(p)?p.flatMap(e=>{let[t,r]=e;return Array.isArray(r)&&0!==r.length?r.map(e=>{let[r,n]=e;return{address:t,selector:r,...Array.isArray(n)&&n.length>0?{recipients:n}:{}}}):[{address:t}]}):void 0,P=w(h)?void 0:h;void 0!==P&&g(P);let C=(()=>{if(!w(m)){if("0x01"!==m)throw new x(m);return!0}})(),T=w(y)?void 0:y,_={address:o,chainId:"0x"===n?0n:a.toBigInt(n),type:u,...void 0!==E?{expiry:E}:{},...void 0!==A?{limits:A}:{},...void 0!==k?{scopes:k}:{},...void 0!==P?{witness:P}:{},...void 0!==T?{account:T,isAdmin:C??!1}:{}};if(r){let e=s.deserialize(r);v(e),_.signature=e}return c(_)}function f(e){let[t]=p(e),r=o.fromHex(t);return i.keccak256(r)}function p(e){let{address:t,chainId:r,scopes:n,expiry:i,limits:a,witness:o,isAdmin:l,account:c}=e;void 0!==o&&g(o);let u=(()=>{if(e.signature)return v(e.signature),s.serialize(e.signature)})(),d=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw Error(`Invalid key type: ${e.type}`)}})(),f=a?.map(e=>{let t=[e.token,h(e.limit)];return e.period&&e.period>0&&t.push(m(e.period)),t}),p=(()=>
3{if(!n)return;let e=new Map;for(let t of n){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push([y(t.selector),t.recipients??[]])}return[...e.entries()].map(([e,t])=>[e,t.map(([e,t])=>[e,t])])})(),b=void 0!==o||l||void 0!==c,w=[{value:null!=i&&0!==i?m(i):void 0,placeholder:"0x"},{value:f,placeholder:b?"0x":[]},{value:p,placeholder:"0x"},{value:o,placeholder:"0x"},{value:l?"0x01":void 0,placeholder:"0x"},{value:c,placeholder:"0x"}],E=-1;for(let e=w.length-1;e>=0;e--)if(void 0!==w[e].value){E=e;break}let x=w.slice(0,E+1).map(({value:e,placeholder:t})=>e??t);return[[h(r),d,t,...x],...u?[u]:[]]}function h(e){return 0n===e?"0x":a.fromNumber(e)}function m(e){return 0===e?"0x":a.fromNumber(e)}function b(e){return"0x"===e?0:a.toNumber(e)}function y(e){if(e)return e.startsWith("0x")?e:n.getSelector(e)}function g(e){if(32!==a.size(e))throw new E(e)}function v(e){if("keychain"===e.type)throw new A(e.type)}function w(e){return void 0===e||"0x"===e}class E extends Error{constructor(e){super(`Witness \`${e}\` must be exactly 32 bytes (got ${a.size(e)} bytes).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidWitnessSizeError"})}}t.InvalidWitnessSizeError=E;class x extends Error{constructor(e){super(`Admin marker \`${e}\` is invalid; expected \`0x01\` (TIP-1049).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidAdminMarkerError"})}}t.InvalidAdminMarkerError=x;class A extends Error{constructor(e){super(`Signature type \`${e}\` is invalid for key authorizations; expected \`secp256k1\`, \`p256\`, \`webAuthn\`, or \`multisig\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidSignatureTypeError"})}}t.InvalidSignatureTypeError=A},84690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidConfigError=t.zeroSalt=t.signatureTypeByte=t.maxVersion=t.maxThreshold=t.maxSignatures=t.maxOwners=t.maxOwnerSignatureBytes=t.maxNestingDepth=void 0,t.assert=l,t.from=c,t.fromRpc=function(e){return c({...e,version:s.toBigInt(e.version)})},t.fromTuple=function(e){let[r,n,i,a]=e;return{owners:a.map(e=>{let[t,r]=e;return{owner:t,weight:r&&"0x"!==r?s.toNumber(r):0}}),salt:r&&"0x"!==r?s.padLeft(r,32):t.zeroSalt,threshold:"0x"===i?0:s.toNumber(i),version:"0x"===n?0n:s.toBigInt(n)}},t.getAddress=function(e){if(l(e),0n!==BigInt(e.version??0))throw new u({reason:"account address requires version zero"});let r=o.keccak256(s.concat(s.fromString("tempo:multisig:account"),s.padLeft(e.salt??t.zeroSalt,32),s.fromNumber(e.threshold,{size:1}),s.fromNumber(e.owners.length,{size:1}),...e.owners.flatMap(e=>[e.owner,s.fromNumber(e.weight,{size:1})]))),a=i.fromCreate2({bytecodeHash:"0x4b5ff53c5328a10a6ec5224adf16de5e204a47057c98af037ee30b7de660a8a6",from:"0x8a196A227C48Ae8A3E36EebD4E106675CC0f6E64",salt:r});if(0n===s.toBigInt(a))throw new u({reason:"derived account cannot be zero"});if(e.owners.some(e=>n.isEqual(e.owner,a)))throw new u({reason:"derived account cannot be an owner"});return a},t.getCommitment=function(e){return l(e),o.keccak256(s.concat(s.fromString("tempo:multisig:config"),s.padLeft(e.salt??t.zeroSalt,32),s.fromNumber(e.version??0n,{size:8}),s.fromNumber(e.threshold,{size:1}),s.fromNumber(e.owners.length,{size:1}),...e.owners.flatMap(e=>[e.owner,s.fromNumber(e.weight,{size:1})])))},t.getSignPayload=function(e){let{account:t,config:r,payload:n}=e;return d(r.version),o.keccak256(s.concat(s.fromString("tempo:multisig:signature"),s.from(n),t,s.fromNumber(r.version??0n,{size:8})))},t.toRpc=function(e){let t=c(e);return{owners:t.owners.map(e=>({owner:e.owner,weight:Number(e.weight)})),salt:t.salt,threshold:Number(t.threshold),version:s.fromNumber(t.version)}},t.toTuple=function(e){l(e);let r=e.owners.map(e=>[e.owner,s.fromNumber(e.weight)]),n=e.salt?s.padLeft(e.salt,32):t.zeroSalt,i=BigInt(e.version??0);return[n,0n===i?"0x":s.fromNumber(i),s.fromNumber(e.threshold),r]},t.validate=function(e){try{return l(e),!0}catch{return!1}};let n=r(51392),i=r(23651),a=r(73463),o=r(39304),s=r(81522);function l(e){let r;let{owners:i,salt:a,threshold:o,version:l=0n}=e;if(void 0!==a&&32!==s.size(a))throw new u({reason:"salt must be 32 bytes"});if(d(l),0===i.length)throw new u({reason:"owners cannot be empty"});if(i.length>t.maxOwners)throw new u({reason:"too many owners"});if(!Number.isInteger(Number(o)))throw new u({reason:"threshold must be an integer"});if(1>Number(o))throw new u({reason:"threshold cannot be zero"});if(Number(o)>t.maxThreshold)throw new u({reason:"threshold exceeds max threshold"});let c=0,f=[];for(let e of i){if(!n.validate(e.owner)||0n===s.toBigInt(e.owner))throw new u({reason:"owner cannot be zero"});if(!Number.isInteger(Number(e.weight)))throw new u({reason:"owner weight must be an integer"});if(1>Number(e.weight))throw new u({reason:"owner weight cannot be zero"});let t=s.toBigInt(e.owner);if(void 0!==r&&r>=t)throw new u({reason:"owners must be strictly ascending"});r=t;let i=Number(e.weight);c+=i,f.push(i)}if(c>255)throw new u({reason:"total owner weight exceeds u8 max"});if(Number(o)>c)throw new u({reason:"threshold exceeds total owner weight"});let p=f.sort((e,t)=>
3t-e).slice(0,t.maxSignatures).reduce((e,t)=>e+t,0);if(Number(o)>p)throw new u({reason:`threshold exceeds weight reachable by ${t.maxSignatures} owner signatures`})}function c(e){let r=e.version??0n;d(r);let n={owners:[...e.owners].sort((e,t)=>s.toBigInt(e.owner)<s.toBigInt(t.owner)?-1:1),salt:e.salt?s.padLeft(e.salt,32):t.zeroSalt,threshold:e.threshold,version:BigInt(r)};return l(n),n}t.maxNestingDepth=2,t.maxOwnerSignatureBytes=2049,t.maxOwners=48,t.maxSignatures=8,t.maxThreshold=255,t.maxVersion=2n**64n-1n,t.signatureTypeByte="0x05",t.zeroSalt=`0x${"00".repeat(32)}`;class u extends a.BaseError{constructor({reason:e}){super(`Invalid native multisig config: ${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigConfig.InvalidConfigError"})}}function d(e){if("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&!Number.isSafeInteger(e)||0n>BigInt(e)||BigInt(e)>t.maxVersion)throw new u({reason:"version must be an unsigned 64-bit integer"})}t.InvalidConfigError=u},71747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidOperationError=t.InvalidApprovalError=void 0,t.getHash=function(e){let{account:t,config:r}=e,n="transaction"===e.type?u.getSignPayload(u.deserialize(e.transaction)):s.getSignPayload(s.deserialize(e.keyAuthorization));return l.getSignPayload({account:t,config:r,payload:n})},t.selectApprovals=d,t.serializeKeyAuthorization=function(e,t){let r=s.deserialize(e);if(r.signature)throw new E({reason:"keyAuthorization must not contain a signature"});if(s.serialize(r).toLowerCase()!==e.toLowerCase())throw new E({reason:"keyAuthorization is not canonically serialized"});let n=l.from(t.config),i=c.sortMultisigApprovals({account:t.account,config:n,payload:s.getSignPayload(r),signatures:t.approvals.map(e=>c.deserialize(e))});return s.serialize(s.from(r,{signature:c.from({account:t.account,config:n,signatures:i})}))},t.serializeTransaction=function(e,t){let r=f(e),n=u.deserialize(r.transaction),i=t.approvals.map(e=>c.from(e));(function(e,t){let r=e.approvals.map(e=>c.deserialize(e));for(let e of t){let t=r.findIndex(t=>b(t,e));if(-1===t)throw new E({reason:"transaction signature is not a retained approval"});r.splice(t,1)}})(r,i);let a=c.sortMultisigApprovals({account:r.account,config:r.config,payload:u.getSignPayload(n),signatures:i}),o=c.from({account:r.account,config:r.config,signatures:a});return u.serialize(n,r.transaction.startsWith(u.feePayerMagic)?{format:"feePayer",sender:n.from,signature:o}:{signature:o})},t.from=f,t.fromRpc=function(e){try{let t=e.config?.version;if("string"!=typeof t||!o.validate(t))throw new E({reason:"config.version must be a hexadecimal quantity"});let r=o.toBigInt(t);if(o.fromNumber(r)!==t)throw new E({reason:"config.version must use canonical quantity encoding"});return f({...e,config:l.fromRpc(e.config)})}catch(e){if(e instanceof E)throw e;throw new E({cause:e})}},t.toRpc=function(e){let t=f(e);return{...t,config:l.toRpc(t.config)}};let n=r(51392),i=r(73463),a=r(39304),o=r(81522),s=r(61199),l=r(84690),c=r(6013),u=r(225);async function d(e){let{account:t,approvals:r,hash:i}=e;if(!n.validate(t)||0n===o.toBigInt(t))throw new w({reason:"account is invalid"});if(!a.validate(i))throw new w({reason:"hash is invalid"});let s=l.from(e.config);if(0n===s.version&&!n.isEqual(l.getAddress(s),t))throw new w({reason:"initial config does not derive the root multisig account"});return p({account:t,approvals:r,config:s,hash:i},[t.toLowerCase()])}function f(e){try{let t=l.from(e.config);if("number"!=typeof t.threshold||t.owners.some(e=>"number"!=typeof e.weight))throw new E({reason:"config threshold and owner weights must be numbers"});let r={...e,config:t};if(function(e,t){if(!n.validate(e.account))throw new E({reason:"account is invalid"});if(0n===o.toBigInt(e.account))throw new E({reason:"account cannot be zero"});if(!a.validate(e.hash))throw new E({reason:"hash is invalid"});if(g(e.createdAt,"createdAt"),g(e.updatedAt,"updatedAt"),e.updatedAt<e.createdAt)throw new E({reason:"updatedAt cannot precede createdAt"});if(g(e.signatureCount,"signatureCount"),g(e.threshold,"threshold"),g(e.weight,"weight"),e.threshold!==Number(t.threshold))throw new E({reason:"threshold must equal config.threshold"});if(e.weight>255)throw new E({reason:"weight exceeds u8 max"});if(e.signatureCount>l.maxSignatures)throw new E({reason:"too many selected signatures"});if(!Array.isArray(e.approvals))throw new E({reason:"approvals must be an array"});if(e.approvals.length>t.owners.length)throw new E({reason:"too many retained approvals"});if(e.signatureCount>e.approvals.length)throw new E({reason:"signatureCount exceeds retained approvals"});if(0===e.signatureCount!=(0===e.weight))throw new E({reason:"signatureCount and weight must both be zero or nonzero"});let r=new Map(t.owners.map(e=>[e.owner.toLowerCase(),Number(e.weight)])),i=[],s=new Set;for(let n of e.approvals){if("string"!=typeof n||!o.validate(n,{strict:!0}
3))throw new E({reason:"approval is invalid"});let a=function(e,t,r){let n=c.deserialize(t);if(c.assert({account:e,config:r,signatures:[n],type:"multisig"}),c.serialize(n).toLowerCase()!==t.toLowerCase())throw new E({reason:"approval is not canonical"});return n}(e.account,n,t),l=c.extractAddress({payload:e.hash,signature:a}).toLowerCase(),u=r.get(l);if(void 0===u)throw new E({reason:"approval is from a non-owner"});if(s.has(l))throw new E({reason:"keyAuthorization"===e.type?"key authorization contains duplicate owner approvals":"duplicate owner approval"});s.add(l),i.push(u)}if(!function(e,t,r){let n=Array.from({length:t+1},()=>new Set);for(let r of(n[0].add(0),e))for(let e=t;e>0;e--)for(let t of n[e-1])n[e].add(t+r);return n[t].has(r)}(i,e.signatureCount,e.weight))throw new E({reason:"weight is not reachable by signatureCount retained owner approvals"});if(0n===t.version&&!n.isEqual(l.getAddress(t),e.account))throw new E({reason:"initial config does not derive the operation account"})}(r,t),"transaction"===r.type)!function(e){if("keyAuthorization"in e&&void 0!==e.ke
3yAuthorization)throw new E({reason:"transaction operations cannot contain keyAuthorization"});let t=e.expiresAt,r=e.submissionId,n=e.transactionHash;if("pending"===e.status){if(void 0!==t||void 0!==r||void 0!==n)throw new E({reason:"pending transactions cannot contain submission fields"})}else if("submitting"===e.status){if(g(t,"expiresAt"),!a.validate(r??""))throw new E({reason:"submissionId is invalid"});if(r.toLowerCase()===e.hash.toLowerCase())throw new E({reason:"submissionId must differ from the operation hash"});if(void 0!==n)throw new E({reason:"submitting transactions cannot contain transactionHash"})}else if("success"===e.status){if(!a.validate(n??""))throw new E({reason:"transactionHash is invalid"});if(void 0!==t||void 0!==r)throw new E({reason:"successful transactions cannot contain submission fields"})}else throw new E({reason:"invalid transaction status"});if("pending"!==e.status&&(e.weight<e.threshold||0===e.signatureCount))throw new E({reason:"submitted transactions must have quorum"});if("string"!=typeof e.transaction)throw new E({reason:"transaction is invalid"});let i=u.deserialize(e.transaction);if(i.signature)throw new E({reason:"transaction must not contain an outer sender signature"});if(i.from&&i.from.toLowerCase()!==e.account.toLowerCase())throw new E({reason:"transaction sender does not match the operation account"});y(e,u.getSignPayload(i));let o=e.transaction.startsWith(u.feePayerMagic);if(u.serialize(i,o?i.from?{format:"feePayer",sender:i.from}:{format:"feePayer"}:{}).toLowerCase()!==e.transaction.toLowerCase())throw new E({reason:"transaction is not canonically serialized"})}(r);else if("keyAuthorization"===r.type)!function(e,t){if(void 0!==e.expiresAt||void 0!==e.submissionId||void 0!==e.transaction||void 0!==e.transactionHash)throw new E({reason:"key authorization operations cannot contain transaction fields"});if("pending"!==e.status&&"success"!==e.status)throw new E({reason:"invalid key authorization status"});if("success"===e.status&&(e.weight<e.threshold||0===e.signatureCount))throw new E({reason:"successful key authorizations must have quorum"});if("pending"===e.status&&e.weight>=e.threshold)throw new E({reason:"pending key authorizations cannot have quorum"});if("string"!=typeof e.keyAuthorization)throw new E({reason:"keyAuthorization is invalid"});let r=s.deserialize(e.keyAuthorization);if(!r.account||r.account.toLowerCase()!==e.account.toLowerCase())throw new E({reason:"key authorization account does not match the operation account"});let n=r.signature;if("pending"===e.status&&n)throw new E({reason:"pending key authorizations must be unsigned"});if("success"===e.status){if(n?.type!=="multisig")throw new E({reason:"successful key authorizations require a multisig signature"});if(n.account.toLowerCase()!==e.account.toLowerCase())throw new E({reason:"key authorization signature account does not match"});if(n.signatures.length!==e.signatureCount)throw new E({reason:"key authorization signatureCount does not match its signature"});if(function(e,t,r){let n=e.approvals.map(e=>c.deserialize(e));for(let e of t){let t=n.findIndex(t=>b(t,e));if(-1===t)throw new E({reason:"key authorization signature is not a retained approval"});n.splice(t,1)}let i=l.getSignPayload({account:e.account,config:e.config,payload:s.getSignPayload(r)}),a=t.map(e=>c.extractAddress({payload:i,signature:e}));for(let e=1;e<a.length;e++){let t=o.toBigInt(a[e-1]),r=o.toBigInt(a[e]);if(t===r)throw new E({reason:"key authorization contains duplicate owner approvals"});if(t>r)throw new E({reason:"key authorization approvals are not canonically ordered"})}}(e,n.signatures,r),!v(n.config,t))throw new E({reason:"key authorization config does not match"})}if(y(e,s.getSignPayload(r)),s.serialize(r).toLowerCase()!==e.keyAuthorization.toLowerCase())throw new E({reason:"keyAuthorization is not canonically serialized"})}(r,t);else throw new E({reason:"unknown operation type"});return r}catch(e){if(e instanceof E)throw e;throw new E({cause:e})}}async function p(e,t){let r=new Map(e.config.owners.map(e=>[e.owner.toLowerCase(),{address:e.owner,weight:Number(e.weight)}])),i=new Map;for(let t of e.approvals){let n=c.from(t);if("keychain"===n.type)throw new w({reason:"keychain signatures cannot approve a multisig operation"});let a="multisig"===n.type?n.account:c.extractAddress({payload:e.hash,signature:n}),o=r.get(a.toLowerCase());if(!o)throw new w({reason:`signature is from non-owner ${a}`});let s=a.toLowerCase(),l=i.get(s);l?l.signatures.push(n):i.set(s,{address:o.address,signatures:[n],weight:o.weight})}let a=[],o=[];for(let r of i.values()){let i=r.signatures.filter(e=>"multisig"===e.type);if(i.length>0){if(i.length!==r.signatures.length)throw new w({reason:`owner ${r.address} has conflicting signature types`});if(t.length>=l.maxNestingDepth||t.includes(r.address.toLowerCase()))throw new w({reason:`nested multisig owner ${r.address}
3 is invalid`});let s=l.from(i[0].config);if(i.some(e=>!v(e.config,s)))throw new w({reason:`nested multisig owner ${r.address} has conflicting config witnesses`});if(0n===s.version&&!n.isEqual(l.getAddress(s),r.address))throw new w({reason:`initial config does not derive nested multisig owner ${r.address}`});let u=await p({account:r.address,approvals:i.flatMap(e=>e.signatures.map(e=>c.serialize(e))),config:s,hash:l.getSignPayload({account:r.address,config:s,payload:e.hash})},[...t,r.address.toLowerCase()]);o.push({address:r.address,signature:c.serialize(c.from({account:r.address,config:s,signatures:u.approvals.map(e=>c.from(e))}))}),u.weight>=u.threshold&&a.push({address:r.address,signature:c.serialize(c.from({account:r.address,config:s,signatures:u.selectedApprovals.map(e=>c.from(e))})),weight:r.weight});continue}let s=r.signatures.map(t=>{if(!c.verify(t,{address:r.address,payload:e.hash}))throw new w({reason:`signature from owner ${r.address} is invalid`});return c.serialize(t)}).sort(m)[0];a.push({address:r.address,signature:s,weight:r.weight}),o.push({address:r.address,signature:s})}let s=a.sort((e,t)=>t.weight-e.weight||h(e,t)),u=[],d=0;for(let t of s.slice(0,l.maxSignatures)){if(d>=Number(e.config.threshold))break;u.push(t),d+=t.weight}return u.sort(h),{approvals:o.sort(h).map(e=>e.signature),selectedApprovals:u.map(e=>e.signature),signatureCount:u.length,threshold:Number(e.config.threshold),weight:d}}function h(e,t){let r=o.toBigInt(e.address),n=o.toBigInt(t.address);return r<n?-1:r>n?1:0}function m(e,t){let r=e.toLowerCase(),n=t.toLowerCase();return r<n?-1:r>n?1:0}function b(e,t){if("multisig"!==e.type||"multisig"!==t.type)return c.serialize(e).toLowerCase()===c.serialize(t).toLowerCase();if(e.account.toLowerCase()!==t.account.toLowerCase()||!v(e.config,t.config))return!1;let r=0;for(let n of t.signatures){for(;r<e.signatures.length&&!b(e.signatures[r],n);)r++;if(r===e.signatures.length)return!1;r++}return!0}function y(e,t){if(l.getSignPayload({account:e.account,config:e.config,payload:t}).toLowerCase()!==e.hash.toLowerCase())throw new E({reason:"hash does not match the operation payload"})}function g(e,t){if("number"!=typeof e||!Number.isSafeInteger(e)||e<0)throw new E({reason:`${t} must be a nonnegative safe integer`})}function v(e,t){let r=l.from(e),i=l.from(t);return o.isEqual(r.salt??l.zeroSalt,i.salt??l.zeroSalt)&&r.threshold===i.threshold&&r.version===i.version&&r.owners.length===i.owners.length&&r.owners.every((e,t)=>{let r=i.owners[t];return n.isEqual(e.owner,r.owner)&&e.weight===r.weight})}class w extends i.BaseError{constructor(e={}){super(e.reason?`Invalid multisig approval: ${e.reason}.`:"Invalid multisig approval.",{cause:e.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidApprovalError"})}}t.InvalidApprovalError=w;class E extends i.BaseError{constructor(e={}){super(e.reason?`Invalid multisig operation: ${e.reason}.`:"Invalid multisig operation.",{cause:e.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidOperationError"})}}t.InvalidOperationError=E},73631:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidSimulationError=void 0,t.fromRpc=function(e){let{account:t,approvals:r,config:n}=e;return l(r),{account:t,approvals:r.map(e=>"primitive"===e.type?e:(l(e.spec.approvals),{spec:{account:e.spec.account,approvals:e.spec.approvals,config:c(e.spec.config)},type:"multisig"})),config:c(n)}},t.toRpc=function(e){let{account:t,approvals:r,config:n}=e;return l(r),{account:t,approvals:r.map(e=>
3"primitive"===e.type?{...e,...void 0!==e.keyData?{keyData:d(e.keyData)}:{}}:(l(e.spec.approvals),{spec:{account:e.spec.account,approvals:e.spec.approvals.map(e=>({...e,...void 0!==e.keyData?{keyData:d(e.keyData)}:{}})),config:u(e.spec.config)},type:"multisig"})),config:u(n)}};let n=r(51392),i=r(73463),a=r(81522),o=r(79077),s=r(84690);function l(e){if(e.length>s.maxSignatures)throw new f({reason:`approval count exceeds ${s.maxSignatures}`})}function c(e){let t=o.toHex(e);if(!Array.isArray(t)||4!==t.length)throw new f({reason:"invalid config encoding"});let[r,i,l,c]=t;if(Array.isArray(r)||32!==a.size(r)||Array.isArray(i)||a.size(i)>8||"0x"!==i&&"0x00"===a.slice(i,0,1)||Array.isArray(l)||a.size(l)>1||!Array.isArray(c)||c.some(e=>!Array.isArray(e)||2!==e.length||e.some(Array.isArray)||!n.validate(e[0])||a.size(e[1])>1))throw new f({reason:"invalid config encoding"});let d=s.fromTuple(t);if(s.assert(d),!a.isEqual(e,u(d)))throw new f({reason:"noncanonical config encoding"});return d}function u(e){return o.fromHex(s.toTuple(e))}function d(e){let t=a.size(e);return t<=4?e:a.fromNumber(t,{size:2})}class f extends i.BaseError{constructor(e){super(`Invalid multisig simulation: ${e.reason}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigSimulation.InvalidSimulationError"})}}t.InvalidSimulationError=f},97557:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.days=function(e){return 86400*e},t.hours=function(e){return 3600*e},t.minutes=function(e){return 60*e},t.months=function(e){return 2592e3*e},t.seconds=function(e){return e},t.weeks=function(e){return 604800*e},t.years=function(e){return 31536e3*e}},32915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=function(e){return n.keccak256(i.concat(i.padLeft(a.toAddress(e.userToken),32),i.padLeft(a.toAddress(e.validatorToken),32)))};let n=r(39304),i=r(81522),a=r(4329)},89881:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e){let[t]=i.decode(s,e);return{version:t.version,token:t.token,recoveryAuthority:t.recoveryAuthority,originator:t.originator,recipient:t.recipient,blockedAt:t.blockedAt,blockedNonce:t.blockedNonce,blockedReason:a[t.blockedReason]??"none",kind:o[t.kind]??"transfer",memo:t.memo}},t.encode=c,t.from=function(e){return"string"==typeof e?e:c(e)},t.fromLog=u,t.fromTransactionReceipt=function(e){let t=n.getSelector(l),r=[];for(let n of e.logs??[])n.topics[0]===t&&r.push(u(n));return r};let n=r(55003),i=r(12600),a=["none","tokenFilter","receivePolicy"],o=["transfer","mint"],s=[{type:"tuple",components:[{name:"version",type:"uint8"},{name:"token",type:"address"},{name:"recoveryAuthority",type:"address"},{name:"originator",type:"address"},{name:"recipient",type:"address"},{name:"blockedAt",type:"uint64"},{name:"blockedNonce",type:"uint64"},{name:"blockedReason",type:"uint8"},{name:"kind",type:"uint8"},{name:"memo",type:"bytes32"}]}],l=n.from("event TransferBlocked(address indexed token, address indexed receiver, uint64 indexed blockedNonce, uint256 amount, uint8 receiptVersion, bytes receipt)");function c(e){return i.encode(s,[{version:e.version,token:e.token,recoveryAuthority:e.recoveryAuthority,originator:e.originator,recipient:e.recipient,blockedAt:e.blockedAt,blockedNonce:e.blockedNonce,blockedReason:a.indexOf(e.blockedReason),kind:o.indexOf(e.kind),memo:e.memo}])}function u(e){let{receipt:t}=n.decode(l,e);return t}},91959:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6013:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationError=t.InvalidMultisigApprovalError=t.InvalidSerializedError=t.MissingPropertiesError=t.CoercionError=t.types=t.magicBytes=void 0,t.assert=g,t.extractAddress=w,t.extractPublicKey=E,t.deserialize=x,t.from=A,t.fromRpc=function e(t){if("string"==typeof t){let e=a.concat(y,t),r=x(e);if("multisig"!==r.type||!a.isEqual(P(r),e))throw new _({reason:"invalid multisig RPC signature",serialized:t});return r}if("secp256k1"===t.type)return{signature:u.fromRpc(t),type:"secp256k1"};if("p256"===t.type)return{prehash:t.preHash,publicKey:{prefix:4,x:a.toBigInt(t.pubKeyX),y:a.toBigInt(t.pubKeyY)},signature:{r:a.toBigInt(t.r),s:a.toBigInt(t.s)},type:"p256"};if("webAuthn"===t.type){let e,r;let n=t.webauthnData,i=a.size(n);for(let t=37;t<i;t++){let i=a.toString(a.slice(n,t));if(i.startsWith("{")&&i.endsWith("}"))try{JSON.parse(i),e=a.slice(n,0,t),r=i;break}catch{}}if(!e||!r)throw new _({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:n});return{metadata:{authenticatorData:e,clientDataJSON:r},publicKey:{prefix:4,x:a.toBigInt(t.pubKeyX),y:a.toBigInt(t.pubKeyY)},signature:{r:a.toBigInt(t.r),s:a.toBigInt(t.s)},type:"webAuthn"}}if("keychain"===t.type||"userAddress"in t&&"signature"in t)return{type:"keychain",userAddress:t.userAddress,inner:e(t.signature),...t.keyId?{keyId:t.keyId}:{},...t.version?{version:t.version}:{}};throw new C({envelope:t})},t.getType=k,t.serialize=P,t.sortMultisigApprovals=function(e){let{account:t,config:r,payload:n,signatures:i}=e,o=f.getSignPayload({account:t,config:f.from(r),payload:n});return i.map(e=>({key:a.toBigInt(w({payload:o,signature:e})),signature:e})).sort((e,t)=>
3e.key<t.key?-1:e.key>t.key?1:0).map(e=>e.signature)},t.toRpc=function e(t){let r=k(t);if("secp256k1"===r)return{...u.toRpc(t.signature),type:"secp256k1"};if("p256"===r)return{preHash:t.prehash,pubKeyX:a.fromNumber(t.publicKey.x,{size:32}),pubKeyY:a.fromNumber(t.publicKey.y,{size:32}),r:a.fromNumber(t.signature.r,{size:32}),s:a.fromNumber(t.signature.s,{size:32}),type:"p256"};if("webAuthn"===r){let e=a.concat(t.metadata.authenticatorData,a.fromString(t.metadata.clientDataJSON));return{pubKeyX:a.fromNumber(t.publicKey.x,{size:32}),pubKeyY:a.fromNumber(t.publicKey.y,{size:32}),r:a.fromNumber(t.signature.r,{size:32}),s:a.fromNumber(t.signature.s,{size:32}),type:"webAuthn",webauthnData:e}}if("keychain"===r)return{type:"keychain",userAddress:t.userAddress,signature:e(t.inner),...t.keyId?{keyId:t.keyId}:{},...t.version?{version:t.version}:{}};if("multisig"===r)return a.slice(P(t),1);throw new C({envelope:t})},t.validate=function(e){try{return g(e),!0}catch{return!1}},t.verify=function(e,t){let{payload:r}=t,i=t.address?t.address:t.publicKey?n.fromPublicKey(t.publicKey):void 0;if(!i)return!1;let o=A(e);if("secp256k1"===o.type)return!!i&&c.verify({address:i,payload:r,signature:o.signature});if("p256"===o.type){let e=n.fromPublicKey(o.publicKey);return!!n.isEqual(e,i)&&s.verify({hash:o.prehash,publicKey:o.publicKey,payload:r,signature:o.signature})}if("webAuthn"===o.type){let e=n.fromPublicKey(o.publicKey);return!!n.isEqual(e,i)&&d.verify({challenge:a.from(r),metadata:o.metadata,publicKey:o.publicKey,signature:o.signature})}throw new S(`Unable to verify signature envelope of type "${o.type}".`)};let n=r(51392),i=r(73463),a=r(81522),o=r(43142),s=r(57414),l=r(79077),c=r(99177),u=r(9527),d=r(13837),f=r(84690),p="0x01",h="0x02",m="0x03",b="0x04",y="0x05";function g(e){let t=k(e);if("secp256k1"===t){u.assert(e.signature);return}if("p256"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),"boolean"!=typeof e.prehash&&t.push("prehash"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new T({envelope:e,missing:t,type:"p256"});return}if("webAuthn"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),e.metadata?(e.metadata.authenticatorData||t.push("metadata.authenticatorData"),e.metadata.clientDataJSON||t.push("metadata.clientDataJSON")):t.push("metadata"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new T({envelope:e,missing:t,type:"webAuthn"});return}if("keychain"===t){g(e.inner);return}if("multisig"===t){v(e,1);return}}function v(e,t){let r=[];if(e.account||r.push("account"),e.config||r.push("config"),Array.isArray(e.signatures)||r.push("signatures"),r.length>0)throw new T({envelope:e,missing:r,type:"multisig"});if(t>f.maxNestingDepth)throw new O({reason:`multisig nesting depth exceeds ${f.maxNestingDepth}`});if(!n.validate(e.account))throw new O({reason:"multisig account is invalid"});if(0n===a.toBigInt(e.account))throw new O({reason:"multisig account cannot be zero"});if(f.assert(e.config),e.config.owners.some(t=>n.isEqual(t.owner,e.account)))throw new O({reason:"multisig account cannot be an owner"});if(0n===e.config.version&&!n.isEqual(f.getAddress(e.config),e.account))throw new O({reason:"initial multisig config does not derive account"});if(0===e.signatures.length)throw new O({reason:"multisig signatures cannot be empty"});if(e.signatures.length>f.maxSignatures)throw new O({reason:`multisig signatures exceed ${f.maxSignatures}`});for(let r of e.signatures){let e=k(r);if("keychain"===e)throw new O({reason:"keychain owner approvals are not allowed"});if("multisig"===e)v(r,t+1);else if(g(r),a.size(P(r))>f.maxOwnerSignatureBytes)throw new O({reason:`multisig owner signature exceeds ${f.maxOwnerSignatureBytes} bytes`})}}function w(e){let{signature:t,root:r}=e;return"keychain"===t.type?r?t.userAddress:w({...e,signature:t.inner}):"multisig"===t.type?t.account:n.fromPublicKey(E(e))}function E(e){let{payload:t,signature:r}=e;switch(r.type){case"secp256k1":return c.recoverPublicKey({payload:t,signature:r.signature});case"p256":case"webAuthn":return r.publicKey;case"keychain":return E({payload:t,signature:r.inner});case"multisig":throw new C({envelope:r})}}function x(e){return function e(r,i){let o=r.endsWith(t.magicBytes.slice(2))?a.slice(r,0,-a.size(t.magicBytes)):r;if(65===a.size(o)){let e=u.fromHex(o);return u.assert(e),{signature:e,type:"secp256k1"}}let s=a.slice(o,0,1),c=a.slice(o,1),d=a.size(c);if(s===p){if(129!==d)throw new _({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${d} bytes`,serialized:o});return{publicKey:{prefix:4,x:a.toBigInt(a.slice(c,64,96)),y:a.toBigInt(a.slice(c,96,128))},prehash:0!==a.toNumber(a.slice(c,128,129)),signature:{r:a.toBigInt(a.slice(c,0,32)),s:a.toBigInt(a.slice(c,32,64))},type:"p256"}}if(s===h){let e,t;if(d<128)throw new _({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${d} bytes`,serialized:o});let r=d-128,n=a.slice(c,0,r);for(let i=37;i<r;i++){let r=a.toString(a.slice(n,i));if(r.startsWith("{")&&r.endsWith("}"))try{JSON.parse(r),e=a.slice(n,0,i),t=r;break}catch{}}if(!e||!t)throw new _({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:o});return{publicKey:{prefix:4,x:a.toBigInt(a.slice(c,r+64,r+96)),y:a.toBigInt(a.slice(c,r+96,r+128))},metadata:{authenticatorData:e,clientDataJSON:t},signature:{r:a.toBigInt(a.slice(c,r,r+32)),s:a.toBigInt(a.slice(c,r+32,r+64))},type:"webAuthn"}}if(s===m||s===b)return{userAddress:a.slice(c,0,20),inner:e(a.slice(c,20),i),type:"keychain",version:s===b?"v2":"v1"};if(s===y){let t=i+1;if(t>f.maxNestingDepth)throw new _({reason:`multisig nesting depth exceeds ${f.maxNestingDepth}`,serialized:o});let r=l.toHex(c);if(!Array.isArray(r)||3!==r.length)throw new _({reason:"invalid multisig wire shape: expected exactly three fields",serialized:o});let[s,u,d]=r;if(!n.validate(s))throw new _({reason:"invalid multisig account",serialized:o});if(!Array.isArray(u))throw new _({reason:"invalid multisig config",serialized:o});let[p,h,m,b]=u;if(4!==u.length||Array.isArray(p)||32!==a.size(p)||Array.isArray(h)||a.size(h)>8||"0x"!==h&&"0x00"===a.slice(h,0,1)||Array.isArray(m)||a.size(m)>1||!Array.isArray(b)||b.some(e=>
3!Array.isArray(e)||2!==e.length||e.some(Array.isArray)||!n.validate(e[0])||a.size(e[1])>1))throw new _({reason:"invalid multisig config",serialized:o});if(!Array.isArray(d)||d.some(Array.isArray))throw new _({reason:"invalid multisig signatures list",serialized:o});if(0===d.length)throw new _({reason:"multisig signatures cannot be empty",serialized:o});if(d.length>f.maxSignatures)throw new _({reason:`multisig signatures exceed ${f.maxSignatures}`,serialized:o});for(let e of d)if(a.size(e)>f.maxOwnerSignatureBytes&&a.slice(e,0,1)!==f.signatureTypeByte)throw new _({reason:`multisig owner signature exceeds ${f.maxOwnerSignatureBytes} bytes`,serialized:o});let y={account:s,config:f.fromTuple(u),signatures:d.map(r=>e(r,t)),type:"multisig"};return v(y,t),y}throw new _({reason:`Unknown signature type identifier: ${s}. Expected ${p} (P256), ${h} (WebAuthn), ${m} (Keychain V1), ${b} (Keychain V2), or ${y} (Multisig)`,serialized:o})}(e,0)}function A(e,t){if("string"==typeof e)return x(e);if("object"==typeof e&&null!==e&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};let r=k(e);if("multisig"===r){let t=f.from(e.config),n={account:e.account??f.getAddress(t),config:t,signatures:e.signatures.map(e=>A(e)),type:r};return g(n),n}return{...e,..."p256"===r?{prehash:e.prehash}:{},..."keychain"===r?{..."object"==typeof e&&null!==e&&"version"in e&&e.version?{}:{version:"v2"},..."object"==typeof e&&"keyId"in e&&e.keyId?{}:(()=>{let r=e.inner;return"p256"===r.type||"webAuthn"===r.type?{keyId:n.fromPublicKey(r.publicKey)}:"secp256k1"===r.type&&t?.payload?{keyId:n.fromPublicKey(c.recoverPublicKey({payload:t.payload,signature:r.signature}))}:{}})()}:{},type:r}}function k(e){if("object"!=typeof e||null===e)throw new C({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&"object"==typeof e.signature&&null!==e.signature&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&"boolean"==typeof e.prehash)return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";if("config"in e&&"signatures"in e)return"multisig";throw new C({envelope:e})}function P(e,r={}){let n=k(e);if("secp256k1"===n)return a.concat(u.toHex(e.signature),r.magic?t.magicBytes:"0x");if("p256"===n)return a.concat(p,a.fromNumber(e.signature.r,{size:32}),a.fromNumber(e.signature.s,{size:32}),a.fromNumber(e.publicKey.x,{size:32}),a.fromNumber(e.publicKey.y,{size:32}),a.fromNumber(e.prehash?1:0,{size:1}),r.magic?t.magicBytes:"0x");if("webAuthn"===n){let n=a.concat(e.metadata.authenticatorData,a.fromString(e.metadata.clientDataJSON));return a.concat(h,n,a.fromNumber(e.signature.r,{size:32}),a.fromNumber(e.signature.s,{size:32}),a.fromNumber(e.publicKey.x,{size:32}),a.fromNumber(e.publicKey.y,{size:32}),r.magic?t.magicBytes:"0x")}if("keychain"===n){let n="v1"===e.version?m:b;return a.concat(n,e.userAddress,P(e.inner),r.magic?t.magicBytes:"0x")}if("multisig"===n)return g(e),a.concat(y,l.fromHex([e.account,f.toTuple(e.config),e.signatures.map(e=>P(e))]),r.magic?t.magicBytes:"0x");throw new C({envelope:e})}t.magicBytes="0x7777777777777777777777777777777777777777777777777777777777777777",t.types=["secp256k1","p256","webAuthn"];class C extends i.BaseError{constructor({envelope:e}){super(`Unable to coerce value (\`${o.stringify(e)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}t.CoercionError=C;class T extends i.BaseError{constructor({envelope:e,missing:t,type:r}){super(`Signature envelope of type "${r}" is missing required properties: ${t.map(e=>`\`${e}\``).join(", ")}. 4 5Provided: ${o.stringify(e)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}}t.MissingPropertiesError=T;class _ extends i.BaseError{constructor({reason:e,serialized:t}){super(`Unable to deserialize signature envelope: ${e}`,{metaMessages:[`Serialized: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}}t.InvalidSerializedError=_;class O extends i.BaseError{constructor({reason:e}){super(`Invalid native multisig owner approval: ${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidMultisigApprovalError"})}}t.InvalidMultisigApprovalError=O;class S extends i.BaseError{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}}t.VerificationError=S},56047:function(e,t,r){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidPrefixError=void 0,t.resolve=o,t.format=function(e){let t=o(e);return`tempox${t.toLowerCase()}`},t.parse=s,t.validate=function(e){try{return s(e),!0}catch{return!1}};let n=r(51392),i=r(73463),a=r(81522);function o(e){return e.startsWith("tempo")?s(e).address:e}function s(e){if(!e.startsWith("tempox"))throw new l({address:e});let t=e.slice(6);return a.assert(t,{strict:!0}),{address:n.checksum(t)}}class l extends i.BaseError{constructor({address:e}){super(`Tempo address "${e}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}}t.InvalidPrefixError=l},28177:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PriceOutOfBoundsError=t.InvalidPriceFormatError=t.TickOutOfBoundsError=t.priceScale=t.maxTick=t.minTick=void 0,t.toPrice=function(e){if(e<t.minTick||e>t.maxTick)throw new i({tick:e});let r=t.priceScale+e,n=Math.floor(r/t.priceScale),a=(r%t.priceScale).toString().padStart(5,"0");return 0===(a=a.replace(/0+$/,"")).length?n.toString():`${n}.${a}`},t.fromPrice=function(e){let r=e.trim();if(!/^-?\d+(\.\d+)?$/.test(r))throw new a({price:e});let[n,i="0"]=r.split("."),s=BigInt(n),l=BigInt(i.padEnd(5,"0").slice(0,5)),c=Number(s*BigInt(t.priceScale)+l-BigInt(t.priceScale));if(c<t.minTick||c>t.maxTick)throw new o({price:e,tick:c});return c};let n=r(73463);t.minTick=-2e3,t.maxTick=2e3,t.priceScale=1e5;class i extends n.BaseError{constructor(e){super(`Tick ${e.tick} is out of bounds.`,{metaMessages:[`Tick must be between ${t.minTick} and ${t.maxTick}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Tick.TickOutOfBoundsError"})}}t.TickOutOfBoundsError=i;class a extends n.BaseError{constructor(e){super(`Invalid price format: "${e.price}".`,{metaMessages:['Price must be a decimal number string (e.g., "1.001").']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Tick.InvalidPriceFormatError"})}}t.InvalidPriceFormatError=a;class o extends n.BaseError{constructor(e){super(`Price "${e.price}" results in tick ${e.tick} which is out of bounds.`,{metaMessages:[`Tick must be between ${t.minTick} and ${t.maxTick}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Tick.PriceOutOfBoundsError"})}}t.PriceOutOfBoundsError=o},4329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=function(e){return"bigint"==typeof e||"number"==typeof e?BigInt(e):c(e)},t.fromAddress=c,t.toAddress=function(e){if("string"==typeof e){let t=s.resolve(e);return i.assert(t),t}let t=o.fromNumber(e,{size:18});return o.concat(l,t)},t.compute=function(e){let t=a.keccak256(n.encode(n.from("address, bytes32"),[s.resolve(e.sender),e.salt]));return o.toBigInt(o.slice(t,0,8))};let n=r(12600),i=r(51392),a=r(39304),o=r(81522),s=r(56047),l="0x20c0";function c(e){let t=s.resolve(e);if(!t.toLowerCase().startsWith(l))throw Error("invalid tip20 address.");return o.toBigInt(o.slice(t,l.length))}},91907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPreHashed=t.roles=void 0,t.serialize=function(e){return"defaultAdmin"===e?"0x0000000000000000000000000000000000000000000000000000000000000000":n.keccak256(i.fromString(t.toPreHashed[e]??e))};let n=r(39304),i=r(81522);t.roles=["defaultAdmin","pause","unpause","issuer","burnBlocked"],t.toPreHashed={defaultAdmin:"DEFAULT_ADMIN_ROLE",pause:"PAUSE_ROLE",unpause:"UNPAUSE_ROLE",issuer:"ISSUER_ROLE",burnBlocked:"BURN_BLOCKED_ROLE"}},98994:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpcType=t.toRpcType=void 0,t.fromRpc=function(e,r={}){if(!e)return null;let n=a.fromRpc(e);return n.type=t.fromRpcType[e.type],e.aaAuthorizationList&&(n.authorizationList=o.fromRpcList(e.aaAuthorizationList),delete n.aaAuthorizationList),e.calls&&(n.calls=e.calls.map(e=>({to:e.to,value:e.value&&"0x"!==e.value?BigInt(e.value):void 0,data:e.input||e.data||"0x"}
5))),e.feeToken&&(n.feeToken=e.feeToken),e.nonceKey&&(n.nonceKey=BigInt(e.nonceKey)),e.signature&&(n.signature=l.fromRpc(e.signature)),e.validAfter&&(n.validAfter=Number(e.validAfter)),e.validBefore&&(n.validBefore=Number(e.validBefore)),e.keyAuthorization&&(n.keyAuthorization=s.fromRpc(e.keyAuthorization)),e.feePayerSignature&&(n.feePayerSignature=i.fromRpc(e.feePayerSignature),n.feePayerSignature.v=i.yParityToV(n.feePayerSignature.yParity)),n},t.toRpc=function(e,r){let c=a.toRpc(e);return c.type=t.toRpcType[e.type],e.authorizationList&&(c.aaAuthorizationList=o.toRpcList(e.authorizationList)),e.calls&&(c.calls=e.calls.map(e=>({to:e.to,value:e.value?n.fromNumber(e.value):void 0,data:e.data}))),e.feeToken&&(c.feeToken=e.feeToken),e.keyAuthorization&&(c.keyAuthorization=s.toRpc(e.keyAuthorization)),e.feePayerSignature&&(c.feePayerSignature=i.toRpc(e.feePayerSignature),c.feePayerSignature.v=n.fromNumber(i.yParityToV(e.feePayerSignature?.yParity))),e.signature&&(c.signature=l.toRpc(e.signature)),"number"==typeof e.validAfter&&(c.validAfter=n.fromNumber(e.validAfter)),"number"==typeof e.validBefore&&(c.validBefore=n.fromNumber(e.validBefore)),c};let n=r(81522),i=r(9527),a=r(55214),o=r(64150),s=r(61199),l=r(6013);t.toRpcType={...a.toRpcType,tempo:"0x76"},t.fromRpcType={...a.fromRpcType,"0x76":"tempo"}},89438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRpcType=t.fromRpcType=void 0,t.fromRpc=function(e){return n.fromRpc(e)},t.toRpc=function(e){return{...n.toRpc(e),feePayer:e.feePayer,feeToken:e.feeToken}};let n=r(11257);t.fromRpcType={...n.fromRpcType,"0x76":"tempo"},t.toRpcType={...n.toRpcType,tempo:"0x76"}},66284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRpc=function(e){let{authorizationList:t,multisigSimulation:r,...l}=e,c=i.fromRpc(l);return void 0!==e.type&&(c.type=u.fromRpcType[e.type]||c.type),e.authorizationList&&(c.authorizationList=a.fromRpcList(e.authorizationList)),e.calls&&(c.calls=e.calls.map(e=>{let t={to:e.to,data:e.data};return e.value&&"0x"!==e.value&&(t.value=n.toBigInt(e.value)),t})),void 0!==e.feeToken&&(c.feeToken=e.feeToken),e.keyAuthorization&&(c.keyAuthorization=o.fromRpc(e.keyAuthorization)),e.multisigSimulation&&(c.multisigSimulation=s.fromRpc(e.multisigSimulation)),void 0!==e.validBefore&&(c.validBefore=n.toNumber(e.validBefore)),void 0!==e.validAfter&&(c.validAfter=n.toNumber(e.validAfter)),void 0!==e.nonceKey&&(c.nonceKey=n.toBigInt(e.nonceKey)),c},t.toRpc=function(e){let t=i.toRpc({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=a.toRpcList(e.authorizationList)),e.calls?t.calls=e.calls.map(e=>({to:e.to?l.resolve(e.to):e.to,value:e.value?n.fromNumber(e.value):"0x",data:e.data??"0x"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?l.resolve(e.to):void 0,value:e.value?n.fromNumber(e.value):"0x",data:e.data??"0x"}]),void 0!==e.feeToken&&(t.feeToken=c.toAddress(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=o.toRpc(e.keyAuthorization)),e.multisigSimulation&&(t.multisigSimulation=s.toRpc(e.multisigSimulation)),void 0!==e.validBefore&&(t.validBefore=n.fromNumber(e.validBefore)),void 0!==e.validAfter&&(t.validAfter=n.fromNumber(e.validAfter));let r="random"===e.nonceKey?n.random(6):"bigint"==typeof e.nonceKey?n.fromNumber(e.nonceKey):void 0;return r&&(t.nonceKey=r),(void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.ke
5yAuthorization||void 0!==e.multisigSimulation||void 0!==e.nonceKey||void 0!==e.validBefore||void 0!==e.validAfter||"tempo"===e.type)&&(t.type=u.toRpcType.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t};let n=r(81522),i=r(99815),a=r(64150),o=r(61199),s=r(73631),l=r(56047),c=r(4329),u=r(98994)},225:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidValidityWindowError=t.CallsEmptyError=t.type=t.serializedType=t.feePayerMagic=void 0,t.assert=y,t.deserialize=g,t.from=v,t.serialize=w,t.encodeForSigning=E,t.getSignPayload=x,t.hash=A,t.getFeePayerSignPayload=function(e,t){let r=m.resolve(t.sender),n=w({...e,signature:void 0},{sender:r,format:"feePayer"});return o.keccak256(n)},t.validate=function(e){try{return y(e),!0}catch{return!1}};let n=r(62963),i=r(51392),a=r(73463),o=r(39304),s=r(81522),l=r(79077),c=r(99177),u=r(9527),d=r(86136),f=r(64150),p=r(61199),h=r(6013),m=r(56047),b=r(4329);function y(e){let{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:a,validBefore:o,validAfter:s}=e;if(!t||0===t.length)throw new k;if("number"==typeof o&&"number"==typeof s&&o<=s)throw new P({validBefore:o,validAfter:s});if(t)for(let e of t)e.to&&i.assert(e.to,{strict:!1});if(r<=0)throw new d.InvalidChainIdError({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new d.FeeCapTooHighError({feeCap:n});if(a&&n&&a>n)throw new d.TipAboveFeeCapError({maxFeePerGas:n,maxPriorityFeePerGas:a})}function g(e){let r=l.toHex(s.slice(e,1)),[a,o,c,m,b,g,w,E,A,k,P,C,T,_,O]=r,S=Array.isArray(_)?_:void 0,I=S?O:_;if(!(13===r.length||14===r.length||15===r.length))throw new d.InvalidSerializedError({attributes:{authorizationList:T,chainId:a,maxPriorityFeePerGas:o,maxFeePerGas:c,gas:m,calls:b,accessList:g,keyAuthorization:S,nonceKey:w,nonce:E,validBefore:A,validAfter:k,feeToken:P,feePayerSignatureOrSender:C,...r.length>12?{signature:I}:{}},serialized:e,type:t.type});let B={chainId:Number(a),type:t.type};s.validate(m)&&"0x"!==m&&(B.gas=BigInt(m)),s.validate(E)&&(B.nonce="0x"===E?0n:BigInt(E)),s.validate(c)&&"0x"!==c&&(B.maxFeePerGas=BigInt(c)),s.validate(o)&&"0x"!==o&&(B.maxPriorityFeePerGas=BigInt(o)),s.val
5idate(w)&&(B.nonceKey="0x"===w?0n:BigInt(w)),s.validate(A)&&"0x"!==A&&(B.validBefore=Number(A)),s.validate(k)&&"0x"!==k&&(B.validAfter=Number(k)),s.validate(P)&&"0x"!==P&&(B.feeToken=P),b&&"0x"!==b&&(B.calls=b.map(e=>{let[t,r,n]=e,i={};return t&&"0x"!==t&&(i.to=t),r&&"0x"!==r&&(i.value=BigInt(r)),n&&"0x"!==n&&(i.data=n),i})),g?.length!==0&&"0x"!==g&&(B.accessList=n.fromTupleList(g)),T?.length!==0&&"0x"!==T&&(B.authorizationList=f.fromTupleList(T)),"0x"!==C&&void 0!==C&&("0x00"===C||i.validate(C)?(B.feePayerSignature=null,i.validate(C)&&(B.from=C)):B.feePayerSignature=u.fromTuple(C)),S&&(B.keyAuthorization=p.fromTuple(S));let j=I?h.deserialize(I):void 0;if(j&&(B={...B,signature:j}),!B.from&&j)try{B.from=h.extractAddress({payload:x(v(B)),signature:j,root:!0})}catch{}return y(B),B}function v(e,t={}){let{feePayerSignature:r,signature:n}=t,i="string"==typeof e?g(e):e;return i.from&&(i.from=m.resolve(i.from)),i.calls&&(i.calls=i.calls.map(e=>({...e,...e.to?{to:m.resolve(e.to)}:{}}))),y(i),{...i,...n?{signature:h.from(n)}:{},...r?{feePayerSignature:u.from(r)}:{},type:"tempo"}}function w(e,r={}){let{accessList:a,authorizationList:o,calls:d,chainId:g,feeToken:w,gas:E,keyAuthorization:A,nonce:k,nonceKey:P,maxFeePerGas:C,maxPriorityFeePerGas:T,validBefore:_,validAfter:O}=e;y(e);let S=n.toTupleList(a),I=r.signature||e.signature,B=f.toTupleList(o),j=d.map(e=>[e.to?m.resolve(e.to):"0x",e.value?s.fromNumber(e.value):"0x",e.data??"0x"]),M=!1,R=(()=>{if(r.sender)return r.sender;if("feePayer"===r.format&&I){let t=h.from(I);if("keychain"===t.type)return t.userAddress;if("p256"===t.type||"webAuthn"===t.type)return i.fromPublicKey(t.publicKey);if("secp256k1"===t.type)return c.recoverAddress({payload:x(v(e)),signature:t.signature})}let t=void 0!==r.feePayerSignature?r.feePayerSignature:e.feePayerSignature;return null===t?(M=!0,"0x00"):t?u.toTuple(t):"0x"})(),N=[s.fromNumber(g),T?s.fromNumber(T):"0x",C?s.fromNumber(C):"0x",E?s.fromNumber(E):"0x",j,S,P?s.fromNumber(P):"0x",k?s.fromNumber(k):"0x","number"==typeof _?s.fromNumber(_):"0x","number"==typeof O?s.fromNumber(O):"0x",M||"bigint"!=typeof w&&"string"!=typeof w?"0x":b.toAddress(w),R,B,...A?[p.toTuple(A)]:[],...I?[h.serialize(h.from(I))]:[]];return s.concat("feePayer"===r.format?t.feePayerMagic:t.serializedType,l.fromHex(N))}function E(e){return w({...e,signature:void 0,...void 0!==e.feePayerSignature?{feePayerSignature:null}:{}})}function x(e,t={}){let r=A(e,{presign:!0});return t.from?o.keccak256(s.concat("0x04",r,m.resolve(t.from))):r}function A(e,t={}){let r=t.presign?E(e):w(e);return o.keccak256(r)}t.feePayerMagic="0x78",t.serializedType="0x76",t.type="tempo";class k extends a.BaseError{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}t.CallsEmptyError=k;class P extends a.BaseError{constructor({validBefore:e,validAfter:t}){super(`validBefore (${e}) must be greater than validAfter (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}t.InvalidValidityWindowError=P},67293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidMagicError=t.magic=void 0,t.from=function(e){return n.from(o.concat(d(e.masterId,4),t.magic,d(e.userTag,6)))},t.isVirtual=function(e){try{let r=u(e);return o.slice(r,4,14).toLowerCase()===t.magic}catch{return!1}},t.parse=l,t.validate=function(e){try{return l(e),!0}catch{return!1}};let n=r(51392),i=r(16827),a=r(73463),o=r(81522),s=r(56047);function l(e){let r=u(e);if(o.slice(r,4,14).toLowerCase()!==t.magic)throw new c({address:r});return{masterId:o.slice(r,0,4),userTag:o.slice(r,14,20)}}t.magic="0xfdfdfdfdfdfdfdfdfdfd";class c extends a.BaseError{constructor({address:e}){super(`Address "${e}" does not contain the TIP-1022 virtual address marker.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"VirtualAddress.InvalidMagicError"})}}function u(e){let t=s.resolve(e);return n.assert(t,{strict:!1}),t}function d(e,t){return"number"==typeof e||"bigint"==typeof e?o.fromNumber(e,{size:t}):"string"==typeof e?(o.assert(e,{strict:!0}),o.padLeft(e,t)):o.fromBytes(i.padLeft(e,t))}t.InvalidMagicError=c},8659:function(e,t,r){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.getRegistrationHash=f,t.getMasterId=function(e){return l.slice(f(e),4,8)},t.validateSalt=function(e){try{var t;return t=s.keccak256(l.concat(v(e.address),w(e.salt,32)),{as:"Bytes"}),0===t[0]&&0===t[1]&&0===t[2]&&0===t[3]}catch{return!1}},t.mineSalt=p,t.mineSaltAsync=h;let n=r(70613),i=r(51392),a=r(16827),o=r(73463),s=r(39304),l=r(81522),c=r(82171),u=r(56047),d=r(67293);function f(e){return s.keccak256(l.concat(v(e.address),w(e.salt,32)))}function p(e){var t;let r=e.count??4294967296;g(r);let i=a.fromHex(v(e.address)),o=new Uint8Array(i.length+32);o.set(i);let s=o.subarray(i.length);s.set((t=e.start??0n,a.fromHex(w(t,32))));for(let e=0;e<r;e++){let t=(0,n.keccak_256)(o);if(0===t[0]&&0===t[1]&&0===t[2]&&0===t[3])return{masterId:l.fromBytes(t.subarray(4,8)),registrationHash:l.fromBytes(t),salt:l.fromBytes(s)};if(e<r-1&&!function(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(255===r){e[t]=0;continue}return e[t]=r+1,!0}return!1}(s))break}}async function h(e){let{chunkSize:t=1e5,count:r=4294967296,onProgress:n,signal:i,start:a=0n,workers:s=function(){if("undefined"!=typeof navigator){let e=navigator.hardwareConcurrency;if(e&&e>1)return e-1}return 1}()}=e,l=v(e.address),u=w(a,32);g(r),void 0!==s&&function(e){if(!Number.isSafeInteger(e)||!(e>=0))throw new o.BaseError(`Workers "${e}" is invalid. Expected a non-negative safe integer.`)}(s),y(i);let d=Math.max(1,Math.min(s,Math.ceil(r/t)));if(d<=1)return m({address:l,chunkSize:t,count:r,onProgress:n,signal:i,start:u});let f=await c.resolve();return f?function(e){let t=Date.now();return new Promise((r,n)=>{let i=!1,a=0,s=0,l=[],c=()=>{if(!e.onProgress)return;let r=Date.now()-t,n=r/1e3;e.onProgress({attempts:a,chunkSize:e.chunkSize,count:e.count,elapsed:r,progress:Math.min(1,a/e.count),rate:0===n?0:a/n,workers:e.workerCount})},u=()=>{for(let e of l)e.terminate()},d=t=>{i||(i=!0,e.signal?.removeEventListener("abort",h),u(),r(t))},f=t=>{i||(i=!0,e.signal?.removeEventListener("abort",h),u(),n(t instanceof Error?t:new o.BaseError("Failed to mine virtual master salt.")))},p=t=>{if(!i)switch(t.type){case"found":d(t.result);return;case"progress":a+=t.attempts,c();return;case"done":++s===e.workerCount&&d(void 0);return;case"error":f(new o.BaseError(t.message));return}},h=()=>f(b(e.signal));e.signal?.addEventListener("abort",h,{once:!0});for(let t=0;t<e.workerCount;t++){let r=e.pool.spawn(t,p,f);l.push(r),r.postMessage({type:"start",address:e.address,chunkSize:e.chunkSize,count:e.count,start:e.start,workerCount:e.workerCount,workerIndex:t})}})}({address:l,chunkSize:t,count:r,onProgress:n,pool:f,signal:i,start:u,workerCount:d}):m({address:l,chunkSize:t,count:r,onProgress:n,signal:i,start:u})}async function m(e){let t=Date.now(),r=BigInt(e.start);for(let n=0;n<e.count;n+=e.chunkSize){y(e.signal);let i=Math.min(e.chunkSize,e.count-n),a=p({address:e.address,count:i,start:r+BigInt(n)});if(e.onProgress){let r=Math.min(e.count,n+i),a=Date.now()-t,o=a/1e3;e.onProgress({attempts:r,chunkSize:e.chunkSize,count:e.count,elapsed:a,progress:Math.min(1,r/e.count),rate:0===o?0:r/o,workers:1})}if(a)return a;await new Promise(e=>setTimeout(e,0))}}function b(e){let t=e?.reason;return t instanceof Error?t:new o.BaseError("The operation was aborted.")}function y(e){if(e?.aborted)throw b(e)}function g(e){if(!Number.isSafeInteger(e)||!(e>0))throw new o.BaseError(`Count "${e}" is invalid. Expected a positive safe integer.`)}function v(e){let t=u.resolve(e);return i.assert(t,{strict:!1}),function(e){let t=e.toLowerCase();if("0x0000000000000000000000000000000000000000"===t)throw new o.BaseError("Virtual master address cannot be the zero address.");if(d.isVirtual(e))throw new o.BaseError("Virtual master address cannot itself be a virtual address.");if(t.startsWith("0x20c000000000000000000000"))throw new o.BaseError("Virtual master address cannot be a TIP-20 token address.")}(t),t}function w(e,t){return"number"==typeof e||"bigint"==typeof e?l.fromNumber(e,{size:t}):"string"==typeof e?(l.assert(e,{strict:!0}),l.padLeft(e,t)):l.fromBytes(a.padLeft(e,t))}},86799:function(e,t,r){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedSourceIdError=t.chainIdBase=void 0,t.fromChainId=function(e,t=4217){return e-o(t).base},t.toChainId=function(e,t=4217){let{base:r,range:n}=o(t);return r+e%n};let n=r(73463),i={4217:{base:4217e5,range:100261e4},42431:{base:142431e4,range:723173648}};t.chainIdBase=i[4217].base;class a extends n.BaseError{constructor({sourceId:e}){super(`Source chain ID "${e}" is not supported.`,{metaMessages:["Supported source chain IDs: 4217, 42431."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ZoneId.UnsupportedSourceIdError"})}}function o(e){if(4217===e||42431===e)return i[e];throw new a({sourceId:e})}t.UnsupportedSourceIdError=a},18073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingSignatureError=t.InvalidSerializedError=t.version=t.fieldsSize=t.magicBytes=t.headerName=void 0,t.from=function(e,r={}){let n={...e,version:t.version};return r.signature?{...n,signature:o.from(r.signature)}:n},t.deserialize=function(e){let r=a.size(e);if(r<=t.fieldsSize)throw new u({reason:`Serialized authentication must be longer than ${t.fieldsSize} bytes.`,serialized:e});let n=r-t.fieldsSize,i=a.slice(e,0,n),s=a.slice(e,n),l=a.toNumber(a.slice(s,0,1),{size:1});if(l!==t.version)throw new u({reason:`Unsupported authentication version "${l}". Expected "${t.version}".`,serialized:e});return{chainId:a.toNumber(a.slice(s,5,13),{size:8}),expiresAt:a.toNumber(a.slice(s,21,29),{size:8}),issuedAt:a.toNumber(a.slice(s,13,21),{size:8}),signature:o.deserialize(i),version:t.version,zoneId:a.toNumber(a.slice(s,1,5),{size:4})}},t.getFields=l,t.getSignPayload=function(e,t={}){let r=c(e);return t.userAddress?i.keccak256(a.concat("0x04",r,s.resolve(t.userAddress))):r},t.hash=c,t.serialize=function(e,t={}){let r=t.signature||e.signature;if(!r)throw new d;return a.concat(o.serialize(o.from(r)),l(e))};let n=r(73463),i=r(39304),a=r(81522),o=r(6013),s=r(56047);function l(e){return a.concat(a.fromNumber(t.version,{size:1}),a.fromNumber(e.zoneId,{size:4}),a.fromNumber(e.chainId,{size:8}),a.fromNumber(e.issuedAt,{size:8}),a.fromNumber(e.expiresAt,{size:8}))}function c(e){return i.keccak256(a.concat(t.magicBytes,l(e)))}t.headerName="X-Authorization-Token",t.magicBytes="0x54656d706f5a6f6e655250430000000000000000000000000000000000000000",t.fieldsSize=29,t.version=0;class u extends n.BaseError{constructor({reason:e,serialized:t}){super(`Unable to deserialize Zone RPC authentication: ${e}`,{metaMessages:[`Serialized: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ZoneRpcAuthentication.InvalidSerializedError"})}}t.InvalidSerializedError=u;class d extends n.BaseError{constructor(){super("Zone RPC authentication is missing a signature."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ZoneRpcAuthentication.MissingSignatureError"})}}t.MissingSignatureError=d},77664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoneRpcAuthentication=t.ZoneId=t.VirtualMaster=t.VirtualAddress=t.TxEnvelopeTempo=t.TransactionRequest=t.TransactionReceipt=t.Transaction=t.TokenRole=t.TokenId=t.Tick=t.TempoAddress=t.SignatureEnvelope=t.RpcSchemaTempo=t.ReceivePolicyReceipt=t.PoolId=t.Period=t.MultisigSimulation=t.MultisigOperation=t.MultisigConfig=t.KeyAuthorization=t.EarnShares=t.Channel=t.AuthorizationTempo=void 0,t.AuthorizationTempo=r(64150),t.Channel=r(4193),t.EarnShares=r(10557),t.KeyAuthorization=r(61199),t.MultisigConfig=r(84690),t.MultisigOperation=r(71747),t.MultisigSimulation=r(73631),t.Period=r(97557),t.PoolId=r(32915),t.ReceivePolicyReceipt=r(89881),t.RpcSchemaTempo=r(91959),t.SignatureEnvelope=r(6013),t.TempoAddress=r(56047),t.Tick=r(28177),t.TokenId=r(4329),t.TokenRole=r(91907),t.Transaction=r(98994),t.TransactionReceipt=r(89438),t.TransactionRequest=r(66284),t.TxEnvelopeTempo=r(225),t.VirtualAddress=r(67293),t.VirtualMaster=r(8659),t.ZoneId=r(86799),t.ZoneRpcAuthentication=r(18073)},97492:function(e,t){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.dataOffset=t.wasmBase64=void 0,t.wasmBase64="AGFzbQEAAAABBgFgAX8BfwMCAQAFAwEAAgcRAgZtZW1vcnkCAARtaW5lAAAMAQEKjxABjBACA38ufgJAIABBAEwNAEGQCDEAAEGRCDEAAEIIhoRBkggxAABCEIaEQZMIMQAAQhiGhCEtQYgIMQAAQYkIMQAAQgiGhEGKCDEAAEIQhoRBiwgxAABCGIaEQYwIMQAAQiCGhEGNCDEAAEIohoRBjggxAABCMIaEQY8IMQAAQjiGhCEuQYAIMQAAQYEIMQAAQgiGhEGCCDEAAEIQhoRBgwgxAABCGIaEQYQIMQAAQiCGhEGFCDEAAEIohoRBhggxAABCMIaEQYcIMQAAQjiGhCEvA0BBsAg1AgBCgICAgBCEIQ9BlAg1AgBCIIYgLYQhB0GoCCkDACEQQaAIKQMAIRFBmAgpAwAhCkKAgICAgICAgIB/IRJCACETQcB+IQEgLiELQgAhFEIAIRVCACEWQgAhF0IAIRhCACEZQgAhGkIAIRtCACEcIC8hCUIAIR1CACEeQgAhDEIAIR9CACENQgAhIEIAIQ4DQCAJIBCFIB2FIB6FIAyFIgQgByAZhSAahSAbhSAchSIIQgGJhSIGIA+FIAogH4UgDYUgIIUgDoUiBSAEQgGJhSIEIBiFITEgBiAVhUICiSIjIAcgBUIBiSALIA+FIBSFIBKFIBWFIgWFIgeFQj6JIiFCf4UgCCARIBaFIBeFIBOFIBiFIg9CAYmFIgggH4VCN4kiIoOFIRggDyAFQgGJhSIFIB6FQimJIiUgBCAXhUIniSIkQn+FgyAihSEVIAYgFIVCCokiJyAIIA6FQjiJIg4gByAbhUIPiSImQn+Fg4UhGyAEIBGFQhuJIikgJyAFIBCFQiSJIihCf4WDhSEeIAUgDIVCEokiLCAHIBmFQgaJIisgBiALhUIBiSIqQn+Fg4UhFyAIIA2FQhmJIgxCf4UgBCAThUIIiSINgyArhSEUIAggCoVCHIkiC0J/hSAEIBaFQhSJIgqDIAcgHIVCPYkiBIUhFiAGIBKFQi2JIgYgCyAEQn+Fg4UhHyAEIAZCf4WDIAUgHYVCA4kiBIUhGSAKIAYgBEJ/hYOFIQ8gBCAKQn+FgyALhSEQIAUgCYUiBCAxQg6JIgZCf4WDIAggIIVCFYkiCYUhCiAHIBqFQiuJIgggBiAJQn+Fg4UhB0IsiSIFIAkgCEJ/hYOFIQsgAUHAgQRqKQMAIAggBUJ/hYOFIASFIQkgJiAnQn+FgyAohSESIAYgBSAEQn+Fg4UhESAoIClCf4WDIA6FIRMgLCANQn+FgyAMhSEaICQgIyAlQn+Fg4UhHCAMICtCf4WDICqFIR0gJCAiQn+FgyAhhSEMIA0gKiAsQn+Fg4UhDSApIA5Cf4WDICaFISAgISAjQn+FgyAlhSEOIAFBCGoiAQ0ACwJAAkACQCAJpwRAQbMILQAAIgFB/wFHBEBBswghAgwCC0GzCEEAOgAAQbIILQAAIgFB/wFHBEBBsgghAgwCC0GyCEEAOgAAQbEILQAAIgFB/wFHBEBBsQghAgwCC0GxCEEAOgAAQbAILQAAIgFB/wFHBEBBsAghAgwCC0GwCEEAOgAAQa8ILQAAIgFB/wFHBEBBrwghAgwCC0GvCEEAOgAAQa4ILQAAIgFB/wFHBEBBrgghAgwCC0GuCEEAOgAAQa0ILQAAIgFB/wFHBEBBrQghAgwCC0GtCEEAOgAAQawILQAAIgFB/wFHBEBBrAghAgwCC0GsCEEAOgAAQasILQAAIgFB/wFHBEBBqwghAgwCC0GrCEEAOgAAQaoILQAAIgFB/wFHBEBBqgghAgwCC0GqCEEAOgAAQakILQAAIgFB/wFHBEBBqQghAgwCC0GpCEEAOgAAQagILQAAIgFB/wFHBEBBqAghAgwCC0GoCEEAOgAAQacILQAAIgFB/wFHBEBBpwghAgwCC0GnCEEAOgAAQaYILQAAIgFB/wFHBEBBpgghAgwCC0GmCEEAOgAAQaUILQAAIgFB/wFHBEBBpQghAgwCC0GlCEEAOgAAQaQILQAAIgFB/wFHBEBBpAghAgwCC0GkCEEAOgAAQaMILQAAIgFB/wFHBEBBowghAgwCC0GjCEEAOgAAQaIILQAAIgFB/wFHBEBBogghAgwCC0GiCEEAOgAAQaEILQAAIgFB/wFHBEBBoQghAgwCC0GhCEEAOgAAQaAILQAAIgFB/wFHBEBBoAghAgwCC0GgCEEAOgAAQZ8ILQAAIgFB/wFHBEBBnwghAgwCC0GfCEEAOgAAQZ4ILQAAIgFB/wFHBEBBngghAgwCC0GeCEEAOgAAQZ0ILQAAIgFB/wFHBEBBnQghAgwCC0GdCEEAOgAAQZwILQAAIgFB/wFHBEBBnAghAgwCC0GcCEEAOgAAQZsILQAAIgFB/wFHBEBBmwghAgwCC0GbCEEAOgAAQZoILQAAIgFB/wFHBEBBmgghAgwCC0GaCEEAOgAAQZkILQAAIgFB/wFHBEBBmQghAgwCC0GZCEEAOgAAQZgILQAAIgFB/wFHBEBBmAghAgwCC0GYCEEAOgAAQZcILQAAIgFB/wFHBEBBlwghAgwCC0GXCEEAOgAAQZYILQAAIgFB/wFHBEBBlgghAgwCC0GWCEEAOgAAQZUILQAAIgFB/wFHBEBBlQghAgwCC0GVCEEAOgAAQZQILQAAIgFB/wFGDQJBlAghAgwBC0G0CCAJNwIAQbwIIAs3AgBBxAggBzcCAEHMCCAKNwIAQQEhAQwECyACIAFBAWo6AAAMAQtBlAhBADoAAAsgA0EBaiIDIABHDQALQQAPCyABCwvJAQEAQYCABAvAAQEAAAAAAAAAgoAAAAAAAACKgAAAAAAAgACAAIAAAACAi4AAAAAAAAABAACAAAAAAIGAAIAAAACACYAAAAAAAICKAAAAAAAAAIgAAAAAAAAACYAAgAAAAAAKAACAAAAAAIuAAIAAAAAAiwAAAAAAAICJgAAAAAAAgAOAAAAAAACAAoAAAAAAAICAAAAAAAAAgAqAAAAAAAAACgAAgAAAAICBgACAAAAAgICAAAAAAACAAQAAgAAAAAAIgACAAAAAgACUAQ90YXJnZXRfZmVhdHVyZXMIKw9tdXRhYmxlLWdsb2JhbHMrE25vbnRyYXBwaW5nLWZwdG9pbnQrC2J1bGstbWVtb3J5KwhzaWduLWV4dCsPcmVmZXJlbmNlLXR5cGVzKwptdWx0aXZhbHVlKw9idWxrLW1lbW9yeS1vcHQrFmNhbGwtaW5kaXJlY3Qtb3Zlcmxvbmc=",t.dataOffset=1024},82171:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=o,t.resolveNode=s,t.resolveBrowser=l;let i=r(73463),a=void 0!==globalThis.process&&"string"==typeof globalThis.process.versions?.node;async function o(){return n||(n=a?await s():await l())}async function s(){let{Worker:e}=await Promise.resolve("node:worker_threads").then(e=>r(27724)(e)),{wasmBase64:t}=await Promise.resolve().then(()=>r(97492)),n=` 6'use strict' 7var { parentPort, workerData } = require('node:worker_threads') 8 9${c()} 10 11async function main() { 12 var binary = Buffer.from(workerData.wasmBase64, 'base64') 13 var { instance } = await WebAssembly.instantiate(binary) 14 var wasm = instance.exports 15 var mem = new Uint8Array(wasm.memory.buffer) 16 17 parentPort.on('message', function(data) { 18 if (data.type !== 'start') return 19 mineLoop(data, wasm, mem, function(msg) { parentPort.postMessage(msg) }) 20 }) 21} 22 23main().catch(function(error) { 24 parentPort.postMessage({ type: 'error', message: error && error.message || String(error) }) 25}) 26`;
26return{spawn(r,a,o){let s=new e(n,{eval:!0,workerData:{wasmBase64:t,workerIndex:r}});return s.on("message",e=>a(e)),s.on("error",e=>o(e)),s.on("exit",e=>{0!==e&&o(new i.BaseError(`A salt mining worker exited with code "${e}".`))}),{postMessage(e){s.postMessage(e)},terminate(){s.terminate().catch(()=>{})}}}}}async function l(){if(void 0===globalThis.Worker||void 0===globalThis.Blob)return;let{wasmBase64:e}=await Promise.resolve().then(()=>r(97492)),t=new Blob([` 27'use strict' 28 29${c()} 30 31var binary = Uint8Array.from(atob(${JSON.stringify(e)}), function(c) { return c.charCodeAt(0) }) 32 33WebAssembly.instantiate(binary).then(function(result) { 34 var wasm = result.instance.exports 35 var mem = new Uint8Array(wasm.memory.buffer) 36 37 self.onmessage = function(e) { 38 if (e.data.type !== 'start') return 39 mineLoop(e.data, wasm, mem, function(msg) { self.postMessage(msg) }) 40 } 41}).catch(function(error) { 42 self.postMessage({ type: 'error', message: error && error.message || String(error) }) 43}) 44`],{type:"application/javascript"}),n=URL.createObjectURL(t);return{spawn(e,t,r){let i=new globalThis.Worker(n);return i.onmessage=e=>t(e.data),i.onerror=e=>r(e.error),{postMessage(e){i.postMessage(e)},terminate(){i.terminate()}}}}}function c(){return` 45var dataOffset = 1024 46 47function hexToBytes(hex) {
48 var h = hex.startsWith('0x') ? hex.slice(2) : hex 49 var bytes = new Uint8Array(h.length / 2) 50 for (var i = 0; i < bytes.length; i++) 51 bytes[i] = parseInt(h.slice(i * 2, i * 2 + 2), 16) 52 return bytes 53} 54 55function bytesToHex(bytes) { 56 var hex = '0x' 57 for (var i = 0; i < bytes.length; i++) 58 hex += bytes[i].toString(16).padStart(2, '0') 59 return hex 60} 61 62function bigIntToBytes32(value, out, offset) { 63 var v = value 64 for (var i = 31; i >= 0; i--) { 65 out[offset + i] = Number(v & 0xFFn) 66 v >>= 8n 67 } 68} 69 70function mineLoop(data, wasm, mem, postMessage) { 71 var addressBytes = hexToBytes(data.address) 72 var chunkSize = data.chunkSize 73 var count = data.count 74 var workerCount = data.workerCount 75 var workerIndex = data.workerIndex 76 var startBigInt = BigInt(data.start) 77 78 mem.set(addressBytes, dataOffset) 79 80 for ( 81 var chunkIdx = workerIndex; 82 chunkIdx * chunkSize < count; 83 chunkIdx += workerCount 84 ) { 85 var chunkStart = chunkIdx * chunkSize 86 var limit = Math.min(chunkSize, count - chunkStart) 87 88 bigIntToBytes32(startBigInt + BigInt(chunkStart), mem, dataOffset + 20) 89 90 var found = wasm.mine(limit) 91 92 if (found) { 93 var hashOut = mem.slice(dataOffset + 52, dataOffset + 84) 94 var salt = mem.slice(dataOffset + 20, dataOffset + 52) 95 postMessage({ 96 type: 'found', 97 result: { 98 masterId: bytesToHex(hashOut.subarray(4, 8)), 99 registrationHash: bytesToHex(hashOut), 100 salt: bytesToHex(salt), 101 }, 102 }) 103 return 104 } 105 106 postMessage({ type: 'progress', attempts: limit }) 107 } 108 109 postMessage({ type: 'done' }) 110} 111`}},11463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignFailedError=void 0,t.deserializeOptions=function(e){let{publicKey:t,...r}=e;if(!t)return{...r};let{allowCredentials:a,challenge:o,extensions:s,...l}=t;return{...r,publicKey:{...l,challenge:i.fromHex(o),...a&&{allowCredentials:a.map(({id:e,...t})=>({...t,id:n.toBytes(e)}))},...s&&{extensions:(0,f.deserializeExtensions)(s)}}}},t.deserializeResponse=function(e){let{id:t,metadata:r,raw:i,signature:a}=e,o={};for(let[e,t]of Object.entries(i.response))o[e]=(0,f.bytesToArrayBuffer)(n.toBytes(t));return{id:t,metadata:r,raw:{id:i.id,type:i.type,authenticatorAttachment:i.authenticatorAttachment,rawId:(0,f.bytesToArrayBuffer)(n.toBytes(i.rawId)),response:o,getClientExtensionResults:()=>({})},signature:u.from(a)}},t.getOptions=p,t.getSignPayload=function(e){let{challenge:t,crossOrigin:r,extraClientData:n,flag:i,origin:a,rpId:l,signCount:c,userVerification:u="required"}=e,f=(0,d.getAuthenticatorData)({flag:i,rpId:l,signCount:c}),p=(0,d.getClientDataJSON)({challenge:t,crossOrigin:r,extraClientData:n,origin:a}),h=o.sha256(s.fromString(p)),m=p.indexOf('"challenge"'),b=p.indexOf('"type"'),y=s.concat(f,h);return{metadata:{authenticatorData:f,clientDataJSON:p,challengeIndex:m,typeIndex:b,userVerificationRequired:"required"===u},payload:y}},t.serializeOptions=function(e){let{publicKey:t,signal:r,...i}=e;if(!t)return{...i};let{allowCredentials:a,challenge:o,extensions:l,...c}=t;return{...i,publicKey:{...c,challenge:s.fromBytes((0,f.bufferSourceToBytes)(o)),...a&&{allowCredentials:a.map(({id:e,...t})=>({...t,id:n.fromBytes((0,f.bufferSourceToBytes)(e),f.base64UrlOptions)}))},...l&&{extensions:(0,f.serializeExtensions)(l)}}}},t.serializeResponse=function(e){let{id:t,metadata:r,raw:i,signature:a}=e,o={};for(let e of f.responseKeys){let t=i.response,r=t[e];if(!(r instanceof ArrayBuffer)){let n=t[`get${e[0].toUpperCase()}${e.slice(1)}`];"function"==typeof n&&(r=n.call(t))}r instanceof ArrayBuffer&&(o[e]=n.fromBytes(new Uint8Array(r),f.base64UrlOptions))}return{id:t,metadata:r,raw:{id:i.id,type:i.type,authenticatorAttachment:i.authenticatorAttachment,rawId:n.fromBytes((0,f.bufferSourceToBytes)(i.rawId),f.base64UrlOptions),response:o},signature:u.toHex(a)}},t.sign=h,t.verify=function(e){let{challenge:t,metadata:r,origin:a,publicKey:l,rpId:u,signature:d}=e,{authenticatorData:f,clientDataJSON:p,userVerificationRequired:h}=r,m=i.fromHex(f);if(m.length<37)return!1;if(void 0!==u){let e=m.slice(0,32),t=o.sha256(s.fromString(u),{as:"Bytes"});if(!i.isEqual(e,t))return!1}let b=m[32];
111if((1&b)!=1||h&&(4&b)!=4||(8&b)!=8&&(16&b)==16)return!1;let y=JSON.parse(p);if("webauthn.get"!==y.type||!y.challenge||s.fromBytes(n.toBytes(y.challenge))!==t||void 0!==a&&!(Array.isArray(a)?a:[a]).includes(y.origin))return!1;let g=o.sha256(i.fromString(p),{as:"Bytes"}),v=i.concat(m,g);return c.verify({hash:!0,payload:v,publicKey:l,signature:d})};let n=r(16611),i=r(16827),a=r(73463),o=r(39304),s=r(81522),l=r(7439),c=r(57414),u=r(9527),d=r(90239),f=r(66383);function p(e){let{credentialId:t,challenge:r,extensions:a,rpId:o=window.location.hostname,userVerification:s="required"}=e;return{publicKey:{...t?{allowCredentials:Array.isArray(t)?t.map(e=>({id:n.toBytes(e),type:"public-key"})):[{id:n.toBytes(t),type:"public-key"}]}:{},challenge:i.fromHex(r),...a&&{extensions:a},rpId:o,userVerification:s}}}async function h(e){let{getFn:t=e=>window.navigator.credentials.get(e),...r}=e,n="publicKey"in r?r:p(r);try{let e=await t(n);if(!e)throw new m;let r=e.response,i=new Uint8Array(r.clientDataJSON),a=new Uint8Array(r.authenticatorData),o=new Uint8Array(r.signature),c=e.id,u=String.fromCharCode(...i),d=u.indexOf('"challenge"'),f=u.indexOf('"type"'),p=l.parseAsn1Signature(o);return{id:c,metadata:{authenticatorData:s.fromBytes(a),clientDataJSON:u,challengeIndex:d,typeIndex:f,userVerificationRequired:"required"===n.publicKey.userVerification},signature:p,raw:e}}catch(e){throw new m({cause:e})}}class m extends a.BaseError{constructor({cause:e}={}){super("Failed to request credential.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Authentication.SignFailedError"})}}t.SignFailedError=m},90239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAuthenticatorData=function(e={}){let{credential:t,flag:r=5,rpId:n=window.location.hostname,signCount:i=0}=e,a=s.sha256(l.fromString(n)),c=l.fromNumber(r,{size:1}),u=l.fromNumber(i,{size:4}),d=l.concat(a,c,u);if(!t)return d;let f=l.fromBytes(new Uint8Array(16)),p=l.fromBytes(t.id),h=l.fromNumber(t.id.length,{size:2}),m=o.fromPublicKey(t.publicKey);return l.concat(d,f,h,p,m)},t.getSignCount=function(e){let t=i.fromHex(e);return t.length<37?0:(t[33]<<24|t[34]<<16|t[35]<<8|t[36])>>>0},t.getClientDataJSON=function(e){let{challenge:t,crossOrigin:r=!1,extraClientData:i,origin:a=window.location.origin,type:o="webauthn.get"}=e;return JSON.stringify({type:o,challenge:n.fromHex(t,{url:!0,pad:!1}),origin:a,crossOrigin:r,...i})},t.getAttestationObject=function(e){let{attStmt:t={},authData:r,fmt:n="none"}=e;return a.encode({fmt:n,attStmt:t,authData:l.toBytes(r)})};let n=r(16611),i=r(16827),a=r(99723),o=r(45617),s=r(39304),l=r(81522)},34630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateFailedError=t.VerifyError=t.createChallenge=void 0,t.create=m,t.getOptions=b,t.serializeResponse=function(e){let{credential:t,...r}=e,i={};for(let e of h.responseKeys){let r=t.raw.response,a=r[e];if(!(a instanceof ArrayBuffer)){let t=r[`get${e[0].toUpperCase()}${e.slice(1)}`];"function"==typeof t&&(a=t.call(r))}a instanceof ArrayBuffer&&(i[e]=n.fromBytes(new Uint8Array(a),h.base64UrlOptions))}return{...r,credential:{attestationObject:n.fromBytes(new Uint8Array(t.attestationObject),h.base64UrlOptions),clientDataJSON:n.fromBytes(new Uint8Array(t.clientDataJSON),h.base64UrlOptions),id:t.id,publicKey:f.toHex(t.publicKey),raw:{id:t.raw.id,type:t.raw.type,authenticatorAttachment:t.raw.authenticatorAttachment,rawId:n.fromBytes((0,h.bufferSourceToBytes)(t.raw.rawId),h.base64UrlOptions),response:i}}}},t.serializeOptions=function(e){let t=e.publicKey;if(!t)return{};let{challenge:r,excludeCredentials:i,extensions:a,user:o,...s}=t;return{publicKey:{...s,challenge:c.fromBytes((0,h.bufferSourceToBytes)(r)),...i&&{excludeCredentials:i.map(({id:e,...t})=>({...t,id:n.fromBytes((0,h.bufferSourceToBytes)(e),h.base64UrlOptions)}))},...a&&{extensions:(0,h.serializeExtensions)(a)},user:{...o,id:n.fromBytes((0,h.bufferSourceToBytes)(o.id),h.base64UrlOptions)}}}},t.deserializeOptions=function(e){let t=e.publicKey;if(!t)return{};let{challenge:r,excludeCredentials:a,extensions:o,user:s,...l}=t;return{publicKey:{...l,challenge:i.fromHex(r),...a&&{excludeCredentials:a.map(({id:e,...t})=>({...t,id:n.toBytes(e)}))},...o&&{extensions:(0,h.deserializeExtensions)(o)},user:{...s,id:n.toBytes(s.id)}}}},t.deserializeResponse=function(e){let{credential:t,...r}=e,i={};for(let[e,r]of Object.entries(t.raw.response))i[e]=(0,h.bytesToArrayBuffer)(n.toBytes(r));return{...r,credential:{attestationObject:(0,h.bytesToArrayBuffer)(n.toBytes(t.attestationObject)),clientDataJSON:(0,h.bytesToArrayBuffer)(n.toBytes(t.clientDataJSON)),id:t.id,publicKey:f.from(t.publicKey),raw:{id:t.raw.id,type:t.raw.t
111ype,authenticatorAttachment:t.raw.authenticatorAttachment,rawId:(0,h.bytesToArrayBuffer)(n.toBytes(t.raw.rawId)),response:i,getClientExtensionResults:()=>({})}}}},t.verify=function(e){let{attestation:t="none",credential:r,origin:s,rpId:u,userVerification:f="required"}=e,m=new Uint8Array(r.clientDataJSON),b=i.toString(m),g=JSON.parse(b);if("webauthn.create"!==g.type)throw new y(`Expected clientData.type "webauthn.create", got "${g.type}"`);if(!(()=>{if("function"==typeof e.challenge)return e.challenge(g.challenge);let t="string"==typeof e.challenge?i.fromHex(e.challenge):e.challenge,r=n.fromBytes(t,h.base64UrlOptions);return g.challenge===r})())throw new y("Challenge mismatch");if(!(Array.isArray(s)?s:[s]).includes(g.origin))throw new y(`Origin mismatch: expected ${JSON.stringify(s)}, got "${g.origin}"`);let v=new Uint8Array(r.attestationObject),w=a.decode(v),E=w.authData,x=E.slice(0,32),A=l.sha256(c.fromString(u),{as:"Bytes"});if(!i.isEqual(x,A))throw new y("rpId hash mismatch");let k=E[32],P=(4&k)!=0,C=(8&k)!=0,T=(16&k)!=0;if(!((1&k)!=0))throw new y("User presence flag not set");if(!((64&k)!=0))throw new y("Attested credential data flag not set");if("required"===f&&!P)throw new y("User verification flag not set");if(!C&&T)throw new y("Backup state (BS) flag is set but backup eligibility (BE) flag is not");if(E.length<55)throw new y("authData too short for attested credential data");let _=(E[33]<<24|E[34]<<16|E[35]<<8|E[36])>>>0,O=E[53]<<8|E[54];if(55+O>E.length)throw new y("credIdLen exceeds authData bounds");let S=E.slice(55,55+O);if(void 0!==r.id){let e=n.fromBytes(S,h.base64UrlOptions);if(r.id!==e)throw new y(`Credential ID mismatch: supplied "${r.id}" does not match authData "${e}"`)}let I=E.slice(55+O),B=c.fromBytes(I),j=a.decode(B);if(2!==j["1"]||-7!==j["3"]||1!==j["-1"])throw new y("COSE key must be EC2 (kty=2) with ES256 algorithm (alg=-7) on P-256 curve (crv=1)");let M=o.toPublicKey(B),R=i.fromHex(o.fromPublicKey(M)).length,N=I.length-R;if(N>0&&!((128&k)!=0))throw new y(`authData contains ${N} unexpected trailing byte(s) after COSE key`);let U=l.sha256(i.fromString(b),{as:"Bytes"}),z=i.concat(E,U),{fmt:D,attStmt:F}=w;if("none"===D){if("required"===t)throw new y('Attestation format is "none" but attestation verification is required. Set `attestation: "none"` to accept unattested credentials.')}else if("packed"===D){let e=F.sig,t=F.alg;if(!(e instanceof Uint8Array)||"number"!=typeof t)throw new y("Invalid packed attestation statement: missing sig or alg");if(-7!==t)throw new y(`Unsupported attestation algorithm: ${t} (expected -7 / ES256)`);if(F.x5c)throw new y('Packed attestation with x5c certificate chain is not supported. Use self attestation (no x5c) or set `attestation: "none"`.');let r=p.fromDerBytes(e);if(!d.verify({hash:!0,payload:z,publicKey:M,signature:r}))throw new y("Attestation signature verification failed")}else throw new y(`Unsupported attestation format: "${D}"`);let L=r.id??n.fromBytes(S,h.base64UrlOptions),H=r.raw??{authenticatorAttachment:null,getClientExtensionResults:()=>({}),id:L,rawId:(0,h.bytesToArrayBuffer)(S),response:{attestationObject:r.attestationObject,clientDataJSON:r.clientDataJSON},type:"public-key"};return{credential:{attestationObject:r.attestationObject,clientDataJSON:r.clientDataJSON,id:L,publicKey:M,raw:H},counter:_,...P?{userVerified:!0}:{},...C?{backedUp:T}:{},...C?{deviceType:T?"multiDevice":"singleDevice"}:{}}};let n=r(16611),i=r(16827),a=r(99723),o=r(45617),s=r(73463),l=r(39304),c=r(81522),u=r(7439),d=r(57414),f=r(11102),p=r(9527),h=r(66383);async function m(e){let{createFn:t=e=>window.navigator.credentials.create(e),...r}=e,n="publicKey"in r?r:b(r);try{let e=await t(n);if(!e)throw new g;let r=e.response,i=r.attestationObject,a=r.clientDataJSON,o=e.id,s=await u.parseCredentialPublicKey(r,i);return{attestationObject:i,clientDataJSON:a,id:o,publicKey:s,raw:e}}catch(e){throw new g({cause:e})}}function b(e){let{attestation:r="none",authenticatorSelection:a={residentKey:"preferred",requireResidentKey:!1,userVerification:"required"},challenge:o=t.createChallenge,excludeCredentialIds:s,extensions:c,name:u,rp:d={id:window.location.hostname,name:window.document.title},user:f}=e,p=f?.name??u;return{publicKey:{attestation:r,authenticatorSelection:a,challenge:"string"==typeof o?i.fromHex(o):o,...s?{excludeCredentials:s?.map(e=>({id:n.toBytes(e),type:"public-key"}))}:{},pubKeyCredParams:[{type:"public-key",alg:-7}],rp:d,user:{id:f?.id??l.keccak256(i.fromString(p),{as:"Bytes"}),name:p,displayName:f?.displayName??p},...c&&{extensions:c}}}}t.createChallenge=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);class y extends s.BaseError{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Registration.VerifyError"})}}t.VerifyError=y;class g extends s.BaseError{constructor({cause:e}={}){super("Failed to create credential.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Registration.CreateFailedError"})}}t.CreateFailedError=g},66383:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.responseKeys=t.base64UrlOptions=void 0,t.bytesToArrayBuffer=function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)},t.bufferSourceToBytes=function(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.serializeExtensions=function(e){let{prf:r,...i}=e;return{...i,...r&&{prf:{eval:{first:n.fromBytes(r.eval.first,t.base64UrlOptions)}}}}},t.deserializeExtensions=function(e){let{prf:t,...r}=e;return{...r,...t&&{prf:{eval:{first:n.toBytes(t.eval.first)}}}}};let n=r(16611);t.base64UrlOptions={url:!0,pad:!1},t.responseKeys=["attestationObject","authenticatorData","clientDataJSON","signature","userHandle"]},21499:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},79554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=function(e){let t=(0,i.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)};let n=r(39684),i=r(83935)},59886:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=y;let n=r(10878),i=r(65933),a=r(23337),o=r(39684),s=r(80660),l=r(62221),c=r(56574),u=r(96291),d=r(26091),f=r(59404),p=r(71992),h=r(72531),m=r(78525),b=r(13438);async function y(e,t){let{blockNumber:r,blockTag:y,coinType:g,name:v,gatewayUrls:w,strict:E}=t,{chain:x}=e,A=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!x)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.getChainContractAddress)({blockNumber:r,chain:x,contract:"ensUniversalResolver"})})(),k=x?.ensTlds;if(k&&!k.some(e=>v.endsWith(e)))return null;let P=null!=g?[(0,p.namehash)(v),BigInt(g)]:[(0,p.namehash)(v)];try{let t=(0,a.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",args:P}),s={address:A,abi:n.universalResolverResolveAbi,functionName:"resolveWithGateways",args:[(0,u.toHex)((0,h.packetToBytes)(v)),t,w??[f.localBatchGatewayUrl]],blockNumber:r,blockTag:y},d=(0,m.getAction)(e,b.readContract,"readContract"),p=await d(s);if("0x"===p[0])return null;let E=function({coinType:e,data:t,args:r}){try{return(0,i.decodeFunctionResult)({abi:n.addressResolverAbi,args:r,functionName:"addr",data:t})}catch(n){if(null==e)throw n;let r=(0,c.trim)(t);if(20===(0,l.size)(r))return(0,o.getAddress)(r);throw n}}({coinType:g,data:p[0],args:P});if("0x"===E||"0x00"===(0,c.trim)(E))return null;return E}catch(e){if(E)throw e;if((0,d.isNullUniversalResolverError)(e))return null;throw e}}},34150:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=o;let n=r(77011),i=r(78525),a=r(35080);async function o(e,{blockNumber:t,blockTag:r,assetGatewayUrls:o,name:s,gatewayUrls:l,strict:c,universalResolverAddress:u}){let d=await (0,i.getAction)(e,a.getEnsText,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:u,gatewayUrls:l,strict:c});if(!d)return null;try{return await (0,n.parseAvatarRecord)(e,{record:d,gatewayUrls:o})}catch{return null}}},13693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=c;let n=r(10878),i=r(80660),a=r(26091),o=r(59404),s=r(78525),l=r(13438);async function c(e,t){let{address:r,blockNumber:c,blockTag:u,coinType:d=60n,gatewayUrls:f,strict:p}=t,{chain:h}=e,m=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!h)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.getChainContractAddress)({blockNumber:c,chain:h,contract:"ensUniversalResolver"})})();try{let t={address:m,abi:n.universalResolverReverseAbi,args:[r,d,f??[o.localBatchGatewayUrl]],functionName:"reverseWithGateways",blockNumber:c,blockTag:u},i=(0,s.getAction)(e,l.readContract,"readContract"),[a]=await i(t);return a||null}catch(e){if(p)throw e;if((0,a.isNullUniversalResolverError)(e))return null;throw e}}},78840:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=l;let n=r(80660),i=r(96291),a=r(72531),o=r(78525),s=r(13438);async function l(e,t){let{blockNumber:r,blockTag:l,name:c}=t,{chain:u}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!u)throw Error("client chain not configured. universalResolverAddress is required.");return(0,n.getChainContractAddress)({blockNumber:r,chain:u,contract:"ensUniversalResolver"})})(),f=u?.ensTlds;if(f&&!f.some(e=>c.endsWith(e)))throw Error(`${c} is not a valid ENS TLD (${f?.join(", ")}) for chain "${u.name}" (id: ${u.id}).`);let[p]=await (0,o.getAction)(e,s.readContract,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.toHex)((0,a.packetToBytes)(c))],blockNumber:r,blockTag:l});return p}},35080:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=h;let n=r(10878),i=r(65933),a=r(23337),o=r(80660),s=r(96291),l=r(26091),c=r(59404),u=r(71992),d=r(72531),f=r(78525),p=r(13438);async function h(e,t){let{blockNumber:r,blockTag:h,key:m,name:b,gatewayUrls:y,strict:g}=t,{chain:v}=e,w=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,o.getChainContractAddress)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),E=v?.ensTlds;if(E&&!E.some(e=>b.endsWith(e)))return null;try{let t={address:w,abi:n.universalResolverResolveAbi,args:[(0,s.toHex)((0,d.packetToBytes)(b)),(0,a.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,u.namehash)(b),m]}),y??[c.localBatchGatewayUrl]],functionName:"resolveWithGateways",blockNumber:r,blockTag:h},o=(0,f.getAction)(e,p.readContract,"readContract"),l=await o(t);if("0x"===l[0])return null;let g=(0,i.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:l[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,l.isNullUniversalResolverError)(e))return null;throw e}}},97688:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContract=function({abi:e,address:t,client:r}){let[p,h]=r?"public"in r&&"wallet"in r?[r.public,r.wallet]:"public"in r?[r.public,void 0]:"wallet"in r?[void 0,r.wallet]:[r,r]:[void 0,void 0],m=null!=p,b=null!=h,y={},g=!1,v=!1,w=!1;for(let t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?g=!0:v=!0:"event"===t.type&&(w=!0),g&&v&&w)break;return m&&(g&&(y.read=new Proxy({},{get:(r,i)=>(...r)=>{let{args:a,options:o}=d(r);return(0,n.getAction)(p,s.readContract,"readContract")({abi:e,address:t,functionName:i,args:a,...o})}})),v&&(y.simulate=new Proxy({},{get:(r,i)=>(...r)=>{let{args:a,options:o}=d(r);return(0,n.getAction)(p,l.simulateContract,"simulateContract")({abi:e,address:t,functionName:i,args:a,...o})}})),w&&(y.createEventFilter=new Proxy({},{get:(r,a)=>(...r)=>{let{args:o,options:s}=f(r,e.find(e=>"event"===e.type&&e.name===a));return(0,n.getAction)(p,i.createContractEventFilter,"createContractEventFilter")({abi:e,address:t,eventName:a,args:o,...s})}}),y.getEvents=new Proxy({},{get:(r,i)=>(...r)=>{let{args:a,options:s}=f(r,e.find(e=>"event"===e.type&&e.name===i));return(0,n.getAction)(p,o.getContractEvents,"getContractEvents")({abi:e,address:t,eventName:i,args:a,...s})}}),y.watchEvent=new Proxy({},{get:(r,i)=>(...r)=>{let{args:a,options:o}=f(r,e.find(e=>"event"===e.type&&e.name===i));return(0,n.getAction)(p,c.watchContractEvent,"watchContractEvent")({abi:e,address:t,eventName:i,args:a,...o})}}))),b&&v&&(y.write=new Proxy({},{get:(r,i)=>(...r)=>{let{args:a,options:o}=d(r);return(0,n.getAction)(h,u.writeContract,"writeContract")({abi:e,address:t,functionName:i,args:a,...o})}})),(m||b)&&v&&(y.estimateGas=new Proxy({},{get:(r,i)=>(...r)=>{let{args:o,options:s}=d(r),l=p??h;return(0,n.getAction)(l,a.estimateContractGas,"estimateContractGas")({abi:e,address:t,functionName:i,args:o,...s,account:s.account??h.account})}})),y.address=t,y.abi=e,y},t.getFunctionParameters=d,t.getEventParameters=f;let n=r(78525),i=r(61677),a=r(99019),o=r(90208),s=r(13438),l=r(71613),c=r(70),u=r(34451);function d(e){let t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function f(e,t){let r=!1;return Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0),{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}},53490:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.call=P,t.getRevertErrorData=I;let n=r(96726),i=r(40636),a=r(21499),o=r(10878),s=r(73413),l=r(15079),c=r(63392),u=r(57602),d=r(17306),f=r(52621),p=r(65933),h=r(24594),m=r(23337),b=r(73274),y=r(66639),g=r(80660),v=r(47526),w=r(40018),E=r(9101),x=r(92598),A=r(30536),k=r(19199);async function P(e,t){let{account:o=e.account,authorizationList:p,batch:m=!!e.batch?.multicall,blockHash:g,blockNumber:x,blockTag:P=e.experimental_blockTag??"latest",requireCanonical:C,accessList:T,blobs:B,blockOverrides:j,code:M,data:R,factory:N,factoryData:U,gas:z,gasPrice:D,maxFeePerBlobGas:F,maxFeePerGas:L,maxPriorityFeePerGas:H,nonce:G,requestOptions:q,to:$,value:K,stateOverride:Z,...V}=t,W=o?(0,a.parseAccount)(o):void 0;if(M&&(N||U))throw new c.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(M&&$)throw new c.BaseError("Cannot provide both `code` & `to` as parameters.");let Y=M&&R,X=N&&U&&$&&R,J=Y||X,Q=Y?S({code:M,data:R}):X?function(e){let{data:t,factory:r,factoryData:i,to:a}=e;return(0,h.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:l.deploylessCallViaFactoryBytecode,args:[a,t,r,i]})}({data:R,factory:N,factoryData:U,to:$}):R;try{(0,k.assertRequest)(t);let r=(0,y.formatBlockParameter)({blockHash:g,blockNumber:x,blockTag:P,requireCanonical:C}),n=j?i.toRpc(j):void 0,a=(0,A.serializeStateOverride)(Z),o=e.chain?.formatters?.transactionRequest?.format,l=(o||E.formatTransactionRequest)({...(0,w.extract)(V,{format:o}),accessList:T,account:W,authorizationList:p,blobs:B,data:Q,gas:z,gasPrice:D,maxFeePerBlobGas:F,maxFeePerGas:L,maxPriorityFeePerGas:H,nonce:G,to:J?void 0:$,value:K},"call");if(m&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(s.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:l})&&!n&&void 0===g)try{let{deployless:t=!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},r=O(e,{blockNumber:x,deployless:t});if(!r||!(a&&Object.keys(a).some(e=>(0,b.isAddressEqual)(e,r))))return await _(e,{...l,blockHash:g,blockNumber:x,blockTag:P,multicallAddress:r,requestOptions:q,requireCanonical:C,rpcStateOverride:a})}catch(e){if(!(e instanceof u.ClientChainNotConfiguredError)&&!(e instanceof u.ChainDoesNotSupportContract))throw e}let c=(()=>{let e=[l,r];return a&&n?[...e,a,n]:a?[...e,a]:n?[...e,{},n]:e})(),d=await e.request({method:"eth_call",params:c},q);if("0x"===d)return{data:void 0};return{data:d}}catch(o){if(q?.signal?.aborted)throw(0,f.getAbortError)(q.signal);if((0,f.isAbortError)(o))throw o;let n=I(o),{offchainLookup:i,offchainLookupSignature:a}=await Promise.resolve().then(()=>r(85715));if(!1!==e.ccipRead&&n?.slice(0,10)===a&&$)return{data:await i(e,{data:n,requestOptions:q,to:$})};if(J&&n?.slice(0,10)==="0x101bb98d")throw new d.CounterfactualDeploymentFailedError({factory:N});throw(0,v.getCallError)(o,{...t,account:W,chain:e.chain})}}let C=0,T=new WeakMap;async function _(e,t){let{batchSize:r=1024,deployless:n=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockHash:a,blockNumber:s,blockTag:c=e.experimental_blockTag??"latest",requireCanonical:u,data:f,multicallAddress:h,requestOptions:b,rpcStateOverride:g,to:v}=t,w=void 0!==h?h:O(e,{blockNumber:s,deployless:n}),E=(0,y.formatBlockParameter)({blockHash:a,blockNumber:s,blockTag:c,requireCanonical:u}),A="string"==typeof E?E:JSON.stringify(E),k=g?`.${JSON.stringify(g)}`:"",{schedule:P}=(0,x.createBatchScheduler)({id:`${e.uid}.${A}.${function(e){if(!e)return"default";let t=T.get(e);if(void 0!==t)return t;let r=C++;return T.set(e,r),r}(b)}${k}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,m.encodeFunctionData)({abi:o.multicall3Abi,args:[r],functionName:"aggregate3"}),i={...null===w?{data:S({code:l.multicall3Bytecode,data:n})}:{to:w,data:n}},a=await e.request({method:"eth_call",params:g?[i,E,g]:[i,E]},b);return(0,p.decodeFunctionResult)({abi:o.multicall3Abi,args:[r],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:_,success:I}]=await P({data:f,to:v});if(!I)throw new d.RawContractError({data:_});return"0x"===_?{data:void 0}:{data:_}}function O(e,t){let{blockNumber:r,deployless:n}=t;if(n)return null;if(e.chain)return(0,g.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"multicall3"});throw new u.ClientChainNotConfiguredError}
111function S(e){let{code:t,data:r}=e;return(0,h.encodeDeployData)({abi:(0,n.parseAbi)(["constructor(bytes, bytes)"]),bytecode:l.deploylessCallViaBytecodeBytecode,args:[t,r]})}function I(e){if(!(e instanceof c.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}},28523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAccessList=u;let n=r(21499),i=r(63392),a=r(96291),o=r(47526),s=r(40018),l=r(9101),c=r(19199);async function u(e,t){let{account:r=e.account,blockNumber:u,blockTag:d="latest",blobs:f,data:p,gas:h,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:g,to:v,value:w,...E}=t,x=r?(0,n.parseAccount)(r):void 0;try{(0,c.assertRequest)(t);let r="bigint"==typeof u?(0,a.numberToHex)(u):void 0,n=e.chain?.formatters?.transactionRequest?.format,o=(n||l.formatTransactionRequest)({...(0,s.extract)(E,{format:n}),account:x,blobs:f,data:p,gas:h,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:g,to:v,value:w},"createAccessList"),A=await e.request({method:"eth_createAccessList",params:[o,r||d]});if(A.error)throw new i.BaseError(A.error,{details:A.error});return{accessList:A.accessList,gasUsed:BigInt(A.gasUsed)}}catch(r){throw(0,o.getCallError)(r,{...t,account:x,chain:e.chain})}}},7754:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=i;let n=r(45939);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}},61677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=o;let n=r(16244),i=r(96291),a=r(45939);async function o(e,t){let{address:r,abi:o,args:s,eventName:l,fromBlock:c,strict:u,toBlock:d}=t,f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"}),p=l?(0,n.encodeEventTopics)({abi:o,args:s,eventName:l}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof c?(0,i.numberToHex)(c):c,toBlock:"bigint"==typeof d?(0,i.numberToHex)(d):d,topics:p}]});return{abi:o,args:s,eventName:l,id:h,request:f(h),strict:!!u,type:"event"}}},47142:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=o;let n=r(16244),i=r(96291),a=r(45939);async function o(e,{address:t,args:r,event:o,events:s,fromBlock:l,strict:c,toBlock:u}={}){let d=s??(o?[o]:void 0),f=(0,a.createFilterRequestScope)(e,{method:"eth_newFilter"}),p=[];d&&(p=[d.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],o&&(p=p[0]));let h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,toBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,...p.length?{topics:p}:{}}]});return{abi:d,args:r,eventName:o?o.name:void 0,fromBlock:l,id:h,request:f(h),strict:!!c,toBlock:u,type:"event"}}},8460:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=i;let n=r(45939);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}},99019:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=l;let n=r(21499),i=r(23337),a=r(44169),o=r(78525),s=r(73430);async function l(e,t){let{abi:r,address:l,args:c,functionName:u,dataSuffix:d="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...f}=t,p=(0,i.encodeFunctionData)({abi:r,args:c,functionName:u});try{return await (0,o.getAction)(e,s.estimateGas,"estimateGas")({data:`${p}${d?d.replace("0x",""):""}`,to:l,...f})}catch(t){let e=f.account?(0,n.parseAccount)(f.account):void 0;throw(0,a.getContractError)(t,{abi:r,address:l,args:c,docsPath:"/docs/contract/estimateContractGas",functionName:u,sender:e?.address})}}},72642:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateFeesPerGas=l,t.internal_estimateFeesPerGas=c;let n=r(43137),i=r(78525),a=r(7365),o=r(28559),s=r(26682);async function l(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:l=e.chain,request:c,type:u="eip1559"}=t||{},d=await (async()=>"function"==typeof l?.fees?.baseFeeMultiplier?l.fees.baseFeeMultiplier({block:r,client:e,request:c}):l?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.BaseFeeScalarError;let f=10**(d.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.round(d*f))/BigInt(f),h=r||await (0,i.getAction)(e,o.getBlock,"getBlock")({});if("function"==typeof l?.fees?.estimateFeesPerGas){let t=await l.fees.estimateFeesPerGas({block:r,client:e,multiply:p,request:c,type:u});if(null!==t)return t}if("eip1559"===u){if("bigint"!=typeof h.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,a.internal_estimateMaxPriorityFeePerGas)(e,{block:h,chain:l,request:c}),r=p(h.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??p(await (0,i.getAction)(e,s.getGasPrice,"getGasPrice")({}))}}}
111,73430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=p;let n=r(21499),i=r(63392),a=r(63560),o=r(96291),s=r(31418),l=r(40018),c=r(9101),u=r(30536),d=r(19199),f=r(38280);async function p(e,t){let{account:r=e.account,prepare:p=!0}=t,h=r?(0,n.parseAccount)(r):void 0,m=Array.isArray(p)?p:h?.type!=="local"?["blobVersionedHashes"]:void 0;try{let r=await (async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await (0,a.recoverAuthorizationAddress)({authorization:t.authorizationList[0]}).catch(()=>{throw new i.BaseError("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:n,authorizationList:s,blobs:b,blobVersionedHashes:y,blockNumber:g,blockTag:v,data:w,gas:E,gasPrice:x,maxFeePerBlobGas:A,maxFeePerGas:k,maxPriorityFeePerGas:P,nonce:C,value:T,stateOverride:_,...O}=p?await (0,f.prepareTransactionRequest)(e,{...t,parameters:m,to:r}):t;if(E&&t.gas!==E)return E;let S=("bigint"==typeof g?(0,o.numberToHex)(g):void 0)||v,I=(0,u.serializeStateOverride)(_);(0,d.assertRequest)(t);let B=e.chain?.formatters?.transactionRequest?.format,j=(B||c.formatTransactionRequest)({...(0,l.extract)(O,{format:B}),account:h,accessList:n,authorizationList:s,blobs:b,blobVersionedHashes:y,data:w,gasPrice:x,maxFeePerBlobGas:A,maxFeePerGas:k,maxPriorityFeePerGas:P,nonce:C,to:r,value:T},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:I?[j,S??e.experimental_blockTag??"latest",I]:S?[j,S]:[j]}))}catch(r){throw(0,s.getEstimateGasError)(r,{...t,account:h,chain:e.chain})}}},7365:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateMaxPriorityFeePerGas=l,t.internal_estimateMaxPriorityFeePerGas=c;let n=r(43137),i=r(85198),a=r(78525),o=r(28559),s=r(26682);async function l(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:l=e.chain,request:c}=t||{};try{let t=l?.fees?.maxPriorityFeePerGas??l?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,a.getAction)(e,o.getBlock,"getBlock")({}),i=await t({block:n,client:e,request:c});if(null===i)throw Error();return i}if(void 0!==t)return t;let n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.hexToBigInt)(n)}catch{let[t,i]=await Promise.all([r?Promise.resolve(r):(0,a.getAction)(e,o.getBlock,"getBlock")({}),(0,a.getAction)(e,s.getGasPrice,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.Eip1559FeesNotSupportedError;let l=i-t.baseFeePerGas;if(l<0n)return 0n;return l}}},35e3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillTransaction=h;let n=r(21499),i=r(43137),a=r(45742),o=r(88713),s=r(40018),l=r(10146),c=r(9101),u=r(78525),d=r(19199),f=r(28559),p=r(3204);async function h(e,t){let{account:r=e.account,accessList:h,authorizationList:m,chain:b=e.chain,blobVersionedHashes:y,blobs:g,data:v,gas:w,gasPrice:E,maxFeePerBlobGas:x,maxFeePerGas:A,maxPriorityFeePerGas:k,nonce:P,nonceManager:C,to:T,type:_,value:O,...S}=t,I=await (async()=>{if(!r||!C||void 0!==P)return P;let t=(0,n.parseAccount)(r),i=b?b.id:await (0,u.getAction)(e,p.getChainId,"getChainId")({});return await C.consume({address:t.address,chainId:i,client:e})})();(0,d.assertRequest)(t);let B=b?.formatters?.transactionRequest?.format,j=(B||c.formatTransactionRequest)({...(0,s.extract)(S,{format:B}),account:r?(0,n.parseAccount)(r):void 0,accessList:h,authorizationList:m,blobs:g,blobVersionedHashes:y,data:v,gas:w,gasPrice:E,maxFeePerBlobGas:x,maxFeePerGas:A,maxPriorityFeePerGas:k,nonce:I,to:T,type:_,value:O},"fillTransaction");try{let r=await e.request({method:"eth_fillTransaction",params:[j]}),n=(b?.formatters?.transaction?.format||l.formatTransaction)(r.tx);delete n.blockHash,delete n.blockNumber,delete n.r,delete n.s,delete n.transactionIndex,delete n.v,delete n.yParity,n.data=n.input;let o=void 0!==n.feePayerSignature&&null!==n.feePayerSignature;if(o&&void 0!==I&&n.nonce!==I)throw new a.FeePayerNonceMismatchError({filledNonce:n.nonce,requestedNonce:I});if(!o){n.gas&&(n.gas=t.gas??n.gas),n.gasPrice&&(n.gasPrice=t.gasPrice??n.gasPrice),n.maxFeePerBlobGas&&(n.maxFeePerBlobGas=t.maxFeePerBlobGas??n.maxFeePerBlobGas),n.maxFeePerGas&&(n.maxFeePerGas=t.maxFeePerGas??n.maxFeePerGas),n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas??n.maxPriorityFeePerGas),void 0!==n.nonce&&(n.nonce=t.nonce??n.nonce);let r=await (async()=>
111{if("function"==typeof b?.fees?.baseFeeMultiplier){let r=await (0,u.getAction)(e,f.getBlock,"getBlock")({});return b.fees.baseFeeMultiplier({block:r,client:e,request:t})}return b?.fees?.baseFeeMultiplier??1.2})();if(r<1)throw new i.BaseFeeScalarError;let a=r.toString().split(".")[1]?.length??0,o=10**a,s=e=>e*BigInt(Math.round(r*o))/BigInt(o);n.maxFeePerGas&&!t.maxFeePerGas&&(n.maxFeePerGas=s(n.maxFeePerGas)),n.gasPrice&&!t.gasPrice&&(n.gasPrice=s(n.gasPrice))}return{raw:r.raw,transaction:{from:j.from,...n},...r.capabilities?{capabilities:r.capabilities}:{}}}catch(r){throw(0,o.getTransactionError)(r,{...t,chain:e.chain})}}},2307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=c;let n=r(10878),i=r(65933),a=r(23337),o=r(66639),s=r(78525),l=r(53490);async function c(e,{address:t,blockHash:r,blockNumber:c,blockTag:u=e.experimental_blockTag??"latest",requireCanonical:d}){let f=(0,o.formatBlockParameter)({blockHash:r,blockNumber:c,blockTag:u,requireCanonical:d});if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let o=e.chain.contracts.multicall3.address,f=(0,a.encodeFunctionData)({abi:n.multicall3Abi,functionName:"getEthBalance",args:[t]}),{data:p}=await (0,s.getAction)(e,l.call,"call")({to:o,data:f,blockHash:r,blockNumber:c,blockTag:u,requireCanonical:d});return(0,i.decodeFunctionResult)({abi:n.multicall3Abi,functionName:"getEthBalance",args:[t],data:p||"0x"})}return BigInt(await e.request({method:"eth_getBalance",params:[t,f]}))}},47518:function(e,t){"use strict";async function r(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getBlobBaseFee=r},28559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=o;let n=r(55452),i=r(96291),a=r(13713);async function o(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:s}={}){let l=s??!1,c=void 0!==r?(0,i.numberToHex)(r):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,l]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||o,l]},{dedupe:!!c})))throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||a.formatBlock)(u,"getBlock")}},56747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},t.getBlockNumber=a;let n=r(76085),i=e=>`blockNumber.${e}`;async function a(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await (0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:i(e.uid),cacheTime:t}))}},29709:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockReceipts=o;let n=r(55452),i=r(96291),a=r(58983);async function o(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest"}={}){let s=void 0!==r?(0,i.numberToHex)(r):void 0,l=await e.request({method:"eth_getBlockReceipts",params:[t||s||o]},{dedupe:!!(t||s)});if(!l)throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});let c=e.chain?.formatters?.transactionReceipt?.format||a.formatTransactionReceipt;return l.map(e=>c(e,"getBlockReceipts"))}},80862:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=a;let n=r(85198),i=r(96291);async function a(e,{blockHash:t,blockNumber:r,blockTag:a="latest"}={}){let o;let s=void 0!==r?(0,i.numberToHex)(r):void 0;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||a]},{dedupe:!!s}),(0,n.hexToNumber)(o)}},3204:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=i;let n=r(85198);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.hexToNumber)(t)}},89102:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCode=i;let n=r(66639);async function i(e,{address:t,blockHash:r,blockNumber:i,blockTag:a="latest",requireCanonical:o}){let s=(0,n.formatBlockParameter)({blockHash:r,blockNumber:i,blockTag:a,requireCanonical:o}),l=await e.request({method:"eth_getCode",params:[t,s]},{dedupe:"bigint"==typeof i||void 0!==r});if("0x"!==l)return l}},90208:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.getContractEvents=o;let n=r(35014),i=r(78525),a=r(19734);async function o(e,t){let{abi:r,address:o,args:s,blockHash:l,eventName:c,fromBlock:u,toBlock:d,strict:f}=t,p=c?(0,n.getAbiItem)({abi:r,name:c}):void 0,h=p?void 0:r.filter(e=>"event"===e.type);return(0,i.getAction)(e,a.getLogs,"getLogs")({address:o,args:s,blockHash:l,event:p,events:h,fromBlock:u,toBlock:d,strict:f})}},53037:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegation=s;let n=r(39684),i=r(62221),a=r(47645),o=r(89102);async function s(e,{address:t,blockNumber:r,blockTag:s="latest"}){let l=await (0,o.getCode)(e,{address:t,...void 0!==r?{blockNumber:r}:{blockTag:s}});if(l&&23===(0,i.size)(l)&&l.startsWith("0xef0100"))return(0,n.getAddress)((0,a.slice)(l,3,23))}},56382:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEip712Domain=o;let n=r(46010),i=r(78525),a=r(13438);async function o(e,t){let{address:r,factory:o,factoryData:l}=t;try{let[t,n,c,u,d,f,p]=await (0,i.getAction)(e,a.readContract,"readContract")({abi:s,address:r,functionName:"eip712Domain",factory:o,factoryData:l});return{domain:{name:n,version:c,chainId:Number(u),verifyingContract:d,salt:f},extensions:p,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new n.Eip712DomainNotFoundError({address:r});throw e}}let s=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}]},24:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=a;let n=r(96291),i=r(40688);async function a(e,{blockCount:t,blockNumber:r,blockTag:a="latest",rewardPercentiles:o}){let s="bigint"==typeof r?(0,n.numberToHex)(r):void 0,l=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||a,o]},{dedupe:!!s});return(0,i.formatFeeHistory)(l)}},55293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=a;let n=r(40635),i=r(47539);async function a(e,{filter:t}){let r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof a[0])return a;let o=a.map(e=>(0,i.formatLog)(e));return"abi"in t&&t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:o,strict:r}):o}},17699:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=a;let n=r(40635),i=r(47539);async function a(e,{filter:t}){let r=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,i.formatLog)(e));return t.abi?(0,n.parseEventLogs)({abi:t.abi,logs:a,strict:r}):a}},26682:function(e,t){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=r},19734:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=s;let n=r(16244),i=r(40635),a=r(96291),o=r(47539);async function s(e,{address:t,blockHash:r,fromBlock:s,toBlock:l,event:c,events:u,args:d,strict:f}={}){let p=u??(c?[c]:void 0),h=[];p&&(h=[p.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:u?void 0:d}))],c&&(h=h[0]));let m=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:h,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:h,fromBlock:"bigint"==typeof s?(0,a.numberToHex)(s):s,toBlock:"bigint"==typeof l?(0,a.numberToHex)(l):l}]})).map(e=>(0,o.formatLog)(e));return p?(0,i.parseEventLogs)({abi:p,args:d,logs:m,strict:f??!1}):m}},1040:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProof=a;let n=r(66639),i=r(67950);async function a(e,{address:t,blockHash:r,blockNumber:a,blockTag:o="latest",requireCanonical:s,storageKeys:l}){let c=(0,n.formatBlockParameter)({blockHash:r,blockNumber:a,blockTag:o,requireCanonical:s}),u=await e.request({method:"eth_getProof",params:[t,l,c]});return(0,i.formatProof)(u)}},358:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.getRawTransaction=i;let n=r(45742);async function i(e,{hash:t}){let r=await e.request({method:"eth_getRawTransactionByHash",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionNotFoundError({hash:t});return r}},36447:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=i;let n=r(66639);async function i(e,{address:t,blockHash:r,blockNumber:i,blockTag:a="latest",requireCanonical:o,slot:s}){let l=(0,n.formatBlockParameter)({blockHash:r,blockNumber:i,blockTag:a,requireCanonical:o});return await e.request({method:"eth_getStorageAt",params:[t,s,l]})}},84187:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=o;let n=r(45742),i=r(96291),a=r(10146);async function o(e,{blockHash:t,blockNumber:r,blockTag:o,hash:s,index:l,sender:c,nonce:u}){let d=o||"latest",f=void 0!==r?(0,i.numberToHex)(r):void 0,p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(l)]},{dedupe:!0}):(f||d)&&"number"==typeof l?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||d,(0,i.numberToHex)(l)]},{dedupe:!!f}):c&&"number"==typeof u&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[c,(0,i.numberToHex)(u)]},{dedupe:!0})),!p)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:d,hash:s,index:l});return(e.chain?.formatters?.transaction?.format||a.formatTransaction)(p,"getTransaction")}},36199:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=o;let n=r(78525),i=r(56747),a=r(84187);async function o(e,{hash:t,transactionReceipt:r}){let[o,s]=await Promise.all([(0,n.getAction)(e,i.getBlockNumber,"getBlockNumber")({}),t?(0,n.getAction)(e,a.getTransaction,"getTransaction")({hash:t}):void 0]),l=r?.blockNumber||s?.blockNumber;return l?o-l+1n:0n}},7804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=a;let n=r(66639),i=r(85198);async function a(e,{address:t,blockHash:r,blockNumber:a,blockTag:o="latest",requireCanonical:s}){let l=(0,n.formatBlockParameter)({blockHash:r,blockNumber:a,blockTag:o,requireCanonical:s}),c=await e.request({method:"eth_getTransactionCount",params:[t,l]},{dedupe:"bigint"==typeof a||void 0!==r});return(0,i.hexToNumber)(c)}},82911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=a;let n=r(45742),i=r(58983);async function a(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt)(r,"getTransactionReceipt")}},33473:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=b;let n=r(10878),i=r(15079),a=r(43279),o=r(63392),s=r(17306),l=r(65933),c=r(23337),u=r(80660),d=r(44169),f=r(78525),p=r(92598),h=r(16283),m=r(13438);async function b(e,t){let{account:r,authorizationList:p,allowFailure:h=!0,blockHash:b,blockNumber:g,blockOverrides:v,blockTag:w,requireCanonical:E,stateOverride:x}=t,A=t.contracts,k="object"==typeof e.batch?.multicall?e.batch.multicall:{},P=t.batchSize??k.batchSize??1024,C=t.deployless??k.deployless??!1,T=(()=>{if(t.multicallAddress)return t.multicallAddress;if(C)return null;if(e.chain)return(0,u.getChainContractAddress)({blockNumber:g,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),_=[[]],O=0,S=0;for(let e=0;e<A.length;e++){let{abi:t,address:n,args:i,functionName:a}=A[e];try{let e=(0,c.encodeFunctionData)({abi:t,args:i,functionName:a});S+=(e.length-2)/2,P>0&&S>P&&_[O].length>0&&(O++,S=(e.length-2)/2,_[O]=[]),_[O]=[..._[O],{allowFailure:!0,callData:e,target:n}]}catch(o){let e=(0,d.getContractError)(o,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:a,sender:r});if(!h)throw e;
111_[O]=[..._[O],{allowFailure:!0,callData:"0x",target:n}]}}let I=!!e.batch?.multicall,B=I?_.flatMap(e=>e.map(e=>[e])):_,j=await Promise.allSettled(B.map(t=>I?y(e,{account:r,authorizationList:p,batchSize:P,blockHash:b,blockNumber:g,blockOverrides:v,blockTag:w,call:t[0],multicallAddress:T,requireCanonical:E,stateOverride:x}).then(e=>[e]):(0,f.getAction)(e,m.readContract,"readContract")({...null===T?{code:i.multicall3Bytecode}:{address:T},abi:n.multicall3Abi,account:r,args:[t],authorizationList:p,blockHash:b,blockNumber:g,blockOverrides:v,blockTag:w,functionName:"aggregate3",requireCanonical:E,stateOverride:x}))),M=[];for(let e=0;e<j.length;e++){let t=j[e];if("rejected"===t.status){if(!h)throw t.reason;for(let r=0;r<B[e].length;r++)M.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:n,success:i}=r[t],{callData:o}=B[e][t],{abi:c,address:u,functionName:f,args:p}=A[M.length];try{if("0x"===o)throw new a.AbiDecodingZeroDataError;if(!i)throw new s.RawContractError({data:n});let e=(0,l.decodeFunctionResult)({abi:c,args:p,data:n,functionName:f});M.push(h?{result:e,status:"success"}:e)}catch(t){let e=(0,d.getContractError)(t,{abi:c,address:u,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!h)throw e;M.push({error:e,result:void 0,status:"failure"})}}}if(M.length!==A.length)throw new o.BaseError("multicall results mismatch");return M}async function y(e,t){let{batchSize:r,call:a,multicallAddress:o,...s}=t,{wait:l=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{schedule:c}=(0,p.createBatchScheduler)({id:(0,h.stringify)(["multicall",e.uid,r,o,s]),wait:l,shouldSplitBatch:e=>0!==r&&e.reduce((e,{callData:t})=>e+(t.length-2)/2,0)>r,fn:t=>(0,f.getAction)(e,m.readContract,"readContract")({...null===o?{code:i.multicall3Bytecode}:{address:o},...s,abi:n.multicall3Abi,args:[t],functionName:"aggregate3"})}),[u]=await c(a);return u}},13438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=l;let n=r(65933),i=r(23337),a=r(44169),o=r(78525),s=r(53490);async function l(e,t){let{abi:r,address:l,args:c,functionName:u,...d}=t,f=(0,i.encodeFunctionData)({abi:r,args:c,functionName:u});try{let{data:t}=await (0,o.getAction)(e,s.call,"call")({...d,data:f,to:l});return(0,n.decodeFunctionResult)({abi:r,args:c,functionName:u,data:t||"0x"})}catch(e){throw(0,a.getContractError)(e,{abi:r,address:l,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},53744:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateBlocks=v;let n=r(40636),i=r(21499),a=r(43279),o=r(17306),s=r(87695),l=r(65933),c=r(23337),u=r(246),d=r(96291),f=r(44169),p=r(92650),h=r(13713),m=r(47539),b=r(9101),y=r(30536),g=r(19199);async function v(e,t){let{blockNumber:r,blockTag:v=e.experimental_blockTag??"latest",blocks:w,returnFullTransactions:E,traceTransfers:x,validation:A}=t;try{let t=[];for(let e of w){let r=e.blockOverrides?n.toRpc(e.blockOverrides):void 0,a=e.calls.map(e=>{let t=e.account?(0,i.parseAccount)(e.account):void 0,r=e.abi?(0,c.encodeFunctionData)(e):e.data,n={...e,account:t,data:e.dataSuffix?(0,u.concat)([r||"0x",e.dataSuffix]):r,from:e.from??t?.address};return(0,g.assertRequest)(n),(0,b.formatTransactionRequest)(n)}),o=e.stateOverrides?(0,y.serializeStateOverride)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:a,stateOverrides:o})}let s="bigint"==typeof r?(0,d.numberToHex)(r):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:E,traceTransfers:x,validation:A},s||v]})).map((e,t)=>({...(0,h.formatBlock)(e),calls:e.calls.map((e,r)=>{let{abi:n,args:i,functionName:s,to:c}=w[t].calls[r],u=e.error?.data??e.returnData,d=BigInt(e.gasUsed),p=e.logs?.map(e=>m.formatLog(e)),h="0x1"===e.status?"success":"failure",b=n&&"success"===h&&"0x"!==u?(0,l.decodeFunctionResult)({abi:n,data:u,functionName:s}):null,y=(()=>{let e;if("success"!==h&&("0x"===u?e=new a.AbiDecodingZeroDataError:u&&(e=new o.RawContractError({data:u})),e))return(0,f.getContractError)(e,{abi:n??[],address:c??"0x",args:i,functionName:s??"<unknown>"})})();return{data:u,gasUsed:d,logs:p,status:h,..."success"===h?{result:b}:{error:y}}})}))}catch(t){let e=(0,p.getNodeError)(t,{});if(e instanceof s.UnknownNodeError)throw t;throw e}}},53027:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.simulateCalls=P;let n=r(97774),i=r(55003),a=r(63843),o=r(21499),s=r(97e3),l=r(15079),c=r(63392),u=r(17306),d=r(87695),f=r(95367),p=r(85198),h=r(53490),m=r(28559),b=r(56747),y=r(53744),g="0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063fd00430c1461002d575b5f5ffd5b6100476004803603810190610042919061012b565b610049565b005b80825f375f5f825f865afa610060573d5f5f3e3d5ffd5b3d5f5f3e3d5ff35b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61009982610070565b9050919050565b6100a98161008f565b81146100b3575f5ffd5b50565b5f813590506100c4816100a0565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126100eb576100ea6100ca565b5b8235905067ffffffffffffffff811115610108576101076100ce565b5b602083019150836001820283011115610124576101236100d2565b5b9250929050565b5f5f5f6040848603121561014257610141610068565b5b5f61014f868287016100b6565b935050602084013567ffffffffffffffff8111156101705761016f61006c565b5b61017c868287016100d6565b9250925050925092509256fea2646970667358221220635ed99185cacf3f2acba6921f23687c969cec2bbaf5f9ad599f507e6e105e6964736f6c63430008230033",v=i.getSelector(i.from("event Transfer(address indexed from, address indexed to, uint256 value)")),w=a.from("function balanceOf(address) returns (uint256)"),E=a.from("function decimals() returns (uint256)"),x=a.from("function tokenURI(uint256) returns (string)"),A=a.from("function symbol() returns (string)"),k=a.from("function query(address target, bytes data)");async function P(e,t){let{blockNumber:r,blockTag:i,calls:u,stateOverrides:d,traceAssetChanges:h,traceTransfers:k,validation:P}=t,S=t.account?(0,o.parseAccount)(t.account):void 0;if(h&&!S)throw new c.BaseError("`account` is required when `traceAssetChanges` is true");let I=S?n.encode(n.from("constructor(bytes, bytes)"),{bytecode:l.deploylessCallViaBytecodeBytecode,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",a.encodeData(a.from("function getBalance(address)"),[S.address])]}):void 0,B=i??e.experimental_blockTag??"latest",j=r;if(h&&"bigint"!=typeof j&&"earliest"!==B&&"pending"!==B){if("latest"===B)j=await (0,b.getBlockNumber)(e,{cacheTime:0});else{let t=await (0,m.getBlock)(e,{blockTag:B});if("bigint"!=typeof t.number)throw new c.BaseError(`Block tag \`${B}\` did not resolve to a number.`);j=t.number}}let M="bigint"==typeof j?{blockNumber:j}:{blockTag:B},R=h?await (0,y.simulateBlocks)(e,{...M,blocks:[{calls:u.map(e=>({...e,from:S.address})),stateOverrides:d}],traceTransfers:k,validation:P}):void 0,N=R?[...new Set([...function(e,t){let r=(0,f.pad)(t.toLowerCase(),{size:32});return e.filter(e=>e.topics[0]?.toLowerCase()===v&&e.address.toLowerCase()!==s.ethAddress&&(e.topics[1]?.toLowerCase()===r||e.topics[2]?.toLowerCase()===r)).map(e=>e.address.toLowerCase())}(R[0].calls.flatMap(e=>e.logs??[]),S.address),...t.calls.map(e=>e.to?.toLowerCase())])].filter(e=>!!e&&e!==s.ethAddress&&e!==s.zeroAddress):[],U=function(e){let t=new Set(e.map(e=>e.toLowerCase())),r=3735928559n;for(;t.has(`0x${r.toString(16).padStart(40,"0")}`);)r++;return`0x${r.toString(16).padStart(40,"0")}`}([...S?[S.address]:[],...N,...d?.map(({address:e})=>e)??[]]),z=[{address:U,code:g}],[D,F]=await Promise.all([h?Promise.all([O(e,{account:S.address,...M,data:I,stateOverride:d}),...N.map(t=>O(e,{account:S.address,address:t,...M,data:a.encodeData(w,[S.address]),staticCallAddress:U,stateOverride:d}))]):[],(0,y.simulateBlocks)(e,{...M,blocks:[{calls:[...u,{to:s.zeroAddress}].map(e=>({...e,from:S?.address})),stateOverrides:d},...h?[{calls:[{data:I}]},{calls:N.map(e=>({to:U,data:C(e,a.encodeData(w,[S.address]))})),stateOverrides:z},{calls:N.map(e=>({to:U,data:C(e,a.encodeData(E))})),stateOverrides:z},{calls:N.map(e=>({to:U,data:C(e,a.encodeData(x,[0n]))})),stateOverrides:z},{calls:N.map(e=>({to:U,data:C(e,a.encodeData(A))})),stateOverrides:z}]:[]],traceTransfers:k,validation:P})]),L=F[0],[H,G,q,$,K]=h?F.slice(1):[],{calls:Z,...V}=L,W=Z.slice(0,-1),Y=D.map(e=>T(e)?(0,p.hexToBigInt)(e.data):null),X=[...H?.calls??[],...G?.calls??[]].map(e=>T(e)?(0,p.hexToBigInt)(e.data):null),J=(q?.calls??[]).map(e=>_(e,E)),Q=(K?.calls??[]).map(e=>_(e,A)),ee=($?.calls??[]).map(e=>_(e,x)),et=[];for(let[e,t]of X.entries()){let r=Y[e],n=D[e],i="bigint"==typeof r?r:e>0&&n?.status==="success"&&"0x"===n.data?0n:null;if("bigint"!=typeof t||"bigint"!=typeof i)continue;let a=J[e-1],o=Q[e-1],l=ee[e-1],c=0===e?{address:s.ethAddress,decimals:18,symbol
111:"ETH"}:{address:N[e-1],decimals:l||a?Number(a??1):void 0,symbol:o??void 0};et.push({token:c,value:{pre:i,post:t,diff:t-i}})}return{assetChanges:et,block:V,results:W}}function C(e,t){return a.encodeData(k,[e,t])}function T(e){return"success"===e.status&&/^0x[\da-f]{64}$/i.test(e.data)}function _(e,t){if("failure"===e.status||"0x"===e.data)return null;try{return a.decodeResult(t,e.data)}catch{return null}}async function O(e,t){let{account:r,address:n,blockNumber:i,blockTag:a,data:o,staticCallAddress:l,stateOverride:c}=t;try{return{data:(await (0,h.call)({...e,ccipRead:!1},{account:n?s.zeroAddress:r,data:n?C(n,o):o,stateOverride:n&&l?[...c??[],{address:l,code:g}]:c,...n?{to:l}:{},..."bigint"==typeof i?{blockNumber:i}:{blockTag:a}})).data??"0x",status:"success"}}catch(e){if(!(e instanceof u.CallExecutionError)||!(e.cause instanceof d.ExecutionRevertedError))throw e;return{data:"0x",status:"failure"}}}},71613:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=c;let n=r(21499),i=r(65933),a=r(23337),o=r(44169),s=r(78525),l=r(53490);async function c(e,t){let{abi:r,address:c,args:u,functionName:d,dataSuffix:f="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...p}=t,h=p.account?(0,n.parseAccount)(p.account):e.account,m=(0,a.encodeFunctionData)({abi:r,args:u,functionName:d});try{let{data:n}=await (0,s.getAction)(e,l.call,"call")({batch:!1,data:`${m}${f?f.replace("0x",""):""}`,to:c,...p,account:h}),a=(0,i.decodeFunctionResult)({abi:r,args:u,functionName:d,data:n||"0x"}),o=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:a,request:{abi:o,address:c,args:u,dataSuffix:f,functionName:d,...p,account:h}}}catch(e){throw(0,o.getContractError)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/simulateContract",functionName:d,sender:h?.address})}}},14564:function(e,t){"use strict";async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=r},33170:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=A,t.verifyErc8010=k,t.verifyErc1271=C;let n=r(30077),i=r(86766),a=r(10878),o=r(15079),s=r(17306),l=r(24594),c=r(23337),u=r(39684),d=r(73274),f=r(8247),p=r(246),h=r(93674),m=r(85198),b=r(96291),y=r(78525),g=r(73646),v=r(28381),w=r(53490),E=r(89102),x=r(13438);async function A(e,t){let{address:r,chain:n=e.chain,hash:a,erc6492VerifierAddress:o=t.universalSignatureVerifierAddress??n?.contracts?.erc6492Verifier?.address,multicallAddress:s=t.multicallAddress??n?.contracts?.multicall3?.address,mode:l="auto"}=t;if(n?.verifyHash)return await n.verifyHash(e,t);let c=(()=>{let e=t.signature;return(0,h.isHex)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?(0,v.serializeSignature)(e):(0,b.bytesToHex)(e)})();try{if("eoa"===l)try{if((0,d.isAddressEqual)((0,u.getAddress)(r),await (0,g.recoverAddress)({hash:a,signature:c})))return!0}catch{}if(i.SignatureErc8010.validate(c))return await k(e,{...t,multicallAddress:s,signature:c});return await P(e,{...t,verifierAddress:o,signature:c})}catch(e){if("eoa"!==l)try{if((0,d.isAddressEqual)((0,u.getAddress)(r),await (0,g.recoverAddress)({hash:a,signature:c})))return!0}catch{}if(e instanceof T)return!1;throw e}}async function k(e,t){let{address:r,blockHash:n,blockNumber:s,blockTag:l,hash:u,multicallAddress:d,requireCanonical:h}=t,{authorization:m,data:g,signature:v,to:w}=i.SignatureErc8010.unwrap(t.signature);if(await (0,E.getCode)(e,{address:r,blockHash:n,blockNumber:s,blockTag:l,requireCanonical:h})===(0,p.concatHex)(["0xef0100",m.address]))return await C(e,{...t,signature:v});let A={address:m.address,chainId:Number(m.chainId),nonce:Number(m.nonce),r:(0,b.numberToHex)(m.r,{size:32}),s:(0,b.numberToHex)(m.s,{size:32}),yParity:m.yParity};if(!await (0,f.verifyAuthorization)({address:r,authorization:A}))throw new T;let k=await (0,y.getAction)(e,x.readContract,"readContract")({...d?{address:d}:{code:o.multicall3Bytecode},authorizationList:[A],abi:a.multicall3Abi,blockHash:n,blockNumber:s,blockTag:"pending",functionName:"aggregate3",requireCanonical:h,args:[[...g?[{allowFailure:!0,target:w??r,callData:g}
111]:[],{allowFailure:!0,target:r,callData:(0,c.encodeFunctionData)({abi:a.erc1271Abi,functionName:"isValidSignature",args:[u,v]})}]]}),P=k[k.length-1]?.returnData;if(P?.startsWith("0x1626ba7e"))return!0;throw new T}async function P(e,t){let{address:r,factory:i,factoryData:u,hash:d,signature:f,verifierAddress:p,...h}=t,b=await (async()=>!i&&!u||n.SignatureErc6492.validate(f)?f:n.SignatureErc6492.wrap({data:u,signature:f,to:i}))(),g=p?{to:p,data:(0,c.encodeFunctionData)({abi:a.erc6492SignatureValidatorAbi,functionName:"isValidSig",args:[r,d,b]}),...h}:{data:(0,l.encodeDeployData)({abi:a.erc6492SignatureValidatorAbi,args:[r,d,b],bytecode:o.erc6492SignatureValidatorByteCode}),...h},{data:v}=await (0,y.getAction)(e,w.call,"call")(g).catch(e=>{if(e instanceof s.CallExecutionError)throw new T;throw e});if((0,m.hexToBool)(v??"0x0"))return!0;throw new T}async function C(e,t){let{address:r,blockHash:n,blockNumber:i,blockTag:o,hash:l,requireCanonical:c,signature:u}=t;if((await (0,y.getAction)(e,x.readContract,"readContract")({address:r,abi:a.erc1271Abi,args:[l,u],blockHash:n,blockNumber:i,blockTag:o,functionName:"isValidSignature",requireCanonical:c}).catch(e=>{if(e instanceof s.ContractFunctionExecutionError)throw new T;throw e})).startsWith("0x1626ba7e"))return!0;throw new T}class T extends Error{}},79413:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=o;let n=r(78525),i=r(27921),a=r(33170);async function o(e,{address:t,message:r,factory:o,factoryData:s,signature:l,...c}){let u=(0,i.hashMessage)(r);return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:t,factory:o,factoryData:s,hash:u,signature:l,...c})}},3918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=o;let n=r(78525),i=r(19021),a=r(33170);async function o(e,t){let{address:r,factory:o,factoryData:s,signature:l,message:c,primaryType:u,types:d,domain:f,...p}=t,h=(0,i.hashTypedData)({message:c,primaryType:u,types:d,domain:f});return(0,n.getAction)(e,a.verifyHash,"verifyHash")({address:r,factory:o,factoryData:s,hash:h,signature:l,...p})}},53820:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=h;let n=r(55452),i=r(45742),a=r(78525),o=r(27805),s=r(83345),l=r(52614),c=r(16283),u=r(28559),d=r(84187),f=r(82911),p=r(35467);async function h(e,t){let r,h,m,b,y;let{checkReplacement:g=e.chain?.supportsTransactionReplacementDetection??!0,confirmations:v=1,hash:w,onReplaced:E,retryCount:x=6,retryDelay:A=({count:e})=>200*~~(1<<e),timeout:k=18e4}=t,P=(0,c.stringify)(["waitForTransactionReceipt",e.uid,w]),C=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,T=!1,{promise:_,resolve:O,reject:S}=(0,s.withResolvers)(),I=k?setTimeout(()=>{y?.(),b?.(),S(new i.WaitForTransactionReceiptTimeoutError({hash:w}))},k):void 0;return b=(0,o.observe)(P,{onReplaced:E,resolve:O,reject:S},async t=>{if((m=await (0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:w}).catch(()=>void 0))&&v<=1){clearTimeout(I),t.resolve(m),b?.();return}y=(0,a.getAction)(e,p.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:C,async onBlockNumber(o){let s=e=>{clearTimeout(I),y?.(),e(),b?.()},c=o;if(!T)try{if(m){if(v>1&&(!m.blockNumber||c-m.blockNumber+1n<v))return;s(()=>t.resolve(m));return}if(g&&!r&&(T=!0,await (0,l.withRetry)(async()=>{(r=await (0,a.getAction)(e,d.getTransaction,"getTransaction")({hash:w})).blockNumber&&(c=r.blockNumber)},{delay:A,retryCount:x}),T=!1),m=await (0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:w}),v>1&&(!m.blockNumber||c-m.blockNumber+1n<v))return;s(()=>t.resolve(m))}catch(o){if(o instanceof i.TransactionNotFoundError||o instanceof i.TransactionReceiptNotFoundError){if(!r){T=!1;return}try{h=r,T=!0;let i=await (0,l.withRetry)(()=>(0,a.getAction)(e,u.getBlock,"getBlock")({blockNumber:c,includeTransactions:!0}),{delay:A,retryCount:x,shouldRetry:({error:e})=>e instanceof n.BlockNotFoundError});T=!1;let o=i.transactions.find(({from:e,nonce:t})=>e===h.from&&t===h.nonce);if(!o||(m=await (0,a.getAction)(e,f.getTransactionReceipt,"getTransactionReceipt")({hash:o.hash}),v>1&&(!m.blockNumber||c-m.blockNumber+1n<v)))return;let d="replaced";o.to===h.to&&o.value===h.value&&o.input===h.input?d="repriced":o.from===o.to&&0n===o.value&&(d="cancelled"),s(()=>{t.onReplaced?.({reason:d,replacedTransaction:h,transaction:o,transactionReceipt:m}),t.resolve(m)})}catch(e){s(()=>t.reject(e))}}else s(()=>t.reject(o))}}})}),_}},6607:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockHeaders=function(e,{onBlockHeader:t,onError:r}){let s;let l=(0,a.stringify)(["watchBlockHeaders",e.uid]);return(0,i.observe)(l,{onBlockHeader:t,onError:r},t=>{let r=!0,i=!1,a=()=>r=!1;return(async()=>{try{let l=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:c}=await l.subscribe({params:["newHeads"],onData(i){if(!r)return;let a=(e.chain?.formatters?.block?.format||n.formatBlock)(i.result,"watchBlockHeaders");for(let e of o)delete a[e];t.onBlockHeader(a,s),s=a},onError(e){i&&t.onError?.(e)}});i=!0,a=c,r||a()}catch(e){t.onError?.(e)}})(),()=>a()})};let n=r(13713),i=r(27805),a=r(16283),o=["size","totalDifficulty","transactions","uncles","withdrawals"]},35467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:c,onError:u,poll:d,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
111onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let n=(0,s.stringify)(["watchBlockNumber",e.uid,t,r,f]);return(0,a.observe)(n,{onBlockNumber:c,onError:u},n=>(0,o.poll)(async()=>{try{let t=await (0,i.getAction)(e,l.getBlockNumber,"getBlockNumber")({cacheTime:0});if(void 0!==p){if(t===p)return;if(t-p>1&&r)for(let e=p+1n;e<t;e++)n.onBlockNumber(e,p),p=e}(void 0===p||t>p)&&(n.onBlockNumber(t,p),p=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let i=(0,s.stringify)(["watchBlockNumber",e.uid,t,r]);return(0,a.observe)(i,{onBlockNumber:c,onError:u},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await a.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.hexToBigInt)(e.result?.number);t.onBlockNumber(i,p),p=i},onError(e){t.onError?.(e)}});i=o,r||i()}catch(e){u?.(e)}})(),()=>i()})})()};let n=r(85198),i=r(78525),a=r(27805),o=r(33197),s=r(16283),l=r(56747)},88858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:l=!1,onBlock:c,onError:u,includeTransactions:d,poll:f,pollingInterval:p=e.pollingInterval}){let h,m,b,y;let g=void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
111onfig.type&&"ipc"!==e.transport.transports[0].config.type),v=d??!1;return g?(()=>{let d=(0,o.stringify)(["watchBlocks",e.uid,t,r,l,v,p]);return(0,i.observe)(d,{onBlock:c,onError:u},i=>(0,a.poll)(async()=>{try{let a=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:v});if(null!==a.number&&h?.number!=null){if(a.number===h.number)return;if(a.number-h.number>1&&r)for(let t=h?.number+1n;t<a.number;t++){let r=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t,includeTransactions:v});i.onBlock(r,h),h=r}}(h?.number==null||"pending"===t&&a?.number==null||null!==a.number&&a.number>h.number)&&(i.onBlock(a,h),h=a)}catch(e){i.onError?.(e)}},{emitOnBegin:l,interval:p}))})():(m=!0,b=!0,y=()=>m=!1,(async()=>{try{l&&(0,n.getAction)(e,s.getBlock,"getBlock")({blockTag:t,includeTransactions:v}).then(e=>{m&&b&&(c(e,void 0),b=!1)}).catch(u);let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await r.subscribe({params:["newHeads"],async onData(t){if(!m)return;let r=await (0,n.getAction)(e,s.getBlock,"getBlock")({blockNumber:t.result?.number,includeTransactions:v}).catch(()=>{});m&&(c(r,h),b=!1,h=r)},onError(e){u?.(e)}});y=i,m||y()}catch(e){u?.(e)}})(),()=>y())};let n=r(78525),i=r(27805),a=r(33197),o=r(16283),s=r(28559)},70:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=function(e,t){let{abi:r,address:y,args:g,batch:v=!0,eventName:w,fromBlock:E,onError:x,onLogs:A,poll:k,pollingInterval:P=e.pollingInterval,strict:C}=t;return(void 0!==k?k:"bigint"==typeof E||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
111onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=C??!1,n=(0,d.stringify)(["watchContractEvent",y,g,v,e.uid,w,P,t,E]);return(0,c.observe)(n,{onLogs:A,onError:x},n=>{let a,o;void 0!==E&&(a=E-1n);let s=!1,c=(0,u.poll)(async()=>{if(!s){try{o=await (0,l.getAction)(e,f.createContractEventFilter,"createContractEventFilter")({abi:r,address:y,args:g,eventName:w,strict:t,fromBlock:E})}catch{}s=!0;return}try{let i;if(o)i=await (0,l.getAction)(e,m.getFilterChanges,"getFilterChanges")({filter:o});else{let n=await (0,l.getAction)(e,p.getBlockNumber,"getBlockNumber")({});i=a&&a<n?await (0,l.getAction)(e,h.getContractEvents,"getContractEvents")({abi:r,address:y,args:g,eventName:w,fromBlock:a+1n,toBlock:n,strict:t}):[],a=n}if(0===i.length)return;if(v)n.onLogs(i);else for(let e of i)n.onLogs([e])}catch(e){o&&e instanceof i.InvalidInputRpcError&&(s=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:P});return async()=>{o&&await (0,l.getAction)(e,b.uninstallFilter,"uninstallFilter")({filter:o}),c()}})})():(()=>{let t=(0,d.stringify)(["watchContractEvent",y,g,v,e.uid,w,P,C??!1]),i=!0,l=()=>i=!1;return(0,c.observe)(t,{onLogs:A,onError:x},t=>((async()=>{try{let c=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=w?(0,o.encodeEventTopics)({abi:r,eventName:w,args:g}):[],{unsubscribe:d}=await c.subscribe({params:["logs",{address:y,topics:u}],onData(e){if(!i)return;let o=e.result;try{let{eventName:e,args:n}=(0,a.decodeEventLog)({abi:r,data:o.data,topics:o.topics,strict:C}),i=(0,s.formatLog)(o,{args:n,eventName:e});t.onLogs([i])}catch(a){let e,r;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if(C)return;e=a.abiItem.name,r=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,s.formatLog)(o,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});l=d,i||l()}catch(e){x?.(e)}})(),()=>l()))})()};let n=r(43279),i=r(875),a=r(42908),o=r(16244),s=r(47539),l=r(78525),c=r(27805),u=r(33197),d=r(16283),f=r(61677),p=r(56747),h=r(90208),m=r(55293),b=r(14564)},14515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=function(e,{address:t,args:r,batch:y=!0,event:g,events:v,fromBlock:w,onError:E,onLogs:x,poll:A,pollingInterval:k=e.pollingInterval,strict:P}){let C,T;let _=void 0!==A?A:"bigint"==typeof w||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
111onfig.type&&"ipc"!==e.transport.transports[0].config.type),O=P??!1;return _?(()=>{let n=(0,d.stringify)(["watchEvent",t,r,y,e.uid,g,k,w]);return(0,c.observe)(n,{onLogs:x,onError:E},n=>{let a,o;void 0!==w&&(a=w-1n);let s=!1,c=(0,u.poll)(async()=>{if(!s){try{o=await (0,l.getAction)(e,f.createEventFilter,"createEventFilter")({address:t,args:r,event:g,events:v,strict:O,fromBlock:w})}catch{}s=!0;return}try{let i;if(o)i=await (0,l.getAction)(e,h.getFilterChanges,"getFilterChanges")({filter:o});else{let n=await (0,l.getAction)(e,p.getBlockNumber,"getBlockNumber")({});i=a&&a!==n?await (0,l.getAction)(e,m.getLogs,"getLogs")({address:t,args:r,event:g,events:v,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===i.length)return;if(y)n.onLogs(i);else for(let e of i)n.onLogs([e])}catch(e){o&&e instanceof i.InvalidInputRpcError&&(s=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:k});return async()=>{o&&await (0,l.getAction)(e,b.uninstallFilter,"uninstallFilter")({filter:o}),c()}})})():(C=!0,T=()=>C=!1,(async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=v??(g?[g]:void 0),c=[];l&&(c=[l.flatMap(e=>(0,o.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],g&&(c=c[0]));let{unsubscribe:u}=await i.subscribe({params:["logs",{address:t,topics:c}],onData(e){if(!C)return;let t=e.result;try{let{eventName:e,args:r}=(0,a.decodeEventLog)({abi:l??[],data:t.data,topics:t.topics,strict:O}),n=(0,s.formatLog)(t,{args:r,eventName:e});x([n])}catch(a){let e,r;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if(P)return;e=a.abiItem.name,r=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,s.formatLog)(t,{args:r?[]:{},eventName:e});x([i])}},onError(e){E?.(e)}});T=u,C||T()}catch(e){E?.(e)}})(),()=>T())};let n=r(43279),i=r(875),a=r(42908),o=r(16244),s=r(47539),l=r(78525),c=r(27805),u=r(33197),d=r(16283),f=r(47142),p=r(56747),h=r(55293),m=r(19734),b=r(14564)},17559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:u,poll:d,pollingInterval:f=e.pollingInterval}){let p,h;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let d=(0,o.stringify)(["watchPendingTransactions",e.uid,t,f]);return(0,i.observe)(d,{onTransactions:u,onError:r},r=>{let i;let o=(0,a.poll)(async()=>{try{if(!i)try{i=await (0,n.getAction)(e,s.createPendingTransactionFilter,"createPendingTransactionFilter")({});return}catch(e){throw o(),e}let a=await (0,n.getAction)(e,l.getFilterChanges,"getFilterChanges")({filter:i});if(0===a.length)return;if(t)r.onTransactions(a);else for(let e of a)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{i&&await (0,n.getAction)(e,c.uninstallFilter,"uninstallFilter")({filter:i}),o()}})})():(p=!0,h=()=>p=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!p)return;let t=e.result;u([t])},onError(e){r?.(e)}});h=t,p||h()}catch(e){r?.(e)}})(),()=>h())};let n=r(78525),i=r(27805),a=r(33197),o=r(16283),s=r(8460),l=r(55293),c=r(14564)},56701:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifySiweMessage=s;let n=r(27921),i=r(79705),a=r(61066),o=r(33170);async function s(e,t){let{address:r,domain:s,message:l,nonce:c,scheme:u,signature:d,time:f=new Date,...p}=t,h=(0,i.parseSiweMessage)(l);if(!h.address||!(0,a.validateSiweMessage)({address:r,domain:s,message:h,nonce:c,scheme:u,time:f}))return!1;let m=(0,n.hashMessage)(l);return(0,o.verifyHash)(e,{address:h.address,hash:m,signature:d,...p})}},29417:function(e,t){"use strict";async function r(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=r},75186:function(e,t){"use strict";async function r(e){return e.request({method:`${e.mode}_dumpState`})}Object.defineProperty(t,"__esModule",{value:!0}),t.dumpState=r},48758:function(e,t){"use strict";async function r(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}
111Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=r},78294:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_content"})}Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=r},12128:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=i;let n=r(85198);async function i(e){let{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}},38358:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=r},31954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=i;let n=r(96291);async function i(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}},85872:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_inspect"})}Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=r},54246:function(e,t){"use strict";async function r(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=r},55286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=i;let n=r(96291);async function i(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}},37354:function(e,t){"use strict";async function r(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=r},69391:function(e,t){"use strict";async function r(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=r},62053:function(e,t){"use strict";async function r(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.revert=r},19645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=a;let n=r(40018),i=r(9101);async function a(e,t){let{accessList:r,data:a,from:o,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:f,value:p,...h}=t,m=e.chain?.formatters?.transactionRequest?.format,b=(m||i.formatTransactionRequest)({...(0,n.extract)(h,{format:m}),accessList:r,data:a,from:o,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:f,value:p},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[b]})}},35785:function(e,t){"use strict";async function r(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=r},28458:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=i;let n=r(96291);async function i(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}},8226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=i;let n=r(96291);async function i(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}},13134:function(e,t){"use strict";async function r(e,{interval:t}){let r="hardhat"===e.mode?1e3*t:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=r},22952:function(e,t){"use strict";async function r(e,{address:t,bytecode:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountCode",params:[t,r]}):await e.request({method:`${e.mode}_setCode`,params:[t,r]})}
111Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=r},25949:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=r},82497:function(e,t){"use strict";async function r(e,{interval:t}){let r="hardhat"===e.mode?1e3*t:t;await e.request({method:"evm_setIntervalMining",params:[r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=r},32843:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=r},73755:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=i;let n=r(96291);async function i(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}},10067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=i;let n=r(96291);async function i(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}},51633:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=i;let n=r(96291);async function i(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}},81983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=i;let n=r(96291);async function i(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}},32720:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=r},88466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=i;let n=r(96291);async function i(e,{address:t,index:r,value:i}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,i]})}},62540:function(e,t){"use strict";async function r(e){return await e.request({method:"evm_snapshot"})}Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=r},68656:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=r},35732:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approve=c;let n=r(10878),i=r(40635),a=r(99019),o=r(71613),s=r(34451),l=r(40411);async function c(e,t){return c.inner(s.writeContract,e,t)}!function(e){async function t(t,r,n){return await t(r,{...n,...e.call(r,n)})}async function r(t,r){return(0,a.estimateContractGas)(t,{...(0,l.pickWriteParameters)(r),...e.call(t,r)})}async function s(t,r){return(0,o.simulateContract)(t,{...(0,l.pickWriteParameters)(r),...e.call(t,r)})}e.inner=t,e.call=function(e,t){return(0,l.defineCall)(function(e,t){let{amount:r,spender:i,token:a}=t,{address:o,decimals:s}=(0,l.resolveToken)(e,{token:a});return{abi:n.erc20Abi,address:o,args:[i,(0,l.toBaseUnits)(r,s)],functionName:"approve"}}(e,t))},e.estimateGas=r,e.simulate=s,e.extractEvent=function(e){let[t]=(0,i.parseEventLogs)({abi:n.erc20Abi,logs:e,eventName:"Approval",strict:!0});if(!t)throw Error("`Approval` event not found.");return t}}(c||(t.approve=c={}))},11767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approveSync=s;let n=r(93720),i=r(58358),a=r(35732),o=r(40411);async function s(e,t){let{amount:r,token:s,throwOnReceiptRevert:l=!0}=t,{decimals:c}=(0,o.resolveToken)(e,{token:s}),u=(0,o.resolveAmountDecimals)(r,c),d=await a.approve.inner(i.writeContractSync,e,{...t,throwOnReceiptRevert:l}),{args:f}=a.approve.extractEvent(d.logs);return{...f,...void 0===u?{}:{decimals:u,formatted:(0,n.formatUnits)(f.value,u)},receipt:d}}},12161:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllowance=o;let n=r(10878),i=r(13438),a=r(40411);async function o(e,t){let{account:r,decimals:n,spender:s,token:l,...c}=t,[u,{decimals:d}]=await Promise.all([(0,i.readContract)(e,{...c,...o.call(e,{account:r,spender:s,token:l})}),(0,a.resolveTokenWithDecimals)(e,{decimals:n,token:l})]);return(0,a.toAmount)(u,d)}(o||(t.getAllowance=o={})).call=function(e,t){return(0,a.defineCall)({address:(0,a.resolveToken)(e,t).address,abi:n.erc20Abi,functionName:"allowance",args:[t.account,t.spender]})}},66394:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=l;let n=r(21499),i=r(10878),a=r(92973),o=r(13438),s=r(40411);async function l(e,t){let{account:r=e.account,decimals:i,token:c,...u}=t;if(!r)throw new a.AccountNotFoundError;let d=(0,n.parseAccount)(r).address,[f,{decimals:p}]=await Promise.all([(0,o.readContract)(e,{...u,...l.call(e,{account:d,token:c})}),(0,s.resolveTokenWithDecimals)(e,{decimals:i,token:c})]);return(0,s.toAmount)(f,p)}(l||(t.getBalance=l={})).call=function(e,t){let r=t.account??e.account;if(!r)throw new a.AccountNotFoundError;let o=(0,n.parseAccount)(r).address;return(0,s.defineCall)({address:(0,s.resolveToken)(e,t).address,abi:i.erc20Abi,functionName:"balanceOf",args:[o]})}},25744:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetadata=o;let n=r(10878),i=r(13438),a=r(40411);async function o(e,t){let{token:r,...o}=t,{address:s}=(0,a.resolveToken)(e,{token:r}),l=(0,a.findDeclaredToken)(e,r),[c,u,d]=await Promise.all([l?.decimals??(0,i.readContract)(e,{...o,abi:n.erc20Abi,address:s,functionName:"decimals"}),l?.name??(0,i.readContract)(e,{...o,abi:n.erc20Abi,address:s,functionName:"name"}),l?.symbol??(0,i.readContract)(e,{...o,abi:n.erc20Abi,address:s,functionName:"symbol"})]);return{decimals:c,name:u,symbol:d}}},72042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalSupply=o;let n=r(10878),i=r(13438),a=r(40411);async function o(e,t){let{decimals:r,token:n,...s}=t,[l,{decimals:c}]=await Promise.all([(0,i.readContract)(e,{...s,...o.call(e,{token:n})}),(0,a.resolveTokenWithDecimals)(e,{decimals:r,token:n})]);return(0,a.toAmount)(l,c)}(o||(t.getTotalSupply=o={})).call=function(e,t){return(0,a.defineCall)({address:(0,a.resolveToken)(e,t).address,abi:n.erc20Abi,args:[],functionName:"totalSupply"})}},99683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transferSync=t.transfer=t.getTotalSupply=t.getMetadata=t.getBalance=t.getAllowance=t.approveSync=t.approve=void 0;var n=r(35732);Object.defineProperty(t,"approve",{enumerable:!0,get:function(){return n.approve}});var i=r(11767);Object.defineProperty(t,"approveSync",{enumerable:!0,get:function(){return i.approveSync}});var a=r(12161);Object.defineProperty(t,"getAllowance",{enumerable:!0,get:function(){return a.getAllowance}});var o=r(66394);Object.defineProperty(t,"getBalance",{enumerable:!0,get:function(){return o.getBalance}});var s=r(25744);Object.defineProperty(t,"getMetadata",{enumerable:!0,get:function(){return s.getMetadata}});var l=r(72042);Object.defineProperty(t,"getTotalSupply",{enumerable:!0,get:function(){return l.getTotalSupply}});var c=r(99980);Object.defineProperty(t,"transfer",{enumerable:!0,get:function(){return c.transfer}});var u=r(27397);Object.defineProperty(t,"transferSync",{enumerable:!0,get:function(){return u.transferSync}})},40411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toAmount=function(e,t){return{amount:e,decimals:t,formatted:(0,s.formatUnits)(e,t)}},t.toBaseUnits=function(e,t){if("bigint"==typeof e)return e;let r=e.decimals??t;return(0,l.parseUnits)(e.formatted,u(r))},t.requireTokenDecimals=u,t.resolveAmountDecimals=function(e,t){return"bigint"==typeof e?t:e.decimals??t},t.resolveToken=d,t.findDeclaredToken=f,t.resolveTokenWithDecimals=h,t.pickWriteParameters=function(e){let{account:t,chain:r,gas:n,maxFeePerGas:i,maxPriorityFeePerGas:a,nonce:o}=e;return{account:t,chain:r,gas:n,maxFeePerGas:i,maxPriorityFeePerGas:a,nonce:o}},t.defineCall=function(e){return{...e,data:(0,o.encodeFunctionData)(e),to:e.address}};let n=r(10878),i=r(42948),a=r(73274),o=r(34262),s=r(93720),l=r(98264),c=r(13438);function u(e){if(void 0===e)throw Error("Token decimals are required. Pass `amount.decimals` or select a declared token.");return e}function d(e,t){let{decimals:r,token:n}=t,o=f(e,n);if(o)return{address:o.address,decimals:r??o.decimals};if((0,i.isAddress)(n,{strict:!1}))return{address:n,decimals:r??function(e,t){let r=e.tokens,n=e.chain?.id;if(r&&void 0!==n)for(let e of r){let r=p(e,n);if(r&&(0,a.isAddressEqual)(r.address,t))return r.decimals}}(e,n)};throw Error(`Token "${n}" is not a declared ERC-20 token on the client's \`tokens\` array (with an address for the client's chain), and is not a valid address.`)}function f(e,t){let r=e.tokens,n=e.chain?.id;if(!r||void 0===n)return;let o=function(e,t){let r=t.toLowerCase();for(let t of e)if(t.symbol?.toLowerCase()===r)return t}(r,t);if(o)return p(o,n);
111if((0,i.isAddress)(t,{strict:!1}))for(let e of r){let r=p(e,n);if(r&&(0,a.isAddressEqual)(r.address,t))return r}}function p(e,t){let r=e.addresses[t];if(r)return{address:r,currency:e.currency,decimals:e.decimals,name:e.name,popular:e.popular,symbol:e.symbol}}async function h(e,t){let{address:r,decimals:i}=d(e,t);return void 0!==i?{address:r,decimals:i}:{address:r,decimals:await (0,c.readContract)(e,{abi:n.erc20Abi,address:r,functionName:"decimals"})}}},99980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transfer=c;let n=r(10878),i=r(40635),a=r(99019),o=r(71613),s=r(34451),l=r(40411);async function c(e,t){return c.inner(s.writeContract,e,t)}!function(e){async function t(t,r,n){return await t(r,{...n,...e.call(r,n)})}async function r(t,r){return(0,a.estimateContractGas)(t,{...(0,l.pickWriteParameters)(r),...e.call(t,r)})}async function s(t,r){return(0,o.simulateContract)(t,{...(0,l.pickWriteParameters)(r),...e.call(t,r)})}e.inner=t,e.call=function(e,t){return(0,l.defineCall)(function(e,t){let{amount:r,from:i,to:a,token:o}=t,{address:s,decimals:c}=(0,l.resolveToken)(e,{token:o}),u=(0,l.toBaseUnits)(r,c);return i?{abi:n.erc20Abi,address:s,args:[i,a,u],functionName:"transferFrom"}:{abi:n.erc20Abi,address:s,args:[a,u],functionName:"transfer"}}(e,t))},e.estimateGas=r,e.simulate=s,e.extractEvent=function(e){let[t]=(0,i.parseEventLogs)({abi:n.erc20Abi,logs:e,eventName:"Transfer",strict:!0});if(!t)throw Error("`Transfer` event not found.");return t}}(c||(t.transfer=c={}))},27397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transferSync=s;let n=r(93720),i=r(58358),a=r(40411),o=r(99980);async function s(e,t){let{amount:r,token:s,throwOnReceiptRevert:l=!0}=t,{decimals:c}=(0,a.resolveToken)(e,{token:s}),u=(0,a.resolveAmountDecimals)(r,c),d=await o.transfer.inner(i.writeContractSync,e,{...t,throwOnReceiptRevert:l}),{args:f}=o.transfer.extractEvent(d.logs);return{...f,...void 0===u?{}:{decimals:u,formatted:(0,n.formatUnits)(f.value,u)},receipt:d}}},36205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=i;let n=r(96291);async function i(e,{chain:t}){let{id:r,name:i,nativeCurrency:a,rpcUrls:o,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:i,nativeCurrency:a,rpcUrls:o.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}},39015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=function(e,t){let{abi:r,args:a,bytecode:o,...s}=t,l=(0,n.encodeDeployData)({abi:r,args:a,bytecode:o});return(0,i.sendTransaction)(e,{...s,...s.authorizationList?{to:null}:{},data:l})};let n=r(24594),i=r(22922)},46757:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=i;let n=r(39684);async function i(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,n.checksumAddress)(e))}},34610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallsStatus=l;let n=r(47645),i=r(56574),a=r(85198),o=r(58983),s=r(72657);async function l(e,t){async function r(t){if(t.endsWith(s.fallbackMagicIdentifier.slice(2))){let r=(0,i.trim)((0,n.sliceHex)(t,-64,-32)),o=(0,n.sliceHex)(t,0,-64).slice(2).match(/.{1,64}/g),l=await Promise.all(o.map(t=>s.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),c=l.some(e=>null===e)?100:l.every(e=>e?.status==="0x1")?200:l.every(e=>e?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,a.hexToNumber)(r),receipts:l.filter(Boolean),status:c,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}let{atomic:l=!1,chainId:c,receipts:u,version:d="2.0.0",...f}=await r(t.id),[p,h]=(()=>{let e=f.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...f,atomic:l,chainId:c?(0,a.hexToNumber)(c):void 0,receipts:u?.map(e=>({...e,blockNumber:a.hexToBigInt(e.blockNumber),gasUsed:a.hexToBigInt(e.gasUsed),status:o.receiptStatuses[e.status]}))??[],statusCode:h,status:p,version:d}}},7542:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.getCapabilities=a;let n=r(21499),i=r(96291);async function a(e,t={}){let{account:r=e.account,chainId:a}=t,o=r?(0,n.parseAccount)(r):void 0,s=a?[o?.address,[(0,i.numberToHex)(a)]]:[o?.address],l=await e.request({method:"wallet_getCapabilities",params:s}),c={};for(let[e,t]of Object.entries(l))for(let[r,n]of(c[Number(e)]={},Object.entries(t)))"addSubAccount"===r&&(r="unstable_addSubAccount"),c[Number(e)][r]=n;return"number"==typeof a?c[a]:c}},33283:function(e,t){"use strict";async function r(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=r},46805:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareAuthorization=c;let n=r(21499),i=r(92973),a=r(73274),o=r(78525),s=r(3204),l=r(7804);async function c(e,t){let{account:r=e.account,chainId:c,nonce:u}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});let d=(0,n.parseAccount)(r),f=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,n.parseAccount)(t.executor)})(),p={address:t.contractAddress??t.address,chainId:c,nonce:u};return void 0===p.chainId&&(p.chainId=e.chain?.id??await (0,o.getAction)(e,s.getChainId,"getChainId")({})),void 0===p.nonce&&(p.nonce=await (0,o.getAction)(e,l.getTransactionCount,"getTransactionCount")({address:d.address,blockTag:"pending"}),("self"===f||f?.address&&(0,a.isAddressEqual)(f.address,d.address))&&(p.nonce+=1)),p}},38280:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsFillTransaction=t.eip1559NetworkCache=t.defaultParameters=void 0,t.prepareTransactionRequest=w;let n=r(21499),i=r(72642),a=r(73430),o=r(28559),s=r(7804),l=r(43137),c=r(45742),u=r(83209),d=r(51227),f=r(40741),p=r(6505),h=r(78525),m=r(90626),b=r(19199),y=r(10644),g=r(35e3),v=r(3204);async function w(e,r){let m,w,E=r;E.account??=e.account,E.parameters??=t.defaultParameters;let{account:x,chain:A=e.chain,nonceManager:k,parameters:P}=E,C="function"==typeof A?.prepareTransactionRequest?{fn:A.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(A?.prepareTransactionRequest)?{fn:A.prepareTransactionRequest[0],runAt:A.prepareTransactionRequest[1].runAt}:void 0;async function T(){return m||(void 0!==E.chainId?E.chainId:A?A.id:m=await (0,h.getAction)(e,v.getChainId,"getChainId")({}))}let _=x?(0,n.parseAccount)(x):x,O=E.nonce;if(C?.fn&&C.runAt?.includes("beforeFillTransaction")){E=await C.fn({...E,chain:A},{client:e,phase:"beforeFillTransaction"}),O??=E.nonce;let t=E.account??E.from;_=t?(0,n.parseAccount)(t):void 0}if(P.includes("nonce")&&void 0===O&&_&&k){let t=await T();O=await k.consume({address:_.address,chainId:t,client:e})}let S=(!(P.includes("blobVersionedHashes")||P.includes("sidecars"))||!E.kzg||!E.blobs)&&(P.length>0&&"feePayer"in E&&E.feePayer&&!("feePayerSignature"in E&&E.feePayerSignature)||!1!==t.supportsFillTransaction.get(e.uid)&&["fees","gas"].some(e=>P.includes(e))&&(P.includes("chainId")&&"number"!=typeof E.chainId||P.includes("nonce")&&"number"!=typeof O||P.includes("fees")&&"bigint"!=typeof E.gasPrice&&("bigint"!=typeof E.maxFeePerGas||"bigint"!=typeof E.maxPriorityFeePerGas)||P.includes("gas")&&"bigint"!=typeof E.gas))?await (0,h.getAction)(e,g.fillTransaction,"fillTransaction")({...E,nonce:O}).then(r=>{let{chainId:n,from:i,gas:a,gasPrice:o,nonce:s,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,type:d,...f}=r.transaction,p="feeToken"in f?f.feeToken:void 0,h="feePayerSignature"in f&&null!==f.feePayerSignature&&void 0!==f.feePayerSignature,m=null!=p&&(!("feeToken"in E)||h);return t.supportsFillTransaction.set(e.uid,!0),{...E,...i?{from:i}:{},...d&&!E.type?{type:d}:{},...void 0!==n?{chainId:n}:{},...void 0!==a?{gas:a}:{},...void 0!==o?{gasPrice:o}:{},...void 0!==s?{nonce:s}:{},...void 0!==l&&"legacy"!==E.type&&"eip2930"!==E.type?{maxFeePerBlobGas:l}:{},...void 0!==c&&"legacy"!==E.type&&"eip2930"!==E.type?{maxFeePerGas:c}:{},...void 0!==u&&"legacy"!==E.type&&"eip2930"!==E.type?{maxPriorityFeePerGas:u}:{},..."nonceKey"in f&&void 0!==f.nonceKey?{nonceKey:f.nonceKey}:{},..."keyAuthorization"in f&&void 0!==f.keyAuthorization&&null!==f.keyAuthorization&&!("keyAuthorization"in E)?{keyAuthorization:f.keyAuthorization}:{},..."feePayerSignature"in f&&void 0!==f.feePayerSignature&&null!==f.feePayerSignature?{feePayerSignature:f.feePayerSignature}:{},...m?{feeToken:p}:{},...r.capabilities?{_capabilities:r.capabilities}:{}}}).catch(r=>{if("TransactionExecutionError"!==r.name)return E;if(r.walk?.(e=>
111e instanceof c.FeePayerNonceMismatchError)||r.walk?.(e=>"ExecutionRevertedError"===e.name))throw r;return r.walk?.(e=>"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name||e.message?.includes("eth_fillTransaction is not available"))&&t.supportsFillTransaction.set(e.uid,!1),E}):E;O??=S.nonce;let{blobs:I,gas:B,kzg:j,type:M}=E={...S,..._?{from:_?.address}:{},...void 0!==O?{nonce:O}:{}};async function R(){return w||(w=await (0,h.getAction)(e,o.getBlock,"getBlock")({blockTag:"latest"}))}if(C?.fn&&C.runAt?.includes("beforeFillParameters")&&(E=await C.fn({...E,chain:A},{client:e,phase:"beforeFillParameters"})),P.includes("nonce")&&void 0===O&&_&&!k&&(E.nonce=await (0,h.getAction)(e,s.getTransactionCount,"getTransactionCount")({address:_.address,blockTag:"pending"})),(P.includes("blobVersionedHashes")||P.includes("sidecars"))&&I&&j){let e=(0,u.blobsToCommitments)({blobs:I,kzg:j});if(P.includes("blobVersionedHashes")){let t=(0,f.commitmentsToVersionedHashes)({commitments:e,to:"hex"});E.blobVersionedHashes=t}if(P.includes("sidecars")){let t=(0,d.blobsToProofs)({blobs:I,commitments:e,kzg:j}),r=(0,p.toBlobSidecars)({blobs:I,commitments:e,proofs:t,to:"hex"});E.sidecars=r}}if(P.includes("chainId")&&(E.chainId=await T()),(P.includes("fees")||P.includes("type"))&&void 0===M)try{E.type=(0,y.getTransactionType)(E)}catch{let r=t.eip1559NetworkCache.get(e.uid);if(void 0===r){let n=await R();r="bigint"==typeof n?.baseFeePerGas,t.eip1559NetworkCache.set(e.uid,r)}E.type=r?"eip1559":"legacy"}if(P.includes("fees")){if("legacy"!==E.type&&"eip2930"!==E.type){if(void 0===E.maxFeePerGas||void 0===E.maxPriorityFeePerGas){let t=await R(),{maxFeePerGas:r,maxPriorityFeePerGas:n}=await (0,i.internal_estimateFeesPerGas)(e,{block:t,chain:A,request:E});if(void 0===E.maxPriorityFeePerGas&&E.maxFeePerGas&&E.maxFeePerGas<n)throw new l.MaxFeePerGasTooLowError({maxPriorityFeePerGas:n});E.maxPriorityFeePerGas=n,E.maxFeePerGas=r}}else{if(void 0!==E.maxFeePerGas||void 0!==E.maxPriorityFeePerGas)throw new l.Eip1559FeesNotSupportedError;if(void 0===E.gasPrice){let t=await R(),{gasPrice:r}=await (0,i.internal_estimateFeesPerGas)(e,{block:t,chain:A,request:E,type:"legacy"});E.gasPrice=r}}}return P.includes("gas")&&void 0===B&&(E.gas=await (0,h.getAction)(e,a.estimateGas,"estimateGas")({...E,account:_,prepare:_?.type==="local"?[]:["blobVersionedHashes"]})),C?.fn&&C.runAt?.includes("afterFillParameters")&&(E=await C.fn({...E,chain:A},{client:e,phase:"afterFillParameters"})),(0,b.assertRequest)(E),delete E.parameters,E}t.defaultParameters=["blobVersionedHashes","chainId","fees","gas","nonce","type"],t.eip1559NetworkCache=new Map,t.supportsFillTransaction=new m.LruMap(128)},26631:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=i;let n=r(39684);async function i(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,n.getAddress)(e))}},85305:function(e,t){"use strict";async function r(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=r},72657:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackTransactionErrorMagicIdentifier=t.fallbackMagicIdentifier=void 0,t.sendCalls=f;let n=r(21499),i=r(63392),a=r(875),o=r(23337),s=r(246),l=r(85198),c=r(96291),u=r(88713),d=r(22922);async function f(e,r){let{account:f=e.account,chain:p=e.chain,experimental_fallback:h,experimental_fallbackDelay:m=32,forceAtomic:b=!1,id:y,version:g="2.0.0"}=r,v=f?(0,n.parseAccount)(f):null,w=r.capabilities;e.dataSuffix&&!r.capabilities?.dataSuffix&&(w="string"==typeof e.dataSuffix?{...r.capabilities,dataSuffix:{value:e.dataSuffix,optional:!0}}:{...r.capabilities,dataSuffix:{value:e.dataSuffix.value,...e.dataSuffix.required?{}:{optional:!0}}});let E=r.calls.map(e=>{let t=e.abi?(0,o.encodeFunctionData)({abi:e.abi,functionName:e.functionName,args:e.args}):e.data;return{data:e.dataSuffix&&t?(0,s.concat)([t,e.dataSuffix]):t,to:e.to,value:e.value?(0,c.numberToHex)(e.value):void 0}});try{let t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:b,calls:E,capabilities:w,chainId:(0,c.numberToHex)(p.id),from:v?.address,id:y,version:g}]},{retryCount:0});if("string"==typeof t)return{id:t};return t}catch(n){if(h&&("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name||"UnknownRpcError"===n.name||n.details.toLowerCase().includes("does not exist / is not available")||n.details.toLowerCase().includes("missing or invalid. request()")||n.details.toLowerCase().includes("did n
111ot match any variant of untagged enum")||n.details.toLowerCase().includes("account upgraded to unsupported contract")||n.details.toLowerCase().includes("eip-7702 not supported")||n.details.toLowerCase().includes("unsupported wc_ method")||n.details.toLowerCase().includes("feature toggled misconfigured")||n.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(w&&Object.values(w).some(e=>!e.optional)){let e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new a.UnsupportedNonOptionalCapabilityError(new i.BaseError(e,{details:e}))}if(b&&E.length>1){let e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new a.AtomicityNotSupportedError(new i.BaseError(e,{details:e}))}let r=[];for(let t of E){try{let n=await (0,d.sendTransaction)(e,{account:v,chain:p,data:t.data,to:t.to,value:t.value?(0,l.hexToBigInt)(t.value):void 0});r.push({status:"fulfilled",value:n})}catch(e){r.push({reason:e,status:"rejected"})}m>0&&await new Promise(e=>setTimeout(e,m))}if(r.every(e=>"rejected"===e.status))throw r[0].reason;let n=r.map(e=>"fulfilled"===e.status?e.value:t.fallbackTransactionErrorMagicIdentifier);return{id:(0,s.concat)([...n,(0,c.numberToHex)(p.id,{size:32}),t.fallbackMagicIdentifier])}}throw(0,u.getTransactionError)(n,{...r,account:v,chain:r.chain})}}t.fallbackMagicIdentifier="0x5792579257925792579257925792579257925792579257925792579257925792",t.fallbackTransactionErrorMagicIdentifier=(0,c.numberToHex)(0,{size:32})},93985:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendCallsSync=o;let n=r(78525),i=r(72657),a=r(35836);async function o(e,t){let{chain:r=e.chain}=t,o=t.timeout??Math.max((r?.blockTime??0)*3,5e3),s=await (0,n.getAction)(e,i.sendCalls,"sendCalls")(t);return await (0,n.getAction)(e,a.waitForCallsStatus,"waitForCallsStatus")({...t,id:s.id,timeout:o})}},55093:function(e,t){"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransaction=r},37228:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendRawTransactionSync=a;let n=r(45742),i=r(58983);async function a(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:a}){let o=await e.request({method:"eth_sendRawTransactionSync",params:a?[t,a]:[t]},{retryCount:0}),s=(e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt)(o);if("reverted"===s.status&&r)throw new n.TransactionReceiptRevertedError({receipt:s});return s}},22922:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=v;let n=r(21499),i=r(92973),a=r(63392),o=r(63560),s=r(53039),l=r(246),c=r(88713),u=r(40018),d=r(9101),f=r(78525),p=r(90626),h=r(19199),m=r(3204),b=r(38280),y=r(55093),g=new p.LruMap(128);async function v(e,t){let r;let{account:p=e.account,assertChainId:v=!0,chain:w=e.chain,accessList:E,authorizationList:x,blobs:A,data:k,dataSuffix:P="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,gas:C,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:O,maxPriorityFeePerGas:S,nonce:I,type:B,value:j,...M}=t;if(void 0===p)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let R=p?(0,n.parseAccount)(p):null;try{(0,h.assertRequest)(t);let n=await (async()=>t.to?t.to:null!==t.to&&x&&x.length>0?await (0,o.recoverAuthorizationAddress)({authorization:x[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(R?.type==="json-rpc"||null===R){let t;null!==w&&(t=await (0,f.getAction)(e,m.getChainId,"getChainId")({}),v&&(0,s.assertCurrentChain)({currentChainId:t,chain:w}));let r=e.chain?.formatters?.transactionRequest?.format,i=(r||d.formatTransactionRequest)({...(0,u.extract)(M,{format:r}),accessList:E,account:R,authorizationList:x,blobs:A,chainId:t,data:P?(0,l.concat)([k??"0x",P]):k,gas:C,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:O,maxPriorityFeePerGas:S,nonce:I,to:n,type:B,value:j},"sendTransaction"),a=g.get(e.uid);try{return await e.request({method:a?"wallet_sendTransaction":"eth_sendTransaction",params:[i]},{retryCount:0})}catch(t){if(!1===a)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[i]},{retryCount:0}).then(t=>(g.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw g.set(e.uid,!1),t;throw r});throw t}}if(R?.type==="local"){let t=(()=>
111{if(!R.nonceManager||void 0!==I)return R.nonceManager;let e=R.nonceManager;return{consume:t=>(r={address:t.address,chainId:t.chainId},e.consume(t)),get:t=>e.get(t),increment:t=>e.increment(t),reset:t=>e.reset(t)}})(),i=await (0,f.getAction)(e,b.prepareTransactionRequest,"prepareTransactionRequest")({account:R,accessList:E,authorizationList:x,blobs:A,chain:w,data:P?(0,l.concat)([k??"0x",P]):k,gas:C,gasPrice:T,maxFeePerBlobGas:_,maxFeePerGas:O,maxPriorityFeePerGas:S,nonce:I,nonceManager:t,parameters:[...b.defaultParameters,"sidecars"],type:B,value:j,...M,to:n}),a=w?.serializers?.transaction,o=await R.signTransaction(i,{serializer:a}),s=(w??e.chain)?.serializers?.transactionEnvelope,c=s?await s({serializedTransaction:o,transaction:i}):o;return await (0,f.getAction)(e,y.sendRawTransaction,"sendRawTransaction")({serializedTransaction:c})}if(R?.type==="smart")throw new i.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new i.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:R?.type})}catch(e){if(e instanceof i.AccountTypeNotSupportedError)throw e;throw r&&R?.nonceManager?.reset(r),(0,c.getTransactionError)(e,{...t,account:R,chain:t.chain||void 0})}}},71017:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransactionSync=E;let n=r(21499),i=r(92973),a=r(63392),o=r(45742),s=r(63560),l=r(53039),c=r(246),u=r(88713),d=r(40018),f=r(9101),p=r(78525),h=r(90626),m=r(19199),b=r(3204),y=r(53820),g=r(38280),v=r(37228),w=new h.LruMap(128);async function E(e,t){let r;let{account:h=e.account,assertChainId:E=!0,chain:x=e.chain,accessList:A,authorizationList:k,blobs:P,data:C,dataSuffix:T="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,gas:_,gasPrice:O,maxFeePerBlobGas:S,maxFeePerGas:I,maxPriorityFeePerGas:B,nonce:j,pollingInterval:M,throwOnReceiptRevert:R,type:N,value:U,...z}=t,D=t.timeout??Math.max((x?.blockTime??0)*3,5e3);if(void 0===h)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});let F=h?(0,n.parseAccount)(h):null;try{(0,m.assertRequest)(t);let n=await (async()=>t.to?t.to:null!==t.to&&k&&k.length>0?await (0,s.recoverAuthorizationAddress)({authorization:k[0]}).catch(()=>{throw new a.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(F?.type==="json-rpc"||null===F){let t;null!==x&&(t=await (0,p.getAction)(e,b.getChainId,"getChainId")({}),E&&(0,l.assertCurrentChain)({currentChainId:t,chain:x}));let r=e.chain?.formatters?.transactionRequest?.format,i=(r||f.formatTransactionRequest)({...(0,d.extract)(z,{format:r}),accessList:A,account:F,authorizationList:k,blobs:P,chainId:t,data:T?(0,c.concat)([C??"0x",T]):C,gas:_,gasPrice:O,maxFeePerBlobGas:S,maxFeePerGas:I,maxPriorityFeePerGas:B,nonce:j,to:n,type:N,value:U},"sendTransaction"),a=w.get(e.uid),s=a?"wallet_sendTransaction":"eth_sendTransaction",u=await (async()=>{try{return await e.request({method:s,params:[i]},{retryCount:0})}catch(t){if(!1===a)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[i]},{retryCount:0}).then(t=>(w.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw w.set(e.uid,!1),t;throw r});throw t}})(),h=await (0,p.getAction)(e,y.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:u,pollingInterval:M,timeout:D});if(R&&"reverted"===h.status)throw new o.TransactionReceiptRevertedError({receipt:h});return h}if(F?.type==="local"){let i=(()=>{if(!F.nonceManager||void 0!==j)return F.nonceManager;let e=F.nonceManager;return{consume:t=>(r={address:t.address,chainId:t.chainId},e.consume(t)),get:t=>e.get(t),increment:t=>e.increment(t),reset:t=>e.reset(t)}})(),a=await (0,p.getAction)(e,g.prepareTransactionRequest,"prepareTransactionRequest")({account:F,accessList:A,authorizationList:k,blobs:P,chain:x,data:T?(0,c.concat)([C??"0x",T]):C,gas:_,gasPrice:O,maxFeePerBlobGas:S,maxFeePerGas:I,maxPriorityFeePerGas:B,nonce:j,nonceManager:i,parameters:[...g.defaultParameters,"sidecars"],type:N,value:U,...z,to:n}),o=x?.serializers?.transaction,s=await F.signTransaction(a,{serializer:o}),l=(x??e.chain)?.serializers?.transactionEnvelope,u=l?await l({serializedTransaction:s,transaction:a}):s;return await (0,p.getAction)(e,v.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:u,throwOnReceiptRevert:R,timeout:t.timeout})}if(F?.type==="smart")throw new i.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new i.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:F?.type})}catch(e){if(e instanceof i.AccountTypeNotSupportedError)throw e;throw!r||e instanceof o.TransactionReceiptRevertedError||F?.nonceManager?.reset(r),(0,u.getTransactionError)(e,{...t,account:F,chain:t.chain||void 0})}}},26591:function(e,t){"use strict";async function r(e,t){let{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}
111Object.defineProperty(t,"__esModule",{value:!0}),t.showCallsStatus=r},30623:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signAuthorization=o;let n=r(21499),i=r(92973),a=r(46805);async function o(e,t){let{account:r=e.account}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});let o=(0,n.parseAccount)(r);if(!o.signAuthorization)throw new i.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});let s=await (0,a.prepareAuthorization)(e,t);return o.signAuthorization(s)}},88088:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=o;let n=r(21499),i=r(92973),a=r(96291);async function o(e,{account:t=e.account,message:r}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let o=(0,n.parseAccount)(t);if(o.signMessage)return o.signMessage({message:r});let s="string"==typeof r?(0,a.stringToHex)(r):r.raw instanceof Uint8Array?(0,a.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}},74206:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=d;let n=r(21499),i=r(92973),a=r(53039),o=r(96291),s=r(9101),l=r(78525),c=r(19199),u=r(3204);async function d(e,t){let{account:r=e.account,chain:d=e.chain,...f}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});let p=(0,n.parseAccount)(r);(0,c.assertRequest)({account:p,...t});let h=await (0,l.getAction)(e,u.getChainId,"getChainId")({});null!==d&&(0,a.assertCurrentChain)({currentChainId:h,chain:d});let m=d?.formatters||e.chain?.formatters,b=m?.transactionRequest?.format||s.formatTransactionRequest;return p.signTransaction?p.signTransaction({...f,account:p,chainId:h},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...b({...f,account:p},"signTransaction"),chainId:(0,o.numberToHex)(h),from:p.address}]},{retryCount:0})}},90611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=o;let n=r(21499),i=r(92973),a=r(27621);async function o(e,t){let{account:r=e.account,domain:o,message:s,primaryType:l}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let c=(0,n.parseAccount)(r),u={EIP712Domain:(0,a.getTypesForEIP712Domain)({domain:o}),...t.types};if((0,a.validateTypedData)({domain:o,message:s,primaryType:l,types:u}),c.signTypedData)return c.signTypedData({domain:o,message:s,primaryType:l,types:u});let d=(0,a.serializeTypedData)({domain:o,message:s,primaryType:l,types:u});return e.request({method:"eth_signTypedData_v4",params:[c.address,d]},{retryCount:0})}},1116:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=i;let n=r(96291);async function i(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]},{retryCount:0})}},35836:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForCallsStatusTimeoutError=void 0,t.waitForCallsStatus=f;let n=r(63392),i=r(64023),a=r(78525),o=r(27805),s=r(33197),l=r(83345),c=r(52614),u=r(16283),d=r(34610);async function f(e,t){let r;let{id:n,pollingInterval:f=e.pollingInterval,status:h=({statusCode:e})=>200===e||e>=300,retryCount:m=4,retryDelay:b=({count:e})=>200*~~(1<<e),timeout:y=6e4,throwOnFailure:g=!1}=t,v=(0,u.stringify)(["waitForCallsStatus",e.uid,n]),{promise:w,resolve:E,reject:x}=(0,l.withResolvers)(),A=(0,o.observe)(v,{resolve:E,reject:x},t=>{let o=(0,s.poll)(async()=>{let s=e=>{clearTimeout(r),o(),e(),A()};try{let r=await (0,c.withRetry)(async()=>{let t=await (0,a.getAction)(e,d.getCallsStatus,"getCallsStatus")({id:n});if(g&&"failure"===t.status)throw new i.BundleFailedError(t);return t},{retryCount:m,delay:b});if(!h(r))return;s(()=>t.resolve(r))}catch(e){s(()=>t.reject(e))}},{interval:f,emitOnBegin:!0});return o});return r=y?setTimeout(()=>{A(),clearTimeout(r),x(new p({id:n}))},y):void 0,await w}class p extends n.BaseError{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}t.WaitForCallsStatusTimeoutError=p},37063:function(e,t){"use strict";async function r(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}
111Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=r},34451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=c;let n=r(21499),i=r(92973),a=r(23337),o=r(44169),s=r(78525),l=r(22922);async function c(e,t){return c.internal(e,l.sendTransaction,"sendTransaction",t)}!function(e){async function t(e,t,r,l){let{abi:c,account:u=e.account,address:d,args:f,functionName:p,...h}=l;if(void 0===u)throw new i.AccountNotFoundError({docsPath:"/docs/contract/writeContract"});let m=u?(0,n.parseAccount)(u):null,b=(0,a.encodeFunctionData)({abi:c,args:f,functionName:p});try{return await (0,s.getAction)(e,t,r)({data:b,to:d,account:m,...h})}catch(e){throw(0,o.getContractError)(e,{abi:c,address:d,args:f,docsPath:"/docs/contract/writeContract",functionName:p,sender:m?.address})}}e.internal=t}(c||(t.writeContract=c={}))},58358:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContractSync=a;let n=r(71017),i=r(34451);async function a(e,t){return i.writeContract.internal(e,n.sendTransactionSync,"sendTransactionSync",t)}},46494:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainConfig=void 0;let n=r(78640),i=r(18644),a=r(87894),o=r(65046);t.chainConfig={blockTime:1e3,contracts:n.contracts,formatters:a.formatters,serializers:o.serializers,fees:i.fees}},18644:function(e,t){"use strict";async function r(e,t){return BigInt(await e.request({method:"eth_gasPrice",params:[t]}))}async function n(e,t){return BigInt(await e.request({method:"eth_maxPriorityFeePerGas",params:[t]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.fees=void 0,t.fees={estimateFeesPerGas:async e=>{if(!e.request?.feeCurrency)return null;let[t,i]=await Promise.all([r(e.client,e.request.feeCurrency),n(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-i)+i,maxPriorityFeePerGas:i}}}},87894:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatters=void 0;let n=r(85198),i=r(13713),a=r(10146),o=r(9101),s=r(24225);t.formatters={block:(0,i.defineBlock)({format:e=>({transactions:e.transactions?.map(e=>"string"==typeof e?e:{...a.formatTransaction(e),...e.gatewayFee?{gatewayFee:n.hexToBigInt(e.gatewayFee),gatewayFeeRecipient:e.gatewayFeeRecipient}:{},feeCurrency:e.feeCurrency})})}),transaction:(0,a.defineTransaction)({format(e){if("0x7e"===e.type)return{isSystemTx:e.isSystemTx,mint:e.mint?(0,n.hexToBigInt)(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};let t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,n.hexToBigInt)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,o.defineTransactionRequest)({format(e){let t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),(0,s.isCIP64)(e)&&(t.type="0x7b"),t}})}},65046:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializers=void 0,t.serializeTransaction=b,t.assertTransactionCIP42=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:l,to:u,feeCurrency:d,gatewayFee:f,gatewayFeeRecipient:p}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(u&&!(0,c.isAddress)(u))throw new i.InvalidAddressError({address:u});if(n)throw new a.BaseError("`gasPrice` is not a valid CIP-42 Transaction attribute.");if((0,m.isPresent)(l)&&l>y)throw new s.FeeCapTooHighError({maxFeePerGas:l});if((0,m.isPresent)(r)&&(0,m.isPresent)(l)&&r>l)throw new s.TipAboveFeeCapError({maxFeePerGas:l,maxPriorityFeePerGas:r});if((0,m.isPresent)(f)&&(0,m.isEmpty)(p)||(0,m.isPresent)(p)&&(0,m.isEmpty)(f))throw new a.BaseError("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if((0,m.isPresent)(d)&&!(0,c.isAddress)(d))throw new a.BaseError("`feeCurrency` MUST be a token address for CIP-42 transactions.");if((0,m.isPresent)(p)&&!(0,c.isAddress)(p))throw new i.InvalidAddressError(p);if((0,m.isEmpty)(d)&&(0,m.isEmpty)(p))throw new a.BaseError("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")},t.assertTransactionCIP64=g;let n=r(24796),i=r(39878),a=r(63392),o=r(57602),s=r(87695),l=r(64101),c=r(42948),u=r(246),d=r(96291),f=r(76311),p=r(84041),h=r(22741),m=r(24225);function b(e,t){return(0,m.isCIP64)(e)?function(e,t){g(e);let{chainId:r,gas:n,nonce:i,to:a,value:o,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:c,fee
111Currency:m,data:b}=e,y=[(0,d.toHex)(r),i?(0,d.toHex)(i):"0x",l?(0,d.toHex)(l):"0x",s?(0,d.toHex)(s):"0x",n?(0,d.toHex)(n):"0x",a??"0x",o?(0,d.toHex)(o):"0x",b??"0x",(0,p.serializeAccessList)(c),m,...(0,h.toYParitySignatureArray)(e,t)];return(0,u.concatHex)(["0x7b",(0,f.toRlp)(y)])}(e,t):(0,l.serializeTransaction)(e,t)}t.serializers={transaction:b};let y=n.maxUint256;function g(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:l,to:u,feeCurrency:d}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(u&&!(0,c.isAddress)(u))throw new i.InvalidAddressError({address:u});if(n)throw new a.BaseError("`gasPrice` is not a valid CIP-64 Transaction attribute.");if((0,m.isPresent)(l)&&l>y)throw new s.FeeCapTooHighError({maxFeePerGas:l});if((0,m.isPresent)(r)&&(0,m.isPresent)(l)&&r>l)throw new s.TipAboveFeeCapError({maxFeePerGas:l,maxPriorityFeePerGas:r});if((0,m.isPresent)(d)&&!(0,c.isAddress)(d))throw new a.BaseError("`feeCurrency` MUST be a token address for CIP-64 transactions.");if((0,m.isEmpty)(d))throw new a.BaseError("`feeCurrency` must be provided for CIP-64 transactions.")}},24225:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=i,t.isPresent=a,t.isEIP1559=o,t.isCIP64=function(e){return"cip64"===e.type||o(e)&&a(e.feeCurrency)};let n=r(56574);function i(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===(0,n.trim)(e).toLowerCase()||"0x00"===(0,n.trim)(e).toLowerCase())}function a(e){return!i(e)}function o(e){return void 0!==e.maxFeePerGas&&void 0!==e.maxPriorityFeePerGas}},70068:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroG=void 0;let n=r(71338);t.zeroG=(0,n.defineChain)({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0})},44443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroGGalileoTestnet=void 0;let n=r(71338);t.zeroGGalileoTestnet=(0,n.defineChain)({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0})},77399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroGMainnet=void 0;let n=r(71338);t.zeroGMainnet=(0,n.defineChain)({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G Chainscan",url:"https://chainscan.0g.ai"}},testnet:!1})},91798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroGTestnet=void 0;let n=r(71338);t.zeroGTestnet=(0,n.defineChain)({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G Chainscan",url:"https://chainscan-galileo.0g.ai"}},testnet:!0})},1949:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fireChain=void 0;let n=r(71338);t.fireChain=(0,n.defineChain)({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1})},12831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.abey=void 0;let n=r(71338);t.abey=(0,n.defineChain)({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1})},2104:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.abstract=void 0;let n=r(71338),i=r(68693);t.abstract=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}})},4887:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.abstractTestnet=void 0;let n=r(71338),i=r(68693);t.abstractTestnet=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}})},38929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acala=void 0;let n=r(71338);t.acala=(0,n.defineChain)({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1})},39959:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.acria=void 0;let n=r(71338);t.acria=(0,n.defineChain)({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol
111:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1})},53835:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adf=void 0;let n=r(71338);t.adf=(0,n.defineChain)({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1})},46685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adi=void 0;let n=r(71338);t.adi=(0,n.defineChain)({id:36900,name:"ADI_Chain",nativeCurrency:{decimals:18,name:"ADI",symbol:"ADI"},rpcUrls:{default:{http:["https://rpc.adifoundation.ai"]}},blockExplorers:{default:{name:"ADI Explorer",url:"https://explorer.adifoundation.ai"}},testnet:!1})},50413:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.agungTestnet=void 0;let n=r(71338);t.agungTestnet=(0,n.defineChain)({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0})},57318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aioz=void 0;let n=r(71338);t.aioz=(0,n.defineChain)({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1})},57172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alephZero=void 0;let n=r(71338);t.alephZero=(0,n.defineChain)({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}})},34057:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alephZeroTestnet=void 0;let n=r(71338);t.alephZeroTestnet=(0,n.defineChain)({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0})},89446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alienx=void 0;let n=r(71338);t.alienx=(0,n.defineChain)({id:10241024,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1})},23154:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alienxHalTestnet=void 0;let n=r(71338);t.alienxHalTestnet=(0,n.defineChain)({id:10241025,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0})},12087:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alpenTestnet=void 0;let n=r(71338);t.alpenTestnet=(0,n.defineChain)({id:8150,name:"Alpen Testnet",nativeCurrency:{name:"Signet BTC",symbol:"sBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.alpenlabs.io"]}},blockExplorers:{default:{name:"Alpen Explorer",url:"https://explorer.testnet.alpenlabs.io",apiUrl:"https://explorer.testnet.alpenlabs.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:290408}},testnet:!0})},1873:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.ancient8=void 0;let n=r(71342),i=r(71338);t.ancient8=(0,i.defineChain)({...n.chainConfig,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{1:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{1:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{1:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:1})},54676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ancient8Sepolia=void 0;let n=r(71342),i=r(71338);t.ancient8Sepolia=(0,i.defineChain)({...n.chainConfig,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{11155111:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{11155111:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{11155111:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:11155111,testnet:!0})},77319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anvil=void 0;let n=r(71338);t.anvil=(0,n.defineChain)({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},86688:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apeChain=void 0;let n=r(71338);t.apeChain=(0,n.defineChain)({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:42161})},31163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apexTestnet=void 0;let n=r(71338);t.apexTestnet=(0,n.defineChain)({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0})},31411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apollo=void 0;let n=r(71338);t.apollo=(0,n.defineChain)({id:62606,name:"Apollo",nativeCurrency:{decimals:18,name:"Apollo",symbol:"APOLLO"},rpcUrls:{default:{http:["https://mainnet-rpc.apolloscan.io"]}},blockExplorers:{default:{name:"Apollo Explorer",url:"https://apolloscan.io"}}})},44003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrum=void 0;let n=r(71338);t.arbitrum=(0,n.defineChain)({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}})},35594:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumGoerli=void 0;let n=r(71338);t.arbitrumGoerli=(0,n.defineChain)({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18}
111,rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0})},58019:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumNova=void 0;let n=r(71338);t.arbitrumNova=(0,n.defineChain)({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}})},19579:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arbitrumSepolia=void 0;let n=r(71338);t.arbitrumSepolia=(0,n.defineChain)({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18}
111,rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0})},55975:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arc=void 0;let n=r(71338);t.arc=(0,n.defineChain)({id:5042,name:"Arc",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:[]}}})},41002:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arcTestnet=void 0;let n=r(71338);t.arcTestnet=(0,n.defineChain)({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0})},96181:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arenaz=void 0;let n=r(71338);t.arenaz=(0,n.defineChain)({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}})},52806:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areonNetwork=void 0;let n=r(71338);t.areonNetwork=(0,n.defineChain)({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1})},25388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areonNetworkTestnet=void 0;let n=r(71338);t.areonNetworkTestnet=(0,n.defineChain)({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0})},91818:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areum=void 0;let n=r(71338);t.areum=(0,n.defineChain)({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1})},73919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.artelaTestnet=void 0;let n=r(71338);t.artelaTestnet=(0,n.defineChain)({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0})},84291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arthera=void 0;let n=r(71338);t.arthera=(0,n.defineChain)({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}})},8590:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.artheraTestnet=void 0;let n=r(71338);t.artheraTestnet=(0,n.defineChain)({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}},testnet:!0})},90774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assetChain=void 0;let n=r(71338);t.assetChain=(0,n.defineChain)({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}})},71861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assetChainTestnet=void 0;let n=r(71338);t.assetChainTestnet=(0,n.defineChain)({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}})},75271:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astar=void 0;let n=r(71338);t.astar=(0,n.defineChain)({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1})},62311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astarZkEVM=void 0;let n=r(71338);t.astarZkEVM=(0,n.defineChain)({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1})},43801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astarZkyoto=void 0;let n=r(71338);t.astarZkyoto=(0,n.defineChain)({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0})},23217:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.atletaOlympia=void 0;let n=r(71338);t.atletaOlympia=(0,n.defineChain)({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0})},70348:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aurora=void 0;let n=r(71338);t.aurora=(0,n.defineChain)({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}})},17091:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.auroraTestnet=void 0;let n=r(71338);t.auroraTestnet=(0,n.defineChain)({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0})},74281:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auroria=void 0;let n=r(71338);t.auroria=(0,n.defineChain)({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0})},73081:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autheoTestnet=void 0;let n=r(71338);t.autheoTestnet=(0,n.defineChain)({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}},testnet:!0})},60383:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalanche=void 0;let n=r(71338);t.avalanche=(0,n.defineChain)({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}})},27785:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalancheFuji=void 0;let n=r(71338);t.avalancheFuji=(0,n.defineChain)({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0})},57103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.b3=void 0;let n=r(71338);t.b3=(0,n.defineChain)({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:8453})},1049:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.b3Sepolia=void 0;let n=r(71338);t.b3Sepolia=(0,n.defineChain)({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:168587773})},99703:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bahamut=void 0;let n=r(71338);t.bahamut=(0,n.defineChain)({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}})},7629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basePreconf=t.base=void 0;let n=r(71342),i=r(71338);t.base=(0,i.defineChain)({...n.chainConfig,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol
111:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{1:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{1:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{1:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),t.basePreconf=(0,i.defineChain)({...t.base,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}})},92798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseGoerli=void 0;let n=r(71342),i=r(71338);t.baseGoerli=(0,i.defineChain)({...n.chainConfig,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{5:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{5:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{5:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:5})},36488:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseSepoliaPreconf=t.baseSepolia=void 0;let n=r(71342),i=r(71338);t.baseSepolia=(0,i.defineChain)({...n.chainConfig,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{11155111:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{11155111:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{11155111:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{11155111:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:11155111}),t.baseSepoliaPreconf=(0,i.defineChain)({...t.baseSepolia,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}})},64390:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basecampTestnet=void 0;let n=r(71338);t.basecampTestnet=(0,n.defineChain)({id:123420001114,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0})},42226:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.battlechain=void 0;let n=r(71338),i=r(68693);t.battlechain=(0,n.defineChain)({...i.chainConfig,id:626,name:"BattleChain Mainnet",network:"battlechain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.battlechain.com"]}},blockExplorers:{default:{name:"BattleChain Explorer",url:"https://explorer.battlechain.com",apiUrl:"https://block-explorer-api.battlechain.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:40}}})},24646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.battlechainTestnet=void 0;let n=r(71338),i=r(68693);t.battlechainTestnet=(0,n.defineChain)({...i.chainConfig,id:627,name:"BattleChain Testnet",network:"battlechain-testnet",nativeCurrency:{name:"Ether",symbol
111:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.battlechain.com"]}},blockExplorers:{default:{name:"BattleChain Explorer",url:"https://explorer.testnet.battlechain.com",blockExplorerApi:"https://block-explorer-api.testnet.battlechain.com/api"}},testnet:!0})},27716:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beam=void 0;let n=r(71338);t.beam=(0,n.defineChain)({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}})},34492:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beamTestnet=void 0;let n=r(71338);t.beamTestnet=(0,n.defineChain)({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0})},26617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainMainnet=void 0;let n=r(71338);t.bearNetworkChainMainnet=(0,n.defineChain)({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}})},97804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bearNetworkChainTestnet=void 0;let n=r(71338);t.bearNetworkChainTestnet=(0,n.defineChain)({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0})},7006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.berachain=void 0;let n=r(71338);t.berachain=(0,n.defineChain)({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1})},15141:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.berachainBepolia=void 0;let n=r(71338);t.berachainBepolia=(0,n.defineChain)({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://testnet.berascan.com"}},testnet:!0})},73424:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.berachainTestnet=void 0;let n=r(71338);t.berachainTestnet=(0,n.defineChain)({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0})},12438:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.berachainTestnetbArtio=void 0;let n=r(71338);t.berachainTestnetbArtio=(0,n.defineChain)({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0})},11457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bevmMainnet=void 0;let n=r(71338);t.bevmMainnet=(0,n.defineChain)({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}})},22418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bifrost=void 0;let n=r(71338);t.bifrost=(0,n.defineChain)({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1})},74395:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.birdlayer=void 0;let n=r(71338);t.birdlayer=(0,n.defineChain)({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}})},54722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrent=void 0;let n=r(71338);t.bitTorrent=(0,n.defineChain)({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:31078552}}})},26918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitTorrentTestnet=void 0;let n=r(71338);t.bitTorrentTestnet=(0,n.defineChain)({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0})},73653:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitgert=void 0;let n=r(71338);t.bitgert=(0,n.defineChain)({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1})},53375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitkub=void 0;let n=r(71338);t.bitkub=(0,n.defineChain)({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}})},47935:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitkubTestnet=void 0;let n=r(71338);t.bitkubTestnet=(0,n.defineChain)({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",n
111ativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0})},6829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitlayer=void 0;let n=r(71338);t.bitlayer=(0,n.defineChain)({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}})},27947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitlayerTestnet=void 0;let n=r(71338);t.bitlayerTestnet=(0,n.defineChain)({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0})},96729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitrock=void 0;let n=r(71338);t.bitrock=(0,n.defineChain)({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1})},88026:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blast=void 0;let n=r(71342),i=r(71338);t.blast=(0,i.defineChain)({...n.chainConfig,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{1:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:19300358}},portal:{1:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:19300357}},l1StandardBridge:{1:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:19300360}}},sourceId:1})},82800:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blastSepolia=void 0;let n=r(71338);t.blastSepolia=(0,n.defineChain)({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:11155111})},8423:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bob=void 0;let n=r(71342),i=r(71338);t.bob=(0,i.defineChain)({...n.chainConfig,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{1:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{1:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:1})},3846:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bobSepolia=void 0;let n=r(71342),i=r(71338);t.bobSepolia=(0,i.defineChain)({...n.chainConfig,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{11155111:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{11155111:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:11155111})},5724:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.boba=void 0;let n=r(71338);t.boba=(0,n.defineChain)({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}})},52349:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bobaSepolia=void 0;let n=r(71338);t.bobaSepolia=(0,n.defineChain)({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0})},22979:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolBetaMainnet=void 0;let n=r(71338);t.boolBetaMainnet=(0,n.defineChain)({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1})},68780:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.botanix=void 0;let n=r(71338);t.botanix=(0,n.defineChain)({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}})},92755:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.botanixTestnet=void 0;let n=r(71338);t.botanixTestnet=(0,n.defineChain)({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0})},4579:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bounceBit=void 0;let n=r(71338);t.bounceBit=(0,n.defineChain)({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}}
111,blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1})},80299:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bounceBitTestnet=void 0;let n=r(71338);t.bounceBitTestnet=(0,n.defineChain)({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0})},84536:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronos=void 0;let n=r(71338);t.bronos=(0,n.defineChain)({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}})},14678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bronosTestnet=void 0;let n=r(71338);t.bronosTestnet=(0,n.defineChain)({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0})},30411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bsc=void 0;let n=r(71338);t.bsc=(0,n.defineChain)({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},36095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bscGreenfield=void 0;let n=r(71338);t.bscGreenfield=(0,n.defineChain)({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1})},94912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bscTestnet=void 0;let n=r(71338);t.bscTestnet=(0,n.defineChain)({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0})},73595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bsquared=void 0;let n=r(71338);t.bsquared=(0,n.defineChain)({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}})},5952:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bsquaredTestnet=void 0;let n=r(71338);t.bsquaredTestnet=(0,n.defineChain)({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0})},60665:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.btr=void 0;let n=r(71338);t.btr=(0,n.defineChain)({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}})},27582:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.btrTestnet=void 0;let n=r(71338);t.btrTestnet=(0,n.defineChain)({id:200810,name:"Bitlayer Testnet",n
111ativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0})},69166:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxn=void 0;let n=r(71338);t.bxn=(0,n.defineChain)({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}})},95386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bxnTestnet=void 0;let n=r(71338);t.bxnTestnet=(0,n.defineChain)({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0})},55895:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cannon=void 0;let n=r(71338);t.cannon=(0,n.defineChain)({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}})},78227:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canto=void 0;let n=r(71338);t.canto=(0,n.defineChain)({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}})},75179:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celo=void 0;let n=r(46494),i=r(71338);t.celo=(0,i.defineChain)({...n.chainConfig,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1})},73411:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoAlfajores=void 0;let n=r(46494),i=r(71338);t.celoAlfajores=(0,i.defineChain)({...n.chainConfig,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001},portal:{17e3:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{17e3:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{17e3:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{17e3:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0})},69060:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.celoSepolia=void 0;let n=r(46494),i=r(71338);t.celoSepolia=(0,i.defineChain)({...n.chainConfig,id:11142220,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{11155111:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{11155111:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{11155111:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0})},2750:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.chang=void 0;let n=r(71338);t.chang=(0,n.defineChain)({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}})},45662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chiliz=void 0;let n=r(71338);t.chiliz=(0,n.defineChain)({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}})},77070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chips=void 0;let n=r(71338);t.chips=(0,n.defineChain)({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}})},91697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.citrate=void 0;let n=r(71338);t.citrate=(0,n.defineChain)({id:40204,name:"Citrate",nativeCurrency:{name:"SALT",symbol
111:"SALT",decimals:18},rpcUrls:{default:{http:["https://rpc.citrate.ai"],webSocket:["wss://rpc.citrate.ai"]}},testnet:!0})},40235:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.citrea=void 0;let n=r(71338);t.citrea=(0,n.defineChain)({id:4114,name:"Citrea Mainnet",nativeCurrency:{name:"Citrea Bitcoin",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.mainnet.citrea.xyz",apiUrl:"https://explorer.mainnet.citrea.xyz/api"}},testnet:!1})},52118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.citreaTestnet=void 0;let n=r(71338);t.citreaTestnet=(0,n.defineChain)({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0})},56542:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classic=void 0;let n=r(71338);t.classic=(0,n.defineChain)({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}})},93565:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codex=void 0;let n=r(71342),i=r(71338);t.codex=(0,i.defineChain)({...n.chainConfig,id:81224,name:"Codex",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex.xyz"]}},blockExplorers:{default:{name:"Codex Explorer",url:"https://explorer.codex.xyz",apiUrl:"https://explorer.codex.xyz/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C"}},portal:{1:{address:"0x52759C07A759c81BAab28AE1BE5A19e6450959bD"}},l1StandardBridge:{1:{address:"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:1})},60398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codexTestnet=void 0;let n=r(71342),i=r(71338);t.codexTestnet=(0,i.defineChain)({...n.chainConfig,id:812242,name:"Codex Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex-stg.xyz"]}},blockExplorers:{default:{name:"Codex Testnet Explorer",url:"https://explorer.codex-stg.xyz",apiUrl:"https://explorer.codex-stg.xyz/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{11155111:{address:"0x390e24E8324E56f13A8d48eB938b6f9De24CD205"}},portal:{11155111:{address:"0x037F161D12c829A9ca4742eEd9371830CA54fcB2"}},l1StandardBridge:{11155111:{address:"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:11155111,testnet:!0})},60098:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coinbit=void 0;let n=r(71338);t.coinbit=(0,n.defineChain)({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1})},44543:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coinex=void 0;let n=r(71338);t.coinex=(0,n.defineChain)({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1})},93831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpace=void 0;let n=r(71338);t.confluxESpace=(0,n.defineChain)({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}})},11411:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.confluxESpaceTestnet=void 0;let n=r(71338);t.confluxESpaceTestnet=(0,n.defineChain)({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}})},75156:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreDao=void 0;let n=r(71338);t.coreDao=(0,n.defineChain)({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1})},2068:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreTestnet1=void 0;let n=r(71338);t.coreTestnet1=(0,n.defineChain)({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:29350509}},testnet:!0})},20946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreTestnet2=void 0;let n=r(71338);t.coreTestnet2=(0,n.defineChain)({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0})},37824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.corn=void 0;let n=r(71338);t.corn=(0,n.defineChain)({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:1})},59710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cornTestnet=void 0;let n=r(71338);t.cornTestnet=(0,n.defineChain)({id:21000001,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:11155111})},7379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cpchain=void 0;let n=r(71338);t.cpchain=(0,n.defineChain)({id:86608,name:"CpChain",nativeCurrency:{decimals:18,name:"CpChain",symbol:"CP"},rpcUrls:{default:{http:["https://rpc.cpchain.com"]}},blockExplorers:{default:{name:"CpChain Explorer",url:"https://explorer.cpchain.com"}},testnet:!1})},51542:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crab=void 0;let n=r(71338);t.crab=(0,n.defineChain)({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}})},93391:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.creatorTestnet=void 0;let n=r(71338);t.creatorTestnet=(0,n.defineChain)({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0})},3354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.creditCoin3Devnet=void 0;let n=r(71338);t.creditCoin3Devnet=(0,n.defineChain)({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0})},77874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.creditCoin3Mainnet=void 0;let n=r(71338);t.creditCoin3Mainnet=(0,n.defineChain)({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1})},77974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.creditCoin3Testnet=void 0;let n=r(71338);t.creditCoin3Testnet=(0,n.defineChain)({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0})},40746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronos=void 0;let n=r(71338);t.cronos=(0,n.defineChain)({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}})},14555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronosTestnet=void 0;let n=r(71338);t.cronosTestnet=(0,n.defineChain)({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0})},32182:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronoszkEVM=void 0;let n=r(71338);t.cronoszkEVM=(0,n.defineChain)({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}})},32048:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cronoszkEVMTestnet=void 0;let n=r(71338);t.cronoszkEVMTestnet=(0,n.defineChain)({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0})},921:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.crossbell=void 0;let n=r(71338);t.crossbell=(0,n.defineChain)({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}})},28397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crossfi=void 0;let n=r(71338);t.crossfi=(0,n.defineChain)({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1})},86945:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.curtis=void 0;let n=r(71338);t.curtis=(0,n.defineChain)({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0})},23567:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyber=void 0;let n=r(71338);t.cyber=(0,n.defineChain)({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},2996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyberTestnet=void 0;let n=r(71338);t.cyberTestnet=(0,n.defineChain)({id:111557560,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0})},77112:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dailyNetwork=void 0;let n=r(71338);t.dailyNetwork=(0,n.defineChain)({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1})},46287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dailyNetworkTestnet=void 0;let n=r(71338);t.dailyNetworkTestnet=(0,n.defineChain)({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0})},85221:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.darwinia=void 0;let n=r(71338);t.darwinia=(0,n.defineChain)({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}})},3385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.datahavenTestnet=void 0;let n=r(71338);t.datahavenTestnet=(0,n.defineChain)({id:55931,name:"Datahaven Testnet",nativeCurrency:{decimals:18,name:"MOCK",symbol:"MOCK"},rpcUrls:{default:{http:["https://services.datahaven-testnet.network/testnet"],webSocket:["wss://services.datahaven-testnet.network/testnet"]}},blockExplorers:{default:{name:"DhScan",url:"https://testnet.dhscan.io/",apiUrl:"https://testnet.dhscan.io/api-docs"}},contracts:{},testnet:!0})},80941:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.dbkchain=void 0;let n=r(71338);t.dbkchain=(0,n.defineChain)({id:20240603,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1})},86892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dchain=void 0;let n=r(71342),i=r(71338);t.dchain=(0,i.defineChain)({...n.chainConfig,id:0x9a697f88076c8,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...n.chainConfig.contracts}})},140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dchainTestnet=void 0;let n=r(71342),i=r(71338);t.dchainTestnet=(0,i.defineChain)({...n.chainConfig,id:0x9a379ba03cf10,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...n.chainConfig.contracts},testnet:!0})},23289:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defiOracleMetaMainnet=void 0;let n=r(71338);t.defiOracleMetaMainnet=(0,n.defineChain)({id:138,name:"Defi Oracle Meta Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-http-pub.d-bis.org","https://rpc.d-bis.org","https://rpc2.d-bis.org","https://rpc.public-0138.defi-oracle.io","https://rpc.defi-oracle.io"],webSocket:["wss://rpc-ws-pub.d-bis.org","wss://ws.rpc.d-bis.org","wss://ws.rpc2.d-bis.org","wss://rpc.public-0138.defi-oracle.io","wss://wss.defi-oracle.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.d-bis.org"}}})},97666:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defichainEvm=void 0;let n=r(71338);t.defichainEvm=(0,n.defineChain)({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}})},61589:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defichainEvmTestnet=void 0;let n=r(71338);t.defichainEvmTestnet=(0,n.defineChain)({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0})},75608:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.degen=void 0;let n=r(71338);t.degen=(0,n.defineChain)({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}})},5676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dfk=void 0;let n=r(71338);t.dfk=(0,n.defineChain)({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}})},58727:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.diode=void 0;let n=r(71338);t.diode=(0,n.defineChain)({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1})},14752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disChain=void 0;let n=r(71338);t.disChain=(0,n.defineChain)({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}})},39086:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dodochainTestnet=void 0;let n=r(71338);t.dodochainTestnet=(0,n.defineChain)({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0})},54990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dogechain=void 0;let n=r(71338);t.dogechain=(0,n.defineChain)({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:25384031}}})},20207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domaTestnet=void 0;let n=r(71338);t.domaTestnet=(0,n.defineChain)({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0})},80170:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.donatuz=void 0;let n=r(71338);t.donatuz=(0,n.defineChain)({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}})},17786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dosChain=void 0;let n=r(71338);t.dosChain=(0,n.defineChain)({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}})},6735:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dosChainTestnet=void 0;let n=r(71338);t.dosChainTestnet=(0,n.defineChain)({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0})},83117:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dreyerxMainnet=void 0;let n=r(71338);t.dreyerxMainnet=(0,n.defineChain)({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}})},35510:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.dreyerxTestnet=void 0;let n=r(25944);t.dreyerxTestnet=(0,n.defineChain)({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0})},48195:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dustboyIoT=void 0;let n=r(71338);t.dustboyIoT=(0,n.defineChain)({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1})},38442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dymension=void 0;let n=r(25944);t.dymension=(0,n.defineChain)({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1})},16947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eden=void 0;let n=r(71338);t.eden=(0,n.defineChain)({id:714,name:"Eden",nativeCurrency:{name:"TIA",symbol:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.eden.gateway.fm"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},blockExplorers:{default:{name:"Blockscout",url:"https://eden.blockscout.com",apiUrl:"https://eden.blockscout.com/api"}}})},60205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edexa=void 0;let n=r(71338);t.edexa=(0,n.defineChain)({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}})},11097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edexaTestnet=void 0;let n=r(71338);t.edexaTestnet=(0,n.defineChain)({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0})},73590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeless=void 0;let n=r(71338);t.edgeless=(0,n.defineChain)({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}})},65986:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgelessTestnet=void 0;let n=r(71338);t.edgelessTestnet=(0,n.defineChain)({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}},testnet:!0})},11768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeware=void 0;let n=r(71338);t.edgeware=(0,n.defineChain)({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}})},24051:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.edgewareTestnet=void 0;let n=r(71338);t.edgewareTestnet=(0,n.defineChain)({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}},testnet:!0})},91605:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eduChain=void 0;let n=r(71338);t.eduChain=(0,n.defineChain)({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.educhain.xyz"],webSocket:["wss://rpc.educhain.xyz"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://explorer.educhain.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16410660}},testnet:!1})},10782:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eduChainTestnet=void 0;let n=r(71338);t.eduChainTestnet=(0,n.defineChain)({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.testnet.educhain.xyz"],webSocket:["wss://rpc.testnet.educhain.xyz"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://explorer.testnet.educhain.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15514133}},testnet:!0})},97285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elastos=void 0;let n=r(71338);t.elastos=(0,n.defineChain)({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1})},12844:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elastosTestnet=void 0;let n=r(71338);t.elastosTestnet=(0,n.defineChain)({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0})},94841:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.electroneum=void 0;let n=r(71338);t.electroneum=(0,n.defineChain)({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1})},80335:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.electroneumTestnet=void 0;let n=r(71338);t.electroneumTestnet=(0,n.defineChain)({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0})},34579:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elysiumTestnet=void 0;let n=r(71342),i=r(71338);t.elysiumTestnet=(0,i.defineChain)({...n.chainConfig,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0})},0:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.energy=void 0;let n=r(71338);t.energy=(0,n.defineChain)({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1})},94558:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.eni=void 0;let n=r(71338);t.eni=(0,n.defineChain)({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1})},48656:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eniTestnet=void 0;let n=r(71338);t.eniTestnet=(0,n.defineChain)({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0})},72575:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enuls=void 0;let n=r(71338);t.enuls=(0,n.defineChain)({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1})},97987:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eon=void 0;let n=r(71338);t.eon=(0,n.defineChain)({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}})},29073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eos=void 0;let n=r(71338);t.eos=(0,n.defineChain)({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}})},58442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eosTestnet=void 0;let n=r(71338);t.eosTestnet=(0,n.defineChain)({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0})},79893:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eteria=void 0;let n=r(71338);t.eteria=(0,n.defineChain)({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}})},46083:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.etherlink=void 0;let n=r(71338);t.etherlink=(0,n.defineChain)({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol
111:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}})},431:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.etherlinkShadownetTestnet=void 0;let n=r(71338);t.etherlinkShadownetTestnet=(0,n.defineChain)({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0})},58201:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.etherlinkTestnet=void 0;let n=r(71338);t.etherlinkTestnet=(0,n.defineChain)({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0})},94407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethernity=void 0;let n=r(71338);t.ethernity=(0,n.defineChain)({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1})},70594:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.etp=void 0;let n=r(71338);t.etp=(0,n.defineChain)({id:20256789,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}})},55762:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmos=void 0;let n=r(71338);t.evmos=(0,n.defineChain)({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}})},36490:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evmosTestnet=void 0;let n=r(71338);t.evmosTestnet=(0,n.defineChain)({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}},testnet:!0})},47580:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exsat=void 0;let n=r(71338);t.exsat=(0,n.defineChain)({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}})},24430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exsatTestnet=void 0;let n=r(71338);t.exsatTestnet=(0,n.defineChain)({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}},testnet:!0})},1130:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.excelonMainnet=void 0;let n=r(71338);t.excelonMainnet=(0,n.defineChain)({id:22052002,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}})},15388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expanse=void 0;let n=r(71338);t.expanse=(0,n.defineChain)({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol
111:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1})},68026:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantom=void 0;let n=r(71338);t.fantom=(0,n.defineChain)({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}})},16992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomSonicTestnet=void 0;let n=r(71338);t.fantomSonicTestnet=(0,n.defineChain)({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0})},98634:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fantomTestnet=void 0;let n=r(71338);t.fantomTestnet=(0,n.defineChain)({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0})},216:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fibo=void 0;let n=r(71338);t.fibo=(0,n.defineChain)({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}})},83396:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoin=void 0;let n=r(71338);t.filecoin=(0,n.defineChain)({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}})},17100:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinCalibration=void 0;let n=r(71338);t.filecoinCalibration=(0,n.defineChain)({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0})},41940:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filecoinHyperspace=void 0;let n=r(71338);t.filecoinHyperspace=(0,n.defineChain)({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0})},6457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flame=void 0;let n=r(71338);t.flame=(0,n.defineChain)({id:253368190,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}})},61804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flare=void 0;let n=r(71338);t.flare=(0,n.defineChain)({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol
111:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}})},34957:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flareTestnet=void 0;let n=r(71338);t.flareTestnet=(0,n.defineChain)({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0})},61596:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowMainnet=void 0;let n=r(71338);t.flowMainnet=(0,n.defineChain)({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800})},14807:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowPreviewnet=void 0;let n=r(71338);t.flowPreviewnet=(0,n.defineChain)({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},testnet:!0})},78248:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flowTestnet=void 0;let n=r(71338);t.flowTestnet=(0,n.defineChain)({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800})},51630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fluence=void 0;let n=r(71338);t.fluence=(0,n.defineChain)({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}})},12699:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fluenceStage=void 0;let n=r(71338);t.fluenceStage=(0,n.defineChain)({id:123420000220,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0})},81893:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fluenceTestnet=void 0;let n=r(71338);t.fluenceTestnet=(0,n.defineChain)({id:52164803,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0})},1071:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.fluent=void 0;let n=r(71338);t.fluent=(0,n.defineChain)({id:25363,name:"Fluent",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://fluentscan.xyz"}},testnet:!1})},66232:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fluentDevnet=void 0;let n=r(71338);t.fluentDevnet=(0,n.defineChain)({id:20993,name:"Fluent Devnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.devnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Devnet Explorer",url:"https://devnet.fluentscan.xyz"}},testnet:!0})},51270:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fluentTestnet=void 0;let n=r(71338);t.fluentTestnet=(0,n.defineChain)({id:20994,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Testnet Explorer",url:"https://testnet.fluentscan.xyz"}},testnet:!0})},74773:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.form=void 0;let n=r(71342),i=r(71338);t.form=(0,i.defineChain)({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...n.chainConfig.contracts,addressManager:{1:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{1:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{1:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{1:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{1:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:1})},67379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formTestnet=void 0;let n=r(71342),i=r(71338);t.formTestnet=(0,i.defineChain)({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...n.chainConfig.contracts,addressManager:{11155111:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{11155111:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{11155111:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{11155111:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{11155111:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:11155111})},61699:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forma=void 0;let n=r(71338);t.forma=(0,n.defineChain)({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}})},4379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forta=void 0;let n=r(71338);t.forta=(0,n.defineChain)({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}})},7507:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.foundry=void 0;let n=r(71338);t.foundry=(0,n.defineChain)({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol
111:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},94273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fraxtal=void 0;let n=r(71342),i=r(71338);t.fraxtal=(0,i.defineChain)({...n.chainConfig,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{1:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{1:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:1})},99618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fraxtalTestnet=void 0;let n=r(71342),i=r(71338);t.fraxtalTestnet=(0,i.defineChain)({...n.chainConfig,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{17e3:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{17e3:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:17e3,testnet:!0})},50956:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.funkiMainnet=void 0;let n=r(71342),i=r(71338);t.funkiMainnet=(0,i.defineChain)({...n.chainConfig,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...n.chainConfig.contracts},sourceId:1})},56197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.funkiSepolia=void 0;let n=r(71342),i=r(71338);t.funkiSepolia=(0,i.defineChain)({...n.chainConfig,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:11155111})},65991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuse=void 0;let n=r(71338);t.fuse=(0,n.defineChain)({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}})},95385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fuseSparknet=void 0;let n=r(71338);t.fuseSparknet=(0,n.defineChain)({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}})},54739:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fusion=void 0;let n=r(71338);t.fusion=(0,n.defineChain)({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10441605}},testnet:!1})},49624:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.fusionTestnet=void 0;let n=r(71338);t.fusionTestnet=(0,n.defineChain)({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10428309}},testnet:!0})},61729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.garnet=void 0;let n=r(71342),i=r(71338);t.garnet=(0,i.defineChain)({...n.chainConfig,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},70975:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gatechain=void 0;let n=r(71338);t.gatechain=(0,n.defineChain)({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1})},83094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.geist=void 0;let n=r(71338);t.geist=(0,n.defineChain)({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}})},27452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.genesys=void 0;let n=r(71338);t.genesys=(0,n.defineChain)({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1})},76961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gensyn=void 0;let n=r(71338);t.gensyn=(0,n.defineChain)({id:685689,name:"Gensyn Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://gensyn-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://gensyn-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},85049:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.giwaSepoliaPreconf=t.giwaSepolia=void 0;let n=r(71342),i=r(71338);t.giwaSepolia=(0,i.defineChain)({...n.chainConfig,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{11155111:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{11155111:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{11155111:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:11155111}),t.giwaSepoliaPreconf=(0,i.defineChain)({...t.giwaSepolia,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-rpc-flashblocks.giwa.io"]}}})},35140:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.glideL1Protocol=void 0;let n=r(71338);t.glideL1Protocol=(0,n.defineChain)({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1})},30298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.glideL2Protocol=void 0;let n=r(71338);t.glideL2Protocol=(0,n.defineChain)({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1})},91566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosis=void 0;let n=r(71338);t.gnosis=(0,n.defineChain)({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}})},19033:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gnosisChiado=void 0;let n=r(71338);t.gnosisChiado=(0,n.defineChain)({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0})},41923:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goChain=void 0;let n=r(71338);t.goChain=(0,n.defineChain)({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol
111:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1})},55407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goat=void 0;let n=r(71338);t.goat=(0,n.defineChain)({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},66854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gobi=void 0;let n=r(71338);t.gobi=(0,n.defineChain)({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0})},86653:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.godwoken=void 0;let n=r(71338);t.godwoken=(0,n.defineChain)({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1})},54156:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goerli=void 0;let n=r(71338);t.goerli=(0,n.defineChain)({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},16463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphite=void 0;let n=r(71338);t.graphite=(0,n.defineChain)({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1})},41884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphiteTestnet=void 0;let n=r(71338);t.graphiteTestnet=(0,n.defineChain)({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0})},5459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.grav=void 0;let n=r(71338);t.grav=(0,n.defineChain)({id:127001,name:"Gravity",nativeCurrency:{name:"Gravity",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Mainnet Explorer",url:"https://mainnet-explorer.gravity.xyz",apiUrl:"https://mainnet-explorer.gravity.xyz/api"}},contracts:{},testnet:!1})},41771:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gravity=void 0;let n=r(71338);t.gravity=(0,n.defineChain)({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol
111:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}})},82375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gunz=void 0;let n=r(71338);t.gunz=(0,n.defineChain)({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}})},68252:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guruNetwork=void 0;let n=r(71338);t.guruNetwork=(0,n.defineChain)({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1})},93159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guruTestnet=void 0;let n=r(71338);t.guruTestnet=(0,n.defineChain)({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0})},10220:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ham=void 0;let n=r(71338);t.ham=(0,n.defineChain)({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}})},89924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.happychainTestnet=void 0;let n=r(71338);t.happychainTestnet=(0,n.defineChain)({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0})},71487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqMainnet=void 0;let n=r(71338);t.haqqMainnet=(0,n.defineChain)({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}})},61163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haqqTestedge2=void 0;let n=r(71338);t.haqqTestedge2=(0,n.defineChain)({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}},testnet:!0})},92643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardhat=void 0;let n=r(71338);t.hardhat=(0,n.defineChain)({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}})},44717:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.harmonyOne=void 0;let n=r(71338);t.harmonyOne=(0,n.defineChain)({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}})},96908:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.hashkey=void 0;let n=r(71338);t.hashkey=(0,n.defineChain)({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}})},46175:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashkeyTestnet=void 0;let n=r(71338);t.hashkeyTestnet=(0,n.defineChain)({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0})},47646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hausTestnet=void 0;let n=r(71338);t.hausTestnet=(0,n.defineChain)({id:2443,name:"Haus Chain Testnet",nativeCurrency:{decimals:18,name:"Haus",symbol:"HAUS"},rpcUrls:{default:{http:["https://rpc-testnet.hausserver.xyz"]}},blockExplorers:{default:{name:"Haus Chain Testnet Explorer",url:"https://explorer-testnet.hausserver.xyz",apiUrl:"https://explorer-testnet.hausserver.xyz/api"}},testnet:!0})},68582:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haustTestnet=void 0;let n=r(71338);t.haustTestnet=(0,n.defineChain)({id:1523903251,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0})},52236:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hedera=void 0;let n=r(71338);t.hedera=(0,n.defineChain)({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1})},93342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hederaPreviewnet=void 0;let n=r(71338);t.hederaPreviewnet=(0,n.defineChain)({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0})},74903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hederaTestnet=void 0;let n=r(71338);t.hederaTestnet=(0,n.defineChain)({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0})},48833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hela=void 0;let n=r(71338);t.hela=(0,n.defineChain)({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1})},39817:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heliosTestnet=void 0;let n=r(71338);t.heliosTestnet=(0,n.defineChain)({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0})},54032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hemi=void 0;let n=r(71338);t.hemi=(0,n.defineChain)({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol
111:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1})},20976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hemiSepolia=void 0;let n=r(71338);t.hemiSepolia=(0,n.defineChain)({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0})},81571:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.henesys=void 0;let n=r(71338);t.henesys=(0,n.defineChain)({id:68414,name:"Henesys",nativeCurrency:{name:"NEXPACE",symbol:"NXPC",decimals:18},rpcUrls:{default:{http:["https://henesys-rpc.msu.io"]}},blockExplorers:{default:{name:"Avalanche Explorer",url:"https://subnets.avax.network/henesys"}}})},68418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.holesky=void 0;let n=r(71338);t.holesky=(0,n.defineChain)({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0})},17166:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hoodi=void 0;let n=r(71338);t.hoodi=(0,n.defineChain)({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0})},51430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.horizenTestnet=void 0;let n=r(71338);t.horizenTestnet=(0,n.defineChain)({id:2651420,name:"Horizen Testnet",network:"horizen-testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://horizen-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Horizen Testnet Caldera Explorer",url:"https://horizen-testnet.explorer.caldera.xyz"}},testnet:!0})},60257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hpb=void 0;let n=r(71338);t.hpb=(0,n.defineChain)({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1})},76511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hpp=void 0;let n=r(71338);t.hpp=(0,n.defineChain)({id:190415,name:"HPP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.hpp.io"],webSocket:["wss://mainnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Mainnet Explorer",url:"https://explorer.hpp.io"}},testnet:!1})},75933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hppSepolia=void 0;let n=r(71338);t.hppSepolia=(0,n.defineChain)({id:181228,name:"HPP Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.hpp.io"],webSocket:["wss://testnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Sepolia Explorer",url:"https://sepolia-explorer.hpp.io"}},testnet:!0})},68146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.huddle01Mainnet=void 0;let n=r(71338);t.huddle01Mainnet=(0,n.defineChain)({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:42161})},65344:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.huddle01Testnet=void 0;let n=r(71338);t.huddle01Testnet=(0,n.defineChain)({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:421614,testnet:!0})},69759:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanity=void 0;let n=r(71338);t.humanity=(0,n.defineChain)({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1})},88577:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanityTestnet=void 0;let n=r(71338);t.humanityTestnet=(0,n.defineChain)({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0})},39965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanode=void 0;let n=r(71338);t.humanode=(0,n.defineChain)({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}})},45075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanodeTestnet5=void 0;let n=r(71338);t.humanodeTestnet5=(0,n.defineChain)({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0})},78983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hychain=void 0;let n=r(71338);t.hychain=(0,n.defineChain)({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1})},65012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hychainTestnet=void 0;let n=r(71338);t.hychainTestnet=(0,n.defineChain)({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0})},56142:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hyperEvm=void 0;let n=r(71338);t.hyperEvm=(0,n.defineChain)({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13051}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1})},25409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hyperliquidEvmTestnet=void 0;let n=r(71338);t.hyperliquidEvmTestnet=(0,n.defineChain)({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0})},3410:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.iSunCoin=void 0;let n=r(71338);t.iSunCoin=(0,n.defineChain)({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}})},19612:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icbNetwork=void 0;let n=r(71338);t.icbNetwork=(0,n.defineChain)({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1})},36527:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idchain=void 0;let n=r(71338);t.idchain=(0,n.defineChain)({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1})},38449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.igra=void 0;let n=r(71338);t.igra=(0,n.defineChain)({id:38833,name:"Igra Network",nativeCurrency:{decimals:18,name:"iKAS",symbol:"iKAS"},rpcUrls:{default:{http:["https://rpc.igralabs.com:8545"]}},blockExplorers:{default:{name:"Igra Explorer",url:"https://explorer.igralabs.com"}},testnet:!1})},79053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.immutableZkEvm=void 0;let n=r(71338);t.immutableZkEvm=(0,n.defineChain)({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}})},57859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.immutableZkEvmTestnet=void 0;let n=r(71338);t.immutableZkEvmTestnet=(0,n.defineChain)({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}}
111,contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0})},68954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inEVM=void 0;let n=r(71338);t.inEVM=(0,n.defineChain)({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}})},41075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initVerse=void 0;let n=r(71338);t.initVerse=(0,n.defineChain)({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}})},38251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initVerseGenesis=void 0;let n=r(71338);t.initVerseGenesis=(0,n.defineChain)({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0})},62280:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injective=void 0;let n=r(71338);t.injective=(0,n.defineChain)({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1})},42648:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectiveTestnet=void 0;let n=r(71338);t.injectiveTestnet=(0,n.defineChain)({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0})},86683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ink=void 0;let n=r(71342),i=r(71338);t.ink=(0,i.defineChain)({...n.chainConfig,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{1:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{1:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:1})},37122:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inkSepolia=void 0;let n=r(71342),i=r(71338);t.inkSepolia=(0,i.defineChain)({...n.chainConfig,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{11155111:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{11155111:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{11155111:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:11155111})},21885:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.iota=void 0;let n=r(71338);t.iota=(0,n.defineChain)({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}})},35115:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotaTestnet=void 0;let n=r(71338);t.iotaTestnet=(0,n.defineChain)({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0})},24479:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotex=void 0;let n=r(71338);t.iotex=(0,n.defineChain)({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}})},44343:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iotexTestnet=void 0;let n=r(71338);t.iotexTestnet=(0,n.defineChain)({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0})},2549:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jasmyChain=void 0;let n=r(71338);t.jasmyChain=(0,n.defineChain)({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1})},92895:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jasmyChainTestnet=void 0;let n=r(71338);t.jasmyChainTestnet=(0,n.defineChain)({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0})},76619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jbc=void 0;let n=r(71338);t.jbc=(0,n.defineChain)({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1})},96759:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jbcTestnet=void 0;let n=r(71338);t.jbcTestnet=(0,n.defineChain)({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0})},71713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jocMainnet=void 0;let n=r(71338);t.jocMainnet=(0,n.defineChain)({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1})},86119:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.jocTestnet=void 0;let n=r(71338);t.jocTestnet=(0,n.defineChain)({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0})},6689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jovay=void 0;let n=r(71338);t.jovay=(0,n.defineChain)({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1})},29658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jovaySepolia=void 0;let n=r(71338);t.jovaySepolia=(0,n.defineChain)({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0})},2044:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneo=void 0;let n=r(71338);t.juneo=(0,n.defineChain)({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}})},45007:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoBCH1Chain=void 0;let n=r(71338);t.juneoBCH1Chain=(0,n.defineChain)({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}})},61408:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoDAI1Chain=void 0;let n=r(71338);t.juneoDAI1Chain=(0,n.defineChain)({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Chain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}})},61008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoDOGE1Chain=void 0;let n=r(71338);t.juneoDOGE1Chain=(0,n.defineChain)({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}})},20875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoEUR1Chain=void 0;let n=r(71338);t.juneoEUR1Chain=(0,n.defineChain)({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}})},32567:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoGLD1Chain=void 0;let n=r(71338);t.juneoGLD1Chain=(0,n.defineChain)({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}})},58986:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.juneoLINK1Chain=void 0;let n=r(71338);t.juneoLINK1Chain=(0,n.defineChain)({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}})},79777:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoLTC1Chain=void 0;let n=r(71338);t.juneoLTC1Chain=(0,n.defineChain)({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}})},59673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoSGD1Chain=void 0;let n=r(71338);t.juneoSGD1Chain=(0,n.defineChain)({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}})},15250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoSocotraTestnet=void 0;let n=r(71338);t.juneoSocotraTestnet=(0,n.defineChain)({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0})},5730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoUSD1Chain=void 0;let n=r(71338);t.juneoUSD1Chain=(0,n.defineChain)({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}})},2652:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneoUSDT1Chain=void 0;let n=r(71338);t.juneoUSDT1Chain=(0,n.defineChain)({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}})},71711:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.juneomBTC1Chain=void 0;let n=r(71338);t.juneomBTC1Chain=(0,n.defineChain)({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}})},20881:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kaia=void 0;let n=r(71338);t.kaia=(0,n.defineChain)({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}})},37705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kairos=void 0;let n=r(71338);t.kairos=(0,n.defineChain)({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0})},6797:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.kakarotSepolia=void 0;let n=r(71338);t.kakarotSepolia=(0,n.defineChain)({id:1802203764,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0})},84953:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kakarotStarknetSepolia=void 0;let n=r(71338);t.kakarotStarknetSepolia=(0,n.defineChain)({id:920637907288165,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0})},46022:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kardiaChain=void 0;let n=r(71338);t.kardiaChain=(0,n.defineChain)({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1})},63328:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.karura=void 0;let n=r(71338);t.karura=(0,n.defineChain)({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1})},51906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.katana=void 0;let n=r(71338);t.katana=(0,n.defineChain)({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1})},60830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kava=void 0;let n=r(71338);t.kava=(0,n.defineChain)({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1})},82992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kavaTestnet=void 0;let n=r(71338);t.kavaTestnet=(0,n.defineChain)({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0})},82484:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kcc=void 0;let n=r(71338);t.kcc=(0,n.defineChain)({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1})},78700:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kii=void 0;let n=r(71338);t.kii=(0,n.defineChain)({id:1783,name:"KiiChain",network:"kii-chain",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io"}}})},85166:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.kiiTestnetOro=void 0;let n=r(71338);t.kiiTestnetOro=(0,n.defineChain)({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://testnet.explorer.kiichain.io"}},testnet:!0})},1842:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kinto=void 0;let n=r(71338);t.kinto=(0,n.defineChain)({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1})},39448:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytn=void 0;let n=r(71338);t.klaytn=(0,n.defineChain)({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}})},51621:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.klaytnBaobab=void 0;let n=r(71338);t.klaytnBaobab=(0,n.defineChain)({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0})},58102:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.koi=void 0;let n=r(71338);t.koi=(0,n.defineChain)({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0})},46797:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kroma=void 0;let n=r(71338);t.kroma=(0,n.defineChain)({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16054868}},testnet:!1})},52958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kromaSepolia=void 0;let n=r(71338);t.kromaSepolia=(0,n.defineChain)({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0})},97262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.krown=void 0;let n=r(71338);t.krown=(0,n.defineChain)({id:1983,name:"Krown",nativeCurrency:{decimals:18,name:"Krown",symbol:"KROWN"},rpcUrls:{default:{http:["https://mainnet.krown.network"]}},blockExplorers:{default:{name:"Krown Explorer",url:"https://explorer.krown.network"}},testnet:!1})},33526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.l3x=void 0;let n=r(71338);t.l3x=(0,n.defineChain)({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1})},29987:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.l3xTestnet=void 0;let n=r(71338);t.l3xTestnet=(0,n.defineChain)({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0})},29852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ladyChain=void 0;let n=r(71338);t.ladyChain=(0,n.defineChain)({id:589,name:"LadyChain",nativeCurrency:{name:"Lady",symbol:"LADY",decimals:18},rpcUrls:{default:{http:["https://ladyrpc.us/rpc"]}},blockExplorers:{default:{name:"LadyScan",url:"https://ladyscan.us"}},testnet:!1})},96577:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lavita=void 0;let n=r(71338);t.lavita=(0,n.defineChain)({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1})},4602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lens=void 0;let n=r(71338);t.lens=(0,n.defineChain)({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}})},6365:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lensTestnet=void 0;let n=r(71338);t.lensTestnet=(0,n.defineChain)({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0})},2085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lestnet=void 0;let n=r(71338);t.lestnet=(0,n.defineChain)({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0})},79912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lightlinkPegasus=void 0;let n=r(71338);t.lightlinkPegasus=(0,n.defineChain)({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:127188532}},testnet:!0})},48353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lightlinkPhoenix=void 0;let n=r(71338);t.lightlinkPhoenix=(0,n.defineChain)({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:125499184}},testnet:!1})},84802:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linea=void 0;let n=r(61912),i=r(71338);t.linea=(0,i.defineChain)({...n.chainConfig,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1})},78726:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.lineaGoerli=void 0;let n=r(71338);t.lineaGoerli=(0,n.defineChain)({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0})},39695:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineaSepolia=void 0;let n=r(61912),i=r(71338);t.lineaSepolia=(0,i.defineChain)({...n.chainConfig,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:17168484}},ensTlds:[".linea.eth"],testnet:!0})},69687:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineaTestnet=void 0;let n=r(71338);t.lineaTestnet=(0,n.defineChain)({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0})},16123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lisk=void 0;let n=r(71342),i=r(71338);t.lisk=(0,i.defineChain)({...n.chainConfig,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C"}},multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{1:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{1:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{1:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:1})},25704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.liskSepolia=void 0;let n=r(71342),i=r(71338);t.liskSepolia=(0,i.defineChain)({...n.chainConfig,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{11155111:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{11155111:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{11155111:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:11155111})},94359:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadAlphanet=void 0;let n=r(71338);t.loadAlphanet=(0,n.defineChain)({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0})},61077:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.localhost=void 0;let n=r(71338);t.localhost=(0,n.defineChain)({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}})},61947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loop=void 0;let n=r(71338);t.loop=(0,n.defineChain)({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1})},10614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lukso=void 0;let n=r(71338);t.lukso=(0,n.defineChain)({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}})},98373:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.luksoTestnet=void 0;let n=r(71338);t.luksoTestnet=(0,n.defineChain)({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0})},39970:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lumiaMainnet=void 0;let n=r(71338);t.lumiaMainnet=(0,n.defineChain)({id:994873017,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1})},2728:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lumiaTestnet=void 0;let n=r(71338);t.lumiaTestnet=(0,n.defineChain)({id:1952959480,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0})},76363:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lumoz=void 0;let n=r(71338);t.lumoz=(0,n.defineChain)({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1})},55162:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lumozTestnet=void 0;let n=r(71338);t.lumozTestnet=(0,n.defineChain)({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0})},56550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.luxeports=void 0;let n=r(71338);t.luxeports=(0,n.defineChain)({id:1122,name:"LuxePorts",network:"luxeports",nativeCurrency:{name:"LuxePorts",symbol:"LXP",decimals:18},rpcUrls:{default:{http:["https://rpc.luxeports.com","https://erpc.luxeports.com"],webSocket:["wss://rpc.luxeports.com/ws","wss://erpc.luxeports.com/ws"]}},blockExplorers:{default:{name:"LXPScan",url:"https://lxpscan.com"}},testnet:!1})},35256:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.lycan=void 0;let n=r(71338);t.lycan=(0,n.defineChain)({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}})},53767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lyra=void 0;let n=r(71338);t.lyra=(0,n.defineChain)({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}})},46545:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mainnet=void 0;let n=r(71338);t.mainnet=(0,n.defineChain)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://ethereum.reth.rs/rpc"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},48431:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mandala=void 0;let n=r(71338);t.mandala=(0,n.defineChain)({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0})},87279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.manta=void 0;let n=r(71338);t.manta=(0,n.defineChain)({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}})},24691:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantaSepoliaTestnet=void 0;let n=r(71338);t.mantaSepoliaTestnet=(0,n.defineChain)({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0})},75471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantaTestnet=void 0;let n=r(71338);t.mantaTestnet=(0,n.defineChain)({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}}
111,contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0})},50541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantle=void 0;let n=r(71338);t.mantle=(0,n.defineChain)({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}})},26008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantleSepoliaTestnet=void 0;let n=r(71338);t.mantleSepoliaTestnet=(0,n.defineChain)({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0})},21573:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantleTestnet=void 0;let n=r(71338);t.mantleTestnet=(0,n.defineChain)({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0})},91238:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantraDuKongEVMTestnet=void 0;let n=r(71338);t.mantraDuKongEVMTestnet=(0,n.defineChain)({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0})},3039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mantraEVM=void 0;let n=r(71338);t.mantraEVM=(0,n.defineChain)({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Blockscout Explorer",url:"https://blockscout.mantrascan.io"}}})},6804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapProtocol=void 0;let n=r(71338);t.mapProtocol=(0,n.defineChain)({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1})},46493:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.marooTestnet=void 0;let n=r(71338);t.marooTestnet=(0,n.defineChain)({id:450815,name:"Maroo Testnet",nativeCurrency:{name:"Testnet OKRW",symbol:"tOKRW",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.maroo.io"],webSocket:["wss://ws-testnet.maroo.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-testnet.maroo.io",apiUrl:"https://explorer-testnet.maroo.io/blockscout/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0})},97662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.marsCredit=void 0;let n=r(71338);t.marsCredit=(0,n.defineChain)({id:110110,name:"Mars Credit",nativeCurrency:{decimals:18,name:"Mars Credit",symbol:"MARS"},rpcUrls:{default:{http:["https://rpc.marscredit.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscan.marscredit.xyz"}}})},97685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchain=void 0;let n=r(71338);t.matchain=(0,n.defineChain)({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}})},20679:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.matchainTestnet=void 0;let n=r(71338);t.matchainTestnet=(0,n.defineChain)({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0})},21672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mchVerse=void 0;let n=r(71338);t.mchVerse=(0,n.defineChain)({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1})},21542:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.megaeth=void 0;let n=r(71342),i=r(71338);t.megaeth=(0,i.defineChain)({...n.chainConfig,id:4326,blockTime:1e3,name:"MegaETH",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.megaeth.com/rpc"],webSocket:["wss://mainnet.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth.blockscout.com",apiUrl:"https://megaeth.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{1:{address:"0x7f82f57F0Dd546519324392e408b01fcC7D709e8",blockCreated:21644285}},l1StandardBridge:{1:{address:"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75",blockCreated:21644285}}},sourceId:1})},41163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.megaethTestnet=void 0;let n=r(71338);t.megaethTestnet=(0,n.defineChain)({id:6343,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://testnet-mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth-testnet-v2.blockscout.com",apiUrl:"https://megaeth-testnet-v2.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0})},78864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mekong=void 0;let n=r(71338);t.mekong=(0,n.defineChain)({id:7078815900,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0})},57693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meld=void 0;let n=r(71338);t.meld=(0,n.defineChain)({id:333000333,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}})},66477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memecore=void 0;let n=r(71338);t.memecore=(0,n.defineChain)({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}})},11565:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.formicarium=void 0;let n=r(71338);t.formicarium=(0,n.defineChain)({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0})},55979:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merlin=void 0;let n=r(71338);t.merlin=(0,n.defineChain)({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}})},61533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merlinErigonTestnet=void 0;let n=r(71338);t.merlinErigonTestnet=(0,n.defineChain)({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0})},72736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metachain=void 0;let n=r(71338);t.metachain=(0,n.defineChain)({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}})},28367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metachainIstanbul=void 0;let n=r(71338);t.metachainIstanbul=(0,n.defineChain)({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0})},8989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metadium=void 0;let n=r(71338);t.metadium=(0,n.defineChain)({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1})},7686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metalL2=void 0;let n=r(71342),i=r(71338);t.metalL2=(0,i.defineChain)({...n.chainConfig,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{1:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{1:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{1:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:1})},54334:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.meter=void 0;let n=r(71338);t.meter=(0,n.defineChain)({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}})},72232:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.meterTestnet=void 0;let n=r(71338);t.meterTestnet=(0,n.defineChain)({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}},testnet:!0})},15661:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metis=void 0;let n=r(71338);t.metis=(0,n.defineChain)({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webSocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}})},67810:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metisGoerli=void 0;let n=r(71338);t.metisGoerli=(0,n.defineChain)({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}},testnet:!0})},33094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metisSepolia=void 0;let n=r(71338);t.metisSepolia=(0,n.defineChain)({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}},testnet:!0})},56053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mev=void 0;let n=r(71338);t.mev=(0,n.defineChain)({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}})},74511:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mevTestnet=void 0;let n=r(71338);t.mevTestnet=(0,n.defineChain)({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0})},97135:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mezo=void 0;let n=r(71338);t.mezo=(0,n.defineChain)({id:31612,name:"Mezo",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.mezo.org"]}},blockExplorers:{default:{name:"Mezo Explorer",url:"https://explorer.mezo.org"}}})},71477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mezoTestnet=void 0;let n=r(71338);t.mezoTestnet=(0,n.defineChain)({id:31611,name:"Mezo Testnet",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.test.mezo.org"]}},blockExplorers:{default:{name:"Mezo Testnet Explorer",url:"https://explorer.test.mezo.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328573}},testnet:!0})},96639:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.mint=void 0;let n=r(71338);t.mint=(0,n.defineChain)({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1})},37885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mintSepoliaTestnet=void 0;let n=r(71338);t.mintSepoliaTestnet=(0,n.defineChain)({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0})},6559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mitosisTestnet=void 0;let n=r(71338);t.mitosisTestnet=(0,n.defineChain)({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0})},91250:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mizuhikiTestnetAwaji=void 0;let n=r(71338);t.mizuhikiTestnetAwaji=(0,n.defineChain)({id:6497,name:"MIZUHIKI Testnet Awaji",nativeCurrency:{name:"MIZU",symbol:"MIZU",decimals:18},rpcUrls:{default:{http:["https://rpc.awaji.mizuhiki.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://awaji.blockscout.com",apiUrl:"https://awaji.blockscout.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0})},79285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mode=void 0;let n=r(71342),i=r(71338);t.mode=(0,i.defineChain)({...n.chainConfig,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{1:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{1:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{1:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:1})},30066:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modeTestnet=void 0;let n=r(71342),i=r(71338);t.modeTestnet=(0,i.defineChain)({...n.chainConfig,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{11155111:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{11155111:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{11155111:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:11155111})},28460:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monad=void 0;let n=r(71338);t.monad=(0,n.defineChain)({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.etherscan.io/v2/api?chainid=143"},monadvision:{name:"MonadVision",url:"https://monadvision.com"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}})},42896:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.monadTestnet=void 0;let n=r(71338);t.monadTestnet=(0,n.defineChain)({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0})},52035:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbaseAlpha=void 0;let n=r(71338);t.moonbaseAlpha=(0,n.defineChain)({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0})},3361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeam=void 0;let n=r(71338);t.moonbeam=(0,n.defineChain)({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"Moonbeam",symbol:"GLMR"},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"],webSocket:["wss://wss.api.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1})},92284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonbeamDev=void 0;let n=r(71338);t.moonbeamDev=(0,n.defineChain)({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}})},86993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moonriver=void 0;let n=r(71338);t.moonriver=(0,n.defineChain)({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"Moonriver",symbol:"MOVR"},rpcUrls:{default:{http:["https://rpc.api.moonriver.moonbeam.network"],webSocket:["wss://wss.api.moonriver.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1})},38709:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.morph=void 0;let n=r(71338);t.morph=(0,n.defineChain)({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1})},37443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.morphHolesky=void 0;let n=r(71338);t.morphHolesky=(0,n.defineChain)({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api"}},testnet:!0})},25112:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.morphSepolia=void 0;let n=r(71338);t.morphSepolia=(0,n.defineChain)({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0})},88375:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.morphTachyon=void 0;let n=r(71338);t.morphTachyon=(0,n.defineChain)({id:2184,name:"Morph Tachyon",nativeCurrency:{name:"BGB",symbol:"BGB",decimals:18},rpcUrls:{default:{http:["https://api.popdex.xyz/api/v1/web3/rpc"]}},blockExplorers:{default:{name:"Morph Tachyon Explorer",url:"https://app.popdex.xyz/explorer"}}})},92125:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.morphTachyonTestnet=void 0;let n=r(71338);t.morphTachyonTestnet=(0,n.defineChain)({id:34952,name:"Morph Tachyon Testnet",nativeCurrency:{name:"BGB",symbol:"BGB",decimals:18},rpcUrls:{default:{http:["https://testnet-api.popdex.xyz/api/v1/web3/rpc"]}},blockExplorers:{default:{name:"Morph Tachyon Testnet Explorer",url:"https://testnet-app.popdex.xyz/explorer"}},testnet:!0})},8198:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nahmii=void 0;let n=r(71338);t.nahmii=(0,n.defineChain)({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1})},52208:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nautilus=void 0;let n=r(71338);t.nautilus=(0,n.defineChain)({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}})},21701:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.near=void 0;let n=r(71338);t.near=(0,n.defineChain)({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1})},54559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nearTestnet=void 0;let n=r(71338);t.nearTestnet=(0,n.defineChain)({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0})},11272:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonDevnet=void 0;let n=r(71338);t.neonDevnet=(0,n.defineChain)({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0})},89850:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neonMainnet=void 0;let n=r(71338);t.neonMainnet=(0,n.defineChain)({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1})},7243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neoxMainnet=void 0;let n=r(71338);t.neoxMainnet=(0,n.defineChain)({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1})},24397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.neoxT4=void 0;let n=r(71338);t.neoxT4=(0,n.defineChain)({id:12227332,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0})},10426:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.newton=void 0;let n=r(71338);t.newton=(0,n.defineChain)({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1})},76769:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexi=void 0;let n=r(71338);t.nexi=(0,n.defineChain)({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}})},59924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nexilix=void 0;let n=r(71338);t.nexilix=(0,n.defineChain)({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}})},59458:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nibiru=void 0;let n=r(71338);t.nibiru=(0,n.defineChain)({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:19587573}}})},38348:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nitrographTestnet=void 0;let n=r(71338);t.nitrographTestnet=(0,n.defineChain)({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}})},11456:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nomina=void 0;let n=r(71338);t.nomina=(0,n.defineChain)({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18},rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1})},26242:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasisTestnet=void 0;let n=r(71338);t.oasisTestnet=(0,n.defineChain)({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0})},52534:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oasys=void 0;let n=r(71338);t.oasys=(0,n.defineChain)({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}})},33660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.odysseyTestnet=void 0;let n=r(71338);t.odysseyTestnet=(0,n.defineChain)({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0})},8251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.okc=void 0;let n=r(71338);t.okc=(0,n.defineChain)({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol
111:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}})},29438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omax=void 0;let n=r(71338);t.omax=(0,n.defineChain)({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1})},53997:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omni=void 0;let n=r(71338);t.omni=(0,n.defineChain)({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1})},63561:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omniOmega=void 0;let n=r(71338);t.omniOmega=(0,n.defineChain)({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0})},31873:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oneWorld=void 0;let n=r(71338);t.oneWorld=(0,n.defineChain)({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1})},22057:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oortMainnetDev=void 0;let n=r(71338);t.oortMainnetDev=(0,n.defineChain)({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}})},59636:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNB=void 0;let n=r(71342),i=r(71338);t.opBNB=(0,i.defineChain)({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{56:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{56:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{56:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:56})},88301:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.opBNBTestnet=void 0;let n=r(71342),i=r(71338);t.opBNBTestnet=(0,i.defineChain)({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{97:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{97:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{97:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:97})},61550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openledger=void 0;let n=r(71338);t.openledger=(0,n.defineChain)({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1})},84043:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.optimism=void 0;let n=r(71342),i=r(71338);t.optimism=(0,i.defineChain)({...n.chainConfig,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{1:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{1:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{1:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1})},81279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismGoerli=void 0;let n=r(71342),i=r(71338);t.optimismGoerli=(0,i.defineChain)({...n.chainConfig,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{5:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{5:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{5:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:5})},71847:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimismSepolia=void 0;let n=r(71342),i=r(71338);t.optimismSepolia=(0,i.defineChain)({...n.chainConfig,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{11155111:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{11155111:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{11155111:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{11155111:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:11155111})},15372:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optopia=void 0;let n=r(71338);t.optopia=(0,n.defineChain)({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1})},98732:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optopiaTestnet=void 0;let n=r(71338);t.optopiaTestnet=(0,n.defineChain)({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0})},12491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderly=void 0;let n=r(71338);t.orderly=(0,n.defineChain)({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1})},55863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderlySepolia=void 0;let n=r(71338);t.orderlySepolia=(0,n.defineChain)({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0})},39844:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.otimDevnet=void 0;let n=r(71338);t.otimDevnet=(0,n.defineChain)({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}},testnet:!0})},1672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.palm=void 0;let n=r(71338);t.palm=(0,n.defineChain)({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}})},32689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.palmTestnet=void 0;let n=r(71338);t.palmTestnet=(0,n.defineChain)({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0})},67211:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paseoPassetHub=void 0;let n=r(71338);t.paseoPassetHub=(0,n.defineChain)({id:420420422,name:"Paseo PassetHub",nativeCurrency:{name:"PAS",symbol:"PAS",decimals:18},rpcUrls:{default:{http:["https://testnet-passet-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout-passet-hub.parity-testnet.parity.io"}},testnet:!0})},52353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.peaq=void 0;let n=r(71338);t.peaq=(0,n.defineChain)({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol
111:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}})},59500:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgn=void 0;let n=r(12760),i=r(71338);t.pgn=(0,i.defineChain)({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{1:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{1:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{1:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:n.formatters,sourceId:1})},90162:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pgnTestnet=void 0;let n=r(12760),i=r(71338);t.pgnTestnet=(0,i.defineChain)({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{11155111:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{11155111:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{11155111:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:n.formatters,sourceId:11155111,testnet:!0})},95958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.phoenix=void 0;let n=r(71338);t.phoenix=(0,n.defineChain)({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}})},99291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.planq=void 0;let n=r(71338);t.planq=(0,n.defineChain)({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1})},11927:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plasma=void 0;let n=r(71338);t.plasma=(0,n.defineChain)({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},53914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plasmaDevnet=void 0;let n=r(71338);t.plasmaDevnet=(0,n.defineChain)({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}})},44446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plasmaTestnet=void 0;let n=r(71338);t.plasmaTestnet=(0,n.defineChain)({id:9746,name:"Plasma Testnet",n
111ativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0})},65286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.playfiAlbireo=void 0;let n=r(71338),i=r(68693);t.playfiAlbireo=(0,n.defineChain)({...i.chainConfig,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0})},11515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plinga=void 0;let n=r(71338);t.plinga=(0,n.defineChain)({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}})},908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plume=void 0;let n=r(71338);t.plume=(0,n.defineChain)({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:1})},40863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plumeDevnet=void 0;let n=r(71338);t.plumeDevnet=(0,n.defineChain)({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:11155111})},80143:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plumeMainnet=void 0;let n=r(71338);t.plumeMainnet=(0,n.defineChain)({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:1})},30699:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plumeSepolia=void 0;let n=r(71338);t.plumeSepolia=(0,n.defineChain)({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:11155111})},1764:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.plumeTestnet=void 0;let n=r(71338);t.plumeTestnet=(0,n.defineChain)({id:161221135,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:11155111})},36100:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.polterTestnet=void 0;let n=r(71338);t.polterTestnet=(0,n.defineChain)({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0})},64239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygon=void 0;let n=r(71338);t.polygon=(0,n.defineChain)({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}})},56799:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonAmoy=void 0;let n=r(71338);t.polygonAmoy=(0,n.defineChain)({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-amoy.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0})},28985:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonMumbai=void 0;let n=r(71338);t.polygonMumbai=(0,n.defineChain)({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0})},70562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvm=void 0;let n=r(71338);t.polygonZkEvm=(0,n.defineChain)({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}})},35349:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvmCardona=void 0;let n=r(71338);t.polygonZkEvmCardona=(0,n.defineChain)({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}})},77994:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygonZkEvmTestnet=void 0;let n=r(71338);t.polygonZkEvmTestnet=(0,n.defineChain)({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}})},22586:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polynomial=void 0;let n=r(71338);t.polynomial=(0,n.defineChain)({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}})},15514:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.polynomialSepolia=void 0;let n=r(71338);t.polynomialSepolia=(0,n.defineChain)({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}})},59393:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.potos=void 0;let n=r(71338);t.potos=(0,n.defineChain)({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1})},82191:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.potosTestnet=void 0;let n=r(71338);t.potosTestnet=(0,n.defineChain)({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0})},50275:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.premiumBlockTestnet=void 0;let n=r(71338);t.premiumBlockTestnet=(0,n.defineChain)({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0})},47307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechain=void 0;let n=r(71338);t.pulsechain=(0,n.defineChain)({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol
111:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},8812:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pulsechainV4=void 0;let n=r(71338);t.pulsechainV4=(0,n.defineChain)({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},94231:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pumpfiTestnet=void 0;let n=r(71338);t.pumpfiTestnet=(0,n.defineChain)({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0})},91005:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pyrope=void 0;let n=r(71342),i=r(71338);t.pyrope=(0,i.defineChain)({...n.chainConfig,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:11155111,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...n.chainConfig.contracts,l1StandardBridge:{11155111:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}})},27022:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qMainnet=void 0;let n=r(71338);t.qMainnet=(0,n.defineChain)({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}})},61860:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qTestnet=void 0;let n=r(71338);t.qTestnet=(0,n.defineChain)({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0})},11234:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ql1=void 0;let n=r(71338);t.ql1=(0,n.defineChain)({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1})},61815:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quai=void 0;let n=r(71338);t.quai=(0,n.defineChain)({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1})},82854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quaiTestnet=void 0;let n=r(71338);t.quaiTestnet=(0,n.defineChain)({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0})},92053:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.radius=void 0;let n=r(71338);t.radius=(0,n.defineChain)({id:723487,name:"Radius Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Network Explorer",url:"https://network.radiustech.xyz"}},testnet:!1})},6096:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radiusTestnet=void 0;let n=r(71338);t.radiusTestnet=(0,n.defineChain)({id:72344,name:"Radius Test Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Test Network Explorer",url:"https://testnet.radiustech.xyz"}},testnet:!0})},77989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactiveTestnet=void 0;let n=r(71338);t.reactiveTestnet=(0,n.defineChain)({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0})},24227:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.real=void 0;let n=r(71338);t.real=(0,n.defineChain)({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}})},85639:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redbellyMainnet=void 0;let n=r(71338);t.redbellyMainnet=(0,n.defineChain)({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1})},985:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redbellyTestnet=void 0;let n=r(71338);t.redbellyTestnet=(0,n.defineChain)({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0})},4178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reddio=void 0;let n=r(71338);t.reddio=(0,n.defineChain)({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1})},58367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reddioSepolia=void 0;let n=r(71338);t.reddioSepolia=(0,n.defineChain)({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0})},19281:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redstone=void 0;let n=r(71342),i=r(71338);t.redstone=(0,i.defineChain)({...n.chainConfig,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},18193:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.rei=void 0;let n=r(71338);t.rei=(0,n.defineChain)({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1})},52582:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reyaNetwork=void 0;let n=r(71338);t.reyaNetwork=(0,n.defineChain)({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1})},51923:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rise=void 0;let n=r(71338);t.rise=(0,n.defineChain)({id:4153,name:"RISE",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.risechain.com"],webSocket:["wss://rpc.risechain.com/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.risechain.com",apiUrl:"https://explorer.risechain.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}})},92925:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.riseTestnet=void 0;let n=r(71338);t.riseTestnet=(0,n.defineChain)({id:11155931,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0})},18241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rivalz=void 0;let n=r(71338);t.rivalz=(0,n.defineChain)({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1})},34327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.robinhood=void 0;let n=r(71338);t.robinhood=(0,n.defineChain)({id:4663,name:"Robinhood Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://rpc.mainnet.chain.robinhood.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://robinhoodchain.blockscout.com",apiUrl:"https://robinhoodchain.blockscout.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}})},57914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.robinhoodTestnet=void 0;let n=r(71338);t.robinhoodTestnet=(0,n.defineChain)({id:46630,name:"Robinhood Chain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.chain.robinhood.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.chain.robinhood.com",apiUrl:"https://explorer.testnet.chain.robinhood.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0})},96640:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rollux=void 0;let n=r(71338);t.rollux=(0,n.defineChain)({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}})},11769:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rolluxTestnet=void 0;let n=r(71338);t.rolluxTestnet=(0,n.defineChain)({id:57e3,name:"Rollux Testnet",n
111ativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}},testnet:!0})},20325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ronin=void 0;let n=r(71338);t.ronin=(0,n.defineChain)({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}})},29596:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.root=void 0;let n=r(71338);t.root=(0,n.defineChain)({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}})},14679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootPorcini=void 0;let n=r(71338);t.rootPorcini=(0,n.defineChain)({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:10555692}},testnet:!0})},13685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootstock=void 0;let n=r(71338);t.rootstock=(0,n.defineChain)({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}})},8673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootstockTestnet=void 0;let n=r(71338);t.rootstockTestnet=(0,n.defineChain)({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0})},86392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rss3=void 0;let n=r(71342),i=r(71338);t.rss3=(0,i.defineChain)({...n.chainConfig,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{1:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{1:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{1:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:1})},70982:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rss3Sepolia=void 0;let n=r(71342),i=r(71338);t.rss3Sepolia=(0,i.defineChain)({...n.chainConfig,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{11155111:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{11155111:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{11155111:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:11155111})},90545:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.saakuru=void 0;let n=r(71338);t.saakuru=(0,n.defineChain)({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1})},65449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saga=void 0;let n=r(71338);t.saga=(0,n.defineChain)({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}})},9260:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saigon=void 0;let n=r(71338);t.saigon=(0,n.defineChain)({id:202601,name:"Ronin Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0})},80648:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanko=void 0;let n=r(71338);t.sanko=(0,n.defineChain)({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1})},63743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphire=void 0;let n=r(71338);t.sapphire=(0,n.defineChain)({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}})},40088:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sapphireTestnet=void 0;let n=r(71338);t.sapphireTestnet=(0,n.defineChain)({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0})},90756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satoshiVM=void 0;let n=r(71338);t.satoshiVM=(0,n.defineChain)({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}})},39107:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satoshiVMTestnet=void 0;let n=r(71338);t.satoshiVMTestnet=(0,n.defineChain)({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0})},53874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scroll=void 0;let n=r(71338);t.scroll=(0,n.defineChain)({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1})},84847:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.scrollSepolia=void 0;let n=r(71338);t.scrollSepolia=(0,n.defineChain)({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0})},76469:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sei=void 0;let n=r(71338);t.sei=(0,n.defineChain)({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seiscan",url:"https://seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}})},79378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.seiTestnet=void 0;let n=r(71338);t.seiTestnet=(0,n.defineChain)({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seiscan",url:"https://testnet.seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0})},4660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.seismicDevnet=void 0;let n=r(71338);t.seismicDevnet=(0,n.defineChain)({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0})},8184:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sentrix=void 0;let n=r(71338);t.sentrix=(0,n.defineChain)({id:7119,name:"Sentrix Chain",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://rpc.sentrixchain.com"],webSocket:["wss://rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan",url:"https://scan.sentrixchain.com"}},contracts:{multicall3:{address:"0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9",blockCreated:717078}}})},6633:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sentrixTestnet=void 0;let n=r(71338);t.sentrixTestnet=(0,n.defineChain)({id:7120,name:"Sentrix Testnet",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://testnet-rpc.sentrixchain.com"],webSocket:["wss://testnet-rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan Testnet",url:"https://scan-testnet.sentrixchain.com"}},contracts:{multicall3:{address:"0x7900826De548425c6BE56caEbD4760AB0155Cd54",blockCreated:723191}},testnet:!0})},61295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sepolia=void 0;let n=r(71338);t.sepolia=(0,n.defineChain)({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0})},71689:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shape=void 0;let n=r(71342),i=r(71338);t.shape=(0,i.defineChain)({...n.chainConfig,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{1:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{1:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{1:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:1})},25730:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.shapeSepolia=void 0;let n=r(71342),i=r(71338);t.shapeSepolia=(0,i.defineChain)({...n.chainConfig,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:11155111})},52801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shardeum=void 0;let n=r(71338);t.shardeum=(0,n.defineChain)({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1})},89698:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shardeumSphinx=void 0;let n=r(71338);t.shardeumSphinx=(0,n.defineChain)({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0})},41276:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shibarium=void 0;let n=r(71338);t.shibarium=(0,n.defineChain)({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}})},41946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shibariumTestnet=void 0;let n=r(71338);t.shibariumTestnet=(0,n.defineChain)({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0})},70072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shiden=void 0;let n=r(71338);t.shiden=(0,n.defineChain)({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1})},81095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmer=void 0;let n=r(71338);t.shimmer=(0,n.defineChain)({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}})},22016:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shimmerTestnet=void 0;let n=r(71338);t.shimmerTestnet=(0,n.defineChain)({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0})},89197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sidraChain=void 0;let n=r(71338);t.sidraChain=(0,n.defineChain)({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}})},96025:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.silentData=void 0;let n=r(71338);t.silentData=(0,n.defineChain)({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1})},2003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.silicon=void 0;let n=r(71338);t.silicon=(0,n.defineChain)({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}})},96316:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.siliconSepolia=void 0;let n=r(71338);t.siliconSepolia=(0,n.defineChain)({id:1722641160,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0})},46025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sixProtocol=void 0;let n=r(71338);t.sixProtocol=(0,n.defineChain)({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1})},70461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleBlockBrawlers=void 0;let n=r(71338);t.skaleBlockBrawlers=(0,n.defineChain)({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}})},52327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypso=void 0;let n=r(71338);t.skaleCalypso=(0,n.defineChain)({id:1564830818,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}})},12988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCalypsoTestnet=void 0;let n=r(71338);t.skaleCalypsoTestnet=(0,n.defineChain)({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0})},51377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoBlades=void 0;let n=r(71338);t.skaleCryptoBlades=(0,n.defineChain)({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}})},86595:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.skaleCryptoColosseum=void 0;let n=r(71338);t.skaleCryptoColosseum=(0,n.defineChain)({id:1032942172,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}})},24950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropa=void 0;let n=r(71338);t.skaleEuropa=(0,n.defineChain)({id:2046399126,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}})},75142:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleEuropaTestnet=void 0;let n=r(71338);t.skaleEuropaTestnet=(0,n.defineChain)({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0})},91955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleExorde=void 0;let n=r(71338);t.skaleExorde=(0,n.defineChain)({id:2139927552,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}})},27744:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleHumanProtocol=void 0;let n=r(71338);t.skaleHumanProtocol=(0,n.defineChain)({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}})},93943:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebula=void 0;let n=r(71338);t.skaleNebula=(0,n.defineChain)({id:1482601649,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}})},45439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleNebulaTestnet=void 0;let n=r(71338);t.skaleNebulaTestnet=(0,n.defineChain)({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0})},68653:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.skaleRazor=void 0;let n=r(71338);t.skaleRazor=(0,n.defineChain)({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}})},38658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleBase=void 0;let n=r(71338);t.skaleBase=(0,n.defineChain)({id:1187947933,name:"SKALE Base",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://skale-base.skalenodes.com/v1/base"],webSocket:["wss://skale-base.skalenodes.com/v1/ws/base"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://skale-base-explorer.skalenodes.com/"}},testnet:!0})},66527:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleBaseSepoliaTestnet=void 0;let n=r(71338);t.skaleBaseSepoliaTestnet=(0,n.defineChain)({id:324705682,name:"SKALE Base Sepolia Testnet",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/base-testnet"],webSocket:["wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://base-sepolia-testnet-explorer.skalenodes.com/"}},testnet:!0})},87356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitan=void 0;let n=r(71338);t.skaleTitan=(0,n.defineChain)({id:1350216234,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}})},89721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skaleTitanTestnet=void 0;let n=r(71338);t.skaleTitanTestnet=(0,n.defineChain)({id:1020352220,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0})},27435:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sketchpad=void 0;let n=r(71338);t.sketchpad=(0,n.defineChain)({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0})},47781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snax=void 0;let n=r(71342),i=r(71338);t.snax=(0,i.defineChain)({...n.chainConfig,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{1:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{1:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:1})},85143:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.snaxTestnet=void 0;let n=r(71342),i=r(71338);t.snaxTestnet=(0,i.defineChain)({...n.chainConfig,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{11155111:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{11155111:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{11155111:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{11155111:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"}}},testnet:!0,sourceId:11155111})},59897:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.somnia=void 0;let n=r(71338);t.somnia=(0,n.defineChain)({id:5031,name:"Somnia",nativeCurrency:{name:"Somnia",symbol:"SOMI",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://api.infra.mainnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Explorer",url:"https://explorer.somnia.network",apiUrl:"https://explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",blockCreated:38516341}},testnet:!1})},70881:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.somniaTestnet=void 0;let n=r(71338);t.somniaTestnet=(0,n.defineChain)({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://api.infra.testnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:71314235}},testnet:!0})},95307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.soneium=void 0;let n=r(71342),i=r(71338);t.soneium=(0,i.defineChain)({...n.chainConfig,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{1:{address:"0x0000000000000000000000000000000000000000"}},portal:{1:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{1:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:1})},3771:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.soneiumMinato=void 0;let n=r(71342),i=r(71338);t.soneiumMinato=(0,i.defineChain)({...n.chainConfig,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{11155111:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{11155111:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{11155111:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{11155111:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:11155111})},14227:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.songbird=void 0;let n=r(71338);t.songbird=(0,n.defineChain)({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13382504}}})},19790:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.songbirdTestnet=void 0;let n=r(71338);t.songbirdTestnet=(0,n.defineChain)({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0})},64573:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sonic=void 0;let n=r(71338);t.sonic=(0,n.defineChain)({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1})},41743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sonicBlazeTestnet=void 0;let n=r(71338);t.sonicBlazeTestnet=(0,n.defineChain)({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0})},43394:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sonicTestnet=void 0;let n=r(71338);t.sonicTestnet=(0,n.defineChain)({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0})},43974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sophon=void 0;let n=r(71338),i=r(68693);t.sophon=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1})},91825:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sophonTestnet=void 0;let n=r(71338),i=r(68693);t.sophonTestnet=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:531050104,name:"Sophon Testnet",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0})},10926:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sova=void 0;let n=r(71338);t.sova=(0,n.defineChain)({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"https://explorer.sova.io"}},testnet:!1})},82829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sovaSepolia=void 0;let n=r(71338);t.sovaSepolia=(0,n.defineChain)({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0})},9646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spicy=void 0;let n=r(71338);t.spicy=(0,n.defineChain)({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0})},82779:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.stable=void 0;let n=r(71338);t.stable=(0,n.defineChain)({id:988,name:"Stable Mainnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.stable.xyz"],webSocket:["wss://rpc.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=988"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2423647}},testnet:!1})},5344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stableTestnet=void 0;let n=r(71338);t.stableTestnet=(0,n.defineChain)({id:2201,name:"Stable Testnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.stable.xyz"],webSocket:["wss://rpc.testnet.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://testnet.stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=2201"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22364430}},testnet:!0})},19929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusSepolia=void 0;let n=r(61912),i=r(71338);t.statusSepolia=(0,i.defineChain)({...n.chainConfig,id:1660990954,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0})},84961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.step=void 0;let n=r(71338);t.step=(0,n.defineChain)({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1})},3191:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.story=void 0;let n=r(71338);t.story=(0,n.defineChain)({id:1514,name:"Data Network",nativeCurrency:{decimals:18,name:"DATA",symbol:"DATA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.datarpc.io"]}},blockExplorers:{default:{name:"Data Network explorer",url:"https://datanetscan.io",apiUrl:"https://datanetscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1})},51918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storyAeneid=void 0;let n=r(71338);t.storyAeneid=(0,n.defineChain)({id:1315,name:"Data Network Aeneid",network:"data-network-aeneid",nativeCurrency:{decimals:18,name:"DATA",symbol:"DATA"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.datarpc.io"]}},blockExplorers:{default:{name:"Data Network Aeneid Explorer",url:"https://aeneid.datanetscan.io",apiUrl:"https://aeneid.datanetscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0})},18072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storyOdyssey=void 0;let n=r(71338);t.storyOdyssey=(0,n.defineChain)({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0})},65179:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storyTestnet=void 0;let n=r(71338);t.storyTestnet=(0,n.defineChain)({id:1513,name:"Story Testnet",n
111ativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0})},54214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stratis=void 0;let n=r(71338);t.stratis=(0,n.defineChain)({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}})},34319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subtensorEvm=void 0;let n=r(71338);t.subtensorEvm=(0,n.defineChain)({id:964,name:"Subtensor EVM",nativeCurrency:{decimals:18,name:"TAO",symbol:"TAO"},rpcUrls:{default:{http:["https://lite.chain.opentensor.ai"]}},blockExplorers:{default:{name:"Taostats EVM Explorer",url:"https://evm.taostats.io",apiUrl:"https://evm.taostats.io/api"}},testnet:!1})},95209:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.superlumio=void 0;let n=r(71338);t.superlumio=(0,n.defineChain)({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1})},57576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.superposition=void 0;let n=r(71338);t.superposition=(0,n.defineChain)({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1})},34244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.superseed=void 0;let n=r(71342),i=r(71338);t.superseed=(0,i.defineChain)({...n.chainConfig,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{1:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{1:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{1:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:1})},27971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.superseedSepolia=void 0;let n=r(71342),i=r(71338);t.superseedSepolia=(0,i.defineChain)({...n.chainConfig,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{11155111:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{11155111:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:11155111})},74420:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.surgeTestnet=void 0;let n=r(71338);t.surgeTestnet=(0,n.defineChain)({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0})},30540:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.swan=void 0;let n=r(71338);t.swan=(0,n.defineChain)({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1})},57730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.swanProximaTestnet=void 0;let n=r(71338);t.swanProximaTestnet=(0,n.defineChain)({id:20241133,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0})},98070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.swanSaturnTestnet=void 0;let n=r(71338);t.swanSaturnTestnet=(0,n.defineChain)({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0})},20416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.swellchain=void 0;let n=r(71342),i=r(71338);t.swellchain=(0,i.defineChain)({...n.chainConfig,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}})},14176:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.swellchainTestnet=void 0;let n=r(71342),i=r(71338);t.swellchainTestnet=(0,i.defineChain)({...n.chainConfig,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0})},9416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.swissdlt=void 0;let n=r(71338);t.swissdlt=(0,n.defineChain)({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1})},38257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoin=void 0;let n=r(71338);t.syscoin=(0,n.defineChain)({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}})},41506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syscoinTestnet=void 0;let n=r(71338);t.syscoinTestnet=(0,n.defineChain)({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}},testnet:!0})},17455:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tac=void 0;let n=r(71338);t.tac=(0,n.defineChain)({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}})},84367:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.tacSPB=void 0;let n=r(71338);t.tacSPB=(0,n.defineChain)({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0})},38862:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taiko=void 0;let n=r(71338);t.taiko=(0,n.defineChain)({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://taikoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11269}}})},7994:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoHekla=void 0;let n=r(71338);t.taikoHekla=(0,n.defineChain)({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0})},55189:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoHoodi=void 0;let n=r(71338);t.taikoHoodi=(0,n.defineChain)({id:167013,name:"Taiko Hoodi",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.taiko.xyz"],webSocket:["wss://ws.hoodi.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.taikoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:581116}},testnet:!0})},99032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoJolnir=void 0;let n=r(71338);t.taikoJolnir=(0,n.defineChain)({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0})},97420:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoKatla=void 0;let n=r(71338);t.taikoKatla=(0,n.defineChain)({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}},testnet:!0})},63345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taikoTestnetSepolia=void 0;let n=r(71338);t.taikoTestnetSepolia=(0,n.defineChain)({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}},testnet:!0})},87464:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxa=void 0;let n=r(71338);t.taraxa=(0,n.defineChain)({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}})},64716:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taraxaTestnet=void 0;let n=r(71338);t.taraxaTestnet=(0,n.defineChain)({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0})},99972:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.teaSepolia=void 0;let n=r(71338);t.teaSepolia=(0,n.defineChain)({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0})},52477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telcoinTestnet=void 0;let n=r(71338);t.telcoinTestnet=(0,n.defineChain)({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0})},90710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telos=void 0;let n=r(71338);t.telos=(0,n.defineChain)({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}})},67083:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.telosTestnet=void 0;let n=r(71338);t.telosTestnet=(0,n.defineChain)({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0})},97731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tempo=void 0;let n=r(14849),i=r(71338);t.tempo=(0,i.defineChain)({...n.chainConfig,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}})},18282:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tempoDevnet=void 0;let n=r(14849),i=r(71338);t.tempoDevnet=(0,i.defineChain)({...n.chainConfig,id:31318,name:"Tempo Devnet",hardfork:"t3",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.devnet.tempo.xyz"}},nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.devnet.tempoxyz.dev"],webSocket:["wss://rpc.devnet.tempoxyz.dev"]}},testnet:!0})},1547:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tempoLocalnet=void 0;let n=r(14849),i=r(71338);t.tempoLocalnet=(0,i.defineChain)({...n.chainConfig,id:1337,name:"Tempo",hardfork:"t3",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["http://localhost:8545"]}}})},46606:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tempoModerato=void 0;let n=r(14849),i=r(71338);t.tempoModerato=(0,i.defineChain)({...n.chainConfig,id:42431,hardfork:"t5",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.testnet.tempo.xyz"}},name:"Tempo Testnet (Moderato)",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.moderato.tempo.xyz"],webSocket:["wss://rpc.moderato.tempo.xyz"]}},testnet:!0})},27497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tenet=void 0;let n=r(71338);t.tenet=(0,n.defineChain)({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1})},99246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ternoa=void 0;let n=r(71338);t.ternoa=(0,n.defineChain)({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1})},10288:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.thaiChain=void 0;let n=r(71338);t.thaiChain=(0,n.defineChain)({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1})},40419:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.that=void 0;let n=r(71338);t.that=(0,n.defineChain)({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1})},1737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.theta=void 0;let n=r(71338);t.theta=(0,n.defineChain)({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1})},56927:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thetaTestnet=void 0;let n=r(71338);t.thetaTestnet=(0,n.defineChain)({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0})},10352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thunderCore=void 0;let n=r(71338);t.thunderCore=(0,n.defineChain)({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1})},52807:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thunderTestnet=void 0;let n=r(71338);t.thunderTestnet=(0,n.defineChain)({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0})},13467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tiktrixTestnet=void 0;let n=r(71338);t.tiktrixTestnet=(0,n.defineChain)({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0})},40382:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tomb=void 0;let n=r(71338);t.tomb=(0,n.defineChain)({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1})},55722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treasure=void 0;let n=r(71338),i=r(68693);t.treasure=(0,n.defineChain)({...i.chainConfig,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1})},43020:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treasureTopaz=void 0;let n=r(71338),i=r(68693);t.treasureTopaz=(0,n.defineChain)({...i.chainConfig,id:978658,name:"Treasure Topaz Testnet",n
111ativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0})},94520:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tron=void 0;let n=r(71338);t.tron=(0,n.defineChain)({id:728126428,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockTime:3e3,blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}})},11418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tronNile=void 0;let n=r(71338);t.tronNile=(0,n.defineChain)({id:3448148188,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0})},23298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tronShasta=void 0;let n=r(71338);t.tronShasta=(0,n.defineChain)({id:2494104990,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0})},34275:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ubiq=void 0;let n=r(71338);
111t.ubiq=(0,n.defineChain)({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1})},71382:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ultra=void 0;let n=r(71338);t.ultra=(0,n.defineChain)({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}})},30301:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ultraTestnet=void 0;let n=r(71338);t.ultraTestnet=(0,n.defineChain)({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0})},11350:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ultron=void 0;let n=r(71338);t.ultron=(0,n.defineChain)({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1})},26118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ultronTestnet=void 0;let n=r(71338);t.ultronTestnet=(0,n.defineChain)({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0})},93866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unichain=void 0;let n=r(71342),i=r(71338);t.unichain=(0,i.defineChain)({...n.chainConfig,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{1:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{1:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{1:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:1})},25580:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unichainSepolia=void 0;let n=r(71342),i=r(71338);t.unichainSepolia=(0,i.defineChain)({...n.chainConfig,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{11155111:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{11155111:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{11155111:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:11155111})},49005:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unique=void 0;let n=r(71338);t.unique=(0,n.defineChain)({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}})},22298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueOpal=void 0;let n=r(71338);t.uniqueOpal=(0,n.defineChain)({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0})},65167:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueQuartz=void 0;let n=r(71338);t.uniqueQuartz=(0,n.defineChain)({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}})},95967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unreal=void 0;let n=r(71338);t.unreal=(0,n.defineChain)({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}})},43642:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valygoNft=void 0;let n=r(71338);t.valygoNft=(0,n.defineChain)({id:7773777,name:"VALYGO NFT",nativeCurrency:{decimals:18,name:"VYO",symbol:"VYO"},rpcUrls:{default:{http:["https://rpc-gw-1.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/rpc","https://rpc-gw-2.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/rpc"],webSocket:["wss://ws.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/ws"]}},blockExplorers:{default:{name:"VYOScan NFT",url:"https://nft.vyoscan.com",apiUrl:"https://nft.vyoscan.com/api"}},contracts:{multicall3:{address:"0x4469693a04BAE365795329a89b24F4Eb1303Ea08"}}})},67799:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valygoSmartchain=void 0;let n=r(71338);t.valygoSmartchain=(0,n.defineChain)({id:7771777,name:"VALYGO Smartchain",nativeCurrency:{decimals:18,name:"VYO",symbol:"VYO"},rpcUrls:{default:{http:["https://rpc-gw-1.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/rpc","https://rpc-gw-2.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/rpc"],webSocket:["wss://ws.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/ws"]}},blockExplorers:{default:{name:"VYOScan",url:"https://vyoscan.com",apiUrl:"https://vyoscan.com/api"}},contracts:{multicall3:{address:"0xeFa3c632BD275750597cE9ca2346A5becAA0F344"}}})},71647:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vana=void 0;let n=r(71338);t.vana=(0,n.defineChain)({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}})},20750:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vanaMoksha=void 0;let n=r(71338);t.vanaMoksha=(0,n.defineChain)({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0})},56953:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vanar=void 0;let n=r(71338);t.vanar=(0,n.defineChain)({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1})},9720:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vechain=void 0;let n=r(71338);t.vechain=(0,n.defineChain)({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}})},30856:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.velas=void 0;let n=r(71338);t.velas=(0,n.defineChain)({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:55883577}},testnet:!1})},68625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viction=void 0;let n=r(71338);t.viction=(0,n.defineChain)({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1})},13580:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.victionTestnet=void 0;let n=r(71338);t.victionTestnet=(0,n.defineChain)({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:12170179}},testnet:!0})},66416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vision=void 0;let n=r(71338);t.vision=(0,n.defineChain)({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1})},1762:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visionTestnet=void 0;let n=r(71338);t.visionTestnet=(0,n.defineChain)({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0})},58803:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchain=void 0;let n=r(71338);t.wanchain=(0,n.defineChain)({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}})},78806:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wanchainTestnet=void 0;let n=r(71338);t.wanchainTestnet=(0,n.defineChain)({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0})},96044:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weaveVMAlphanet=void 0;let n=r(71338);t.weaveVMAlphanet=(0,n.defineChain)({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0})},30920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemix=void 0;let n=r(71338);t.wemix=(0,n.defineChain)({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}})},62291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wemixTestnet=void 0;let n=r(71338);t.wemixTestnet=(0,n.defineChain)({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",n
111ativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0})},71663:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.westendAssetHub=void 0;let n=r(71338);t.westendAssetHub=(0,n.defineChain)({id:420420421,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0})},86174:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whitechain=void 0;let n=r(71338);t.whitechain=(0,n.defineChain)({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25212237}}})},71679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whitechainSepolia=void 0;let n=r(71338);t.whitechainSepolia=(0,n.defineChain)({testnet:!0,id:1874,name:"Whitechain Sepolia",nativeCurrency:{decimals:18,name:"WBT",symbol:"WBT"},rpcUrls:{default:{http:["https://rpc.testnet.whitechain.io"]}},blockExplorers:{default:{name:"Whitechain Testnet Explorer",url:"https://explorer.testnet.whitechain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}})},29770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whitechainTestnet=void 0;let n=r(71338);t.whitechainTestnet=(0,n.defineChain)({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}})},27336:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wmcTestnet=void 0;let n=r(71338);t.wmcTestnet=(0,n.defineChain)({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0})},10044:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.worldLand=void 0;let n=r(71338);t.worldLand=(0,n.defineChain)({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1})},72459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.worldchain=void 0;let n=r(71342),i=r(71338);t.worldchain=(0,i.defineChain)({...n.chainConfig,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{1:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{1:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{1:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{1:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:1})},95474:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}
111),t.worldchainSepolia=void 0;let n=r(71342),i=r(71338);t.worldchainSepolia=(0,i.defineChain)({...n.chainConfig,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{11155111:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{11155111:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{11155111:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{11155111:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:11155111})},95740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xLayer=void 0;let n=r(71338);t.xLayer=(0,n.defineChain)({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},blockTime:1e3,rpcUrls:{default:{http:["https://xlayerrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}})},13786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.x1Testnet=t.xLayerTestnet=void 0;let n=r(71338);t.xLayerTestnet=(0,n.defineChain)({id:1952,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),t.x1Testnet=t.xLayerTestnet},17538:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xai=void 0;let n=r(71338);t.xai=(0,n.defineChain)({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1})},87612:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xaiTestnet=void 0;let n=r(71338);t.xaiTestnet=(0,n.defineChain)({id:37714555429,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0})},89399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdc=void 0;let n=r(71338);t.xdc=(0,n.defineChain)({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:75884020}}})},18690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xdcTestnet=void 0;let n=r(71338);t.xdcTestnet=(0,n.defineChain)({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}},testnet:!0})},18925:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xgr=void 0;let n=r(71338);t.xgr=(0,n.defineChain)({id:1643,name:"XGR Mainnet",nativeCurrency:{name:"XGR",symbol:"XGR",decimals:18},rpcUrls:{default:{http:["https://rpc.xgr.network"]}},blockExplorers:{default:{name:"XGR Explorer",url:"https://explorer.xgr.network"}}})},72628:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.xoneMainnet=void 0;let n=r(71338);t.xoneMainnet=(0,n.defineChain)({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1})},44702:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xoneTestnet=void 0;let n=r(71338);t.xoneTestnet=(0,n.defineChain)({id:33772211,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0})},91237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xphereMainnet=void 0;let n=r(71338);t.xphereMainnet=(0,n.defineChain)({id:20250217,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1})},95060:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xphereTestnet=void 0;let n=r(71338);t.xphereTestnet=(0,n.defineChain)({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0})},70701:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xpla=void 0;let n=r(71338);t.xpla=(0,n.defineChain)({id:37,name:"CONX Chain",nativeCurrency:{decimals:18,name:"XPLA",symbol:"XPLA"},rpcUrls:{default:{http:["https://dimension-evm-rpc.xpla.dev"]}},blockExplorers:{default:{name:"CONX Explorer",url:"https://explorer.conx.xyz"}},testnet:!1})},86965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xrOne=void 0;let n=r(71338);t.xrOne=(0,n.defineChain)({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1})},89636:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xrSepolia=void 0;let n=r(71338);t.xrSepolia=(0,n.defineChain)({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0})},91716:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xrplevm=void 0;let n=r(71338);t.xrplevm=(0,n.defineChain)({id:144e4,name:"XRPL EVM",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.xrplevm.org",apiUrl:"https://explorer.xrplevm.org/api/v2"}},testnet:!1})},77247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xrplevmDevnet=void 0;let n=r(71338);t.xrplevmDevnet=(0,n.defineChain)({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:15237286}},testnet:!0})},80139:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xrplevmTestnet=void 0;let n=r(71338);t.xrplevmTestnet=(0,n.defineChain)({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol
111:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0})},11462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ynxTestnet=void 0;let n=r(71338);t.ynxTestnet=(0,n.defineChain)({id:6423,name:"YNX Testnet",nativeCurrency:{decimals:18,name:"YNXT",symbol:"YNXT"},rpcUrls:{default:{http:["https://evm.ynxweb4.com"]}},blockExplorers:{default:{name:"YNX Explorer",url:"https://explorer.ynxweb4.com"}},testnet:!0})},20308:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yooldoVerse=void 0;let n=r(71338);t.yooldoVerse=(0,n.defineChain)({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}})},22303:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yooldoVerseTestnet=void 0;let n=r(71338);t.yooldoVerseTestnet=(0,n.defineChain)({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0})},11408:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zenchainTestnet=void 0;let n=r(71338);t.zenchainTestnet=(0,n.defineChain)({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0})},51867:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeniq=void 0;let n=r(71338);t.zeniq=(0,n.defineChain)({id:383414847825,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1})},77950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroNetwork=void 0;let n=r(71338);t.zeroNetwork=(0,n.defineChain)({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1})},54449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zetachain=void 0;let n=r(71338);t.zetachain=(0,n.defineChain)({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1})},80847:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zetachainAthensTestnet=void 0;let n=r(71338);t.zetachainAthensTestnet=(0,n.defineChain)({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0})},53924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhejiang=void 0;let n=r(71338);t.zhejiang=(0,n.defineChain)({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol
111:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0})},47722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqa=void 0;let n=r(71338);t.zilliqa=(0,n.defineChain)({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1})},46324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zilliqaTestnet=void 0;let n=r(71338);t.zilliqaTestnet=(0,n.defineChain)({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0})},80830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zircuit=void 0;let n=r(71342),i=r(71338);t.zircuit=(0,i.defineChain)({...n.chainConfig,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{1:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{1:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{1:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1})},68679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zircuitGarfieldTestnet=void 0;let n=r(71342),i=r(71338);t.zircuitGarfieldTestnet=(0,i.defineChain)({...n.chainConfig,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{11155111:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{11155111:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{11155111:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0})},80344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFair=void 0;let n=r(71338);t.zkFair=(0,n.defineChain)({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1})},55041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkFairTestnet=void 0;let n=r(71338);t.zkFairTestnet=(0,n.defineChain)({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0})},47454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkLinkNova=void 0;let n=r(71338);t.zkLinkNova=(0,n.defineChain)({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}})},31276:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkLinkNovaSepoliaTestnet=void 0;let n=r(71338);t.zkLinkNovaSepoliaTestnet=(0,n.defineChain)({id:810181,name:"zkLink Nova Sepolia Testnet",n
111ativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}},testnet:!0})},56428:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkXPLA=void 0;let n=r(71338);t.zkXPLA=(0,n.defineChain)({id:375,name:"zkXPLA Mainnet",network:"zkxpla",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Mainnet Explorer",url:"https://explorer.zkxpla.io",apiUrl:"https://explorer.zkxpla.io/api"}},testnet:!1})},39533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zkXPLATestnet=void 0;let n=r(71338);t.zkXPLATestnet=(0,n.defineChain)({id:475,name:"zkXPLA Testnet",network:"zkxpla-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet-rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Testnet Explorer",url:"https://testnet-explorer.zkxpla.io",apiUrl:"https://testnet-explorer.zkxpla.io/api"}},testnet:!0})},68903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksync=void 0;let n=r(71338),i=r(68693);t.zksync=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:3908235},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:45659388}}})},36522:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncInMemoryNode=void 0;let n=r(71338),i=r(68693);t.zksyncInMemoryNode=(0,n.defineChain)({...i.chainConfig,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0})},51492:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncLocalCustomHyperchain=void 0;let n=r(71338),i=r(68693);t.zksyncLocalCustomHyperchain=(0,n.defineChain)({...i.chainConfig,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0})},70898:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncLocalHyperchain=void 0;let n=r(71338),i=r(68693);t.zksyncLocalHyperchain=(0,n.defineChain)({...i.chainConfig,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0})},29144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncLocalHyperchainL1=void 0;let n=r(71338);t.zksyncLocalHyperchainL1=(0,n.defineChain)({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",a
111piUrl:"http://localhost:15001/api/v2"}},testnet:!0})},24554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncLocalNode=void 0;let n=r(71338),i=r(68693);t.zksyncLocalNode=(0,n.defineChain)({...i.chainConfig,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0})},24368:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zksyncSepoliaTestnet=void 0;let n=r(71338),i=r(68693);t.zksyncSepoliaTestnet=(0,n.defineChain)({...i.chainConfig,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0})},32287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zora=void 0;let n=r(71342),i=r(71338);t.zora=(0,i.defineChain)({...n.chainConfig,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...n.chainConfig.contracts,disputeGameFactory:{1:{address:"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e"}},l2OutputOracle:{1:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{1:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{1:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:1})},56530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraSepolia=void 0;let n=r(71342),i=r(71338);t.zoraSepolia=(0,i.defineChain)({...n.chainConfig,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...n.chainConfig.contracts,l2OutputOracle:{11155111:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{11155111:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{11155111:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:11155111,testnet:!0})},56027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoraTestnet=void 0;let n=r(71342),i=r(71338);t.zoraTestnet=(0,i.defineChain)({...n.chainConfig,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...n.chainConfig.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{5:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:5,testnet:!0})},13418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.avalancheFuji=t.avalanche=t.autheoTestnet=t.auroria=t.auroraTestnet=t.aurora=t.atletaOlympia=t.astarZkyoto=t.astarZkEVM=t.astar=t.assetChainTestnet=t.assetChain=t.artheraTestnet=t.arthera=t.artelaTestnet=t.areum=t.areonNetworkTestnet=t.areonNetwork=t.arenaz=t.arcTestnet=t.arc=t.arbitrumSepolia=t.arbitrumNova=t.arbitrumGoerli=t.arbitrum=t.apollo=t.apexTestnet=t.apeChain=t.anvil=t.ancient8Sepolia=t.ancient8=t.alpenTestnet=t.alienxHalTestnet=t.alienx=t.alephZeroTestnet=t.alephZero=t.aioz=t.agungTestnet=t.adi=t.adf=t.acria=t.acala=t.abstractTestnet=t.abstract=t.abey=t.fireChain=t.zeroGTestnet=t.zeroGMainnet=t.zeroGGalileoTestnet=t.zeroG=void 0,t.btrTestnet=t.btr=t.bsquaredTestnet=t.bsquared=t.bscTestnet=t.bscGreenfield=t.bsc=t.bronosTestnet=t.bronos=t.bounceBitTestnet=t.bounceBit=t.botanixTestnet=t.botanix=t.boolBetaMainnet=t.bobSepolia=t.bobaSepolia=t.boba=t.bob=t.blastSepolia=t.blast=t.bitTorrentTestnet=t.bitTorrent=t.bitrock=t.bitlayerTestnet=t.bitlayer=t.bitkubTestnet=t.bitkub=t.bitgert=t.birdlayer=t.bifrost=t.bevmMainnet=t.berachainTestnetbArtio=t.berachainTestnet=t.berachainBepolia=t.berachain=t.bearNetworkChainTestnet=t.bearNetworkChainMainnet=t.beamTestnet=t.beam=t.battlechainTestnet=t.battlechain=t.baseSepoliaPreconf=t.baseSepolia=t.baseGoerli=t.basecampTestnet=t.basePreconf=t.base=t.bahamut=t.b3Sepolia=t.b3=void 0,t.defiOracleMetaMainnet=t.defichainEvmTestnet=t.defichainEvm=t.dchainTestnet=t.dchain=t.dbkchain=t.datah
111avenTestnet=t.darwinia=t.dailyNetworkTestnet=t.dailyNetwork=t.cyberTestnet=t.cyber=t.curtis=t.crossfi=t.crossbell=t.cronoszkEVMTestnet=t.cronoszkEVM=t.cronosTestnet=t.cronos=t.creditCoin3Testnet=t.creditCoin3Mainnet=t.creditCoin3Devnet=t.creatorTestnet=t.crab=t.cpchain=t.cornTestnet=t.corn=t.coreTestnet2=t.coreTestnet1=t.coreDao=t.confluxESpaceTestnet=t.confluxESpace=t.coinex=t.coinbit=t.codexTestnet=t.codex=t.classic=t.citreaTestnet=t.citrea=t.citrate=t.chips=t.chiliz=t.chang=t.celoSepolia=t.celoAlfajores=t.celo=t.canto=t.cannon=t.bxnTestnet=t.bxn=void 0,t.fantomTestnet=t.fantomSonicTestnet=t.fantom=t.exsatTestnet=t.exsat=t.expanse=t.excelonMainnet=t.evmosTestnet=t.evmos=t.etp=t.ethernity=t.etherlinkTestnet=t.etherlinkShadownetTestnet=t.etherlink=t.eteria=t.eosTestnet=t.eos=t.eon=t.enuls=t.eniTestnet=t.eni=t.energy=t.elysiumTestnet=t.electroneumTestnet=t.electroneum=t.elastosTestnet=t.elastos=t.eduChainTestnet=t.eduChain=t.edgewareTestnet=t.edgeware=t.edgelessTestnet=t.edgeless=t.edexaTestnet=t.edexa=t.eden=t.dymension=t.dustboyIoT=t.dreyerxTestnet=t.dreyerxMainnet=t.dosChainTestnet=t.dosChain=t.donatuz=t.domaTestnet=t.dogechain=t.dodochainTestnet=t.disChain=t.diode=t.dfk=t.degen=void 0,t.gunz=t.gravity=t.grav=t.graphiteTestnet=t.graphite=t.goerli=t.godwoken=t.goChain=t.gobi=t.goat=t.gnosisChiado=t.gnosis=t.glideL2Protocol=t.glideL1Protocol=t.giwaSepoliaPreconf=t.giwaSepolia=t.gensyn=t.genesys=t.geist=t.gatechain=t.garnet=t.fusionTestnet=t.fusion=t.fuseSparknet=t.fuse=t.funkiSepolia=t.funkiMainnet=t.fraxtalTestnet=t.fraxtal=t.foundry=t.forta=t.formTestnet=t.forma=t.form=t.fluentTestnet=t.fluentDevnet=t.fluent=t.fluenceTestnet=t.fluenceStage=t.fluence=t.flowTestnet=t.flowPreviewnet=t.flowMainnet=t.flareTestnet=t.flare=t.flame=t.filecoinHyperspace=t.filecoinCalibration=t.filecoin=t.fibo=void 0,t.iota=t.inkSepolia=t.ink=t.injectiveTestnet=t.injective=t.initVerseGenesis=t.initVerse=t.inEVM=t.immutableZkEvmTestnet=t.immutableZkEvm=t.igra=t.idchain=t.icbNetwork=t.hyperliquidEvmTestnet=t.hyperliquid=t.hyperEvm=t.hychainTestnet=t.hychain=t.humanodeTestnet5=t.humanode=t.humanityTestnet=t.humanity=t.huddle01Testnet=t.huddle01Mainnet=t.hppSepolia=t.hpp=t.hpb=t.horizenTestnet=t.hoodi=t.holesky=t.henesys=t.hemiSepolia=t.hemi=t.heliosTestnet=t.hela=t.hederaTestnet=t.hederaPreviewnet=t.hedera=t.haustTestnet=t.hausTestnet=t.hashkeyTestnet=t.hashkey=t.harmonyOne=t.hardhat=t.haqqTestedge2=t.haqqMainnet=t.happychainTestnet=t.ham=t.guruTestnet=t.guruNetwork=void 0,t.lensTestnet=t.lens=t.lavita=t.ladyChain=t.l3xTestnet=t.l3x=t.krown=t.kromaSepolia=t.kroma=t.koi=t.klaytnBaobab=t.klaytn=t.kinto=t.kiiTestnetOro=t.kii=t.kcc=t.kavaTestnet=t.kava=t.katana=t.karura=t.kardiaChain=t.kakarotStarknetSepolia=t.kakarotSepolia=t.kairos=t.kaia=t.juneoUSDT1Chain=t.juneoUSD1Chain=t.juneoSocotraTestnet=t.juneoSGD1Chain=t.juneomBTC1Chain=t.juneoLTC1Chain=t.juneoLINK1Chain=t.juneoGLD1Chain=t.juneoEUR1Chain=t.juneoDOGE1Chain=t.juneoDAI1Chain=t.juneoBCH1Chain=t.juneo=t.jovaySepolia=t.jovay=t.jocTestnet=t.jocMainnet=t.jbcTestnet=t.jbc=t.jasmyChainTestnet=t.jasmyChain=t.iSunCoin=t.iotexTestnet=t.iotex=t.iotaTestnet=void 0,t.meter=t.metalL2=t.metadium=t.metachainIstanbul=t.metachain=t.merlinErigonTestnet=t.merlin=t.formicarium=t.memecore=t.meld=t.mekong=t.megaethTestnet=t.megaeth=t.mchVerse=t.matchainTestnet=t.matchain=t.marsCredit=t.marooTestnet=t.mapProtocol=t.mantraEVM=t.mantraDuKongEVMTestnet=t.mantleTestnet=t.mantleSepoliaTestnet=t.mantle=t.mantaTestnet=t.mantaSepoliaTestnet=t.manta=t.mandala=t.mainnet=t.lyra=t.lycan=t.luxeports=t.lumozTestnet=t.lumoz=t.lumiaTestnet=t.lumiaMainnet=t.luksoTestnet=t.lukso=t.loop=t.localhost=t.loadAlphanet=t.liskSepolia=t.lisk=t.lineaTestnet=t.lineaSepolia=t.lineaGoerli=t.linea=t.lightlinkPhoenix=t.lightlinkPegasus=t.lestnet=void 0,t.opBNBTestnet=t.opBNB=t.oortMainnetDev=t.oneWorld=t.omniOmega=t.omni=t.omax=t.okc=t.odysseyTestnet=t.oasys=t.oasisTestnet=t.nomina=t.nitrographTestnet=t.nibiru=t.nexilix=t.nexi=t.newton=t.neoxT4=t.neoxMainnet=t.neonMainnet=t.neonDevnet=t.nearTestnet=t.near=t.nautilus=t.nahmii=t.morphTachyonTestnet=t.morphTachyon=t.morphSepolia=t.morphHolesky=t.morph=t.moonriver=t.moonbeamDev=t.moonbeam=t.moonbaseAlpha=t.monadTestnet=t.monad=t.modeTestnet=t.mode=t.mizuhikiTestnetAwaji=t.mitosisTestnet=t.mintSepoliaTestnet=t.mint=t.mezoTestnet=t.mezo=t.mevTestnet=t.mev=t.metisSepolia=t.metisGoerli=t.metis=t.meterTestnet=void 0,t.radiu
111sTestnet=t.radius=t.quaiTestnet=t.quai=t.qTestnet=t.qMainnet=t.ql1=t.pyrope=t.pumpfiTestnet=t.pulsechainV4=t.pulsechain=t.premiumBlockTestnet=t.potosTestnet=t.potos=t.polynomialSepolia=t.polynomial=t.polygonZkEvmTestnet=t.polygonZkEvmCardona=t.polygonZkEvm=t.polygonMumbai=t.polygonAmoy=t.polygon=t.polterTestnet=t.plumeTestnet=t.plumeSepolia=t.plumeMainnet=t.plumeDevnet=t.plume=t.plinga=t.playfiAlbireo=t.plasmaTestnet=t.plasmaDevnet=t.plasma=t.planq=t.phoenix=t.pgnTestnet=t.pgn=t.peaq=t.paseoPassetHub=t.palmTestnet=t.palm=t.otimDevnet=t.orderlySepolia=t.orderly=t.optopiaTestnet=t.optopia=t.optimismSepolia=t.optimismGoerli=t.optimism=t.openledger=void 0,t.silicon=t.silentData=t.sidraChain=t.shimmerTestnet=t.shimmer=t.shiden=t.shibariumTestnet=t.shibarium=t.shardeumSphinx=t.shardeum=t.shapeSepolia=t.shape=t.sepolia=t.sentrixTestnet=t.sentrix=t.seiTestnet=t.seismicDevnet=t.sei=t.scrollSepolia=t.satoshiVMTestnet=t.satoshiVM=t.sapphireTestnet=t.sapphire=t.sanko=t.saigon=t.saga=t.saakuru=t.rss3Sepolia=t.rss3=t.rootstockTestnet=t.rootstock=t.rootPorcini=t.root=t.ronin=t.rolluxTestnet=t.rollux=t.robinhoodTestnet=t.robinhood=t.rivalz=t.riseTestnet=t.rise=t.reyaNetwork=t.rei=t.redstone=t.reddioSepolia=t.reddio=t.redbellyTestnet=t.redbellyMainnet=t.real=t.reactiveTestnet=void 0,t.superseedSepolia=t.superseed=t.superposition=t.superlumio=t.subtensorEvm=t.stratis=t.storyTestnet=t.storyOdyssey=t.storyAeneid=t.story=t.step=t.statusNetworkSepolia=t.statusSepolia=t.stableTestnet=t.stable=t.spicy=t.sovaSepolia=t.sova=t.sophonTestnet=t.sophon=t.sonicTestnet=t.sonicBlazeTestnet=t.sonic=t.songbirdTestnet=t.songbird=t.soneiumMinato=t.soneium=t.somniaTestnet=t.somnia=t.snaxTestnet=t.snax=t.sketchpad=t.skaleTitanTestnet=t.skaleTitan=t.skaleBaseSepoliaTestnet=t.skaleBase=t.skaleRazor=t.skaleNebulaTestnet=t.skaleNebula=t.skaleHumanProtocol=t.skaleExorde=t.skaleEuropaTestnet=t.skaleEuropa=t.skaleCryptoColosseum=t.skaleCryptoBlades=t.skaleCalypsoTestnet=t.skaleCalypso=t.skaleBlockBrawlers=t.sixProtocol=t.siliconSepolia=void 0,t.unichain=t.ultronTestnet=t.ultron=t.ultraTestnet=t.ultra=t.ubiq=t.tronShasta=t.tronNile=t.tron=t.treasureTopaz=t.treasure=t.tomb=t.tiktrixTestnet=t.thunderTestnet=t.thunderCore=t.thetaTestnet=t.theta=t.that=t.thaiChain=t.ternoa=t.tenet=t.tempoTestnet=t.tempoModerato=t.tempoLocalnet=t.tempoDevnet=t.tempoMainnet=t.tempo=t.telosTestnet=t.telos=t.telcoinTestnet=t.teaSepolia=t.taraxaTestnet=t.taraxa=t.taikoTestnetSepolia=t.taikoKatla=t.taikoJolnir=t.taikoHoodi=t.taikoHekla=t.taiko=t.tacSPB=t.tac=t.syscoinTestnet=t.syscoin=t.swissdlt=t.swellchainTestnet=t.swellchain=t.swanSaturnTestnet=t.swanProximaTestnet=t.swan=t.surgeTestnet=void 0,t.yooldoVerseTestnet=t.yooldoVerse=t.ynxTestnet=t.xrSepolia=t.xrplevmTestnet=t.xrplevmDevnet=t.xrplevm=t.xrOne=t.xpla=t.xphereTestnet=t.xphereMainnet=t.xoneTestnet=t.xoneMainnet=t.xLayerTestnet=t.x1Testnet=t.xLayer=t.xgr=t.xdcTestnet=t.xdc=t.xaiTestnet=t.xai=t.worldLand=t.worldchainSepolia=t.worldchain=t.wmcTestnet=t.whitechainTestnet=t.whitechainSepolia=t.whitechain=t.westendAssetHub=t.wemixTestnet=t.wemix=t.weaveVMAlphanet=t.wanchainTestnet=t.wanchain=t.visionTestnet=t.vision=t.victionTestnet=t.viction=t.velas=t.vechain=t.vanar=t.vanaMoksha=t.vana=t.valygoSmartchain=t.valygoNft=t.unreal=t.uniqueQuartz=t.uniqueOpal=t.unique=t.unichainSepolia=void 0,t.zoraTestnet=t.zoraSepolia=t.zora=t.zkXPLATestnet=t.zkXPLA=t.zksyncSepoliaTestnet=t.zkSyncSepoliaTestnet=t.zksyncLocalNode=t.zkSyncLocalNode=t.zksyncLocalHyperchainL1=t.zksyncLocalHyperchain=t.zksyncLocalCustomHyperchain=t.zksyncInMemoryNode=t.zkSyncInMemoryNode=t.zksync=t.zkSync=t.zkLinkNovaSepoliaTestnet=t.zkLinkNova=t.zkFairTestnet=t.zkFair=t.zircuitGarfieldTestnet=t.zircuit=t.zilliqaTestnet=t.zilliqa=t.zhejiang=t.zetachainAthensTestnet=t.zetachain=t.zeroNetwork=t.zeniq=t.zenchainTestnet=void 0;var n=r(70068);Object.defineProperty(t,"zeroG",{enumerable:!0,get:function(){return n.zeroG}});var i=r(44443);Object.defineProperty(t,"zeroGGalileoTestnet",{enumerable:!0,get:function(){return i.zeroGGalileoTestnet}});var a=r(77399);Object.defineProperty(t,"zeroGMainnet",{enumerable:!0,get:function(){return a.zeroGMainnet}});var o=r(91798);Object.defineProperty(t,"zeroGTestnet",{enumerable:!0,get:function(){return o.zeroGTestnet}});var s=r(1949);Object.defineProperty(t,"fireChain",{enumerable:!0,get:function(){return s.fireChain}});var l=r(12831);Object.defineProperty(t,"abey",{enumerable:!0,get:function(){return l.abey}});var c=r(2104);Object.defineProperty(t,"abstract",{enumerable:!0,get:function(){return c.abstract}});var u=r(4887);Object.defineProperty(t,"abstractTestnet",{enumerable:!0,get:function(){return u.abstractTestnet}});var d=r(38929);Object.defineProperty(t,"acala",{enumerable:!0,get:function(){return d.acala}});var f=r(39959);Object.defineProperty(t,"acria",{enumerable:!0,get:function(){return f.acria}});var p=r(53835);Object.defineProperty(t,"adf",{enumerable:!0,get:function(){return p.adf}});var h=r(46685);Object.defineProperty(t,"adi",{enumerable:!0,get:function(){return h.adi}});var m=r(50413);Object.defineProperty(t,"agungTestnet",{enumerable:!0,get:function(){return m.agungTestnet}});var b=r(57318);Object.defineProperty(t,"aioz",{enumerable:!0,get:function(){return b.aioz}});var y=r(57172);Object.defineProperty(t,"alephZero",{enumerable:!0,get:function(){return y.alephZero}});var g=r(34057);Object.defineProperty(t,"alephZeroTestnet",{enumerable:!0,get:function(){return g.alephZeroTestnet}});var v=r(89446);Object.defineProperty(t,"alienx",{enumerable:!0,get:function(){return v.alienx}});var w=r(23154);Object.defineProperty(t,"alienxHalTestnet",{enumerable:!0,get:function(){return w.alienxHalTestnet}});var E=r(12087);Object.defineProperty(t,"alpenTestnet",{enumerable:!0,get:function(){return E.alpenTestnet}});var x=r(1873);Object.defineProperty(t,"ancient8",{enumerable:!0,get:function(){return x.ancient8}});var A=r(54676);Object.defineProperty(t,"ancient8Sepolia",{enumerable:!0,get:function(){return A.ancient8Sepolia}});var k=r(77319);Object.defineProperty(t,"anvil",{enumerable:!0,get:function(){return k.anvil}});var P=r(86688);Object.defineProperty(t,"apeChain",{enumerable:!0,get:function(){return P.apeChain}});var C=r(31163);Object.defineProperty(t,"apexTestnet",{enumerable:!0,get:function(){return C.apexTestnet}});var T=r(31411);Object.defineProperty(t,"apollo",{enumerable:!0,get:function(){return T.apollo}});var _=r(44003);Object.defineProperty(t,"arbitrum",{enumerable:!0,get:function(){return _.arbitrum}});var O=r(35594);Object.defineProperty(t,"arbitrumGoerli",{enumerable:!0,get:function(){return O.arbitrumGoerli}});var S=r(58019);Object.defineProperty(t,"arbitrumNova",{enumerable:!0,get:function(){return S.arbitrumNova}});var I=r(19579);Object.defineProperty(t,"arbitrumSepolia",{enumerable:!0,get:function(){return I.arbitrumSepolia}});var B=r(55975);Object.defineProperty(t,"arc",{enumerable:!0,get:function(){return B.arc}});var j=r(41002);Object.defineProperty(t,"arcTestnet",{enumerable:!0,get:function(){return j.arcTestnet}});var M=r(96181);Object.defineProperty(t,"arenaz",{enumerable:!0,get:function(){return M.arenaz}});var R=r(52806);Object.defineProperty(t,"areonNetwork",{enumerable:!0,get:function(){return R.areonNetwork}});var N=r(25388);Object.defineProperty(t,"areonNetworkTestnet",{enumerable:!0,get:function(){return N.areonNetworkTestnet}});var U=r(91818);Object.defineProperty(t,"areum",{enumerable:!0,get:function(){return U.areum}});var z=r(73919);Object.defineProperty(t,"artelaTestnet",{enumerable:!0,get:function(){return z.artelaTestnet}});var D=r(84291);Object.defineProperty(t,"arthera",{enumerable:!0,get:function(){return D.arthera}});var F=r(8590);Object.defineProperty(t,"artheraTestnet",{enumerable:!0,get:function(){return F.artheraTestnet}});var L=r(90774);Object.defineProperty(t,"assetChain",{enumerable:!0,get:function(){return L.assetChain}});var H=r(71861);Object.defineProperty(t,"assetChainTestnet",{enumerable:!0,get:function(){return H.assetChainTestnet}});var G=r(75271);Object.defineProperty(t,"astar",{enumerable:!0,get:function(){return G.astar}});var q=r(62311);Object.defineProperty(t,"astarZkEVM",{enumerable:!0,get:function(){return q.astarZkEVM}});var $=r(43801);Object.defineProperty(t,"astarZkyoto",{enumerable:!0,get:function(){return $.astarZkyoto}});var K=r(23217);Object.defineProperty(t,"atletaOlympia",{enumerable:!0,get:function(){return K.atletaOlympia}});var Z=r(70348);Object.defineProperty(t,"aurora",{enumerable:!0,get:function(){return Z.aurora}});var V=r(17091);Object.defineProperty(t,"auroraTestnet",{enumerable:!0,get:function(){return V.auroraTestnet}});var W=r(74281);Object.defineProperty(t,"auroria",{enumerable:!0,get:function(){return W.auroria}});var Y=r(73081);Object.defineProperty(t,"autheoTestnet",{enumerable:!0,get:function(){return Y.autheoTestnet}});var X=r(60383);Object.defineProperty(t,"avalanche",{enumerable:!0,get:function(){return X.avalanche}});var J=r(27785);Object.defineProperty(t,"avalancheFuji",{enumerable:!0,get:function(){return J.avalancheFuji}});var Q=r(57103);Object.defineProperty(t,"b3",{enumerable:!0,get:function(){return Q.b3}});var ee=r(1049);Object.defineProperty(t,"b3Sepolia",{enumerable:!0,get:function(){return ee.b3Sepolia}});var et=r(99703);Object.defineProperty(t,"bahamut",{enumerable:!0,get:function(){return et.bahamut}});var er=r(7629);Object.defineProperty(t,"base",{enumerable:!0,get:function(){return er.base}}),Object.defineProperty(t,"basePreconf",{enumerable:!0,get:function(){return er.basePreconf}});var en=r(64390);Object.defineProperty(t,"basecampTestnet",{enumerable:!0,get:function(){return en.basecampTestnet}});var ei=r(92798);Object.defineProperty(t,"baseGoerli",{enumerable:!0,get:function(){return ei.baseGoerli}});var ea=r(36488);Object.defineProperty(t,"baseSepolia",{enumerable:!0,get:function(){return ea.baseSepolia}}),Object.defineProperty(t,"baseSepoliaPreconf",{enumerable:!0,get:function(){return ea.baseSepoliaPreconf}});var eo=r(42226);Object.defineProperty(t,"battlechain",{enumerable:!0,get:function(){return eo.battlechain}});var es=r(24646);Object.defineProperty(t,"battlechainTestnet",{enumerable:!0,get:function(){return es.battlechainTestnet}});var el=r(27716);Object.defineProperty(t,"beam",{enumerable:!0,get:function(){return el.beam}});var ec=r(34492);Object.defineProperty(t,"beamTestnet",{enumerable:!0,get:function(){return ec.beamTestnet}});var eu=r(26617);Object.defineProperty(t,"bearNetworkChainMainnet",{enumerable:!0,get:function(){return eu.bearNetworkChainMainnet}});var ed=r(97804);Object.defineProperty(t,"bearNetworkChainTestnet",{enumerable:!0,get:function(){return ed.bearNetworkChainTestnet}});var ef=r(7006);Object.defineProperty(t,"berachain",{enumerable:!0,get:function(){return ef.berachain}});var ep=r(15141);Object.defineProperty(t,"berachainBepolia",{enumerable:!0,get:function(){return ep.berachainBepolia}});var eh=r(73424);Object.defineProperty(t,"berachainTestnet",{enumerable:!0,get:function(){return eh.berachainTestnet}});var em=r(12438);Object.defineProperty(t,"berachainTestnetbArtio",{enumerable:!0,get:function(){return em.berachainTestnetbArtio}});var eb=r(11457);Object.defineProperty(t,"bevmMainnet",{enumerable:!0,get:function(){return eb.bevmMainnet}});var ey=r(22418);Object.defineProperty(t,"bifrost",{enumerable:!0,get:function(){return ey.bifrost}});var eg=r(74395);Object.defineProperty(t,"birdlayer",{enumerable:!0,get:function(){return eg.birdlayer}});var ev=r(73653);Object.defineProperty(t,"bitgert",{enumerable:!0,get:function(){return ev.bitgert}});var ew=r(53375);Object.defineProperty(t,"bitkub",{enumerable:!0,get:function(){return ew.bitkub}});var eE=r(47935);Object.defineProperty(t,"bitkubTestnet",{enumerable:!0,get:function(){return eE.bitkubTestnet}});var ex=r(6829);Object.defineProperty(t,"bitlayer",{enumerable:!0,get:function(){return ex.bitlayer}});var eA=r(27947);Object.defineProperty(t,"bitlayerTestnet",{enumerable:!0,get:function(){return eA.bitlayerTestnet}});var ek=r(96729);Object.defineProperty(t,"bitrock",{enumerable:!0,get:function(){return ek.bitrock}});var eP=r(54722);Object.defineProperty(t,"bitTorrent",{enumerable:!0,get:function(){return eP.bitTorrent}});var eC=r(26918);Object.defineProperty(t,"bitTorrentTestnet",{enumerable:!0,get:function(){return eC.bitTorrentTestnet}});var eT=r(88026);Object.defineProperty(t,"blast",{enumerable:!0,get:function(){return eT.blast}});var e_=r(82800);Object.defineProperty(t,"blastSepolia",{enumerable:!0,get:function(){return e_.blastSepolia}});var eO=r(8423);Object.defineProperty(t,"bob",{enumerable:!0,get:function(){return eO.bob}});var eS=r(5724);Object.defineProperty(t,"boba",{enumerable:!0,get:function(){return eS.boba}});var eI=r(52349);Object.defineProperty(t,"bobaSepolia",{enumerable:!0,get:function(){return eI.bobaSepolia}});var eB=r(3846);Object.defineProperty(t,"bobSepolia",{enumerable:!0,get:function(){return eB.bobSepolia}});var ej=r(22979);Object.defineProperty(t,"boolBetaMainnet",{enumerable:!0,get:function(){return ej.boolBetaMainnet}});var eM=r(68780);Object.defineProperty(t,"botanix",{enumerable:!0,get:function(){return eM.botanix}});var eR=r(92755);Object.defineProperty(t,"botanixTestnet",{enumerable:!0,get:function(){return eR.botanixTestnet}});var eN=r(4579);Object.defineProperty(t,"bounceBit",{enumerable:!0,get:function(){return eN.bounceBit}});var eU=r(80299);Object.defineProperty(t,"bounceBitTestnet",{enumerable:!0,get:function(){return eU.bounceBitTestnet}});var ez=r(84536);Object.defineProperty(t,"bronos",{enumerable:!0,get:function(){return ez.bronos}});var eD=r(14678);Object.defineProperty(t,"bronosTestnet",{enumerable:!0,get:function(){return eD.bronosTestnet}});var eF=r(30411);Object.defineProperty(t,"bsc",{enumerable:!0,get:function(){return eF.bsc}});var eL=r(36095);Object.defineProperty(t,"bscGreenfield",{enumerable:!0,get:function(){return eL.bscGreenfield}});var eH=r(94912);Object.defineProperty(t,"bscTestnet",{enumerable:!0,get:function(){return eH.bscTestnet}});var eG=r(73595);Object.defineProperty(t,"bsquared",{enumerable:!0,get:function(){return eG.bsquared}});var eq=r(5952);Object.defineProperty(t,"bsquaredTestnet",{enumerable:!0,get:function(){return eq.bsquaredTestnet}});var e$=r(60665);Object.defineProperty(t,"btr",{enumerable:!0,get:function(){return e$.btr}});var eK=r(27582);Object.defineProperty(t,"btrTestnet",{enumerable:!0,get:function(){return eK.btrTestnet}});var eZ=r(69166);Object.defineProperty(t,"bxn",{enumerable:!0,get:function(){return eZ.bxn}});var eV=r(95386);Object.defineProperty(t,"bxnTestnet",{enumerable:!0,get:function(){return eV.bxnTestnet}});var eW=r(55895);Object.defineProperty(t,"cannon",{enumerable:!0,get:function(){return eW.cannon}});var eY=r(78227);Object.defineProperty(t,"canto",{enumerable:!0,get:function(){return eY.canto}});var eX=r(75179);Object.defineProperty(t,"celo",{enumerable:!0,get:function(){return eX.celo}});var eJ=r(73411);Object.defineProperty(t,"celoAlfajores",{enumerable:!0,get:function(){return eJ.celoAlfajores}});var eQ=r(69060);Object.defineProperty(t,"celoSepolia",{enumerable:!0,get:function(){return eQ.celoSepolia}});var e0=r(2750);Object.defineProperty(t,"chang",{enumerable:!0,get:function(){return e0.chang}});var e1=r(45662);
111Object.defineProperty(t,"chiliz",{enumerable:!0,get:function(){return e1.chiliz}});var e2=r(77070);Object.defineProperty(t,"chips",{enumerable:!0,get:function(){return e2.chips}});var e3=r(91697);Object.defineProperty(t,"citrate",{enumerable:!0,get:function(){return e3.citrate}});var e6=r(40235);Object.defineProperty(t,"citrea",{enumerable:!0,get:function(){return e6.citrea}});var e5=r(52118);Object.defineProperty(t,"citreaTestnet",{enumerable:!0,get:function(){return e5.citreaTestnet}});var e8=r(56542);Object.defineProperty(t,"classic",{enumerable:!0,get:function(){return e8.classic}});var e7=r(93565);Object.defineProperty(t,"codex",{enumerable:!0,get:function(){return e7.codex}});var e4=r(60398);Object.defineProperty(t,"codexTestnet",{enumerable:!0,get:function(){return e4.codexTestnet}});var e9=r(60098);Object.defineProperty(t,"coinbit",{enumerable:!0,get:function(){return e9.coinbit}});var te=r(44543);Object.defineProperty(t,"coinex",{enumerable:!0,get:function(){return te.coinex}});var tt=r(93831);Object.defineProperty(t,"confluxESpace",{enumerable:!0,get:function(){return tt.confluxESpace}});var tr=r(11411);Object.defineProperty(t,"confluxESpaceTestnet",{enumerable:!0,get:function(){return tr.confluxESpaceTestnet}});var tn=r(75156);Object.defineProperty(t,"coreDao",{enumerable:!0,get:function(){return tn.coreDao}});var ti=r(2068);Object.defineProperty(t,"coreTestnet1",{enumerable:!0,get:function(){return ti.coreTestnet1}});var ta=r(20946);Object.defineProperty(t,"coreTestnet2",{enumerable:!0,get:function(){return ta.coreTestnet2}});var to=r(37824);Object.defineProperty(t,"corn",{enumerable:!0,get:function(){return to.corn}});var ts=r(59710);Object.defineProperty(t,"cornTestnet",{enumerable:!0,get:function(){return ts.cornTestnet}});var tl=r(7379);Object.defineProperty(t,"cpchain",{enumerable:!0,get:function(){return tl.cpchain}});var tc=r(51542);Object.defineProperty(t,"crab",{enumerable:!0,get:function(){return tc.crab}});var tu=r(93391);Object.defineProperty(t,"creatorTestnet",{enumerable:!0,get:function(){return tu.creatorTestnet}});var td=r(3354);Object.defineProperty(t,"creditCoin3Devnet",{enumerable:!0,get:function(){return td.creditCoin3Devnet}});var tf=r(77874);Object.defineProperty(t,"creditCoin3Mainnet",{enumerable:!0,get:function(){return tf.creditCoin3Mainnet}});var tp=r(77974);Object.defineProperty(t,"creditCoin3Testnet",{enumerable:!0,get:function(){return tp.creditCoin3Testnet}});var th=r(40746);Object.defineProperty(t,"cronos",{enumerable:!0,get:function(){return th.cronos}});var tm=r(14555);Object.defineProperty(t,"cronosTestnet",{enumerable:!0,get:function(){return tm.cronosTestnet}});var tb=r(32182);Object.defineProperty(t,"cronoszkEVM",{enumerable:!0,get:function(){return tb.cronoszkEVM}});var ty=r(32048);Object.defineProperty(t,"cronoszkEVMTestnet",{enumerable:!0,get:function(){return ty.cronoszkEVMTestnet}});var tg=r(921);Object.defineProperty(t,"crossbell",{enumerable:!0,get:function(){return tg.crossbell}});var tv=r(28397);Object.defineProperty(t,"crossfi",{enumerable:!0,get:function(){return tv.crossfi}});var tw=r(86945);Object.defineProperty(t,"curtis",{enumerable:!0,get:function(){return tw.curtis}});var tE=r(23567);Object.defineProperty(t,"cyber",{enumerable:!0,get:function(){return tE.cyber}});var tx=r(2996);Object.defineProperty(t,"cyberTestnet",{enumerable:!0,get:function(){return tx.cyberTestnet}});var tA=r(77112);Object.defineProperty(t,"dailyNetwork",{enumerable:!0,get:function(){return tA.dailyNetwork}});var tk=r(46287);Object.defineProperty(t,"dailyNetworkTestnet",{enumerable:!0,get:function(){return tk.dailyNetworkTestnet}});var tP=r(85221);Object.defineProperty(t,"darwinia",{enumerable:!0,get:function(){return tP.darwinia}});var tC=r(3385);Object.defineProperty(t,"datahavenTestnet",{enumerable:!0,get:function(){return tC.datahavenTestnet}});var tT=r(80941);Object.defineProperty(t,"dbkchain",{enumerable:!0,get:function(){return tT.dbkchain}});var t_=r(86892);Object.defineProperty(t,"dchain",{enumerable:!0,get:function(){return t_.dchain}});var tO=r(140);Object.defineProperty(t,"dchainTestnet",{enumerable:!0,get:function(){return tO.dchainTestnet}});var tS=r(97666);Object.defineProperty(t,"defichainEvm",{enumerable:!0,get:function(){return tS.defichainEvm}});var tI=r(61589);Object.defineProperty(t,"defichainEvmTestnet",{enumerable:!0,get:function(){return tI.defichainEvmTestnet}});var tB=r(23289);Object.defineProperty(t,"defiOracleMetaMainnet",{enumerable:!0,get:function(){return tB.defiOracleMetaMainnet}});var tj=r(75608);Object.defineProperty(t,"degen",{enumerable:!0,get:function(){return tj.degen}});var tM=r(5676);Object.defineProperty(t,"dfk",{enumerable:!0,get:function(){return tM.dfk}});var tR=r(58727);Object.defineProperty(t,"diode",{enumerable:!0,get:function(){return tR.diode}});var tN=r(14752);Object.defineProperty(t,"disChain",{enumerable:!0,get:function(){return tN.disCh
111ain}});var tU=r(39086);Object.defineProperty(t,"dodochainTestnet",{enumerable:!0,get:function(){return tU.dodochainTestnet}});var tz=r(54990);Object.defineProperty(t,"dogechain",{enumerable:!0,get:function(){return tz.dogechain}});var tD=r(20207);Object.defineProperty(t,"domaTestnet",{enumerable:!0,get:function(){return tD.domaTestnet}});var tF=r(80170);Object.defineProperty(t,"donatuz",{enumerable:!0,get:function(){return tF.donatuz}});var tL=r(17786);Object.defineProperty(t,"dosChain",{enumerable:!0,get:function(){return tL.dosChain}});var tH=r(6735);Object.defineProperty(t,"dosChainTestnet",{enumerable:!0,get:function(){return tH.dosChainTestnet}});var tG=r(83117);Object.defineProperty(t,"dreyerxMainnet",{enumerable:!0,get:function(){return tG.dreyerxMainnet}});var tq=r(35510);Object.defineProperty(t,"dreyerxTestnet",{enumerable:!0,get:function(){return tq.dreyerxTestnet}});var t$=r(48195);Object.defineProperty(t,"dustboyIoT",{enumerable:!0,get:function(){return t$.dustboyIoT}});var tK=r(38442);Object.defineProperty(t,"dymension",{enumerable:!0,get:function(){return tK.dymension}});var tZ=r(16947);Object.defineProperty(t,"eden",{enumerable:!0,get:function(){return tZ.eden}});var tV=r(60205);Object.defineProperty(t,"edexa",{enumerable:!0,get:function(){return tV.edexa}});var tW=r(11097);Object.defineProperty(t,"edexaTestnet",{enumerable:!0,get:function(){return tW.edexaTestnet}});var tY=r(73590);Object.defineProperty(t,"edgeless",{enumerable:!0,get:function(){return tY.edgeless}});var tX=r(65986);Object.defineProperty(t,"edgelessTestnet",{enumerable:!0,get:function(){return tX.edgelessTestnet}});var tJ=r(11768);Object.defineProperty(t,"edgeware",{enumerable:!0,get:function(){return tJ.edgeware}});var tQ=r(24051);Object.defineProperty(t,"edgewareTestnet",{enumerable:!0,get:function(){return tQ.edgewareTestnet}});var t0=r(91605);Object.defineProperty(t,"eduChain",{enumerable:!0,get:function(){return t0.eduChain}});var t1=r(10782);Object.defineProperty(t,"eduChainTestnet",{enumerable:!0,get:function(){return t1.eduChainTestnet}});var t2=r(97285);Object.defineProperty(t,"elastos",{enumerable:!0,get:function(){return t2.elastos}});var t3=r(12844);Object.defineProperty(t,"elastosTestnet",{enumerable:!0,get:function(){return t3.elastosTestnet}});var t6=r(94841);Object.defineProperty(t,"electroneum",{enumerable:!0,get:function(){return t6.electroneum}});var t5=r(80335);Object.defineProperty(t,"electroneumTestnet",{enumerable:!0,get:function(){return t5.electroneumTestnet}});var t8=r(34579);Object.defineProperty(t,"elysiumTestnet",{enumerable:!0,get:function(){return t8.elysiumTestnet}});var t7=r(0);Object.defineProperty(t,"energy",{enumerable:!0,get:function(){return t7.energy}});var t4=r(94558);Object.defineProperty(t,"eni",{enumerable:!0,get:function(){return t4.eni}});var t9=r(48656);Object.defineProperty(t,"eniTestnet",{enumerable:!0,get:function(){return t9.eniTestnet}});var re=r(72575);Object.defineProperty(t,"enuls",{enumerable:!0,get:function(){return re.enuls}});var rt=r(97987);Object.defineProperty(t,"eon",{enumerable:!0,get:function(){return rt.eon}});var rr=r(29073);Object.defineProperty(t,"eos",{enumerable:!0,get:function(){return rr.eos}});var rn=r(58442);Object.defineProperty(t,"eosTestnet",{enumerable:!0,get:function(){return rn.eosTestnet}});var ri=r(79893);Object.defineProperty(t,"eteria",{enumerable:!0,get:function(){return ri.eteria}});var ra=r(46083);Object.defineProperty(t,"etherlink",{enumerable:!0,get:function(){return ra.etherlink}});var ro=r(431);Object.defineProperty(t,"etherlinkShadownetTestnet",{enumerable:!0,get:function(){return ro.etherlinkShadownetTestnet}});var rs=r(58201);Object.defineProperty(t,"etherlinkTestnet",{enumerable:!0,get:function(){return rs.etherlinkTestnet}});var rl=r(94407);Object.defineProperty(t,"ethernity",{enumerable:!0,get:function(){return rl.ethernity}});var rc=r(70594);Object.defineProperty(t,"etp",{enumerable:!0,get:function(){return rc.etp}});var ru=r(55762);Object.defineProperty(t,"evmos",{enumerable:!0,get:function(){return ru.evmos}});var rd=r(36490);Object.defineProperty(t,"evmosTestnet",{enumerable:!0,get:function(){return rd.evmosTestnet}});var rf=r(1130);Object.defineProperty(t,"excelonMainnet",{enumerable:!0,get:function(){return rf.excelonMainnet}});var rp=r(15388);Object.defineProperty(t,"expanse",{enumerable:!0,get:function(){return rp.expanse}});var rh=r(47580);Object.defineProperty(t,"exsat",{enumerable:!0,get:function(){return rh.exsat}});var rm=r(24430);Object.defineProperty(t,"exsatTestnet",{enumerable:!0,get:function(){return rm.exsatTestnet}});
111var rb=r(68026);Object.defineProperty(t,"fantom",{enumerable:!0,get:function(){return rb.fantom}});var ry=r(16992);Object.defineProperty(t,"fantomSonicTestnet",{enumerable:!0,get:function(){return ry.fantomSonicTestnet}});var rg=r(98634);Object.defineProperty(t,"fantomTestnet",{enumerable:!0,get:function(){return rg.fantomTestnet}});var rv=r(216);Object.defineProperty(t,"fibo",{enumerable:!0,get:function(){return rv.fibo}});var rw=r(83396);Object.defineProperty(t,"filecoin",{enumerable:!0,get:function(){return rw.filecoin}});var rE=r(17100);Object.defineProperty(t,"filecoinCalibration",{enumerable:!0,get:function(){return rE.filecoinCalibration}});var rx=r(41940);Object.defineProperty(t,"filecoinHyperspace",{enumerable:!0,get:function(){return rx.filecoinHyperspace}});var rA=r(6457);Object.defineProperty(t,"flame",{enumerable:!0,get:function(){return rA.flame}});var rk=r(61804);Object.defineProperty(t,"flare",{enumerable:!0,get:function(){return rk.flare}});var rP=r(34957);Object.defineProperty(t,"flareTestnet",{enumerable:!0,get:function(){return rP.flareTestnet}});var rC=r(61596);Object.defineProperty(t,"flowMainnet",{enumerable:!0,get:function(){return rC.flowMainnet}});var rT=r(14807);Object.defineProperty(t,"flowPreviewnet",{enumerable:!0,get:function(){return rT.flowPreviewnet}});var r_=r(78248);Object.defineProperty(t,"flowTestnet",{enumerable:!0,get:function(){return r_.flowTestnet}});var rO=r(51630);Object.defineProperty(t,"fluence",{enumerable:!0,get:function(){return rO.fluence}});var rS=r(12699);Object.defineProperty(t,"fluenceStage",{enumerable:!0,get:function(){return rS.fluenceStage}});var rI=r(81893);Object.defineProperty(t,"fluenceTestnet",{enumerable:!0,get:function(){return rI.fluenceTestnet}});var rB=r(1071);Object.defineProperty(t,"fluent",{enumerable:!0,get:function(){return rB.fluent}});var rj=r(66232);Object.defineProperty(t,"fluentDevnet",{enumerable:!0,get:function(){return rj.fluentDevnet}});var rM=r(51270);Object.defineProperty(t,"fluentTestnet",{enumerable:!0,get:function(){return rM.fluentTestnet}});var rR=r(74773);Object.defineProperty(t,"form",{enumerable:!0,get:function(){return rR.form}});var rN=r(61699);Object.defineProperty(t,"forma",{enumerable:!0,get:function(){return rN.forma}});
111var rU=r(67379);Object.defineProperty(t,"formTestnet",{enumerable:!0,get:function(){return rU.formTestnet}});var rz=r(4379);Object.defineProperty(t,"forta",{enumerable:!0,get:function(){return rz.forta}});var rD=r(7507);Object.defineProperty(t,"foundry",{enumerable:!0,get:function(){return rD.foundry}});var rF=r(94273);Object.defineProperty(t,"fraxtal",{enumerable:!0,get:function(){return rF.fraxtal}});var rL=r(99618);Object.defineProperty(t,"fraxtalTestnet",{enumerable:!0,get:function(){return rL.fraxtalTestnet}});var rH=r(50956);Object.defineProperty(t,"funkiMainnet",{enumerable:!0,get:function(){return rH.funkiMainnet}});var rG=r(56197);Object.defineProperty(t,"funkiSepolia",{enumerable:!0,get:function(){return rG.funkiSepolia}});var rq=r(65991);Object.defineProperty(t,"fuse",{enumerable:!0,get:function(){return rq.fuse}});var r$=r(95385);Object.defineProperty(t,"fuseSparknet",{enumerable:!0,get:function(){return r$.fuseSparknet}});var rK=r(54739);Object.defineProperty(t,"fusion",{enumerable:!0,get:function(){return rK.fusion}});var rZ=r(49624);Object.defineProperty(t,"fusionTestnet",{enumerable:!0,get:function(){return rZ.fusionTestnet}});var rV=r(61729);Object.defineProperty(t,"garnet",{enumerable:!0,get:function(){return rV.garnet}});var rW=r(70975);Object.defineProperty(t,"gatechain",{enumerable:!0,get:function(){return rW.gatechain}});var rY=r(83094);Object.defineProperty(t,"geist",{enumerable:!0,get:function(){return rY.geist}});var rX=r(27452);Object.defineProperty(t,"genesys",{enumerable:!0,get:function(){return rX.genesys}});var rJ=r(76961);Object.defineProperty(t,"gensyn",{enumerable:!0,get:function(){return rJ.gensyn}});var rQ=r(85049);Object.defineProperty(t,"giwaSepolia",{enumerable:!0,get:function(){return rQ.giwaSepolia}}),Object.defineProperty(t,"giwaSepoliaPreconf",{enumerable:!0,get:function(){return rQ.giwaSepoliaPreconf}});var r0=r(35140);Object.defineProperty(t,"glideL1Protocol",{enumerable:!0,get:function(){return r0.glideL1Protocol}});var r1=r(30298);Object.defineProperty(t,"glideL2Protocol",{enumerable:!0,get:function(){return r1.glideL2Protocol}});var r2=r(91566);Object.defineProperty(t,"gnosis",{enumerable:!0,get:function(){return r2.gnosis}});var r3=r(19033);Object.defineProperty(t,"gnosisChiado",{enumerable:!0,get:function(){return r3.gnosisChiado}});var r6=r(55407);Object.defineProperty(t,"goat",{enumerable:!0,get:function(){return r6.goat}});var r5=r(66854);Object.defineProperty(t,"gobi",{enumerable:!0,get:function(){return r5.gobi}});var r8=r(41923);Object.defineProperty(t,"goChain",{enumerable:!0,get:function(){return r8.goChain}});var r7=r(86653);Object.defineProperty(t,"godwoken",{enumerable:!0,get:function(){return r7.godwoken}});var r4=r(54156);Object.defineProperty(t,"goerli",{enumerable:!0,get:function(){return r4.goerli}});var r9=r(16463);Object.defineProperty(t,"graphite",{enumerable:!0,get:function(){return r9.graphite}});var ne=r(41884);Object.defineProperty(t,"graphiteTestnet",{enumerable:!0,get:function(){return ne.graphiteTestnet}});var nt=r(5459);Object.defineProperty(t,"grav",{enumerable:!0,get:function(){return nt.grav}});var nr=r(41771);Object.defineProperty(t,"gravity",{enumerable:!0,get:function(){return nr.gravity}});var nn=r(82375);Object.defineProperty(t,"gunz",{enumerable:!0,get:function(){return nn.gunz}});var ni=r(68252);Object.defineProperty(t,"guruNetwork",{enumerable:!0,get:function(){return ni.guruNetwork}});var na=r(93159);Object.defineProperty(t,"guruTestnet",{enumerable:!0,get:function(){return na.guruTestnet}});var no=r(10220);Object.defineProperty(t,"ham",{enumerable:!0,get:function(){return no.ham}});var ns=r(89924);Object.defineProperty(t,"happychainTestnet",{enumerable:!0,get:function(){return ns.happychainTestnet}});var nl=r(71487);Object.defineProperty(t,"haqqMainnet",{enumerable:!0,get:function(){return nl.haqqMainnet}});var nc=r(61163);Object.defineProperty(t,"haqqTestedge2",{enumerable:!0,get:function(){return nc.haqqTestedge2}});var nu=r(92643);Object.defineProperty(t,"hardhat",{enumerable:!0,get:function(){return nu.hardhat}});var nd=r(44717);Object.defineProperty(t,"harmonyOne",{enumerable:!0,get:function(){return nd.harmonyOne}});var nf=r(96908);Object.defineProperty(t,"hashkey",{enumerable:!0,get:function(){return nf.hashkey}});var np=r(46175);Object.defineProperty(t,"hashkeyTestnet",{enumerable:!0,get:function(){return np.hashkeyTestnet}});var nh=r(47646);Object.defineProperty(t,"hausTestnet",{enumerable:!0,get:function(){return nh.hausTestnet}});var nm=r(68582);Object.defineProperty(t,"haustTestnet",{enumerable:!0,get:function(){return nm.haustTestnet}});var nb=r(52236);Object.defineProperty(t,"hedera",{enumerable:!0,get:function(){return nb.hedera}});var ny=r(93342);Object.defineProperty(t,"hederaPreviewnet",{enumerable:!0,get:function(){return ny.hederaPreviewnet}});var ng=r(74903);Object.defineProperty(t,"hederaTestnet",{enumerable:!0,get:function(){return ng.hederaTestnet}});var nv=r(48833);Object.defineProperty(t,"hela",{enumerable:!0,get:function(){return nv.hela}});var nw=r(39817);Object.defineProperty(t,"heliosTestnet",{enumerable:!0,get:function(){return nw.heliosTestnet}});var nE=r(54032);Object.defineProperty(t,"hemi",{enumerable:!0,get:function(){return nE.hemi}});var nx=r(20976);Object.defineProperty(t,"hemiSepolia",{enumerable:!0,get:function(){return nx.hemiSepolia}});var nA=r(81571);Object.defineProperty(t,"henesys",{enumerable:!0,get:function(){return nA.henesys}});var nk=r(68418);Object.defineProperty(t,"holesky",{enumerable:!0,get:function(){return nk.holesky}});var nP=r(17166);Object.defineProperty(t,"hoodi",{enumerable:!0,get:function(){return nP.hoodi}});var nC=r(51430);Object.defineProperty(t,"horizenTestnet",{enumerable:!0,get:function(){return nC.horizenTestnet}});var nT=r(60257);Object.defineProperty(t,"hpb",{enumerable:!0,get:function(){return nT.hpb}});var n_=r(76511);Object.defineProperty(t,"hpp",{enumerable:!0,get:function(){return n_.hpp}});var nO=r(75933);Object.defineProperty(t,"hppSepolia",{enumerable:!0,get:function(){return nO.hppSepolia}});
111var nS=r(68146);Object.defineProperty(t,"huddle01Mainnet",{enumerable:!0,get:function(){return nS.huddle01Mainnet}});var nI=r(65344);Object.defineProperty(t,"huddle01Testnet",{enumerable:!0,get:function(){return nI.huddle01Testnet}});var nB=r(69759);Object.defineProperty(t,"humanity",{enumerable:!0,get:function(){return nB.humanity}});var nj=r(88577);Object.defineProperty(t,"humanityTestnet",{enumerable:!0,get:function(){return nj.humanityTestnet}});var nM=r(39965);Object.defineProperty(t,"humanode",{enumerable:!0,get:function(){return nM.humanode}});var nR=r(45075);Object.defineProperty(t,"humanodeTestnet5",{enumerable:!0,get:function(){return nR.humanodeTestnet5}});var nN=r(78983);Object.defineProperty(t,"hychain",{enumerable:!0,get:function(){return nN.hychain}});var nU=r(65012);Object.defineProperty(t,"hychainTestnet",{enumerable:!0,get:function(){return nU.hychainTestnet}});var nz=r(56142);Object.defineProperty(t,"hyperEvm",{enumerable:!0,get:function(){return nz.hyperEvm}}),Object.defineProperty(t,"hyperliquid",{enumerable:!0,get:function(){return nz.hyperEvm}});var nD=r(25409);Object.defineProperty(t,"hyperliquidEvmTestnet",{enumerable:!0,get:function(){return nD.hyperliquidEvmTestnet}});var nF=r(19612);Object.defineProperty(t,"icbNetwork",{enumerable:!0,get:function(){return nF.icbNetwork}});var nL=r(36527);Object.defineProperty(t,"idchain",{enumerable:!0,get:function(){return nL.idchain}});var nH=r(38449);Object.defineProperty(t,"igra",{enumerable:!0,get:function(){return nH.igra}});var nG=r(79053);Object.defineProperty(t,"immutableZkEvm",{enumerable:!0,get:function(){return nG.immutableZkEvm}});var nq=r(57859);Object.defineProperty(t,"immutableZkEvmTestnet",{enumerable:!0,get:function(){return nq.immutableZkEvmTestnet}});var n$=r(68954);Object.defineProperty(t,"inEVM",{enumerable:!0,get:function(){return n$.inEVM}});var nK=r(41075);Object.defineProperty(t,"initVerse",{enumerable:!0,get:function(){return nK.initVerse}});var nZ=r(38251);Object.defineProperty(t,"initVerseGenesis",{enumerable:!0,get:function(){return nZ.initVerseGenesis}});var nV=r(62280);Object.defineProperty(t,"injective",{enumerable:!0,get:function(){return nV.injective}});var nW=r(42648);Object.defineProperty(t,"injectiveTestnet",{enumerable:!0,get:function(){return nW.injectiveTestnet}});var nY=r(86683);Object.defineProperty(t,"ink",{enumerable:!0,get:function(){return nY.ink}});var nX=r(37122);Object.defineProperty(t,"inkSepolia",{enumerable:!0,get:function(){return nX.inkSepolia}});var nJ=r(21885);Object.defineProperty(t,"iota",{enumerable:!0,get:function(){return nJ.iota}});var nQ=r(35115);Object.defineProperty(t,"iotaTestnet",{enumerable:!0,get:function(){return nQ.iotaTestnet}});var n0=r(24479);Object.defineProperty(t,"iotex",{enumerable:!0,get:function(){return n0.iotex}});var n1=r(44343);Object.defineProperty(t,"iotexTestnet",{enumerable:!0,get:function(){return n1.iotexTestnet}});var n2=r(3410);Object.defineProperty(t,"iSunCoin",{enumerable:!0,get:function(){return n2.iSunCoin}});var n3=r(2549);Object.defineProperty(t,"jasmyChain",{enumerable:!0,get:function(){return n3.jasmyChain}});var n6=r(92895);Object.defineProperty(t,"jasmyChainTestnet",{enumerable:!0,get:function(){return n6.jasmyChainTestnet}});var n5=r(76619);Object.defineProperty(t,"jbc",{enumerable:!0,get:function(){return n5.jbc}});var n8=r(96759);Object.defineProperty(t,"jbcTestnet",{enumerable:!0,get:function(){return n8.jbcTestnet}});var n7=r(71713);Object.defineProperty(t,"jocMainnet",{enumerable:!0,get:function(){return n7.jocMainnet}});var n4=r(86119);Object.defineProperty(t,"jocTestnet",{enumerable:!0,get:function(){return n4.jocTestnet}});var n9=r(6689);Object.defineProperty(t,"jovay",{enumerable:!0,get:function(){return n9.jovay}});var ie=r(29658);Object.defineProperty(t,"jovaySepolia",{enumerable:!0,get:function(){return ie.jovaySepolia}});var it=r(2044);Object.defineProperty(t,"juneo",{enumerable:!0,get:function(){return it.juneo}});var ir=r(45007);Object.defineProperty(t,"juneoBCH1Chain",{enumerable:!0,get:function(){return ir.juneoBCH1Chain}});var ii=r(61408);Object.defineProperty(t,"juneoDAI1Chain",{enumerable:!0,get:function(){return ii.juneoDAI1Chain}});var ia=r(61008);Object.defineProperty(t,"juneoDOGE1Chain",{enumerable:!0,get:function(){return ia.juneoDOGE1Chain}});var io=r(20875);Object.defineProperty(t,"juneoEUR1Chain",{enumerable:!0,get:function(){return io.juneoEUR1Chain}});var is=r(32567);Object.defineProperty(t,"juneoGLD1Chain",{enumerable:!0,get:function(){return is.juneoGLD1Chain}});var il=r(58986);Object.defineProperty(t,"juneoLINK1Chain",{enumerable:!0,get:function(){return il.juneoLINK1Chain}});var ic=r(79777);Object.defineProperty(t,"juneoLTC1Chain",{enumerable:!0,get:function(){return ic.juneoLTC1Chain}});var iu=r(71711);Object.defineProperty(t,"juneomBTC1Chain",{enumerable:!0,get:function(){return iu.juneomBTC1Chain}});var id=r(59673);Object.defineProperty(t,"juneoSGD1Chain",{enumerable:!0,get:function(){return id.juneoSGD1Chain}});var ip=r(15250);Object.defineProperty(t,"juneoSocotraTestnet",{enumerable:!0,get:function(){return ip.juneoSocotraTestnet}});var ih=r(5730);Object.defineProperty(t,"juneoUSD1Chain",{enumerable:!0,get:function(){return ih.juneoUSD1Chain}});var im=r(2652);Object.defineProperty(t,"juneoUSDT1Chain",{enumerable:!0,get:function(){return im.juneoUSDT1Chain}});var ib=r(20881);Object.defineProperty(t,"kaia",{enumerable:!0,get:function(){return ib.kaia}});var iy=r(37705);Object.defineProperty(t,"kairos",{enumerable:!0,get:function(){return iy.kairos}});var ig=r(6797);Object.defineProperty(t,"kakarotSepolia",{enumerable:!0,get:function(){return ig.kakarotSepolia}});var iv=r(84953);Object.defineProperty(t,"kakarotStarknetSepolia",{enumerable:!0,get:function(){return iv.kakarotStarknetSepolia}});var iw=r(46022);Object.defineProperty(t,"kardiaChain",{enumerable:!0,get:function(){return iw.kardiaChain}});var iE=r(63328);Object.defineProperty(t,"karura",{enumerable:!0,get:function(){return iE.k
111arura}});var ix=r(51906);Object.defineProperty(t,"katana",{enumerable:!0,get:function(){return ix.katana}});var iA=r(60830);Object.defineProperty(t,"kava",{enumerable:!0,get:function(){return iA.kava}});var ik=r(82992);Object.defineProperty(t,"kavaTestnet",{enumerable:!0,get:function(){return ik.kavaTestnet}});var iP=r(82484);Object.defineProperty(t,"kcc",{enumerable:!0,get:function(){return iP.kcc}});var iC=r(78700);Object.defineProperty(t,"kii",{enumerable:!0,get:function(){return iC.kii}});var iT=r(85166);Object.defineProperty(t,"kiiTestnetOro",{enumerable:!0,get:function(){return iT.kiiTestnetOro}});var i_=r(1842);Object.defineProperty(t,"kinto",{enumerable:!0,get:function(){return i_.kinto}});var iO=r(39448);Object.defineProperty(t,"klaytn",{enumerable:!0,get:function(){return iO.klaytn}});var iS=r(51621);Object.defineProperty(t,"klaytnBaobab",{enumerable:!0,get:function(){return iS.klaytnBaobab}});var iI=r(58102);Object.defineProperty(t,"koi",{enumerable:!0,get:function(){return iI.koi}});var iB=r(46797);Object.defineProperty(t,"kroma",{enumerable:!0,get:function(){return iB.kroma}});var ij=r(52958);Object.defineProperty(t,"kromaSepolia",{enumerable:!0,get:function(){return ij.kromaSepolia}});var iM=r(97262);Object.defineProperty(t,"krown",{enumerable:!0,get:function(){return iM.krown}});var iR=r(33526);Object.defineProperty(t,"l3x",{enumerable:!0,get:function(){return iR.l3x}});var iN=r(29987);Object.defineProperty(t,"l3xTestnet",{enumerable:!0,get:function(){return iN.l3xTestnet}});var iU=r(29852);Object.defineProperty(t,"ladyChain",{enumerable:!0,get:function(){return iU.ladyChain}});var iz=r(96577);Object.defineProperty(t,"lavita",{enumerable:!0,get:function(){return iz.lavita}});var iD=r(4602);Object.defineProperty(t,"lens",{enumerable:!0,get:function(){return iD.lens}});var iF=r(6365);Object.defineProperty(t,"lensTestnet",{enumerable:!0,get:function(){return iF.lensTestnet}});var iL=r(2085);Object.defineProperty(t,"lestnet",{enumerable:!0,get:function(){return iL.lestnet}});var iH=r(79912);Object.defineProperty(t,"lightlinkPegasus",{enumerable:!0,get:function(){return iH.lightlinkPegasus}});var iG=r(48353);Object.defineProperty(t,"lightlinkPhoenix",{enumerable:!0,get:function(){return iG.lightlinkPhoenix}});var iq=r(84802);Object.defineProperty(t,"linea",{enumerable:!0,get:function(){return iq.linea}});var i$=r(78726);Object.defineProperty(t,"lineaGoerli",{enumerable:!0,get:function(){return i$.lineaGoerli}});var iK=r(39695);Object.defineProperty(t,"lineaSepolia",{enumerable:!0,get:function(){return iK.lineaSepolia}});var iZ=r(69687);Object.defineProperty(t,"lineaTestnet",{enumerable:!0,get:function(){return iZ.lineaTestnet}});var iV=r(16123);Object.defineProperty(t,"lisk",{enumerable:!0,get:function(){return iV.lisk}});var iW=r(25704);Object.defineProperty(t,"liskSepolia",{enumerable:!0,get:function(){return iW.liskSepolia}});var iY=r(94359);Object.defineProperty(t,"loadAlphanet",{enumerable:!0,get:function(){return iY.loadAlphanet}});var iX=r(61077);Object.defineProperty(t,"localhost",{enumerable:!0,get:function(){return iX.localhost}});var iJ=r(61947);Object.defineProperty(t,"loop",{enumerable:!0,get:function(){return iJ.loop}});var iQ=r(10614);Object.defineProperty(t,"lukso",{enumerable:!0,get:function(){return iQ.lukso}});var i0=r(98373);Object.defineProperty(t,"luksoTestnet",{enumerable:!0,get:function(){return i0.luksoTestnet}});var i1=r(39970);Object.defineProperty(t,"lumiaMainnet",{enumerable:!0,get:function(){return i1.lumiaMainnet}});var i2=r(2728);Object.defineProperty(t,"lumiaTestnet",{enumerable:!0,get:function(){return i2.lumiaTestnet}});var i3=r(76363);Object.defineProperty(t,"lumoz",{enumerable:!0,get:function(){return i3.lumoz}});var i6=r(55162);Object.defineProperty(t,"lumozTestnet",{enumerable:!0,get:function(){return i6.lumozTestnet}});var i5=r(56550);Object.defineProperty(t,"luxeports",{enumerable:!0,get:function(){return i5.luxeports}});var i8=r(35256);Object.defineProperty(t,"lycan",{enumerable:!0,get:function(){return i8.lycan}});var i7=r(53767);Object.defineProperty(t,"lyra",{enumerable:!0,get:function(){return i7.lyra}});var i4=r(46545);Object.defineProperty(t,"mainnet",{enumerable:!0,get:function(){return i4.mainnet}});var i9=r(48431);Object.defineProperty(t,"mandala",{enumerable:!0,get:function(){return i9.mandala}});var ae=r(87279);Object.defineProperty(t,"manta",{enumerable:!0,get:function(){return ae.manta}});var at=r(24691);Object.defineProperty(t,"mantaSepoliaTestnet",{enumerable:!0,get:function(){return at.mantaSepoliaTestnet}});var ar=r(75471);Object.defineProperty(t,"mantaTestnet",{enumerable:!0,get:function(){return ar.mantaTestnet}});var an=r(50541);Object.defineProperty(t,"mantle",{enumerable:!0,get:function(){return an.mantle}});var ai=r(26008);Object.defineProperty(t,"mantleSepoliaTestnet",{enumerable:!0,get:function(){return ai.mantleSepoliaTestnet}});var aa=r(21573);Object.defineProperty(t,"mantleTestnet",{enumerable:!0,get:function(){return aa.mantleTestnet}});var ao=r(91238);Object.defineProperty(t,"mantraDuKongEVMTestnet",{enumerable:!0,get:function(){return ao.mantraDuKongEVMTestnet}});var as=r(3039);Object.defineProperty(t,"mantraEVM",{enumerable:!0,get:function(){return as.mantraEVM}});var al=r(6804);Object.defineProperty(t,"mapProtocol",{enumerable:!0,get:function(){return al.mapProtocol}});var ac=r(46493);Object.defineProperty(t,"marooTestnet",{enumerable:!0,get:function(){return ac.marooTestnet}});var au=r(97662);Object.defineProperty(t,"marsCredit",{enumerable:!0,get:function(){return au.marsCredit}});var ad=r(97685);Object.defineProperty(t,"matchain",{enumerable:!0,get:function(){return ad.matchain}});var af=r(20679);Object.defineProperty(t,"matchainTestnet",{enumerable:!0,get:function(){return af.matchainTestnet}});var ap=r(21672);Object.defineProperty(t,"mchVerse",{enumerable:!0,get:function(){return ap.mchVerse}});var ah=r(21542);Object.defineProperty(t,"megaeth",{enumerable:!0,get:function(){return ah.megaeth}});var am=r(41163);Object.defineProperty(t,"megaethTestnet",{enumerable:!0,get:function(){return am.megaethTestnet}});var ab=r(78864);Object.defineProperty(t,"mekong",{enumerable:!0,get:function(){return ab.mekong}});var ay=r(57693);Object.defineProperty(t,"meld",{enumerable:!0,get:function(){return ay.meld}});var ag=r(66477);Object.defineProperty(t,"memecore",{enumerable:!0,get:function(){return ag.memecore}}
111);var av=r(11565);Object.defineProperty(t,"formicarium",{enumerable:!0,get:function(){return av.formicarium}});var aw=r(55979);Object.defineProperty(t,"merlin",{enumerable:!0,get:function(){return aw.merlin}});var aE=r(61533);Object.defineProperty(t,"merlinErigonTestnet",{enumerable:!0,get:function(){return aE.merlinErigonTestnet}});var ax=r(72736);Object.defineProperty(t,"metachain",{enumerable:!0,get:function(){return ax.metachain}});var aA=r(28367);Object.defineProperty(t,"metachainIstanbul",{enumerable:!0,get:function(){return aA.metachainIstanbul}});var ak=r(8989);Object.defineProperty(t,"metadium",{enumerable:!0,get:function(){return ak.metadium}});var aP=r(7686);Object.defineProperty(t,"metalL2",{enumerable:!0,get:function(){return aP.metalL2}});var aC=r(54334);Object.defineProperty(t,"meter",{enumerable:!0,get:function(){return aC.meter}});var aT=r(72232);Object.defineProperty(t,"meterTestnet",{enumerable:!0,get:function(){return aT.meterTestnet}});var a_=r(15661);Object.defineProperty(t,"metis",{enumerable:!0,get:function(){return a_.metis}});var aO=r(67810);Object.defineProperty(t,"metisGoerli",{enumerable:!0,get:function(){return aO.metisGoerli}});var aS=r(33094);Object.defineProperty(t,"metisSepolia",{enumerable:!0,get:function(){return aS.metisSepolia}});var aI=r(56053);Object.defineProperty(t,"mev",{enumerable:!0,get:function(){return aI.mev}});var aB=r(74511);Object.defineProperty(t,"mevTestnet",{enumerable:!0,get:function(){return aB.mevTestnet}});var aj=r(97135);Object.defineProperty(t,"mezo",{enumerable:!0,get:function(){return aj.mezo}});var aM=r(71477);Object.defineProperty(t,"mezoTestnet",{enumerable:!0,get:function(){return aM.mezoTestnet}});var aR=r(96639);Object.defineProperty(t,"mint",{enumerable:!0,get:function(){return aR.mint}});var aN=r(37885);Object.defineProperty(t,"mintSepoliaTestnet",{enumerable:!0,get:function(){return aN.mintSepoliaTestnet}});var aU=r(6559);Object.defineProperty(t,"mitosisTestnet",{enumerable:!0,get:function(){return aU.mitosisTestnet}});var az=r(91250);Object.defineProperty(t,"mizuhikiTestnetAwaji",{enumerable:!0,get:function(){return az.mizuhikiTestnetAwaji}});var aD=r(79285);Object.defineProperty(t,"mode",{enumerable:!0,get:function(){return aD.mode}});var aF=r(30066);Object.defineProperty(t,"modeTestnet",{enumerable:!0,get:function(){return aF.modeTestnet}});var aL=r(28460);Object.defineProperty(t,"monad",{enumerable:!0,get:function(){return aL.monad}});var aH=r(42896);Object.defineProperty(t,"monadTestnet",{enumerable:!0,get:function(){return aH.monadTestnet}});var aG=r(52035);Object.defineProperty(t,"moonbaseAlpha",{enumerable:!0,get:function(){return aG.moonbaseAlpha}});var aq=r(3361);Object.defineProperty(t,"moonbeam",{enumerable:!0,get:function(){return aq.moonbeam}});var a$=r(92284);Object.defineProperty(t,"moonbeamDev",{enumerable:!0,get:function(){return a$.moonbeamDev}});var aK=r(86993);Object.defineProperty(t,"moonriver",{enumerable:!0,get:function(){return aK.moonriver}});var aZ=r(38709);Object.defineProperty(t,"morph",{enumerable:!0,get:function(){return aZ.morph}});var aV=r(37443);Object.defineProperty(t,"morphHolesky",{enumerable:!0,get:function(){return aV.morphHolesky}});var aW=r(25112);Object.defineProperty(t,"morphSepolia",{enumerable:!0,get:function(){return aW.morphSepolia}});var aY=r(88375);Object.defineProperty(t,"morphTachyon",{enumerable:!0,get:function(){return aY.morphTachyon}});var aX=r(92125);Object.defineProperty(t,"morphTachyonTestnet",{enumerable:!0,get:function(){return aX.morphTachyonTestnet}});var aJ=r(8198);Object.defineProperty(t,"nahmii",{enumerable:!0,get:function(){return aJ.nahmii}});var aQ=r(52208);Object.defineProperty(t,"nautilus",{enumerable:!0,get:function(){return aQ.nautilus}});var a0=r(21701);Object.defineProperty(t,"near",{enumerable:!0,get:function(){return a0.near}});var a1=r(54559);Object.defineProperty(t,"nearTestnet",{enumerable:!0,get:function(){return a1.nearTestnet}});var a2=r(11272);Object.defineProperty(t,"neonDevnet",{enumerable:!0,get:function(){return a2.neonDevnet}});var a3=r(89850);Object.defineProperty(t,"neonMainnet",{enumerable:!0,get:function(){return a3.neonMainnet}});var a6=r(7243);Object.defineProperty(t,"neoxMainnet",{enumerable:!0,get:function(){return a6.neoxMainnet}});var a5=r(24397);Object.defineProperty(t,"neoxT4",{enumerable:!0,get:function(){return a5.neoxT4}});var a8=r(10426);Object.defineProperty(t,"newton",{enumerable:!0,get:function(){return a8.newton}});var a7=r(76769);Object.defineProperty(t,"nexi",{enumerable:!0,get:function(){return a7.nexi}});var a4=r(59924);Object.defineProperty(t,"nexilix",{enumerable:!0,get:function(){return a4.nexilix}});var a9=r(59458);Object.defineProperty(t,"nibiru",{enumerable:!0,get:function(){return a9.nibiru}});var oe=r(38348);Object.defineProperty(t,"nitrographTestnet",{enumerable:!0,get:function(){return oe.nitrographTestnet}});var ot=r(11456);Object.defineProperty(t,"nomina",{enumerable:!0,get:function(){return ot.nomina}});var or=r(26242);Object.defineProperty(t,"oasisTestnet",{enumerable:!0,get:function(){return or.oasisTestnet}});var on=r(52534);Object.defineProperty(t,"oasys",{enumerable:!0,get:function(){return on.oasys}});var oi=r(33660);Object.defineProperty(t,"odysseyTestnet",{enumerable:!0,get:function(){return oi.odysseyTestnet}});var oa=r(8251);Object.defineProperty(t,"okc",{enumerable:!0,get:function(){return oa.okc}});var oo=r(29438);Object.defineProperty(t,"omax",{enumerable:!0,get:function(){return oo.omax}});var os=r(53997);Object.defineProperty(t,"omni",{enumerable:!0,get:function(){return os.omni}});var ol=r(63561);Object.defineProperty(t,"omniOmega",{enumerable:!0,get:function(){return ol.omniOmega}});
111var oc=r(31873);Object.defineProperty(t,"oneWorld",{enumerable:!0,get:function(){return oc.oneWorld}});var ou=r(22057);Object.defineProperty(t,"oortMainnetDev",{enumerable:!0,get:function(){return ou.oortMainnetDev}});var od=r(59636);Object.defineProperty(t,"opBNB",{enumerable:!0,get:function(){return od.opBNB}});var of=r(88301);Object.defineProperty(t,"opBNBTestnet",{enumerable:!0,get:function(){return of.opBNBTestnet}});var op=r(61550);Object.defineProperty(t,"openledger",{enumerable:!0,get:function(){return op.openledger}});var oh=r(84043);Object.defineProperty(t,"optimism",{enumerable:!0,get:function(){return oh.optimism}});var om=r(81279);Object.defineProperty(t,"optimismGoerli",{enumerable:!0,get:function(){return om.optimismGoerli}});var ob=r(71847);Object.defineProperty(t,"optimismSepolia",{enumerable:!0,get:function(){return ob.optimismSepolia}});var oy=r(15372);Object.defineProperty(t,"optopia",{enumerable:!0,get:function(){return oy.optopia}});var og=r(98732);Object.defineProperty(t,"optopiaTestnet",{enumerable:!0,get:function(){return og.optopiaTestnet}});var ov=r(12491);Object.defineProperty(t,"orderly",{enumerable:!0,get:function(){return ov.orderly}});var ow=r(55863);Object.defineProperty(t,"orderlySepolia",{enumerable:!0,get:function(){return ow.orderlySepolia}});var oE=r(39844);Object.defineProperty(t,"otimDevnet",{enumerable:!0,get:function(){return oE.otimDevnet}});var ox=r(1672);Object.defineProperty(t,"palm",{enumerable:!0,get:function(){return ox.palm}});var oA=r(32689);Object.defineProperty(t,"palmTestnet",{enumerable:!0,get:function(){return oA.palmTestnet}});var ok=r(67211);Object.defineProperty(t,"paseoPassetHub",{enumerable:!0,get:function(){return ok.paseoPassetHub}});var oP=r(52353);Object.defineProperty(t,"peaq",{enumerable:!0,get:function(){return oP.peaq}});var oC=r(59500);Object.defineProperty(t,"pgn",{enumerable:!0,get:function(){return oC.pgn}});var oT=r(90162);Object.defineProperty(t,"pgnTestnet",{enumerable:!0,get:function(){return oT.pgnTestnet}});var o_=r(95958);Object.defineProperty(t,"phoenix",{enumerable:!0,get:function(){return o_.phoenix}});var oO=r(99291);Object.defineProperty(t,"planq",{enumerable:!0,get:function(){return oO.planq}});var oS=r(11927);Object.defineProperty(t,"plasma",{enumerable:!0,get:function(){return oS.plasma}});var oI=r(53914);Object.defineProperty(t,"plasmaDevnet",{enumerable:!0,get:function(){return oI.plasmaDevnet}});var oB=r(44446);Object.defineProperty(t,"plasmaTestnet",{enumerable:!0,get:function(){return oB.plasmaTestnet}});var oj=r(65286);Object.defineProperty(t,"playfiAlbireo",{enumerable:!0,get:function(){return oj.playfiAlbireo}});var oM=r(11515);Object.defineProperty(t,"plinga",{enumerable:!0,get:function(){return oM.plinga}});var oR=r(908);Object.defineProperty(t,"plume",{enumerable:!0,get:function(){return oR.plume}});var oN=r(40863);Object.defineProperty(t,"plumeDevnet",{enumerable:!0,get:function(){return oN.plumeDevnet}});var oU=r(80143);Object.defineProperty(t,"plumeMainnet",{enumerable:!0,get:function(){return oU.plumeMainnet}});var oz=r(30699);Object.defineProperty(t,"plumeSepolia",{enumerable:!0,get:function(){return oz.plumeSepolia}});var oD=r(1764);Object.defineProperty(t,"plumeTestnet",{enumerable:!0,get:function(){return oD.plumeTestnet}});var oF=r(36100);Object.defineProperty(t,"polterTestnet",{enumerable:!0,get:function(){return oF.polterTestnet}});var oL=r(64239);Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return oL.polygon}});var oH=r(56799);Object.defineProperty(t,"polygonAmoy",{enumerable:!0,get:function(){return oH.polygonAmoy}});var oG=r(28985);Object.defineProperty(t,"polygonMumbai",{enumerable:!0,get:function(){return oG.polygonMumbai}});var oq=r(70562);Object.defineProperty(t,"polygonZkEvm",{enumerable:!0,get:function(){return oq.polygonZkEvm}});var o$=r(35349);Object.defineProperty(t,"polygonZkEvmCardona",{enumerable:!0,get:function(){return o$.polygonZkEvmCardona}});var oK=r(77994);Object.defineProperty(t,"polygonZkEvmTestnet",{enumerable:!0,get:function(){return oK.polygonZkEvmTestnet}});var oZ=r(22586);Object.defineProperty(t,"polynomial",{enumerable:!0,get:function(){return oZ.pol
111ynomial}});var oV=r(15514);Object.defineProperty(t,"polynomialSepolia",{enumerable:!0,get:function(){return oV.polynomialSepolia}});var oW=r(59393);Object.defineProperty(t,"potos",{enumerable:!0,get:function(){return oW.potos}});var oY=r(82191);Object.defineProperty(t,"potosTestnet",{enumerable:!0,get:function(){return oY.potosTestnet}});var oX=r(50275);Object.defineProperty(t,"premiumBlockTestnet",{enumerable:!0,get:function(){return oX.premiumBlockTestnet}});var oJ=r(47307);Object.defineProperty(t,"pulsechain",{enumerable:!0,get:function(){return oJ.pulsechain}});var oQ=r(8812);Object.defineProperty(t,"pulsechainV4",{enumerable:!0,get:function(){return oQ.pulsechainV4}});var o0=r(94231);Object.defineProperty(t,"pumpfiTestnet",{enumerable:!0,get:function(){return o0.pumpfiTestnet}});var o1=r(91005);Object.defineProperty(t,"pyrope",{enumerable:!0,get:function(){return o1.pyrope}});var o2=r(11234);Object.defineProperty(t,"ql1",{enumerable:!0,get:function(){return o2.ql1}});var o3=r(27022);Object.defineProperty(t,"qMainnet",{enumerable:!0,get:function(){return o3.qMainnet}});var o6=r(61860);Object.defineProperty(t,"qTestnet",{enumerable:!0,get:function(){return o6.qTestnet}});var o5=r(61815);Object.defineProperty(t,"quai",{enumerable:!0,get:function(){return o5.quai}});var o8=r(82854);Object.defineProperty(t,"quaiTestnet",{enumerable:!0,get:function(){return o8.quaiTestnet}});var o7=r(92053);Object.defineProperty(t,"radius",{enumerable:!0,get:function(){return o7.radius}});var o4=r(6096);Object.defineProperty(t,"radiusTestnet",{enumerable:!0,get:function(){return o4.radiusTestnet}});var o9=r(77989);Object.defineProperty(t,"reactiveTestnet",{enumerable:!0,get:function(){return o9.reactiveTestnet}});var se=r(24227);Object.defineProperty(t,"real",{enumerable:!0,get:function(){return se.real}});var st=r(85639);Object.defineProperty(t,"redbellyMainnet",{enumerable:!0,get:function(){return st.redbellyMainnet}});var sr=r(985);Object.defineProperty(t,"redbellyTestnet",{enumerable:!0,get:function(){return sr.redbellyTestnet}});var sn=r(4178);Object.defineProperty(t,"reddio",{enumerable:!0,get:function(){return sn.reddio}});var si=r(58367);Object.defineProperty(t,"reddioSepolia",{enumerable:!0,get:function(){return si.reddioSepolia}});var sa=r(19281);Object.defineProperty(t,"redstone",{enumerable:!0,get:function(){return sa.redstone}});var so=r(18193);Object.defineProperty(t,"rei",{enumerable:!0,get:function(){return so.rei}});var ss=r(52582);Object.defineProperty(t,"reyaNetwork",{enumerable:!0,get:function(){return ss.reyaNetwork}});var sl=r(51923);Object.defineProperty(t,"rise",{enumerable:!0,get:function(){return sl.rise}});var sc=r(92925);Object.defineProperty(t,"riseTestnet",{enumerable:!0,get:function(){return sc.riseTestnet}});var su=r(18241);Object.defineProperty(t,"rivalz",{enumerable:!0,get:function(){return su.rivalz}});var sd=r(34327);Object.defineProperty(t,"robinhood",{enumerable:!0,get:function(){return sd.robinhood}});var sf=r(57914);Object.defineProperty(t,"robinhoodTestnet",{enumerable:!0,get:function(){return sf.robinhoodTestnet}});var sp=r(96640);Object.defineProperty(t,"rollux",{enumerable:!0,get:function(){return sp.rollux}});var sh=r(11769);Object.defineProperty(t,"rolluxTestnet",{enumerable:!0,get:function(){return sh.rolluxTestnet}});var sm=r(20325);Object.defineProperty(t,"ronin",{enumerable:!0,get:function(){return sm.ronin}});var sb=r(29596);Object.defineProperty(t,"root",{enumerable:!0,get:function(){return sb.root}});var sy=r(14679);Object.defineProperty(t,"rootPorcini",{enumerable:!0,get:function(){return sy.rootPorcini}});var sg=r(13685);Object.defineProperty(t,"rootstock",{enumerable:!0,get:function(){return sg.rootstock}});var sv=r(8673);Object.defineProperty(t,"rootstockTestnet",{enumerable:!0,get:function(){return sv.rootstockTestnet}});var sw=r(86392);Object.defineProperty(t,"rss3",{enumerable:!0,get:function(){return sw.rss3}});var sE=r(70982);Object.defineProperty(t,"rss3Sepolia",{enumerable:!0,get:function(){return sE.rss3Sepolia}});var sx=r(90545);Object.defineProperty(t,"saakuru",{enumerable:!0,get:function(){return sx.saakuru}});var sA=r(65449);Object.defineProperty(t,"saga",{enumerable:!0,get:function(){return sA.s
111aga}});var sk=r(9260);Object.defineProperty(t,"saigon",{enumerable:!0,get:function(){return sk.saigon}});var sP=r(80648);Object.defineProperty(t,"sanko",{enumerable:!0,get:function(){return sP.sanko}});var sC=r(63743);Object.defineProperty(t,"sapphire",{enumerable:!0,get:function(){return sC.sapphire}});var sT=r(40088);Object.defineProperty(t,"sapphireTestnet",{enumerable:!0,get:function(){return sT.sapphireTestnet}});var s_=r(90756);Object.defineProperty(t,"satoshiVM",{enumerable:!0,get:function(){return s_.satoshiVM}});var sO=r(39107);Object.defineProperty(t,"satoshiVMTestnet",{enumerable:!0,get:function(){return sO.satoshiVMTestnet}});var sS=r(53874);Object.defineProperty(t,"scroll",{enumerable:!0,get:function(){return sS.scroll}});var sI=r(84847);Object.defineProperty(t,"scrollSepolia",{enumerable:!0,get:function(){return sI.scrollSepolia}});var sB=r(76469);Object.defineProperty(t,"sei",{enumerable:!0,get:function(){return sB.sei}});var sj=r(4660);Object.defineProperty(t,"seismicDevnet",{enumerable:!0,get:function(){return sj.seismicDevnet}});var sM=r(79378);Object.defineProperty(t,"seiTestnet",{enumerable:!0,get:function(){return sM.seiTestnet}});var sR=r(8184);Object.defineProperty(t,"sentrix",{enumerable:!0,get:function(){return sR.sentrix}});var sN=r(6633);Object.defineProperty(t,"sentrixTestnet",{enumerable:!0,get:function(){return sN.sentrixTestnet}});var sU=r(61295);Object.defineProperty(t,"sepolia",{enumerable:!0,get:function(){return sU.sepolia}});var sz=r(71689);Object.defineProperty(t,"shape",{enumerable:!0,get:function(){return sz.shape}});var sD=r(25730);Object.defineProperty(t,"shapeSepolia",{enumerable:!0,get:function(){return sD.shapeSepolia}});var sF=r(52801);Object.defineProperty(t,"shardeum",{enumerable:!0,get:function(){return sF.shardeum}});var sL=r(89698);Object.defineProperty(t,"shardeumSphinx",{enumerable:!0,get:function(){return sL.shardeumSphinx}});var sH=r(41276);Object.defineProperty(t,"shibarium",{enumerable:!0,get:function(){return sH.shibarium}});var sG=r(41946);Object.defineProperty(t,"shibariumTestnet",{enumerable:!0,get:function(){return sG.shibariumTestnet}});var sq=r(70072);Object.defineProperty(t,"shiden",{enumerable:!0,get:function(){return sq.shiden}});var s$=r(81095);Object.defineProperty(t,"shimmer",{enumerable:!0,get:function(){return s$.shimmer}});var sK=r(22016);Object.defineProperty(t,"shimmerTestnet",{enumerable:!0,get:function(){return sK.shimmerTestnet}});var sZ=r(89197);Object.defineProperty(t,"sidraChain",{enumerable:!0,get:function(){return sZ.sidraChain}});var sV=r(96025);Object.defineProperty(t,"silentData",{enumerable:!0,get:function(){return sV.silentData}});var sW=r(2003);Object.defineProperty(t,"silicon",{enumerable:!0,get:function(){return sW.silicon}});var sY=r(96316);Object.defineProperty(t,"siliconSepolia",{enumerable:!0,get:function(){return sY.siliconSepolia}});var sX=r(46025);Object.defineProperty(t,"sixProtocol",{enumerable:!0,get:function(){return sX.sixProtocol}});var sJ=r(70461);Object.defineProperty(t,"skaleBlockBrawlers",{enumerable:!0,get:function(){return sJ.skaleBlockBrawlers}});var sQ=r(52327);Object.defineProperty(t,"skaleCalypso",{enumerable:!0,get:function(){return sQ.skaleCalypso}});var s0=r(12988);Object.defineProperty(t,"skaleCalypsoTestnet",{enumerable:!0,get:function(){return s0.skaleCalypsoTestnet}});var s1=r(51377);Object.defineProperty(t,"skaleCryptoBlades",{enumerable:!0,get:function(){return s1.skaleCryptoBlades}});var s2=r(86595);Object.defineProperty(t,"skaleCryptoColosseum",{enumerable:!0,get:function(){return s2.skaleCryptoColosseum}});var s3=r(24950);Object.defineProperty(t,"skaleEuropa",{enumerable:!0,get:function(){return s3.skaleEuropa}});var s6=r(75142);Object.defineProperty(t,"skaleEuropaTestnet",{enumerable:!0,get:function(){return s6.skaleEuropaTestnet}});var s5=r(91955);Object.defineProperty(t,"skaleExorde",{enumerable:!0,get:function(){return s5.skaleExorde}});var s8=r(27744);Object.defineProperty(t,"skaleHumanProtocol",{enumerable:!0,get:function(){return s8.skaleHumanProtocol}});var s7=r(93943);Object.defineProperty(t,"skaleNebula",{enumerable:!0,get:function(){return s7.skaleNebula}});var s4=r(45439);Object.defineProperty(t,"skaleNebulaTestnet",{enumerable:!0,get:function(){return s4.skaleNebulaTestnet}});var s9=r(68653);Object.defineProperty(t,"skaleRazor",{enumerable:!0,get:function(){return s9.skaleRazor}});var le=r(38658);Object.defineProperty(t,"skaleBase",{enumerable:!0,get:function(){return le.skaleBase}});var lt=r(66527);Object.defineProperty(t,"skaleBaseSepoliaTestnet",{enumerable:!0,get:function(){return lt.skaleBaseSepoliaTestnet}});var lr=r(87356);Object.defineProperty(t,"skaleTitan",{enumerable:!0,get:function(){return lr.skaleTitan}});var ln=r(89721);Object.defineProperty(t,"skaleTitanTestnet",{enumerable:!0,get:function(){return ln.skaleTitanTestnet}});var li=r(27435);Object.defineProperty(t,"sketchpad",{enumerable:!0,get:function(){return li.sketchpad}});var la=r(47781);Object.defineProperty(t,"snax",{enumerable:!0,get:function(){return la.snax}});var lo=r(85143);Object.defineProperty(t,"snaxTestnet",{enumerable:!0,get:function(){return lo.snaxTestnet}});var ls=r(59897);Object.defineProperty(t,"somnia",{enumerable:!0,get:function(){return ls.somnia}});var ll=r(70881);Object.defineProperty(t,"somniaTestnet",{enumerable:!0,get:function(){return ll.somniaTestnet}});var lc=r(95307);Object.defineProperty(t,"soneium",{enumerable:!0,get:function(){return lc.soneium}});var lu=r(3771);Object.defineProperty(t,"soneiumMinato",{enumerable:!0,get:function(){return lu.soneiumMinato}});var ld=r(14227);Object.defineProperty(t,"songbird",{enumerable:!0,get:function(){return ld.songbird}});var lf=r(19790);Object.defineProperty(t,"songbirdTestnet",{enumerable:!0,get:function(){return lf.songbirdTestnet}});var lp=r(64573);Object.defineProperty(t,"sonic",{enumerable:!0,get:function(){return lp.sonic}});var lh=r(41743);Object.defineProperty(t,"sonicBlazeTestnet",{enumerable:!0,get:function(){return lh.sonicBlazeTestnet}});var lm=r(43394);Object.defineProperty(t,"sonicTestnet",{enumerable:!0,get:function(){return lm.sonicTestnet}});var lb=r(43974);Object.defineProperty(t,"sophon",{enumerable:!0,get:function(){return lb.sophon}});var ly=r(91825);Object.defineProperty(t,"sophonTestnet",{enumerable:!0,get:function(){return ly.sophonTestnet}});var lg=r(10926);Object.defineProperty(t,"sova",{enumerable:!0,get:function(){return lg.sova}});var lv=r(82829);
111Object.defineProperty(t,"sovaSepolia",{enumerable:!0,get:function(){return lv.sovaSepolia}});var lw=r(9646);Object.defineProperty(t,"spicy",{enumerable:!0,get:function(){return lw.spicy}});var lE=r(82779);Object.defineProperty(t,"stable",{enumerable:!0,get:function(){return lE.stable}});var lx=r(5344);Object.defineProperty(t,"stableTestnet",{enumerable:!0,get:function(){return lx.stableTestnet}});var lA=r(19929);Object.defineProperty(t,"statusSepolia",{enumerable:!0,get:function(){return lA.statusSepolia}}),Object.defineProperty(t,"statusNetworkSepolia",{enumerable:!0,get:function(){return lA.statusSepolia}});var lk=r(84961);Object.defineProperty(t,"step",{enumerable:!0,get:function(){return lk.step}});var lP=r(3191);Object.defineProperty(t,"story",{enumerable:!0,get:function(){return lP.story}});var lC=r(51918);Object.defineProperty(t,"storyAeneid",{enumerable:!0,get:function(){return lC.storyAeneid}});var lT=r(18072);Object.defineProperty(t,"storyOdyssey",{enumerable:!0,get:function(){return lT.storyOdyssey}});var l_=r(65179);Object.defineProperty(t,"storyTestnet",{enumerable:!0,get:function(){return l_.storyTestnet}});var lO=r(54214);Object.defineProperty(t,"stratis",{enumerable:!0,get:function(){return lO.stratis}});var lS=r(34319);Object.defineProperty(t,"subtensorEvm",{enumerable:!0,get:function(){return lS.subtensorEvm}});var lI=r(95209);Object.defineProperty(t,"superlumio",{enumerable:!0,get:function(){return lI.superlumio}});var lB=r(57576);Object.defineProperty(t,"superposition",{enumerable:!0,get:function(){return lB.superposition}});var lj=r(34244);Object.defineProperty(t,"superseed",{enumerable:!0,get:function(){return lj.superseed}});var lM=r(27971);Object.defineProperty(t,"superseedSepolia",{enumerable:!0,get:function(){return lM.superseedSepolia}});var lR=r(74420);Object.defineProperty(t,"surgeTestnet",{enumerable:!0,get:function(){return lR.surgeTestnet}});var lN=r(30540);Object.defineProperty(t,"swan",{enumerable:!0,get:function(){return lN.swan}});var lU=r(57730);Object.defineProperty(t,"swanProximaTestnet",{enumerable:!0,get:function(){return lU.swanProximaTestnet}});var lz=r(98070);Object.defineProperty(t,"swanSaturnTestnet",{enumerable:!0,get:function(){return lz.swanSaturnTestnet}});var lD=r(20416);Object.defineProperty(t,"swellchain",{enumerable:!0,get:function(){return lD.swellchain}});var lF=r(14176);Object.defineProperty(t,"swellchainTestnet",{enumerable:!0,get:function(){return lF.swellchainTestnet}});var lL=r(9416);Object.defineProperty(t,"swissdlt",{enumerable:!0,get:function(){return lL.swissdlt}});var lH=r(38257);Object.defineProperty(t,"syscoin",{enumerable:!0,get:function(){return lH.syscoin}});var lG=r(41506);Object.defineProperty(t,"syscoinTestnet",{enumerable:!0,get:function(){return lG.syscoinTestnet}});var lq=r(17455);Object.defineProperty(t,"tac",{enumerable:!0,get:function(){return lq.tac}});var l$=r(84367);Object.defineProperty(t,"tacSPB",{enumerable:!0,get:function(){return l$.tacSPB}});var lK=r(38862);Object.defineProperty(t,"taiko",{enumerable:!0,get:function(){return lK.taiko}});var lZ=r(7994);Object.defineProperty(t,"taikoHekla",{enumerable:!0,get:function(){return lZ.taikoHekla}});var lV=r(55189);Object.defineProperty(t,"taikoHoodi",{enumerable:!0,get:function(){return lV.taikoHoodi}});var lW=r(99032);Object.defineProperty(t,"taikoJolnir",{enumerable:!0,get:function(){return lW.taikoJolnir}});var lY=r(97420);Object.defineProperty(t,"taikoKatla",{enumerable:!0,get:function(){return lY.taikoKatla}});var lX=r(63345);Object.defineProperty(t,"taikoTestnetSepolia",{enumerable:!0,get:function(){return lX.taikoTestnetSepolia}});var lJ=r(87464);Object.defineProperty(t,"taraxa",{enumerable:!0,get:function(){return lJ.taraxa}});var lQ=r(64716);Object.defineProperty(t,"taraxaTestnet",{enumerable:!0,get:function(){return lQ.taraxaTestnet}});var l0=r(99972);Object.defineProperty(t,"teaSepolia",{enumerable:!0,get:function(){return l0.teaSepolia}});var l1=r(52477);Object.defineProperty(t,"telcoinTestnet",{enumerable:!0,get:function(){return l1.telcoinTestnet}});var l2=r(90710);Object.defineProperty(t,"telos",{enumerable:!0,get:function(){return l2.telos}});var l3=r(67083);Object.defineProperty(t,"telosTestnet",{enumerable:!0,get:function(){return l3.telosTestnet}});var l6=r(97731);Object.defineProperty(t,"tempo",{enumerable:!0,get:function(){return l6.tempo}}),Object.defineProperty(t,"tempoMainnet",{enumerable:!0,get:function(){return l6.tempo}});var l5=r(18282);Object.defineProperty(t,"tempoDevnet",{enumerable:!0,get:function(){return l5.tempoDevnet}});var l8=r(1547);Object.defineProperty(t,"tempoLocalnet",{enumerable:!0,get:function(){return l8.tempoLocalnet}});var l7=r(46606);Object.defineProperty(t,"tempoModerato",{enumerable:!0,get:function(){return l7.tempoModerato}}),Object.defineProperty(t,"tempoTestnet",{enumerable:!0,get:function(){return l7.tempoModerato}});var l4=r(27497);Object.defineProperty(t,"tenet",{enumerable:!0,get:function(){return l4.tenet}});var l9=r(99246);Object.defineProperty(t,"ternoa",{enumerable:!0,get:function(){return l9.ternoa}});var ce=r(10288);Object.defineProperty(t,"thaiChain",{enumerable:!0,get:function(){return ce.thaiChain}});var ct=r(40419);Object.defineProperty(t,"that",{enumerable:!0,get:function(){return ct.that}});var cr=r(1737);Object.defineProperty(t,"theta",{enumerable:!0,get:function(){return cr.theta}});var cn=r(56927);Object.defineProperty(t,"thetaTestnet",{enumerable:!0,get:function(){return cn.thetaTestnet}});var ci=r(10352);Object.defineProperty(t,"thunderCore",{enumerable:!0,get:function(){return ci.thunderCore}});var ca=r(52807);Object.defineProperty(t,"thunderTestnet",{enumerable:!0,get:function(){return ca.thunderTestnet}});var co=r(13467);Object.defineProperty(t,"tiktrixTestnet",{enumerable:!0,get:function(){return co.tiktrixTestnet}});var cs=r(40382);Object.defineProperty(t,"tomb",{enumerable:!0,get:function(){return cs.tomb}});var cl=r(55722);Object.defineProperty(t,"treasure",{enumerable:!0,get:function(){return cl.treasure}});var cc=r(43020);Object.defineProperty(t,"treasureTopaz",{enumerable:!0,get:function(){return cc.treasureTopaz}});var cu=r(94520);Object.defineProperty(t,"tron",{enumerable:!0,get:function(){return cu.tron}});var cd=r(11418);Object.defineProperty(t,"tronNile",{enumerable:!0,get:function(){return cd.tronNile}});var cf=r(23298);Object.defineProperty(t,"tronShasta",{enumerable:!0,get:function(){return cf.tronShasta}});var cp=r(34275);Object.defineProperty(t,"ubiq",{enumerable:!0,get:function(){return cp.ubiq}});var ch=r(71382);Object.defineProperty(t,"ultra",{enumerable:!0,get:function(){return ch.ultra}});var cm=r(30301);Object.defineProperty(t,"ultraTestnet",{enumerable:!0,get:function(){return cm.ultraTestnet}});var cb=r(11350);Object.defineProperty(t,"ultron",{enumerable:!0,get:function(){return cb.ultron}});var cy=r(26118);Object.defineProperty(t,"ultronTestnet",{enumerable:!0,get:function(){return cy.ultronTestnet}});var cg=r(93866);Object.defineProperty(t,"unichain",{enumerable:!0,get:function(){return cg.unichain}});var cv=r(25580);
111Object.defineProperty(t,"unichainSepolia",{enumerable:!0,get:function(){return cv.unichainSepolia}});var cw=r(49005);Object.defineProperty(t,"unique",{enumerable:!0,get:function(){return cw.unique}});var cE=r(22298);Object.defineProperty(t,"uniqueOpal",{enumerable:!0,get:function(){return cE.uniqueOpal}});var cx=r(65167);Object.defineProperty(t,"uniqueQuartz",{enumerable:!0,get:function(){return cx.uniqueQuartz}});var cA=r(95967);Object.defineProperty(t,"unreal",{enumerable:!0,get:function(){return cA.unreal}});var ck=r(43642);Object.defineProperty(t,"valygoNft",{enumerable:!0,get:function(){return ck.valygoNft}});var cP=r(67799);Object.defineProperty(t,"valygoSmartchain",{enumerable:!0,get:function(){return cP.valygoSmartchain}});var cC=r(71647);Object.defineProperty(t,"vana",{enumerable:!0,get:function(){return cC.vana}});var cT=r(20750);Object.defineProperty(t,"vanaMoksha",{enumerable:!0,get:function(){return cT.vanaMoksha}});var c_=r(56953);Object.defineProperty(t,"vanar",{enumerable:!0,get:function(){return c_.vanar}});var cO=r(9720);Object.defineProperty(t,"vechain",{enumerable:!0,get:function(){return cO.vechain}});var cS=r(30856);Object.defineProperty(t,"velas",{enumerable:!0,get:function(){return cS.velas}});var cI=r(68625);Object.defineProperty(t,"viction",{enumerable:!0,get:function(){return cI.viction}});var cB=r(13580);Object.defineProperty(t,"victionTestnet",{enumerable:!0,get:function(){return cB.victionTestnet}});var cj=r(66416);Object.defineProperty(t,"vision",{enumerable:!0,get:function(){return cj.vision}});var cM=r(1762);Object.defineProperty(t,"visionTestnet",{enumerable:!0,get:function(){return cM.visionTestnet}});var cR=r(58803);Object.defineProperty(t,"wanchain",{enumerable:!0,get:function(){return cR.wanchain}});var cN=r(78806);Object.defineProperty(t,"wanchainTestnet",{enumerable:!0,get:function(){return cN.wanchainTestnet}});var cU=r(96044);Object.defineProperty(t,"weaveVMAlphanet",{enumerable:!0,get:function(){return cU.weaveVMAlphanet}});var cz=r(30920);Object.defineProperty(t,"wemix",{enumerable:!0,get:function(){return cz.wemix}});var cD=r(62291);Object.defineProperty(t,"wemixTestnet",{enumerable:!0,get:function(){return cD.wemixTestnet}});var cF=r(71663);Object.defineProperty(t,"westendAssetHub",{enumerable:!0,get:function(){return cF.westendAssetHub}});var cL=r(86174);Object.defineProperty(t,"whitechain",{enumerable:!0,get:function(){return cL.whitechain}});var cH=r(71679);Object.defineProperty(t,"whitechainSepolia",{enumerable:!0,get:function(){return cH.whitechainSepolia}});var cG=r(29770);Object.defineProperty(t,"whitechainTestnet",{enumerable:!0,get:function(){return cG.whitechainTestnet}});var cq=r(27336);Object.defineProperty(t,"wmcTestnet",{enumerable:!0,get:function(){return cq.wmcTestnet}});var c$=r(72459);Object.defineProperty(t,"worldchain",{enumerable:!0,get:function(){return c$.worldchain}});var cK=r(95474);Object.defineProperty(t,"worldchainSepolia",{enumerable:!0,get:function(){return cK.worldchainSepolia}});var cZ=r(10044);Object.defineProperty(t,"worldLand",{enumerable:!0,get:function(){return cZ.worldLand}});var cV=r(17538);Object.defineProperty(t,"xai",{enumerable:!0,get:function(){return cV.xai}});var cW=r(87612);Object.defineProperty(t,"xaiTestnet",{enumerable:!0,get:function(){return cW.xaiTestnet}});var cY=r(89399);Object.defineProperty(t,"xdc",{enumerable:!0,get:function(){return cY.xdc}});var cX=r(18690);Object.defineProperty(t,"xdcTestnet",{enumerable:!0,get:function(){return cX.xdcTestnet}});var cJ=r(18925);Object.defineProperty(t,"xgr",{enumerable:!0,get:function(){return cJ.xgr}});var cQ=r(95740);Object.defineProperty(t,"xLayer",{enumerable:!0,get:function(){return cQ.xLayer}});var c0=r(13786);Object.defineProperty(t,"x1Testnet",{enumerable:!0,get:function(){return c0.x1Testnet}}),Object.defineProperty(t,"xLayerTestnet",{enumerable:!0,get:function(){return c0.xLayerTestnet}});var c1=r(72628);Object.defineProperty(t,"xoneMainnet",{enumerable:!0,get:function(){return c1.xoneMainnet}});var c2=r(44702);Object.defineProperty(t,"xoneTestnet",{enumerable:!0,get:function(){return c2.xoneTestnet}});var c3=r(91237);Object.defineProperty(t,"xphereMainnet",{enumerable:!0,get:function(){return c3.xphereMainnet}});var c6=r(95060);Object.defineProperty(t,"xphereTestnet",{enumerable:!0,get:function(){return c6.xphereTestnet}});var c5=r(70701);Object.defineProperty(t,"xpla",{enumerable:!0,get:function(){return c5.xpla}});var c8=r(86965);Object.defineProperty(t,"xrOne",{enumerable:!0,get:function(){return c8.xrOne}});var c7=r(91716);Object.defineProperty(t,"xrplevm",{enumerable:!0,get:function(){return c7.xrplevm}});var c4=r(77247);Object.defineProperty(t,"xrplevmDevnet",{enumerable:!0,get:function(){return c4.xrplevmDevnet}});var c9=r(80139);Object.defineProperty(t,"xrplevmTestnet",{enumerable:!0,get:function(){return c9.xrplevmTestnet}});var ue=r(89636);Object.defineProperty(t,"xrSepolia",{enumerable:!0,get:function(){return ue.xrSepolia}});var ut=r(11462);Object.defineProperty(t,"ynxTestnet",{enumerable:!0,get:function(){return ut.ynxTestnet}});var ur=r(20308);Object.defineProperty(t,"yooldoVerse",{enumerable:!0,get:function(){return ur.yooldoVerse}});var un=r(22303);Object.defineProperty(t,"yooldoVerseTestnet",{enumerable:!0,get:function(){return un.yooldoVerseTestnet}});var ui=r(11408);Object.defineProperty(t,"zenchainTestnet",{enumerable:!0,get:function(){return ui.zenchainTestnet}});var ua=r(51867);Object.defineProperty(t,"zeniq",{enumerable:!0,get:function(){return ua.zeniq}});var uo=r(77950);Object.defineProperty(t,"zeroNetwork",{enumerable:!0,get:function(){return uo.zeroNetwork}});var us=r(54449);Object.defineProperty(t,"zetachain",{enumerable:!0,get:function(){return us.zetachain}});var ul=r(80847);Object.defineProperty(t,"zetachainAthensTestnet",{enumerable:!0,get:function(){return ul.zetachainAthensTestnet}});var uc=r(53924);Object.defineProperty(t,"zhejiang",{enumerable:!0,get:function(){return uc.zhejiang}});var uu=r(47722);Object.defineProperty(t,"zilliqa",{enumerable:!0,get:function(){return uu.zilliqa}});var ud=r(46324);Object.defineProperty(t,"zilliqaTestnet",{enumerable:!0,get:function(){return ud.zilliqaTestnet}});var uf=r(80830);Object.defineProperty(t,"zircuit",{enumerable:!0,get:function(){return uf.zircuit}});var up=r(68679);Object.defineProperty(t,"zircuitGarfieldTestnet",{enumerable:!0,get:function(){return up.zircuitGarfieldTestnet}});var uh=r(80344);Object.defineProperty(t,"zkFair",{enumerable:!0,get:function(){return uh.zkFair}});var um=r(55041);Object.defineProperty(t,"zkFairTestnet",{enumerable:!0,get:function(){return um.zkFairTestnet}});var ub=r(47454);Object.defineProperty(t,"zkLinkNova",{enumerable:!0,get:function(){return ub.zkLinkNova}});var uy=r(31276);
111Object.defineProperty(t,"zkLinkNovaSepoliaTestnet",{enumerable:!0,get:function(){return uy.zkLinkNovaSepoliaTestnet}});var ug=r(68903);Object.defineProperty(t,"zkSync",{enumerable:!0,get:function(){return ug.zksync}}),Object.defineProperty(t,"zksync",{enumerable:!0,get:function(){return ug.zksync}});var uv=r(36522);Object.defineProperty(t,"zkSyncInMemoryNode",{enumerable:!0,get:function(){return uv.zksyncInMemoryNode}}),Object.defineProperty(t,"zksyncInMemoryNode",{enumerable:!0,get:function(){return uv.zksyncInMemoryNode}});var uw=r(51492);Object.defineProperty(t,"zksyncLocalCustomHyperchain",{enumerable:!0,get:function(){return uw.zksyncLocalCustomHyperchain}});var uE=r(70898);Object.defineProperty(t,"zksyncLocalHyperchain",{enumerable:!0,get:function(){return uE.zksyncLocalHyperchain}});var ux=r(29144);Object.defineProperty(t,"zksyncLocalHyperchainL1",{enumerable:!0,get:function(){return ux.zksyncLocalHyperchainL1}});var uA=r(24554);Object.defineProperty(t,"zkSyncLocalNode",{enumerable:!0,get:function(){return uA.zksyncLocalNode}}),Object.defineProperty(t,"zksyncLocalNode",{enumerable:!0,get:function(){return uA.zksyncLocalNode}});var uk=r(24368);Object.defineProperty(t,"zkSyncSepoliaTestnet",{enumerable:!0,get:function(){return uk.zksyncSepoliaTestnet}}),Object.defineProperty(t,"zksyncSepoliaTestnet",{enumerable:!0,get:function(){return uk.zksyncSepoliaTestnet}});var uP=r(56428);Object.defineProperty(t,"zkXPLA",{enumerable:!0,get:function(){return uP.zkXPLA}});var uC=r(39533);Object.defineProperty(t,"zkXPLATestnet",{enumerable:!0,get:function(){return uC.zkXPLATestnet}});var uT=r(32287);Object.defineProperty(t,"zora",{enumerable:!0,get:function(){return uT.zora}});var u_=r(56530);Object.defineProperty(t,"zoraSepolia",{enumerable:!0,get:function(){return u_.zoraSepolia}});var uO=r(56027);Object.defineProperty(t,"zoraTestnet",{enumerable:!0,get:function(){return uO.zoraTestnet}})},25944:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=t.extractChain=t.defineChain=t.assertCurrentChain=void 0;var n=r(53039);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return n.assertCurrentChain}});var i=r(71338);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return i.defineChain}});var a=r(20678);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return a.extractChain}});var o=r(80660);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return o.getChainContractAddress}})},43465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){let{batch:t,chain:r,ccipRead:o,dataSuffix:s,key:l="base",name:c="Base Client",tokens:u,type:d="base"}=e,f=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),p=r?.blockTime??12e3,h=e.pollingInterval??Math.min(Math.max(Math.floor(p/2),500),4e3),m=e.cacheTime??h,b=e.account?(0,n.parseAccount)(e.account):void 0,{config:y,request:g,value:v}=e.transport({account:b,chain:r,pollingInterval:h}),w={account:b,batch:t,cacheTime:m,ccipRead:o,chain:r,dataSuffix:s,key:l,name:c,pollingInterval:h,request:g,tokens:u,transport:{...y,...v},type:d,uid:(0,i.uid)(),...f?{experimental_blockTag:f}:{}};return Object.assign(w,{extend:function e(t){return r=>{let n=r(t);for(let e in w)delete n[e];let i={...t,...n};for(let e in n){let r=t[e],o=n[e];a(r)&&a(o)&&(i[e]={...r,...o})}return Object.assign(i,{extend:e(i)})}}(w)})},t.bindActionDecorators=function(e,t){let r=(r={})=>t(e,r);for(let n of["call","calls","callWithPeriod","estimateGas","prepare","prepareRecipient","predict","simulate"])if(Object.hasOwn(t,n)){let i=t[n];r[n]=(t={})=>1===i.length?i(t):i(e,t)}for(let e of["extractEvent","extractEvents"])Object.hasOwn(t,e)&&(r[e]=t[e]);return r},t.rpcSchema=function(){return null};let n=r(21499),i=r(31263);function a(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}},86292:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=function(e){let{key:t="public",name:r="Public Client"}=e;return(0,n.createClient)({...e,key:t,name:r,type:"publicClient"}).extend(i.publicActions)};let n=r(43465),i=r(74291)},67321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=function(e){let{key:t="test",name:r="Test Client",mode:a}=e;return(0,n.createClient)({...e,key:t,name:r,type:"testClient"}).extend(e=>({mode:a,...(0,i.testActions)({mode:a})(e)}))};let n=r(43465),i=r(59071)},37269:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=function(e){let{key:t="wallet",name:r="Wallet Client",transport:a}=e;return(0,n.createClient)({...e,key:t,name:r,transport:a,type:"walletClient"}).extend(i.walletActions)};let n=r(43465),i=r(79206)},74291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=function(e){return{call:t=>(0,l.call)(e,t),createAccessList:t=>(0,c.createAccessList)(e,t),createBlockFilter:()=>(0,u.createBlockFilter)(e),createContractEventFilter:t=>(0,d.createContractEventFilter)(e,t),createEventFilter:t=>(0,f.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,p.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,b.estimateGas)(e,t),getBalance:t=>(0,v.getBalance)(e,t),getBlobBaseFee:()=>(0,w.getBlobBaseFee)(e),getBlock:t=>(0,E.getBlock)(e,t),getBlockNumber:t=>(0,x.getBlockNumber)(e,t),getBlockReceipts:t=>(0,A.getBlockReceipts)(e,t),getBlockTransactionCount:t=>(0,k.getBlockTransactionCount)(e,t),getBytecode:t=>(0,C.getCode)(e,t),getChainId:()=>(0,P.getChainId)(e),getCode:t=>(0,C.getCode)(e,t),getContractEvents:t=>(0,T.getContractEvents)(e,t),getDelegation:t=>(0,_.getDelegation)(e,t),getEip712Domain:t=>(0,O.getEip712Domain)(e,t),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,i.getEnsAvatar)(e,t),getEnsName:t=>(0,a.getEnsName)(e,t),getEnsResolver:t=>(0,o.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,S.getFeeHistory)(e,t),estimateFeesPerGas:t=>(0,m.estimateFeesPerGas)(e,t),getFilterChanges:t=>(0,I.getFilterChanges)(e,t),getFilterLogs:t=>(0,B.getFilterLogs)(e,t),getGasPrice:()=>(0,j.getGasPrice)(e),getLogs:t=>(0,M.getLogs)(e,t),getProof:t=>(0,R.getProof)(e,t),estimateMaxPriorityFeePerGas:t=>(0,y.estimateMaxPriorityFeePerGas)(e,t),fillTransaction:t=>(0,g.fillTransaction)(e,t),getRawTransaction:t=>(0,N.getRawTransaction)(e,t),getStorageAt:t=>(0,U.getStorageAt)(e,t),getTransaction:t=>(0,z.getTransaction)(e,t),getTransactionConfirmations:t=>(0,D.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,F.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,L.getTransactionReceipt)(e,t),multicall:t=>(0,H.multicall)(e,t),prepareTransactionRequest:t=>(0,eo.prepareTransactionRequest)(e,t),readContract:t=>(0,G.readContract)(e,t),sendRawTransaction:t=>(0,es.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,el.sendRawTransactionSync)(e,t),simulate:t=>(0,q.simulateBlocks)(e,t),simulateBlocks:t=>(0,q.simulateBlocks)(e,t),simulateCalls:t=>(0,$.simulateCalls)(e,t),simulateContract:t=>(0,K.simulateContract)(e,t),verifyHash:t=>(0,V.verifyHash)(e,t),verifyMessage:t=>(0,W.verifyMessage)(e,t),verifySiweMessage:t=>(0,ei.verifySiweMessage)(e,t),verifyTypedData:t=>(0,Y.verifyTypedData)(e,t),uninstallFilter:t=>(0,Z.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,X.waitForTransactionReceipt)(e,t),watchBlockHeaders:t=>(0,J.watchBlockHeaders)(e,t),watchBlocks:t=>(0,ee.watchBlocks)(e,t),watchBlockNumber:t=>(0,Q.watchBlockNumber)(e,t),watchContractEvent:t=>(0,et.watchContractEvent)(e,t),watchEvent:t=>(0,er.watchEvent)(e,t),watchPendingTransactions:t=>(0,en.watchPendingTransactions)(e,t),token:{getAllowance:(0,ec.bindActionDecorators)(e,ea.getAllowance),getBalance:(0,ec.bindActionDecorators)(e,ea.getBalance),getMetadata:(0,ec.bindActionDecorators)(e,ea.getMetadata),getTotalSupply:(0,ec.bindActionDecorators)(e,ea.getTotalSupply)}}};let n=r(59886),i=r(34150),a=r(13693),o=r(78840),s=r(35080),l=r(53490),c=r(28523),u=r(7754),d=r(61677),f=r(47142),p=r(8460),h=r(99019),m=r(72642),b=r(73430),y=r(7365),g=r(35e3),v=r(2307),w=r(47518),E=r(28559),x=r(56747),A=r(29709),k=r(80862),P=r(3204),C=r(89102),T=r(90208),_=r(53037),O=r(56382),S=r(24),I=r(55293),B=r(17699),j=r(26682),M=r(19734),R=r(1040),N=r(358),U=r(36447),z=r(84187),D=r(36199),F=r(7804),L=r(82911),H=r(33473),G=r(13438),q=r(53744),$=r(53027),K=r(71613),Z=r(14564),V=r(33170),W=r(79413),Y=r(3918),X=r(53820),J=r(6607),Q=r(35467),ee=r(88858),et=r(70),er=r(14515),en=r(17559),ei=r(56701),ea=r(99683),eo=r(38280),es=r(55093),el=r(37228),ec=r(43465)},59071:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=function({mode:e}){return t=>{let r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),dumpState:()=>(0,i.dumpState)(r),getAutomine:()=>(0,a.getAutomine)(r),getTxpoolContent:()=>(0,o.getTxpoolContent)(r),getTxpoolStatus:()=>(0,s.getTxpoolStatus)(r),impersonateAccount:e=>(0,l.impersonateAccount)(r,e),increaseTime:e=>(0,c.increaseTime)(r,e),inspectTxpool:()=>(0,u.inspectTxpool)(r),loadState:e=>(0,d.loadState)(r,e),mine:e=>(0,f.mine)(r,e),removeBlockTimestampInterval:()=>(0,p.removeBlockTimestampInterval)(r),reset:e=>(0,h.reset)(r,e),revert:e=>(0,m.revert)(r,e),sendUnsignedTransaction:e=>(0,b.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,y.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,v.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,w.setBlockTimestampInterval)(r,e),setCode:e=>(0,E.setCode)(r,e),setCoinbase:e=>(0,x.setCoinbase)(r,e),setIntervalMining:e=>(0,A.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,k.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,P.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,C.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,T.setNextBlockTimestamp)(r,e),setNonce:e=>(0,_.setNonce)(r,e),setRpcUrl:e=>(0,O.setRpcUrl)(r,e),setStorageAt:e=>(0,S.setStorageAt)(r,e),snapshot:()=>(0,I.snapshot)(r),stopImpersonatingAccount:e=>(0,B.stopImpersonatingAccount)(r,e)}}};let n=r(29417),i=r(75186),a=r(48758),o=r(78294),s=r(12128),l=r(38358),c=r(31954),u=r(85872),d=r(54246),f=r(55286),p=r(37354),h=r(69391),m=r(62053),b=r(19645),y=r(35785),g=r(28458),v=r(8226),w=r(13134),E=r(22952),x=r(25949),A=r(82497),k=r(32843),P=r(73755),C=r(10067),T=r(51633),_=r(81983),O=r(32720),S=r(88466),I=r(62540),B=r(68656)},79206:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=function(e){return{addChain:t=>(0,o.addChain)(e,t),deployContract:t=>(0,s.deployContract)(e,t),fillTransaction:t=>(0,n.fillTransaction)(e,t),getAddresses:()=>(0,l.getAddresses)(e),getCallsStatus:t=>(0,c.getCallsStatus)(e,t),getCapabilities:t=>(0,u.getCapabilities)(e,t),getChainId:()=>(0,i.getChainId)(e),getPermissions:()=>(0,d.getPermissions)(e),prepareAuthorization:t=>(0,f.prepareAuthorization)(e,t),prepareTransactionRequest:t=>(0,p.prepareTransactionRequest)(e,t),requestAddresses:()=>(0,h.requestAddresses)(e),requestPermissions:t=>(0,m.requestPermissions)(e,t),sendCalls:t=>(0,b.sendCalls)(e,t),sendCallsSync:t=>(0,y.sendCallsSync)(e,t),sendRawTransaction:t=>(0,g.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,v.sendRawTransactionSync)(e,t),sendTransaction:t=>(0,w.sendTransaction)(e,t),sendTransactionSync:t=>(0,E.sendTransactionSync)(e,t),showCallsStatus:t=>(0,x.showCallsStatus)(e,t),signAuthorization:t=>(0,A.signAuthorization)(e,t),signMessage:t=>(0,k.signMessage)(e,t),signTransaction:t=>(0,P.signTransaction)(e,t),signTypedData:t=>(0,C.signTypedData)(e,t),switchChain:t=>(0,T.switchChain)(e,t),waitForCallsStatus:t=>(0,_.waitForCallsStatus)(e,t),watchAsset:t=>(0,O.watchAsset)(e,t),writeContract:t=>(0,S.writeContract)(e,t),writeContractSync:t=>(0,I.writeContractSync)(e,t),token:{approve:(0,B.bindActionDecorators)(e,a.approve),approveSync:(0,B.bindActionDecorators)(e,a.approveSync),transfer:(0,B.bindActionDecorators)(e,a.transfer),transferSync:(0,B.bindActionDecorators)(e,a.transferSync)}}};let n=r(35e3),i=r(3204),a=r(99683),o=r(36205),s=r(39015),l=r(46757),c=r(34610),u=r(7542),d=r(33283),f=r(46805),p=r(38280),h=r(26631),m=r(85305),b=r(72657),y=r(93985),g=r(55093),v=r(37228),w=r(22922),E=r(71017),x=r(26591),A=r(30623),k=r(88088),P=r(74206),C=r(90611),T=r(1116),_=r(35836),O=r(37063),S=r(34451),I=r(58358),B=r(43465)},95597:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=function({key:e,methods:t,name:r,request:a,retryCount:o=3,retryDelay:s=150,timeout:l,type:c},u){let d=(0,i.uid)();return{config:{key:e,methods:t,name:r,request:a,retryCount:o,retryDelay:s,timeout:l,type:c},request:(0,n.buildRequest)(a,{methods:t,retryCount:o,retryDelay:s,uid:d}),value:u}};let n=r(54768),i=r(31263)},15920:function(e,t,r){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.custom=function(e,t={}){let{key:r="custom",methods:i,name:a="Custom Provider",retryDelay:o}=t;return({retryCount:s})=>(0,n.createTransport)({key:r,methods:i,name:a,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:o,type:"custom"})};let n=r(95597)},35138:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=function(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,shouldThrow:a=s,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:s=4e3,timeout:d,...f})=>{let p=e,h=()=>{},m=(0,o.createTransport)({key:r,name:n,async request({method:e,params:r}){let n;let i=async(o=0)=>{let s=p[o]({...f,chain:t,retryCount:0,timeout:d});try{let t=await s.request({method:e,params:r});return h({method:e,params:r,response:t,transport:s,status:"success"}),t}catch(l){if(h({error:l,method:e,params:r,transport:s,status:"error"}),a(l)||o===p.length-1||!(n??=p.slice(o+1).some(r=>{let{include:n,exclude:i}=r({chain:t}).config.methods||{};return n?n.includes(e):!i||!i.includes(e)})))throw l;return i(o+1)}};return i()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>h=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};l({chain:t,interval:e.interval??s,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}},t.shouldThrow=s,t.rankTransports=l;let n=r(87695),i=r(875),a=r(70491),o=r(95597);function s(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===i.TransactionRejectedRpcError.code||e.code===i.UserRejectedRequestError.code||e.code===i.WalletConnectSessionSettlementError.code||n.ExecutionRevertedError.nodeMessage.test(e.message)||5e3===e.code))}function l({chain:e,interval:t=4e3,onTransports:r,ping:n,sampleCount:i=10,timeout:o=1e3,transports:s,weights:l={}}){let{stability:c=.7,latency:u=.3}=l,d=[],f=async()=>{let l=await Promise.all(s.map(async t=>{let r,i;let a=t({chain:e,retryCount:0,timeout:o}),s=Date.now();try{await (n?n({transport:a}):a.request({method:"net_listening"})),i=1}catch{i=0}finally{r=Date.now()}return{latency:r-s,success:i}}));d.push(l),d.length>i&&d.shift();let p=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));r(s.map((e,t)=>{let r=d.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=d.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[u*(1-n/p)+c*a,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,a.wait)(t),f()};f()}},87910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=function(e,t={}){let{batch:r,fetchFn:u,fetchOptions:d,key:f="http",maxResponseBodySize:p,methods:h,name:m="HTTP JSON-RPC",onFetchRequest:b,onFetchResponse:y,retryDelay:g,raw:v}=t;return({chain:w,retryCount:E,timeout:x})=>{let{batchSize:A=1e3,wait:k=0}="object"==typeof r?r:{},P=t.retryCount??E,C=x??t.timeout??1e4,T=e||w?.rpcUrls.default.http[0];if(!T)throw new i.UrlRequiredError;let _=(0,o.getHttpRpcClient)(T,{fetchFn:u,fetchOptions:d,maxResponseBodySize:p,onRequest:b,onResponse:y,timeout:C});return(0,s.createTransport)({key:f,methods:h,name:m,async request({method:e,params:t},i){let o={method:e,params:t},s=i?.signal?{signal:i.signal}:void 0,{schedule:u}=(0,a.createBatchScheduler)({id:`${T}.${function(e){if(!e)return"default";let t=c.get(e);if(void 0!==t)return t;let r=l++;return c.set(e,r),r}(i?.signal)}`,wait:k,shouldSplitBatch:e=>e.length>A,fn:e=>_.request({body:e,fetchOptions:s}),sort:(e,t)=>e.id-t.id}),d=async e=>r?u(e):[await _.request({body:e,fetchOptions:s})],[{error:f,result:p}]=await d(o);if(v)return{error:f,result:p};if(f)throw new n.RpcRequestError({body:o,error:f,url:T});return p},retryCount:P,retryDelay:g,timeout:C,type:"http"},{fetchOptions:d,url:T})}};let n=r(62495),i=r(93672),a=r(92598),o=r(59332),s=r(95597),l=0,c=new WeakMap},82987:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=function(e,t={}){let{keepAlive:r,key:l="webSocket",methods:c,name:u="WebSocket JSON-RPC",reconnect:d,retryDelay:f}=t;return({chain:p,retryCount:h,timeout:m})=>{let b=t.retryCount??h,y=m??t.timeout??1e4,g=e||p?.rpcUrls.default.webSocket?.[0],v={keepAlive:r,reconnect:d};if(!g)throw new i.UrlRequiredError;return(0,s.createTransport)({key:l,methods:c,name:u,async request({method:e,params:t}){let r={method:e,params:t},i=await (0,o.getWebSocketRpcClient)(g,v),{error:a,result:s}=await i.requestAsync({body:r,timeout:y});if(a)throw new n.RpcRequestError({body:r,error:a,url:g});return s},retryCount:b,retryDelay:f,timeout:y,type:"webSocket"},{getSocket:()=>(0,a.getSocket)(g),getRpcClient:()=>(0,o.getWebSocketRpcClient)(g,v),async subscribe({params:e,onData:t,onError:r}){let n=await (0,o.getWebSocketRpcClient)(g,v),{result:i}=await new Promise((i,a)=>n.request({body:{method:"eth_subscribe",params:e},onError(e){a(e),r?.(e)},onResponse(e){if(e.error){a(e.error),r?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>n.request({body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}};let n=r(62495),i=r(93672),a=r(16008),o=r(78219),s=r(95597)},10878:function(e,t){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.erc4626Abi=t.erc721Abi=t.erc1155Abi=t.erc20Abi_bytes32=t.erc20Abi=t.erc6492SignatureValidatorAbi=t.erc1271Abi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.batchGatewayAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],t.batchGatewayAbi=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}];let r=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.erc1271Abi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.erc6492SignatureValidatorAbi=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],t.erc20Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}
111],t.erc20Abi_bytes32=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],t.erc1155Abi=[{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ERC1155InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC1155InvalidApprover",type:"error"},{inputs:[{internalType:"uint256",name:"idsLength",type:"uint256"},{internalType:"uint256",name:"valuesLength",type:"uint256"}],name:"ERC1155InvalidArrayLength",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"ERC1155InvalidOperator",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC1155InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC1155InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC1155MissingApprovalForAll",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:"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:"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:"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"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}
111],t.erc721Abi=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],t.erc4626Abi=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]},97e3:function(e,t){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=t.ethAddress=void 0,t.ethAddress="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",t.zeroAddress="0x0000000000000000000000000000000000000000"},56849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxBytesPerTransaction=t.bytesPerBlob=t.fieldElementsPerBlob=t.bytesPerFieldElement=void 0,t.bytesPerFieldElement=32,t.fieldElementsPerBlob=4096,t.bytesPerBlob=t.bytesPerFieldElement*t.fieldElementsPerBlob,t.maxBytesPerTransaction=6*t.bytesPerBlob-1-1*t.fieldElementsPerBlob*6},32758:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroHash=t.erc6492MagicBytes=void 0,t.erc6492MagicBytes="0x6492649264926492649264926492649264926492649264926492649264926492",t.zeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},73413:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},15079:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall3Bytecode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=void 0,t.deploylessCallViaBytecodeBytecode="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",t.deploylessCallViaFactoryBytecode="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",t.erc6492SignatureValidatorByteCode
vendor: 3,374 bytes, line 111
111="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",
111t.multicall3Bytecode="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
111150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},27302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionedHashVersionKzg=void 0,t.versionedHashVersionKzg=1},24796:function(e,t){"use strict";
111Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=2n**(8n-1n)-1n,t.maxInt16=2n**(16n-1n)-1n,t.maxInt24=2n**(24n-1n)-1n,t.maxInt32=2n**(32n-1n)-1n,t.maxInt40=2n**(40n-1n)-1n,t.maxInt48=2n**(48n-1n)-1n,t.maxInt56=2n**(56n-1n)-1n,t.maxInt64=2n**(64n-1n)-1n,t.maxInt72=2n**(72n-1n)-1n,t.maxInt80=2n**(80n-1n)-1n,t.maxInt88=2n**(88n-1n)-1n,t.maxInt96=2n**(96n-1n)-1n,t.maxInt104=2n**(104n-1n)-1n,t.maxInt112=2n**(112n-1n)-1n,t.maxInt120=2n**(120n-1n)-1n,t.maxInt128=2n**(128n-1n)-1n,t.maxInt136=2n**(136n-1n)-1n,t.maxInt144=2n**(144n-1n)-1n,t.maxInt152=2n**(152n-1n)-1n,t.maxInt160=2n**(160n-1n)-1n,t.maxInt168=2n**(168n-1n)-1n,t.maxInt176=2n**(176n-1n)-1n,t.maxInt184=2n**(184n-1n)-1n,t.maxInt192=2n**(192n-1n)-1n,t.maxInt200=2n**(200n-1n)-1n,t.maxInt208=2n**(208n-1n)-1n,t.maxInt216=2n**(216n-1n)-1n,t.maxInt224=2n**(224n-1n)-1n,t.maxInt232=2n**(232n-1n)-1n,t.maxInt240=2n**(240n-1n)-1n,t.maxInt248=2n**(248n-1n)-1n,t.maxInt256=2n**(256n-1n)-1n,t.minInt8=-(2n**(8n-1n)),t.minInt16=-(2n**(16n-1n)),t.minInt24=-(2n**(24n-1n)),t.minInt32=-(2n**(32n-1n)),t.minInt40=-(2n**(40n-1n)),t.minInt48=-(2n**(48n-1n)),t.minInt56=-(2n**(56n-1n)),t.minInt64=-(2n**(64n-1n)),t.minInt72=-(2n**(72n-1n)),t.minInt80=-(2n**(80n-1n)),t.minInt88=-(2n**(88n-1n)),t.minInt96=-(2n**(96n-1n)),t.minInt104=-(2n**(104n-1n)),t.minInt112=-(2n**(112n-1n)),t.minInt120=-(2n**(120n-1n)),t.minInt128=-(2n**(128n-1n)),t.minInt136=-(2n**(136n-1n)),t.minInt144=-(2n**(144n-1n)),t.minInt152=-(2n**(152n-1n)),t.minInt160=-(2n**(160n-1n)),t.minInt168=-(2n**(168n-1n)),t.minInt176=-(2n**(176n-1n)),t.minInt184=-(2n**(184n-1n)),t.minInt192=-(2n**(192n-1n)),t.minInt200=-(2n**(200n-1n)),t.minInt208=-(2n**(208n-1n)),t.minInt216=-(2n**(216n-1n)),t.minInt224=-(2n**(224n-1n)),t.minInt232=-(2n**(232n-1n)),t.minInt240=-(2n**(240n-1n)),t.minInt248=-(2n**(248n-1n)),t.minInt256=-(2n**(256n-1n)),t.maxUint8=2n**8n-1n,t.maxUint16=2n**16n-1n,t.maxUint24=2n**24n-1n,t.maxUint32=2n**32n-1n,t.maxUint40=2n**40n-1n,t.maxUint48=2n**48n-1n,t.maxUint56=2n**56n-1n,t.maxUint64=2n**64n-1n,t.maxUint72=2n**72n-1n,t.maxUint80=2n**80n-1n,t.maxUint88=2n**88n-1n,t.maxUint96=2n**96n-1n,t.maxUint104=2n**104n-1n,t.maxUint112=2n**112n-1n,t.maxUint120=2n**120n-1n,t.maxUint128=2n**128n-1n,t.maxUint136=2n**136n-1n,t.maxUint144=2n**144n-1n,t.maxUint152=2n**152n-1n,t.maxUint160=2n**160n-1n,t.maxUint168=2n**168n-1n,t.maxUint176=2n**176n-1n,t.maxUint184=2n**184n-1n,t.maxUint192=2n**192n-1n,t.maxUint200=2n**200n-1n,t.maxUint208=2n**208n-1n,t.maxUint216=2n**216n-1n,t.maxUint224=2n**224n-1n,t.maxUint232=2n**232n-1n,t.maxUint240=2n**240n-1n,t.maxUint248=2n**248n-1n,t.maxUint256=2n**256n-1n},36227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invali
111d type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},66529:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.presignMessagePrefix=void 0,t.presignMessagePrefix="\x19Ethereum Signed Message:\n"},71455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},43279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiItemAmbiguityError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;let n=r(52162),i=r(62221),a=r(63392);class o extends a.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=o;class s extends a.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class l extends a.BaseError{constructor({data:e,size:t}){super(`Data size of ${t}
111 bytes is invalid. 112Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`],name:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=l;class c extends a.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=c;class u extends a.BaseError{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}t.AbiDecodingZeroDataError=u;class d extends a.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 113Expected length: ${e} 114Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends a.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class p extends a.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 115Expected length (params): ${e} 116Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=p;class h extends a.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 117Cannot encode error result without knowing what the parameter types are. 118Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=h;class m extends a.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 119Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=m;class b extends a.BaseError{constructor(e,{docsPath:t,cause:r}){super(`Encoded error signature "${e}" not found on ABI. 120Make sure you are using the correct ABI and that the error exists on it. 121You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=b;class y extends a.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=y;class g extends a.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 122Make sure you are using the correct ABI and that the event exists on it. 123You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=g;class v extends a.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 124Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class w extends a.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 125Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=w;class E extends a.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 126Cannot decode function result without knowing what the parameter types are. 127Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=E;class x extends a.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 128Make sure you are using the correct ABI and that the function exists on it. 129You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=x;class A extends a.BaseError{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
129\` in \`${(0,n.formatAbiItem)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.formatAbiItem)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}t.AbiItemAmbiguityError=A;class k extends a.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=k;class P extends a.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}t.DecodeLogDataMismatch=P;class C extends a.BaseError{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=C;class T extends a.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 130Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=T;class _ extends a.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 131Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=_;class O extends a.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}t.InvalidArrayError=O;class S extends a.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 132Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=S;class I extends a.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=I},92973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountTypeNotSupportedError=t.AccountNotFoundError=void 0;let n=r(63392);class i extends n.BaseError{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}t.AccountNotFoundError=i;class a extends n.BaseError{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}t.AccountTypeNotSupportedError=a},39878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;let n=r(63392);class i extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}t.InvalidAddressError=i},63392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0,t.setErrorConfig=function(e){i=e};let n=r(28045),i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n.version}`};class a extends Error{constructor(e,t={}){let r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof a&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n.version}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=a}
132,6526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersionedHashVersionError=t.InvalidVersionedHashSizeError=t.EmptyBlobError=t.BlobSizeTooLargeError=void 0;let n=r(27302),i=r(63392);class a extends i.BaseError{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}t.BlobSizeTooLargeError=a;class o extends i.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}t.EmptyBlobError=o;class s extends i.BaseError{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}t.InvalidVersionedHashSizeError=s;class l extends i.BaseError{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.versionedHashVersionKzg}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}t.InvalidVersionedHashVersionError=l},55452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;let n=r(63392);class i extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}t.BlockNotFoundError=i},64023:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BundleFailedError=void 0;let n=r(63392);class i extends n.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}t.BundleFailedError=i},36766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;let n=r(16283),i=r(63392),a=r(52621);class o extends i.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:o}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",o&&[" Gateway URL(s):",...o.map(e=>` ${(0,a.getUrl)(e)}`)],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}t.OffchainLookupError=o;class s extends i.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,a.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`],name:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class l extends i.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=l},57602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;let n=r(63392);class i extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=i;class a extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} â ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} â ${e.name}`],name:"ChainMismatchError"})}}t.ChainMismatchError=a;class o extends n.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}t.ChainNotFoundError=o;class s extends n.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class l extends n.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
132" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}t.InvalidChainIdError=l},17306:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;let n=r(21499),i=r(36227),a=r(40159),o=r(52162),s=r(9383),l=r(35014),c=r(29120),u=r(53632),d=r(43279),f=r(63392),p=r(4523),h=r(45742),m=r(52621);class b extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:a,gas:o,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:m,value:b,stateOverride:y}){let g=t?(0,n.parseAccount)(t):void 0,v=(0,h.prettyPrint)({from:g?.address,to:m,value:void 0!==b&&`${(0,c.formatEther)(b)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==s&&`${(0,u.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==l&&`${(0,u.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,u.formatGwei)(d)} gwei`,nonce:f});y&&(v+=` 133${(0,p.prettyStateOverride)(y)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
133Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.CallExecutionError=b;class y extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:c}){let u=(0,l.getAbiItem)({abi:t,args:r,name:a}),d=u?(0,s.formatAbiItemWithArgs)({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=u?(0,o.formatAbiItem)(u,{includeName:!0}):void 0,p=(0,h.prettyPrint)({address:n&&(0,m.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=c}}t.ContractFunctionExecutionError=y;class g extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n,cause:l}){let c,u,f,p,h;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:c}=u=(0,a.decodeErrorResult)({abi:e,data:t,cause:l});if("Error"===n)p=c[0];else if("Panic"===n){let[e]=c;p=i.panicReasons[e]}else{let e=r?(0,o.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;f=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){c=e}else n&&(p=n);c instanceof d.AbiErrorSignatureNotFoundError&&(h=c.signature,f=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${h}.`]),super(p&&"execution reverted"!==p||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,p||h].join("\n"):`The contract function "${r}" reverted.`,{cause:c??l,metaMessages:f,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=t,this.reason=p,this.signature=h}}t.ContractFunctionRevertedError=g;class v extends f.BaseError{constructor({functionName:e,cause:t}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:t})}}t.ContractFunctionZeroDataError=v;class w extends f.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}t.CounterfactualDeploymentFailedError=w;class E extends f.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=E},97787:function(e,t,r){"use strict";
133Object.defineProperty(t,"__esModule",{value:!0}),t.RecursiveReadLimitExceededError=t.PositionOutOfBoundsError=t.NegativeOffsetError=void 0;let n=r(63392);class i extends n.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}t.NegativeOffsetError=i;class a extends n.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}t.PositionOutOfBoundsError=a;class o extends n.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}t.RecursiveReadLimitExceededError=o},31559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidBytesLengthError=t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;let n=r(63392);class i extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=i;class a extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=a;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}t.InvalidBytesLengthError=o},46010:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Eip712DomainNotFoundError=void 0;let n=r(63392);class i extends n.BaseError{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}t.Eip712DomainNotFoundError=i},78485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.RlpTrailingBytesError=t.RlpListBoundaryExceededError=t.RlpDepthLim
133itExceededError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=void 0;let n=r(63392);class i extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=i;class a extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=a;class o extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=o;class s extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`,{name:"InvalidHexValueError"})}}t.InvalidHexValueError=s;class l extends n.BaseError{constructor({limit:e}){super(`RLP depth limit of \`${e}\` exceeded.`,{name:"RlpDepthLimitExceededError"})}}
133t.RlpDepthLimitExceededError=l;class c extends n.BaseError{constructor({consumed:e,declared:t}){super(`RLP list items consumed \`${e}\` bytes but the list declared a length of \`${t}\`.`,{name:"RlpListBoundaryExceededError"})}}t.RlpListBoundaryExceededError=c;class u extends n.BaseError{constructor({count:e}){super(`RLP payload encodes a single item, but \`${e}\` trailing ${1===e?"byte remains":"bytes remain"}.`,{name:"RlpTrailingBytesError"})}}t.RlpTrailingBytesError=u;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}t.SizeOverflowError=d},10946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsInvalidChainIdError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;let n=r(63392);class i extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=i;class a extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=a;class o extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=o;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s;class l extends n.BaseError{constructor({chainId:e}){super(`Invalid ENSIP-11 chainId: ${e}. Must be between 0 and 0x7fffffff, or 1.`,{name:"EnsInvalidChainIdError"})}}t.EnsInvalidChainIdError=l},11282:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;let n=r(29120),i=r(53632),a=r(63392),o=r(45742);class s extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,o.prettyPrint)({from:t?.address,to:p,value:void 0!==h&&`${(0,n.formatEther)(h)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:l,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.EstimateGasExecutionError=s},43137:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=void 0;let n=r(53632),i=r(63392);class a extends i.BaseError{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}t.BaseFeeScalarError=a;class o extends i.BaseError{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}t.Eip1559FeesNotSupportedError=o;class s extends i.BaseError{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.formatGwei)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}t.MaxFeePerGasTooLowError=s},22814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;let n=r(63392);class i extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=i},87695:function(e,t,r){"use strict";
133Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;let n=r(53632),i=r(63392);class a extends i.BaseError{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}t.ExecutionRevertedError=a,Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class o extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}t.FeeCapTooHighError=o,Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}t.FeeCapTooLowError=s,Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}t.NonceTooHighError=l,Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 134Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}t.NonceTooLowError=c,Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}t.NonceMaxValueError=u,Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}t.InsufficientFundsError=d,Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}t.IntrinsicGasTooHighError=f,Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}t.IntrinsicGasTooLowError=p,Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class h extends i.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}t.TransactionTypeNotSupportedError=h,Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}t.TipAboveFeeCapError=m,Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class b extends i.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}t.UnknownNodeError=b},62495:function(e,t,r){"use strict";
134Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.WebSocketRequestError=t.ResponseBodyTooLargeError=t.HttpRequestError=void 0;let n=r(16283),i=r(63392),a=r(52621);class o extends i.BaseError{constructor({body:e,cause:t,details:r,headers:i,status:o,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,a.getUrl)(s)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=o,this.url=s}}t.HttpRequestError=o;class s extends i.BaseError{constructor({maxSize:e,size:t}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${e} bytes`,`Received: ${t} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e,this.size=t}}t.ResponseBodyTooLargeError=s;class l extends i.BaseError{constructor({body:e,cause:t,details:r,url:i}){super("WebSocket request failed.",{cause:t,details:r,metaMessages:[`URL: ${(0,a.getUrl)(i)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean),name:"WebSocketRequestError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=i}}t.WebSocketRequestError=l;class c extends i.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=r}}t.RpcRequestError=c;class u extends i.BaseError{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,a.getUrl)(e)}`].filter(Boolean),name:"SocketClosedError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=e}}t.SocketClosedError=u;class d extends i.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}t.TimeoutError=d},875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.WalletConnectSessionSettlementError=t.AtomicityNotSupportedError=t.AtomicReadyWalletRejectedUpgradeError=t.BundleTooLargeError=t.UnknownBundleIdError=t.DuplicateIdError=t.UnsupportedChainIdError=t.UnsupportedNonOptionalCapabilityError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;let n=r(63392),i=r(62495);class a extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,name:a,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
134),this.name=a||e.name,this.code=e instanceof i.RpcRequestError?e.code:t??-1}}t.RpcError=a;class o extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=o;class s extends a{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}t.ParseRpcError=s,Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends a{constructor(e){super(e,{code:l.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}t.InvalidRequestRpcError=l,Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends a{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}t.MethodNotFoundRpcError=c,Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends a{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}t.InvalidParamsRpcError=u,Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}t.InternalRpcError=d,Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}t.InvalidInputRpcError=f,Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}t.ResourceNotFoundRpcError=p,Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class h extends a{constructor(e){super(e,{code:h.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}t.ResourceUnavailableRpcError=h,Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}t.TransactionRejectedRpcError=m,Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class b extends a{constructor(e,{method:t}={}){super(e,{code:b.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}t.MethodNotSupportedRpcError=b,Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends a{constructor(e){super(e,{code:y.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}t.LimitExceededRpcError=y,Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends a{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}t.JsonRpcVersionUnsupportedError=g,Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends o{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}t.UserRejectedRequestError=v,Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends o{constructor(e){super(e,{code:w.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}t.UnauthorizedProviderError=w,Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends o{constructor(e,{method:t}={}){super(e,{code:E.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}t.UnsupportedProviderMethodError=E,Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends o{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}t.ProviderDisconnectedError=x,Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends o{constructor(e){super(e,{code:A.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}t.ChainDisconnectedError=A,Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class k extends o{constructor(e){super(e,{code:k.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}t.SwitchChainError=k,Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class P extends o{constructor(e){super(e,{code:P.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}t.UnsupportedNonOptionalCapabilityError=P,Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class C extends o{constructor(e){super(e,{code:C.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}t.UnsupportedChainIdError=C,Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class T extends o{constructor(e){super(e,{code:T.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}t.DuplicateIdError=T,Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class _ extends o{constructor(e){super(e,{code:_.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}t.UnknownBundleIdError=_,Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class O extends o{constructor(e){super(e,{code:O.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}t.BundleTooLargeError=O,Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class S extends o{constructor(e){super(e,{code:S.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}t.AtomicReadyWalletRejectedUpgradeError=S,Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
134);class I extends o{constructor(e){super(e,{code:I.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}t.AtomicityNotSupportedError=I,Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class B extends o{constructor(e){super(e,{code:B.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}t.WalletConnectSessionSettlementError=B,Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class j extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}t.UnknownRpcError=j},4523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StateAssignmentConflictError=t.AccountStateConflictError=void 0,t.prettyStateMapping=o,t.prettyStateOverride=function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e} ${t}: 135`;return r.nonce&&(n+=` nonce: ${r.nonce} 136`),r.balance&&(n+=` balance: ${r.balance} 137`),r.code&&(n+=` code: ${r.code} 138`),r.state&&(n+=" state:\n"+o(r.state)),r.stateDiff&&(n+=" stateDiff:\n"+o(r.stateDiff)),n}," State Override:\n").slice(0,-1)};let n=r(63392);class i extends n.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}t.AccountStateConflictError=i;class a extends n.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r} 139`,"")}t.StateAssignmentConflictError=a},45742:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptRevertedError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidYParityError=t.InvalidLegacyVError=t.FeePayerNonceMismatchError=t.FeeConflictError=void 0,t.prettyPrint=o;let n=r(29120),i=r(53632),a=r(63392);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends a.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}t.FeeConflictError=s;class l extends a.BaseError{constructor({filledNonce:e,requestedNonce:t}){super("The filled transaction nonce does not match the requested nonce.",{metaMessages:[`Requested Nonce: ${t}`,`Filled Nonce: ${e}`],name:"FeePayerNonceMismatchError"})}}t.FeePayerNonceMismatchError=l;class c extends a.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class u extends a.BaseError{constructor({yParity:e}){super(`Invalid \`yParity\` value "${e}". Expected 0 or 1.`,{name:"InvalidYParityError"})}}t.InvalidYParityError=u;class d extends a.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=d;class f extends a.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=f;class p extends a.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){let n=Object.entries(e).map(([e,t])=>
139void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=p;class h extends a.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=h;class m extends a.BaseError{constructor(e,{account:t,docsPath:r,chain:a,data:s,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:p,value:void 0!==h&&`${(0,n.formatEther)(h)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:l,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}t.TransactionExecutionError=m;class b extends a.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let a="Transaction";r&&void 0!==i&&(a=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}t.TransactionNotFoundError=b;class y extends a.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=y;class g extends a.BaseError{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}t.TransactionReceiptRevertedError=g;class v extends a.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=v},93672:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;let n=r(63392);class i extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}t.UrlRequiredError=i},4890:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidTypedDataTypeError=t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=void 0;let n=r(16283),i=r(63392);class a extends i.BaseError{constructor({domain:e}){super(`Invalid domain "${(0,n.stringify)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}t.InvalidDomainError=a;class o extends i.BaseError{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}t.InvalidPrimaryTypeError=o;class s extends i.BaseError{constructor({type:e}){super(`Struct type "${e}
139" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}t.InvalidStructTypeError=s;class l extends i.BaseError{constructor({type:e}){super(`Type "${e}" is not a valid EIP-712 type.`,{metaMessages:[`Use "${e.replace(/^(u?int)/,"$&256")}" instead.`],name:"InvalidTypedDataTypeError"})}}t.InvalidTypedDataTypeError=l},57195:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidDecimalNumberError=void 0;let n=r(63392);class i extends n.BaseError{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}t.InvalidDecimalNumberError=i},52621:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.getContractAddress=void 0,t.getAbortError=function(e){if(e?.reason)return e.reason;if("function"==typeof DOMException)return new DOMException("This operation was aborted","AbortError");let t=Error("This operation was aborted");return t.name="AbortError",t},t.isAbortError=function(e){return"object"==typeof e&&null!==e&&"name"in e&&"AbortError"===e.name},t.getContractAddress=e=>e,t.getUrl=e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}}},28045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="2.56.3"},45964:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt8=t.universalSignatureValidatorByteCode=t.erc6492SignatureValidatorByteCode=t.deploylessCallViaFactoryBytecode=t.deploylessCallViaBytecodeBytecode=t.zeroHash=t.zeroAddress=t.ethAddress=t.multicall3Abi=t.universalSignatureValidatorAbi=t.erc6492SignatureValidatorAbi=t.erc4626Abi=t.erc1155Abi=t.erc721Abi=t.erc20Abi_bytes32=t.erc20Abi=t.webSocket=t.http=t.shouldThrow=t.fallback=t.custom=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createWalletClient=t.createTestClient=t.createPublicClient=t.rpcSchema=t.createClient=t.WaitForCallsStatusTimeoutError=t.getContract=t.UnknownTypeError=t.UnknownSignatureError=t.SolidityProtectedKeywordError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.InvalidAbiItemError=t.CircularReferenceError=void 0,t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=void 0,t.AbiConstructorNotFoundError=t.weiUnits=t.gweiUnits=t.etherUnits=t.presignMessagePrefix=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=void 0,t.SizeOverflowError=t.RlpTrailingBytesError=t.RlpListBoundaryExceededError=t.RlpDepthLim
139itExceededError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.SliceOffsetOutOfBoundsError=t.SizeExceedsPaddingSizeError=t.RawContractError=t.CounterfactualDeploymentFailedError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=t.BundleFailedError=t.BlockNotFoundError=t.setErrorConfig=t.BaseError=t.InvalidAddressError=t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=void 0,t.UnknownBundleIdError=t.UnauthorizedProviderError=t.TransactionRejectedRpcError=t.SwitchChainError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.DuplicateIdError=t.ChainDisconnectedError=t.BundleTooLargeError=t.AtomicReadyWalletRejectedUpgradeError=t.AtomicityNotSupportedError=t.WebSocketRequestError=t.TimeoutError=t.SocketClosedError=t.RpcRequestError=t.ResponseBodyTooLargeError=t.HttpRequestError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.FilterTypeNotSupportedError=t.MaxFeePerGasTooLowError=t.Eip1559FeesNotSupportedError=t.BaseFeeScalarError=t.EstimateGasExecutionError=t.EnsInvalidChainIdError=t.EnsAvatarUriResolutionError=t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarInvalidNftUriError=void 0,t.blobsToCommitments=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.checksumAddress=t.prepareEncodeFunctionData=t.parseEventLogs=t.getAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.EIP1193ProviderRpcError=t.InvalidDecimalNumberError=t.InvalidTypedDataTypeError=t.InvalidStructTypeError=t.InvalidPrimaryTypeError=t.InvalidDomainError=t.UrlRequiredError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidYParityError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializedTransactionError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeePayerNonceMismatchError=t.FeeConflictError=t.StateAssignmentConflictError=t.AccountStateConflictError=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnsupportedNonOptionalCapabilityError=t.UnsupportedChainIdError=t.UnknownRpcError=void 0,t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.extractChain=t.extendSchema=t.defineChain=t.assertCurrentChain=t.ccipReadTunnel=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=t.toBlobs=t.toBlobSidecars=t.sidecarsToVersionedHashes=t.fromBlobs=t.commitmentToVersionedHash=t.commitmentsToVersionedHashes=t.blobsToProofs=void 0,t.parseCompactSignature=t.hexToCompactSignature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashDomain=t.hashMessage=t.compactSignatureToSignature=t.withTimeout=t.withRetry=t.withCache=t.nonceManager=t.createNonceManager=t.setupKzg=t.defineKzg=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=t.ripemd160=t.keccak256=t.isHash=t.rpcTransactionType=t.formatTransactionRequest=t.defineTransactionRequest=t.formatTransactionReceipt=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.formatBlock=t.defineBlock=t.getContractError=t.toCoinType=t.namehash=t.labelhash=t.toRlp=t.hexToRlp=t.bytesToRlp=t.toHex=t.stringToHex=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=t.validateTypedData=t.serializeTypedData=t.getTypesForEIP712Domain=t.domainSeparator=t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.toPrefixedMessage=t.signatureToCompactSignature=t.serializeSignature=t.signatureToHex=t.serializeErc8010Signature=t.serializeErc6492Signature=t.serializeCompactSignature=t.compactSignatureToHex=t.recoverTypedDataAddress=t.recoverTransactionAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseSignature=t.hexToSignature=t.parseErc8010Signature=t.parseErc6492Signature=void 0;var n=r(96726);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}});var i=r(97688);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return i.getContract}});var a=r(35836);Object.defineProperty(t,"WaitForCallsStatusTimeoutError",{enumerable:!0,get:function(){return a.WaitForCallsStatusTimeoutError}});var o=r(43465);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return o.createClient}}),Object.defineProperty(t,"rpcSchema",{enumerable:!0,get:function(){return o.rpcSchema}});var s=r(86292);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return s.createPublicClient}});var l=r(67321);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return l.createTestClient}});var c=r(37269);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return c.createWalletClient}});var u=r(74291);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return u.publicActions}});var d=r(59071);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return d.testActions}});var f=r(79206);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return f.walletActions}});var p=r(95597);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var h=r(15920);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return h.custom}});var m=r(35138);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return m.fallback}}),Object.defineProperty(t,"shouldThrow",{enumerable:!0,get:function(){return m.shouldThrow}});var b=r(87910);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return b.http}});var y=r(82987);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return y.webSocket}});var g=r(10878);Object.defineProperty(t,"erc20Abi",{enumerable:!0,get:function(){return g.erc20Abi}}),Object.defineProperty(t,"erc20Abi_bytes32",{enumerable:!0,get:function(){return g.erc20Abi_bytes32}}
139),Object.defineProperty(t,"erc721Abi",{enumerable:!0,get:function(){return g.erc721Abi}}),Object.defineProperty(t,"erc1155Abi",{enumerable:!0,get:function(){return g.erc1155Abi}}),Object.defineProperty(t,"erc4626Abi",{enumerable:!0,get:function(){return g.erc4626Abi}}),Object.defineProperty(t,"erc6492SignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"universalSignatureValidatorAbi",{enumerable:!0,get:function(){return g.erc6492SignatureValidatorAbi}}),Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return g.multicall3Abi}});var v=r(97e3);Object.defineProperty(t,"ethAddress",{enumerable:!0,get:function(){return v.ethAddress}}),Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return v.zeroAddress}});var w=r(32758);Object.defineProperty(t,"zeroHash",{enumerable:!0,get:function(){return w.zeroHash}});var E=r(15079);Object.defineProperty(t,"deploylessCallViaBytecodeBytecode",{enumerable:!0,get:function(){return E.deploylessCallViaBytecodeBytecode}}),Object.defineProperty(t,"deploylessCallViaFactoryBytecode",{enumerable:!0,get:function(){return E.deploylessCallViaFactoryBytecode}}),Object.defineProperty(t,"erc6492SignatureValidatorByteCode",{enumerable:!0,get:function(){return E.erc6492SignatureValidatorByteCode}}),Object.defineProperty(t,"universalSignatureValidatorByteCode",{enumerable:!0,get:function(){return E.erc6492SignatureValidatorByteCode}});var x=r(24796);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return x.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return x.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return x.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return x.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return x.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return x.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return x.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return x.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return x.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return x.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return x.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return x.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return x.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return x.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return x.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return x.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return x.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return x.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return x.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return x.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return x.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return x.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return x.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return x.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return x.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return x.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return x.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return x.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return x.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return x.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return x.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return x.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return x.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return x.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return x.maxUint24}}
139),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return x.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return x.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return x.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return x.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return x.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return x.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return x.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return x.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return x.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return x.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return x.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return x.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return x.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return x.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return x.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return x.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return x.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return x.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return x.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return x.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return x.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return x.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return x.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return x.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return x.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return x.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return x.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return x.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return x.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return x.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return x.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return x.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return x.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return x.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return x.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return x.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return x.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return x.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return x.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return x.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return x.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return x.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return x.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return x.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return x.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return x.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return x.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return x.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return x.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return x.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return x.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return x.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return x.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return x.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return x.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return x.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return x.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return x.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return x.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return x.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return x.minInt256}});var A=r(66529);Object.defineProperty(t,"presignMessagePrefix",{enumerable:!0,get:function(){return A.presignMessagePrefix}});var k=r(71455);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return k.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return k.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return k.weiUnits}});var P=r(43279);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return P.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return P.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return P.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingDataSizeTooSmallError",{enumerable:!0,get:function(){return P.AbiDecodingDataSizeTooSmallError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return P.AbiDecodingZeroDataError}}
139),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return P.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingBytesSizeMismatchError",{enumerable:!0,get:function(){return P.AbiEncodingBytesSizeMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return P.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return P.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return P.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return P.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return P.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return P.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return P.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return P.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return P.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return P.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"BytesSizeMismatchError",{enumerable:!0,get:function(){return P.BytesSizeMismatchError}}),Object.defineProperty(t,"DecodeLogDataMismatch",{enumerable:!0,get:function(){return P.DecodeLogDataMismatch}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return P.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return P.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return P.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return P.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return P.InvalidDefinitionTypeError}}),Object.defineProperty(t,"UnsupportedPackedAbiType",{enumerable:!0,get:function(){return P.UnsupportedPackedAbiType}});var C=r(39878);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return C.InvalidAddressError}});var T=r(63392);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return T.BaseError}}),Object.defineProperty(t,"setErrorConfig",{enumerable:!0,get:function(){return T.setErrorConfig}});var _=r(55452);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return _.BlockNotFoundError}});var O=r(64023);Object.defineProperty(t,"BundleFailedError",{enumerable:!0,get:function(){return O.BundleFailedError}});var S=r(57602);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return S.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ChainMismatchError",{enumerable:!0,get:function(){return S.ChainMismatchError}}),Object.defineProperty(t,"ChainNotFoundError",{enumerable:!0,get:function(){return S.ChainNotFoundError}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return S.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return S.InvalidChainIdError}});var I=r(17306);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return I.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return I.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return I.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return I.ContractFunctionZeroDataError}}),Object.defineProperty(t,"CounterfactualDeploymentFailedError",{enumerable:!0,get:function(){return I.CounterfactualDeploymentFailedError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return I.RawContractError}});var B=r(31559);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return B.SizeExceedsPaddingSizeError}}),Object.defineProperty(t,"SliceOffsetOutOfBoundsError",{enumerable:!0,get:function(){return B.SliceOffsetOutOfBoundsError}});var j=r(78485);Object.defineProperty(t,"IntegerOutOfRangeError",{enumerable:!0,get:function(){return j.IntegerOutOfRangeError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return j.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return j.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return j.InvalidHexValueError}}
139),Object.defineProperty(t,"RlpDepthLimitExceededError",{enumerable:!0,get:function(){return j.RlpDepthLimitExceededError}}),Object.defineProperty(t,"RlpListBoundaryExceededError",{enumerable:!0,get:function(){return j.RlpListBoundaryExceededError}}),Object.defineProperty(t,"RlpTrailingBytesError",{enumerable:!0,get:function(){return j.RlpTrailingBytesError}}),Object.defineProperty(t,"SizeOverflowError",{enumerable:!0,get:function(){return j.SizeOverflowError}});var M=r(10946);Object.defineProperty(t,"EnsAvatarInvalidNftUriError",{enumerable:!0,get:function(){return M.EnsAvatarInvalidNftUriError}}),Object.defineProperty(t,"EnsAvatarUnsupportedNamespaceError",{enumerable:!0,get:function(){return M.EnsAvatarUnsupportedNamespaceError}}),Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return M.EnsAvatarUriResolutionError}}),Object.defineProperty(t,"EnsInvalidChainIdError",{enumerable:!0,get:function(){return M.EnsInvalidChainIdError}});var R=r(11282);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return R.EstimateGasExecutionError}});var N=r(43137);Object.defineProperty(t,"BaseFeeScalarError",{enumerable:!0,get:function(){return N.BaseFeeScalarError}}),Object.defineProperty(t,"Eip1559FeesNotSupportedError",{enumerable:!0,get:function(){return N.Eip1559FeesNotSupportedError}}),Object.defineProperty(t,"MaxFeePerGasTooLowError",{enumerable:!0,get:function(){return N.MaxFeePerGasTooLowError}});var U=r(22814);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return U.FilterTypeNotSupportedError}});var z=r(87695);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return z.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return z.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return z.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return z.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return z.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return z.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return z.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return z.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return z.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return z.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return z.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return z.UnknownNodeError}});var D=r(62495);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return D.HttpRequestError}}),Object.defineProperty(t,"ResponseBodyTooLargeError",{enumerable:!0,get:function(){return D.ResponseBodyTooLargeError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return D.RpcRequestError}}),Object.defineProperty(t,"SocketClosedError",{enumerable:!0,get:function(){return D.SocketClosedError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return D.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return D.WebSocketRequestError}});var F=r(875);Object.defineProperty(t,"AtomicityNotSupportedError",{enumerable:!0,get:function(){return F.AtomicityNotSupportedError}}),Object.defineProperty(t,"AtomicReadyWalletRejectedUpgradeError",{enumerable:!0,get:function(){return F.AtomicReadyWalletRejectedUpgradeError}}),Object.defineProperty(t,"BundleTooLargeError",{enumerable:!0,get:function(){return F.BundleTooLargeError}}),Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return F.ChainDisconnectedError}}),Object.defineProperty(t,"DuplicateIdError",{enumerable:!0,get:function(){return F.DuplicateIdError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return F.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return F.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return F.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return F.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return F.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return F.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return F.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return F.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return F.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return F.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return F.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return F.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return F.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return F.RpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return F.SwitchChainError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return F.TransactionRejectedRpcError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return F.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownBundleIdError",{enumerable:!0,get:function(){return F.UnknownBundleIdError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return F.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedChainIdError",{enumerable:!0,get:function(){return F.UnsupportedChainIdError}}),Object.defineProperty(t,"UnsupportedNonOptionalCapabilityError",{enumerable:!0,get:function(){return F.UnsupportedNonOptionalCapabilityError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return F.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return F.UserRejectedRequestError}});var L=r(4523);Object.defineProperty(t,"AccountStateConflictError",{enumerable:!0,get:function(){return L.AccountStateConflictError}}
139),Object.defineProperty(t,"StateAssignmentConflictError",{enumerable:!0,get:function(){return L.StateAssignmentConflictError}});var H=r(45742);Object.defineProperty(t,"FeeConflictError",{enumerable:!0,get:function(){return H.FeeConflictError}}),Object.defineProperty(t,"FeePayerNonceMismatchError",{enumerable:!0,get:function(){return H.FeePayerNonceMismatchError}}),Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return H.InvalidLegacyVError}}),Object.defineProperty(t,"InvalidSerializableTransactionError",{enumerable:!0,get:function(){return H.InvalidSerializableTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionError",{enumerable:!0,get:function(){return H.InvalidSerializedTransactionError}}),Object.defineProperty(t,"InvalidSerializedTransactionTypeError",{enumerable:!0,get:function(){return H.InvalidSerializedTransactionTypeError}}),Object.defineProperty(t,"InvalidStorageKeySizeError",{enumerable:!0,get:function(){return H.InvalidStorageKeySizeError}}),Object.defineProperty(t,"InvalidYParityError",{enumerable:!0,get:function(){return H.InvalidYParityError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return H.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return H.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return H.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return H.WaitForTransactionReceiptTimeoutError}});var G=r(93672);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return G.UrlRequiredError}});var q=r(4890);Object.defineProperty(t,"InvalidDomainError",{enumerable:!0,get:function(){return q.InvalidDomainError}}),Object.defineProperty(t,"InvalidPrimaryTypeError",{enumerable:!0,get:function(){return q.InvalidPrimaryTypeError}}),Object.defineProperty(t,"InvalidStructTypeError",{enumerable:!0,get:function(){return q.InvalidStructTypeError}}),Object.defineProperty(t,"InvalidTypedDataTypeError",{enumerable:!0,get:function(){return q.InvalidTypedDataTypeError}});var $=r(57195);Object.defineProperty(t,"InvalidDecimalNumberError",{enumerable:!0,get:function(){return $.InvalidDecimalNumberError}});var K=r(10537);Object.defineProperty(t,"EIP1193ProviderRpcError",{enumerable:!0,get:function(){return K.ProviderRpcError}});var Z=r(61779);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return Z.decodeAbiParameters}});var V=r(83325);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return V.decodeDeployData}});var W=r(40159);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return W.decodeErrorResult}});var Y=r(42908);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return Y.decodeEventLog}});var X=r(70687);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return X.decodeFunctionData}});var J=r(65933);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return J.decodeFunctionResult}});var Q=r(75246);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return Q.encodeAbiParameters}});var ee=r(24594);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return ee.encodeDeployData}});var et=r(16323);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return et.encodeErrorResult}});var er=r(16244);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return er.encodeEventTopics}});var en=r(23337);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return en.encodeFunctionData}});var ei=r(15168);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return ei.encodeFunctionResult}});var ea=r(18819);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return ea.encodePacked}});var eo=r(35014);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return eo.getAbiItem}});var es=r(40635);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return es.parseEventLogs}});
139var el=r(27457);Object.defineProperty(t,"prepareEncodeFunctionData",{enumerable:!0,get:function(){return el.prepareEncodeFunctionData}});var ec=r(39684);Object.defineProperty(t,"checksumAddress",{enumerable:!0,get:function(){return ec.checksumAddress}}),Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return ec.getAddress}});var eu=r(21645);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return eu.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return eu.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return eu.getCreateAddress}});var ed=r(42948);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return ed.isAddress}});var ef=r(73274);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return ef.isAddressEqual}});var ep=r(83209);Object.defineProperty(t,"blobsToCommitments",{enumerable:!0,get:function(){return ep.blobsToCommitments}});var eh=r(51227);Object.defineProperty(t,"blobsToProofs",{enumerable:!0,get:function(){return eh.blobsToProofs}});var em=r(40741);Object.defineProperty(t,"commitmentsToVersionedHashes",{enumerable:!0,get:function(){return em.commitmentsToVersionedHashes}});var eb=r(72803);Object.defineProperty(t,"commitmentToVersionedHash",{enumerable:!0,get:function(){return eb.commitmentToVersionedHash}});var ey=r(94583);Object.defineProperty(t,"fromBlobs",{enumerable:!0,get:function(){return ey.fromBlobs}});var eg=r(73744);Object.defineProperty(t,"sidecarsToVersionedHashes",{enumerable:!0,get:function(){return eg.sidecarsToVersionedHashes}});var ev=r(6505);Object.defineProperty(t,"toBlobSidecars",{enumerable:!0,get:function(){return ev.toBlobSidecars}});var ew=r(12830);Object.defineProperty(t,"toBlobs",{enumerable:!0,get:function(){return ew.toBlobs}});var eE=r(85715);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return eE.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return eE.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return eE.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return eE.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return eE.offchainLookupSignature}});var ex=r(30550);Object.defineProperty(t,"ccipReadTunnel",{enumerable:!0,get:function(){return ex.ccipReadTunnel}});var eA=r(53039);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return eA.assertCurrentChain}});var ek=r(71338);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return ek.defineChain}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return ek.extendSchema}});var eP=r(20678);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return eP.extractChain}});var eC=r(80660);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return eC.getChainContractAddress}});var eT=r(246);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return eT.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return eT.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return eT.concatHex}});var e_=r(98543);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return e_.isBytes}});var eO=r(93674);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return eO.isHex}});var eS=r(95367);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return eS.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return eS.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return eS.padHex}});var eI=r(62221);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return eI.size}});var eB=r(47645);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return eB.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return eB.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return eB.sliceHex}});var ej=r(56574);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return ej.trim}});var eM=r(62266);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return eM.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return eM.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return eM.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return eM.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return eM.fromBytes}});var eR=r(85198);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return eR.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return eR.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return eR.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return eR.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return eR.hexToString}});var eN=r(69130);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return eN.fromRlp}});var eU=r(22876);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return eU.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return eU.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return eU.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return eU.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return eU.toBytes}});var ez=r(96291);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return ez.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return ez.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return ez.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return ez.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return ez.toHex}});var eD=r(76311);Object.defineProperty(t,"bytesToRlp",{enumerable:!0,get:function(){return eD.bytesToRlp}}),Object.defineProperty(t,"hexToRlp",{enumerable:!0,get:function(){return eD.hexToRlp}}),Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return eD.toRlp}});var eF=r(19491);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return eF.labelhash}});var eL=r(71992);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return eL.namehash}});var eH=r(5470);Object.defineProperty(t,"toCoinType",{enumerable:!0,get:function(){return eH.toCoinType}});var eG=r(44169);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return eG.getContractError}});var eq=r(13713);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return eq.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return eq.formatBlock}});var e$=r(47539);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return e$.formatLog}});var eK=r(10146);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return eK.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return eK.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return eK.transactionType}});var eZ=r(58983);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return eZ.defineTransactionReceipt}}),Object.defineProperty(t,"formatTransactionReceipt",{enumerable:!0,get:function(){return eZ.formatTransactionReceipt}});var eV=r(9101);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return eV.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return eV.formatTransactionRequest}}),Object.defineProperty(t,"rpcTransactionType",{enumerable:!0,get:function(){return eV.rpcTransactionType}});var eW=r(11421);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eW.isHash}});var eY=r(83935);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return eY.keccak256}});var eX=r(95943);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return eX.ripemd160}});var eJ=r(79887);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return eJ.sha256}});var eQ=r(24292);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return eQ.toEventHash}});var e0=r(1515);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return e0.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return e0.toEventSelector}});var e1=r(61609);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return e1.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return e1.toEventSignature}});var e2=r(51319);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return e2.toFunctionHash}});var e3=r(45866);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return e3.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return e3.toFunctionSelector}});var e6=r(47398);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return e6.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return e6.toFunctionSignature}});var e5=r(4152);Object.defineProperty(t,"defineKzg",{enumerable:!0,get:function(){return e5.defineKzg}});var e8=r(94258);Object.defineProperty(t,"setupKzg",{enumerable:!0,get:function(){return e8.setupKzg}});var e7=r(1041);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return e7.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return e7.nonceManager}});var e4=r(76085);Object.defineProperty(t,"withCache",{enumerable:!0,get:function(){return e4.withCache}});
139var e9=r(52614);Object.defineProperty(t,"withRetry",{enumerable:!0,get:function(){return e9.withRetry}});var te=r(80369);Object.defineProperty(t,"withTimeout",{enumerable:!0,get:function(){return te.withTimeout}});var tt=r(6025);Object.defineProperty(t,"compactSignatureToSignature",{enumerable:!0,get:function(){return tt.compactSignatureToSignature}});var tr=r(27921);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return tr.hashMessage}});var tn=r(19021);Object.defineProperty(t,"hashDomain",{enumerable:!0,get:function(){return tn.hashDomain}}),Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return tn.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return tn.hashTypedData}});var ti=r(12544);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return ti.isErc6492Signature}});var ta=r(42715);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return ta.isErc8010Signature}});var to=r(96502);Object.defineProperty(t,"hexToCompactSignature",{enumerable:!0,get:function(){return to.parseCompactSignature}}),Object.defineProperty(t,"parseCompactSignature",{enumerable:!0,get:function(){return to.parseCompactSignature}});var ts=r(24738);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return ts.parseErc6492Signature}});var tl=r(8690);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return tl.parseErc8010Signature}});var tc=r(86955);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return tc.parseSignature}}),Object.defineProperty(t,"parseSignature",{enumerable:!0,get:function(){return tc.parseSignature}});var tu=r(73646);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return tu.recoverAddress}});var td=r(28972);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return td.recoverMessageAddress}});var tf=r(9506);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return tf.recoverPublicKey}});var tp=r(39371);Object.defineProperty(t,"recoverTransactionAddress",{enumerable:!0,get:function(){return tp.recoverTransactionAddress}});var th=r(33114);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return th.recoverTypedDataAddress}});var tm=r(81848);Object.defineProperty(t,"compactSignatureToHex",{enumerable:!0,get:function(){return tm.serializeCompactSignature}}),Object.defineProperty(t,"serializeCompactSignature",{enumerable:!0,get:function(){return tm.serializeCompactSignature}});var tb=r(97568);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return tb.serializeErc6492Signature}});var ty=r(69092);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return ty.serializeErc8010Signature}});var tg=r(28381);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return tg.serializeSignature}}),Object.defineProperty(t,"serializeSignature",{enumerable:!0,get:function(){return tg.serializeSignature}});var tv=r(24798);Object.defineProperty(t,"signatureToCompactSignature",{enumerable:!0,get:function(){return tv.signatureToCompactSignature}});var tw=r(65165);Object.defineProperty(t,"toPrefixedMessage",{enumerable:!0,get:function(){return tw.toPrefixedMessage}});var tE=r(83305);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return tE.verifyHash}});var tx=r(9245);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return tx.verifyMessage}});var tA=r(3600);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return tA.verifyTypedData}});var tk=r(16283);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return tk.stringify}});var tP=r(19199);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return tP.assertRequest}});var tC=r(85426);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return tC.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return tC.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return tC.assertTransactionLegacy}});var tT=r(49229);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return tT.getSerializedTransactionType}});var t_=r(10644);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return t_.getTransactionType}});var tO=r(84763);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return tO.parseTransaction}});var tS=r(84041);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return tS.serializeAccessList}});var tI=r(22741);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return tI.serializeTransaction}});var tB=r(27621);Object.defineProperty(t,"domainSeparator",{enumerable:!0,get:function(){return tB.domainSeparator}}),Object.defineProperty(t,"getTypesForEIP712Domain",{enumerable:!0,get:function(){return tB.getTypesForEIP712Domain}}),Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return tB.serializeTypedData}
139}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return tB.validateTypedData}});var tj=r(29120);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return tj.formatEther}});var tM=r(53632);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return tM.formatGwei}});var tR=r(93720);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return tR.formatUnits}});var tN=r(29161);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return tN.parseEther}});var tU=r(18950);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return tU.parseGwei}});var tz=r(98264);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return tz.parseUnits}})},60042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=u;let n=r(21499),i=r(92973),a=r(96291),o=r(47526),s=r(40018),l=r(9101),c=r(19199);async function u(e,t){let{account:r=e.account}=t;if(!r)throw new i.AccountNotFoundError;let u=(0,n.parseAccount)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:o,gas:d,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:m,to:b,value:y,...g}=t,v=("bigint"==typeof n?(0,a.numberToHex)(n):void 0)||i;(0,c.assertRequest)(t);let w=e.chain?.formatters?.transactionRequest?.format,E=(w||l.formatTransactionRequest)({...(0,s.extract)(g,{format:w}),account:u,accessList:r,data:o,gas:d,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:h,nonce:m,to:b,value:y},"estimateGas"),{baseFeePerGas:x,gasLimit:A,priorityFeePerGas:k}=await e.request({method:"linea_estimateGas",params:v?[E,v]:[E]});return{baseFeePerGas:BigInt(x),gasLimit:BigInt(A),priorityFeePerGas:BigInt(k)}}catch(r){throw(0,o.getCallError)(r,{...t,account:u,chain:e.chain})}}},61912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainConfig=void 0;let n=r(60042);async function i({client:e,multiply:t,request:r,type:i}){try{let a=await (0,n.estimateGas)(e,{...r,account:r?.account}),{priorityFeePerGas:o}=a,s=t(BigInt(a.baseFeePerGas))+o;if("legacy"===i)return{gasPrice:s};return{maxFeePerGas:s,maxPriorityFeePerGas:o}}catch{return null}}t.chainConfig={fees:{estimateFeesPerGas:i,async maxPriorityFeePerGas({block:e,client:t,request:r}){let n=await i({block:e,client:t,multiply:e=>e,request:r,type:"eip1559"});return n?.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}}},71342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainConfig=void 0;let n=r(78640),i=r(12760),a=r(64101);t.chainConfig={blockTime:2e3,contracts:n.contracts,formatters:i.formatters,serializers:a.serializers}},78640:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contracts=void 0,t.contracts={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}}},12760:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatters=void 0;let n=r(85198),i=r(13713),a=r(10146),o=r(58983);t.formatters={block:(0,i.defineBlock)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=a.formatTransaction(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?n.hexToBigInt(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,a.defineTransaction)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.hexToBigInt)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,o.defineTransactionReceipt)({format:e=>({...e.depositNonce?{depositNonce:(0,n.hexToBigInt)(e.depositNonce)}:{},...e.depositReceiptVersion?{depositReceiptVersion:(0,n.hexToNumber)(e.depositReceiptVersion)}:{},l1GasPrice:e.l1GasPrice?(0,n.hexToBigInt)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,n.hexToBigInt)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,n.hexToBigInt)(e.l1Fee):null,l1FeeScalar:e.l
1391FeeScalar?Number(e.l1FeeScalar):null})})}},64101:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializers=void 0,t.serializeTransaction=c,t.assertTransactionDeposit=u;let n=r(39878),i=r(42948),a=r(246),o=r(96291),s=r(76311),l=r(22741);function c(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){u(e);let{sourceHash:t,data:r,from:n,gas:i,isSystemTx:l,mint:c,to:d,value:f}=e,p=[t,n,d??"0x",c?(0,o.toHex)(c):"0x",f?(0,o.toHex)(f):"0x",i?(0,o.toHex)(i):"0x",l?"0x1":"0x",r??"0x"];return(0,a.concatHex)(["0x7e",(0,s.toRlp)(p)])}(e):(0,l.serializeTransaction)(e,t)}function u(e){let{from:t,to:r}=e;if(t&&!(0,i.isAddress)(t))throw new n.InvalidAddressError({address:t});if(r&&!(0,i.isAddress)(r))throw new n.InvalidAddressError({address:r})}t.serializers={transaction:c}},26433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.z_TxEnvelopeTempo=t.z_SignatureEnvelope=t.z_KeyAuthorization=void 0,t.from=g,t.fromHeadlessWebAuthn=function(e,t){let{access:r,keyAuthorizationManager:n,rpId:i,origin:o,internal_version:s}=t,l=a.getPublicKey({privateKey:e});return g({...r?{access:r,keyAuthorizationManager:n}:{},internal_version:s,keyType:"webAuthn",publicKey:l,async sign({hash:r}){let{metadata:n,payload:s}=u.getSignPayload({...t,challenge:r,rpId:i,origin:o}),d=a.sign({payload:s,privateKey:e,hash:!0});return c.SignatureEnvelope.serialize({metadata:n,signature:d,publicKey:l,type:"webAuthn"})}})},t.fromP256=function(e,t={}){let{access:r,keyAuthorizationManager:n,internal_version:i}=t,o=a.getPublicKey({privateKey:e});return g({...r?{access:r,keyAuthorizationManager:n}:{},internal_version:i,keyType:"p256",publicKey:o,async sign({hash:t}){let r=a.sign({payload:t,privateKey:e});return c.SignatureEnvelope.serialize({signature:r,publicKey:o,type:"p256"})}})},t.fromSecp256k1=function(e,t={}){let{access:r,keyAuthorizationManager:n,internal_version:i}=t,a=s.getPublicKey({privateKey:e});return g({...r?{access:r,keyAuthorizationManager:n}:{},internal_version:i,keyType:"secp256k1",publicKey:a,async sign(t){let{hash:r}=t,n=s.sign({payload:r,privateKey:e});return l.toHex(n)}})},t.fromMultisig=function(e){let t=(()=>{if("string"==typeof e)return;let{address:t,...r}=e;return r})(),r=(()=>{if(!t)return;let e=t.owners.map(e=>"string"==typeof e||"address"in e?{owner:e,weight:1}:e);return c.MultisigConfig.from({...t,owners:e.map(({owner:e,weight:t})=>({owner:"string"==typeof e?e:e.address,weight:t})),threshold:t.threshold??1})})();if("string"!=typeof e){if((void 0===e.address||"infer"===e.address)&&0n!==r.version)throw Error("An initial multisig config must have version zero.");if(void 0!==e.address&&"infer"!==e.address&&0n===r.version)throw Error("A current multisig config must have a version.")}let i=n.checksum("string"==typeof e?e:void 0===e.address||"infer"===e.address?c.MultisigConfig.getAddress(r):e.address),a=t?t.owners.flatMap(e=>{let t="string"==typeof e||"address"in e?e:e.owner;return"string"==typeof t?[]:[(0,f.parseAccount)(t)]}):[],o=r?.owners.flatMap(({owner:e})=>{let t=a.find(t=>n.isEqual(t.address,e));return t?[t]:[]})??[],s={address:i,config:r,owners:o,publicKey:"0x",source:"multisig",type:"local",sign:async({hash:e})=>c.SignatureEnvelope.serialize(await w(s,{payload:e})),async signMessage(){throw Error("`signMessage` is not supported for multisig accounts.")},async signTransaction(e,t){let{serializer:r=y.serialize}=t??{};if(e.owner){let r=(0,f.parseAccount)(e.owner);if("local"!==r.type)throw Error("A local owner account is required to approve a multisig transaction.");if("root"!==r.source&&"multisig"!==r.source)throw Error("A Tempo owner account is required to approve a multisig transaction.");let{owner:n,...i}=e;return await r.signTransaction(i,t)}if(0===o.length)return await r(e);let a={...e,signatures:void 0,...void 0===e.feePayerSignature?{}:{feePayerSignature:null}},l=(0,h.keccak256)(await r(a)),u=e.multisigSimulation,d=u?.account??i;if(!n.isEqual(d,i)){if(!u)throw Error("A multisig config is required for local signing.");let e=c.MultisigConfig.from(u.config),t=c.MultisigConfig.getSignPayload({account:d,config:e,payload:l});return c.SignatureEnvelope.serialize(await w(s,{payload:t}))}let p=await w(s,{config:u?.config,payload:l,signatures:e.signatures?.map(e=>c.SignatureEnvelope.from(e))});return await r(e,p)},async signTypedData(){throw Error("`signTypedData` is not supported for multisig accounts.")}};return s},t.fromWebAuthnP256=function(e,t={}){let{id:r}=e,n=o.fromHex(e.publicKey);return g({keyType:"webAuthn",publicKey:n,async sign({hash:e}){let{metadata:i,signature:a}=await u.sign({...t,challenge:e,credentialId:r});return c.SignatureEnvelope.serialize({publicKey:n,metadata:i,signature:a,type:"webAuthn"})}})},t.fromWebCryptoP256=function(e,t={}){let{access:r,keyAuthorizationManager:n,internal_version:i}=t,{publicKey:a,privateKey:o}=e;return g({...r?{access:r,keyAuthorizationManager:n}:{},internal_version:i,keyType:"p256",publicKey:a,async sign({hash:e}){let t=await d.sign({payload:e,privateKey:o});return c.SignatureEnvelope.serialize({signature:t,prehash:!0,publicKey:a,type:"p256"})}})},t.signVoucher=E,t.getKeyAuthorizationSignPayload=k,t.signKeyAuthorization=P,t.resolveAccessKey=T;
139let n=r(51392),i=r(81522),a=r(57414),o=r(11102),s=r(99177),l=r(9527),c=r(77664),u=r(13837),d=r(16892),f=r(21499),p=r(7932),h=r(83935),m=r(27921),b=r(19021),y=r(17039);function g(e){let{access:t}=e;return t?function(e){let{access:t,keyAuthorizationManager:r}=e,{address:i}=(0,f.parseAccount)(t);return{...C({...e,parentAddress:i}),accessKeyAddress:n.fromPublicKey(e.publicKey),keyAuthorizationManager:r,source:"accessKey"}}(e):function(e){let t=C(e);return{...t,source:"root",async signKeyAuthorization(e,r){let{chainId:n,expiry:i,limits:a,scopes:o,witness:s,admin:l}=r,{accessKeyAddress:u,keyType:d}=T(e),f=l?{}:{expiry:i,limits:a,scopes:o},p=await t.sign({hash:c.KeyAuthorization.getSignPayload({address:u,chainId:n,type:d,witness:s,...l?{isAdmin:!0}:{},...f})});return c.KeyAuthorization.from({address:u,chainId:n,signature:c.SignatureEnvelope.from(p),type:d,...s?{witness:s}:{},...l?{isAdmin:!0}:{},...f})}}}(e)}function v(e){return"multisig"===e.source}async function w(e,t){let{config:r,payload:i,signatures:a=[]}=t,o=r??e.config;if(!o)throw Error("A current multisig config is required for local signing.");let s=c.MultisigConfig.getSignPayload({account:e.address,config:o,payload:i}),l=[...a],u=new Set,d=0;for(let e of a){let t=c.SignatureEnvelope.extractAddress({payload:s,signature:e}).toLowerCase(),r=o.owners.find(e=>n.isEqual(e.owner,t));!r||u.has(t)||(u.add(t),d+=Number(r.weight))}for(let t of[...o.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))){let r=t.owner.toLowerCase();if(u.has(r))continue;let i=e.owners.find(e=>n.isEqual(e.address,t.owner));if(i){if(v(i))l.push(await w(i,{payload:s}));else{if(!i.sign)throw Error("Multisig owner account cannot sign.");l.push(c.SignatureEnvelope.from(await i.sign({hash:s})))}if(u.add(r),(d+=Number(t.weight))>=Number(o.threshold))break}}if(d<Number(o.threshold))throw Error("Local multisig owners do not meet the threshold.");return c.SignatureEnvelope.from({account:e.address,config:o,signatures:c.SignatureEnvelope.sortMultisigApprovals({account:e.address,config:o,payload:i,signatures:l})})}async function E(e,t){let r=x(t);return A(e)?e.sign({hash:r,raw:!0}):e.sign({hash:r})}function x(e){let{chainId:t,channel:r,cumulativeAmount:n}=e,i="string"==typeof r?r:c.Channel.computeId(r,{chainId:t});return c.Channel.getVoucherSignPayload({chainId:t,channelId:i,cumulativeAmount:n})}function A(e){return"accessKey"===e.source&&"accessKeyAddress"in e}function k(e,t){let{admin:r,chainId:n,expiry:i,key:a,limits:o,scopes:s,witness:l}=t,{accessKeyAddress:u,keyType:d}=T(a),f=A(e)||v(e)?{account:e.address}:{};return c.KeyAuthorization.getSignPayload({address:u,chainId:n,type:d,witness:l,...r?{isAdmin:!0}:{},...f,...r?{}:{expiry:i,limits:o,scopes:s}})}async function P(e,t){let{admin:r,chainId:n,expiry:i,key:a,limits:o,multisig:s,scopes:l,signatures:u,witness:d}=t,{accessKeyAddress:f,keyType:p}=T(a),h=A(e),m=v(e),b=h||m?{account:e.address}:{},y=k(e,t),g=await (async()=>{if(h)return e.sign({hash:y,raw:!0});if(m){if(!s)throw Error("Multisig state is required to sign a key authorization.");return c.SignatureEnvelope.serialize(await w(e,{config:s.config,payload:y,signatures:u?.map(e=>c.SignatureEnvelope.from(e))}))}return e.sign({hash:y})})();return c.KeyAuthorization.from({address:f,chainId:n,signature:c.SignatureEnvelope.from(g),type:p,...d?{witness:d}:{},...r?{isAdmin:!0}:{},...b,...r?{}:{expiry:i,limits:o,scopes:l}})}function C(e){let{keyType:t="secp256k1",parentAddress:r,source:a="privateKey",internal_version:s="v2"}=e,l=r??n.fromPublicKey(e.publicKey),u=o.toHex(e.publicKey,{includePrefix:!1});async function d({hash:t,raw:n}){if(n)return await e.sign({hash:t});let a=r&&"v2"===s?(0,h.keccak256)(i.concat("0x04",t,r)):t,o=await e.sign({hash:a});return r?c.SignatureEnvelope.serialize(c.SignatureEnvelope.from({userAddress:r,inner:c.SignatureEnvelope.from(o),type:"keychain",version:s})):o}return{address:n.checksum(l),keyType:t,sign:d,async signAuthorization(e){let{chainId:t,nonce:r}=e,n=e.contractAddress??e.address,a=await d({hash:(0,p.hashAuthorization)({address:n,chainId:t,nonce:r})}),o=c.SignatureEnvelope.from(a);if("secp256k1"!==o.type)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+o.type+"`.");let{r:s,s:l,yParity:u}=o.signature;return{address:n,chainId:t,nonce:r,r:i.fromNumber(s,{size:32}),s:i.fromNumber(l,{size:32}),yParity:u}},async signMessage(e){let{message:t}=e;return await d({hash:(0,m.hashMessage)(t)})}
139,async signTransaction(e,t){let{serializer:r=y.serialize}=t??{},n="feePayerSignature"in e&&e.feePayerSignature?{...e,feePayerSignature:null}:e,i=(0,h.keccak256)(await r(n)),{multisigSimulation:a}=e;if(a){let e=c.MultisigConfig.from(a.config),t=c.MultisigConfig.getSignPayload({account:a.account,config:e,payload:i});return await d({hash:t,raw:!0})}let o=await d({hash:i}),s=c.SignatureEnvelope.from(o);return await r(e,s)},signTypedData:async e=>await d({hash:(0,b.hashTypedData)(e)}),async signVoucher(e){let t=x(e);return r?await d({hash:t,raw:!0}):await d({hash:t})},publicKey:u,source:a,type:"local"}}function T(e){return"accessKeyAddress"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:"publicKey"in e&&e.publicKey?{accessKeyAddress:n.fromPublicKey(o.fromHex(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}var _=r(77664);Object.defineProperty(t,"z_KeyAuthorization",{enumerable:!0,get:function(){return _.KeyAuthorization}}),Object.defineProperty(t,"z_SignatureEnvelope",{enumerable:!0,get:function(){return _.SignatureEnvelope}}),Object.defineProperty(t,"z_TxEnvelopeTempo",{enumerable:!0,get:function(){return _.TxEnvelopeTempo}})},93772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoneVerifier=t.zonePortalImplementation=t.zoneOutbox=t.zoneMessenger=t.zoneFactory=t.validatorV2=t.validator=t.tip403Registry=t.tip20Factory=t.tip20ChannelReserve=t.storageCredits=t.stablecoinDex=t.signatureVerifier=t.receivePolicyGuard=t.pathUsd=t.nonceManager=t.nativeMultisig=t.feeManager=t.addressRegistry=t.accountRegistrar=t.accountKeychain=t.accountImplementation=void 0,t.zonePortal=function(e){let t=e>=4217e6&&e<4218e6?e-4217e6:e>=o&&e<2147483648?i.ZoneId.fromChainId(e,42431):e>=a&&e<o?i.ZoneId.fromChainId(e):e;if(6===t)return"0x7069DeC4E64Fd07334A0933eDe836C17259c9B23";if(7===t)return"0x3F5296303400B56271b476F5A0B9cBF74350D6Ac";let r=n.fromNumber(t,{size:8}).slice(2);return`0x5ad000000000000000000000${r}`};let n=r(81522),i=r(77664),a=i.ZoneId.toChainId(0),o=i.ZoneId.toChainId(0,42431);t.accountImplementation="0x7702c00000000000000000000000000000000000",t.accountKeychain="0xaAAAaaAA00000000000000000000000000000000",t.accountRegistrar="0x7702ac0000000000000000000000000000000000",t.addressRegistry="0xfdc0000000000000000000000000000000000000",t.feeManager="0xfeec000000000000000000000000000000000000",t.nativeMultisig="0xAACC000000000000000000000000000000000000",t.nonceManager="0x4e4F4E4345000000000000000000000000000000",t.pathUsd="0x20c0000000000000000000000000000000000000",t.receivePolicyGuard="0xB10C000000000000000000000000000000000000",t.signatureVerifier="0x5165300000000000000000000000000000000000",t.stablecoinDex="0xdec0000000000000000000000000000000000000",t.storageCredits="0x1060000000000000000000000000000000000000",t.tip20ChannelReserve="0x4d50500000000000000000000000000000000000",t.tip20Factory="0x20fc000000000000000000000000000000000000",t.tip403Registry="0x403c000000000000000000000000000000000000",t.validator="0xcccccccc00000000000000000000000000000000",t.validatorV2="0xcccccccc00000000000000000000000000000001",t.zoneFactory="0x5aF2000000000000000000000000000000000000",t.zoneMessenger="0x5A4d000000000000000000000000000000000000",t.zoneOutbox="0x1c00000000000000000000000000000000000002",t.zonePortalImplementation="0x5AD1000000000000000000000000000000000000",t.zoneVerifier="0x5a56000000000000000000000000000000000000"},79349:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransaction=function(e){if(!(0,c.isTempo)(e))return(0,o.formatTransaction)(e);let t=null==e.blockTimestamp?void 0:BigInt(e.blockTimestamp),r=e.multisig,{feePayerSignature:a,gasPrice:s,nonce:l,...d}=i.Transaction.fromRpc(e);return{...d,accessList:d.accessList,...void 0!==t&&{blockTimestamp:t},feePayerSignature:a?{r:n.fromNumber(a.r,{size:32}),s:n.fromNumber(a.s,{size:32}),v:BigInt(a.v??27),yParity:a.yParity}:void 0,multisig:u(r),nonce:Number(l),typeHex:i.Transaction.toRpcType[d.type],type:d.type}},t.formatTransactionReceipt=function(e){return{...(0,s.formatTransactionReceipt)(e),multisig:u(e.multisig),..."pending"===e.status?{status:"pending",type:"tempo"}:{}}},t.formatTransactionRequest=function(e,t){let r=e.account?(0,a.parseAccount)(e.account):void 0,n=e.owner?(0,a.parseAccount)(e.owner):void 0;if(n?.type==="json-rpc")throw Error("A local owner account is required to approve a multisig transaction.");
139if(!(0,c.isTempo)(e))return(0,l.formatTransactionRequest)(e,t);t&&(e.calls=e.calls??[{to:e.to||(e.data&&"0x"!==e.data?void 0:"0x0000000000000000000000000000000000000000"),value:e.value,data:e.data}]),!0!==e.feePayer||e.feePayerSignature||delete e.feeToken;let{owner:o,signatures:s,...u}=e,f=i.TransactionRequest.toRpc({...u,type:"tempo"});"estimateGas"===t&&(f.maxFeePerGas=void 0,f.maxPriorityFeePerGas=void 0),f.to=void 0,f.data=void 0,f.value=void 0;let p=n??r,[h,m]=(()=>{let t=p&&"keyType"in p?p.keyType:p?.source;return t?"webAuthn"===t?["webAuthn","0x0578"]:["p256","secp256k1"].includes(t)?[t,void 0]:[e.keyType,d(e.keyData)]:[e.keyType,d(e.keyData)]})(),b=p&&"accessKeyAddress"in p?p.accessKeyAddress:e.keyId;return r&&(f.from=r.address),{...f,...e.capabilities?{capabilities:e.capabilities}:{},...m?{keyData:m}:{},...b?{keyId:b}:{},...h?{keyType:h}:{},...e.owner?{owner:void 0}:{},...void 0!==e.feePayer?{feePayer:"object"==typeof e.feePayer?(0,a.parseAccount)(e.feePayer):e.feePayer}:{},..."feePayerSignature"in e&&void 0!==e.feePayerSignature?{feePayerSignature:e.feePayerSignature}:{}}};let n=r(81522),i=r(77664),a=r(21499),o=r(10146),s=r(58983),l=r(9101),c=r(17039);function u(e){if(!e)return;let t=i.MultisigOperation.fromRpc(e);if("transaction"!==t.type)throw Error("Expected a multisig transaction operation.");return t}function d(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:n.fromNumber(t,{size:2})}},67923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.lt=function(e,r){return t.hardforks.indexOf(e)<t.hardforks.indexOf(r)},t.hardforks=["genesis","t0","t1","t1a","t1b","t1c","t2","t3","t4","t5","t6"]},17039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.z_TxEnvelopeTempo=t.z_SignatureEnvelope=t.z_KeyAuthorization=void 0,t.getType=c,t.isTempo=u,t.deserialize=function(e){let t=n.slice(e,0,1);return"0x76"===t||"0x78"===t?function(e){let{feePayerSignature:t,nonce:r,...i}=a.TxEnvelopeTempo.deserialize(e);return{...i,nonce:Number(r??0n),feePayerSignature:t?{r:n.fromNumber(t.r,{size:32}),s:n.fromNumber(t.s,{size:32}),yParity:t.yParity}:t}}(e):(0,s.parseTransaction)(e)},t.serialize=d;let n=r(81522),i=r(9527),a=r(77664),o=r(10644),s=r(84763),l=r(22741);function c(e){let t=e.account;return t?.keyType&&"secp256k1"!==t.keyType||t?.source==="accessKey"||t?.source==="multisig"||void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feePayerSignature||void 0!==e.feeToken||void 0!==e.ke
139yAuthorization||void 0!==e.multisigSimulation||void 0!==e.nonceKey||void 0!==e.owner||void 0!==e.signature||void 0!==e.signatures||void 0!==e.validBefore||void 0!==e.validAfter?"tempo":e.type?e.type:(0,o.getTransactionType)(e)}function u(e){try{let t=c(e);return"tempo"===t}catch{return!1}}async function d(e,t){if(!u(e)){if(t&&"type"in t&&"secp256k1"!==t.type)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){let{r,s:i,yParity:a}=t?.signature;return(0,l.serializeTransaction)(e,{r:n.fromNumber(r,{size:32}),s:n.fromNumber(i,{size:32}),yParity:a})}return(0,l.serializeTransaction)(e,t)}if("tempo"===c(e))return f(e,t);throw Error("Unsupported transaction type")}async function f(e,t){let r=e.signature?e.signature:t&&"type"in t?t:t?a.SignatureEnvelope.from({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}):void 0,{chainId:n,feePayer:o,multisigSimulation:s,nonce:l,owner:c,...u}=e,d=(()=>{let t=e.feePayerSignature;return t?{r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}:null===t||o?null:void 0})(),f=void 0!==e.feePayerSignature&&null!==e.feePayerSignature,p=void 0!==r||!!(s&&e.signatures),h={...u,calls:u.calls?.length?u.calls:[{to:u.to||(u.data&&"0x"!==u.data?void 0:"0x0000000000000000000000000000000000000000"),value:u.value,data:u.data}],chainId:Number(n),feePayerSignature:d,type:"tempo",...l?{nonce:BigInt(l)}:{}},m={...h};(!0!==o||p&&d)&&("object"!=typeof o||p)&&(p||!f)||delete m.feeToken;let b=(()=>{if(r)return r;if(!s||!e.signatures)return;let t=a.TxEnvelopeTempo.getSignPayload(a.TxEnvelopeTempo.from(m)),n=e.signatures.map(e=>a.SignatureEnvelope.from(e)),i=a.MultisigConfig.from(s.config),o=s.account,l=a.SignatureEnvelope.sortMultisigApprovals({account:o,config:i,payload:t,signatures:n});return a.SignatureEnvelope.from({account:o,config:i,signatures:l})})();if(b&&"object"==typeof e.feePayer){let t=a.TxEnvelopeTempo.from(h,{signature:b}),r=e.from??a.SignatureEnvelope.extractAddress({payload:a.TxEnvelopeTempo.getSignPayload(t),root:!0,signature:b}),n=a.TxEnvelopeTempo.getFeePayerSignPayload(t,{sender:r}),o=await e.feePayer.sign({hash:n});return a.TxEnvelopeTempo.serialize(t,{feePayerSignature:i.from(o)})}return!0===o||!b&&f?b&&d?a.TxEnvelopeTempo.serialize(m,{signature:b}):b?a.TxEnvelopeTempo.serialize(m,{format:"feePayer",sender:e.from,signature:b}):a.TxEnvelopeTempo.serialize(m,{feePayerSignature:null}):a.TxEnvelopeTempo.serialize(m,{feePayerSignature:void 0,signature:b})}var p=r(77664);Object.defineProperty(t,"z_KeyAuthorization",{enumerable:!0,get:function(){return p.KeyAuthorization}}),Object.defineProperty(t,"z_SignatureEnvelope",{enumerable:!0,get:function(){return p.SignatureEnvelope}}),Object.defineProperty(t,"z_TxEnvelopeTempo",{enumerable:!0,get:function(){return p.TxEnvelopeTempo}})},759:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.authorize=x,t.authorizeSync=A,t.burnWitness=k,t.burnWitnessSync=P,t.getMetadata=C,t.getRemainingLimit=T,t.isAdmin=_,t.isWitnessBurned=O,t.revoke=S,t.revokeSync=I,t.prepareAuthorization=B,t.signAuthorization=j,t.updateLimit=M,t.updateLimitSync=R,t.watchAdminAuthorized=function(e,t){let{onAuthorized:r,...n}=t;return(0,s.watchContractEvent)(e,{...n,address:b.accountKeychain,abi:h.accountKeychain,eventName:"AdminKeyAuthorized",onLogs:e=>{for(let t of e)r(t.args,t)},strict:!0})},t.watchWitness=function(e,t){let{onWitness:r,...n}=t;return(0,s.watchContractEvent)(e,{...n,address:b.accountKeychain,abi:h.accountKeychain,eventName:"KeyAuthorizationWitness",onLogs:e=>{for(let t of e)r(t.args,t)},strict:!0})},t.watchWitnessBurned=function(e,t){let{onBurned:r,...n}=t;return(0,s.watchContractEvent)(e,{...n,address:b.accountKeychain,abi:h.accountKeychain,eventName:"KeyAuthorizationWitnessBurned",onLogs:e=>{for(let t of e)r(t.args,t)},strict:!0})},t.verifyHash=N;let i=r(77664),a=r(21499),o=r(13438),s=r(70),l=r(22922),c=r(71017),u=r(34451),d=r(58358),f=r(40635),p=r(73274),h=r(20866),m=r(26433),b=r(93772),y=r(67923),g=r(92294),v=r(90242),w={0:"secp256k1",1:"p256",2:"webAuthn"}
139,E={true:"limited",false:"unlimited"};async function x(e,t){return x.inner(l.sendTransaction,e,t)}async function A(e,t){let{throwOnReceiptRevert:r=!0,...n}=t,i=await x.inner(c.sendTransactionSync,e,{...n,throwOnReceiptRevert:r});if("pending"===i.status)return{receipt:i};let{args:a}=x.extractEvent(i.logs);return{...a,receipt:i}}async function k(e,t){return k.inner(u.writeContract,e,t)}async function P(e,t){let{throwOnReceiptRevert:r=!0,...n}=t,i=await k.inner(d.writeContractSync,e,{...n,throwOnReceiptRevert:r});if("pending"===i.status)return{receipt:i};let{args:a}=k.extractEvent(i.logs);return{...a,receipt:i}}async function C(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let s=(0,a.parseAccount)(r),l=await (0,o.readContract)(e,{...i,account:null,...C.call({account:s.address,accessKey:n})});return{address:l.keyId,keyType:w[l.signatureType]??"secp256k1",expiry:l.expiry,spendPolicy:E[`${l.enforceLimits}`],isRevoked:l.isRevoked}}async function T(e,t){let{account:r=e.account,accessKey:n,token:i,...s}=t;if(!r)throw Error("account is required.");let l=(0,a.parseAccount)(r),c=e.chain?.hardfork;if(c&&y.lt(c,"t3"))return{remaining:await (0,o.readContract)(e,{...s,...T.call({account:l.address,accessKey:n,token:i})}),periodEnd:void 0};let[u,d]=await (0,o.readContract)(e,{...s,...T.callWithPeriod({account:l.address,accessKey:n,token:i})});return{remaining:u,periodEnd:d}}async function _(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let s=(0,a.parseAccount)(r);return(0,o.readContract)(e,{...i,account:null,..._.call({account:s.address,accessKey:n})})}async function O(e,t){let{account:r=e.account,witness:n,...i}=t;if(!r)throw Error("account is required.");let s=(0,a.parseAccount)(r);return(0,o.readContract)(e,{...i,account:null,...O.call({account:s.address,witness:n})})}async function S(e,t){return S.inner(u.writeContract,e,t)}async function I(e,t){let{throwOnReceiptRevert:r=!0,...n}=t,i=await S.inner(d.writeContractSync,e,{...n,throwOnReceiptRevert:r});if("pending"===i.status)return{receipt:i};let{args:a}=S.extractEvent(i.logs);return{...a,receipt:i}}async function B(e,t){let{chainId:r=e.chain?.id}=t,n=t.account??e.account;if(!n)throw Error("account is required.");if(!r)throw Error("chainId is required.");let o=(0,a.parseAccount)(n),s=await (async()=>{if("multisig"in t)return t.multisig;if("multisig"===o.source){if(!o.config)throw Error("A multisig config is required to prepare a key authorization.");return{config:o.config}}})(),l=(0,m.getKeyAuthorizationSignPayload)(o,{...t,chainId:BigInt(r),key:t.accessKey}),c="multisig"===o.source&&s?i.MultisigConfig.getSignPayload({account:o.address,config:s.config,payload:l}):l;return{...t,account:o,chainId:r,multisig:s,signPayload:c}}async function j(e,t){if("hash"in t&&t.hash||"owner"in t&&t.owner){let r=t.owner;if(!r||"string"==typeof r)throw Error("A local owner account is required to approve a multisig key authorization.");let n=(0,a.parseAccount)(r).sign;if(!n)throw Error("A local owner account is required to approve a multisig key authorization.");let o=await (async()=>{if("hash"in t&&t.hash){let e=i.SignatureEnvelope.serialize(i.SignatureEnvelope.from(await n({hash:t.hash})));return{hash:t.hash,signature:e}}let{account:r,owner:a,...o}=t,s="string"==typeof r?r:r.address,l=await (async()=>{if("string"!=typeof r&&r.config)return r.config;let t=await (0,v.getConfig)(e,{address:s});if(t)return t;throw Error(`No current multisig config is cached for account ${s}. Provide the current config.`)})(),c=(()=>{if(0n!==l.version)return(0,m.fromMultisig)({address:s,...l});let{version:e,...t}=l;return(0,m.fromMultisig)({address:"infer",...t})})();if(!(0,p.isAddressEqual)(c.address,s))throw Error("Initial multisig config does not match the account.");let u=await B(e,{...o,account:c}),d=i.SignatureEnvelope.serialize(i.SignatureEnvelope.from(await n({hash:u.signPayload}))),{accessKey:f,admin:h,chainId:b,expiry:y,limits:g,scopes:w,witness:E}=u,{accessKeyAddress:x,keyType:A}=(0,m.resolveAccessKey)(f),k=i.KeyAuthorization.from({account:c.address,address:x,chainId:BigInt(b),signature:i.SignatureEnvelope.from({account:c.address,config:l,signatures:[i.SignatureEnvelope.from(d)]}),type:A,...E?{witness:E}:{},...h?{isAdmin:!0}:{expiry:y,limits:g,scopes:w}});return{keyAuthorization:i.KeyAuthorization.toRpc(k)}})(),s=await e.request({method:"multisig_approveKeyAuthorization",params:[o]}),l=i.MultisigOperation.fromRpc(s),c=i.KeyAuthorization.deserialize(await (async()=>
139{if("success"===l.status)return l.keyAuthorization;let e=await i.MultisigOperation.selectApprovals({account:l.account,approvals:l.approvals,config:l.config,hash:l.hash});return i.MultisigOperation.serializeKeyAuthorization(l.keyAuthorization,{account:l.account,approvals:e.selectedApprovals.length>0?e.selectedApprovals:e.approvals.slice(0,1),config:l.config})})());if(!c.signature)throw Error("Expected a signed multisig key authorization.");return{...c,hash:l.hash,multisig:l,status:l.status}}let{accessKey:r,account:n,chainId:o,multisig:s,signPayload:l,...c}="signPayload"in t?t:await B(e,t);return(0,m.signKeyAuthorization)(n,{chainId:BigInt(o),key:r,multisig:s,...c})}async function M(e,t){return M.inner(u.writeContract,e,t)}async function R(e,t){let{throwOnReceiptRevert:r=!0,...n}=t,i=await M.inner(d.writeContractSync,e,{...n,throwOnReceiptRevert:r});if("pending"===i.status)return{receipt:i};let{args:a}=M.extractEvent(i.logs);return{account:a.account,publicKey:a.publicKey,token:a.token,limit:a.newLimit,receipt:i}}async function N(e,t){let{account:r,admin:n,hash:i,signature:a,...s}=t;return(0,o.readContract)(e,{...s,...N.call({account:r,admin:n,hash:i,signature:a})})}function U(e){return"string"==typeof e?e:e.accessKeyAddress}!function(e){async function t(e,t,r){let{accessKey:n,admin:i,chainId:a=t.chain?.id,expiry:o,limits:s,scopes:l,witness:c,...u}=r,d=u.account??t.account;if(!d)throw Error("account is required.");if(!a)throw Error("chainId is required.");let f=await j(t,{account:d,accessKey:n,chainId:a,admin:i,expiry:o,limits:s,scopes:l,witness:c});return await e(t,{...u,keyAuthorization:f})}e.inner=t,e.extractEvent=function(e){let[t]=(0,f.parseEventLogs)({abi:h.accountKeychain,logs:e,eventName:"KeyAuthorized",strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t}}(x||(t.authorize=x={})),function(e){async function t(t,r,n){let{witness:i,...a}=n,o=e.call({witness:i});return await t(r,{...a,...o})}e.inner=t,e.call=function(e){let{witness:t}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"burnKeyAuthorizationWitness",args:[t]})},e.extractEvent=function(e){let[t]=(0,f.parseEventLogs)({abi:h.accountKeychain,logs:e,eventName:"KeyAuthorizationWitnessBurned",strict:!0});if(!t)throw Error("`KeyAuthorizationWitnessBurned` event not found.");return t}}(k||(t.burnWitness=k={})),(C||(t.getMetadata=C={})).call=function(e){let{account:t,accessKey:r}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"getKey",args:[t,U(r)]})},(n=T||(t.getRemainingLimit=T={})).call=function(e){let{account:t,accessKey:r,token:n}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"getRemainingLimit",args:[t,U(r),n]})},n.callWithPeriod=function(e){let{account:t,accessKey:r,token:n}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"getRemainingLimitWithPeriod",args:[t,U(r),n]})},(_||(t.isAdmin=_={})).call=function(e){let{account:t,accessKey:r}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"isAdminKey",args:[t,U(r)]})},(O||(t.isWitnessBurned=O={})).call=function(e){let{account:t,witness:r}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"isKeyAuthorizationWitnessBurned",args:[t,r]})},function(e){async function t(t,r,n){let{accessKey:i,...a}=n,o=e.call({accessKey:i});return await t(r,{...a,...o})}e.inner=t,e.call=function(e){let{accessKey:t}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"revokeKey",args:[U(t)]})},e.extractEvent=function(e){let[t]=(0,f.parseEventLogs)({abi:h.accountKeychain,logs:e,eventName:"KeyRevoked",strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t}}(S||(t.revoke=S={})),function(e){async function t(t,r,n){let{accessKey:i,token:a,limit:o,...s}=n,l=e.call({accessKey:i,token:a,limit:o});return await t(r,{...s,...l})}e.inner=t,e.call=function(e){let{accessKey:t,token:r,limit:n}=e;return(0,g.defineCall)({address:b.accountKeychain,abi:h.accountKeychain,functionName:"updateSpendingLimit",args:[U(t),r,n]})},e.extractEvent=function(e){let[t]=(0,f.parseEventLogs)({abi:h.accountKeychain,logs:e,eventName:"SpendingLimitUpdated",strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t}}(M||(t.updateLimit=M={})),(N||(t.verifyHash=N={})).call=function(e){let{account:t,admin:r=!0,hash:n,signature:i}=e;return(0,g.defineCall)({address:b.signatureVerifier,abi:h.signatureVerifier,functionName:r?"verifyKeychainAdmin":"verifyKeychain",args:[t,n,i]})}},90242:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=f,t.getConfigCommitment=p,t.getOperation=h,t.updateConfig=m,t.updateConfigSync=b;let n=r(77664),i=r(13438),a=r(34451),o=r(58358),s=r(40635),l=r(20866),c=r(26433),u=r(93772),d=r(92294);async function f(e,t){let r=await e.request({method:"multisig_getConfig",params:[{address:t.address}]});return r?n.MultisigConfig.fromRpc(r):null}async function p(e,t){let{account:r,...n}=t;return(0,i.readContract)(e,{...n,...p.call({account:r})})}async function h(e,t){let r=await e.request({method:"multisig_getOperation",params:[t.hash]});return r?n.MultisigOperation.fromRpc(r):null}async function m(e,t){return m.inner(a.writeContract,e,t)}async function b(e,t){let{throwOnReceiptRevert:r=!0,...i}=t,a=await m.inner(o.writeContractSync,e,{...i,throwOnReceiptRevert:r});if("pending"===a.status)return{receipt:a};let{args:s}=m.extractEvent(a.logs);return{account:s.account,config:n.MultisigConfig.from({owners:s.owners,salt:s.salt,threshold:s.threshold,version:s.version}),receipt:a}}(p||(t.getConfigCommitment=p={})).call=function(e){return(0,d.defineCall)({address:u.nativeMultisig,abi:l.nativeMultisig,args:[e.account],functionName:"getConfigCommitment"})},function(e){async function t(t,r,i){let{account:a,currentConfig:o,nextConfig:s,...l}=i,u=a??r.account,d=(()=>
139{if("object"==typeof u&&"multisig"===u.source)return u})(),p=o||(d?.config?d.config:void 0),h=d?d.address:"string"==typeof u?u:u?u.address:void 0,m=await (async()=>{if(p)return n.MultisigConfig.from(p);if(!h)throw Error("A multisig account address or current config is required.");let e=await f(r,{address:h});if(!e)throw Error(`No current multisig config is cached for account ${h}. Provide the current config.`);return e})(),b=d?{...d,config:m}:"object"==typeof u?u:h?(0,c.fromMultisig)({address:h,...m}):void 0;return await t(r,{...l,...b?{account:b}:{},...e.call({currentConfig:m,nextConfig:s})})}e.inner=t,e.call=function(e){let t=n.MultisigConfig.from(e.currentConfig),r=n.MultisigConfig.from({owners:e.nextConfig.owners,salt:t.salt,threshold:e.nextConfig.threshold,version:t.version+1n});return(0,d.defineCall)({address:u.nativeMultisig,abi:l.nativeMultisig,args:[t,r.threshold,r.owners],functionName:"updateConfig"})},e.extractEvent=function(e){let[t]=(0,s.parseEventLogs)({abi:l.nativeMultisig,logs:e,eventName:"MultisigConfigUpdated",strict:!0});if(!t)throw Error("`MultisigConfigUpdated` event not found.");return t}}(m||(t.updateConfig=m={}))},14849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainConfig=void 0;let n=r(81522),i=r(77664),a=r(89102),o=r(84187),s=r(33170),l=r(24796),c=r(73274),u=r(71338),d=r(10146),f=r(58983),p=r(9101),h=r(78525),m=r(83935),b=r(759),y=r(90242),g=r(79349),v=r(86920),w=r(17039),E=(e,t)=>w.serialize(e,t);function x(e){let{account:t,config:r,local:n}=e;return{account:t,approvals:k(r).map(e=>{let t=n?.owners.find(t=>c.isAddressEqual(t.address,e.owner));if(t?.source==="multisig"){if(!t.config)throw Error("A nested multisig config is required for gas estimation.");return{type:"multisig",spec:{account:t.address,approvals:k(t.config).map(e=>{let r=t.owners.find(t=>(0,c.isAddressEqual)(t.address,e.owner));if(r?.source==="multisig")throw Error("Multisig simulation nesting exceeds depth two.");return{...A(r),owner:e.owner}}),config:t.config}}}return{...A(t),owner:e.owner,type:"primitive"}}),config:r}}function A(e){let t=(()=>{if(e&&"object"==typeof e&&"keyType"in e&&"string"==typeof e.keyType)return e.keyType})();return t&&"webAuthn"!==t&&("p256"===t||"secp256k1"===t)?{keyType:t}:{keyData:"0x0578",keyType:"webAuthn"}}function k(e){let t=[...e.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase())),r=[],n=0;for(let a of t.slice(0,i.MultisigConfig.maxSignatures)){if(n>=Number(e.threshold))break;r.push(a),n+=Number(a.weight)}return r.sort((e,t)=>e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))}t.chainConfig={blockTime:1e3,extendSchema:(0,u.extendSchema)(),formatters:{transaction:(0,d.defineTransaction)({exclude:["aaAuthorizationList"],format:g.formatTransaction}),transactionReceipt:(0,f.defineTransactionReceipt)({format:g.formatTransactionReceipt}),transactionRequest:(0,p.defineTransactionRequest)({format:g.formatTransactionRequest})},prepareTransactionRequest:[async(e,{client:t,phase:r})=>{if(e.hash){if(!e.account||"string"==typeof e.account||"multisig"!==e.account.source)throw Error("A local multisig account is required to approve a stored multisig transaction.");if(!e.owner||"string"==typeof e.owner)throw Error("A local owner account is required to approve a stored multisig transaction.");if("root"!==e.owner.source&&"multisig"!==e.owner.source)throw Error("A Tempo owner account is required to approve a stored multisig transaction.");let r=await (0,h.getAction)(t,o.getTransaction,"getTransaction")({hash:e.hash}),n="multisig"in r?r.multisig:void 0;if(!n)throw Error("Expected a multisig operation transaction.");if(!(0,c.isAddressEqual)(n.account,e.account.address))throw Error("Multisig operation account does not match the requested account.");let a=w.deserialize(n.transaction);if(i.MultisigOperation.getHash({account:n.account,config:n.config,transaction:n.transaction,type:"transaction"}).toLowerCase()!==e.hash.toLowerCase())throw Error("Multisig operation hash does not match transaction.");return{...a,account:e.account,from:n.account,multisigSimulation:x({account:n.account,config:n.config,local:e.account}),owner:e.owner}}if("afterFillParameters"===r)return void 0!==e.gas&&e.feePayer&&!e.feePayerSignature&&(e.keyAuthorization?.signature.type==="webAuthn"?e.gas=(e.gas??0n)+20000n:e.account?.source==="accessKey"&&(e.gas=(e.gas??0n)+10000n)),e;let a=(()=>
139{if(e.account?.source==="multisig")return{account:e.account.address,config:e.account.config,local:e.account}})();if(e.owner&&!a)throw Error("A multisig account is required when an owner is provided.");if(e.owner&&"string"==typeof e.owner)throw Error("A local owner account is required to approve a multisig transaction.");if(e.owner&&"root"!==e.owner.source&&"multisig"!==e.owner.source)throw Error("A Tempo owner account is required to approve a multisig transaction.");let s=!!a&&!!e.owner&&!0===t.transport.multisig;if(a){let{account:r,local:n}=a;if(!r)throw Error("A multisig account address is required with a current config.");let i=await (async()=>{if(a.config)return a.config;if(!s)return;let e=await (0,h.getAction)(t,y.getConfig,"getConfig")({address:r});if(!e)throw Error(`No current multisig config is cached for account ${r}. Provide the current config.`);return e})();if(!i)throw Error("A multisig config is required to prepare a transaction.");e.from=r,e.multisigSimulation=x({account:r,config:i,local:n})}let u=await (async()=>{if("expiring"===e.nonceKey||e.nonceKey===l.maxUint256)return!0;if(void 0!==e.nonceKey||a)return!1;if(e.feePayer&&void 0===e.nonceKey)return!0;let t=e.account,r="string"==typeof t?t:t?.address;return!!r&&void 0===e.nonceKey&&await v.detect(r.toLowerCase())})();if(s&&void 0===e.nonceKey?(e.nonceKey=n.toBigInt(n.random(31))+1n,e.nonce=0):u?(e.nonceKey=l.maxUint256,e.nonce=0,void 0===e.validAfter&&(e.validAfter=function(){let e=BigInt(Math.floor(Date.now()/1e3))-60n;return e<=0n?0:Number(BigInt(n.random(8))%e)}()),void 0===e.validBefore&&(e.validBefore=Math.floor(Date.now()/1e3)+25)):void 0!==e.nonceKey&&(e.nonce="number"==typeof e.nonce?e.nonce:0),!e.keyAuthorization&&e.account?.source==="accessKey"){let r=e.account.keyAuthorizationManager;if(r){let n=e.chainId??e.chain?.id;if(void 0!==n){let i=e.account.address,a=e.account.accessKeyAddress,o={address:i,accessKey:a,chainId:n},s=await r.get(o);if(s){let n=BigInt(Math.floor(Date.now()/1e3));if(null!=s.expiry&&BigInt(s.expiry)<=n)await r.remove(o);else{let l=await (0,h.getAction)(t,b.getMetadata,"getMetadata")({account:i,accessKey:a});(0,c.isAddressEqual)(l.address,a)&&!l.isRevoked&&l.expiry>n?await r.remove(o):e.keyAuthorization=s}}}}}return!e.feeToken&&e.chain?.feeToken&&(e.feeToken=e.chain.feeToken),e},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:E,async transactionEnvelope({serializedTransaction:e,transaction:t}){if(!t.multisigSimulation)return e;try{i.SignatureEnvelope.deserialize(e)}catch{let t=w.deserialize(e);if(t.signature?.type==="multisig")return e;throw Error("A Tempo owner account is required to approve a multisig transaction.")}return await E({...t,signatures:[...t.signatures??[],e]})}},async verifyHash(e,t){let{address:r,hash:o,signature:l,mode:c}=t,u=(()=>{if("string"==typeof l)try{return i.SignatureEnvelope.deserialize(l)}catch{return}})();if(u){if(u?.type==="keychain"&&"allowAccessKey"===c){let a="v2"===u.version?(0,m.keccak256)(n.concat("0x04",o,r)):o,s=(()=>{try{return i.SignatureEnvelope.extractAddress({payload:a,signature:u.inner})}catch{return}})();if(!s)return!1;let l=await (0,b.getMetadata)(e,{account:r,accessKey:s,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return!(l.isRevoked||l.expiry<=BigInt(Math.floor(Date.now()/1e3)))&&i.SignatureEnvelope.verify(u.inner,{address:s,payload:a})}if("p256"===u.type||"webAuthn"===u.type){let n=await (0,a.getCode)(e,{address:r,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!n||"0xef01007702c00000000000000000000000000000000000"===n)return i.SignatureEnvelope.verify(u,{address:r,payload:o})}}return await (0,h.getAction)(e,s.verifyHash,"verifyHash")({...t,chain:null})}}},86920:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detect=n;let r=new Map;async function n(e){r.set(e,(r.get(e)??0)+1),await Promise.resolve();let t=(r.get(e)??0)>1;return queueMicrotask(()=>{let t=r.get(e)??0;t<=1?r.delete(e):r.set(e,t-1)}),t}},92294:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.resolveToken=l,t.findDeclaredToken=function(e,t){let r=e.tokens,i=e.chain?.id;if(!r||void 0===i)return;if("string"==typeof t){let r=c(e,t);if(r)return r}let o=n.TokenId.toAddress(t);for(let e of r){let t=u(e,i);if(t&&(0,a.isAddressEqual)(t.address,o))return t}},t.resolveTokenWithDecimals=d,t.pickWriteParameters=function(e){let{account:t,chain:r,feePayer:n,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:l,nonce:c,nonceKey:u,owner:d,validAfter:f,validBefore:p}=e;return{account:t,chain:r,feePayer:n,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:l,nonce:c,nonceKey:u,owner:d,validAfter:f,validBefore:p}},t.pickWriteSyncParameters=function(e){let{pollingInterval:t,timeout:r}=e;return{pollingInterval:t,timeout:r}},t.resolveCallParameters=function(e){return 2===e.length?e:[void 0,e[0]]},t.defineCall=function(e){return{...e,data:(0,o.encodeFunctionData)(e),to:e.address}},t.normalizeValue=function e(t){if(Array.isArray(t))return t.map(e);if("function"==typeof t)return;if("object"!=typeof t||null===t)return t;if(Object.getPrototypeOf(t)!==Object.prototype)try{return structuredClone(t)}catch{return}let r={};for(let[n,i]of Object.entries(t))r[n]=e(i);return r};let n=r(77664),i=r(13438),a=r(73274),o=r(34262),s=r(20866);function l(e,t){let{decimals:r,token:i}=t;if(e&&"string"==typeof i){let t=c(e,i);if(t)return{address:t.address,decimals:r??t.decimals}}let o=n.TokenId.toAddress(i);return{address:o,decimals:r??(e?function(e,t){let r=e.tokens,n=e.chain?.id;if(r&&void 0!==n)for(let e of r){let r=u(e,n);if(r&&(0,a.isAddressEqual)(r.address,t))return r.decimals}}(e,o):void 0)}}function c(e,t){let r=e.tokens,n=e.chain?.id;if(!r||void 0===n)return;let i=t.toLowerCase();for(let e of r)if(e.symbol?.toLowerCase()===i)return u(e,n)}function u(e,t){let r=e.addresses[t];if(r)return{address:r,currency:e.currency,decimals:e.decimals,name:e.name,popular:e.popular,symbol:e.symbol}}async function d(e,t){let{address:r,decimals:n}=l(e,t);return void 0!==n?{address:r,decimals:n}:{address:r,decimals:await (0,i.readContract)(e,{abi:s.tip20,address:r,functionName:"decimals"})}}},10537:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderRpcError=void 0;class r extends Error{constructor(e,t){super(t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=t}}t.ProviderRpcError=r},61779:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=function(e,t){let r="string"==typeof t?(0,c.hexToBytes)(t):t,p=(0,a.createCursor)(r);if(0===(0,o.size)(r)&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,o.size)(t)&&32>(0,o.size)(t))throw new n.AbiDecodingDataSizeTooSmallError({data:"string"==typeof t?t:(0,u.bytesToHex)(t),params:e,size:(0,o.size)(t)});let h=0,m=[];for(let t=0;t<e.length;++t){let a=e[t];h<r.length&&p.setPosition(h);let[o,c]=function e(t,r,{staticPosition:a}){let o=(0,d.getArrayComponents)(r.type);if(o){let[n,i]=o;return function(t,r,{length:n,staticPosition:i}){if(null===n){let n=i+(0,l.bytesToNumber)(t.readBytes(32)),a=n+32;t.setPosition(n);let o=(0,l.bytesToNumber)(t.readBytes(32)),s=f(r),c=0,u=[];for(let n=0;n<o;++n){t.setPosition(a+(s?32*n:c));let[i,o]=e(t,r,{staticPosition:a});c+=o,u.push(i),0===o&&(t.assertReadLimit(),t._touch())}return t.setPosition(i+32),[u,32]}if(f(r)){let a=i+(0,l.bytesToNumber)(t.readBytes(32)),o=[];for(let i=0;i<n;++i){t.setPosition(a+32*i);let[n]=e(t,r,{staticPosition:a});o.push(n)}return t.setPosition(i+32),[o,32]}let a=0,o=[];for(let s=0;s<n;++s){let[n,s]=e(t,r,{staticPosition:i+a});a+=s,o.push(n),0===s&&(t.assertReadLimit(),t._touch())}return[o,a]}(t,{...r,type:i},{length:n,staticPosition:a})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),a=i?[]:{},o=0;if(f(r)){let s=n+(0,l.bytesToNumber)(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(s+o);let[c,u]=e(t,l,{staticPosition:s});o+=u,a[i?n:l?.name]=c}return t.setPosition(n+32),[a,32]}for(let s=0;s<r.components.length;++s){let l=r.components[s],[c,u]=e(t,l,{staticPosition:n});a[i?s:l?.name]=c,o+=u}return[a,o]}(t,r,{staticPosition:a});if("address"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.checksumAddress)((0,u.bytesToHex)((0,s.sliceBytes)(t,-20))),32]}(t);if("bool"===r.type)return[(0,l.bytesToBool)(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=(0,l.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);let n=(0,l.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,u.bytesToHex)(i),32]}return[(0,u.bytesToHex)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,r,{staticPosition:a});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[n>48?(0,l.bytesToBigInt)(i,{signed:r}):(0,l.bytesToNumber)(i,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=(0,l.bytesToNumber)(e.readBytes(32));e.setPosition(t+r);let n=(0,l.bytesToNumber)(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),a=(0,l.bytesToString)(i);return e.setPosition(t+32),[a,32]}(t,{staticPosition:a});throw new n.InvalidAbiDecodingTypeError(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(p,a,{staticPosition:0});h+=c,m.push(o)}return m};let n=r(43279),i=r(39684),a=r(68450),o=r(62221),s=r(47645),l=r(62266),c=r(22876),u=r(96291),d=r(75246);function f(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
139if("tuple"===t)return e.components?.some(f);let r=(0,d.getArrayComponents)(e.type);return!!(r&&f({...e,type:r[1]}))}},83325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=function(e){let{abi:t,bytecode:r,data:o}=e;if(o===r)return{bytecode:r};let s=t.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});return{args:(0,i.decodeAbiParameters)(s.inputs,`0x${o.replace(r,"")}`),bytecode:r}};let n=r(43279),i=r(61779),a="/docs/contract/decodeDeployData"},40159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=function(e){let{abi:t,data:r,cause:c}=e,u=(0,a.slice)(r,0,4);if("0x"===u)throw new i.AbiDecodingZeroDataError({cause:c});let d=[...t||[],n.solidityError,n.solidityPanic].find(e=>"error"===e.type&&u===(0,o.toFunctionSelector)((0,l.formatAbiItem)(e)));if(!d)throw new i.AbiErrorSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeErrorResult",cause:c});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,s.decodeAbiParameters)(d.inputs,(0,a.slice)(r,4)):void 0,errorName:d.name}};let n=r(36227),i=r(43279),a=r(47645),o=r(45866),s=r(61779),l=r(52162)},42908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=function(e){let{abi:t,data:r,strict:u,topics:d}=e,f=u??!0,[p,...h]=d;if(!p)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:c});let m=t.find(e=>"event"===e.type&&p===(0,o.toEventSelector)((0,l.formatAbiItem)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new n.AbiEventSignatureNotFoundError(p,{docsPath:c});let{name:b,inputs:y}=m,g=y?.some(e=>!("name"in e&&e.name)),v=g?[]:{},w=y.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed),E=[];for(let e=0;e<w.length;e++){let[t,r]=w[e],i=h[e];if(!i){if(f)throw new n.DecodeLogTopicsMismatch({abiItem:m,param:t});E.push([t,r]);continue}v[g?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.decodeAbiParameters)([e],t)||[])[0]}({param:t,value:i})}let x=y.filter(e=>!("indexed"in e&&e.indexed)),A=f?x:[...E.map(([e])=>e),...x];if(A.length>0){if(r&&"0x"!==r)try{let e=(0,s.decodeAbiParameters)(A,r);if(e){let t=0;if(!f)for(let[r,n]of E)v[g?n:r.name||n]=e[t++];if(g)for(let r=0;r<y.length;r++)void 0===v[r]&&t<e.length&&(v[r]=e[t++]);else for(let r=0;r<x.length;r++)v[x[r].name]=e[t++]}}catch(e){if(f){if(e instanceof n.AbiDecodingDataSizeTooSmallError||e instanceof i.PositionOutOfBoundsError)throw new n.DecodeLogDataMismatch({abiItem:m,data:r,params:A,size:(0,a.size)(r)});throw e}}else if(f)throw new n.DecodeLogDataMismatch({abiItem:m,data:"0x",params:A,size:0})}return{eventName:b,args:Object.values(v).length>0?v:void 0}};let n=r(43279),i=r(97787),a=r(62221),o=r(1515),s=r(61779),l=r(52162),c="/docs/contract/decodeEventLog"},70687:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=function(e){let{abi:t,data:r}=e,l=(0,i.slice)(r,0,4),c=t.find(e=>"function"===e.type&&l===(0,a.toFunctionSelector)((0,s.formatAbiItem)(e)));if(!c)throw new n.AbiFunctionSignatureNotFoundError(l,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,o.decodeAbiParameters)(c.inputs,(0,i.slice)(r,4)):void 0}};let n=r(43279),i=r(47645),a=r(45866),o=r(61779),s=r(52162)},65933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=function(e){let{abi:t,args:r,functionName:s,data:l}=e,c=t[0];if(s){let e=(0,a.getAbiItem)({abi:t,args:r,name:s});if(!e)throw new n.AbiFunctionNotFoundError(s,{docsPath:o});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:o});let u=(0,i.decodeAbiParameters)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0};let n=r(43279),i=r(61779),a=r(35014),o="/docs/contract/decodeFunctionResult"},75246:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.encodeAbiParameters=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});return h(function({params:e,values:t}){let r=[];for(let b=0;b<e.length;b++)r.push(function e({param:t,value:r}){let b=m(t.type);if(b){let[i,a]=b;return function(t,{length:r,param:i}){let a=null===r;if(!Array.isArray(t))throw new n.InvalidArrayError(t);if(!a&&t.length!==r)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let o=0===t.length&&function e(t){let{type:r}=t;if("string"===r||"bytes"===r||r.endsWith("[]"))return!0;if("tuple"===r)return t.components.some(e);let n=m(r);return!!n&&e({...t,type:n[1]})}(i),s=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(o=!0),s.push(n)}if(a||o){let e=h(s);if(a){let t=(0,f.numberToHex)(s.length,{size:32});return{dynamic:!0,encoded:(0,l.concatHex)([t,e])}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.concatHex)(s.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let a=0;a<r.components.length;a++){let o=r.components[a],s=Array.isArray(t)?a:o.name,l=e({param:o,value:t[s]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?h(i):(0,l.concatHex)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,s.isAddress)(e))throw new i.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,c.padHex)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new a.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.padHex)((0,f.boolToHex)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=p.integerRegex.exec(t.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new o.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.numberToHex)(e,{size:32,signed:t})}}(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,c.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.concatHex)([(0,c.padHex)((0,f.numberToHex)(i,{size:32})),t])}}if(i!==Number.parseInt(r,10))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,c.padHex)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,f.stringToHex)(e),r=Math.ceil((0,u.size)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,c.padHex)((0,d.slice)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,l.concatHex)([(0,c.padHex)((0,f.numberToHex)((0,u.size)(t),{size:32})),...n])}}(r);throw new n.InvalidAbiEncodingTypeError(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[b],value:t[b]}));return r}({params:e,values:t}))},t.getArrayComponents=m;let n=r(43279),i=r(39878),a=r(63392),o=r(78485),s=r(42948),l=r(246),c=r(95367),u=r(62221),d=r(47645),f=r(96291),p=r(16859);function h(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.size)(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:s}=e[a];o?(r.push((0,f.numberToHex)(t+i,{size:32})),n.push(s),i+=(0,u.size)(s)):r.push(s)}return(0,l.concatHex)([...r,...n])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},24594:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=function(e){let{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;let l=t.find(e=>"type"in e&&"constructor"===e.type);if(!l)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in l)||!l.inputs||0===l.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});let c=(0,a.encodeAbiParameters)(l.inputs,r);return(0,i.concatHex)([s,c])};let n=r(43279),i=r(246),a=r(75246),o="/docs/contract/encodeDeployData"},16323:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=function(e){let{abi:t,errorName:r,args:u}=e,d=t[0];if(r){let e=(0,l.getAbiItem)({abi:t,args:u,name:r});if(!e)throw new n.AbiErrorNotFoundError(r,{docsPath:c});d=e}if("error"!==d.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:c});let f=(0,s.formatAbiItem)(d),p=(0,a.toFunctionSelector)(f),h="0x";if(u&&u.length>0){if(!d.inputs)throw new n.AbiErrorInputsNotFoundError(d.name,{docsPath:c});h=(0,o.encodeAbiParameters)(d.inputs,u)}return(0,i.concatHex)([p,h])};let n=r(43279),i=r(246),a=r(45866),o=r(75246),s=r(52162),l=r(35014),c="/docs/contract/encodeErrorResult"},16244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=function(e){let{abi:t,eventName:r,args:i}=e,a=t[0];if(r){let e=(0,u.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiEventNotFoundError(r,{docsPath:d});a=e}if("event"!==a.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:d});let o=[];if(i&&"inputs"in a){let e=a.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(i)?i:Object.values(i).length>0?e?.map(e=>i[e.name])??[]:[];t.length>0&&(o=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>f({param:e,value:t[r][i]})):void 0!==t[r]&&null!==t[r]?f({param:e,value:t[r]}):null)??[])}if(a.anonymous)return o;let l=(0,c.formatAbiItem)(a);return[(0,s.toEventSelector)(l),...o]};let n=r(43279),i=r(22814),a=r(22876),o=r(83935),s=r(1515),l=r(75246),c=r(52162),u=r(35014),d="/docs/contract/encodeEventTopics";function f({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,o.keccak256)((0,a.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new i.FilterTypeNotSupportedError(e.type);return(0,l.encodeAbiParameters)([e],[t])}},23337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=function(e){let{args:t}=e,{abi:r,functionName:o}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:(0,a.prepareEncodeFunctionData)(e),s=r[0],l="inputs"in s&&s.inputs?(0,i.encodeAbiParameters)(s.inputs,t??[]):void 0;return(0,n.concatHex)([o,l??"0x"])};let n=r(246),i=r(75246),a=r(27457)},15168:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=function(e){let{abi:t,functionName:r,result:s}=e,l=t[0];if(r){let e=(0,a.getAbiItem)({abi:t,name:r});if(!e)throw new n.AbiFunctionNotFoundError(r,{docsPath:o});l=e}if("function"!==l.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:o});if(!l.outputs)throw new n.AbiFunctionOutputsNotFoundError(l.name,{docsPath:o});let c=(()=>{if(0===l.outputs.length)return[];if(1===l.outputs.length)return[s];if(Array.isArray(s))return s;throw new n.InvalidArrayError(s)})();return(0,i.encodeAbiParameters)(l.outputs,c)};let n=r(43279),i=r(75246),a=r(35014),o="/docs/contract/encodeFunctionResult"},18819:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=[];for(let u=0;u<e.length;u++){let d=e[u],f=t[u];r.push(function e(t,r,u=!1){if("address"===t){if(!(0,a.isAddress)(r))throw new i.InvalidAddressError({address:r});return(0,s.pad)(r.toLowerCase(),{size:u?32:null})}if("string"===t)return(0,l.stringToHex)(r);if("bytes"===t)return r;if("bool"===t)return(0,s.pad)((0,l.boolToHex)(r),{size:u?32:1});let d=t.match(c.integerRegex);if(d){let[e,t,n="256"]=d,i=Number.parseInt(n,10)/8;return(0,l.numberToHex)(r,{size:u?32:i,signed:"int"===t})}let f=t.match(c.bytesRegex);if(f){let[e,t]=f;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(r.length-2)/2});return(0,s.pad)(r,{dir:"right",size:u?32:null})}let p=t.match(c.arrayRegex);if(p&&Array.isArray(r)){let[t,n]=p,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":(0,o.concatHex)(i)}throw new n.UnsupportedPackedAbiType(t)}(d,f))}return(0,o.concatHex)(r)};let n=r(43279),i=r(39878),a=r(42948),o=r(246),s=r(95367),l=r(96291),c=r(16859)},52162:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`},t.formatAbiParams=i;let n=r(43279);function i(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},9383:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`};let n=r(16283)},35014:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAbiItem=function(e){let t;let{abi:r,args:a=[],name:u}=e,d=(0,i.isHex)(u,{strict:!1}),f=r.filter(e=>d?"function"===e.type?(0,s.toFunctionSelector)(e)===u:"event"===e.type&&(0,o.toEventSelector)(e)===u:"name"in e&&e.name===u);if(0!==f.length){if(1===f.length)return f[0];for(let e of f)if("inputs"in e){if(!a||0===a.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===a.length&&a.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&l(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=c(e.inputs,t.inputs,a);if(r)throw new n.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||f[0]}},t.isArgOfType=l,t.getAmbiguousTypes=c;let n=r(43279),i=r(93674),a=r(42948),o=r(1515),s=r(45866);function l(e,t){let r=typeof e,n=t.type;switch(n){case"address":return(0,a.isAddress)(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===n&&"components"in t)return Object.values(t.components).every((t,n)=>"object"===r&&l(Object.values(e)[n],t));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n))return"string"===r||e instanceof Uint8Array;
139if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n))return Array.isArray(e)&&e.every(e=>l(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}function c(e,t,r){for(let n in e){let i=e[n],o=t[n];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return c(i.components,o.components,r[n]);let s=[i.type,o.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&(0,a.isAddress)(r[n],{strict:!1}))return s}}},40635:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEventLogs=function(e){let{abi:t,args:r,logs:c,strict:u=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),f=t.filter(e=>"event"===e.type).map(e=>({abi:e,selector:(0,s.toEventSelector)(e)}));return c.map(e=>{let t,s;let c="string"==typeof e.blockNumber?(0,a.formatLog)(e):e,p=f.filter(e=>c.topics[0]===e.selector);if(0===p.length)return null;for(let e of p)try{t=(0,l.decodeEventLog)({...c,abi:[e.abi],strict:!0}),s=e;break}catch{}if(!t&&!u){s=p[0];try{t=(0,l.decodeEventLog)({data:c.data,topics:c.topics,abi:[s.abi],strict:!1})}catch{let e=s.abi.inputs?.some(e=>!("name"in e&&e.name));return{...c,args:e?[]:{},eventName:s.abi.name}}}return t&&s&&(!d||d.includes(t.eventName))&&function(e){let{args:t,inputs:r,matchArgs:a}=e;if(!a)return!0;if(!t)return!1;function s(e,t,r){try{if("address"===e.type)return(0,n.isAddressEqual)(t,r);if("string"===e.type||"bytes"===e.type)return(0,o.keccak256)((0,i.toBytes)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(a)?a.every((e,n)=>{if(null==e)return!0;let i=r[n];return!!i&&(Array.isArray(e)?e:[e]).some(e=>s(i,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof a||Array.isArray(a))&&Object.entries(a).every(([e,n])=>{if(null==n)return!0;let i=r.find(t=>t.name===e);return!!i&&(Array.isArray(n)?n:[n]).some(r=>s(i,r,t[e]))})}({args:t.args,inputs:s.abi.inputs,matchArgs:r})?{...t,...c}:null}).filter(Boolean)};let n=r(73274),i=r(22876),a=r(47539),o=r(83935),s=r(1515),l=r(42908)},27457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareEncodeFunctionData=function(e){let{abi:t,args:r,functionName:l}=e,c=t[0];if(l){let e=(0,o.getAbiItem)({abi:t,args:r,name:l});if(!e)throw new n.AbiFunctionNotFoundError(l,{docsPath:s});c=e}if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:s});return{abi:[c],functionName:(0,i.toFunctionSelector)((0,a.formatAbiItem)(c))}};let n=r(43279),i=r(45866),a=r(52162),o=r(35014),s="/docs/contract/encodeFunctionData"},39684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checksumAddress=c,t.getAddress=function(e,t){if(!(0,s.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});return c(e,t)};let n=r(39878),i=r(22876),a=r(83935),o=r(90626),s=r(42948),l=new o.LruMap(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,a.keccak256)((0,i.stringToBytes)(r),"bytes"),o=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let s=`0x${o.join("")}`;return l.set(`${e}.${t}`,s),s}},21645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f;let n=r(246),i=r(98543),a=r(95367),o=r(47645),s=r(22876),l=r(76311),c=r(83935),u=r(39684);function d(e){let t=(0,s.toBytes)((0,u.getAddress)(e.from)),r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,u.getAddress)(`0x${(0,c.keccak256)((0,l.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){let t=(0,s.toBytes)((0,u.getAddress)(e.from)),r=(0,a.pad)((0,i.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),l="bytecodeHash"in e?(0,i.isBytes)(e.bytecodeHash)?e.bytecodeHash:(0,s.toBytes)(e.bytecodeHash):(0,c.keccak256)(e.bytecode,"bytes");return(0,u.getAddress)((0,o.slice)((0,c.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,l])),12))}},42948:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressCache=void 0,t.isAddress=function(e,r){let{strict:n=!0}=r??{},o=`${e}.${n}`;if(t.isAddressCache.has(o))return t.isAddressCache.get(o);let s=!!a.test(e)&&(e.toLowerCase()===e||!n||(0,i.checksumAddress)(e)===e);return t.isAddressCache.set(o,s),s};let n=r(90626),i=r(39684),a=/^0x[a-fA-F0-9]{40}$/;t.isAddressCache=new n.LruMap(8192)},73274:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=function(e,t){if(!(0,i.isAddress)(e,{strict:!1}))throw new n.InvalidAddressError({address:e});if(!(0,i.isAddress)(t,{strict:!1}))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()};let n=r(39878),i=r(42948)},7932:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashAuthorization=function(e){let{chainId:t,nonce:r,to:l}=e,c=e.contractAddress??e.address,u=(0,s.keccak256)((0,n.concatHex)(["0x05",(0,o.toRlp)([t?(0,a.numberToHex)(t):"0x",c,r?(0,a.numberToHex)(r):"0x"])]));return"bytes"===l?(0,i.hexToBytes)(u):u};let n=r(246),i=r(22876),a=r(96291),o=r(76311),s=r(83935)},63560:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAuthorizationAddress=a;let n=r(73646),i=r(7932);async function a(e){let{authorization:t,signature:r}=e;return(0,n.recoverAddress)({hash:(0,i.hashAuthorization)(t),signature:r??t})}},22677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAuthorizationList=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e){let{chainId:e,nonce:a,...o}=r,s=r.address;t.push([e?(0,n.toHex)(e):"0x",s,a?(0,n.toHex)(a):"0x",...(0,i.toYParitySignatureArray)({},o)])}return t};let n=r(96291),i=r(22741)},8247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=o;let n=r(39684),i=r(73274),a=r(63560);async function o({address:e,authorization:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,a.recoverAuthorizationAddress)({authorization:t,signature:r}))}},83209:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToCommitments=function(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,o=[];for(let e of a)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?o:o.map(e=>(0,i.bytesToHex)(e))};let n=r(22876),i=r(96291)},51227:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blobsToProofs=function(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.hexToBytes)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.hexToBytes)(e)):e.commitments,s=[];for(let e=0;e<a.length;e++){let r=a[e],n=o[e];s.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?s:s.map(e=>(0,i.bytesToHex)(e))};let n=r(22876),i=r(96291)},72803:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentToVersionedHash=function(e){let{commitment:t,version:r=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),o=(0,i.sha256)(t,"bytes");return o.set([r],0),"bytes"===a?o:(0,n.bytesToHex)(o)};let n=r(96291),i=r(79887)},40741:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commitmentsToVersionedHashes=function(e){let{commitments:t,version:r}=e,i=e.to??("string"==typeof t[0]?"hex":"bytes"),a=[];for(let e of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:i,version:r}));return a};let n=r(72803)},94583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromBlobs=function(e){let t=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,i.hexToBytes)(e)):e.blobs,o=r.reduce((e,t)=>e+t.length,0),s=(0,n.createCursor)(new Uint8Array(o)),l=!0;for(let[e,t]of r.entries()){let i=(0,n.createCursor)(t),a=e===r.length-1;for(;l&&i.position<t.length;){i.incrementPosition(1);let e=31;for(let r in t.length-i.position<31&&(e=t.length-i.position),Array.from({length:e})){let e=i.readByte();if(a&&128===e&&!i.inspectBytes(i.remaining).includes(128)){l=!1;break}s.pushByte(e)}}}let c=s.bytes.slice(0,s.position);return"hex"===t?(0,a.bytesToHex)(c):c};let n=r(68450),i=r(22876),a=r(96291)},73744:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.sidecarsToVersionedHashes=function(e){let{sidecars:t,version:r}=e,i=e.to??("string"==typeof t[0].blob?"hex":"bytes"),a=[];for(let{commitment:e}of t)a.push((0,n.commitmentToVersionedHash)({commitment:e,to:i,version:r}));return a};let n=r(72803)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobSidecars=function(e){let{data:t,kzg:r,to:o}=e,s=e.blobs??(0,a.toBlobs)({data:t,to:o}),l=e.commitments??(0,n.blobsToCommitments)({blobs:s,kzg:r,to:o}),c=e.proofs??(0,i.blobsToProofs)({blobs:s,commitments:l,kzg:r,to:o}),u=[];for(let e=0;e<s.length;e++)u.push({blob:s[e],commitment:l[e],proof:c[e]});return u};let n=r(83209),i=r(51227),a=r(12830)},12830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBlobs=function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,s.hexToBytes)(e.data):e.data,c=(0,o.size)(r);if(!c)throw new i.EmptyBlobError;if(c>n.maxBytesPerTransaction)throw new i.BlobSizeTooLargeError({maxSize:n.maxBytesPerTransaction,size:c});let u=[],d=!0,f=0;for(;d;){let e=(0,a.createCursor)(new Uint8Array(n.bytesPerBlob)),t=0;for(;t<n.fieldElementsPerBlob;){let i=r.slice(f,f+(n.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(i),i.length<31){e.pushByte(128),d=!1;break}t++,f+=31}u.push(e)}return"bytes"===t?u.map(e=>e.bytes):u.map(e=>(0,l.bytesToHex)(e.bytes))};let n=r(56849),i=r(6526),a=r(68450),o=r(62221),s=r(22876),l=r(96291)},66639:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBlockParameter=function(e){let{blockHash:t,blockNumber:r,blockTag:a,requireCanonical:o}=e;if(void 0!==o&&!t)throw new n.BaseError("`requireCanonical` can only be provided when `blockHash` is set.");return t?o?{blockHash:t,requireCanonical:o}:{blockHash:t}:"bigint"==typeof r?(0,i.numberToHex)(r):a??"latest"};let n=r(63392),i=r(96291)},54768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=function(e,t={}){return async(r,d={})=>{let{dedupe:f=!1,methods:p,retryDelay:h=150,retryCount:m=3,signal:b,uid:y}={...t,...d},{method:g}=r;if(p?.exclude?.includes(g)||p?.include&&!p.include.includes(g))throw new a.MethodNotSupportedRpcError(Error("method not supported"),{method:g});if(b?.aborted)throw(0,o.getAbortError)(b);let v=f?function(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677)}return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>16,3266489909),(4294967296*(2097151&(n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>16,3266489909)))+(r>>>0)).toString(36)}(`${y}.${(0,c.stringify)(r)}`):void 0;return(0,s.withDedupe)(()=>(0,l.withRetry)(async()=>{try{return await e(r,b?{signal:b}:void 0)}catch(e){if(b?.aborted)throw(0,o.getAbortError)(b);if((0,o.isAbortError)(e))throw e;switch(e.code){case a.ParseRpcError.code:throw new a.ParseRpcError(e);case a.InvalidRequestRpcError.code:throw new a.InvalidRequestRpcError(e);case a.MethodNotFoundRpcError.code:throw new a.MethodNotFoundRpcError(e,{method:r.method});case a.InvalidParamsRpcError.code:throw new a.InvalidParamsRpcError(e);case a.InternalRpcError.code:throw new a.InternalRpcError(e);case a.InvalidInputRpcError.code:throw new a.InvalidInputRpcError(e);case a.ResourceNotFoundRpcError.code:throw new a.ResourceNotFoundRpcError(e);case a.ResourceUnavailableRpcError.code:throw new a.ResourceUnavailableRpcError(e);case a.TransactionRejectedRpcError.code:throw new a.TransactionRejectedRpcError(e);case a.MethodNotSupportedRpcError.code:throw new a.MethodNotSupportedRpcError(e,{method:r.method});case a.LimitExceededRpcError.code:throw new a.LimitExceededRpcError(e);case a.JsonRpcVersionUnsupportedError.code:throw new a.JsonRpcVersionUnsupportedError(e);case a.UserRejectedRequestError.code:throw new a.UserRejectedRequestError(e);case a.UnauthorizedProviderError.code:throw new a.UnauthorizedProviderError(e);case a.UnsupportedProviderMethodError.code:throw new a.UnsupportedProviderMethodError(e);case a.ProviderDisconnectedError.code:throw new a.ProviderDisconnectedError(e);case a.ChainDisconnectedError.code:throw new a.ChainDisconnectedError(e);case a.SwitchChainError.code:throw new a.SwitchChainError(e);case a.UnsupportedNonOptionalCapabilityError.code:throw new a.UnsupportedNonOptionalCapabilityError(e);case a.UnsupportedChainIdError.code:throw new a.UnsupportedChainIdError(e);case a.DuplicateIdError.code:throw new a.DuplicateIdError(e);case a.UnknownBundleIdError.code:throw new a.UnknownBundleIdError(e);case a.BundleTooLargeError.code:throw new a.BundleTooLargeError(e);case a.AtomicReadyWalletRejectedUpgradeError.code:throw new a.AtomicReadyWalletRejectedUpgradeError(e);case a.AtomicityNotSupportedError.code:throw new a.AtomicityNotSupportedError(e);case 5e3:throw new a.UserRejectedRequestError(e);case a.WalletConnectSessionSettlementError.code:throw new a.WalletConnectSessionSettlementError(e);default:if(e instanceof n.BaseError)throw e;throw new a.UnknownRpcError(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*h},retryCount:m,signal:b,shouldRetry:({error:e})=>u(e)}),{enabled:f,id:v})}},t.shouldRetry=u;let n=r(63392),i=r(62495),a=r(875),o=r(52621),s=r(44049),l=r(52614),c=r(16283);function u(e){return!(0,o.isAbortError)(e)&&("code"in e&&"number"==typeof e.code?-1===e.code||e.code===a.LimitExceededRpcError.code||e.code===a.InternalRpcError.code||429===e.code:!(e instanceof i.HttpRequestError)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status)}},85715:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.offchainLookupAbiItem=t.offchainLookupSignature=void 0,t.offchainLookup=h,t.ccipRequest=m;let n=r(53490),i=r(36766),a=r(62495),o=r(52621),s=r(40159),l=r(75246),c=r(73274),u=r(246),d=r(93674),f=r(59404),p=r(16283);async function h(e,{blockNumber:r,blockTag:a,data:d,requestOptions:p,to:h}){let{args:b}=(0,s.decodeErrorResult)({data:d,abi:[t.offchainLookupAbiItem]}),[y,g,v,w,E]=b,{ccipRead:x}=e,A=x&&"function"==typeof x?.request?x.request:m;try{if(!(0,c.isAddressEqual)(h,y))throw new i.OffchainLookupSenderMismatchError({sender:y,to:h});let t=g.includes(f.localBatchGatewayUrl)?await (0,f.localBatchGatewayRequest)({data:v,ccipRequest:e=>A({...e,requestOptions:p})}):await A({data:v,requestOptions:p,sender:y,urls:g}),{data:o}=await (0,n.call)(e,{blockNumber:r,blockTag:a,data:(0,u.concat)([w,(0,l.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,E])]),requestOptions:p,to:h});return o}catch(e){if(p?.signal?.aborted)throw(0,o.getAbortError)(p.signal);if((0,o.isAbortError)(e))throw e;throw new i.OffchainLookupError({callbackSelector:w,cause:e,data:d,extraData:E,sender:y,urls:g})}}async function m({data:e,requestOptions:t,sender:r,urls:n}){let s=Error("An unknown error occurred.");for(let l=0;l<n.length;l++){if(t?.signal?.aborted)throw(0,o.getAbortError)(t.signal);let c=n[l],u=c.includes("{data}")?"GET":"POST",f="POST"===u?{data:e,sender:r}:void 0,h="POST"===u?{"Content-Type":"application/json"}:{};try{let n;let o=await fetch(c.replace("{sender}",r.toLowerCase()).replace("{data}",e),{body:JSON.stringify(f),headers:h,method:u,...t?.signal?{signal:t.signal}:{}});if(n=o.headers.get("Content-Type")?.startsWith("application/json")?(await o.json()).data:await o.text(),!o.ok){s=new a.HttpRequestError({body:f,details:n?.error?(0,p.stringify)(n.error):o.statusText,headers:o.headers,status:o.status,url:c});continue}if(!(0,d.isHex)(n)){s=new i.OffchainLookupResponseMalformedError({result:n,url:c});continue}return n}catch(e){if(t?.signal?.aborted)throw(0,o.getAbortError)(t.signal);if((0,o.isAbortError)(e))throw e;s=new a.HttpRequestError({body:f,details:e.message,url:c})}}throw s}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]}},30550:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccipReadTunnel=function({batchGateways:e,ccipRequest:t=c.ccipRequest}){return{async request({data:r,sender:c,urls:d}){if(d.includes(u.localBatchGatewayUrl))return t({data:r,sender:c,urls:e});{let[u,f]=(0,s.decodeFunctionResult)({abi:n.batchGatewayAbi,functionName:"query",data:await t({data:(0,l.encodeFunctionData)({abi:n.batchGatewayAbi,functionName:"query",args:[[{sender:c,data:r,urls:d}]]}),sender:c,urls:e})});if(u[0]){let e;try{let t=(0,o.decodeErrorResult)({abi:[...n.batchGatewayAbi,i.solidityError],data:f[0]});if("HttpError"===t.errorName)e=new a.HttpRequestError({body:{message:t.args[1]},status:t.args[0],url:d.join(" | ")});else{let r=t.args[0];r&&(e=Error(r))}}catch{}throw e??Error("An unknown error occurred.")}return f[0]}}}};let n=r(10878),i=r(36227),a=r(62495),o=r(40159),s=r(65933),l=r(23337),c=r(85715),u=r(59404)},53039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})};let n=r(57602)},71338:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineChain=function(e){let t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return r=>{let n="function"==typeof r?r(t):r,i={...t,...n};return Object.assign(i,{extend:e(i)})}}(t)})},t.extendSchema=function(){return{}}},20678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractChain=function({chains:e,id:t}){return e.find(e=>e.id===t)}},71616:function(e,t){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.filterChains=function(e){let{chains:t,sort:r,testnet:n,token:i}=e,a=Array.isArray(t)?t:Object.values(t),o=[];for(let e of a)"object"==typeof e&&null!==e&&"id"in e&&"number"==typeof e.id&&"name"in e&&"string"==typeof e.name&&"nativeCurrency"in e&&"rpcUrls"in e&&(!i||e.id in i.addresses)&&(!0!==n||!0===e.testnet)&&(!1!==n||!0!==e.testnet)&&o.push(e);return"id"===r&&o.sort((e,t)=>e.id-t.id),"name"===r&&o.sort((e,t)=>e.name.localeCompare(t.name)),o}},80660:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address};let n=r(57602)},68450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCursor=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r};let n=r(97787),i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.NegativeOffsetError({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}},246:function(e,t){"use strict";function r(e){let t=0;
139for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},98543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},93674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},95367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pad=function(e,{dir:t,size:r=32}={}){return"string"==typeof e?i(e,{dir:t,size:r}):a(e,{dir:t,size:r})},t.padHex=i,t.padBytes=a;let n=r(31559);function i(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let a="right"===t;i[a?n:r-n-1]=e[a?n:e.length-n-1]}return i}},62221:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length};let n=r(93674)},47645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slice=function(e,t,r,{strict:n}={}){return(0,i.isHex)(e,{strict:!1})?c(e,t,r,{strict:n}):l(e,t,r,{strict:n})},t.sliceBytes=l,t.sliceHex=c;let n=r(31559),i=r(93674),a=r(62221);function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,a.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,a.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,a.size)(e)})}function l(e,t,r,{strict:n}={}){o(e,t);let i=e.slice(t,r);return n&&s(i,t,r),i}function c(e,t,r,{strict:n}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&s(i,t,r),i}},56574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},62266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromBytes=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?s(e,r):"boolean"===n?l(e,r):"string"===n?u(e,r):(0,o.bytesToHex)(e,r)},t.bytesToBigInt=s,t.bytesToBool=l,t.bytesToNumber=c,t.bytesToString=u;let n=r(78485),i=r(56574),a=r(85198),o=r(96291);function s(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});let r=(0,o.bytesToHex)(e);return(0,a.hexToBigInt)(r,t)}function l(e,t={}){let r=e;if(void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,i.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return!!r[0]}function c(e,t={}){void 0!==t.size&&(0,a.assertSize)(e,{size:t.size});let r=(0,o.bytesToHex)(e);return(0,a.hexToNumber)(r,t)}function u(e,t={}){let r=e;return void 0!==t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},85198:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertSize=s,t.fromHex=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?u(e,r):"bigint"===n?l(e,r):"string"===n?d(e,r):"boolean"===n?c(e,r):(0,o.hexToBytes)(e,r)},t.hexToBigInt=l,t.hexToBool=c,t.hexToNumber=u,t.hexToString=d;let n=r(78485),i=r(62221),a=r(56574),o=r(22876);function s(e,{size:t}){if((0,i.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,i.size)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=Math.ceil((e.length-2)/2);return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r)),"0x00"===(0,a.trim)(r))return!1;if("0x01"===(0,a.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function u(e,t={}){let r=l(e,t),i=Number(r);
139if(!Number.isSafeInteger(i))throw new n.IntegerOutOfRangeError({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${r}n`});return i}function d(e,t={}){let r=(0,o.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,a.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}},69130:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=function(e,t="hex"){let r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new i.InvalidHexValueError(e);return(0,o.hexToBytes)(e)}return e})(),n=(0,a.createCursor)(r,{recursiveReadLimit:Number.POSITIVE_INFINITY}),c=function e(t,r="hex",n=0){if(n>=1024)throw new i.RlpDepthLimitExceededError({limit:1024});if(0===t.bytes.length)return"hex"===r?(0,s.bytesToHex)(t.bytes):t.bytes;let a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){let e=l(t,a,128),n=t.readBytes(e);return"hex"===r?(0,s.bytesToHex)(n):n}let o=l(t,a,192);return function(t,r,n,a){let o=t.position,s=[];for(;t.position-o<r;)s.push(e(t,n,a));if(t.position-o!==r)throw new i.RlpListBoundaryExceededError({consumed:t.position-o,declared:r});return s}(t,o,r,n+1)}(n,t);if(n.position<n.bytes.length)throw new i.RlpTrailingBytesError({count:n.bytes.length-n.position});return c};let n=r(63392),i=r(78485),a=r(68450),o=r(22876),s=r(96291);function l(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new n.BaseError("Invalid RLP prefix")}},22876:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?p(e,t):"boolean"==typeof e?c(e,t):(0,i.isHex)(e)?f(e,t):h(e,t)},t.boolToBytes=c,t.hexToBytes=f,t.numberToBytes=p,t.stringToBytes=h;let n=r(63392),i=r(93674),a=r(95367),o=r(85198),s=r(96291),l=new TextEncoder;function c(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,o.assertSize)(r,{size:t.size}),(0,a.pad)(r,{size:t.size})):r}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,a.pad)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,l=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=d(i.charCodeAt(t++)),a=d(i.charCodeAt(t++));if(void 0===r||void 0===a)throw new n.BaseError(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*r+a}return l}function p(e,t){return f((0,s.numberToHex)(e,t))}function h(e,t={}){let r=l.encode(e);return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,a.pad)(r,{dir:"right",size:t.size})):r}},96291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?c(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?s(e,t):l(e,t)},t.boolToHex=s,t.bytesToHex=l,t.numberToHex=c,t.stringToHex=d;let n=r(78485),i=r(95367),a=r(85198),o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function l(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,a.assertSize)(n,{size:t.size}),(0,i.pad)(n,{dir:"right",size:t.size})):n}function c(e,t={}){let r;let{signed:a,size:o}=t,s=BigInt(e);o?r=a?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&a?-r-1n:0;if(r&&s>r||s<l){let t="bigint"==typeof e?"n":"";throw new n.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:a,size:o,value:`${e}${t}`})}let c=`0x${(a&&s<0?(1n<<BigInt(8*o))+BigInt(s):s).toString(16)}`;return o?(0,i.pad)(c,{size:o}):c}let u=new TextEncoder;function d(e,t={}){return l(u.encode(e),t)}},76311:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.toRlp=s,t.bytesToRlp=function(e,t="bytes"){return s(e,t)},t.hexToRlp=function(e,t="hex"){return s(e,t)};let n=r(63392),i=r(68450),a=r(22876),o=r(96291);function s(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=l(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,a.hexToBytes)(e):e,r=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,i.createCursor)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,o.bytesToHex)(n.bytes):n.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new n.BaseError("Length is too large.")}},77011:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=i;let n=r(66067);async function i(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?a(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})}async function a(e,{gatewayUrls:t,record:r}){let i=(0,n.parseNftUri)(r),a=await (0,n.getNftTokenUri)(e,{nft:i}),{uri:o,isOnChain:s,isEncoded:l}=(0,n.resolveAvatarUri)({uri:a,gatewayUrls:t});if(s&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){let e=JSON.parse(l?atob(o.replace("data:application/json;base64,","")):o);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(e),gatewayUrls:t})}let c=i.tokenID;return"erc1155"===i.namespace&&(c=c.replace("0x","").padStart(64,"0")),(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,c)})}},66067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isImageUri=c,t.getGateway=u,t.resolveAvatarUri=d,t.getJsonImage=f,t.getMetadataAvatarUri=p,t.parseAvatarUri=h,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,a]=t.split("/"),[o,s]=r.split(":"),[l,c]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new i.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new i.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new i.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!a)throw new i.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!l)throw new i.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:l.toLowerCase(),contractAddress:c,tokenID:a}},t.getNftTokenUri=m;let n=r(13438),i=r(10946),a=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,o=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,l=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function c(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function u(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){let r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=u(t?.ipfs,"https://ipfs.io"),c=u(t?.arweave,"https://arweave.net"),d=e.match(a),{protocol:f,subpath:p,target:h,subtarget:m=""}=d?.groups||{},b="ipns:/"===f||"ipns/"===p,y="ipfs:/"===f||"ipfs/"===p||o.test(e);if(e.startsWith("http")&&!b&&!y){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((b||y)&&h)return{uri:`${n}/${b?"ipns":"ipfs"}/${h}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&h)return{uri:`${c}/${h}${m||""}`,isOnChain:!1,isEncoded:!1};let g=e.replace(l,"");if(g.startsWith("<svg")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith("data:")||g.startsWith("{"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new i.EnsAvatarUriResolutionError({uri:e})}function f(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new i.EnsAvatarInvalidMetadataError({data:e});return e.image||e.image_url||e.image_data}async function p({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await h({gatewayUrls:e,uri:f(r)})}catch{throw new i.EnsAvatarUriResolutionError({uri:t})}}async function h({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=d({uri:t,gatewayUrls:e});if(n||await c(r))return r;throw new i.EnsAvatarUriResolutionError({uri:t})}async function m(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}
139],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new i.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}},69474:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},76151:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=function(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null};let n=r(93674)},26091:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=function(e){if(!(e instanceof n.BaseError))return!1;let t=e.walk(e=>e instanceof i.ContractFunctionRevertedError);return t instanceof i.ContractFunctionRevertedError&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")};let n=r(63392),i=r(17306)},19491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=function(e){let t=new Uint8Array(32).fill(0);return e?(0,o.encodedLabelToLabelhash)(e)||(0,a.keccak256)((0,n.stringToBytes)(e)):(0,i.bytesToHex)(t)};let n=r(22876),i=r(96291),a=r(83935),o=r(76151)},59404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localBatchGatewayUrl=void 0,t.localBatchGatewayRequest=l;let n=r(10878),i=r(36227),a=r(70687),o=r(16323),s=r(15168);async function l(e){let{data:r,ccipRequest:c}=e,{args:[u]}=(0,a.decodeFunctionData)({abi:n.batchGatewayAbi,data:r}),d=[],f=[];return await Promise.all(u.map(async(e,r)=>{try{f[r]=e.urls.includes(t.localBatchGatewayUrl)?await l({data:e.data,ccipRequest:c}):await c(e),d[r]=!1}catch(e){d[r]=!0,f[r]="HttpRequestError"===e.name&&e.status?(0,o.encodeErrorResult)({abi:n.batchGatewayAbi,errorName:"HttpError",args:[e.status,e.shortMessage]}):(0,o.encodeErrorResult)({abi:[i.solidityError],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}})),(0,s.encodeFunctionResult)({abi:n.batchGatewayAbi,functionName:"query",result:[d,f]})}t.localBatchGatewayUrl="x-batch-gateway:true"},71992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,a.bytesToHex)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let a=(0,s.encodedLabelToLabelhash)(r[e]),l=a?(0,i.toBytes)(a):(0,o.keccak256)((0,i.stringToBytes)(r[e]),"bytes");t=(0,o.keccak256)((0,n.concat)([t,l]),"bytes")}return(0,a.bytesToHex)(t)};let n=r(246),i=r(22876),a=r(96291),o=r(83935),s=r(76151)},72531:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=function(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2),o=0,s=t.split(".");for(let e=0;e<s.length;e++){let t=(0,n.stringToBytes)(s[e]);t.byteLength>255&&(t=(0,n.stringToBytes)((0,i.encodeLabelhash)((0,a.labelhash)(s[e])))),r[o]=t.length,r.set(t,o+1),o+=t.length+1}return r.byteLength!==o+1?r.slice(0,o+1):r};let n=r(22876),i=r(69474),a=r(19491)},5470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toCoinType=function(e){if(1===e)return 60n;if(e>=2147483648||e<0)throw new n.EnsInvalidChainIdError({chainId:e});return BigInt((2147483648|e)>>>0)};let n=r(10946)},47526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=function(e,{docsPath:t,...r}){let o=(()=>{let t=(0,a.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.CallExecutionError(o,{docsPath:t,...r})};let n=r(17306),i=r(87695),a=r(92650)},44169:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=function(e,{abi:t,address:r,args:l,docsPath:c,functionName:u,sender:d}){let f=e instanceof a.RawContractError?e:e instanceof i.BaseError?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:h,details:m,message:b,shortMessage:y}=f,g=e instanceof n.AbiDecodingZeroDataError?new a.ContractFunctionZeroDataError({functionName:u,cause:e}):[3,s.InternalRpcError.code].includes(p)&&(h||m||b||y)||p===s.InvalidInputRpcError.code&&"execution reverted"===m&&h?new a.ContractFunctionRevertedError({abi:t,data:"object"==typeof h?h.data:h,functionName:u,message:f instanceof o.RpcRequestError?m:y??b,cause:e}):e;return new a.ContractFunctionExecutionError(g,{abi:t,args:l,contractAddress:r,docsPath:c,functionName:u,sender:d})};let n=r(43279),i=r(63392),a=r(17306),o=r(62495),s=r(875)},31418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=function(e,{docsPath:t,...r}){let o=(()=>{let t=(0,a.getNodeError)(e,r);return t instanceof i.UnknownNodeError?e:t})();return new n.EstimateGasExecutionError(o,{docsPath:t,...r})};let n=r(11282),i=r(87695),a=r(92650)},92650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsNodeError=function(e){return e instanceof o.TransactionRejectedRpcError||e instanceof o.InvalidInputRpcError||e instanceof a.RpcRequestError&&e.code===i.ExecutionRevertedError.code},t.getNodeError=function(e,t){let r=(e.details||"").toLowerCase(),a=e instanceof n.BaseError?e.walk(e=>e?.code===i.ExecutionRevertedError.code):e;return a instanceof n.BaseError?new i.ExecutionRevertedError({cause:e,message:a.details}):i.ExecutionRevertedError.nodeMessage.test(r)?new i.ExecutionRevertedError({cause:e,message:e.details}):i.FeeCapTooHighError.nodeMessage.test(r)?new i.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.FeeCapTooLowError.nodeMessage.test(r)?new i.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.NonceTooHighError.nodeMessage.test(r)?new i.NonceTooHighError({cause:e,nonce:t?.nonce}):i.NonceTooLowError.nodeMessage.test(r)?new i.NonceTooLowError({cause:e,nonce:t?.nonce}):i.NonceMaxValueError.nodeMessage.test(r)?new i.NonceMaxValueError({cause:e,nonce:t?.nonce}):i.InsufficientFundsError.nodeMessage.test(r)?new i.InsufficientFundsError({cause:e}):i.IntrinsicGasTooHighError.nodeMessage.test(r)?new i.IntrinsicGasTooHighError({cause:e,gas:t?.gas}):i.IntrinsicGasTooLowError.nodeMessage.test(r)?new i.IntrinsicGasTooLowError({cause:e,gas:t?.gas}):i.TransactionTypeNotSupportedError.nodeMessage.test(r)?new i.TransactionTypeNotSupportedError({cause:e}):i.TipAboveFeeCapError.nodeMessage.test(r)?new i.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.UnknownNodeError({cause:e})};let n=r(63392),i=r(87695),a=r(62495),o=r(875)},88713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=function(e,{docsPath:t,...r}){let o=(()=>{let t=(0,a.getNodeError)(e,r);return t instanceof n.UnknownNodeError?e:t})();return new i.TransactionExecutionError(o,{docsPath:t,...r})};let n=r(87695),i=r(45742),a=r(92650)},45939:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=function(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:a})=>{"success"===i&&t===e&&(r[n]=a.request)}),t=>r[t]||e.request}},13713:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=void 0,t.formatBlock=a;let n=r(30797),i=r(10146);function a(e,t){let r=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.formatTransaction)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.defineBlock=(0,n.defineFormatter)("block",a)},40018:function(e,t){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e,{format:t}){if(!t)return{};let r={};return function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}},40688:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},30797:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:(e,i)=>{let a=t(e,i);if(r)for(let e of r)delete a[e];return{...a,...n(e,i)}},type:e})}},47539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},67950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatProof=function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,storageProof:e.storageProof?e.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}};let n=r(34262)},10146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.transactionType=void 0,t.formatTransaction=a;let n=r(85198),i=r(30797);function a(e,r){let i={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...null!=e.blockTimestamp&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(i.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),i.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof i.v){if(0n===i.v||27n===i.v)return 0;if(1n===i.v||28n===i.v)return 1;if(i.v>=35n)return i.v%2n===0n?1:0}})(),"legacy"===i.type&&(delete i.accessList,delete i.maxFeePerBlobGas,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.yParity),"eip2930"===i.type&&(delete i.maxFeePerBlobGas,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas),"eip1559"===i.type&&delete i.maxFeePerBlobGas,i}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},t.defineTransaction=(0,i.defineFormatter)("transaction",a)},58983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.receiptStatuses=void 0,t.formatTransactionReceipt=s;let n=r(85198),i=r(30797),a=r(47539),o=r(10146);function s(e,r){let i={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?t.receiptStatuses[e.status]:null,type:e.type?o.transactionType[e.type]||e.type:null};return e.blobGasPrice&&(i.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(i.blobGasUsed=BigInt(e.blobGasUsed)),i}t.receiptStatuses={"0x0":"reverted","0x1":"success"},t.defineTransactionReceipt=(0,i.defineFormatter)("transactionReceipt",s)},9101:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.rpcTransactionType=void 0,t.formatTransactionRequest=a;let n=r(96291),i=r(30797);function a(e,r){let i={};return void 0!==e.authorizationList&&(i.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,n.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,n.numberToHex)(BigInt(e.s)):e.s,chainId:(0,n.numberToHex)(e.chainId),nonce:(0,n.numberToHex)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.numberToHex)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.numberToHex)(e.v)}:{}}))),void 0!==e.accessList&&(i.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(i.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?i.blobs=e.blobs.map(e=>(0,n.bytesToHex)(e)):i.blobs=e.blobs),void 0!==e.data&&(i.data=e.data),e.account&&(i.from=e.account.address),void 0!==e.from&&(i.from=e.from),void 0!==e.gas&&(i.gas=(0,n.numberToHex)(e.gas)),void 0!==e.gasPrice&&(i.gasPrice=(0,n.numberToHex)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(i.maxFeePerBlobGas=(0,n.numberToHex)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(i.maxFeePerGas=(0,n.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(i.maxPriorityFeePerGas=(0,n.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(i.nonce=(0,n.numberToHex)(e.nonce)),void 0!==e.to&&(i.to=e.to),void 0!==e.type&&(i.type=t.rpcTransactionType[e.type]),void 0!==e.value&&(i.value=(0,n.numberToHex)(e.value)),i}t.rpcTransactionType={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},t.defineTransactionRequest=(0,i.defineFormatter)("transactionRequest",a)},78525:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAction=function(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}},88710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashSignature=function(e){return a(e)};let n=r(22876),i=r(83935),a=e=>(0,i.keccak256)((0,n.toBytes)(e))},11421:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=function(e){return(0,n.isHex)(e)&&66===e.length};let n=r(93674)},83935:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=function(e,t){let r=(0,n.keccak_256)((0,i.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,o.toHex)(r)};let n=r(70613),i=r(93674),a=r(22876),o=r(96291)},8046:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSignature=function(e){let t=!0,r="",i=0,a="",o=!1;for(let n=0;n<e.length;n++){let s=e[n];if(["(",")",","].includes(s)&&(t=!0),"("===s&&i++,")"===s&&i--,t){if(0===i){if(" "===s&&["event","function",""].includes(a))a="";else if(a+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[n-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}a+=s,r+=s}}if(!o)throw new n.BaseError("Unable to normalize signature.");return a};let n=r(63392)},95943:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=function(e,t){let r=(0,n.ripemd160)((0,i.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,o.toHex)(r)};let n=r(12548),i=r(93674),a=r(22876),o=r(96291)},79887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=function(e,t){let r=(0,n.sha256)((0,i.isHex)(e,{strict:!1})?(0,a.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,o.toHex)(r)};let n=r(86960),i=r(93674),a=r(22876),o=r(96291)},24292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toEventHash=void 0;var n=r(66721);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},1515:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSelector=void 0;let n=r(66721);t.toEventSelector=n.toSignatureHash},61609:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toEventSignature=void 0;var n=r(81575);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return n.toSignature}})},51319:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionHash=void 0;var n=r(66721);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return n.toSignatureHash}})},45866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSelector=void 0;let n=r(47645),i=r(66721);t.toFunctionSelector=e=>(0,n.slice)((0,i.toSignatureHash)(e),0,4)},47398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFunctionSignature=void 0;var n=r(81575);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return n.toSignature}})},81575:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSignature=void 0;let n=r(96726),i=r(8046);t.toSignature=e=>{let t="string"==typeof e?e:(0,n.formatAbiItem)(e);return(0,i.normalizeSignature)(t)}},66721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSignatureHash=function(e){return(0,n.hashSignature)((0,i.toSignature)(e))};let n=r(88710),i=r(81575)},34262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=t.isBytes=t.concatHex=t.concatBytes=t.concat=t.getChainContractAddress=t.filterChains=t.extractChain=t.defineChain=t.assertCurrentChain=t.ccipReadTunnel=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.ccipRequest=t.buildRequest=t.verifyAuthorization=t.serializeAuthorizationList=t.recoverAuthorizationAddress=t.hashAuthorization=t.isAddressEqual=t.isAddress=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAddress=t.parseEventLogs=t.getAbiItem=t.formatAbiItemWithArgs=t.formatAbiParams=t.formatAbiItem=t.encodePacked=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.publicKeyToAddress=t.parseAccount=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=void 0,t.isHash=t.getAction=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatLog=t.defineFormatter=t.extract=t.formatBlock=t.defineBlock=t.getTransactionError=t.getNodeError=t.containsNodeError=t.getEstimateGasError=t.getContractError=t.getCallError=t.toRlp=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.bytesToBigInt=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=void 0,t.serializeTransaction=t.serializeAccessList=t.parseTransaction=t.getTransactionType=t.getSerializedTransactionType=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.stringify=t.verifyTypedData=t.verifyMessage=t.verifyHash=t.serializeErc8010Signature=t.serializeErc6492Signature=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.parseErc8010Signature=t.parseErc6492Signature=t.isErc8010Signature=t.isErc6492Signature=t.hashTypedData=t.hashStruct=t.hashMessage=t.getWebSocketRpcClient=t.socketClientCache=t.getSocketRpcClient=t.getHttpRpcClient=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.nonceManager=t.createNonceManager=t.getFunctionSignature=t.toFunctionSignature=t.getFunctionSelector=t.toFunctionSelector=t.toFunctionHash=t.getEventSignature=t.toEventSignature=t.getEventSelector=t.toEventSelector=t.toEventHash=t.sha256=t.ripemd160=t.keccak256=void 0,t.parseUnits=t.parseGwei=t.parseEther=t.formatUnits=t.formatGwei=t.formatEther=t.validateTypedData=t.serializeTypedData=void 0;var n=r(96726);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var i=r(21499);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return i.parseAccount}});var a=r(79554);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return a.publicKeyToAddress}});var o=r(61779);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return o.decodeAbiParameters}});var s=r(40159);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return s.decodeErrorResult}});var l=r(42908);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return l.decodeEventLog}});var c=r(70687);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return c.decodeFunctionData}});var u=r(65933);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return u.decodeFunctionResult}});var d=r(75246);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return d.encodeAbiParameters}});var f=r(24594);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return f.encodeDeployData}});var p=r(16323);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return p.encodeErrorResult}});var h=r(16244);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return h.encodeEventTopics}});var m=r(23337);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return m.encodeFunctionData}});var b=r(15168);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return b.encodeFunctionResult}});var y=r(18819);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return y.encodePacked}});var g=r(52162);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return g.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return g.formatAbiParams}});var v=r(9383);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return v.formatAbiItemWithArgs}});var w=r(35014);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return w.getAbiItem}});var E=r(40635);Object.defineProperty(t,"parseEventLogs",{enumerable:!0,get:function(){return E.parseEventLogs}});var x=r(39684);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return x.getAddress}});var A=r(21645);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return A.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return A.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return A.getCreateAddress}});var k=r(42948);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return k.isAddress}});var P=r(73274);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return P.isAddressEqual}});var C=r(7932);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return C.hashAuthorization}});var T=r(63560);Object.defineProperty(t,"recoverAuthorizationAddress",{enumerable:!0,get:function(){return T.recoverAuthorizationAddress}});var _=r(22677);Object.defineProperty(t,"serializeAuthorizationList",{enumerable:!0,get:function(){return _.serializeAuthorizationList}});var O=r(8247);Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return O.verifyAuthorization}});var S=r(54768);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return S.buildRequest}});var I=r(85715);Object.defineProperty(t,"ccipRequest",{enumerable:!0,get:function(){return I.ccipRequest}}),Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return I.ccipRequest}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return I.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return I.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return I.offchainLookupSignature}});var B=r(30550);Object.defineProperty(t,"ccipReadTunnel",{enumerable:!0,get:function(){return B.ccipReadTunnel}});var j=r(53039);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return j.assertCurrentChain}});var M=r(71338);Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return M.defineChain}});var R=r(20678);Object.defineProperty(t,"extractChain",{enumerable:!0,get:function(){return R.extractChain}});var N=r(71616);Object.defineProperty(t,"filterChains",{enumerable:!0,get:function(){return N.filterChains}});var U=r(80660);Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return U.getChainContractAddress}});var z=r(246);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return z.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return z.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return z.concatHex}});var D=r(98543);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return D.isBytes}});var F=r(93674);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return F.isHex}});var L=r(95367);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return L.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return L.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return L.padHex}});var H=r(62221);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return H.size}});var G=r(47645);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return G.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return G.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return G.sliceHex}});var q=r(56574);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return q.trim}});var $=r(62266);Object.defineProperty(t,"bytesToBigInt",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return $.bytesToBigInt}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return $.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return $.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return $.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return $.fromBytes}});var K=r(85198);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return K.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return K.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return K.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return K.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return K.hexToString}});var Z=r(69130);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return Z.fromRlp}});var V=r(22876);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return V.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return V.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return V.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return V.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return V.toBytes}});var W=r(96291);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return W.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return W.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return W.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return W.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return W.toHex}});var Y=r(76311);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return Y.toRlp}});var X=r(47526);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return X.getCallError}});var J=r(44169);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return J.getContractError}});var Q=r(31418);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return Q.getEstimateGasError}});var ee=r(92650);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return ee.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return ee.getNodeError}});var et=r(88713);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return et.getTransactionError}});var er=r(13713);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return er.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return er.formatBlock}});var en=r(40018);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return en.extract}});var ei=r(30797);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return ei.defineFormatter}});var ea=r(47539);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return ea.formatLog}});var eo=r(10146);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return eo.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return eo.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return eo.transactionType}});var es=r(58983);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return es.defineTransactionReceipt}});var el=r(9101);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return el.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return el.formatTransactionRequest}});var ec=r(78525);Object.defineProperty(t,"getAction",{enumerable:!0,get:function(){return ec.getAction}});var eu=r(11421);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eu.isHash}});var ed=r(83935);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return ed.keccak256}});var ef=r(95943);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return ef.ripemd160}});var ep=r(79887);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return ep.sha256}});var eh=r(24292);Object.defineProperty(t,"toEventHash",{enumerable:!0,get:function(){return eh.toEventHash}});var em=r(1515);Object.defineProperty(t,"toEventSelector",{enumerable:!0,get:function(){return em.toEventSelector}}),Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return em.toEventSelector}});var eb=r(61609);Object.defineProperty(t,"toEventSignature",{enumerable:!0,get:function(){return eb.toEventSignature}}),Object.defineProperty(t,"getEventSignature",{enumerable:!0,get:function(){return eb.toEventSignature}});var ey=r(51319);Object.defineProperty(t,"toFunctionHash",{enumerable:!0,get:function(){return ey.toFunctionHash}});var eg=r(45866);Object.defineProperty(t,"toFunctionSelector",{enumerable:!0,get:function(){return eg.toFunctionSelector}}),Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return eg.toFunctionSelector}});var ev=r(47398);Object.defineProperty(t,"toFunctionSignature",{enumerable:!0,get:function(){return ev.toFunctionSignature}}),Object.defineProperty(t,"getFunctionSignature",{enumerable:!0,get:function(){return ev.toFunctionSignature}});var ew=r(1041);Object.defineProperty(t,"createNonceManager",{enumerable:!0,get:function(){return ew.createNonceManager}}),Object.defineProperty(t,"nonceManager",{enumerable:!0,get:function(){return ew.nonceManager}});var eE=r(16859);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return eE.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return eE.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return eE.int
139egerRegex}});var ex=r(16008);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return ex.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return ex.rpc}});var eA=r(59332);Object.defineProperty(t,"getHttpRpcClient",{enumerable:!0,get:function(){return eA.getHttpRpcClient}});var ek=r(17402);Object.defineProperty(t,"getSocketRpcClient",{enumerable:!0,get:function(){return ek.getSocketRpcClient}}),Object.defineProperty(t,"socketClientCache",{enumerable:!0,get:function(){return ek.socketClientCache}});var eP=r(78219);Object.defineProperty(t,"getWebSocketRpcClient",{enumerable:!0,get:function(){return eP.getWebSocketRpcClient}});var eC=r(27921);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return eC.hashMessage}});var eT=r(19021);Object.defineProperty(t,"hashStruct",{enumerable:!0,get:function(){return eT.hashStruct}}),Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return eT.hashTypedData}});var e_=r(12544);Object.defineProperty(t,"isErc6492Signature",{enumerable:!0,get:function(){return e_.isErc6492Signature}});var eO=r(42715);Object.defineProperty(t,"isErc8010Signature",{enumerable:!0,get:function(){return eO.isErc8010Signature}});var eS=r(24738);Object.defineProperty(t,"parseErc6492Signature",{enumerable:!0,get:function(){return eS.parseErc6492Signature}});var eI=r(8690);Object.defineProperty(t,"parseErc8010Signature",{enumerable:!0,get:function(){return eI.parseErc8010Signature}});var eB=r(73646);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return eB.recoverAddress}});var ej=r(28972);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return ej.recoverMessageAddress}});var eM=r(9506);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return eM.recoverPublicKey}});var eR=r(33114);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return eR.recoverTypedDataAddress}});var eN=r(97568);Object.defineProperty(t,"serializeErc6492Signature",{enumerable:!0,get:function(){return eN.serializeErc6492Signature}});var eU=r(69092);Object.defineProperty(t,"serializeErc8010Signature",{enumerable:!0,get:function(){return eU.serializeErc8010Signature}});var ez=r(83305);Object.defineProperty(t,"verifyHash",{enumerable:!0,get:function(){return ez.verifyHash}});var eD=r(9245);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return eD.verifyMessage}});var eF=r(3600);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return eF.verifyTypedData}});var eL=r(16283);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return eL.stringify}});var eH=r(19199);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eH.assertRequest}});var eG=r(85426);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return eG.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return eG.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return eG.assertTransactionLegacy}});var eq=r(49229);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return eq.getSerializedTransactionType}});var e$=r(10644);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return e$.getTransactionType}});var eK=r(84763);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return eK.parseTransaction}});var eZ=r(84041);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eZ.serializeAccessList}});var eV=r(22741);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eV.serializeTransaction}});var eW=r(27621);Object.defineProperty(t,"serializeTypedData",{enumerable:!0,get:function(){return eW.serializeTypedData}}),Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return eW.validateTypedData}});var eY=r(29120);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eY.formatEther}});var eX=r(53632);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eX.formatGwei}});var eJ=r(93720);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eJ.formatUnits}});var eQ=r(29161);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eQ.parseEther}});var e0=r(18950);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return e0.parseGwei}});var e1=r(98264);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return e1.parseUnits}})},4152:function(e,t){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.defineKzg=function({blobToKzgCommitment:e,computeBlobKzgProof:t}){return{blobToKzgCommitment:e,computeBlobKzgProof:t}}},94258:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupKzg=function(e,t){try{e.loadTrustedSetup(t)}catch(e){if(!e.message.includes("trusted setup is already loaded"))throw e}return(0,n.defineKzg)(e)};let n=r(4152)},90626:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LruMap=void 0;class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}t.LruMap=r},1041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonceManager=void 0,t.createNonceManager=a,t.jsonRpc=o;let n=r(7804),i=r(90626);function a(e){let{source:t}=e,r=new Map,n=new i.LruMap(8192),a=new Map,o=({address:e,chainId:t})=>`${e}.${t}`,s=e=>{r.delete(e),a.delete(e)};return{async consume({address:e,chainId:r,client:i}){let a=o({address:e,chainId:r}),s=this.get({address:e,chainId:r,client:i});this.increment({address:e,chainId:r});let l=await s;return await t.set({address:e,chainId:r},l),n.set(a,l),l},async increment({address:e,chainId:t}){let n=o({address:e,chainId:t}),i=r.get(n)??0;r.set(n,i+1)},async get({address:e,chainId:i,client:l}){let c=o({address:e,chainId:i}),u=a.get(c);return u||(u=(async()=>{try{let r=await t.get({address:e,chainId:i,client:l}),a=n.get(c)??0;if(a>0&&r<=a)return a+1;return n.delete(c),r}finally{s(c)}})(),a.set(c,u)),(r.get(c)??0)+await u},reset({address:e,chainId:t}){let r=o({address:e,chainId:t});n.delete(r),s(r)}}}function o(){return{async get(e){let{address:t,client:r}=e;return(0,n.getTransactionCount)(r,{address:t,blockTag:"pending"})},set(){}}}t.nonceManager=a({source:o()})},27805:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupCache=t.listenersCache=void 0,t.observe=function(e,n,i){let a=++r,o=()=>t.listenersCache.get(e)||[],s=()=>{let r=o().filter(e=>e.id!==a);if(0===r.length){t.listenersCache.delete(e),t.cleanupCache.delete(e);return}t.listenersCache.set(e,r)},l=()=>{let r=o();if(!r.some(e=>e.id===a))return;let n=t.cleanupCache.get(e);if(1===r.length&&n){let e=n();e instanceof Promise&&e.catch(()=>{})}s()},c=o();if(t.listenersCache.set(e,[...c,{id:a,fns:n}]),c&&c.length>0)return l;let u={};for(let e in n)u[e]=(...t)=>{let r=o();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let d=i(u);return"function"==typeof d&&t.cleanupCache.set(e,d),l},t.listenersCache=new Map,t.cleanupCache=new Map;let r=0},33197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let a=!0,o=()=>a=!1;return(async()=>{let s;t&&(s=await e({unpoll:o}));let l=await r?.(s)??i;await (0,n.wait)(l);let c=async()=>{a&&(await e({unpoll:o}),await (0,n.wait)(i),c())};c()})(),o};let n=r(70491)},92598:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:r,wait:a=0,sort:o}){let s=async()=>{let t=u();l();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{o&&Array.isArray(e)&&e.sort(o);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},l=()=>i.delete(t),c=()=>u().map(({args:e})=>e),u=()=>i.get(t)||[],d=e=>i.set(t,[...u(),e]);return{flush:l,async schedule(e){let{promise:t,resolve:i,reject:o}=(0,n.withResolvers)();return(r?.([...c(),e])&&s(),u().length>0)?d({args:e,resolve:i,reject:o}):(d({args:e,resolve:i,reject:o}),setTimeout(s,a)),t}}};let n=r(83345),i=new Map},76085:function(e,t){"use strict";function r(e){let r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}
139),n=r(e,t.promiseCache),i=r(e,t.responseCache);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}async function n(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let i=r(t),a=i.response.get();if(a&&n>0&&Date.now()-a.created.getTime()<n)return a.data;let o=i.promise.get();o||(o=e(),i.promise.set(o));try{let e=await o;return i.response.set({created:new Date,data:e}),e}finally{i.promise.clear()}}Object.defineProperty(t,"__esModule",{value:!0}),t.responseCache=t.promiseCache=void 0,t.getCache=r,t.withCache=n,t.promiseCache=new Map,t.responseCache=new Map},44049:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseCache=void 0,t.withDedupe=function(e,{enabled:r=!0,id:n}){if(!r||!n)return e();if(t.promiseCache.get(n))return t.promiseCache.get(n);let i=e().finally(()=>t.promiseCache.delete(n));return t.promiseCache.set(n,i),i};let n=r(90626);t.promiseCache=new n.LruMap(8192)},83345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withResolvers=function(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}},52614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:a=()=>!0,signal:o}={}){return new Promise((s,l)=>{let c=async({count:u=0}={})=>{if(o?.aborted){l((0,n.getAbortError)(o));return}let d=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;if(r)try{await (0,i.wait)(r,{signal:o})}catch(e){l(e);return}return c({count:u+1})};try{let t=await e();s(t)}catch(e){if(o?.aborted){l((0,n.getAbortError)(o));return}if((0,n.isAbortError)(e)){l(e);return}if(u<r&&await a({count:u,error:e}))return d({error:e});l(e)}};c().catch(l)})};let n=r(52621),i=r(70491)},80369:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=function(e,{errorInstance:t=Error("timed out"),timeout:r,signal:i}){return new Promise((a,o)=>{(async()=>{let s;let l=new AbortController;try{r>0&&(s=setTimeout(()=>{i?l.abort():o(t)},r)),a(await e({signal:l?.signal||null}))}catch(e){if(l?.signal.aborted&&(0,n.isAbortError)(e)){o(t);return}o(e)}finally{clearTimeout(s)}})()})};let n=r(52621)},16859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},16008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=void 0,t.getSocket=o;let n=r(59332),i=r(78219);async function a(e,{body:t,timeout:r=1e4}){return e.requestAsync({body:t,timeout:r})}async function o(e){let t=await (0,i.getWebSocketRpcClient)(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}t.rpc={http:(e,t)=>(0,n.getHttpRpcClient)(e).request(t),webSocket:function(e,{body:t,onError:r,onResponse:n}){return e.request({body:t,onError:r,onResponse:n}),e},webSocketAsync:a}},59332:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHttpRpcClient=function(e,t={}){let{url:r,headers:u}=c(e);return{async request(e){let{body:c,fetchFn:d=t.fetchFn??fetch,maxResponseBodySize:f=t.maxResponseBodySize??10485760,onRequest:p=t.onRequest,onResponse:h=t.onResponse,timeout:m=t.timeout??1e4}=e,b={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:y,method:g,signal:v}=b;try{let e;let t=await (0,a.withTimeout)(async({signal:e})=>{let t={...b,body:Array.isArray(c)?(0,o.stringify)(c.map(e=>({jsonrpc:"2.0",id:e.id??s.idCache.take(),...e}))):(0,o.stringify)({jsonrpc:"2.0",id:c.id??s.idCache.take(),...c}),headers:{...u,"Content-Type":"application/json",...y},method:g||"POST",signal:v||(m>0?e:null)},n=new Request(r,t),i=await p?.(n,t)??{...t,url:r};return await d(i.url??r,i)},{errorInstance:new n.TimeoutError({body:c,url:r}),timeout:m,signal:!0});h&&await h(t);let i=await l(t,{maxResponseBodySize:f});if(t.headers.get("Content-Type")?.startsWith("application/json"))e=JSON.parse(i);else{e=i;try{e=JSON.parse(e||"{}")}catch(r){if(t.ok)throw r;e={error:e}}}if(!t.ok){if("number"==typeof e.error?.code&&"string"==typeof e.error?.message)return e;throw new n.HttpRequestError({body:c,details:(0,o.stringify)(e.error)||t.statusText,headers:t.headers,status:t.status,url:r})}return e}catch(e){if(v?.aborted)throw(0,i.getAbortError)(v);if((0,i.isAbortError)(e)||e instanceof n.HttpRequestError||e instanceof n.ResponseBodyTooLargeError||e instanceof n.TimeoutError)throw e;throw new n.HttpRequestError({body:c,cause:e,url:r})}}}},t.parseUrl=c;let n=r(62495),i=r(52621),a=r(80369),o=r(16283),s=r(52193);async function l(e,{maxResponseBodySize:t}){if(!1===t)return e.text();let r=e.headers.get("Content-Length");if(r){let e=Number(r);
139if(e>t)throw new n.ResponseBodyTooLargeError({maxSize:t,size:e})}if(!e.body){let r=await e.text(),i=new TextEncoder().encode(r).length;if(i>t)throw new n.ResponseBodyTooLargeError({maxSize:t,size:i});return r}let i=e.body.getReader(),a=new TextDecoder,o="",s=0;try{for(;;){let{done:e,value:r}=await i.read();if(e)break;if((s+=r.byteLength)>t)throw await i.cancel(),new n.ResponseBodyTooLargeError({maxSize:t,size:s});o+=a.decode(r,{stream:!0})}return o+=a.decode()}finally{i.releaseLock()}}function c(e){try{let t=new URL(e),r=(()=>{if(t.username){let e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}},52193:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idCache=void 0,t.idCache={current:0,take(){return this.current++},reset(){this.current=0}}},17402:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socketClientCache=void 0,t.getSocketRpcClient=s;let n=r(62495),i=r(92598),a=r(80369),o=r(52193);async function s(e){let{getSocket:r,keepAlive:s=!0,key:l="socket",reconnect:c=!0,url:u}=e,{interval:d=3e4}="object"==typeof s?s:{},{attempts:f=5,delay:p=2e3}="object"==typeof c?c:{},h=JSON.stringify({keepAlive:s,key:l,url:u,reconnect:c}),m=t.socketClientCache.get(h);if(m)return m;let b=0,{schedule:y}=(0,i.createBatchScheduler)({id:h,fn:async()=>{let e,i,l,y;let g=new Map,v=new Map,w=!1,E=!1;function x(){c&&!E&&b<f?w||(w=!0,b++,i?.close(),y=setTimeout(async()=>{if(y=void 0,E){w=!1;return}await A().catch(console.error),w=!1},p)):(g.clear(),v.clear())}async function A(){let t=await r({onClose(){for(let e of g.values())e.onError?.(new n.SocketClosedError({url:u}));for(let e of v.values())e.onError?.(new n.SocketClosedError({url:u}));x()},onError(t){for(let r of(e=t,g.values()))r.onError?.(e);for(let t of v.values())t.onError?.(e);x()},onOpen(){e=void 0,b=0},onResponse(e){let t="eth_subscription"===e.method,r=t?e.params.subscription:e.id,n=t?v:g,i=n.get(r);i&&i.onResponse(e),t||n.delete(r)}});if(E)return t.close(),t;if(i=t,s&&(l&&clearInterval(l),l=setInterval(()=>i.ping?.(),d)),c&&v.size>0)for(let[e,{onResponse:t,body:r,onError:n}]of v.entries())r&&(v.delete(e),m?.request({body:r,onResponse:t,onError:n}));return t}return await A(),e=void 0,m={close(){E=!0,l&&clearInterval(l),y&&(clearTimeout(y),y=void 0,w=!1),i.close(),t.socketClientCache.delete(h)},get socket(){return i},request({body:t,onError:r,onResponse:n}){e&&r&&r(e);let a=t.id??o.idCache.take(),s=e=>{("number"!=typeof e.id||a===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&v.set(e.result,{onResponse:s,onError:r,body:t}),n(e))};"eth_unsubscribe"===t.method&&v.delete(t.params?.[0]),g.set(a,{onResponse:s,onError:r});try{i.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){r?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,a.withTimeout)(()=>new Promise((t,r)=>this.request({body:e,onError:r,onResponse:t})),{errorInstance:new n.TimeoutError({body:e,url:u}),timeout:t})},requests:g,subscriptions:v,url:u},t.socketClientCache.set(h,m),[m]}}),[g,[v]]=await y();return v}t.socketClientCache=new Map},78219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWebSocketRpcClient=a;let n=r(62495),i=r(17402);async function a(e,t={}){let{keepAlive:a,reconnect:o}=t;return(0,i.getSocketRpcClient)({async getSocket({onClose:t,onError:i,onOpen:a,onResponse:o}){let s=await Promise.resolve().then(()=>r(48673)).then(e=>e.WebSocket),l=new s(e);function c(){l.removeEventListener("close",c),l.removeEventListener("message",u),l.removeEventListener("error",i),l.removeEventListener("open",a),t()}function u({data:e}){if("string"!=typeof e||0!==e.trim().length)try{let t=JSON.parse(e);o(t)}catch(e){i(e)}}l.addEventListener("close",c),l.addEventListener("message",u),l.addEventListener("error",i),l.addEventListener("open",a),l.readyState===s.CONNECTING&&await new Promise((e,t)=>{l&&(l.onopen=e,l.onerror=t)});let{close:d}=l;return Object.assign(l,{close(){d.bind(l)(),c()},ping(){try{if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new n.WebSocketRequestError({url:l.url,cause:new n.SocketClosedError({url:l.url})});l.send(JSON.stringify({jsonrpc:"2.0",id:null,method:"net_version",params:[]}))}catch(e){i(e)}},request({body:e}){if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new n.WebSocketRequestError({body:e,url:l.url,cause:new n.SocketClosedError({url:l.url})});return l.send(JSON.stringify(e))}})}
139,keepAlive:a,reconnect:o,url:e})}},6025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactSignatureToSignature=function({r:e,yParityAndS:t}){let r=(0,n.hexToBytes)(t),a=128&r[0]?1:0;return 1===a&&(r[0]&=127),{r:e,s:(0,i.bytesToHex)(r),yParity:a}};let n=r(22876),i=r(96291)},27921:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=function(e,t){return(0,n.keccak256)((0,i.toPrefixedMessage)(e),t)};let n=r(83935),i=r(65165)},19021:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=function(e){let{domain:t={},message:r,primaryType:n}=e,a={EIP712Domain:(0,s.getTypesForEIP712Domain)({domain:t}),...e.types};(0,s.validateTypedData)({domain:t,message:r,primaryType:n,types:a});let u=["0x1901"];return t&&u.push(l({domain:t,types:a})),"EIP712Domain"!==n&&u.push(c({data:r,primaryType:n,types:a})),(0,o.keccak256)((0,i.concat)(u))},t.hashDomain=l,t.hashStruct=c,t.encodeType=u;let n=r(75246),i=r(246),a=r(96291),o=r(83935),s=r(27621);function l({domain:e,types:t}){return c({data:e,primaryType:"EIP712Domain",types:t})}function c({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let s=[{type:"bytes32"}],l=[function({primaryType:e,types:t}){let r=(0,a.toHex)(u({primaryType:e,types:t}));return(0,o.keccak256)(r)}({primaryType:r,types:i})];for(let c of i[r]){let[r,u]=function t({types:r,name:i,type:s,value:l}){if(void 0!==r[s])return[{type:"bytes32"},(0,o.keccak256)(e({data:l,primaryType:s,types:r}))];if("bytes"===s)return[{type:"bytes32"},(0,o.keccak256)(l)];if("string"===s)return[{type:"bytes32"},(0,o.keccak256)((0,a.toHex)(l))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),a=l.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,o.keccak256)((0,n.encodeAbiParameters)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:s},l]}({types:i,name:c.name,type:c.type,value:t[c.name]});s.push(r),l.push(u)}return(0,n.encodeAbiParameters)(s,l)}({data:e,primaryType:t,types:r});return(0,o.keccak256)(i)}function u({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),a=i?.[0];if(n.has(a)||void 0===r[a])return n;for(let t of(n.add(a),r[a]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}},12544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErc6492Signature=function(e){return(0,i.sliceHex)(e,-32)===n.erc6492MagicBytes};let n=r(32758),i=r(47645)},42715:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErc8010Signature=function(e){return n.SignatureErc8010.validate(e)};let n=r(86766)},96502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCompactSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130));return{r:(0,i.numberToHex)(t,{size:32}),yParityAndS:(0,i.numberToHex)(r,{size:32})}};let n=r(64733),i=r(96291)},24738:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc6492Signature=function(e){if(!(0,i.isErc6492Signature)(e))return{signature:e};let[t,r,a]=(0,n.decodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],e);return{address:t,data:r,signature:a}};let n=r(61779),i=r(12544)},8690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseErc8010Signature=function(e){if(!(0,a.isErc8010Signature)(e))return{signature:e};let{authorization:t,to:r,...o}=n.SignatureErc8010.unwrap(e);return{authorization:{address:t.address,chainId:t.chainId,nonce:Number(t.nonce),r:(0,i.numberToHex)(t.r,{size:32}),s:(0,i.numberToHex)(t.s,{size:32}),yParity:t.yParity},...r?{address:r}:{},...o}};let n=r(86766),i=r(96291),a=r(42715)},86955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),a=Number(`0x${e.slice(130)}`),[o,s]=(()=>
139{if(0===a||1===a)return[void 0,a];if(27===a)return[BigInt(a),0];if(28===a)return[BigInt(a),1];throw Error("Invalid yParityOrV value")})();return void 0!==o?{r:(0,i.numberToHex)(t,{size:32}),s:(0,i.numberToHex)(r,{size:32}),v:o,yParity:s}:{r:(0,i.numberToHex)(t,{size:32}),s:(0,i.numberToHex)(r,{size:32}),yParity:s}};let n=r(64733),i=r(96291)},73646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=a;let n=r(79554),i=r(9506);async function a({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await (0,i.recoverPublicKey)({hash:e,signature:t}))}},28972:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=a;let n=r(27921),i=r(73646);async function a({message:e,signature:t}){return(0,i.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}},9506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=s;let n=r(93674),i=r(62221),a=r(85198),o=r(96291);async function s({hash:e,signature:t}){let s=(0,n.isHex)(e)?e:(0,o.toHex)(e),{secp256k1:c}=await Promise.resolve().then(()=>r(64733)),u=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:i}=t,o=l(Number(i??n));return new c.Signature((0,a.hexToBigInt)(e),(0,a.hexToBigInt)(r)).addRecoveryBit(o)}let e=(0,n.isHex)(t)?t:(0,o.toHex)(t);if(65!==(0,i.size)(e))throw Error("invalid signature length");let r=l((0,a.hexToNumber)(`0x${e.slice(130)}`));return c.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(s.substring(2)).toHex(!1);return`0x${u}`}function l(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}},39371:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTransactionAddress=s;let n=r(83935),i=r(84763),a=r(22741),o=r(73646);async function s(e){let{serializedTransaction:t,signature:r}=e,s=(0,i.parseTransaction)(t),l=r??{r:s.r,s:s.s,v:s.v,yParity:s.yParity},c=(0,a.serializeTransaction)({...s,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await (0,o.recoverAddress)({hash:(0,n.keccak256)(c),signature:l})}},33114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=a;let n=r(19021),i=r(73646);async function a(e){let{domain:t,message:r,primaryType:a,signature:o,types:s}=e;return(0,i.recoverAddress)({hash:(0,n.hashTypedData)({domain:t,message:r,primaryType:a,types:s}),signature:o})}},81848:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCompactSignature=function({r:e,yParityAndS:t}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}`};let n=r(64733),i=r(85198)},97568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc6492Signature=function(e){let{address:t,data:r,signature:s,to:l="hex"}=e,c=(0,a.concatHex)([(0,i.encodeAbiParameters)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,s]),n.erc6492MagicBytes]);return"hex"===l?c:(0,o.hexToBytes)(c)};let n=r(32758),i=r(75246),a=r(246),o=r(22876)},69092:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeErc8010Signature=function(e){let{address:t,data:r,signature:a,to:o="hex"}=e,s=n.SignatureErc8010.wrap({authorization:{address:e.authorization.address,chainId:e.authorization.chainId,nonce:BigInt(e.authorization.nonce),r:BigInt(e.authorization.r),s:BigInt(e.authorization.s),yParity:e.authorization.yParity},data:r,signature:a,to:t});return"hex"===o?s:(0,i.hexToBytes)(s)};let n=r(86766),i=r(22876)},28381:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignature=function({r:e,s:t,to:r="hex",v:o,yParity:s}){let l=(()=>{if(0===s||1===s)return s;if(o&&(27n===o||28n===o||o>=35n))return o%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),c=`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}${0===l?"1b":"1c"}`;return"hex"===r?c:(0,a.hexToBytes)(c)};let n=r(64733),i=r(85198),a=r(22876)},24798:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToCompactSignature=function(e){let{r:t,s:r,v:a,yParity:o}=e,s=Number(o??a-27n),l=r;if(1===s){let e=(0,n.hexToBytes)(r);e[0]|=128,l=(0,i.bytesToHex)(e)}return{r:t,yParityAndS:l}};let n=r(22876),i=r(96291)},65165:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPrefixedMessage=function(e){let t="string"==typeof e?(0,o.stringToHex)(e):"string"==typeof e.raw?e.raw:(0,o.bytesToHex)(e.raw),r=(0,o.stringToHex)(`${n.presignMessagePrefix}${(0,a.size)(t)}`);return(0,i.concat)([r,t])};let n=r(66529),i=r(246),a=r(62221),o=r(96291)},83305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=o;let n=r(39684),i=r(73274),a=r(73646);async function o({address:e,hash:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,a.recoverAddress)({hash:t,signature:r}))}},9245:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=o;let n=r(39684),i=r(73274),a=r(28972);async function o({address:e,message:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,a.recoverMessageAddress)({message:t,signature:r}))}},3600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=o;let n=r(39684),i=r(73274),a=r(33114);async function o(e){let{address:t,domain:r,message:o,primaryType:s,signature:l,types:c}=e;return(0,i.isAddressEqual)((0,n.getAddress)(t),await (0,a.recoverTypedDataAddress)({domain:r,message:o,primaryType:s,signature:l,types:c}))}},79705:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSiweMessage=function(e){let{scheme:t,statement:r,...o}=e.match(i)?.groups??{},{chainId:s,expirationTime:l,issuedAt:c,notBefore:u,requestId:d,...f}=e.match(a)?.groups??{},p=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...o,...f,...s?{chainId:Number(s)}:{},...l?{expirationTime:n(l)}:{},...c?{issuedAt:n(c)}:{},...u?{notBefore:n(u)}:{},...d?{requestId:d}:{},...p?{resources:p}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}};let r=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;function n(e){return new Date(!r.test(e)||Number.isNaN(new Date(e).getTime())?Number.NaN:e)}let i=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,a=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/},61066:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSiweMessage=function(e){let{address:t,domain:r,message:a,nonce:o,scheme:s,time:l=new Date}=e;if(r&&a.domain!==r||o&&a.nonce!==o||s&&a.scheme!==s||Number.isNaN(l.getTime())||a.expirationTime&&(Number.isNaN(a.expirationTime.getTime())||l>=a.expirationTime)||a.notBefore&&(Number.isNaN(a.notBefore.getTime())||l<a.notBefore))return!1;try{if(!a.address||!(0,n.isAddress)(a.address,{strict:!1})||t&&!(0,i.isAddressEqual)(a.address,t))return!1}catch{return!1}return!0};let n=r(42948),i=r(73274)},30536:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeStateMapping=l,t.serializeAccountStateOverride=c,t.serializeStateOverride=function(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,o.isAddress)(r,{strict:!1}))throw new n.InvalidAddressError({address:r});if(t[r])throw new a.AccountStateConflictError({address:r});t[r]=c(i)}return t};let n=r(39878),i=r(31559),a=r(4523),o=r(42948),s=r(96291);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.InvalidBytesLengthError({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}
139function c(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:o}=e,c={};if(void 0!==o&&(c.code=o),void 0!==t&&(c.balance=(0,s.numberToHex)(t)),void 0!==r&&(c.nonce=(0,s.numberToHex)(r)),void 0!==n&&(c.state=l(n)),void 0!==i){if(c.state)throw new a.StateAssignmentConflictError;c.stateDiff=l(i)}return c}},16283:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},19199:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=function(e){let{account:t,maxFeePerGas:r,maxPriorityFeePerGas:l,to:c}=e,u=t?(0,n.parseAccount)(t):void 0;if(u&&!(0,s.isAddress)(u.address))throw new a.InvalidAddressError({address:u.address});if(c&&!(0,s.isAddress)(c))throw new a.InvalidAddressError({address:c});if(r&&r>i.maxUint256)throw new o.FeeCapTooHighError({maxFeePerGas:r});if(l&&r&&l>r)throw new o.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:l})};let n=r(21499),i=r(24796),a=r(39878),o=r(87695),s=r(42948)},85426:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionEIP7702=function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,r=e.address;if(!(0,u.isAddress)(r))throw new a.InvalidAddressError({address:r});if(t<0)throw new l.InvalidChainIdError({chainId:t})}h(e)},t.assertTransactionEIP4844=function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new s.EmptyBlobError;for(let e of t){let t=(0,d.size)(e),r=(0,p.hexToNumber)((0,f.slice)(e,0,1));if(32!==t)throw new s.InvalidVersionedHashSizeError({hash:e,size:t});if(r!==n.versionedHashVersionKzg)throw new s.InvalidVersionedHashVersionError({hash:e,version:r})}}h(e)},t.assertTransactionEIP1559=h,t.assertTransactionEIP2930=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:d}=e;if(t<=0)throw new l.InvalidChainIdError({chainId:t});if(d&&!(0,u.isAddress)(d))throw new a.InvalidAddressError({address:d});if(r||s)throw new o.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>i.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n})},t.assertTransactionLegacy=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:d}=e;if(d&&!(0,u.isAddress)(d))throw new a.InvalidAddressError({address:d});if(void 0!==t&&t<=0)throw new l.InvalidChainIdError({chainId:t});if(r||s)throw new o.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>i.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n})};let n=r(27302),i=r(24796),a=r(39878),o=r(63392),s=r(6526),l=r(57602),c=r(87695),u=r(42948),d=r(62221),f=r(47645),p=r(85198);function h(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:o}=e;if(t<=0)throw new l.InvalidChainIdError({chainId:t});if(o&&!(0,u.isAddress)(o))throw new a.InvalidAddressError({address:o});if(n&&n>i.maxUint256)throw new c.FeeCapTooHighError({maxFeePerGas:n});if(r&&n&&r>n)throw new c.TipAboveFeeCapError({maxFeePerGas:n,maxPriorityFeePerGas:r})}},49229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=function(e){let t=(0,i.sliceHex)(e,0,1);if("0x04"===t)return"eip7702";if("0x03"===t)return"eip4844";if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,a.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})};let n=r(45742),i=r(47645),a=r(85198)},10644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})};let n=r(45742)},84763:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=function(e){let t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){let t=m(e),[r,n,a,o,l,c,d,f,h,g,v,w]=t;if(!(9===t.length||12===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:o,gas:l,to:c,value:d,data:f,accessList:h,...t.length>9?{v:g,r:v,s:w}:{}},serializedTransaction:e,type:"eip1559"});let E={chainId:(0,u.hexToNumber)(r),type:"eip1559"};return(0,s.isHex)(c)&&"0x"!==c&&(E.to=c),(0,s.isHex)(l)&&"0x"!==l&&(E.gas=(0,u.hexToBigInt)(l)),(0,s.isHex)(f)&&"0x"!==f&&(E.data=f),(0,s.isHex)(n)&&(E.nonce="0x"===n?0:(0,u.hexToNumber)(n)),(0,s.isHex)(d)&&"0x"!==d&&(E.value=(0,u.hexToBigInt)(d)),(0,s.isHex)(o)&&"0x"!==o&&(E.maxFeePerGas=(0,u.hexToBigInt)(o)),(0,s.isHex)(a)&&"0x"!==a&&(E.maxPriorityFeePerGas=(0,u.hexToBigInt)(a)),0!==h.length&&"0x"!==h&&(E.accessList=b(h)),(0,p.assertTransactionEIP1559)(E),{...12===t.length?y(t):void 0,...E}}(e):"eip2930"===t?function(e){let t=m(e),[r,n,a,o,l,c,d,f,h,g,v]=t;if(!(8===t.length||11===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:a,gas:o,to:l,value:c,data:d,accessList:f,...t.length>8?{v:h,r:g,s:v}:{}},serializedTransaction:e,type:"eip2930"});let w={chainId:(0,u.hexToNumber)(r),type:"eip2930"};return(0,s.isHex)(l)&&"0x"!==l&&(w.to=l),(0,s.isHex)(o)&&"0x"!==o&&(w.gas=(0,u.hexToBigInt)(o)),(0,s.isHex)(d)&&"0x"!==d&&(w.data=d),(0,s.isHex)(n)&&(w.nonce="0x"===n?0:(0,u.hexToNumber)(n)),(0,s.isHex)(c)&&"0x"!==c&&(w.value=(0,u.hexToBigInt)(c)),(0,s.isHex)(a)&&"0x"!==a&&(w.gasPrice=(0,u.hexToBigInt)(a)),0!==f.length&&"0x"!==f&&(w.accessList=b(f)),(0,p.assertTransactionEIP2930)(w),{...11===t.length?y(t):void 0,...w}}(e):"eip4844"===t?function(e){let t=m(e),r=4===t.length,n=r?t[0]:t,a=r?t.slice(1):[],[l,c,d,f,h,g,v,w,E,x,A,k,P,C]=n,[T,_,O]=a;if(!(11===n.length||14===n.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:l,nonce:c,maxPriorityFeePerGas:d,maxFeePerGas:f,gas:h,to:g,value:v,data:w,accessList:E,...n.length>9?{v:k,r:P,s:C}:{}},serializedTransaction:e,type:"eip4844"});let S={blobVersionedHashes:A,chainId:(0,u.hexToNumber)(l),to:g,type:"eip4844"};return(0,s.isHex)(h)&&"0x"!==h&&(S.gas=(0,u.hexToBigInt)(h)),(0,s.isHex)(w)&&"0x"!==w&&(S.data=w),(0,s.isHex)(c)&&(S.nonce="0x"===c?0:(0,u.hexToNumber)(c)),(0,s.isHex)(v)&&"0x"!==v&&(S.value=(0,u.hexToBigInt)(v)),(0,s.isHex)(x)&&"0x"!==x&&(S.maxFeePerBlobGas=(0,u.hexToBigInt)(x)),(0,s.isHex)(f)&&"0x"!==f&&(S.maxFeePerGas=(0,u.hexToBigInt)(f)),(0,s.isHex)(d)&&"0x"!==d&&(S.maxPriorityFeePerGas=(0,u.hexToBigInt)(d)),0!==E.length&&"0x"!==E&&(S.accessList=b(E)),T&&_&&O&&(S.sidecars=(0,o.toBlobSidecars)({blobs:T,commitments:_,proofs:O})),(0,p.assertTransactionEIP4844)(S),{...14===n.length?y(n):void 0,...S}}(e):"eip7702"===t?function(e){let t=m(e),[r,n,a,o,l,c,d,f,h,g,v,w,E]=t;if(10!==t.length&&13!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:a,maxFeePerGas:o,gas:l,to:c,value:d,data:f,accessList:h,authorizationList:g,...t.length>9?{v,r:w,s:E}:{}},serializedTransaction:e,type:"eip7702"});let x={chainId:(0,u.hexToNumber)(r),type:"eip7702"};return(0,s.isHex)(c)&&"0x"!==c&&(x.to=c),(0,s.isHex)(l)&&"0x"!==l&&(x.gas=(0,u.hexToBigInt)(l)),(0,s.isHex)(f)&&"0x"!==f&&(x.data=f),(0,s.isHex)(n)&&(x.nonce="0x"===n?0:(0,u.hexToNumber)(n)),(0,s.isHex)(d)&&"0x"!==d&&(x.value=(0,u.hexToBigInt)(d)),(0,s.isHex)(o)&&"0x"!==o&&(x.maxFeePerGas=(0,u.hexToBigInt)(o)),(0,s.isHex)(a)&&"0x"!==a&&(x.maxPriorityFeePerGas=(0,u.hexToBigInt)(a)),0!==h.length&&"0x"!==h&&(x.accessList=b(h)),0!==g.length&&"0x"!==g&&(x.authorizationList=function(e){let t=[];for(let r=0;r<e.length;r++){let[n,i,a,o,s,l]=e[r];t.push({address:i,chainId:"0x"===n?0:(0,u.hexToNumber)(n),nonce:"0x"===a?0:(0,u.hexToNumber)(a),...y([o,s,l])})}return t}(g)),(0,p.assertTransactionEIP7702)(x),{...13===t.length?y(t):void 0,...x}}(e):function(e){let t=(0,d.fromRlp)(e,"hex"),[r,n,a,o,l,c,f,h,m]=t;if(!(6===t.length||9===t.length))throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:a,to:o,value:l,data:c,...t.length>6?{v:f,r:h,s:m}:{}},serializedTransaction:e,type:"legacy"});let b={type:"legacy"};
139if((0,s.isHex)(o)&&"0x"!==o&&(b.to=o),(0,s.isHex)(a)&&"0x"!==a&&(b.gas=(0,u.hexToBigInt)(a)),(0,s.isHex)(c)&&"0x"!==c&&(b.data=c),(0,s.isHex)(r)&&(b.nonce="0x"===r?0:(0,u.hexToNumber)(r)),(0,s.isHex)(l)&&"0x"!==l&&(b.value=(0,u.hexToBigInt)(l)),(0,s.isHex)(n)&&"0x"!==n&&(b.gasPrice=(0,u.hexToBigInt)(n)),(0,p.assertTransactionLegacy)(b),6===t.length)return b;let y=(0,s.isHex)(f)&&"0x"!==f?(0,u.hexToBigInt)(f):0n;if("0x"===m&&"0x"===h)return y>0&&(b.chainId=Number(y)),b;let g=Number((y-35n)/2n);if(g>0)b.chainId=g;else if(27n!==y&&28n!==y)throw new i.InvalidLegacyVError({v:y});return b.v=y,b.s=m,b.r=h,b.yParity=y%2n===0n?1:0,b}(e)},t.toTransactionArray=m,t.parseAccessList=b;let n=r(39878),i=r(45742),a=r(42948),o=r(6505),s=r(93674),l=r(95367),c=r(56574),u=r(85198),d=r(69130),f=r(11421),p=r(85426),h=r(49229);function m(e){return(0,d.fromRlp)(`0x${e.slice(4)}`,"hex")}function b(e){let t=[];for(let r=0;r<e.length;r++){let[i,o]=e[r];if(!(0,a.isAddress)(i,{strict:!1}))throw new n.InvalidAddressError({address:i});t.push({address:i,storageKeys:o.map(e=>(0,f.isHash)(e)?e:(0,c.trim)(e))})}return t}function y(e){let t=e.slice(-3),r="0x"===t[0]?0n:(0,u.hexToBigInt)(t[0]);if(0n!==r&&1n!==r)throw new i.InvalidYParityError({yParity:r});let n=0n===r?27n:28n;return{r:(0,l.padHex)(t[1],{size:32}),s:(0,l.padHex)(t[2],{size:32}),v:n,yParity:27n===n?0:1}}},84041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=function(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:o,storageKeys:s}=e[r];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new i.InvalidStorageKeySizeError({storageKey:s[e]});if(!(0,a.isAddress)(o,{strict:!1}))throw new n.InvalidAddressError({address:o});t.push([o,s])}return t};let n=r(39878),i=r(45742),a=r(42948)},22741:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=function(e,t){let r=(0,h.getTransactionType)(e);return"eip1559"===r?function(e,t){let{chainId:r,gas:n,nonce:i,to:a,value:o,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:u,data:h}=e;(0,p.assertTransactionEIP1559)(e);let y=(0,m.serializeAccessList)(u),g=[(0,d.numberToHex)(r),i?(0,d.numberToHex)(i):"0x",l?(0,d.numberToHex)(l):"0x",s?(0,d.numberToHex)(s):"0x",n?(0,d.numberToHex)(n):"0x",a??"0x",o?(0,d.numberToHex)(o):"0x",h??"0x",y,...b(e,t)];return(0,c.concatHex)(["0x02",(0,f.toRlp)(g)])}(e,t):"eip2930"===r?function(e,t){let{chainId:r,gas:n,data:i,nonce:a,to:o,value:s,accessList:l,gasPrice:u}=e;(0,p.assertTransactionEIP2930)(e);let h=(0,m.serializeAccessList)(l),y=[(0,d.numberToHex)(r),a?(0,d.numberToHex)(a):"0x",u?(0,d.numberToHex)(u):"0x",n?(0,d.numberToHex)(n):"0x",o??"0x",s?(0,d.numberToHex)(s):"0x",i??"0x",h,...b(e,t)];return(0,c.concatHex)(["0x01",(0,f.toRlp)(y)])}(e,t):"eip4844"===r?function(e,t){let{chainId:r,gas:n,nonce:i,to:u,value:h,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:v,accessList:w,data:E}=e;(0,p.assertTransactionEIP4844)(e);let x=e.blobVersionedHashes,A=e.sidecars;if(e.blobs&&(void 0===x||void 0===A)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,d.bytesToHex)(e)),r=e.kzg,n=(0,a.blobsToCommitments)({blobs:t,kzg:r});if(void 0===x&&(x=(0,s.commitmentsToVersionedHashes)({commitments:n})),void 0===A){let e=(0,o.blobsToProofs)({blobs:t,commitments:n,kzg:r});A=(0,l.toBlobSidecars)({blobs:t,commitments:n,proofs:e})}}let k=(0,m.serializeAccessList)(w),P=[(0,d.numberToHex)(r),i?(0,d.numberToHex)(i):"0x",v?(0,d.numberToHex)(v):"0x",g?(0,d.numberToHex)(g):"0x",n?(0,d.numberToHex)(n):"0x",u??"0x",h?(0,d.numberToHex)(h):"0x",E??"0x",k,y?(0,d.numberToHex)(y):"0x",x??[],...b(e,t)],C=[],T=[],_=[];if(A)for(let e=0;e<A.length;e++){let{blob:t,commitment:r,proof:n}=A[e];C.push(t),T.push(r),_.push(n)}return(0,c.concatHex)(["0x03",A?(0,f.toRlp)([P,C,T,_]):(0,f.toRlp)(P)])}(e,t):"eip7702"===r?function(e,t){let{authorizationList:r,chainId:n,gas:a,nonce:o,to:s,value:l,maxFeePerGas:u,maxPriorityFeePerGas:h,accessList:y,data:g}=e;(0,p.assertTransactionEIP7702)(e);let v=(0,m.serializeAccessList)(y),w=(0,i.serializeAuthorizationList)(r);return(0,c.concatHex)(["0x04",(0,f.toRlp)([(0,d.numberToHex)(n),o?(0,d.numberToHex)(o):"0x",h?(0,d.numberToHex)(h):"0x",u?(0,d.numberToHex)(u):"0x",a?(0,d.numberToHex)(a):"0x",s??"0x",l?(0,d.numberToHex)(l):"0x",g??"0x",v,w,...b(e,t)])])}(e,t):function(e,t){let{chainId:r=0,gas:i,data:a,nonce:o,to:s,value:l,gasPrice:c}=e;(0,p.assertTransactionLegacy)(e);let h=[o?(0,d.numberToHex)(o):"0x",c?(0,d.numberToHex)(c):"0x",i?(0,d.numberToHex)(i):"0x",s??"0x",l?(0,d.numberToHex)(l):"0x",a??"0x"];if(t){let e=(()=>
139{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});return e})(),i=(0,u.trim)(t.r),a=(0,u.trim)(t.s);h=[...h,(0,d.numberToHex)(e),"0x00"===i?"0x":i,"0x00"===a?"0x":a]}else r>0&&(h=[...h,(0,d.numberToHex)(r),"0x","0x"]);return(0,f.toRlp)(h)}(e,t)},t.toYParitySignatureArray=b;let n=r(45742),i=r(22677),a=r(83209),o=r(51227),s=r(40741),l=r(6505),c=r(246),u=r(56574),d=r(96291),f=r(76311),p=r(85426),h=r(10644),m=r(84041);function b(e,t){let r=t??e,{v:n,yParity:i}=r;if(void 0===r.r||void 0===r.s||void 0===n&&void 0===i)return[];let a=(0,u.trim)(r.r),o=(0,u.trim)(r.s);return["number"==typeof i?i?(0,d.numberToHex)(1):"0x":0n===n?"0x":1n===n?(0,d.numberToHex)(1):27n===n?"0x":(0,d.numberToHex)(1),"0x00"===a?"0x":a,"0x00"===o?"0x":o]}},27621:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTypedData=function(e){let{domain:t,message:r,primaryType:n,types:i}=e,a=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},o=i.EIP712Domain&&t?a(i.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==n)return a(i[n],r)})();return(0,d.stringify)({domain:o,message:s,primaryType:n,types:i})},t.validateTypedData=function(e){let{domain:t,message:r,primaryType:u,types:d}=e,f=(e,t)=>{for(let r of e){let{name:e,type:u}=r,p=t[e],h=u.replace(/(\[[0-9]*\])+$/,"");if("int"===h||"uint"===h)throw new a.InvalidTypedDataTypeError({type:u});let m=u.match(c.integerRegex);if(m&&("number"==typeof p||"bigint"==typeof p)){let[e,t,r]=m;(0,l.numberToHex)(p,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===u&&"string"==typeof p&&!(0,o.isAddress)(p))throw new i.InvalidAddressError({address:p});let b=u.match(c.bytesRegex);if(b){let[e,t]=b;if(t&&(0,s.size)(p)!==Number.parseInt(t,10))throw new n.BytesSizeMismatchError({expectedSize:Number.parseInt(t,10),givenSize:(0,s.size)(p)})}let y=d[u];y&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new a.InvalidStructTypeError({type:e})}(u),f(y,p))}};if(d.EIP712Domain&&t){if("object"!=typeof t)throw new a.InvalidDomainError({domain:t});f(d.EIP712Domain,t)}if("EIP712Domain"!==u){if(d[u])f(d[u],r);else throw new a.InvalidPrimaryTypeError({primaryType:u,types:d})}},t.getTypesForEIP712Domain=f,t.domainSeparator=function({domain:e}){return(0,u.hashDomain)({domain:e,types:{EIP712Domain:f({domain:e})}})};let n=r(43279),i=r(39878),a=r(4890),o=r(42948),s=r(62221),l=r(96291),c=r(16859),u=r(19021),d=r(16283);function f({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},31263:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)};let n=256},84261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=n,t.formatEther=function(e,t="wei"){return n(e,r.ether-r[t])},t.formatGwei=function(e,t="wei"){return n(e,r.gwei-r[t])},t.from=i,t.fromEther=function(e,t="wei"){return i(e,r.ether-r[t])},t.fromGwei=function(e,t="wei"){return i(e,r.gwei-r[t])};let r={wei:0,gwei:9,szabo:12,finney:15,ether:18};function n(e,t=0){if(!Number.isInteger(t)||t<0)throw new o({decimals:t});let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}function i(e,t=0){if(!Number.isInteger(t)||t<0)throw new o({decimals:t});if(!/^-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)$/.test(e))throw new a({value:e});let[r="",n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),""===r&&(r="0"),n=n.replace(/(0+)$/,""),0===t)n.length>0&&Number.parseInt(n[0],10)>=5&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let e=n.slice(0,t);if(Number.parseInt(n.slice(t,t+1),10)>=5){let i=function(e){let t=e.split(""),r=t.length-1;for(;r>=0;){let e=Number.parseInt(t[r],10)+1;if(e<10)return t[r]=String(e),t.join("");t[r]="0",r--}return`1${t.join("")}`}(e);i.length>t?(n=i.slice(1),r=`${BigInt(r)+1n}`):n=i}else n=e}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}
139class a extends Error{constructor({value:e}){super(`Value \`${e}\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class o extends Error{constructor({decimals:e}){super(`\`decimals\` must be a non-negative integer. Got \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}},29120:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=function(e,t="wei"){return n.formatEther(e,t)};let n=r(84261)},53632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=function(e,t="wei"){return n.formatGwei(e,t)};let n=r(84261)},93720:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=function(e,t){return n.format(e,t)};let n=r(84261)},29161:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=function(e,t="wei"){return n.fromEther(e,t)};let n=r(84261)},18950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=function(e,t="wei"){return n.fromGwei(e,t)};let n=r(84261)},98264:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=function(e,t){return n.from(e,t)};let n=r(84261)},70491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=i;let n=r(52621);async function i(e,{signal:t}={}){return new Promise((r,i)=>{if(t?.aborted){i((0,n.getAbortError)(t));return}let a=()=>t?.removeEventListener("abort",s),o=setTimeout(()=>{a(),r()},e),s=()=>{clearTimeout(o),a(),i((0,n.getAbortError)(t))};t?.addEventListener("abort",s,{once:!0})})}},68693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainConfig=void 0;let n=r(84830),i=r(20067),a=r(39883);t.chainConfig={blockTime:1e3,formatters:n.formatters,serializers:i.serializers,custom:{getEip712Domain:a.getEip712Domain}}},27519:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiredL1ToL2GasPerPubdataLimit=t.maxBytecodeSize=t.gasPerPubdataDefault=void 0;let n=r(24796);t.gasPerPubdataDefault=50000n,t.maxBytecodeSize=32n*n.maxUint16,t.requiredL1ToL2GasPerPubdataLimit=800n},52812:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytecodeLengthMustBeDivisibleBy32Error=t.BytecodeLengthInWordsMustBeOddError=t.BytecodeLengthExceedsMaxSizeError=void 0;let n=r(63392);class i extends n.BaseError{constructor({givenLength:e,maxBytecodeSize:t}){super(`Bytecode cannot be longer than ${t} bytes. Given length: ${e}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}t.BytecodeLengthExceedsMaxSizeError=i;class a extends n.BaseError{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}t.BytecodeLengthInWordsMustBeOddError=a;class o extends n.BaseError{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}t.BytecodeLengthMustBeDivisibleBy32Error=o},84303:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidEip712TransactionError=void 0;let n=r(63392);class i extends n.BaseError{constructor(){super('Transaction is not an EIP712 transaction.\n\nTransaction must:\n - include `type: "eip712"`\n - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`',{name:"InvalidEip712TransactionError"})}}t.InvalidEip712TransactionError=i},84830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatters=void 0;let n=r(85198),i=r(22876),a=r(96291),o=r(13713),s=r(47539),l=r(10146),c=r(58983),u=r(9101),d=r(27519);t.formatters={block:(0,o.defineBlock)({format(e){let r=e.transactions?.map(e=>{if("string"==typeof e)return e;let r=t.formatters.transaction?.format(e);return"0x71"===r.typeHex?r.type="eip712":"0xff"===r.typeHex&&(r.type="priority"),r});return{l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?(0,n.hexToBigInt)(e.l1BatchTimestamp):null,transactions:r}}}),transaction:(0,l.defineTransaction)({format(e){let t={};return"0x71"===e.type?t.type="eip712":"0xff"===e.type&&(t.type="priority"),{...t,l1B
139atchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null}}}),transactionReceipt:(0,c.defineTransactionReceipt)({format:e=>({l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,n.hexToBigInt)(e.l1BatchTxIndex):null,logs:e.logs.map(e=>({...(0,s.formatLog)(e),l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,transactionLogIndex:(0,n.hexToNumber)(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:e.l2ToL1Logs.map(e=>({blockNumber:(0,n.hexToBigInt)(e.blockHash),blockHash:e.blockHash,l1BatchNumber:e.l1BatchNumber?(0,n.hexToBigInt)(e.l1BatchNumber):null,transactionIndex:(0,n.hexToBigInt)(e.transactionIndex),shardId:(0,n.hexToBigInt)(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:(0,n.hexToBigInt)(e.logIndex)}))})}),transactionRequest:(0,u.defineTransactionRequest)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:e=>e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:(0,a.toHex)(e.gasPerPubdata)}:{gasPerPubdata:(0,a.toHex)(d.gasPerPubdataDefault)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from((0,i.hexToBytes)(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(e=>Array.from((0,i.hexToBytes)(e)))}:{},...e.customSignature?{customSignature:Array.from((0,i.hexToBytes)(e.customSignature))}:{}},type:"0x71"}:{}})}},20067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializers=void 0,t.serializeTransaction=u;let n=r(246),i=r(96291),a=r(76311),o=r(22741),s=r(27519),l=r(14954),c=r(87956);function u(e,t){return(0,c.isEIP712Transaction)(e)?function(e){let{chainId:t,gas:r,nonce:o,to:c,from:u,value:d,maxFeePerGas:f,maxPriorityFeePerGas:p,customSignature:h,factoryDeps:m,paymaster:b,paymasterInput:y,gasPerPubdata:g,data:v}=e;(0,l.assertEip712Transaction)(e);let w=[o?(0,i.toHex)(o):"0x",p?(0,i.toHex)(p):"0x",f?(0,i.toHex)(f):"0x",r?(0,i.toHex)(r):"0x",c??"0x",d?(0,i.toHex)(d):"0x",v??"0x",(0,i.toHex)(t),(0,i.toHex)(""),(0,i.toHex)(""),(0,i.toHex)(t),u??"0x",g?(0,i.toHex)(g):(0,i.toHex)(s.gasPerPubdataDefault),m??[],h??"0x",b&&y?[b,y]:[]];return(0,n.concatHex)(["0x71",(0,a.toRlp)(w)])}(e):(0,o.serializeTransaction)(e,t)}t.serializers={transaction:u}},14954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertEip712Transaction=function(e){let{chainId:t,to:r,from:c,paymaster:u,paymasterInput:d}=e;if(!(0,l.isEIP712Transaction)(e))throw new s.InvalidEip712TransactionError;if(!t||t<=0)throw new a.InvalidChainIdError({chainId:t});if(r&&!(0,o.isAddress)(r))throw new n.InvalidAddressError({address:r});if(c&&!(0,o.isAddress)(c))throw new n.InvalidAddressError({address:c});if(u&&!(0,o.isAddress)(u))throw new n.InvalidAddressError({address:u});if(u&&!d)throw new i.BaseError("`paymasterInput` must be provided when `paymaster` is defined");if(!u&&d)throw new i.BaseError("`paymaster` must be provided when `paymasterInput` is defined")};let n=r(39878),i=r(63392),a=r(57602),o=r(42948),s=r(84303),l=r(87956)},39883:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEip712Domain=void 0;let n=r(96291),i=r(27519),a=r(14954),o=r(16921);t.getEip712Domain=e=>{(0,a.assertEip712Transaction)(e);let t=function(e){let{gas:t,nonce:r,to:a,from:s,value:l,maxFeePerGas:c,maxPriorityFeePerGas:u,factoryDeps:d,paymaster:f,paymasterInput:p,gasPerPubdata:h,data:m}=e;return{txType:113n,from:BigInt(s),to:a?BigInt(a):0n,gasLimit:t??0n,gasPerPubdataByteLimit:h??i.gasPerPubdataDefault,maxFeePerGas:c??0n,maxPriorityFeePerGas:u??0n,paymaster:f?BigInt(f):0n,nonce:r?BigInt(r):0n,value:l??0n,data:m??"0x",factoryDeps:d?.map(e=>n.toHex(o.hashBytecode(e)))??[],paymasterInput:p||"0x"}}(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}}},16921:function(e,t,r){"use strict";
139Object.defineProperty(t,"__esModule",{value:!0}),t.hashBytecode=function(e){let t=(0,i.toBytes)(e);if(t.length%32!=0)throw new s.BytecodeLengthMustBeDivisibleBy32Error({givenLength:t.length});if(t.length>o.maxBytecodeSize)throw new s.BytecodeLengthExceedsMaxSizeError({givenLength:t.length,maxBytecodeSize:o.maxBytecodeSize});let r=(0,a.sha256)(t),l=(0,i.toBytes)(r),c=t.length/32;if(c%2==0)throw new s.BytecodeLengthInWordsMustBeOddError({givenLengthInWords:c});let u=(0,i.toBytes)(c),d=(0,n.pad)(u,{size:2}),f=new Uint8Array([1,0]);return l.set(f,0),l.set(d,2),l};let n=r(95367),i=r(22876),a=r(79887),o=r(27519),s=r(52812)},87956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEIP712Transaction=function(e){return"eip712"===e.type||"customSignature"in e&&!!e.customSignature||"paymaster"in e&&!!e.paymaster||"paymasterInput"in e&&!!e.paymasterInput||"gasPerPubdata"in e&&"bigint"==typeof e.gasPerPubdata||"factoryDeps"in e&&!!e.factoryDeps}},56300:function(e,t,r){"use strict";let n,i,a;r.d(t,{$:function(){return q},A:function(){return A},Aa:function(){return em},Ba:function(){return eb},Ca:function(){return ey},Da:function(){return eg},Ea:function(){return ev},Fa:function(){return ew},G:function(){return k},H:function(){return P},J:function(){return C},K:function(){return T},N:function(){return _},O:function(){return O},P:function(){return S},Q:function(){return I},R:function(){return B},S:function(){return j},T:function(){return M},U:function(){return R},V:function(){return N},W:function(){return U},X:function(){return z},Y:function(){return D},Z:function(){return H},b:function(){return c},ba:function(){return K},c:function(){return u},ca:function(){return Z},d:function(){return f},da:function(){return V},ea:function(){return W},fa:function(){return Y},ga:function(){return X},ha:function(){return J},i:function(){return p},ka:function(){return Q},la:function(){return ee},m:function(){return h},ma:function(){return et},n:function(){return m},na:function(){return er},o:function(){return b},oa:function(){return en},pa:function(){return ei},q:function(){return g},qa:function(){return ea},ra:function(){return eo},sa:function(){return es},ta:function(){return el},u:function(){return w},ua:function(){return ec},va:function(){return eu},wa:function(){return ed},xa:function(){return ef},y:function(){return E},ya:function(){return ep},z:function(){return x},za:function(){return eh}});var o=r(31416),s=r(2091),l=((n=l||{}).Event="Event",n.Series="Series",n),c=((i=c||{}).BUY="BUY",i.SELL="SELL",i),u=((a=u||{}).GTC="GTC",a.FOK="FOK",a.GTD="GTD",a.FAK="FAK",a);function d(e){if(!Number.isInteger(e))throw TypeError(`Expected an integer, received: ${e}`);return e}function f(e){return e}function p(e){return e}function h(e){return e}function m(e){return e}function b(e){return d(e)}function y(e){return d(e)}function g(e){return e}function v(e){return e}function w(e){return e}function E(e){return d(e)}function x(e){return e}function A(e){return e}function k(e){return e}function P(e){return d(e)}function C(e){return d(e)}function T(e){return e}function _(e){return e}function O(e){return e}var S=s.Z_().transform(function(e){return e}),I=s.Z_().transform(function(e){return e}),B=s.Z_().transform(function(e){if(!(0,o.A7)(e)||66!==e.length)throw TypeError(`Expected a 32-byte hex string, received: ${e}`);return e}),j=s.Z_().transform(function(e){return e}),M=s.Z_().transform(function(e){return e}),R=s.Z_().transform(function(e){if(!(0,o.A7)(e)||64!==e.length&&66!==e.length)throw TypeError(`Expected a 31-byte or 32-byte hex string, received: ${e}`);return e}),N=s.dj(e=>""===e?void 0:e,R.optional()),U=s.Z_().transform(function(e){return(0,o.ng)(e)}),z=s.Rx().int().transform(y),D=s.Rx().int().transform(e=>y(1e3*e)),F=s.G0([s.Rx().int(),s.Z_().regex(/^\d+$/).transform(Number)]),L=s.Z_().transform(e=>/^\d{4}-\d{2}-\d{2}$/.test(e)?w(new Date(`${e}T00:00:00.000Z`).toISOString()):w(e)),H=s.Z_().regex(/^\d+$/).transform(e=>y(Number(e))),G=s.G0([F.transform(e=>w(new Date(e).toISOString())),L]),q=s.G0([F.transform(e=>w(new Date(e<1e12?1e3*e:e).toISOString())),L]),$=s.G0([F.transform(e=>0===e?void 0:w(new Date(e).toISOString())),L]),K=G,Z=$,V=s.G0([s.Z_(),s.Rx().int().transform(String)]).transform(g),W=s.G0([s.i0(.1),s.i0(.01),s.i0(.001),s.i0(1e-4)]),Y=s.Z_().transform(w).or(s.hT().transform(e=>w(e.toISOString()))),X=s.Z_().transform(v).or(s.hT().transform(e=>v(e.toISOString().slice(0,10)))),J=s.Z_().transform(function(e){return e}),Q=s.Z_().transform(function(e){return e}),ee=s.Z_().transform(function(e){return e}),et=s.Z_().transform(function(e){return e}),er=s.Rx().int().transform(function(e){return d(e)}),en=s.Km(l),ei=s.Km(c),ea=s.Km(u),eo=s.Z_().min(1).transform(x),es=s.Z_().transform(A),el=s.Z_().transform(function(e){return eE(e)}),ec=s.Z_().transform(function(e){return eE(e)}),eu=s.Z_().transform(function(e){return e}),ed=s.Z_().transform(function(e){return e}),ef=s.Z_().transform(function(e){return e}),ep=s.Z_().transform(function(e){return e}),eh=s.Z_().transform(function(e){return e}),em=s.Z_().min(1).transform(function(e){return e}),eb=s.Z_().transform(function(e){return(0,o.vQ)(e)}),ey=s.Z_().transform(_),eg=s.G0([ey,s.Rx().transform(e=>_(String(e)))]),ev=s.G0([s.Rx(),s.Z_().transform(Number)]).pipe(s.Rx().positive()),ew=s.Z_().transform(O);function eE(e){if(!(0,o.A7)(e)||66!==e.length)throw TypeError(`Expected a 32-byte hex string, received: ${e}`);return e}},52542:function(e,t,r){"use strict";r.d(t,{a:function(){return l},b:function(){return c},c:function(){return u},d:function(){return d},e:function(){return f},f:function(){return p},g:function(){return h},h:function(){return m},i:function(){return b},j:function(){return y},k:function(){return g}});var n=r(31416),i=/^[$A-Z_a-z][$\w]*$/;function a(e){return e.map(e=>null===e.path?`- ${e.message}`:`- ${e.path}: ${e.message}`).join(` 140`)}function o(e){return(function e(t,r=[]){return function(e){let t=new Set,r=[];for(let n of e){let e=`${n.code}:${n.path??""}:${n.message}`;t.has(e)||(t.add(e),r.push(n))}return r.sort(s)}(t.flatMap(t=>{let n=[...r,...t.path];return"invalid_union"===t.code?t.errors.flatMap(t=>e(t,n)):[{code:t.code,message:t.message,path:0===n.length?null:n.reduce((e,t)=>
140"number"==typeof t?`${e}[${t.toString()}]`:"string"!=typeof t?e:t.includes('"')?`${e}["${t.replaceAll('"','\\"')}"]`:i.test(t)?0===e.length?t:`${e}.${t}`:`${e}["${t}"]`,"")}]}))})(e).slice(0,99)}function s(e,t){return null===e.path&&null!==t.path?-1:null!==e.path&&null===t.path?1:(e.path??"").localeCompare(t.path??"")}var l=class e extends n.ac{name="UserInputError";constructor(e,t={}){super(e,t)}static fromZodError(t){let r;return new e(0===(r=o(t.issues)).length?"It was not possible to determine a more specific reason.":["Fix the following issues:",a(r)].join(` 141`),{cause:t})}},c=class e extends n.ac{name="UnexpectedResponseError";constructor(e,t={}){super(e,t)}static fromZodError(t,r){let n;return new e(0===(n=o(t.issues)).length?["Received an incompatible API response.",`Endpoint: ${r.endpoint}`,"This usually means the API response shape changed in a breaking way or the SDK is outdated.","It was not possible to determine a more specific reason."].join(` 142`):["Received an incompatible API response.",`Endpoint: ${r.endpoint}`,"This usually means the API response shape changed in a breaking way or the SDK is outdated.","Fix the following issues:",a(n)].join(` 143`),{cause:t})}},u=class e extends n.ac{name="TransportError";constructor(e,t={}){super(e,t)}static fromError(t){return new e(t instanceof Error?t.message:"Request failed",{cause:t})}},d=class extends n.ac{name="RequestRejectedError";status;constructor(e,t){super(e,t),this.status=t.status}},f=class extends n.ac{name="RateLimitError"},p=class extends n.ac{name="TimeoutError";constructor(e,t={}){super(e,t)}},h=class extends n.ac{name="TransactionFailedError";constructor(e,t={}){super(e,t)}},m=class e extends n.ac{name="CancelledSigningError";constructor(e,t={}){super(e,t)}static fromError(t){return new e(t.message,{cause:t})}},b=class extends n.ac{name="InsufficientLiquidityError";constructor(e,t={}){super(e,t)}},y=class e extends n.ac{name="SigningError";constructor(e,t={}){super(e,t)}static fromError(t,r){return new e(r??(t instanceof Error?t.message:"Signing failed"),{cause:t})}};function g(...e){return{isError:t=>e.some(e=>t instanceof e)}}},5963:function(e,t,r){"use strict";let n,i,a,o,s,l,c,u,d,f,p,h,m,b,y,g,v,w,E,x,A;r.d(t,{_r:function(){return po},C7:function(){return fT},Z9:function(){return fy}});var k=r(52542),P=r(56300),C=r(2091),T=((n=T||{})[n.EOA=0]="EOA",n[n.POLY_PROXY=1]="POLY_PROXY",n[n.POLY_GNOSIS_SAFE=2]="POLY_GNOSIS_SAFE",n[n.POLY_1271=3]="POLY_1271",n),_=C.Km(T),O=r(31416);function S(e){return C.Ry({count:C.Rx(),data:C.IX(e),limit:C.Rx(),next_cursor:C.Z_()}).transform(({next_cursor:e,...t})=>({...t,nextCursor:e}))}var I=C.Ry({closed_only:C.O7()}).transform(({closed_only:e})=>({closedOnly:e})),B=C.Ry({asset_id:P.za,associate_trades:C.IX(C.Z_()),created_at:P.ba,expiration:P.ca,id:C.Z_(),maker_address:C.Z_(),market:C.Z_(),order_type:C.Z_(),original_size:P.Ca,outcome:C.Z_(),owner:C.Z_(),price:P.Ca,side:C.Z_(),size_matched:P.Ca,status:C.Z_()}).transform(({asset_id:e,associate_trades:t,created_at:r,expiration:n,maker_address:i,order_type:a,original_size:o,size_matched:s,...l})=>{let c={...l,tokenId:e,associateTrades:t,createdAt:r,makerAddress:i,orderType:a,originalSize:o,sizeMatched:s};return void 0===n?c:{...c,expiresAt:n}}),j=S(B),M=C.Ry({asset_id:P.za,fee_rate_bps:P.Ca,maker_address:C.Z_(),matched_amount:P.Ca,order_id:C.Z_(),outcome:C.Z_(),owner:C.Z_(),price:P.Ca,side:C.Z_()}).transform(({asset_id:e,fee_rate_bps:t,maker_address:r,matched_amount:n,order_id:i,...a})=>({...a,tokenId:e,feeRateBps:t,makerAddress:r,matchedAmount:n,orderId:i})),R=S(C.Ry({asset_id:P.za,bucket_index:C.Rx(),fee_rate_bps:P.Ca,id:C.Z_(),last_update:P.$,maker_address:C.Z_(),maker_orders:C.IX(M),market:C.Z_(),match_time:P.$,outcome:C.Z_(),owner:C.Z_(),price:P.Ca,side:C.Z_(),size:P.Ca,status:C.Z_(),taker_order_id:C.Z_(),trader_side:C.Km(["TAKER","MAKER"]),transaction_hash:C.Z_()}).transform(({asset_id:e,bucket_index:t,fee_rate_bps:r,last_update:n,maker_address:i,maker_orders:a,match_time:o,taker_order_id:s,trader_side:l,transaction_hash:c,...u})=>({...u,tokenId:e,bucketIndex:t,feeRateBps:r,updatedAt:n,makerAddress:i,makerOrders:a,matchedAt:o,takerOrderId:s,traderSide:l,transactionHash:c}))),N=C.dj(e=>"string"!=typeof e?e:/^\d+$/.test(e)?Number(e):Date.parse(e),P.X),U=C.Ry({id:P.na,owner:C.Z_(),payload:C._4(),timestamp:N,type:C.Rx()}),z=C.IX(U),D=((i=D||{}).COLLATERAL="COLLATERAL",i.CONDITIONAL="CONDITIONAL",i),F=C.Km(D),L=C.Ry({allowances:C.IM(P.W,C.Z_().transform(BigInt)),balance:P.Fa}),H=C.Ry({scoring:C.O7()}),G=C.IM(C.Z_(),C.O7()),q=S(C.Ry({asset_address:C.Z_(),asset_rate:P.Da,condition_id:P.U,date:P.ba,earnings:P.Da,maker_address:C.Z_()}).transform(({asset_address:e,asset_rate:t,condition_id:r,maker_address:n,...i})=>({...i,assetAddress:e,assetRate:t,conditionId:r,makerAddress:n}))),$=C.Ry({asset_address:C.Z_(),asset_rate:P.Da,date:P.ba,earnings:P.Da,maker_address:C.Z_()}).transform(({asset_address:e,asset_rate:t,maker_address:r,...n})=>({...n,assetAddress:e,assetRate:t,makerAddress:r})),K=C.IX($),Z=C.IM(P.U,C.Rx()),V=C.Ry({outcome:C.Z_(),price:P.Da,token_id:P.za}).transform(({token_id:e,...t})=>({...t,tokenId:e})),W=C.Ry({asset_address:C.Z_(),end_date:P.ba,rate_per_day:P.Da,start_date:P.ba,total_rewards:P.Da}).transform(({asset_address:e,end_date:t,rate_per_day:r,start_date:n,total_rewards:i})=>({assetAddress:e,endDate:t,ratePerDay:r,startDate:n,totalRewards:i})),Y=C.Ry({asset_address:C.Z_(),asset_rate:P.Da,earnings:P.Da}).transform(({asset_address:e,asset_rate:t,...r})=>({...r,assetAddress:e,assetRate:t})),X=S(C.Ry({condition_id:P.U,earning_percentage:C.Rx(),earnings:C.IX(Y),event_slug:C.Z_(),image:C.Z_(),maker_address:C.Z_(),market_competitiveness:C.Rx(),market_slug:C.Z_(),question:C.Z_(),rewards_config:C.IX(W),rewards_max_spread:C.Rx(),rewards_min_size:P.Da,tokens:C.IX(V)}).transform(({condition_id:e,earning_percentage:t,event_slug:r,maker_address:n,market_competitiveness:i,market_slug:a,rewards_config:o,rewards_max_spread:s,rewards_min_size:l,...c})=>({...c,conditionId:e,earningPercentage:t,eventSlug:r,makerAddress:n,marketCompetitiveness:i,marketSlug:a,rewardsConfig:o,rewardsMaxSpread:s,rewardsMinSize:l}))),J=C.Ry({apiKey:P.Q,secret:C.Z_(),passphrase:C.Z_()}).transform(e=>({key:e.apiKey,passphrase:e.passphrase,secret:e.secret})),Q=C.Ry({apiKeys:C.IX(P.Q)}),ee=(C.Ry({key:P.Q,secret:C.Z_(),passphrase:C.Z_()}),C.Ry({key:P.Q,createdAt:P.ba.optional(),revokedAt:P.ba.nullable().optional()}));C.IX(C.G0([P.Q.transform(e=>({key:e})),ee])).transform(e=>e.map(e=>ee.parse(e)));var et=C.Ry({id:C.Z_(),tradeType:C.Z_(),takerOrderHash:C.Z_(),builder:C.Z_(),market:C.Z_(),assetId:P.za,side:P.pa,size:P.Ca,sizeUsdc:P.Ca,price:P.Ca,status:C.Z_(),outcome:C.Z_(),outcomeIndex:C.Rx().int(),owner:C.Z_(),maker:C.Z_(),transactionHash:C.Z_(),matchTime:P.$,bucketIndex:C.Rx().int(),fee:P.Ca,feeUsdc:P.Ca,err_msg:C.Z_().nullable().optional(),createdAt:P.ba.optional(),updatedAt:P.ba.optional()}).transform(({err_msg:e,assetId:t,matchTime:r,...n})=>({...n,tokenId:t,errMsg:e,matchedAt:r})),er=C.Ry({limit:C.Rx().int(),count:C.Rx().int(),next_cursor:C.Z_(),data:C.IX(et)}).transform(({next_cursor:e,...t})=>({...t,nextCursor:e})),en=C.Ry({builder_maker_fee_rate_bps:C.Rx(),builder_taker_fee_rate_bps:C.Rx()}).transform(({builder_maker_fee_rate_bps:e,builder_taker_fee_rate_bps:t})=>({maker:e/1e4,taker:t/1e4})),ei=C.Ry({canceled:C.IX(C.Z_()),not_canceled:C.IM(C.Z_(),C.Z_())}).transform(({canceled:e,not_canceled:t})=>({canceled:e,notCanceled:t})),ea=((a=ea||{}).MAX="max",a.ONE_WEEK="1w",a.ONE_DAY="1d",a.SIX_HOURS="6h",a.ONE_HOUR="1h",a),eo=C.Km(ea),es=C.Ry({mid:P.Ca}),el=C.IM(C.Z_(),P.Ca),ec=C.Ry({price:P.Ca}),eu=C.IM(P.pa,P.Ca.optional()),ed=C.IM(C.Z_(),eu),ef=C.Ry({spread:P.Ca}),ep=C.IM(C.Z_(),P.Ca),eh=C.Ry({price:P.Ca,side:P.pa}),em=C.Ry({price:P.Ca,side:P.pa,token_id:P.za}).transform(({token_id:e,price:t,side:r})=>({tokenId:e,price:t,side:r}));C.Ry({tokenId:P.za,price:P.Ca,side:P.pa});var eb=C.IX(em),ey=C.Ry({t:C.Rx().int(),p:C.Rx()}),eg=C.Ry({history:C.IX(ey)}),ev=C.Ry({condition_id:P.U}).transform(({condition_id:e})=>e),ew=C.Ry({r:C.Rx().default(0),e:C.Rx().default(0)}).transform(({r:e,e:t})=>({rate:e,exponent:t})),eE=C.Ry({t:P.za,o:C.Z_()}).transform(({t:e,o:t})=>({tokenId:e,outcome:t}
143)),ex=C.Ry({fd:ew.nullish(),t:C.IX(eE)}).transform(({fd:e,t})=>({feeInfo:e??{rate:0,exponent:0},tokens:t})),eA=C.Ry({neg_risk:C.O7()}).transform(({neg_risk:e,...t})=>({...t,negRisk:e})),ek=C.Ry({price:P.Ca,size:P.Ca}),eP=C.Z_().regex(/^[a-f0-9]{40}$/).transform(e=>e),eC=C.Ry({market:P.U,asset_id:P.za,timestamp:P.Z.nullish(),bids:C.IX(ek),asks:C.IX(ek),min_order_size:P.Ca,tick_size:P.Ca,neg_risk:C.O7(),last_trade_price:P.Ca.nullish(),hash:eP}).transform(({asset_id:e,min_order_size:t,tick_size:r,neg_risk:n,last_trade_price:i,...a})=>({...a,tokenId:e,minOrderSize:t,tickSize:r,negRisk:n,lastTradePrice:i})),eT=C.IX(eC),e_=C.Ry({errorMsg:C.Z_(),makingAmount:P.Ca,orderID:C.Z_(),status:C.Z_(),success:C.O7(),takingAmount:P.Ca,tradeIDs:C.IX(C.Z_()).default([]),transactionsHashes:C.IX(C.Z_()).default([])}),eO=(C.IX(e_),(o=eO||{}).LIVE="live",o.MATCHED="matched",o.DELAYED="delayed",o),eS=C.jb(eO),eI=((s=eI||{}).UNMATCHED="unmatched",s.MARKET_NOT_READY="market_not_ready",s.INSUFFICIENT_BALANCE_OR_ALLOWANCE="insufficient_balance_or_allowance",s.INVALID_NONCE="invalid_nonce",s.INVALID_EXPIRATION="invalid_expiration",s.POST_ONLY_WOULD_CROSS="post_only_would_cross",s.FOK_NOT_FILLED="fok_not_filled",s.FAK_NOT_FILLED="fak_not_filled",s.UNKNOWN="unknown",s),eB=C.jb(eI),ej=C.Ry({ok:C.i0(!0),orderId:C.Z_().min(1),status:eS,makingAmount:P.Ca,takingAmount:P.Ca,tradeIds:C.IX(C.Z_()),transactionsHashes:C.IX(P.Ba)}),eM=C.Ry({ok:C.i0(!1),code:eB,message:C.Z_().min(1)}),eR=e_.transform(function(e){var t;return e.success&&""===e.errorMsg&&""!==e.orderID&&("live"===(t=e.status)||"matched"===t||"delayed"===t)?ej.parse({makingAmou
143nt:e.makingAmount,ok:!0,orderId:e.orderID,status:function(e){switch(e){case"live":return"live";case"matched":return"matched";case"delayed":return"delayed";default:(0,O.Fi)(`Unexpected order post status: ${e}`)}}(e.status),takingAmount:e.takingAmount,tradeIds:e.tradeIDs,transactionsHashes:e.transactionsHashes}):eM.parse({code:function(e){if("unmatched"===e.status)return"unmatched";switch(e.errorMsg){case"the market is not yet ready to process new orders":return"market_not_ready";case"invalid nonce":return"invalid_nonce";case"invalid expiration":return"invalid_expiration";case"invalid post-only order: order crosses book":return"post_only_would_cross";case"order couldn't be fully filled. FOK orders are fully filled or killed.":return"fok_not_filled";case"no orders found to match with FAK order. FAK orders are partially filled or killed if no match is found.":return"fak_not_filled"}return e.errorMsg.includes("not enough balance / allowance")?"insufficient_balance_or_allowance":"unknown"}(e),message:e.errorMsg||"Unknown order failure",ok:!1})}),eN=C.IX(eR),eU="LTE=",ez=C.Ry({id:C.Rx().int().optional(),asset_address:C.Z_(),start_date:P.ba,end_date:P.ba.optional(),rate_per_day:P.Da,total_rewards:P.Da.optional()}).transform(({asset_address:e,start_date:t,end_date:r,rate_per_day:n,total_rewards:i,...a})=>({...a,assetAddress:e,startDate:t,endDate:r,ratePerDay:n,totalRewards:i})),eD=C.Ry({condition_id:P.U,rewards_max_spread:C.Rx().optional(),rewards_min_size:P.Da.optional(),rewards_config:C.IX(ez).optional(),sponsored_daily_rate:P.Da.optional(),sponsors_count:C.Rx().int().optional(),native_daily_rate:P.Da.optional(),total_daily_rate:P.Da.optional()}).transform(({condition_id:e,rewards_max_spread:t,rewards_min_size:r,rewards_config:n,sponsored_daily_rate:i,sponsors_count:a,native_daily_rate:o,total_daily_rate:s,...l})=>({...l,conditionId:e,rewardsMaxSpread:t,rewardsMinSize:r,rewardsConfig:n,sponsoredDailyRate:i,sponsorsCount:a,nativeDailyRate:o,totalDailyRate:s})),eF=C.Ry({limit:C.Rx().int(),count:C.Rx().int(),next_cursor:C.Z_(),data:C.IX(eD)}).transform(({next_cursor:e,...t})=>({...t,nextCursor:e})),eL=C.Ry({token_id:P.za,outcome:C.Z_(),price:P.Da}).transform(({token_id:e,...t})=>({...t,tokenId:e})),eH=C.Ry({asset_address:C.Z_(),start_date:P.ba,end_date:P.ba.optional(),rate_per_day:P.Da,total_rewards:P.Da.optional()}).transform(({asset_address:e,start_date:t,end_date:r,rate_per_day:n,total_rewards:i,...a})=>({...a,assetAddress:e,startDate:t,endDate:r,ratePerDay:n,totalRewards:i})),eG=C.Ry({condition_id:P.U,question:C.Z_(),market_slug:C.Z_().optional(),event_slug:C.Z_().optional(),image:C.Z_().optional(),rewards_max_spread:C.Rx().optional(),rewards_min_size:P.Da.optional(),market_competitiveness:C.Rx().optional(),tokens:C.IX(eL),rewards_config:C.IX(eH).optional()}).transform(({condition_id:e,market_slug:t,event_slug:r,rewards_max_spread:n,rewards_min_size:i,market_competitiveness:a,rewards_config:o,...s})=>({...s,conditionId:e,marketSlug:t,eventSlug:r,rewardsMaxSpread:n,rewardsMinSize:i,marketCompetitiveness:a,rewardsConfig:o})),eq=C.Ry({limit:C.Rx().int(),count:C.Rx().int(),next_cursor:C.Z_(),data:C.IX(eG)}).transform(({next_cursor:e,...t})=>({...t,nextCursor:e})),e$=C.Ry({minimum_tick_size:P.ea}).transform(({minimum_tick_size:e,...t})=>({...t,minimumTickSize:e})),eK=r(9182),eZ=C.Ry({id:P.ka,imageUrlSource:C.Z_().nullish(),imageUrlOptimized:C.Z_().nullish(),imageSizeKbSource:C.Rx().nullish(),imageSizeKbOptimized:C.Rx().nullish(),imageOptimizedComplete:C.O7().nullish(),imageOptimizedLastUpdated:P.fa.nullish(),relID:C.Rx().int().nullish(),field:C.Z_().nullish(),relname:C.Z_().nullish()}),eV=C.Ry({exponent:C.Rx(),rate:P.Da,takerOnly:C.O7(),rebateRate:P.Da}),eW=(C.Ry({id:P.da}),C.Ry({id:P.P,label:C.Z_().nullish(),parentCategory:C.Z_().nullish(),slug:C.Z_().nullish(),publishedAt:P.fa.nullish(),createdBy:C.Z_().nullish(),updatedBy:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()})),eY=C.Ry({id:P.ya,label:C.Z_().nullish(),slug:C.Z_().nullish(),forceShow:C.O7().nullish(),publishedAt:P.fa.nullish(),createdBy:C.Rx().int().nullish(),updatedBy:C.Rx().int().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),forceHide:C.O7().nullish(),isCarousel:C.O7().nullish(),requiresTranslation:C.O7().nullish(),activeEventsCount:C.Rx().int().nullish()}),eX=C.Ry({id:P.ma,conditionId:P.V,slug:C.Z_().nullish(),image:C.Z_().nullish(),volume:P.Ca.nullish(),question:C.Z_().nullish(),outcomes:C.Z_().nullish(),outcomePrice
143s:C.Z_().nullish(),startDate:P.fa.nullish(),eventSlug:C.Z_().nullish()}),eJ=C.Ry({id:P.S,conditionId:P.U,assetAddress:C.Z_(),rewardsAmount:P.Da,rewardsDailyRate:P.Da,startDate:P.ga,endDate:P.ga.nullish()}),eQ=C.Ry({id:P.la,username:C.Z_().nullish()}),e0=C.Ry({id:P.da,slug:C.Z_().nullish(),title:C.Z_().nullish()}),e1=C.dj(ti,C.IX(C.Z_()).nullish()).transform(e=>e??[]),e2=C.dj(ti,C.IX(P.Ca).nullish()).transform(e=>e??[]),e3=C.dj(ti,C.IX(P.za).nullish()).transform(e=>e??[]),e6=C.dj(ti,C.IX(P.sa).nullish()).transform(e=>e??[]),e5=((l=e5||{}).Disputed="disputed",l.Proposed="proposed",l.Requested="requested",l.Resolved="resolved",l.Settled="settled",l),e8=C.Km(e5),e7=C.Ry({id:P.ma,question:C.Z_().nullish(),conditionId:C.dj(tr,P.U.nullish()).transform(tn),slug:C.Z_().nullish(),twitterCardImage:C.Z_().nullish(),resolutionSource:C.Z_().nullish(),endDate:P.fa.nullish(),category:C.Z_().nullish(),ammType:C.Z_().nullish(),liquidity:P.Ca.nullish(),sponsorName:C.Z_().nullish(),sponsorImage:C.Z_().nullish(),startDate:P.fa.nullish(),xAxisValue:C.Z_().nullish(),yAxisValue:C.Z_().nullish(),denominationToken:C.Z_().nullish(),fee:P.Ca.nullish(),image:C.Z_().nullish(),icon:C.Z_().nullish(),lowerBound:P.Ca.nullish(),upperBound:P.Ca.nullish(),description:C.Z_().nullish(),outcomes:e1,outcomePrices:e2,volume:P.Ca.nullish(),active:C.O7().nullish(),marketType:C.Z_().nullish(),formatType:C.Z_().nullish(),lowerBoundDate:P.ga.nullish(),upperBoundDate:P.ga.nullish(),closed:C.O7().nullish(),marketMakerAddress:C.Z_(),createdBy:C.Rx().int().nullish(),updatedBy:C.Rx().int().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),closedTime:P.fa.nullish(),wideFormat:C.O7().nullish(),new:C.O7().nullish(),sentDiscord:C.O7().nullish(),mailchimpTag:C.Z_().nullish(),featured:C.O7().nullish(),submitted_by:C.Z_().nullish(),subcategory:C.Z_().nullish(),categoryMailchimpTag:C.Z_().nullish(),twitterCardLocation:C.Z_().nullish(),twitterCardLastRefreshed:P.fa.nullish(),twitterCardLastValidated:P.fa.nullish(),archived:C.O7().nullish(),resolvedBy:C.dj(tr,P.W.nullish()).transform(tn),restricted:C.O7().nullish(),marketGroup:C.Rx().int().nullish(),groupItemTitle:C.Z_().nullish(),groupItemThreshold:P.Ca.nullish(),questionID:C.dj(tr,P.ta.nullish()).transform(tn),umaEndDate:P.ha.nullish(),enableOrderBook:C.O7().nullish(),orderPriceMinTickSize:P.ea.nullish(),orderMinSize:P.Da.nullish(),umaResolutionStatus:C.dj(tr,e8.nullish()).transform(tn),curationOrder:C.Rx().int().nullish(),volumeNum:P.Da.nullish(),liquidityNum:P.Da.nullish(),endDateIso:P.ga.nullish(),startDateIso:P.ga.nullish(),umaEndDateIso:P.ga.nullish(),hasReviewedDates:C.O7().nullish(),readyForCron:C.O7().nullish(),commentsEnabled:C.O7().nullish(),volume24hr:P.Da.nullish(),volume1wk:P.Da.nullish(),volume1mo:P.Da.nullish(),volume1yr:P.Da.nullish(),gameStartTime:P.fa.nullish(),secondsDelay:C.Rx().int().nullish(),clobTokenIds:e3,positionIds:e6,disqusThread:C.Z_().nullish(),shortOutcomes:C.Z_().nullish(),teamAID:C.Z_().nullish(),teamBID:C.Z_().nullish(),umaBond:P.Ca.nullish(),umaReward:P.Ca.nullish(),fpmmLive:C.O7().nullish(),volume24hrAmm:P.Da.nullish(),volume1wkAmm:P.Da.nullish(),volume1moAmm:P.Da.nullish(),volume1yrAmm:P.Da.nullish(),volume24hrClob:P.Da.nullish(),volume1wkClob:P.Da.nullish(),volume1moClob:P.Da.nullish(),volume1yrClob:P.Da.nullish(),volumeAmm:P.Da.nullish(),volumeClob:P.Da.nullish(),liquidityAmm:P.Da.nullish(),liquidityClob:P.Da.nullish(),makerBaseFee:C.Rx().nullish(),takerBaseFee:C.Rx().nullish(),customLiveness:C.Rx().int().nullish(),acceptingOrders:C.O7().nullish(),negRisk:C.O7().nullish(),negRiskMarketID:C.Z_().nullish(),negRiskRequestID:C.dj(tr,P.ua.nullish()).transform(tn),notificationsEnabled:C.O7().nullish(),score:C.Rx().int().nullish(),imageOptimized:eZ.nullish(),iconOptimized:eZ.nullish(),events:C.IX(e0).nullish(),categories:C.IX(C._4()).nullish(),markets:C.IX(eX).nullish(),creator:C.Z_().nullish(),ready:C.O7().nullish(),funded:C.O7().nullish(),pastSlugs:C.Z_().nullish(),readyTimestamp:P.fa.nullish(),fundedTimestamp:P.fa.nullish(),acceptingOrdersTimestamp:P.fa.nullish(),tags:C.IX(eY).nullish(),cyom:C.O7().nullish(),competitive:C.Rx().nullish(),pagerDutyNotificationEnabled:C.O7().nullish(),approved:C.O7().nullish(),clobRewards:C.IX(eJ).nullish(),rewardsMinSize:P.Da.nullish(),rewardsMaxSpread:C.Rx().nullish(),spread:P.Da.nullish(),automaticallyResolved:C.O7().nullish(),oneDayPriceChange:P.Da.nullish(),oneHourPriceChange:P.Da.nullish(),oneWeekPriceChange:P.Da.nullish(),oneMonthPriceChange:P.Da.nullish(),oneYearPriceChange:P.Da.nullish(),lastTradePrice
143:P.Da.nullish(),bestBid:P.Da.nullish(),bestAsk:P.Da.nullish(),automaticallyActive:C.O7().nullish(),clearBookOnStart:C.O7().nullish(),chartColor:C.Z_().nullish(),seriesColor:C.Z_().nullish(),showGmpSeries:C.O7().nullish(),showGmpOutcome:C.O7().nullish(),manualActivation:C.O7().nullish(),negRiskOther:C.O7().nullish(),gameId:C.Z_().nullish(),groupItemRange:C.Z_().nullish(),sportsMarketType:C.Z_().nullish(),line:C.Rx().nullish(),umaResolutionStatuses:C.Z_().nullish(),pendingDeployment:C.O7().nullish(),deploying:C.O7().nullish(),deployingTimestamp:P.fa.nullish(),scheduledDeploymentTimestamp:P.fa.nullish(),rfqEnabled:C.O7().nullish(),eventStartTime:P.fa.nullish(),internalUsers:C.IX(eQ).nullish(),holdingRewardsEnabled:C.O7().nullish(),feesEnabled:C.O7().nullish(),requiresTranslation:C.O7().nullish(),makerRebatesFeeShareBps:C.Rx().nullish(),feeType:C.Z_().nullish(),feeSchedule:eV.nullish()}),e4=e7.transform(tt),e9=(C.IX(e4),C.Ry({markets:C.IX(e4),next_cursor:P.ra.optional()}).transform(({markets:e,next_cursor:t})=>({items:e,nextCursor:t}))),te=C.IX(eY);function tt(e){return{id:e.id,slug:e.slug,conditionId:e.conditionId,question:e.question,description:e.description,category:e.category,image:e.image,icon:e.icon,state:{active:e.active,closed:e.closed,archived:e.archived,acceptingOrders:e.acceptingOrders,enableOrderBook:e.enableOrderBook,negRisk:e.negRisk,startDate:e.startDate,endDate:e.endDate,closedTime:e.closedTime},outcomes:function(e){if(2!==e.outcomes.length)throw TypeError(`Expected binary market outcomes, received ${e.outcomes.length}`);let[t,r]=e.outcomes;return{yes:{label:t,tokenId:e.clobTokenIds[0]??null,price:e.outcomePrices[0]??null},no:{label:r,tokenId:e.clobTokenIds[1]??null,price:e.outcomePrices[1]??null}}}(e),metrics:{volume:e.volume,volumeNum:e.volumeNum,volume24hr:e.volume24hr,volume1wk:e.volume1wk,volume1mo:e.volume1mo,volume1yr:e.volume1yr,volumeAmm:e.volumeAmm,volumeClob:e.volumeClob,liquidity:e.liquidity,liquidityNum:e.liquidityNum,liquidityClob:e.liquidityClob},prices:{bestBid:e.bestBid,bestAsk:e.bestAsk,lastTradePrice:e.lastTradePrice,spread:e.spread,oneHourPriceChange:e.oneHourPriceChange,oneDayPriceChange:e.oneDayPriceChange,oneWeekPriceChange:e.oneWeekPriceChange,oneMonthPriceChange:e.oneMonthPriceChange,oneYearPriceChange:e.oneYearPriceChange},trading:{minimumOrderSize:e.orderMinSize,minimumTickSize:e.orderPriceMinTickSize,secondsDelay:e.secondsDelay,feesEnabled:e.feesEnabled,feeType:e.feeType,feeSchedule:e.feeSchedule},resolution:{questionId:e.questionID,negRiskRequestId:e.negRiskRequestID,umaResolutionStatus:e.umaResolutionStatus,source:e.resolutionSource,resolvedBy:e.resolvedBy},rewards:{clobRewards:e.clobRewards,rewardsMinSize:e.rewardsMinSize,rewardsMaxSpread:e.rewardsMaxSpread,holdingRewardsEnabled:e.holdingRewardsEnabled},sports:{sportsMarketType:e.sportsMarketType,line:e.line,gameId:e.gameId,gameStartTime:e.gameStartTime},events:(e.events??[]).map(e=>({id:e.id,slug:e.slug??null,title:e.title??null})),positionIds:e.positionIds,tags:(e.tags??[]).map(e=>({id:e.id,slug:e.slug,label:e.label}))}}function tr(e){return""===e?null:e}function tn(e){return e??null}function ti(e){return"string"==typeof e?JSON.parse(e):e}var ta=C.Z_().transform(P.d),to=C.Z_().transform(P.i),ts=C.Z_().transform(P.m),tl=C.Z_().transform(P.n),tc=C.Rx().int().transform(P.o),tu=C.G0([P.da,C.Rx().int().transform(e=>(0,P.q)(String(e)))]),td=C.Rx().int().transform(P.y),tf=C.G0([C.Z_(),C.Rx().int().transform(String)]).transform(P.G),tp=C.Rx().int().transform(P.H),th=C.Rx().int().transform(P.J),tm=C.Z_().transform(P.K),tb=C.Ry({id:ts,ticker:C.Z_().nullish(),slug:C.Z_().nullish(),title:C.Z_().nullish(),subtitle:C.Z_().nullish(),collectionType:C.Z_().nullish(),description:C.Z_().nullish(),tags:C.Z_().nullish(),image:C.Z_().nullish(),icon:C.Z_().nullish(),headerImage:C.Z_().nullish(),layout:C.Z_().nullish(),active:C.O7().nullish(),closed:C.O7().nullish(),archived:C.O7().nullish(),new:C.O7().nullish(),featured:C.O7().nullish(),restricted:C.O7().nullish(),isTemplate:C.O7().nullish(),templateVariables:C.Z_().nullish(),publishedAt:P.fa.nullish(),createdBy:C.Z_().nullish(),updatedBy:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),disqusThread:C.Z_().nullish(),commentsEnabled:C.O7().nullish()}),ty=C.Ry({id:tf,ticker:C.Z_().nullish(),slug:C.Z_().nullish(),title:C.Z_().nullish(),subtitle:C.Z_().nullish(),seriesType:C.Z_().nullish(),recurrence:C.Z_().nullish(),description:C.Z_().nullish(),image:C.Z_().nullish(),icon:C.Z_().nullish(),layout:C.Z_().nullish(),active:C.O7().nullish(),closed:C.O7().nullish(),archived:C.O7().nullish(),new:C.O7().nullish(),featured:C.O7().nullish(),restricted:C.O7().nullish(),isTemplate:C.O7().nullish(),templateVariables:C.O7().nullish(),publishedAt:P.fa.nullish(),createdBy:C.Z_().nullish(),updatedBy:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),commentsEnabled:C.O7().nullish(),competitive:C.Z_().nullish(),volume24hr:P.Da.nullish(),volume:P.Da.nullish(),liquidity:P.Da.nullish(),startDate:P.fa.nullish(),pythTokenID:C.Z_().nullish(),cgAssetName:C.Z_().nullish(),score:C.Rx().int().nullish(),commentCount:C.Rx().int().nullish(),requiresTranslation:C.O7().nullish()}),tg=C.Ry({id:tm,displayName:C.Z_().nullish(),eventTitle:C.Z_().nullish(),eventSlug:C.Z_().nullish(),description:C.Z_().nullish(),resolutionSource:C.Z_().nullish(),marketsOrder:C.Z_().nullish(),marketsNegRisk:C.O7().nullish(),marketsAugmentedNegRisk:C.O7().nullish(),marketsShowImages:C.O7().nullish(),markets:C.Z_().nullish(),userVariables:C.Z_().nullish(),creatorUserId:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()}),tv=C.Ry({id:to,channelId:C.Z_().nullish(),channelName:C.Z_().nullish(),channelImage:C.Z_().nullish(),live:C.O7().nullish(),startTime:P.fa.nullish(),endTime:P.fa.nullish()}),tw=C.Ry({id:tl,creatorName:C.Z_().nullish(),creatorHandle:C.Z_().nullish(),creatorUrl:C.Z_().nullish(),creatorURL:C.Z_().nullish(),creatorImage:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()}),tE=C.Ry({id:td,slug:C.Z_(),name:C.Z_(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()}),tx=C.Ry({id:tc,eventId:tu,partnerId:td,externalId:C.Z_(),partner:tE.nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()}),tA=C.Ry({id:ta,lineType:C.Z_().nullish(),line:C.Rx().nullish()}),tk=C.Ry({id:th,name:C.Z_().nullish(),league:C.Z_().nullish(),record:C.Z_().nullish(),logo:C.Z_().nullish(),abbreviation:C.Z_().nullish(),al
143ias:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),providerId:C.Rx().int().nullish(),color:C.Z_().nullish()}),tP=C.Ry({id:tp,sport:C.Z_(),image:C.Z_(),resolution:C.Z_(),ordering:C.Z_(),tags:C.Z_(),series:C.Z_(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish()}),tC=C.IX(tk),tT=C.IX(tP),t_=C.Ry({marketTypes:C.IX(C.Z_()).nullish()}),tO=e7.transform(e=>2===e.outcomes.length?tt(e):null),tS=C.IX(tO).transform(e=>e.filter(e=>null!==e)),tI=C.Ry({id:P.da,ticker:C.Z_().nullish(),slug:C.Z_().nullish(),title:C.Z_().nullish(),subtitle:C.Z_().nullish(),description:C.Z_().nullish(),resolutionSource:C.Z_().nullish(),startDate:P.fa.nullish(),creationDate:P.fa.nullish(),endDate:P.fa.nullish(),image:C.Z_().nullish(),icon:C.Z_().nullish(),active:C.O7().nullish(),closed:C.O7().nullish(),archived:C.O7().nullish(),new:C.O7().nullish(),featured:C.O7().nullish(),restricted:C.O7().nullish(),liquidity:P.Da.nullish(),volume:P.Da.nullish(),openInterest:P.Da.nullish(),sortBy:C.Z_().nullish(),category:C.Z_().nullish(),subcategory:C.Z_().nullish(),isTemplate:C.O7().nullish(),templateVariables:C.Z_().nullish(),published_at:P.fa.nullish(),createdBy:C.Z_().nullish(),updatedBy:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),commentsEnabled:C.O7().nullish(),competitive:C.Rx().nullish(),volume24hr:P.Da.nullish(),volume1wk:P.Da.nullish(),volume1mo:P.Da.nullish(),volume1yr:P.Da.nullish(),featuredImage:C.Z_().nullish(),disqusThread:C.Z_().nullish(),parentEventId:C.Rx().int().nullish(),enableOrderBook:C.O7().nullish(),liquidityAmm:P.Da.nullish(),liquidityClob:P.Da.nullish(),negRisk:C.O7().nullish(),negRiskMarketID:C.Z_().nullish(),negRiskFeeBips:C.Rx().nullish(),commentCount:C.Rx().int().nullish(),imageOptimized:eZ.nullish(),iconOptimized:eZ.nullish(),featuredImageOptimized:eZ.nullish(),subEvents:C.IX(C.Z_()).nullish(),markets:tS.nullish(),series:C.IX(ty).nullish(),categories:C.IX(eW).nullish(),collections:C.IX(tb).nullish(),tags:C.IX(eY).nullish(),tag_labels:C.IX(C.Z_()).nullish(),tag_slugs:C.IX(C.Z_()).nullish(),cyom:C.O7().nullish(),closedTime:P.fa.nullish(),showAllOutcomes:C.O7().nullish(),showMarketImages:C.O7().nullish(),automaticallyResolved:C.O7().nullish(),enableNegRisk:C.O7().nullish(),automaticallyActive:C.O7().nullish(),eventDate:P.ga.nullish(),startTime:P.fa.nullish(),eventWeek:C.Rx().int().nullish(),seriesSlug:C.Z_().nullish(),score:C.Z_().nullish(),elapsed:C.Z_().nullish(),period:C.Z_().nullish(),live:C.O7().nullish(),ended:C.O7().nullish(),finishedTimestamp:P.fa.nullish(),gmpChartMode:C.Z_().nullish(),eventCreators:C.IX(tw).nullish(),negRiskAugmented:C.O7().nullish(),countryName:C.Z_().nullish(),electionType:C.Z_().nullish(),color:C.Z_().nullish(),tweetCount:C.Rx().int().nullish(),chats:C.IX(tv).nullish(),featuredOrder:C.Rx().int().nullish(),estimateValue:C.O7().nullish(),cantEstimate:C.O7().nullish(),estimatedValue:P.Ca.nullish(),cumulativeMarkets:C.O7().nullish(),templates:C.IX(tg).nullish(),spreadsMainLine:C.Rx().nullish(),totalsMainLine:C.Rx().nullish(),carouselMap:C.Z_().nullish(),pendingDeployment:C.O7().nullish(),deploying:C.O7().nullish(),deployingTimestamp:P.fa.nullish(),scheduledDeploymentTimestamp:P.fa.nullish(),gameStatus:C.Z_().nullish(),internalUsers:C.IX(eQ).nullish(),gameId:C.Rx().int().nullish(),rescheduledFromGameId:C.Rx().int().nullish(),sportsradarMatchId:C.Z_().nullish(),bestLines:C.IX(tA).nullish(),homeTeamName:C.Z_().nullish(),awayTeamName:C.Z_().nullish(),requiresTranslation:C.O7().nullish(),turnProviderId:C.Z_().nullish(),lastHighlight:C.Z_().nullish(),lastHighlightType:C.Z_().nullish(),lastHighlightAt:P.fa.nullish(),eventMetadata:C.IM(C.Z_(),C._4()).nullish(),teams:C.IX(tk).nullish(),sport:tP.nullish(),externalPartners:C.IX(tx).nullish()}).transform(function(e){return{id:e.id,ticker:e.ticker,slug:e.slug,title:e.title,subtitle:e.subtitle,description:e.description,category:e.category,subcategory:e.subcategory,image:e.image,icon:e.icon,featuredImage:e.featuredImage,createdAt:e.createdAt,updatedAt:e.updatedAt,publishedAt:e.published_at,state:{active:e.active,closed:e.closed,archived:e.archived,new:e.new,featured:e.featured,restricted:e.restricted,cyom:e.cyom,live:e.live,ended:e.ended,automaticallyActive:e.automaticallyActive,commentsEnabled:e.commentsEnabled,requiresTranslation:e.requiresTranslation},schedule:{startDate:e.startDate,creationDate:e.creationDate,endD
143ate:e.endDate,closedTime:e.closedTime,startTime:e.startTime,eventDate:e.eventDate,eventWeek:e.eventWeek,finishedAt:e.finishedTimestamp},metrics:{liquidity:e.liquidity,liquidityAmm:e.liquidityAmm,liquidityClob:e.liquidityClob,volume:e.volume,volume24hr:e.volume24hr,volume1wk:e.volume1wk,volume1mo:e.volume1mo,volume1yr:e.volume1yr,openInterest:e.openInterest,competitive:e.competitive,commentCount:e.commentCount,tweetCount:e.tweetCount},display:{sortBy:e.sortBy,showAllOutcomes:e.showAllOutcomes,showMarketImages:e.showMarketImages,gmpChartMode:e.gmpChartMode,color:e.color,featuredOrder:e.featuredOrder,countryName:e.countryName,electionType:e.electionType,imageOptimized:e.imageOptimized,iconOptimized:e.iconOptimized,featuredImageOptimized:e.featuredImageOptimized},trading:{enableOrderBook:e.enableOrderBook,negRisk:e.negRisk,negRiskMarketId:e.negRiskMarketID,negRiskFeeBips:e.negRiskFeeBips,enableNegRisk:e.enableNegRisk,negRiskAugmented:e.negRiskAugmented,cumulativeMarkets:e.cumulativeMarkets},resolution:{source:e.resolutionSource,automaticallyResolved:e.automaticallyResolved},estimation:{estimateValue:e.estimateValue,cantEstimate:e.cantEstimate,estimatedValue:e.estimatedValue},sports:{seriesSlug:e.seriesSlug,score:e.score,elapsed:e.elapsed,period:e.period,gameStatus:e.gameStatus,gameId:e.gameId,rescheduledFromGameId:e.rescheduledFromGameId,sportsradarMatchId:e.sportsradarMatchId,homeTeamName:e.homeTeamName,awayTeamName:e.awayTeamName,spreadsMainLine:e.spreadsMainLine,totalsMainLine:e.totalsMainLine,bestLines:e.bestLines??[],teams:e.teams??[],sport:e.sport,lastHighlight:e.lastHighlight,lastHighlightType:e.lastHighlightType,lastHighlightAt:e.lastHighlightAt},partners:(e.externalPartners??[]).map(e=>({id:e.id,externalId:e.externalId,partner:e.partner?{id:e.partner.id,slug:e.partner.slug,name:e.partner.name}:null,createdAt:e.createdAt,updatedAt:e.updatedAt})),metadata:e.eventMetadata??null,markets:e.markets??[],series:(e.series??[]).map(e=>({id:e.id,slug:e.slug,title:e.title,subtitle:e.subtitle,description:e.description,image:e.image,icon:e.icon,active:e.active,closed:e.closed,archived:e.archived,volume:e.volume,liquidity:e.liquidity,startDate:e.startDate})),tags:(e.tags??[]).map(e=>({id:e.id,slug:e.slug,label:e.label})),creators:(e.eventCreators??[]).map(e=>({id:e.id,name:e.creatorName,handle:e.creatorHandle,url:e.creatorUrl??e.creatorURL,image:e.creatorImage,createdAt:e.createdAt,updatedAt:e.updatedAt}))}}),tB=(C.IX(tI),C.Ry({events:C.IX(tI),next_cursor:P.ra.optional()}).transform(({events:e,next_cursor:t})=>({items:e,nextCursor:t}))),tj=C.IX(eY),tM=C.Ry({tokenId:P.za.nullish(),positionSize:P.Fa.nullish()}),tR=C.Ry({name:C.Z_().nullish(),pseudonym:C.Z_().nullish(),displayUsernamePublic:C.O7().nullish(),bio:C.Z_().nullish(),isMod:C.O7().nullish(),isCreator:C.O7().nullish(),proxyWallet:C.Z_().nullish(),baseAddress:C.Z_().nullish(),profileImage:C.Z_().nullish(),profileImageOptimized:eZ.nullish(),positions:C.IX(tM).nullish()}).transform(({proxyWallet:e,...t})=>({...t,wallet:e})),tN=((c=tN||{}).Heart="HEART",c),tU=C.Km(tN),tz=C.Ry({id:C.Z_(),commentID:C.Rx().int().nullish(),reactionType:tU.nullish(),icon:C.Z_().nullish(),userAddress:C.Z_().nullish(),createdAt:P.fa.nullish(),profile:tR.nullish()}),tD=C.Ry({id:C.Z_(),commentID:C.Rx().int().nullish(),provider:C.Z_().nullish(),providerMediaId:C.Z_().nullish(),url:C.Z_().nullish(),mediaType:C.Z_().nullish(),altText:C.Z_().nullish(),createdAt:P.fa.nullish()}),tF=C.Ry({id:P.T,body:C.Z_().nullish(),parentEntityType:P.oa.nullish(),parentEntityID:C.G0([P.da,tf]).nullish(),parentCommentID:P.T.nullish(),userAddress:C.Z_().nullish(),replyAddress:C.Z_().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),media:C.IX(tD).nullish(),profile:tR.nullish(),reactions:C.IX(tz).nullish(),reportCount:C.Rx().int().nullish(),reactionCount:C.Rx().int().nullish(),tradeAsset:C.Z_().nullish()}),tL=C.IX(tF);C.Ry({hasMore:C.O7().nullish(),totalResults:C.Rx().int().nullish()});var tH=C.Ry({id:C.Z_(),communityMod:C.O7().nullish(),creator:C.O7().nullish(),mod:C.O7().nullish()}),tG=C.Ry({id:C.Z_().nullish(),name:C.Z_().nullish(),user:C.Rx().int().nullish(),referral:C.Z_().nullish(),createdBy:C.Rx().int().nullish(),updatedBy:C.Rx().int().nullish(),createdAt:P.fa.nullish(),updatedAt:P.fa.nullish(),utmSource:C.Z_().nullish(),utmMedium:C.Z_().nullish(),utmCampaign:C.Z_().nullish(),utmContent:C.Z_().nullish(),utmTerm:C.Z_().nullish(),walletActivated:C.O7().nullish(),pseudonym:C.Z_().nullish(),displayUsern
143amePublic:C.O7().nullish(),profileImage:C.Z_().nullish(),bio:C.Z_().nullish(),proxyWallet:C.Z_().nullish(),profileImageOptimized:eZ.nullish(),isCloseOnly:C.O7().nullish(),isCertReq:C.O7().nullish(),certReqDate:P.fa.nullish(),discordUsername:C.Z_().nullish(),xUsername:C.Z_().nullish(),verifiedBadge:C.O7().nullish(),dubPartnerId:C.Z_().nullish(),termsAcceptedAt:P.fa.nullish(),viewOnlyAcknowledgedAt:P.fa.nullish(),isReferralRestricted:C.O7().nullish()}).transform(({proxyWallet:e,...t})=>({...t,wallet:e})),tq=C.Ry({createdAt:P.fa.nullish(),proxyWallet:P.W.nullish(),profileImage:C.Z_().nullish(),displayUsernamePublic:C.O7().nullish(),bio:C.Z_().nullish(),pseudonym:C.Z_().nullish(),name:C.Z_().nullish(),users:C.IX(tH).nullish(),xUsername:C.Z_().nullish(),verifiedBadge:C.O7().nullish()}).transform(({proxyWallet:e,...t})=>({...t,wallet:e})),t$=C.Ry({id:P.ya,event_count:C.Rx().int().nullish(),label:C.Z_().nullish(),slug:C.Z_().nullish()}).transform(({event_count:e,...t})=>({...t,eventCount:e})),tK=C.Ry({hasMore:C.O7().nullish(),totalResults:C.Rx().int().nullish()}),tZ=C.Ry({events:C.IX(tI).nullish(),tags:C.IX(t$).nullish(),profiles:C.IX(tG).nullish(),pagination:tK.nullish()}),tV=eY.extend({templates:C.IX(tg).nullish()}),tW=C.Ry({id:C.Z_(),tagID:C.Rx().int().nullish(),relatedTagID:C.Rx().int().nullish(),rank:C.Rx().int().nullish()}).transform(({tagID:e,relatedTagID:t,...r})=>({...r,tagId:e,relatedTagId:t})),tY=C.IX(tV),tX=C.IX(tW),tJ=C.IX(tV),tQ=ty.extend({events:C.IX(tI).nullish(),collections:C.IX(tb).nullish(),tags:C.IX(tV).nullish()}),t0=C.IX(tQ),t1=((u=t1||{})[u.EOA=0]="EOA",u[u.POLY_PROXY=1]="POLY_PROXY",u[u.GNOSIS_SAFE=2]="GNOSIS_SAFE",u[u.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",u);C.Ry({type:C.Km(t1),typeName:C.Km(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});var t2=r(20266);class t3 extends Error{static setStaticOptions(e){t3.prototype.docsOrigin=e.docsOrigin,t3.prototype.showVersion=e.showVersion,t3.prototype.version=e.version}constructor(e,t={}){let r=(()=>{if(t.cause instanceof t3){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),n=t.cause instanceof t3&&t.cause.docsPath||t.docsPath,i=t.docsOrigin??t3.prototype.docsOrigin,a=`${i}${n??""}`,o=!!(t.version??t3.prototype.showVersion),s=t.version??t3.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||n||o?["",r?`Details: ${r}`:void 0,n?`See: ${a}`:void 0,o?`Version: ${s}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=r,this.docs=a,this.docsOrigin=i,this.docsPath=n,this.shortMessage=e,this.showVersion=o,this.version=s}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function t6(e,t){if(rs(e)>t)throw new rf({givenSize:rs(e),maxSize:t})}function t5(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new rh({size:Math.ceil(i.length/2),targetSize:n,type:"Hex"});return`0x${i["right"===r?"padEnd":"padStart"](2*n,"0")}`}function t8(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}Object.defineProperty(t3,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"[email protected]"}}),t3.setStaticOptions(t3.defaultStaticOptions);let t7=new TextEncoder,t4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function t9(...e){return`0x${e.reduce((e,t)=>
143e+t.replace("0x",""),"")}`}function re(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(t6(r,t.size),ri(r,t.size)):r}function rt(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=t4[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(t6(n,t.size),ra(n,t.size)):n}function rr(e,t={}){let r;let{signed:n,size:i}=t,a=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let o="bigint"==typeof r&&n?-r-1n:0;if(r&&a>r||a<o){let t="bigint"==typeof e?"n":"";throw new rc({max:r?`${r}${t}`:void 0,min:`${o}${t}`,signed:n,size:i,value:`${e}${t}`})}let s=(n&&a<0?BigInt.asUintN(8*i,BigInt(a)):a).toString(16),l=`0x${s}`;return i?ri(l,i):l}function rn(e,t={}){return rt(t7.encode(e),t)}function ri(e,t){return t5(e,{dir:"left",size:t})}function ra(e,t){return t5(e,{dir:"right",size:t})}function ro(e,t,r,n={}){let{strict:i}=n;!function(e,t){if("number"==typeof t&&t>0&&t>rs(e)-1)throw new rp({offset:t,position:"start",size:rs(e)})}(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&function(e,t,r){if("number"==typeof t&&"number"==typeof r&&rs(e)!==r-t)throw new rp({offset:r,position:"end",size:rs(e)})}(a,t,r),a}function rs(e){return Math.ceil((e.length-2)/2)}function rl(e,t={}){let{signed:r}=t;t.size&&t6(e,t.size);let n=BigInt(e);if(!r)return n;let i=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=i>>1n?n:n-i-1n}class rc extends t3{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class ru extends t3{constructor(e){super(`Value \`${"object"==typeof e?t8(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class rd extends t3{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class rf extends t3{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class rp extends t3{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class rh extends t3{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function rm(e,t){if(rC(e)>t)throw new rB({givenSize:rC(e),maxSize:t})}let rb={zero:48,nine:57,A:65,F:70,a:97,f:102};function ry(e){return e>=rb.zero&&e<=rb.nine?e-rb.zero:e>=rb.A&&e<=rb.F?e-(rb.A-10):e>=rb.a&&e<=rb.f?e-(rb.a-10):void 0}function rg(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new rM({size:e.length,targetSize:n,type:"Bytes"});let i=new Uint8Array(n);for(let t=0;t<n;t++){let a="right"===r;i[a?t:n-t-1]=e[a?t:e.length-t-1]}return i}function rv(e,t={}){let{dir:r="left"}=t,n=0;for(let t=0;t<e.length-1&&"0"===e["left"===r?t:e.length-t-1].toString();t++)n++;return"left"===r?e.slice(n):e.slice(0,e.length-n)}let rw=new TextDecoder,rE=new TextEncoder;function rx(...e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function rA(e,t={}){let{size:r}=t,n=e;r&&(t6(e,r),n=ra(e,r));let i=n.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,o=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=ry(i.charCodeAt(t++)),n=ry(i.charCodeAt(t++));if(void 0===r||void 0===n)throw new t3(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);o[e]=r<<4|n}return o}function rk(e,t){return rA(rr(e,t))}function rP(e,t={}){let{size:r}=t,n=rE.encode(e);return"number"==typeof r?(rm(n,r),rg(n,{dir:"right",size:r})):n}function rC(e){return e.length}function rT(e,t={}){let{size:r}=t;return void 0!==r&&rm(e,r),function(e,t={}){let{signed:r,size:n}=t;return r||n?Number(rl(e,t)):Number(e)}(rt(e,t),t)}function r_(e){return rv(e,{dir:"left"})}function rO(e){try{return!function(e){if(!(e instanceof Uint8Array)&&(!e||"object"!=typeof e||!("BYTES_PER_ELEMENT"in e)||1!==e.BYTES_PER_ELEMENT||"Uint8Array"!==e.constructor.name))throw new rI(e)}(e),!0}catch{return!1}}class rS extends t3{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class rI extends t3{constructor(e){super(`Value \`${"object"==typeof e?t8(e):e}\` of type \`${typeof e}
143\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}class rB extends t3{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class rj extends t3{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}class rM extends t3{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function rR(e,t={}){let{as:r="string"==typeof e?"Hex":"Bytes"}=t,n=(0,t2.fr)(e instanceof Uint8Array?e:"string"==typeof e?rA(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===r?n:rt(n)}class rN extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let rU={checksum:new rN(8192)}.checksum,rz=/^0x[a-fA-F0-9]{40}$/;function rD(e,t={}){let{strict:r=!0}=t;if(!rz.test(e))throw new rG({address:e,cause:new rq});if(r){if(e.toLowerCase()===e)return;if(rF(e)!==e)throw new rG({address:e,cause:new r$})}}function rF(e){if(rU.has(e))return rU.get(e);rD(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=rR(rP(t),{as:"Bytes"}),n=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&n[e]&&(n[e]=n[e].toUpperCase()),(15&r[e>>1])>=8&&n[e+1]&&(n[e+1]=n[e+1].toUpperCase());let i=`0x${n.join("")}`;return rU.set(e,i),i}function rL(e,t={}){let{checksum:r=!1}=t;return(rD(e),r)?rF(e):e}function rH(e,t={}){let{strict:r=!0}=t??{};try{return rD(e,{strict:r}),!0}catch{return!1}}class rG extends t3{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class rq extends t3{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class r$ extends t3{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function rK(e){let t=rA(rL(e.from)),r=rg(rO(e.salt)?e.salt:rA(e.salt),{dir:"left",size:32}),n="bytecodeHash"in e?rO(e.bytecodeHash)?e.bytecodeHash:rA(e.bytecodeHash):rR(e.bytecode,{as:"Bytes"});return rL(ro(rR(rx(rA("0xff"),t,r,n),{as:"Hex"}),12))}function rZ(e,t){let r=e.exec(t);return r?.groups}let rV=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,rW=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,rY=/^\(.+?\).*?$/,rX=/^tuple(?<array>(\[(\d*)\])*)$/;function rJ(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(rX.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=", ");let i=rZ(rX,t.type);return r+=`)${i?.array||""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
143 indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}let rQ=/^(.*)\[([0-9]*)\]$/,r0=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,r1=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function r2(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=rs(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:o,encoded:s}=e[a];o?(r.push(rr(t+i,{size:32})),n.push(s),i+=rs(s)):r.push(s)}return t9(...r,...n)}function r3(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function r6(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(r6);let r=r3(e.type);return!!(r&&r6({...e,type:r[1]}))}let r5={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r4({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r7({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r8({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r8({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class r8 extends t3{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class r7 extends t3{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class r4 extends t3{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function r9(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new na({expectedLength:e.length,givenLength:t.length});let i=r2(function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let i=0;i<t.length;i++)n.push(function e({checksumAddress:t=!1,parameter:r,value:n}){let i=r3(r.type);if(i){let[a,o]=i;return function(t,r){let{checksumAddress:n,length:i,parameter:a}=r,o=null===i;if(!Array.isArray(t))throw new no(t);if(!o&&t.length!==i)throw new nn({expectedLength:i,givenLength:t.length,type:`${a.type}[${i}]`});let s=!1,l=[];for(let r=0;r<t.length;r++){let i=e({checksumAddress:n,parameter:a,value:t[r]});i.dynamic&&(s=!0),l.push(i)}if(o||s){let e=r2(l);if(o){let t=rr(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?t9(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:t9(...l.map(({encoded:e})=>e))}}(n,{checksumAddress:t,length:a,parameter:{...r,type:o}})}if("tuple"===r.type)return function(t,r){let{checksumAddress:n,parameter:i}=r,a=!1,o=[];for(let r=0;r<i.components.length;r++){let s=i.components[r],l=Array.isArray(t)?r:s.name,c=e({checksumAddress:n,parameter:s,value:t[l]});o.push(c),c.dynamic&&(a=!0)}return{dynamic:a,encoded:a?r2(o):t9(...o.map(({encoded:e})=>e))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(e,t){let{checksum:r=!1}=t;return rD(e,{strict:r}),{dynamic:!1,encoded:ri(e.toLowerCase())}}(n,{checksum:t});if("bool"===r.type)return function(e){if("boolean"!=typeof e)throw new t3(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ri(re(e))}}(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=r1.exec(r.type)??[];return function(e,{signed:t,size:r}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new rc({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:rr(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{type:t}){let[,r]=t.split("bytes"),n=rs(e);if(!r){let t=e;return n%32!=0&&(t=ra(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:t9(ri(rr(n,{size:32})),t)}}if(n!==Number.parseInt(r,10))throw new ni({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:ra(e)}}(n,{type:r.type});if("string"===r.type)return function(e){let t=rn(e),r=Math.ceil(rs(t)/32),n=[];for(let e=0;e<r;e++)n.push(ra(ro(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:t9(ra(rr(rs(t),{size:32})),...n)}}(n);throw new ns(r.type)}({checksumAddress:e,parameter:t[i],value:r[i]}));return n}({checksumAddress:n,parameters:e,values:t}));return 0===i.length?"0x":i}function ne(e,t){if(e.length!==t.length)throw new na({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n];
143r.push(ne.encode(i,a))}return t9(...r)}(ne||(ne={})).encode=function e(t,r,n=!1){if("address"===t)return rD(r),ri(r.toLowerCase(),n?32:0);if("string"===t)return rn(r);if("bytes"===t)return r;if("bool"===t)return ri(re(r),n?32:1);let i=t.match(r1);if(i){let[e,t,a="256"]=i,o=Number.parseInt(a,10)/8;return rr(r,{size:n?32:o,signed:"int"===t})}let a=t.match(r0);if(a){let[e,t]=a;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new ni({expectedSize:Number.parseInt(t,10),value:r});return ra(r,n?32:0)}let o=t.match(rQ);if(o&&Array.isArray(r)){let[t,n]=o,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":t9(...i)}throw new ns(t)};class nt extends t3{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${rJ(t)})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class nr extends t3{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class nn extends t3{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class ni extends t3{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${rs(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class na extends t3{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 144Expected length (parameters): ${e} 145Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class no extends t3{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class ns extends t3{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}class nl extends Error{constructor(e,t={}){let r=t.cause instanceof nl?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof nl&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class nc extends nl{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class nu extends nl{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class nd extends nl{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}let nf=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,np=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,nh=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,nm=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,nb=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,ny=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,ng=/^receive\(\) external payable$/,nv=new Set(["indexed"]),nw=new Set(["calldata","memory","storage"]);
vendor: 8,481 bytes, line 145
145class nE extends nl{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class nx extends nl{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class nA extends nl{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class nk extends nl{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class nP extends nl{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class nC extends nl{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class nT extends nl{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class n_ extends nl{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class nO extends nl{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class nS extends nl{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let nI=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function nB(e,t={}){if(nh.test(e))return function(e,t={}){let r=rZ(nh,e);if(!r)throw new nC({signature:e,type:"function"});let n=nU(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(nN(n[e],{modifiers:nw,structs:t,type:"function"}));let o=[];if(r.returns){let e=nU(r.returns),n=e.length;for(let r=0;r<n;r++)o.push(nN(e[r],{modifiers:nw,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:o}}(e,t);if(np.test(e))return function(e,t={}){let r=rZ(np,e);if(!r)throw new nC({signature:e,type:"event"});let n=nU(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(nN(n[e],{modifiers:nv,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}(e,t);if(nf.test(e))return function(e,t={}){let r=rZ(nf,e);if(!r)throw new nC({signature:e,type:"error"});let n=nU(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(nN(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if(nb.test(e))return function(e,t={}){let r=rZ(nb,e);if(!r)throw new nC({signature:e,type:"constructor"});let n=nU(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(nN(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}(e,t);if(ny.test(e))return function(e){let t=rZ(ny,e);if(!t)throw new nC({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if(ng.test(e))return{type:"receive",stateMutability:"payable"};throw new nT({signature:e})}let nj=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,nM=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,nR=/^u?int$/;function nN(e,t){var r,n;let i;let a=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:`${e}${n}`}(e,t?.type,t?.structs);if(nI.has(a))return nI.get(a);let o=rY.test(e),s=rZ(o?nM:nj,e);if(!s)throw new nE({param:e});if(s.name&&("address"===(r=s.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||rV.test(r)||rW.test(r)||nD.test(r)))throw new nx({param:e,name:s.name});let l=s.name?{name:s.name}:{},c="indexed"===s.modifier?{indexed:!0}:{},u=t?.structs??{},d={};if(o){i="tuple";let e=nU(s.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(nN(e[n],{structs:u}));d={components:t}}else if(s.type in u)i="tuple",d={components:u[s.type]};else if(nR.test(s.type))i=`${s.type}256`;else if("address payable"===s.type)i="address";else if(i=s.type,t?.type!=="struct"&&!nz(i))throw new nd({type:i});if(s.modifier){if(!t?.modifiers?.has?.(s.modifier))throw new nA({param:e,type:t?.type,modifier:s.modifier});if(nw.has(s.modifier)&&(n=i,!s.array&&"bytes"!==n&&"string"!==n&&"tuple"!==n))throw new nk({param:e,type:t?.type,modifier:s.modifier})}let f={type:`${i}${s.array??""}`,...l,...c,...d};return nI.set(a,f),f}function nU(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],o=e.slice(a+1);switch(i){case",":return 0===n?nU(o,[...t,r.trim()]):nU(o,t,`${r}${i}`,n);case"(":return nU(o,t,`${r}${i}`,n+1);case")":return nU(o,t,`${r}${i}`,n-1);default:return nU(o,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new nS({current:r,depth:n});return t.push(r.trim()),t}function nz(e){return"address"===e||"bool"===e||"function"===e||"string"===e||rV.test(e)||rW.test(e)}let nD=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,nF=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function nL(e){return"function"===e.type?`function ${e.name}
145(${rJ(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${rJ(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${rJ(e.inputs)})`:"error"===e.type?`error ${e.name}(${rJ(e.inputs)})`:"constructor"===e.type?`constructor(${rJ(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}function nH(e){let t=!0,r="",n=0,i="",a=!1;for(let o=0;o<e.length;o++){let s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t){if(0===n){if(" "===s&&["event","function","error",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}continue}if(" "===s){","!==e[o-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=s,r+=s}}if(!a)throw new t3("Unable to normalize signature.");return i}function nG(e,t,r){let n;let{args:i=[],prepare:a=!0}=r??{},o=function(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new ru(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new rd(e)}(e,{strict:r}),!0}catch{return!1}}(t,{strict:!1}),s=e.filter(e=>o?"function"===e.type||"error"===e.type?nq(e)===ro(t,0,4):"event"===e.type&&n$(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new nZ({name:t});if(1===s.length)return{...s[0],...a?{hash:n$(s[0])}:{}};for(let e of s)if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...a?{hash:n$(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return rH(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;
145if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=function e(t,r,n){for(let i in t){let a=t[i],o=r[i];if("tuple"===a.type&&"tuple"===o.type&&"components"in a&&"components"in o)return e(a.components,o.components,n[i]);let s=[a.type,o.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&rH(n[i],{strict:!1}))return s}}(e.inputs,n.inputs,i);if(t)throw new nK({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}let l=(()=>{if(n)return n;let[e,...t]=s;return{...e,overloads:t}})();if(!l)throw new nZ({name:t});return{...l,...a?{hash:n$(l)}:{}}}function nq(...e){return ro(n$((()=>{if(Array.isArray(e[0])){let[t,r]=e;return nG(t,r)}return e[0]})()),0,4)}function n$(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return nG(t,r)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:rR(rn(function(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,r]=e;return nG(t,r)}return e[0]})();return nH("string"==typeof t?t:nL(t))}(t)))}class nK extends t3{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${nH(nL(e.abiItem))}\`, and`,`\`${t.type}\` in \`${nH(nL(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class nZ extends t3{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function nV(...e){let[t,r,n={}]=(()=>{if(Array.isArray(e[0])){let[t,r,n,i]=e;return[nX(t,r),n,i]}return e})(),i=function(e,t,r={}){let{as:n="Array",checksumAddress:i=!1}=r,a="string"==typeof t?rA(t):t,o=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(r5);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}(a);if(0===rC(a)&&e.length>0)throw new nr;if(rC(a)&&32>rC(a))throw new nt({data:"string"==typeof t?t:rt(t),parameters:e,size:rC(a)});let s=0,l="Array"===n?[]:{};for(let t=0;t<e.length;++t){let r=e[t];o.setPosition(s);let[a,c]=function e(t,r,n){let{checksumAddress:i,staticPosition:a}=n,o=r3(r.type);if(o){let[n,s]=o;return function(t,r,n){let{checksumAddress:i,length:a,staticPosition:o}=n;if(!a){let n=o+rT(t.readBytes(32)),a=n+32;t.setPosition(n);let s=rT(t.readBytes(32)),l=r6(r),c=0,u=[];for(let n=0;n<s;++n){t.setPosition(a+(l?32*n:c));let[o,s]=e(t,r,{checksumAddress:i,staticPosition:a});c+=s,u.push(o)}return t.setPosition(o+32),[u,32]}if(r6(r)){let n=o+rT(t.readBytes(32)),s=[];for(let o=0;o<a;++o){t.setPosition(n+32*o);let[a]=e(t,r,{checksumAddress:i,staticPosition:n});s.push(a)}return t.setPosition(o+32),[s,32]}let s=0,l=[];for(let n=0;n<a;++n){let[n,a]=e(t,r,{checksumAddress:i,staticPosition:o+s});s+=a,l.push(n)}return[l,s]}(t,{...r,type:s},{checksumAddress:i,length:n,staticPosition:a})}if("tuple"===r.type)return function(t,r,n){let{checksumAddress:i,staticPosition:a}=n,o=0===r.components.length||r.components.some(({name:e})=>!e),s=o?[]:{},l=0;if(r6(r)){let n=a+rT(t.readBytes(32));for(let a=0;a<r.components.length;++a){let c=r.components[a];t.setPosition(n+l);let[u,d]=e(t,c,{checksumAddress:i,staticPosition:n});l+=d,s[o?a:c?.name]=u}return t.setPosition(a+32),[s,32]}for(let n=0;n<r.components.length;++n){let c=r.components[n],[u,d]=e(t,c,{checksumAddress:i,staticPosition:a});s[o?n:c?.name]=u,l+=d}return[s,l]}(t,r,{checksumAddress:i,staticPosition:a});if("address"===r.type)return function(e,t={}){let r;let{checksum:n=!1}=t;return[(r=rt(function(e,t,r,n={}){var i,a;let{strict:o}=n;i=0,a=0;let s=e.slice(-20,void 0);return o&&function(e,t,r){if("number"==typeof r&&rC(e)!==r-t)throw new rj({offset:r,position:"end",size:rC(e)})}(s,-20,void 0),s}(e.readBytes(32),0)),n?rF(r):r),32]}(t,{checksum:i});if("bool"===r.type)return[function(e,t={}){let{size:r}=t,n=e;if(void 0!==r&&(rm(n,r),n=r_(n)),n.length>1||n[0]>1)throw new rS(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=rT(e.readBytes(32));e.setPosition(r+t);let n=rT(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[rt(i),32]}return[rt(e.readBytes(Number.parseInt(i,10),32)),32]}(t,r,{staticPosition:a});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[n>48?function(e,t={}){let{size:r}=t;return void 0!==r&&rm(e,r),rl(rt(e,t),t)}(i,{signed:r}):rT(i,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=rT(e.readBytes(32));e.setPosition(t+r);let n=rT(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=function(e,t={}){let{size:r}=t,n=e;return void 0!==r&&(rm(n,r),n=rv(n,{dir:"right"})),rw.decode(n)}(r_(e.readBytes(n,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:a});throw new ns(r.type)}(o,r,{checksumAddress:i,staticPosition:0});s+=c,"Array"===n?l.push(a):l[r.name??t]=a}return l}(t.outputs,r,n);if(!i||0!==Object.keys(i).length)return i&&1===Object.keys(i).length?Array.isArray(i)?i[0]:Object.values(i)[0]:i}function nW(...e){let[t,r=[]]=(()=>
145{if(Array.isArray(e[0])){let[t,r,n]=e;return[nX(t,r,{args:n}),n]}let[t,r]=e;return[t,r]})(),{overloads:n}=t,i=n?nX([t,...n],t.name,{args:r}):t,a=nq(i),o=r.length>0?r9(i.inputs,r):void 0;return o?t9(a,o):a}function nY(e,t={}){return function(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=nB(e);else{let r=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!nm.test(r))continue;let i=rZ(nm,r);if(!i)throw new nC({signature:r,type:"struct"});let a=i.properties.split(";"),o=[],s=a.length;for(let e=0;e<s;e++){let t=a[e].trim();if(!t)continue;let r=nN(t,{type:"struct"});o.push(r)}if(!o.length)throw new n_({signature:r});t[i.name]=o}let n={},i=Object.entries(t),a=i.length;for(let e=0;e<a;e++){let[r,a]=i[e];n[r]=function e(t=[],r={},n=new Set){let i=[],a=t.length;for(let o=0;o<a;o++){let a=t[o];if(rY.test(a.type))i.push(a);else{let t=rZ(nF,a.type);if(!t?.type)throw new nP({abiParameter:a});let{array:o,type:s}=t;if(s in r){if(n.has(s))throw new nO({type:s});i.push({...a,type:`tuple${o??""}`,components:e(r[s],r,new Set([...n,s]))})}else if(nz(s))i.push(a);else throw new nu({type:s})}}return i}(a,t)}return n}(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!nm.test(n)){t=nB(n,r);break}}}if(!t)throw new nc({signature:e});return t}(e):e;return{...n,...r?{hash:n$(n)}:{}}
145}(e,t)}function nX(e,t,r){let n=nG(e,t,r);if("function"!==n.type)throw new nZ({name:t,type:"function"});return n}function nJ(e){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function nQ(e){let{data:t,primaryType:r,types:n}=e;return rR(function e(t){let{data:r,primaryType:n,types:i}=t,a=[{type:"bytes32"}],o=[function(e){let{primaryType:t,types:r}=e;return rR(rn(function(e){let{primaryType:t,types:r}=e,n="",i=function e(t,r=new Set){let{primaryType:n,types:i}=t,a=n.match(/^\w*/u),o=a?.[0];if(r.has(o)||void 0===i[o])return r;for(let t of(r.add(o),i[o]))e({primaryType:t.type,types:i},r);return r}({primaryType:t,types:r});for(let e of(i.delete(t),[t,...Array.from(i).sort()]))n+=`${e}(${(r[e]??[]).map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:t,types:r})))}({primaryType:n,types:i})];for(let t of i[n]??[]){let[n,s]=function t(r){let{types:n,name:i,type:a,value:o}=r;if(void 0!==n[a])return[{type:"bytes32"},rR(e({data:o,primaryType:a,types:n}))];if("bytes"===a){let e=o.length%2?"0":"";return[{type:"bytes32"},rR(o=`0x${e+o.slice(2)}`,{as:"Hex"})]}if("string"===a)return[{type:"bytes32"},rR(rP(o),{as:"Hex"})];if(a.lastIndexOf("]")===a.length-1){let e=a.slice(0,a.lastIndexOf("[")),r=o.map(r=>t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},rR(r9(r.map(([e])=>e),r.map(([,e])=>e)))]}return[{type:a},o]}({types:i,name:t.name,type:t.type,value:r[t.name]});a.push(n),o.push(s)}return r9(a,o)}({data:t,primaryType:r,types:n}))}class n0 extends t3{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.BytesSizeMismatchError"})}}class n1 extends t3{constructor({domain:e}){super(`Invalid domain "${t8(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidDomainError"})}}class n2 extends t3{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{metaMessages:["Check that the primary type is a key in `types`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidPrimaryTypeError"})}}class n3 extends t3{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TypedData.InvalidStructTypeError"})}}class n6 extends Error{response;request;options;constructor(e,t,r){let n=e.status||0===e.status?e.status:"",i=e.statusText??"",a=`${n} ${i}`.trim();super(`Request failed with ${a?`status code ${a}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}class n5 extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}class n8 extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new n5(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}}let n7=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),n4="function"==typeof globalThis.AbortController,n9="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,ie="function"==typeof globalThis.ReadableStream,it="function"==typeof globalThis.FormData,ir=["get","post","put","patch","head","delete"],ii={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},ia=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,io=Symbol("stop");class is{options;constructor(e){this.options=e}}let il=e=>new is(e),ic={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},iu={next:!0},id={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},ip=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,n]of e)t+=ia+new TextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length+("string"==typeof n?new TextEncoder().encode(n).length:n.size);return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0},ih=(e,t,r)=>{let n;let i=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),n){i+=n.byteLength;let e=0===t?0:i/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,i),transferredBytes:i},n)}n=e},flush(){n&&(i+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},n))}}))},im=(e,t)=>{if(!e.body)return e;if(204===e.status)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});let r=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(ih(e.body,r,t),{status:e.status,statusText:e.statusText,headers:e.headers})},ib=(e,t,r)=>{if(!e.body)return e;let n=ip(r??e.body);
145return new Request(e,{duplex:"half",body:ih(e.body,n,t)})},iy=e=>null!==e&&"object"==typeof e,ig=(...e)=>{for(let t of e)if((!iy(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return iA({},...e)},iv=(e={},t={})=>{let r=new globalThis.Headers(e),n=t instanceof globalThis.Headers;for(let[e,i]of new globalThis.Headers(t).entries())n&&"undefined"===i||void 0===i?r.delete(e):r.set(e,i);return r};function iw(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:iA(e[r]??[],t[r]??[])}let iE=(e={},t={})=>({beforeRequest:iw(e,t,"beforeRequest"),beforeRetry:iw(e,t,"beforeRetry"),afterResponse:iw(e,t,"afterResponse"),beforeError:iw(e,t,"beforeError")}),ix=(e,t)=>{let r=new URLSearchParams;for(let n of[e,t])if(void 0!==n){if(n instanceof URLSearchParams)for(let[e,t]of n.entries())r.append(e,t);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1]))}else if(iy(n))for(let[e,t]of Object.entries(n))void 0!==t&&r.append(e,String(t));else for(let[e,t]of new URLSearchParams(n).entries())r.append(e,t)}return r},iA=(...e)=>{let t,r={},n={},i={},a=[];for(let o of e)if(Array.isArray(o))Array.isArray(r)||(r=[]),r=[...r,...o];else if(iy(o)){for(let[e,n]of Object.entries(o)){if("signal"===e&&n instanceof globalThis.AbortSignal){a.push(n);continue}if("context"===e){if(null!=n&&(!iy(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");r={...r,context:null==n?{}:{...r.context,...n}};continue}if("searchParams"===e){t=null==n?void 0:void 0===t?n:ix(t,n);continue}iy(n)&&e in r&&(n=iA(r[e],n)),r={...r,[e]:n}}iy(o.hooks)&&(i=iE(i,o.hooks),r.hooks=i),iy(o.headers)&&(n=iv(n,o.headers),r.headers=n)}return void 0!==t&&(r.searchParams=t),a.length>0&&(1===a.length?r.signal=a[0]:n9?r.signal=AbortSignal.any(a):r.signal=a.at(-1)),r},ik=e=>ir.includes(e)?e.toUpperCase():e,iP={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},iC=(e={})=>{if("number"==typeof e)return{...iP,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e));return{...iP,...t}};class iT extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}async function i_(e,t,r,n){return new Promise((i,a)=>{let o=setTimeout(()=>{r&&r.abort(),a(new iT(e))},n.timeout);n.fetch(e,t).then(i).catch(a).then(()=>{clearTimeout(o)})})}async function iO(e,{signal:t}){return new Promise((r,n)=>{function i(){clearTimeout(a),n(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",i,{once:!0}));let a=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e)})}let iS=(e,t)=>{let r={};for(let n in t)Object.hasOwn(t,n)&&(n in id||n in ic||n in e&&!(n in iu)||(r[n]=t[n]));return r},iI=e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e);class iB{static create(e,t){let r=new iB(e,t),n=async()=>{if("number"==typeof r.#e.timeout&&r.#e.timeout>2147483647)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await r.#t();for(let t of r.#e.hooks.afterResponse){let n;let i=r.#r(e.clone());try{n=await t(r.request,r.#n(),i,{retryCount:r.#i})}catch(t){throw r.#a(i),r.#a(e),t}if(n instanceof is)throw r.#a(i),r.#a(e),new n8(n.options);let a=n instanceof globalThis.Response?n:e;i!==a&&r.#a(i),e!==a&&r.#a(e),e=a}if(r.#r(e),!e.ok&&("function"==typeof r.#e.throwHttpErrors?r.#e.throwHttpErrors(e.status):r.#e.throwHttpErrors)){let t=new n6(e,r.request,r.#n());for(let e of r.#e.hooks.beforeError)t=await e(t,{retryCount:r.#i});throw t}if(r.#e.onDownloadProgress){if("function"!=typeof r.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!ie)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let t=e.clone();return r.#a(e),im(t,r.#e.onDownloadProgress)}return e},i=r.#o(n).finally(()=>{let e=r.#s;r.#l(e?.body??void 0),r.#l(r.request.body??void 0)});for(let[e,n]of Object.entries(ii))("bytes"!==e||"function"==typeof globalThis.Response?.prototype?.bytes)&&(i[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||n);let a=await i;if("json"===e){if(204===a.status)return"";let e=await a.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return a[e]()});return i}static #c(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#u;#i=0;#d;#e;#s;#f;#p;constructor(e,t={}){if(this.#d=e,this.#e={...t,headers:iv(this.#d.headers,t.headers),hooks:iE({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:ik(t.method??this.#d.method??"GET"),prefixUrl:String(t.prefixUrl||""),retry:iC(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#d&&!(this.#d instanceof URL||this.#d instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");
145if(this.#e.prefixUrl&&"string"==typeof this.#d){if(this.#d.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#d=this.#e.prefixUrl+this.#d}n4&&n9&&(this.#f=this.#e.signal??this.#d.signal,this.#u=new globalThis.AbortController,this.#e.signal=this.#f?AbortSignal.any([this.#f,this.#u.signal]):this.#u.signal),n7&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));let r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#d instanceof globalThis.Request&&(it&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!r&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#d,this.#e),iI(this.#e.searchParams)){let e="string"==typeof this.#e.searchParams?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(iB.#c(this.#e.searchParams)).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(t,this.#e)}if(this.#e.onUploadProgress){if("function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!n7)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#h(this.request,this.#e.body??void 0)}}#m(){let e=this.#e.retry.delay(this.#i),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit??Number.POSITIVE_INFINITY,t)}async #b(e){if(this.#i++,this.#i>this.#e.retry.limit)throw e;let t=e instanceof Error?e:new n5(e);if(t instanceof n8)return t.customDelay??this.#m();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let r=await this.#e.retry.shouldRetry({error:t,retryCount:this.#i});if(!1===r)throw e;if(!0===r)return this.#m()}if((e instanceof iT||e?.name===iT.name)&&!this.#e.retry.retryOnTimeout)throw e;if(e instanceof n6||e?.name===n6.name){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let r=this.#e.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#m()}#r(e){return this.#e.parseJson&&(e.json=async()=>this.#e.parseJson(await e.text())),e}#l(e){e&&e.cancel().catch(()=>void 0)}#a(e){this.#l(e.body??void 0)}async #o(e){try{return await e()}catch(r){let t=Math.min(await this.#b(r),2147483647);if(this.#i<1)throw r;if(await iO(t,this.#f?{signal:this.#f}:{}),r instanceof n8&&r.customRequest){let e=this.#e.signal?new globalThis.Request(r.customRequest,{signal:this.#e.signal}):new globalThis.Request(r.customRequest);this.#y(e)}for(let e of this.#e.hooks.beforeRetry){let t=await e({request:this.request,options:this.#n(),error:r,retryCount:this.#i});if(t instanceof globalThis.Request){this.#y(t);break}if(t instanceof globalThis.Response)return t;if(t===io)return}return this.#o(e)}}async #t(){for(let e of(this.#u?.signal.aborted&&(this.#u=new globalThis.AbortController,this.#e.signal=this.#f?AbortSignal.any([this.#f,this.#u.signal]):this.#u.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal})),this.#e.hooks.beforeRequest)){let t=await e(this.request,this.#n(),{retryCount:this.#i});if(t instanceof Response)return t;if(t instanceof globalThis.Request){this.#y(t);break}}let e=iS(this.request,this.#e);return(this.#s=this.request,this.request=this.#s.clone(),!1===this.#e.timeout)?this.#e.fetch(this.#s,e):i_(this.#s,e,this.#u,this.#e)}#n(){if(!this.#p){let{hooks:e,...t}=this.#e;this.#p=Object.freeze(t)}return this.#p}#y(e){this.#p=void 0,this.request=this.#h(e)}#h(e,t){return this.#e.onUploadProgress&&e.body?ib(e,this.#e.onUploadProgress,t??this.#e.body??void 0):e}}let ij=e=>{let t=(t,r)=>iB.create(t,ig(e,r));for(let r of ir)t[r]=(t,n)=>iB.create(t,ig(e,n,{method:r}));return t.create=e=>ij(ig(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),ij(ig(e,t))),t.stop=io,t.retry=il,t},iM=ij();var iR=C.Z_(),iN=C.Z_(),iU=((d=iU||{}).TRADE="TRADE",d.SPLIT="SPLIT",d.MERGE="MERGE",d.REDEEM="REDEEM",d.REWARD="REWARD",d.CONVERSION="CONVERSION",d.MAKER_REBATE="MAKER_REBATE",d.REFERRAL_REWARD="REFERRAL_REWARD",d.YIELD="YIELD",d),iz=C.Km(iU),iD=C.Km(["BUY","SELL"]),iF=C.Km(["DAY","WEEK","MONTH","ALL"]),iL=C.Km(["OVERALL","POLITICS","SPORTS","CRYPTO","CULTURE","MENTIONS","WEATHER","ECONOMICS","TECH","FINANCE"]),iH=C.Km(["PNL","VOL"]),iG=C.dj(e=>""===e?void 0:e,C.Z_().optional()),iq=C.Ry({proxyWallet:iR.nullish(),side:iD.nullish(),asset:P.za.nullish(),conditionId:P.U.nullish(),size:P.Da.nullish(),price:P.Da.nullish(),timestamp:P.Y.nullish(),title:C.Z_().nullish(),slug:C.Z_().nullish(),icon:C.Z_().nullish(),eventSlug:C.Z_().nullish(),outcome:C.Z_().nullish(),outcomeIndex:C.Rx().int().nullish(),name:C.Z_().nullish(),pseudonym:C.Z_().nullish(),bio:C.Z_().nullish(),profileImage:C.Z_().nullish(),profileImageOptimized:C.Z_().nullish(),transactionHash:C.Z_().nullish()}).transform(({asset:e,proxyWallet:t,...r})=>({...r,wallet:t,tokenId:e})),i$=C.Ry({proxyWallet:iR.nullish(),timestamp:P.Y.nullish(),conditionId:C.dj(e=>""===e?void 0:e,P.U.optional()),type:iz,size:P.Da.nullish(),usdcSize:P.Da.nullish(),transactionHash:P.Ba.nullish(),price:P.Da.nullish(),asset:C.dj(e=>""===e?void 0:e,P.za.optional()),side:C.dj(e=>""===e?void 0:e,iD.nullish()),outcomeIndex:C.dj(e=>999===e?void 0:e,C.Rx().int().optional()),title:iG,slug:iG,icon:iG,eventSlug:iG,outcome:iG,name:iG,pseudonym:iG,bio:iG,profileImage:iG,profileImageOptimized:iG}).transform(function(e){let t={wallet:iY(e.proxyWallet,"proxyWallet"),timestamp:iY(e.timestamp,"timestamp"),transactionHash:iY(e.transactionHash,"transactionHash"),name:e.name??null,pseudonym:e.pseudonym??null,bio:e.bio??null,profileImage:e.profileImage??null,profileImageOptimized:e.profileImageOptimized??null};switch(e.type){case"TRADE":return{...t,type:e.type,conditionId:iY(e.conditionId,"conditionId"),tokenId:iY(e.asset,"asset"),side:iY(e.side,"side"),shares:iY(e.size,"size"),amount:iW(e),price:iY(e.price,"price"),outcome:iY(e.outcome,"outcome"),outcomeIndex:iY(e.outcomeIndex,"outcomeIndex"),title:iY(e.title,"title"),slug:iY(e.slug,"slug"),icon:iY(e.icon,"icon"),eventSlug:iY(e.eventSlug,"eventSlug")};case"SPLIT":case"MERGE":case"REDEEM":case"CONVERSION":return{...t,type:e.type,conditionId:iY(e.conditionId,"conditionId"),amount:iW(e),title:iY(e.title,"title"),slug:iY(e.slug,"slug"),icon:iY(e.icon,"icon"),eventSlug:iY(e.eventSlug,"eventSlug")};case"REWARD":case"MAKER_REBATE":case"REFERRAL_REWARD":case"YIELD":return{...t,type:e.type,amount:iW(e)}}}),iK=C.Ry({user:iR.nullish(),traded:C.Rx().int().nullish()}),iZ=C.IX(iq),iV=C.IX(i$);function iW(e){return iY(e.usdcSize??e.size,"usdcSize")}function iY(e,t){if(null==e)throw TypeError(`Expected activity.${t} to be present`);return e}var iX=C.Ry({proxyWallet:iR.nullish(),bio:C.Z_().nullish(),asset:P.za.nullish(),pseudonym:C.Z_().nullish(),amount:P.Da.nullish(),displayUsern
145amePublic:C.O7().nullish(),outcomeIndex:C.Rx().int().nullish(),name:C.Z_().nullish(),profileImage:C.Z_().nullish(),profileImageOptimized:C.Z_().nullish()}).transform(({asset:e,proxyWallet:t,...r})=>({...r,wallet:t,tokenId:e})),iJ=C.Ry({token:C.Z_().nullish(),holders:C.IX(iX).nullish()}),iQ=C.Ry({market:iN.nullish(),value:P.Da.nullish()}),i0=C.Ry({market:iN.nullish(),value:P.Da.nullish()}),i1=C.Ry({total:P.Da.nullish(),markets:C.IX(i0).nullish()}),i2=C.IX(iJ),i3=C.IX(iQ),i6=C.IX(i1),i5=C.Ry({rank:C.Z_().nullish(),builder:C.Z_().nullish(),volume:P.Da.nullish(),activeUsers:C.Rx().int().nullish(),verified:C.O7().nullish(),builderLogo:C.Z_().nullish()}),i8=C.Ry({dt:P.fa.nullish(),builder:C.Z_().nullish(),builderLogo:C.Z_().nullish(),verified:C.O7().nullish(),volume:P.Da.nullish(),activeUsers:C.Rx().int().nullish(),rank:C.Z_().nullish()}).transform(({dt:e,...t})=>({...t,bucketAt:e})),i7=C.Ry({rank:C.Z_().nullish(),proxyWallet:iR.nullish(),userName:C.Z_().nullish(),vol:P.Da.nullish(),pnl:P.Da.nullish(),profileImage:C.Z_().nullish(),xUsername:C.Z_().nullish(),verifiedBadge:C.O7().nullish()}).transform(({proxyWallet:e,...t})=>({...t,wallet:e})),i4=C.IX(i5),i9=C.IX(i8),ae=C.IX(i7),at=((f=at||{}).Open="OPEN",f.Partial="PARTIAL",f.ResolvedWin="RESOLVED_WIN",f.ResolvedLoss="RESOLVED_LOSS",f),ar=C.Km(at),an=C.Ry({proxyWallet:iR.nullish(),asset:P.za.nullish(),conditionId:P.U,size:P.Da.nullish(),avgPrice:P.Da.nullish(),initialValue:P.Da.nullish(),currentValue:P.Da.nullish(),cashPnl:P.Da.nullish(),percentPnl:C.Rx().nullish(),totalBought:P.Da.nullish(),realizedPnl:P.Da.nullish(),percentRealizedPnl:C.Rx().nullish(),curPrice:P.Da.nullish(),redeemable:C.O7().nullish(),mergeable:C.O7().nullish(),title:C.Z_().nullish(),slug:C.Z_().nullish(),icon:C.Z_().nullish(),eventId:C.Z_().nullish(),eventSlug:C.Z_().nullish(),outcome:C.Z_().nullish(),outcomeIndex:C.Rx().int().nullish(),oppositeOutcome:C.Z_().nullish(),oppositeAsset:P.za.nullish(),endDate:P.ga.nullish(),negativeRisk:C.O7().nullish()}).transform(({asset:e,oppositeAsset:t,proxyWallet:r,...n})=>({...n,wallet:r,tokenId:e,oppositeTokenId:t})),ai=C.Ry({proxyWallet:iR.nullish(),asset:P.za.nullish(),conditionId:P.U.nullish(),avgPrice:P.Da.nullish(),totalBought:P.Da.nullish(),realizedPnl:P.Da.nullish(),curPrice:P.Da.nullish(),timestamp:P.Y.nullish(),title:C.Z_().nullish(),slug:C.Z_().nullish(),icon:C.Z_().nullish(),eventSlug:C.Z_().nullish(),outcome:C.Z_().nullish(),outcomeIndex:C.Rx().int().nullish(),oppositeOutcome:C.Z_().nullish(),oppositeAsset:P.za.nullish(),endDate:P.ha.nullish()}).transform(({asset:e,oppositeAsset:t,proxyWallet:r,...n})=>({...n,wallet:r,tokenId:e,oppositeTokenId:t})),aa=C.Ry({user:iR.nullish(),value:P.Da.nullish()}),ao=C.Ry({proxyWallet:iR.nullish(),name:C.Z_().nullish(),profileImage:C.Z_().nullish(),verified:C.O7().nullish(),asset:P.za.nullish(),conditionId:P.U.nullish(),avgPrice:P.Da.nullish(),size:P.Da.nullish(),currPrice:P.Da.nullish(),currentValue:P.Da.nullish(),cashPnl:P.Da.nullish(),totalBought:P.Da.nullish(),realizedPnl:P.Da.nullish(),totalPnl:P.Da.nullish(),outcome:C.Z_().nullish(),outcomeIndex:C.Rx().int().nullish()}).transform(({asset:e,proxyWallet:t,...r})=>({...r,wallet:t,tokenId:e})),as=C.Ry({token:C.Z_().nullish(),positions:C.IX(ao).nullish()}),al=C.Ry({event_id:C.Z_().nullish(),event_slug:C.Z_().nullish(),event_title:C.Z_().nullish(),event_image:C.Z_().nullish()}).transform(({event_id:e,event_slug:t,event_title:r,event_image:n})=>({eventId:e,eventSlug:t,eventTitle:r,eventImage:n})),ac=C.Ry({market_id:C.Z_().nullish(),slug:C.Z_().nullish(),title:C.Z_().nullish(),outcome:C.Z_().nullish(),image_url:C.Z_().nullish(),icon_url:C.Z_().nullish(),category:C.Z_().nullish(),subcategory:C.Z_().nullish(),tags:C.IX(C.Z_()).nullish(),end_date:P.fa.nullish(),event:al.nullish()}).transform(({market_id:e,image_url:t,icon_url:r,end_date:n,...i})=>({...i,marketId:e,imageUrl:t,iconUrl:r,endDate:n})),au=C.Ry({leg_index:C.Rx().int(),leg_position_id:P.sa,leg_condition_id:P.U,leg_outcome_index:C.Rx().int(),leg_outcome_label:C.Z_().nullish(),leg_status:ar,leg_resolved_at:P.fa.nullish(),leg_current_price:P.Da.nullish(),market:ac.nullish()}).transform(({leg_index:e,leg_position_id:t,leg_condition_id:r,leg_outcome_index:n,leg_outcome_label:i,leg_status:a,leg_resolved_at:o,leg_current_price:s,...l})=>({...l,legIndex:e,legPositionId:t,legConditionId:r,legOutcomeIndex:n,legOutcomeLabel:i,legStatus:a,legResolvedAt:o,legCurrentPrice:s}
145)),ad=C.Ry({combo_condition_id:P.U,combo_position_id:P.sa,module_id:C.Rx().int(),user_address:iR,shares_balance:P.Da,entry_avg_price_usdc:P.Da.nullish(),entry_cost_usdc:P.Da.nullish(),status:ar,first_entry_at:P.fa,resolved_at:P.fa.nullish(),legs_total:C.Rx().int(),legs_resolved:C.Rx().int(),legs_pending:C.Rx().int(),legs:C.IX(au)}).transform(({combo_condition_id:e,combo_position_id:t,module_id:r,user_address:n,shares_balance:i,entry_avg_price_usdc:a,entry_cost_usdc:o,first_entry_at:s,resolved_at:l,legs_total:c,legs_resolved:u,legs_pending:d,...f})=>({...f,conditionId:e,positionId:t,moduleId:r,userAddress:n,shares:i,entryAvgPriceUsdc:a,entryCostUsdc:o,firstEntryAt:s,resolvedAt:l,legsTotal:c,legsResolved:u,legsPending:d})),af=C.Ry({combos:C.IX(ad),pagination:C.Ry({limit:C.Rx().int(),offset:C.Rx().int(),has_more:C.O7(),next_cursor:P.ra.nullish()})}).transform(({pagination:e,...t})=>({...t,pagination:{limit:e.limit,offset:e.offset,hasMore:e.has_more,nextCursor:e.next_cursor}})),ap=C.IX(an),ah=C.IX(ai),am=C.IX(aa),ab=C.IX(as),ay=((p=ay||{}).SAFE="SAFE",p.PROXY="PROXY",p.SAFE_CREATE="SAFE-CREATE",p.WALLET="WALLET",p.WALLET_CREATE="WALLET-CREATE",p),ag=(C.Km(ay),C.Km(["PROXY","SAFE","SAFE-CREATE"])),av=((h=av||{}).STATE_NEW="STATE_NEW",h.STATE_EXECUTED="STATE_EXECUTED",h.STATE_MINED="STATE_MINED",h.STATE_CONFIRMED="STATE_CONFIRMED",h.STATE_INVALID="STATE_INVALID",h.STATE_FAILED="STATE_FAILED",h),aw=C.Km(av),aE=C.Ry({baseGas:C.Z_().optional(),gasLimit:C.Z_().optional(),gasPrice:C.Z_().optional(),gasToken:P.W.optional(),operation:C.Z_().optional(),payment:C.Z_().optional(),paymentReceiver:P.W.optional(),paymentToken:P.W.optional(),refundReceiver:P.W.optional(),relay:P.W.optional(),relayHub:P.W.optional(),relayerFee:C.Z_().optional(),safeTxnGas:C.Z_().optional()}),ax=C.Ry({address:P.W,nonce:C.Z_().min(1)}),aA=C.Ry({data:C.Z_().min(1),from:P.W,metadata:C.Z_().optional(),nonce:C.Z_().min(1).optional(),proxyWallet:P.W,signature:C.Z_().min(1),signatureParams:aE,to:P.W,type:ag,value:C.Z_().optional()}),ak=C.Ry({data:C.Z_().min(1),target:P.W,value:C.Z_().min(1)}),aP=C.Ry({calls:C.IX(ak).min(1),deadline:C.Z_().min(1),depositWallet:P.W}),aC=C.Ry({depositWalletParams:aP,from:P.W,metadata:C.Z_().optional(),nonce:C.Z_().min(1),signature:C.Z_().min(1),to:P.W,type:C.i0("WALLET")}),aT=C.Ry({from:P.W,metadata:C.Z_().optional(),to:P.W,type:C.i0("WALLET-CREATE")}),a_=C.G0([aA,aC,aT]),aO=C.Ry({state:aw,transactionHash:P.Ba.nullish().transform(e=>e??null),transactionID:P.Aa}).transform(({transactionHash:e,transactionID:t,...r})=>({...r,transactionHash:e??null,transactionId:t})),aS=C.Ry({deployed:C.O7()}),aI=C.Ry({error_msg:C.Z_().nullish(),state:aw,transaction_hash:C.G0([C.i0(""),P.Ba]).transform(e=>""===e?null:e),transaction_id:P.Aa}).transform(({error_msg:e,transaction_hash:t,transaction_id:r,...n})=>({...n,errorMsg:e??null,transactionHash:t??null,transactionId:r}));function aB(){let e={};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}function aj(e){return e.reason}class aM{readNext;haveNext;ended;nextResult;error;constructor(){this.ended=!1,this.readNext=aB(),this.haveNext=aB()}[Symbol.asyncIterator](){return this}async next(){if(null==this.nextResult&&await this.haveNext.promise,null==this.nextResult)throw Error("HaveNext promise resolved but nextResult was undefined");let e=this.nextResult;return this.nextResult=void 0,this.readNext.resolve(),this.readNext=aB(),e}async throw(e){return this.ended=!0,this.error=e,null!=e&&(this.haveNext.promise.catch(()=>{}),this.haveNext.reject(e)),{done:!0,value:void 0}}async return(){let e={done:!0,value:void 0};return this.ended=!0,this.nextResult=e,this.haveNext.resolve(),e}async push(e,t){await this._push(e,t)}async end(e,t){null!=e?await this.throw(e):await this._push(void 0,t)}async _push(e,t){if(null!=e&&this.ended)throw this.error??Error("Cannot push value onto an ended pushable");for(;null!=this.nextResult;)await this.readNext.promise;null!=e?this.nextResult={done:!1,value:e}:(this.ended=!0,this.nextResult={done:!0,value:void 0}),this.haveNext.resolve(),this.haveNext=aB(),await function(e,t,r){let n;if(null==t||null==e)return e;let i=r?.translateError??aj;return t.aborted?(e.catch(()=>{}),Promise.reject(i(t))):Promise.race([e,new Promise((e,r)=>{n=()=>{r(i(t))},t.addEventListener("abort",n)})]).finally(()=>{null!=n&&t.removeEventListener("abort",n)})}(this.readNext.promise,t?.signal,t)}}async function aR(e,t,r){try{await Promise.all(e.map(async e=>{for await(let n of e)await t.push(n,{signal:r}),r.throwIfAborted()})),await t.end(void 0,{signal:r})}catch(e){await t.end(e,{signal:r}).catch(()=>{})}}async function*aN(e){let t=new AbortController,r=new aM;aR(e,r,t.signal).catch(()=>{});try{yield*r}finally{t.abort()}}var aU=function(...e){let t=[];for(let r of e)null!=r[Symbol.asyncIterator]||t.push(r);return t.length===e.length?function*(e){for(let t of e)yield*t}(t):aN(e)};function az(e,t){let r=t.safeParse(e);if(r.success)return r.data;throw k.a.fromZodError(r.error)}var aD=C.Rx().int().positive(),aF=C.Ry({offset:C.Rx().int().min(0),pageSize:aD});function aL(e,t,r=[]){return function n(i=t){return{firstPage:()=>(0,O.Wg)(e(i)),from:e=>void 0===e?function e(){return{firstPage:async()=>({items:r,hasMore:!1}),from:()=>e(),async *[Symbol.asyncIterator](){}}}():n(e),async *[Symbol.asyncIterator](){let t=i;for(;;){let r=await (0,O.Wg)(e(t));if(yield r,!r.hasMore)return;t=r.nextCursor}}}}()}function aH(e){return(0,P.z)(btoa(JSON.stringify(aF.parse(e))))}function aG(e,t){if(void 0===e)return{offset:0,pageSize:t};try{return aF.parse(JSON.parse(atob(e)))}catch(e){throw new k.a("Invalid pagination cursor",{cause:e})}}
145function aq(e){return function(t){return eK.CX.fromPromise(t.json(),()=>new k.b(`Received non-JSON response from ${t.url}`)).andThen(r=>{var n;let i;return n=t.url,(i=e.safeParse(r)).success?(0,eK.ok)(i.data):(0,eK.cn)(k.b.fromZodError(i.error,{endpoint:n}))})}}function a$(e){return eK.CX.fromPromise(e.blob(),()=>new k.b(`Received unreadable binary response from ${e.url}`))}var aK=class{#g;constructor({url:e}){this.#g=e}async ethCall(e){let t=await this.#v({jsonrpc:"2.0",id:1,method:"eth_call",params:[{to:e.to,data:e.data},"latest"]});if("error"in t)throw new k.d(`JSON-RPC eth_call failed: ${t.error.message}`,{cause:t.error,status:200});if("string"!=typeof t.result||!aY(t.result))throw new k.b("Expected JSON-RPC eth_call result to be a hex string");return t.result}async ethCallBatch(e){if(0===e.length)return[];let t=await this.#w(e.map((e,t)=>({jsonrpc:"2.0",id:t+1,method:"eth_call",params:[{to:e.to,data:e.data},"latest"]}))),r=new Map;for(let e of t){if("error"in e&&null===e.id)throw new k.d(`JSON-RPC eth_call failed: ${e.error.message}`,{cause:e.error,status:200});null!==e.id&&r.set(e.id,e)}return e.map((e,t)=>{let n=r.get(t+1);if(void 0===n)throw new k.b("Expected JSON-RPC batch response for every request");if("error"in n)throw new k.d(`JSON-RPC eth_call failed: ${n.error.message}`,{cause:n.error,status:200});return function(e){if("string"!=typeof e||!aY(e))throw new k.b("Expected JSON-RPC eth_call result to be a hex string");return e}(n.result)})}async #v(e){let t,r;try{t=await iM.post(this.#g,{json:e,throwHttpErrors:!1})}catch(e){throw k.c.fromError(e)}if(!t.ok)throw new k.d(`JSON-RPC request to ${this.#g} failed with status ${t.status}`,{status:t.status});try{r=await t.json()}catch(e){throw new k.b("Expected JSON-RPC response body to be JSON",{cause:e})}if(!aZ(r))throw new k.b("Unexpected JSON-RPC response shape");return r}async #w(e){let t,r;try{t=await iM.post(this.#g,{json:e,throwHttpErrors:!1})}catch(e){throw k.c.fromError(e)}if(!t.ok)throw new k.d(`JSON-RPC request to ${this.#g} failed with status ${t.status}`,{status:t.status});try{r=await t.json()}catch(e){throw new k.b("Expected JSON-RPC response body to be JSON",{cause:e})}if(!Array.isArray(r)||!r.every(e=>aZ(e)))throw new k.b("Unexpected JSON-RPC response shape");return r}};function aZ(e){return!!aW(e)&&"2.0"===e.jsonrpc&&("error"in e?aV(e.error):"result"in e)}function aV(e){return aW(e)&&"number"==typeof e.code&&"string"==typeof e.message}function aW(e){return"object"==typeof e&&null!==e}function aY(e){return/^0x[a-fA-F0-9]*$/.test(e)}function aX(e){switch(e){case t1.EOA:return T.EOA;case t1.POLY_PROXY:return T.POLY_PROXY;case t1.GNOSIS_SAFE:return T.POLY_GNOSIS_SAFE;case t1.DEPOSIT_WALLET:return T.POLY_1271}}function aJ(e){let t=aX(e.walletType);return{maker:e.wallet,signatureType:t,signer:t===T.POLY_1271?e.wallet:e.signer}}function aQ(e,t){var r;let n,i=(0,O.JS)(`0x${e.slice(2).padStart(64,"0")}`),a=r9([{type:"address"},{type:"bytes32"}],[t.depositWalletFactory,i]);return(0,O.ng)(rK({bytecodeHash:(r=t.depositWalletImplementation,n=BigInt((a.length-2)/2),(0,O.JS)(rR(rx(rk(0x61003d3d8160233d3973n+(n<<56n),{size:10}),rA(r),rA("0x6009"),rA("0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076"),rA("0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3"),rA(a)),{as:"Hex"}))),from:t.depositWalletFactory,salt:rR(a)}))}function a0(e,t){var r;let n,i=(0,O.JS)(`0x${e.slice(2).padStart(64,"0")}`),a=r9([{type:"address"},{type:"bytes32"}],[t.depositWalletFactory,i]);return(0,O.ng)(rK({bytecodeHash:(r=t.depositWalletBeacon,n=BigInt((a.length-2)/2),(0,O.JS)(rR(rx(rk(0x6100523d8160233d3973n+(n<<56n),{size:10}),rA(r),rA("0x60195155f3363d3d373d3d363d602036600436635c60da"),rA("0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c"),rA("0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3"),rA(a)),{as:"Hex"}))),from:t.depositWalletFactory,salt:rR(a)}))}async function a1(e,t){try{var r;return(r=await e.ethCall({to:t,data:"0x49493a4d"})).length<66?O.r_:(0,O.ng)(`0x${r.slice(-40)}`)}catch(e){if(function(e){if(!(e instanceof k.d)||!aV(e.cause))return!1;let t=[e.cause.message,function(e){if(void 0===e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return""}}(e.cause.data)].join(" ").toLowerCase();return(3===e.cause.code||-32e3===e.cause.code||-32003===e.cause.code||-32015===e.cause.code||-32603===e.cause.code)&&(t.includes("execution reverted")||t.includes("revert")||t.includes("invalid opcode"))}(e))return O.r_;throw e}}async function a2(e,t){let r=await a1(e,t);return!(0,O.my)(r,O.r_)}
145async function a3(e,t,r){return await a2(e,r.depositWalletFactory)?a0(t,r):aQ(t,r)}function a6(e,t){if("format"in t)return function(e,t){let r=new URLSearchParams;for(let[n,i]of Object.entries(e)){if(void 0===i)continue;let e=t[n]??n.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`);if(a7(i)){for(let t of i)r.append(e,a4(t));continue}r.append(e,a4(i))}return r}(e,t.exceptions);let r=new URLSearchParams;for(let[n,i]of Object.entries(t)){let t=e[n];if(void 0!==t){if(a7(t)){for(let e of t)r.append(i,a4(e));continue}r.append(i,a4(t))}}return r}function a5(e={}){return{format:"snake_case",exceptions:e}}function a8(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0!==n){if(Array.isArray(n)){t.append(r,n.map(a4).join(","));continue}t.append(r,a4(n))}return t}function a7(e){return Array.isArray(e)}function a4(e){return String(e)}async function a9(e){return(await (0,O.Wg)(e.secureClob.get("/auth/ban-status/closed-only").andThen(aq(I)))).closedOnly}(0,k.k)(k.e,k.d,k.j,k.c,k.b);var oe=C.Ry({tokenId:C.Z_().optional(),cursor:P.ra.optional(),id:C.Z_().optional(),market:C.Z_().optional()}).default({});function ot(e,t){let{cursor:r,...n}=az(t,oe);return aL(t=>e.secureClob.get("/data/orders",{params:a6({...n,nextCursor:t},a5({tokenId:"asset_id"}))}).andThen(aq(j)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var or=C.Ry({orderId:C.Z_()});async function on(e,t){let r=az(t,or);return(0,O.Wg)(e.secureClob.get(`/data/order/${r.orderId}`).andThen(aq(B)))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var oi={after:C.Z_().optional(),tokenId:C.Z_().optional(),before:C.Z_().optional(),cursor:P.ra.optional(),id:C.Z_().optional(),makerAddress:C.Z_().optional(),market:C.Z_().optional()},oa=C.Ry(oi).default({});function oo(e,t){let{cursor:r,...n}=az(t,oa);return aL(t=>e.secureClob.get("/data/trades",{params:a6({...n,nextCursor:t},a5({tokenId:"asset_id"}))}).andThen(aq(R)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.j,k.c,k.b);var os=C.Ry({ids:C.IX(C.Z_()).min(1)});async function ol(e){let t=aX(e.account.walletType);return(0,O.Wg)(e.secureClob.get("/notifications",{params:a6({signatureType:t},a5())}).andThen(aq(z)))}async function oc(e,t){let r=az(t,os),n=aX(e.account.walletType),i=a6({ids:r.ids.join(","),signatureType:n},a5());await (0,O.Wg)(e.secureClob.del("/notifications",{params:i}))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var ou=C.Ry({assetType:F,tokenId:C.Z_().optional()});async function od(e,t){let r=az(t,ou),n=aX(e.account.walletType);return(0,O.Wg)(e.secureClob.get("/balance-allowance",{params:a6({...r,signatureType:n},a5())}).andThen(aq(L)))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var of=C.Ry({assetType:F,tokenId:C.Z_().optional()});async function op(e,t){let r=az(t,of),n=aX(e.account.walletType),i=a6({...r,signatureType:n},a5());return await (0,O.Wg)(e.secureClob.get("/balance-allowance/update",{params:i})),od(e,r)}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var oh=C.Ry({orderId:C.Z_()});async function om(e,t){let r=az(t,oh);return(await (0,O.Wg)(e.secureClob.get("/order-scoring",{params:a6(r,a5())}).andThen(aq(H)))).scoring}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var ob=C.Ry({orderIds:C.IX(C.Z_())});async function oy(e,t){let r=az(t,ob).orderIds;return(0,O.Wg)(e.secureClob.post("/orders-scoring",{json:r}).andThen(aq(G)))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var og=C.Ry({cursor:P.ra.optional(),date:C.Z_()});function ov(e,t){let{cursor:r,...n}=az(t,og),i=aX(e.account.walletType);return aL(t=>e.secureClob.get("/rewards/user",{params:a6({...n,nextCursor:t,signatureType:i},a5())}).andThen(aq(q)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}async function ow(e,t){let r=az(t,og),n=aX(e.account.walletType);return(0,O.Wg)(e.secureClob.get("/rewards/user/total",{params:a6({...r,signatureType:n},a5())}).andThen(aq(K)))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);var oE=C.Ry({cursor:P.ra.optional(),date:C.Z_(),noCompetition:C.O7().optional(),orderBy:C.Z_().optional(),pageSize:aD.max(500).default(100),position:C.Z_().optional()});function ox(e,t){let{cursor:r,...n}=az(t,oE),i=aX(e.account.walletType);return aL(t=>e.secureClob.get("/rewards/user/markets",{params:a6({...n,nextCursor:t,signatureType:i},a5())}).andThen(aq(X)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}async function oA(e){let t=aX(e.account.walletType);return(0,O.Wg)(e.secureClob.get("/rewards/user/percentages",{params:a6({signatureType:t},a5())}).andThen(aq(Z)))}(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.j,k.c,k.b);var ok=C.Km(["TIMESTAMP","TOKENS","CASH"]),oP=C.Km(["ASC","DESC"]),oC=C.Km(["CASH","TOKENS"]),oT
145=C.Ry({cursor:P.ra.optional(),pageSize:aD.default(20),takerOnly:C.O7().optional(),filterType:oC.optional(),filterAmount:C.Rx().optional(),market:C.IX(C.Z_()).optional(),eventId:C.IX(C.Rx().int()).optional(),user:C.Z_().optional(),side:iD.optional()}).refine(e=>!(e.market&&e.eventId),{message:"Provide market or eventId, not both",path:["eventId"]}).refine(e=>void 0===e.filterType==(void 0===e.filterAmount),{message:"Provide filterType and filterAmount together",path:["filterAmount"]}),o_=C.Ry({cursor:P.ra.optional(),pageSize:aD.default(20),user:C.Z_(),market:C.IX(C.Z_()).optional(),eventId:C.IX(C.Rx().int()).optional(),type:C.IX(iz).optional(),start:C.Rx().int().optional(),end:C.Rx().int().optional(),sortBy:ok.optional(),sortDirection:oP.optional(),side:iD.optional()}).refine(e=>!(e.market&&e.eventId),{message:"Provide market or eventId, not both",path:["eventId"]});function oO(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,oT);return aL(t=>{let r=aG(t,n);return e.data.get("/trades",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(iZ)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}function oS(e,t){let{cursor:r,pageSize:n,...i}=az(t,o_);return aL(t=>{let r=aG(t,n);return e.data.get("/activity",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(iV)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var oI=/^0x[0-9a-fA-F]{62}$/,oB=/^0x[0-9a-fA-F]{64}$/,oj="0x0000000000000000000000000000000000000000000000000000000000000000",oM=nY("function approve(address spender, uint256 amount)"),oR=nY("function allowance(address owner, address spender) view returns (uint256)"),oN=nY("function transfer(address recipient, uint256 amount)"),oU=nY("function setApprovalForAll(address operator, bool approved)"),oz=nY("function isApprovedForAll(address account, address operator) view returns (bool)"),oD=nY("function balanceOf(address account, uint256 id) view returns (uint256)"),oF=nY("function balanceOfBatch(address[] accounts, uint256[] ids) view returns (uint256[])"),oL=nY("function splitPosition(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount)"),oH=nY("function mergePositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount)"),oG=nY("function redeemPositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] indexSets)"),oq=nY("function split(bytes31 conditionId, uint256 amount)"),o$=nY("function merge(bytes31 conditionId, uint256 amount)"),oK=nY("function redeem(bytes31 conditionId, uint256 outcomeIndex, uint256 amount)"),oZ=nY("function prepareCondition(uint256[] legs) returns (bytes31)"),oV=nY("function multiSend(bytes)"),oW=nY("function proxy((uint8 typeCode, address to, uint256 value, bytes data)[] calls) returns (bytes[])"),oY=[1n,2n],oX=[1n,2n],oJ=(1n<<256n)-1n;function oQ(e,t,r){if(r<0n)throw new k.a("Approval amount must be non-negative");if(r>oJ)throw new k.a("Approval amount exceeds uint256 range");return{data:((0,O.kG)(r>=0n,"Approval amount must be non-negative"),nW(oM,[t,r])),to:e}}function o0(e,t,r){return{data:nW(oU,[t,r]),to:e}}function o1(e,t,r){return{data:nW(oF,[r.map(()=>t),r.map(e=>o6(BigInt(e),"id"))]),to:e}}function o2(e,t,r){if(r<0n)throw new k.a("Transfer amount must be non-negative");if(r>oJ)throw new k.a("Transfer amount exceeds uint256 range");return{data:nW(oN,[t,r]),to:e}}function o3(e,t){return{data:nW(oZ,[t.map(e=>o6(e,"Leg position ID"))]),to:e}}function o6(e,t){if(e<0n)throw new k.a(`${t} must be non-negative`);if(e>oJ)throw new k.a(`${t} exceeds uint256 range`);return e}function o5(e){if(oI.test(e))return e.toLowerCase();if(oB.test(e)){let t=e.toLowerCase();if(t.endsWith("00"))return t.slice(0,64)}throw new k.a("Protocol v2 condition ID must be bytes31, or bytes32 with a zero outcome byte")}function o8(e,t="Expected a TransactionHandle"){return(0,O.kG)("object"==typeof e&&null!==e&&"transactionHash"in e&&"transactionId"in e&&"wait"in e&&"function"==typeof e.wait,t),e}function o7(e){return async function(t){let r=await t.next();for(;!r.done;)try{switch(r.value.kind){case"requestAddress":r=await t.next(await e.getAddress());break;case"signGaslessTypedData":case"signOrder":r=await t.next(await e.signTypedData(r.value.payload));break;case"signGaslessMessage":r=await t.next(await e.signMessage(r.value.payload));break;case"sendErc20ApprovalTransaction":case"sendErc1155ApprovalForAllTransaction":case"sendErc20TransferTransaction":case"sendMergePositionsTransaction":case"sendRedeemPositionsTransaction":case"sendSplitPositionTransaction":r=await t.next(await e.sendTransaction(r.value.request))}}catch(e){r=await t.throw(e)}return r.value}}function o4(){return{kind:"requestAddress"}}function o9(e,t){return{chainId:e,...t}}(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.a),(0,k.k)(k.e,k.d,k.f,k.g,k.c,k.b,k.a),(0,k.k)(k.h,k.j),(0,k.k)(k.h,k.j);var se=[{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],st=[{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"}],sr=[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],sn=[{name:"wallet",type:"address"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"},{name:"calls",type:"Call[]"}],si=C.Ry({address:C.Z_(),type:C.Km(ay)});async function sa(e,t){let r=az(t,si);return(0,O.Wg)(e.relayer.get("/v1/account/transactions/params",{params:a6(r,{address:"address",type:"type"})}).andThen(aq(ax)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var so=C.Ry({transactionId:P.Aa}),ss=C.Ry({wallet:P.W,type:C.Km(t1)});async function sl(e,t){let r=await sc(e,t);return r.type!==t1.EOA&&(0,O.Wg)(e.relayer.get("/deployed",{params:a6({address:r.wallet,type:r.type===t1.DEPOSIT_WALLET?ay.WALLET:void 0},{address:"address",type:"type"})}).andThen(aq(aS)).map(({deployed:e})=>e))}async function sc(e,t){if(void 0!==t)return az(t,ss);if(!e.isSecureClient())throw new k.a("Gasless readiness inference requires a secure client. Pass a wallet and type when using a public client.");return e.account.walletType!==t1.EOA?{wallet:e.account.wallet,type:e.account.walletType}
145:{wallet:await a3(e.rpc,e.account.signer,e.environment.walletDerivation),type:t1.DEPOSIT_WALLET}}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var su=C.Z_().max(500);async function sd(e){return(0,O.kG)(e.supportsGasless,"Deposit Wallet deployment requires a Relayer API Key or Builder API Key in the client configuration."),sv(e,{from:e.account.signer,metadata:"Deploy Deposit Wallet",to:e.environment.walletDerivation.depositWalletFactory,type:ay.WALLET_CREATE})}async function sf(e,t){let r=az(t,so);return(0,O.Wg)(e.relayer.get(`/v1/account/transactions/${r.transactionId}`).andThen(aq(aI)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sp=C.Ry({data:C.PG(O.A7),to:P.W,value:C.Kv().optional()}),sh=C.Ry({calls:C.IX(sp).min(1).transform(e=>(0,O.ZN)(e)),metadata:su});async function sm(e,t){let r=az(t,sh);return(0,O.kG)(e.supportsGasless,"Gasless transactions require a Relayer API Key or Builder API Key in the client configuration."),(0,O.kG)(e.account.walletType===t1.GNOSIS_SAFE||e.account.walletType===t1.POLY_PROXY||e.account.walletType===t1.DEPOSIT_WALLET,"Gasless transaction preparation supports Deposit Wallet, Safe-backed, and proxy-backed accounts"),(async function*(){let t=(0,O.ng)((yield o4()));(0,O.kG)(t===e.account.signer,"Wallet client address does not match the authenticated signer");for(let t=0;t<=10;t+=1)try{switch(e.account.walletType){case t1.POLY_PROXY:return yield*sb(e,r);case t1.DEPOSIT_WALLET:return yield*sy(e,r);case t1.GNOSIS_SAFE:return yield*sg(e,r)}(0,O.kG)(!1,"Unsupported wallet type for gasless transaction")}catch(r){if(!function(e){if(e instanceof k.e)return!0;if(!(e instanceof k.d)||400!==e.status)return!1;if(/wallet busy/i.test(e.message)&&/active action/i.test(e.message)||/wallet has in-flight action/i.test(e.message))return!0;let t=/batch nonce\s+(\d+)\s+does not match on-chain nonce\s+(\d+)/i.exec(e.message);if(null===t)return!1;let r=t[1],n=t[2];return void 0!==r&&void 0!==n&&BigInt(r)<BigInt(n)}(r)||10===t)throw r;await (0,O.gw)(e.environment.relayerPollFrequencyMs)}(0,O.kG)(!1,"Expected gasless transaction retry loop to return")}).call(null)}async function*sb(e,t){var r,n;let i=await sa(e,{address:e.account.signer,type:ay.PROXY}),a=e.environment.walletDerivation.proxyFactory,o=nW(oW,[t.calls.map(e=>({typeCode:1,to:e.to,value:e.value??0n,data:e.data}))]),s="10000000",l=e.environment.relayHub,c=O.r_,u=(r=e.account.signer,n=i.nonce,(0,O.JS)(rR(rx(rP("rlx:"),rA(r),rA(a),rA(o),rk(BigInt("0"),{size:32}),rk(BigInt("0"),{size:32}),rk(BigInt(s),{size:32}),rk(BigInt(n),{size:32}),rA(l),rA(c)),{as:"Hex"}))),d=(0,O.Iz)((yield sE(u)));return sv(e,{data:o,from:e.account.signer,metadata:t.metadata,nonce:i.nonce,proxyWallet:e.account.wallet,signature:d,signatureParams:{gasLimit:s,gasPrice:"0",relay:c,relayHub:l,relayerFee:"0"},to:a,type:ay.PROXY})}async function*sy(e,t){var r;let n=await sa(e,{address:e.account.signer,type:ay.WALLET}),i=t.calls.map(sw),a=`${Math.floor(Date.now()/1e3)+600}`,o=(0,O.Iz)((yield{kind:"signGaslessTypedData",payload:{domain:{chainId:(r={calls:i,chainId:e.environment.chainId,deadline:a,nonce:n.nonce,wallet:e.account.wallet}).chainId,name:"DepositWallet",verifyingContract:r.wallet,version:"1"},message:{calls:r.calls.map(e=>({data:e.data,target:e.target,value:BigInt(e.value)})),deadline:BigInt(r.deadline),nonce:BigInt(r.nonce),wallet:r.wallet},primaryType:"Batch",types:{Batch:sn,Call:sr}}})),s={depositWalletParams:{calls:i,deadline:a,depositWallet:e.account.wallet},from:e.account.signer,metadata:t.metadata,nonce:n.nonce,signature:o,to:e.environment.walletDerivation.depositWalletFactory,type:ay.WALLET};return sv(e,s)}async function*sg(e,t){var r,n;let i,a;let o=await sa(e,{address:e.account.signer,type:ay.SAFE}),s=function(e,t){let r;if(1===e.length){let[t]=e;return{data:t.data,operation:0,to:t.to,value:t.value??0n}}return{data:nW(oV,[0===(r=e.map(e=>{let t;return t=e.value??0n,ne(["uint8","address","uint256","uint256","bytes"],[0,e.to,t,BigInt((e.data.length-2)/2),e.data])})).length?"0x":ne(Array.from({length:r.length},()=>"bytes"),r)]),operation:1,to:t,value:0n}}(t.calls,e.environment.safeMultisend),l={domain:{chainId:(r={chainId:e.environment.chainId,data:s.data,nonce:o.nonce,operation:s.operation,safeAddress:e.account.wallet,to:s.to,value:s.value}).chainId,verifyingContract:r.safeAddress},message:{baseGas:0n,data:r.data,gasPrice:0n,gasToken:O.r_,nonce:BigInt(r.nonce),operation:r.operation,refundReceiver:O.r_,safeTxGas:0n,to:r.to,value:r.value},primaryType:"SafeTx",types:{EIP712Domain:se,SafeTx:st}},c=(0,O.Iz)((yield sE((0,O.JS)(rR(function(e){let{domain:t={},message:r,primaryType:n}=e,i={EIP712Domain:nJ(t),...e.types};!function(e){let{domain:t,message:r,primaryType:n,types:i}=e,a=(e,t)=>{for(let r of e){let{name:e,type:n}=r,o=t[e],s=n.match(r1);if(s&&("number"==typeof o||"bigint"==typeof o)){let[,e,t]=s;rr(o,{signed:"int"===e,size:Number.parseInt(t??"",10)/8})}if("address"===n&&"string"==typeof o&&!rH(o))throw new rG({address:o,cause:new rq});let l=n.match(r0);if(l){let[,e]=l;if(e&&rs(o)!==Number.parseInt(e,10))throw new n0({expectedSize:Number.parseInt(e,10),givenSize:rs(o)})}let c=i[n];c&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new n3({type:e})}(n),a(c,o))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new n1({domain:t});a(i.EIP712Domain,t)}if("EIP712Domain"!==n){if(i[n])a(i[n],r);else throw new n2({primaryType:n,types:i})}}({domain:t,message:r,primaryType:n,types:i});let a=["0x19","0x01"];return t&&a.push(function(e){let{domain:t,types:r}=e;return nQ({data:t,primaryType:"EIP712Domain",types:{...r,EIP712Domain:r?.EIP712Domain||nJ(t)}})}({domain:t,types:i})),"EIP712Domain"!==n&&a.push(nQ({data:r,primaryType:n,types:i})),t9(...a)}(l))))));return sv(e,{data:s.data,from:e.account.signer,metadata:t.metadata,nonce:o.nonce,proxyWallet:e.account.wallet,signature:(a=Number.parseInt((i=c.slice(2)).slice(128,130),16),(0,O.JS)(`0x${i.slice(0,128)}${(0===a||1===a?a+31:27===a||28===a?a+4:a).toString(16).padStart(2,"0")}
145`)),signatureParams:(n=s.operation,{baseGas:"0",gasPrice:"0",gasToken:O.r_,operation:`${n}`,refundReceiver:O.r_,safeTxnGas:"0"}),to:s.to,type:ay.SAFE,value:s.value>0n?`${s.value}`:void 0})}async function sv(e,t){let r=az(t,a_),n=await (0,O.Wg)(e.relayer.post("/submit",{json:r}).andThen(aq(aO)));return new sx(e,n)}function sw(e){return{data:e.data,target:e.to,value:`${e.value??0n}`}}function sE(e){return{kind:"signGaslessMessage",payload:e}}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a,k.f,k.g);var sx=class{#g;transactionHash;transactionId;constructor(e,t){this.#g=e,this.transactionHash=t.transactionHash,this.transactionId=t.transactionId}async wait(){let e=0;for(;e<this.#g.environment.relayerMaxPolls;){let t=await sf(this.#g,{transactionId:this.transactionId});if(t.state===av.STATE_MINED||t.state===av.STATE_CONFIRMED){let e=t.transactionHash??this.transactionHash;if(null===e)throw new k.b("Expected submitted transaction to have a transaction hash once settled");return{transactionHash:e,transactionId:t.transactionId}}if(t.state===av.STATE_FAILED||t.state===av.STATE_INVALID)throw new k.g(t.errorMsg??`Transaction ${t.transactionId} reached terminal state ${t.state}`);e+=1,await (0,O.gw)(this.#g.environment.relayerPollFrequencyMs)}throw new k.f(`Timed out waiting for transaction ${this.transactionId} to settle`)}},sA=C.Ry({amount:C.G0([C.Kv(),C.i0("max")]),metadata:su.optional(),spenderAddress:P.W,tokenAddress:P.W});async function sk(e,t){let r=az(t,sA),n="max"===r.amount?oJ:r.amount;return(async function*(){return e.account.walletType===t1.EOA?o8((yield sj(o9(e.environment.chainId,oQ(r.tokenAddress,r.spenderAddress,n))))):yield*await sm(e,{calls:[oQ(r.tokenAddress,r.spenderAddress,n)],metadata:r.metadata??`Approve ${r.amount} of ${r.tokenAddress} to ${r.spenderAddress}`})}).call(null)}function sP(e,t){return sk(e,t).then(o7(e.signer))}(0,k.k)(k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.c,k.b,k.a);var sC=C.Ry({approved:C.O7().default(!0),metadata:su.optional(),operatorAddress:P.W,tokenAddress:P.W});async function sT(e,t){let r=az(t,sC);return(async function*(){return e.account.walletType===t1.EOA?o8((yield sM(o9(e.environment.chainId,o0(r.tokenAddress,r.operatorAddress,r.approved))))):yield*await sm(e,{calls:[o0(r.tokenAddress,r.operatorAddress,r.approved)],metadata:r.metadata??`${r.approved?"Approve":"Revoke"} ${r.operatorAddress} on ${r.tokenAddress}`})}).call(null)}function s_(e,t){return sT(e,t).then(o7(e.signer))}async function sO(e){let t=await sB(e),r=t.erc20.map(e=>oQ(e.tokenAddress,e.spenderAddress,e.amount)),n=t.erc1155.map(e=>o0(e.tokenAddress,e.operatorAddress,!0));return(async function*(){if(0!==r.length||0!==n.length){if(e.account.walletType===t1.EOA){for(let t of r)await o8((yield sj(o9(e.environment.chainId,t)))).wait();for(let t of n)await o8((yield sM(o9(e.environment.chainId,t)))).wait();return}await (yield*await sm(e,{calls:[...r,...n],metadata:"Trading setup approvals"})).wait()}}).call(null)}function sS(e){return sO(e).then(o7(e.signer)).then(sI)}function sI(){return{transactionHash:null,transactionId:null,wait:async()=>{}}}async function sB(e){let t={erc20:[{amount:oJ,spenderAddress:e.environment.standardExchange,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.negRiskExchange,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.negRiskAdapter,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.collateralAdapter,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.negRiskCollateralAdapter,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.protocolV2Router,tokenAddress:e.environment.collateralToken},{amount:oJ,spenderAddress:e.environment.exchangeV3,tokenAddress:e.environment.collateralToken}],erc1155:[{operatorAddress:e.environment.standardExchange,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.negRiskExchange,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.negRiskAdapter,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.collateralAdapter,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.negRiskCollateralAdapter,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.autoRedeemOperator,tokenAddress:e.environment.conditionalTokens},{operatorAddress:e.environment.protocolV2Router,tokenAddress:e.environment.positionManager},{operatorAddress:e.environment.exchangeV3,tokenAddress:e.environment.positionManager},{operatorAddress:e.environment.autoRedeemOperator,tokenAddress:e.environment.positionManager}]},r=[...t.erc20.map(t=>{var r;return r=t.tokenAddress,{data:nW(oR,[e.account.wallet,t.spenderAddress]),to:r}}),...t.erc1155.map(t=>{var r;return r=t.tokenAddress,{data:nW(oz,[e.account.wallet,t.operatorAddress]),to:r}})],n=await e.rpc.ethCallBatch(r),i=n.slice(0,t.erc20.length),a=n.slice(t.erc20.length);return{erc20:t.erc20.filter((e,t)=>
145nV(oR,i[t])<e.amount),erc1155:t.erc1155.filter((e,t)=>!nV(oz,a[t]))}}function sj(e){return{kind:"sendErc20ApprovalTransaction",request:e}}function sM(e){return{kind:"sendErc1155ApprovalForAllTransaction",request:e}}async function sR(e,t){return(0,O.Wg)(e.clob.post("/auth/api-key",{headers:sF(t)}).andThen(aq(J)))}async function sN(e,t){return(0,O.Wg)(e.clob.get("/auth/derive-api-key",{headers:sF(t)}).andThen(aq(J)))}async function sU(e,t){try{return await sR(e,t)}catch(e){if(!(e instanceof k.d)||400!==e.status)throw e}return sN(e,t)}async function sz(e){return(await (0,O.Wg)(e.secureClob.get("/auth/api-keys").andThen(aq(Q)))).apiKeys}async function sD(e){await (0,O.Wg)(e.secureClob.del("/auth/api-key").andThen(aq(C.i0("OK"))))}function sF(e){return{POLY_ADDRESS:e.address,POLY_NONCE:`${e.nonce}`,POLY_SIGNATURE:e.signature,POLY_TIMESTAMP:`${e.timestamp}`}}(0,k.k)(k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.d,k.c,k.b,k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b),(0,k.k)(k.e,k.d,k.c,k.b),(0,k.k)(k.e,k.d,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b);var sL=C.Ry({after:C.Z_().optional(),before:C.Z_().optional(),builderCode:P.R,cursor:P.ra.optional(),id:C.Z_().optional(),market:C.Z_().optional(),tokenId:C.Z_().optional()});function sH(e,t){let{cursor:r,...n}=az(t,sL);return aL(t=>e.clob.get("/builder/trades",{params:a6({...n,nextCursor:t},a5({builderCode:"builder_code",tokenId:"asset_id"}))}).andThen(aq(er)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sG=C.Ry({tokenId:C.Z_()});async function sq(e,t){let r=az(t,sG);return(await (0,O.Wg)(e.clob.get("/midpoint",{params:a6(r,a5())}).andThen(aq(es)))).mid}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s$=C.IX(C.Ry({tokenId:C.Z_()})).min(1);async function sK(e,t){let r=az(t,s$);return(0,O.Wg)(e.clob.post("midpoints",{json:lm(r)}).andThen(aq(el)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sZ=C.Ry({tokenId:C.Z_()});async function sV(e,t){let r=az(t,sZ);return(await (0,O.Wg)(e.clob.get("/tick-size",{params:a6(r,a5())}).andThen(aq(e$)))).minimumTickSize}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sW=C.Ry({tokenId:C.Z_()});async function sY(e,t){let r=az(t,sW);return(await (0,O.Wg)(e.clob.get("/neg-risk",{params:a6(r,a5())}).andThen(aq(eA)))).negRisk}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sX=C.Ry({tokenId:P.za});async function sJ(e,t){let r=az(t,sX);return(0,O.Wg)(e.clob.get(`/markets-by-token/${r.tokenId}`).andThen(aq(ev)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var sQ=C.Ry({conditionId:P.U});async function s0(e,t){let r=az(t,sQ);return(0,O.Wg)(e.clob.get(`/clob-markets/${r.conditionId}`).andThen(aq(ex)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s1=C.Ry({builderCode:P.R});async function s2(e,t){let r=az(t,s1);return(0,O.Wg)(e.clob.get(`/fees/builder-fees/${r.builderCode}`).andThen(aq(en)).mapErr(e=>e instanceof k.d&&404===e.status?new k.a(`Unknown builder code: ${r.builderCode}`,{cause:e}):e))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s3=C.Ry({tokenId:C.Z_(),side:P.pa});async function s6(e,t){let r=az(t,s3);return(await (0,O.Wg)(e.clob.get("/price",{params:a6(r,a5())}).andThen(aq(ec)))).price}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s5=C.IX(C.Ry({tokenId:C.Z_(),side:P.pa})).min(1);async function s8(e,t){let r=az(t,s5);return(0,O.Wg)(e.clob.post("prices",{json:r.map(({tokenId:e,side:t})=>({token_id:e,side:t}))}).andThen(aq(ed)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s7=C.Ry({tokenId:C.Z_()});async function s4(e,t){let r=az(t,s7);return(0,O.Wg)(e.clob.get("/book",{params:a6(r,a5())}).andThen(aq(eC)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var s9=C.IX(C.Ry({tokenId:C.Z_()})).min(1);async function le(e,t){let r=az(t,s9);return(0,O.Wg)(e.clob.post("books",{json:lm(r)}).andThen(aq(eT)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lt=C.Ry({tokenId:C.Z_()});async function lr(e,t){let r=az(t,lt);return(await (0,O.Wg)(e.clob.get("/spread",{params:a6(r,a5())}).andThen(aq(ef)))).spread}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var ln=C.IX(C.Ry({tokenId:C.Z_()})).min(1);async function li(e,t){let r=az(t,ln);return(0,O.Wg)(e.clob.post("spreads",{json:lm(r)}).andThen(aq(ep)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var la=C.Ry({tokenId:C.Z_()});async function lo(e,t){let r=az(t,la);return(0,O.Wg)(e.clob.get("/last-trade-price",{params:a6(r,a5())}).andThen(aq(eh)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var ls=C.IX(C.Ry({tokenId:C.Z_()})).min(1);async function ll(e,t){let r=az(t,ls);return(0,O.Wg)(e.clob.post("last-trades-prices",{json:lm(r)}).andThen(aq(eb)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lc=C.Ry({tokenId:C.Z_(),startTs:C.Rx().int().optional(),endTs:C.Rx().int().optional(),fidelity:C.Rx().int().positive().optional(),interval:eo.optional()});async function lu(e,t){let r=az(t,lc);return(await (0,O.Wg)(e.clob.get("/prices-history",{params:a6(r,{tokenId:"market",startTs:"startTs",endTs:"endTs",fidelity:"fidelity",interval:"interval"})}).andThen(aq(eg)))).history}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var ld=C.Ry({cursor:P.ra.optional(),sponsored:C.O7().optional()}).default({});function lf(e,t={}){let{cursor:r,...n}=az(t,ld);return aL(t=>e.clob.get("/rewards/markets/current",{params:a6({...n,nextCursor:t},a5())}).andThen(aq(eF)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lp=C.Ry({conditionId:P.U,cursor:P.ra.optional(),sponsored:C.O7().optional()});function lh(e,t){let{cursor:r,...n}=az(t,lp);return aL(t=>e.clob.get(`rewards/markets/${n.conditionId}`,{params:a6({nextCursor:t,sponsored:n.sponsored},a5())}).andThen(aq(eq)).map(e=>({items:e.data,hasMore:e.nextCursor!==eU,nextCursor:e.nextCursor===eU?void 0:(0,P.z)(e.nextCursor),totalCount:e.count})),r)}function lm(e){return e.map(({tokenId:e})=>({token_id:e}))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lb=C.Ry({ascending:C.O7().optional(),cursor:P.ra.optional(),pageSize:aD.default(20),getPositions:C.O7().optional(),holdersOnly:C.O7().optional(),order:C.Z_().optional(),parentEntityId:C.G0([P.da,tf]),parentEntityType:P.oa}),ly=C.Ry({getPositions:C.O7().optional(),id:P.T}),lg=C.Ry({address:C.Z_(),ascending:C.O7().optional(),cursor:P.ra.optional(),order:C.Z_().optional(),pageSize:aD.default(20)});function lv(e,t){let{cursor:r,pageSize:n,...i}=az(t,lb);return aL(t=>{let r=aG(t,n);return e.gamma.get("/comments",{params:a6({ascending:i.ascending,getPositions:i.getPositions,holdersOnly:i.holdersOnly,limit:r.pageSize+1,offset:r.offset,order:i.order,parentEntityId:i.parentEntityId,parentEntityType:i.parentEntityType},a5())}).andThen(aq(tL)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function lw(e,t){let r=az(t,ly);return(0,O.Wg)(e.gamma.get(`comments/${r.id}`,{params:a6({getPositions:r.getPositions},a5())}).andThen(aq(tL)))}function lE(e,t){let{address:r,cursor:n,pageSize:i,...a}=az(t,lg);return aL(t=>{let n=aG(t,i);return e.gamma.get(`comments/user_address/${r}`,{params:a6({ascending:a.ascending,limit:n.pageSize+1,offset:n.offset,order:a.order},a5())}).andThen(aq(tL)).map(e=>{let t=e.length>n.pageSize;return{items:e.slice(0,n.pageSize),hasMore:t,nextCursor:t?aH({offset:n.offset+n.pageSize,pageSize:n.pageSize}):void 0}})},n)}function lx(e,t){let r;try{r=new URL(e)}catch(e){throw new k.a("Expected a valid Polymarket URL.",{cause:e})}if("https:"!==r.protocol||"polymarket.com"!==r.hostname&&"www.polymarket.com"!==r.hostname)throw new k.a("Expected a valid Polymarket URL.");
145let[n,i,...a]=r.pathname.split("/").filter(Boolean),o=a[0];if("market"===t&&"event"===n&&void 0!==i&&a.length<=1)return o??i;if(n!==t||void 0===i||a.length>0)throw new k.a(`Expected a Polymarket ${t} URL.`);return i}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lA=C.Ry({ascending:C.O7().optional(),closed:C.O7().default(!1),cursor:P.ra.optional(),pageSize:aD.optional(),cyom:C.O7().optional(),endDateMax:P.fa.optional(),endDateMin:P.fa.optional(),ended:C.O7().optional(),eventDate:P.ga.optional(),eventWeek:C.Rx().int().optional(),excludeTagIds:C.IX(C.Rx().int()).optional(),featured:C.O7().optional(),featuredOrder:C.O7().optional(),gameIds:C.IX(C.Rx().int()).optional(),ids:C.IX(C.Rx().int()).optional(),includeBestLines:C.O7().optional(),includeChat:C.O7().optional(),includeChildren:C.O7().optional(),includeTemplate:C.O7().optional(),liquidityMax:C.Rx().optional(),liquidityMin:C.Rx().optional(),live:C.O7().optional(),locale:C.Z_().optional(),order:C.Z_().optional(),parentEventId:C.Rx().int().optional(),partnerSlug:C.Z_().optional(),recurrence:C.Km(["daily","weekly","monthly"]).optional(),relatedTags:C.O7().optional(),seriesIds:C.IX(C.Rx().int()).optional(),slug:C.IX(C.Z_()).optional(),startDateMax:P.fa.optional(),startDateMin:P.fa.optional(),startTimeMax:P.fa.optional(),startTimeMin:P.fa.optional(),tagIds:C.IX(C.Rx().int()).optional(),tagMatch:C.Km(["any","all"]).optional(),tagSlug:C.Z_().optional(),titleSearch:C.Z_().optional(),volumeMax:C.Rx().optional(),volumeMin:C.Rx().optional()}),lk=C.G0([C.Ry({id:C.Z_(),includeBestLines:C.O7().optional(),includeChat:C.O7().optional(),includeTemplate:C.O7().optional(),locale:C.Z_().optional()}),C.Ry({slug:C.Z_(),includeBestLines:C.O7().optional(),includeChat:C.O7().optional(),includeTemplate:C.O7().optional(),locale:C.Z_().optional()}),C.Ry({url:C.Z_(),includeBestLines:C.O7().optional(),includeChat:C.O7().optional(),includeTemplate:C.O7().optional(),locale:C.Z_().optional()})]),lP=C.Ry({id:C.Z_()}),lC=C.Ry({id:C.Z_()});function lT(e,t={}){let r=az(t,lA);return aL(t=>e.gamma.get("/events/keyset",{params:a6({...r,cursor:t??r.cursor},a5({cursor:"after_cursor",excludeTagIds:"exclude_tag_id",gameIds:"game_id",ids:"id",pageSize:"limit",seriesIds:"series_id",tagIds:"tag_id"}))}).andThen(aq(tB)).map(e=>({items:e.items,hasMore:void 0!==e.nextCursor,nextCursor:e.nextCursor}
145)),r.cursor)}async function l_(e,t){let r=az(t,lk);if("id"in r)return(0,O.Wg)(e.gamma.get(`events/${r.id}`,{params:a6({includeBestLines:r.includeBestLines,includeChat:r.includeChat,includeTemplate:r.includeTemplate,locale:r.locale},a5())}).andThen(aq(tI)));let n="url"in r?lx(r.url,"event"):r.slug;return(0,O.Wg)(e.gamma.get(`events/slug/${n}`,{params:a6({includeBestLines:r.includeBestLines,includeChat:r.includeChat,includeTemplate:r.includeTemplate,locale:r.locale},a5())}).andThen(aq(tI)))}async function lO(e,t){let r=az(t,lP);return(0,O.Wg)(e.gamma.get(`events/${r.id}/tags`).andThen(aq(tj)))}async function lS(e,t){let r=az(t,lC);return(0,O.Wg)(e.data.get("/live-volume",{params:a8(r)}).andThen(aq(i6)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lI=C.Ry({cursor:P.ra.optional(),pageSize:aD.default(20),timePeriod:iF.optional()}),lB=C.Ry({timePeriod:iF.optional()}),lj=C.Ry({category:iL.optional(),cursor:P.ra.optional(),pageSize:aD.default(20),timePeriod:iF.optional(),orderBy:iH.optional(),user:C.Z_().optional(),userName:C.Z_().optional()});function lM(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,lI);return aL(t=>{let r=aG(t,n);return e.data.get("/v1/builders/leaderboard",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(i4)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function lR(e,t={}){let r=az(t,lB);return(0,O.Wg)(e.data.get("/v1/builders/volume",{params:a8(r)}).andThen(aq(i9)))}function lN(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,lj);return aL(t=>{let r=aG(t,n);return e.data.get("/v1/leaderboard",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(ae)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var lU=C.Ry({ascending:C.O7().optional(),closed:C.O7().optional(),clobTokenIds:C.IX(C.Z_()).optional(),cursor:P.ra.optional(),pageSize:aD.optional(),conditionIds:C.IX(P.U).optional(),cyom:C.O7().optional(),decimalized:C.O7().optional(),endDateMax:P.fa.optional(),endDateMin:P.fa.optional(),gameId:C.Z_().optional(),ids:C.IX(C.Rx().int()).optional(),includeTag:C.O7().optional(),liquidityNumMax:C.Rx().optional(),liquidityNumMin:C.Rx().optional(),locale:C.Z_().optional(),marketMakerAddresses:C.IX(C.Z_()).optional(),order:C.Z_().optional(),positionIds:C.IX(P.sa).optional(),questionIds:C.IX(C.Z_()).optional(),relatedTags:C.O7().optional(),rfqEnabled:C.O7().optional(),rewardsMinSize:C.Rx().optional(),slug:C.IX(C.Z_()).optional(),sportsMarketTypes:C.IX(C.Z_()).optional(),startDateMax:P.fa.optional(),startDateMin:P.fa.optional(),tagId:C.Rx().int().optional(),tagMatch:C.Km(["any","all"]).optional(),umaResolutionStatus:C.Z_().optional(),volumeNumMax:C.Rx().optional(),volumeNumMin:C.Rx().optional()}),lz=C.Ry({id:C.Z_(),includeTag:C.O7().optional(),locale:C.Z_().optional()}),lD=C.Ry({slug:C.Z_(),includeTag:C.O7().optional(),locale:C.Z_().optional()}),lF=C.Ry({url:C.Z_(),includeTag:C.O7().optional(),locale:C.Z_().optional()}),lL=C.G0([lz,lD,lF]),lH=C.Ry({id:C.Z_()}),lG=C.Ry({limit:C.Rx().int().optional(),market:C.IX(C.Z_()),minBalance:C.Rx().int().optional()}),lq=C.Ry({market:C.IX(C.Z_()).optional()}),l$=C.Km(["OPEN","CLOSED","ALL"]),lK=C.Km(["TOKENS","CASH_PNL","REALIZED_PNL","TOTAL_PNL"]),lZ=C.Km(["ASC","DESC"]),lV=C.Ry({cursor:P.ra.optional(),market:C.Z_(),pageSize:aD.default(20),user:C.Z_().optional(),status:l$.optional(),sortBy:lK.optional(),sortDirection:lZ.optional()});function lW(e,t={}){let r=az(t,lU);return aL(t=>e.gamma.get("/markets/keyset",{params:a6({...r,cursor:t??r.cursor},a5({cursor:"after_cursor",ids:"id",marketMakerAddresses:"market_maker_address",pageSize:"limit"}))}).andThen(aq(e9)).map(e=>({items:e.items,hasMore:void 0!==e.nextCursor,nextCursor:e.nextCursor}
145)),r.cursor)}async function lY(e,t){let r=az(t,lL);return"id"in r?l2(e,r):"url"in r?l1(e,{includeTag:r.includeTag,locale:r.locale,slug:lx(r.url,"market")}):l1(e,r)}async function lX(e,t){let r=az(t,lH);return(0,O.Wg)(e.gamma.get(`markets/${r.id}/tags`).andThen(aq(te)))}async function lJ(e,t){let r=az(t,lG);return(0,O.Wg)(e.data.get("/holders",{params:a8(r)}).andThen(aq(i2)))}async function lQ(e,t={}){let r=az(t,lq);return(0,O.Wg)(e.data.get("/oi",{params:a8(r)}).andThen(aq(i3)))}function l0(e,t){let{cursor:r,pageSize:n,...i}=az(t,lV);return aL(t=>{let r=aG(t,n);return e.data.get("/v1/market-positions",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(ab)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function l1(e,t){return(0,O.Wg)(e.gamma.get(`markets/slug/${t.slug}`,{params:a6({includeTag:t.includeTag,locale:t.locale},a5())}).andThen(aq(e4)))}async function l2(e,t){return(0,O.Wg)(e.gamma.get(`markets/${t.id}`,{params:a6({includeTag:t.includeTag,locale:t.locale},a5())}).andThen(aq(e4)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var l3=C.Ry({orderId:C.Z_()}),l6=C.Ry({orderIds:C.IX(C.Z_()).min(1).max(3e3)}),l5=C.Ry({tokenId:C.Z_().optional(),market:C.Z_().optional()}).refine(e=>void 0!==e.market||void 0!==e.tokenId,{message:"At least one of market or tokenId is required.",path:["market"]});async function l8(e,t){return ce(e,"/order",{orderID:az(t,l3).orderId})}async function l7(e,t){return ce(e,"/orders",az(t,l6).orderIds)}async function l4(e){return ce(e,"/cancel-all")}async function l9(e,t){let r=az(t,l5);return ce(e,"/cancel-market-orders",{asset_id:r.tokenId,market:r.market})}async function ce(e,t,r){return(0,O.Wg)(e.secureClob.del(t,{json:r}).andThen(aq(ei)))}(0,k.k)(k.d,k.e,k.j,k.c,k.b,k.a),(0,k.k)(k.d,k.e,k.j,k.c,k.b,k.a),(0,k.k)(k.d,k.e,k.j,k.c,k.b),(0,k.k)(k.d,k.e,k.j,k.c,k.b,k.a);var ct=C.Ry({tokenId:C.Z_(),orderType:C.G0([C.i0(P.c.FAK),C.i0(P.c.FOK)]).default(P.c.FOK)}),cr=C.VK("side",[ct.extend({side:C.i0(P.b.BUY),amount:P.Ea}),ct.extend({side:C.i0(P.b.SELL),shares:P.Ea})]);async function cn(e,t){let r=az(t,cr),n=await sV(e,{tokenId:r.tokenId});return ci(e,{amount:r.side===P.b.BUY?r.amount:r.shares,orderType:r.orderType,side:r.side,tickSize:n,tokenId:r.tokenId})}async function ci(e,t){var r;let n=await s4(e,{tokenId:t.tokenId}),i=t.side===P.b.BUY?function(e,t,r){if(0===e.length)throw new k.i("No resting liquidity.");let n=0;for(let r=e.length-1;r>=0;r-=1){let i=e[r];if(void 0!==i&&(n+=Number.parseFloat(i.size)*Number.parseFloat(i.price))>=t)return Number.parseFloat(i.price)}if(r===P.c.FOK)throw new k.i("Insufficient liquidity for full fill.");return Number.parseFloat(e[0].price)}(n.asks,t.amount,t.orderType):function(e,t,r){if(0===e.length)throw new k.i("No resting liquidity.");let n=0;for(let r=e.length-1;r>=0;r-=1){let i=e[r];if(void 0!==i&&(n+=Number.parseFloat(i.size))>=t)return Number.parseFloat(i.price)}if(r===P.c.FOK)throw new k.i("Insufficient liquidity for full fill.");return Number.parseFloat(e[0].price)}(n.bids,t.amount,t.orderType);return(0,O.kG)(i>=(r=t.tickSize)&&i<=1-r,`Resolved market price fell outside the valid range for tick size ${t.tickSize}.`),i}(0,k.k)(k.i,k.e,k.d,k.c,k.b,k.a);var ca=C.IX(C.PG()).min(1).max(15);function co(e){return async function(t){let r=cs(e,t);return(0,O.Wg)(e.secureClob.post("/order",{json:r}).andThen(aq(eR)))}}function cs(e,t){return(0,O.kG)(!0!==t.postOnly||t.orderType===P.c.GTC||t.orderType===P.c.GTD,"Post-only orders are only supported for GTC and GTD order types."),{deferExec:!1,order:{builder:t.builder,expiration:`${t.expiration}`,maker:t.maker,makerAmount:t.makerAmount,metadata:t.metadata,salt:Number.parseInt(t.salt,10),side:t.side,signature:t.signature,signatureType:t.signatureType,signer:t.signer,takerAmount:t.takerAmount,timestamp:t.timestamp,tokenId:t.tokenId},orderType:t.orderType,owner:e.credentials.key,...!0===t.postOnly?{postOnly:!0}:{}}}function cl(e){switch(e){case .1:return{amount:3,price:1,size:2};case .01:return{amount:4,price:2,size:2};case .001:return{amount:5,price:3,size:2};case 1e-4:return{amount:6,price:4,size:2}}(0,O.kG)(!1,`Unsupported tick size: ${e}`)}function cc(e,t){return t?e.environment.negRiskExchange:e.environment.standardExchange}function cu(e){return BigInt(Math.round(1e6*e))}function cd(e,t){return ch(e)<=t?e:Math.floor(e*10**t)/10**t}function cf(e,t){return ch(e)<=t?e:Math.ceil(e*10**t)/10**t}function cp(e,t){return ch(e)<=t?e:Math.round(e*10**t)/10**t}function ch(e){if("number"==typeof e&&Number.isInteger(e))return 0;let[t="",r]=e.toString().toLowerCase().split("e"),[,n=""]=t.split("."),i=n.length;return void 0===r?i:Math.max(0,i-Number.parseInt(r,10))}(0,k.k)(k.e,k.d,k.j,k.c,k.b),(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a);
145var cm=C.cf({tokenId:P.za,price:P.Ea,size:P.Ea,side:P.pa,builderCode:P.R.optional(),postOnly:C.O7().default(!1),expiration:C.Rx().int().nonnegative().optional()}).superRefine((e,t)=>{if(void 0!==e.expiration){let r=Math.floor(Date.now()/1e3)+60;e.expiration<r&&t.addIssue({code:"custom",message:"Expiration must be at least 60 seconds in the future.",path:["expiration"]})}});async function cb(e,t){let r=await cy(e,{price:t.price,tokenId:t.tokenId}),n=function(e){let t=cl(e.tickSize),r=cp(e.price,t.price);if(e.side===P.b.BUY){let n=cd(e.size,t.size),i=n*r;return ch(i)>t.amount&&ch(i=cf(i,t.amount+4))>t.amount&&(i=cd(i,t.amount)),{offeredAmount:cu(i),requestedAmount:cu(n)}}let n=cd(e.size,t.size),i=n*r;return ch(i)>t.amount&&ch(i=cf(i,t.amount+4))>t.amount&&(i=cd(i,t.amount)),{offeredAmount:cu(n),requestedAmount:cu(i)}}({price:r.price,side:t.side,size:t.size,tickSize:r.tickSize});return{builderCode:t.builderCode,chainId:e.environment.chainId,exchangeAddress:r.exchangeAddress,expiration:t.expiration??0,funderAddress:r.funderAddress,offeredAmount:n.offeredAmount,orderType:void 0===t.expiration?P.c.GTC:P.c.GTD,side:t.side,signer:r.signerAddress,requestedAmount:n.requestedAmount,tokenId:t.tokenId}}async function cy(e,t){let r=e.account,n=await sV(e,{tokenId:t.tokenId}),i=await sY(e,{tokenId:t.tokenId});return{exchangeAddress:cc(e,i),funderAddress:r.wallet,negRisk:i,price:function(e,t){let r=cl(t);if(e<t||e>1-t)throw new k.a(`Price must be between ${t} and ${1-t} for tick size ${t}.`);if(ch(e)>r.price)throw new k.a(`Price must conform to tick size ${t} with at most ${r.price} decimal places.`);return cp(e,r.price)}(t.price,n),signerAddress:r.signer,tickSize:n}}var cg=C.Ry({tokenId:P.za,builderCode:P.R.optional(),orderType:C.G0([C.i0(P.c.FAK),C.i0(P.c.FOK)]).default(P.c.FAK)}),cv=C.VK("side",[cg.extend({side:C.i0(P.b.BUY),amount:P.Ea,maxSpend:P.Ea.optional()}),cg.extend({side:C.i0(P.b.SELL),shares:P.Ea})]);async function cw(e,t){let r=await cE(e,t),n=function(e){let t=cl(e.tickSize),r=cd(e.price,t.price),n=cd(e.amount,t.size);if(e.side===P.b.BUY){let e=n/r;return ch(e)>t.amount&&ch(e=cf(e,t.amount+4))>t.amount&&(e=cd(e,t.amount)),{offeredAmount:cu(n),requestedAmount:cu(e)}}let i=n*r;return ch(i)>t.amount&&ch(i=cf(i,t.amount+4))>t.amount&&(i=cd(i,t.amount)),{offeredAmount:cu(n),requestedAmount:cu(i)}}({amount:r.resolvedAmount,price:r.price,side:t.side,tickSize:r.tickSize});return{builderCode:t.builderCode,chainId:e.environment.chainId,exchangeAddress:r.exchangeAddress,expiration:0,funderAddress:r.funderAddress,offeredAmount:n.offeredAmount,orderType:t.orderType,side:t.side,signer:r.signerAddress,requestedAmount:n.requestedAmount,tokenId:t.tokenId}}async function cE(e,t){let r=e.account,n=await sV(e,{tokenId:t.tokenId}),i=t.side===P.b.BUY?t.amount:t.shares,a=await ci(e,{amount:i,orderType:t.orderType,side:t.side,tickSize:n,tokenId:t.tokenId}),o=await sY(e,{tokenId:t.tokenId}),s=await cx(e,{amount:i,builderCode:t.builderCode,maxSpend:t.side===P.b.BUY?t.maxSpend:void 0,price:a,side:t.side,tokenId:t.tokenId});return{exchangeAddress:cc(e,o),funderAddress:r.wallet,negRisk:o,price:a,resolvedAmount:s,signerAddress:r.signer,tickSize:n}}async function cx(e,t){var r;let n,i,a;if(t.side!==P.b.BUY||void 0===t.maxSpend)return t.amount;let[o,s]=await Promise.all([cA(e,t.tokenId),ck(e,t.builderCode)]);return n=(r={amount:t.amount,builderTakerFeeRate:s,platformFeeExponent:o.exponent,platformFeeRate:o.rate,maxSpend:t.maxSpend,price:t.price}).platformFeeRate*(r.price*(1-r.price))**r.platformFeeExponent,i=r.amount/r.price*n,a=r.amount+i+r.amount*r.builderTakerFeeRate,r.maxSpend<=a?r.maxSpend/(1+n/r.price+r.builderTakerFeeRate):r.amount}async function cA(e,t){let r=await sJ(e,{tokenId:t});return(await s0(e,{conditionId:r})).feeInfo}async function ck(e,t){return void 0===t?0:(await s2(e,{builderCode:t})).taker}var cP="0x0000000000000000000000000000000000000000000000000000000000000000";function cC(e,t){let r,n=aJ(t);return{builder:e.builderCode??cP,chainId:e.chainId,exchangeAddress:e.exchangeAddress,expiration:e.expiration,maker:n.maker,makerAmount:e.offeredAmount.toString(),metadata:cP,orderType:e.orderType,salt:(r=ne
145w Uint8Array(8),globalThis.crypto.getRandomValues(r),BigInt(`0x${Array.from(r,e=>e.toString(16).padStart(2,"0")).join("")}`)&(1n<<53n)-1n).toString(),side:e.side,signatureType:n.signatureType,signer:n.signer,takerAmount:e.requestedAmount.toString(),timestamp:Date.now().toString(),tokenId:e.tokenId}}function cT(e,t){let{chainId:r,exchangeAddress:n,...i}=e;return{...i,signature:t}}var c_="Polymarket CTF Exchange",cO="0x0000000000000000000000000000000000000000000000000000000000000000",cS="Order(uint256 salt,address maker,address signer,uint256 tokenId,uint256 makerAmount,uint256 takerAmount,uint8 side,uint8 signatureType,uint256 timestamp,bytes32 metadata,bytes32 builder)",cI=rR(rP(cS),{as:"Hex"}),cB=rR(rP("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),{as:"Hex"}),cj=rR(rP(c_),{as:"Hex"}),cM=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],cR=[{name:"salt",type:"uint256"},{name:"maker",type:"address"},{name:"signer",type:"address"},{name:"tokenId",type:"uint256"},{name:"makerAmount",type:"uint256"},{name:"takerAmount",type:"uint256"},{name:"side",type:"uint8"},{name:"signatureType",type:"uint8"},{name:"timestamp",type:"uint256"},{name:"metadata",type:"bytes32"},{name:"builder",type:"bytes32"}],cN=[{name:"contents",type:"Order"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"}];function cU(e){var t,r;let n=(t=e.domain,r=e.order,{domain:cF(t),message:cD(r),primaryType:"Order",types:{EIP712Domain:cM,Order:cR}});return e.order.signatureType!==T.POLY_1271?n:{domain:cF(e.domain),message:{chainId:e.domain.chainId,contents:n.message,name:"DepositWallet",salt:cO,verifyingContract:e.order.signer,version:"1"},primaryType:"TypedDataSign",types:{Order:cR,TypedDataSign:cN}}}function cz(e){var t,r;let n;if(e.order.signatureType!==T.POLY_1271)return e.signature;let i=function(e,t={}){return rt(e,t)}(rP(cS)),a=cS.length.toString(16).padStart(4,"0");return(0,O.He)(`0x${e.signature.slice(2)}${(t=e.domain,(0,O.JS)(rR(r9([{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"address"}],[cB,cj,(r=t.protocolVersion,(0,O.JS)(rR(rP(r),{as:"Hex"}))),BigInt(t.chainId),t.exchange]),{as:"Hex"}))).slice(2)}${(n=cD(e.order),(0,O.JS)(rR(r9([{type:"bytes32"},{type:"uint256"},{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint8"},{type:"uint8"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[cI,n.salt,n.maker,n.signer,n.tokenId,n.makerAmount,n.takerAmount,n.side,n.signatureType,n.timestamp,n.metadata,n.builder]),{as:"Hex"}))).slice(2)}${i.slice(2)}${a}`)}function cD(e){var t;return{builder:e.builder??cO,maker:e.maker,makerAmount:BigInt(e.makerAmount),metadata:e.metadata??cO,salt:BigInt(e.salt),side:0===(t=e.side)||1===t?t:t===P.b.BUY?0:1,signatureType:e.signatureType,signer:e.signer,takerAmount:BigInt(e.takerAmount),timestamp:BigInt(e.timestamp),tokenId:BigInt(e.tokenId)}}function cF(e){return{chainId:e.chainId,name:c_,verifyingContract:e.exchange,version:e.protocolVersion}}function cL(e){return cU({domain:cG(e),order:e})}function cH(e,t){return cz({domain:cG(e),order:e,signature:t})}function cG(e){return{chainId:e.chainId,exchange:e.exchangeAddress,protocolVersion:"2"}}function cq(e){return{kind:"signOrder",payload:e}}async function c$(e,t){let r=az(t,cv);return(async function*(){let t=cC(await cw(e,r),e.account),n=(0,O.Iz)((yield cq(cL(t))));return cT(t,cH(t,n))}).call(null)}async function cK(e,t){let r=az(t,cm);return(async function*(){let t=cC(await cb(e,r),e.account),n=(0,O.Iz)((yield cq(cL(t)))),i=cT(t,cH(t,n));return!0===r.postOnly?{...i,postOnly:!0}:i}).call(null)}async function cZ(e,t){var r;let n=t.side===P.b.BUY?D.COLLATERAL:D.CONDITIONAL,{allowances:i}=await od(e,t.side===P.b.BUY?{assetType:n}:{assetType:n,tokenId:t.tokenId});return r=t.spenderAddress,Object.entries(i).find(([e])=>O.my(e,r))?.[1]??0n}function cV(e,t){return c$(e,t).then(o7(e.signer))}function cW(e,t){return cV(e,t).then(t=>cJ(e,t))}function cY(e,t){return cK(e,t).then(o7(e.signer))}function cX(e,t){return cY(e,t).then(t=>cJ(e,t))}async function cJ(e,t){let r=co(e);try{return await r(t)}catch(i){if(!(i instanceof k.d&&400===i.status&&i.message.includes("allowance is not enough")))throw i;let n=await cQ(e,t,r);if(void 0===n)throw i;return n}}async function cQ(e,t,r){return await c0(e,t)?r(t):void 0}async function c0(e,t){let r=await sY(e,{tokenId:t.tokenId}),n=cc(e,r),i=BigInt(t.makerAmount);return!(await cZ(e,{spenderAddress:n,side:t.side,tokenId:t.tokenId})>=i)&&(await (t.side===P.b.BUY?await sP(e,{amount:"max",spenderAddress:n,tokenAddress:e.environment.collateralToken}):await s_(e,{operatorAddress:n,tokenAddress:e.environment.conditionalTokens})).wait(),await op(e,{assetType:t.side===P.b.BUY?D.COLLATERAL:D.CONDITIONAL,tokenId:t.side===P.b.SELL?t.tokenId:void 0}),!0)}(0,k.k)(k.i,k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.h,k.i,k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.h,k.i,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.c,k.b,k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a);var c1=C.Km(["CURRENT","INITIAL","TOKENS","CASHPNL","PERCENTPNL","TITLE","RESOLVING","PRICE","AVGPRICE"]),c2=C.Km(["ASC","DESC"]),c3=C.Km(["REALIZEDPNL","TITLE","PRICE","AVGPRICE","TIMESTAMP"]),c6=C.Ry({cursor:P.ra.optional(),user:C.Z_(),market:C.IX(C.Z_()).optional(),eventId:C.IX(C.Rx().int()).optional(),sizeThreshold:C.Rx().optional(),redeemable:C.O7().optional(),mergeable:C.O7().optional(),pageSize:aD.default(20),sortBy:c1.optional(),sortDirection:c2.optional(),title:C.Z_().max(100).optional()}).refine(e=>!(e.market&&e.eventId),{message:"Provide market or eventId, not both",path:["eventId"]}),c5=C.Ry({cursor:P.ra.optional(),user:C.Z_(),market:C.IX(C.Z_()).optional(),title:C.Z_().max(100).optional(),eventId:C.IX(C.Rx().int()).optional(),pageSize:aD.default(20),sortBy:c3.optional(),sortDirection:c2.optional()}).refine(e=>!(e.market&&e.eventId),{message:"Provide market or eventId, not both",path:["eventId"]}),c8=C.Ry({cursor:P.ra.optional(),user:C.Z_(),pageSize:aD.default(20),status:ar.o
145ptional(),conditionId:C.Z_().optional(),positionId:C.Z_().optional()}),c7=C.Ry({user:C.Z_(),market:C.IX(C.Z_()).optional()}),c4=C.Ry({user:C.Z_()}),c9=C.Ry({user:C.Z_()});function ue(e,t){let{cursor:r,pageSize:n,...i}=az(t,c6);return aL(t=>{let r=aG(t,n);return e.data.get("/positions",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(ap)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}function ut(e,t){let{cursor:r,pageSize:n,...i}=az(t,c5);return aL(t=>{let r=aG(t,n);return e.data.get("/closed-positions",{params:a8({...i,limit:r.pageSize+1,offset:r.offset})}).andThen(aq(ah)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}function ur(e,t){let{cursor:r,pageSize:n,...i}=az(t,c8);return aL(t=>{let r=aG(t,n);return e.data.get("/v1/positions/combos",{params:a6({...i,limit:r.pageSize+1,offset:r.offset},a5({conditionId:"combo_condition_id",positionId:"combo_position_id"}))}).andThen(aq(af)).map(e=>{let t=e.combos.length>r.pageSize;return{items:e.combos.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function un(e,t){let r=az(t,c7);return(0,O.Wg)(e.data.get("/value",{params:a8(r)}).andThen(aq(am)))}async function ui(e,t){let r=az(t,c4);return(0,O.Wg)(e.data.get("/traded",{params:a8(r)}).andThen(aq(iK)))}async function ua(e,t){let r=az(t,c9);return(0,O.Wg)(e.data.get("/v1/accounting/snapshot",{params:a8(r)}).andThen(a$))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var uo=(1n<<256n)-1n;function us(e){let t=r9([{name:"legs",type:"uint256[]"}],[e]),r=`0x03${rR(r9([{name:"moduleId",type:"uint256"},{name:"data",type:"bytes"}],[3n,t])).slice(34)}0000000000000000000000000000`;return{conditionId:r,positionIds:[(0,P.A)(BigInt(`${r}00`).toString()),(0,P.A)(BigInt(`${r}01`).toString())]}}function ul(e){let t=e.trim(),r;if(0===t.length)throw new k.a("Position ID must be a uint256 value");try{r=BigInt(t)}catch{throw new k.a("Position ID must be a uint256 value")}if(r<0n||r>uo)throw new k.a("Position ID must be a uint256 value");return r}var uc=C.Ry({amount:C.Kv().min(0n),conditionId:P.U,metadata:su.optional()}),uu=C.Ry({amount:C.Kv().positive(),legs:C.IX(P.sa).min(1).max(50),metadata:su.optional()}),ud=C.IX(P.sa).min(1).max(50).transform(function(e){if(0===e.length||e.length>50)throw new k.a("Combo legs must include 1 to 50 position IDs");let t=e.map(e=>{let t=ul(e),r=t.toString(16).padStart(64,"0"),n=Number.parseInt(r.slice(0,2),16),i=Number.parseInt(r.slice(-2),16);if(1!==n&&2!==n||i>1)throw new k.a("Combo legs must be binary or neg-risk YES/NO position IDs");return{value:t,conditionId:r.slice(0,-2)}});t.sort((e,t)=>e.value<t.value?-1:e.value>t.value?1:0);for(let e=1;e<t.length;e+=1){let r=t[e-1],n=t[e];if(void 0===r||void 0===n)throw new k.a("Invalid combo leg set");if(r.value===n.value)throw new k.a("Combo legs must not contain duplicate position IDs");if(r.conditionId===n.conditionId)throw new k.a("Combo legs must not contain both outcomes for the same condition")}return t.map(e=>e.value)}),uf=C.Ry({amount:C.Kv().positive(),legs:ud,metadata:su.optional()}),up=C.G0([uc.extend({legs:C.Fi().optional()}),uu.extend({conditionId:C.Fi().optional()})]);async function uh(e,t){var r;let n=az(t,uc),i=await uz(e,{conditionId:n.conditionId}),a=(r=i.adapterAddress,{data:nW(oL,[e.environment.collateralToken,oj,i.conditionId,oY,o6(n.amount,"Split amount")]),to:r});return(async function*(){return e.account.walletType===t1.EOA?o8((yield uR(o9(e.environment.chainId,a)))):yield*await sm(e,{calls:[a],metadata:n.metadata??`Split ${n.amount} positions for market ${i.marketId} (condition ${i.conditionId})`})}).call(null)}async function um(e,t){var r,n,i;let a=az(t,uf),o=o3(e.environment.combinatorialModule,a.legs),s=us(a.legs),l=(r=e.environment.protocolV2Router,n=s.conditionId,i=a.amount,{data:nW(oq,[o5(n),o6(i,"Split amount")]),to:r});return(async function*(){return e.account.walletType===t1.EOA?(await o8((yield uR(o9(e.environment.chainId,o)))).wait(),o8((yield uR(o9(e.environment.chainId,l))))):yield*await sm(e,{calls:[o,l],metadata:a.metadata??`Split ${a.amount}
145 combo positions for condition ${s.conditionId}`})}).call(null)}async function ub(e,t){let r=az(t,up);return void 0!==r.legs?um(e,r):uh(e,r)}function uy(e,t){return ub(e,t).then(o7(e.signer))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a);var ug=C.Ry({amount:C.G0([C.Kv().positive(),C.i0("max")]),conditionId:P.U,metadata:su.optional()}),uv=C.Ry({amount:C.G0([C.Kv().positive(),C.i0("max")]),legs:C.IX(P.sa).min(1).max(50),metadata:su.optional()}),uw=C.Ry({amount:C.G0([C.Kv().positive(),C.i0("max")]),legs:ud,metadata:su.optional()}),uE=C.G0([ug.extend({legs:C.Fi().optional()}),uv.extend({conditionId:C.Fi().optional()})]);async function ux(e,t){var r;let n=az(t,ug),i=await uz(e,{conditionId:n.conditionId}),a=nV(oF,await e.rpc.ethCall(o1(i.positionErc1155Address,e.account.wallet,i.tokenIds))),o=uD(i.conditionId,a,n.amount),s=(r=i.adapterAddress,{data:nW(oH,[e.environment.collateralToken,oj,i.conditionId,oY,o6(o,"Merge amount")]),to:r});return(async function*(){return e.account.walletType===t1.EOA?o8((yield uN(o9(e.environment.chainId,s)))):yield*await sm(e,{calls:[s],metadata:n.metadata??`Merge ${o} positions for market ${i.marketId} (condition ${i.conditionId})`})}).call(null)}async function uA(e,t){var r;let n=az(t,uw),i=o3(e.environment.combinatorialModule,n.legs),a=us(n.legs),o=nV(oF,await e.rpc.ethCall(o1(e.environment.positionManager,e.account.wallet,a.positionIds))),s=uD(a.conditionId,o,n.amount),l=(r=e.environment.protocolV2Router,{data:nW(o$,[o5(a.conditionId),o6(s,"Merge amount")]),to:r});return(async function*(){return e.account.walletType===t1.EOA?(await o8((yield uN(o9(e.environment.chainId,i)))).wait(),o8((yield uN(o9(e.environment.chainId,l))))):yield*await sm(e,{calls:[i,l],metadata:n.metadata??`Merge ${s} combo positions for condition ${a.conditionId}`})}).call(null)}async function uk(e,t){let r=az(t,uE);return void 0!==r.legs?uA(e,r):ux(e,r)}function uP(e,t){return uk(e,t).then(o7(e.signer))}(0,k.k)(k.h,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a);var uC=C.Ry({conditionId:P.U,marketId:C.Fi().optional(),amount:C.Fi().optional(),positionId:C.Fi().optional(),metadata:su.optional()}),uT=C.Ry({conditionId:C.Fi().optional(),marketId:P.ma,amount:C.Fi().optional(),positionId:C.Fi().optional(),metadata:su.optional()}),u_=C.G0([uC,uT]),uO=C.Ry({positionId:P.sa,conditionId:C.Fi().optional(),marketId:C.Fi().optional(),metadata:su.optional()}),uS=C.G0([uC,uT,uO]);async function uI(e,t){var r;let n=az(t,u_),i=await uz(e,void 0!==n.conditionId?{conditionId:n.conditionId}:{marketId:n.marketId}),a=(r=i.adapterAddress,{data:nW(oG,[e.environment.collateralToken,oj,i.conditionId,oX]),to:r});return(async function*(){return e.account.walletType===t1.EOA?o8((yield uU(o9(e.environment.chainId,a)))):yield*await sm(e,{calls:[a],metadata:n.metadata??`Redeem positions for market ${i.marketId} (condition ${i.conditionId})`})}).call(null)}async function uB(e,t){var r,n,i,a,o;let s=az(t,uO),l=function(e){let t=ul(e).toString(16).padStart(64,"0"),r=BigInt(`0x${t.slice(0,2)}`),n=Number.parseInt(t.slice(-2),16);if(3n!==r)throw new k.a("Combo position ID must use the combinatorial module");if(0!==n&&1!==n)throw new k.a("Combo position ID must be a YES/NO position ID");return{conditionId:`0x${t.slice(0,-2)}`,outcomeIndex:n}}(s.positionId),c=(n=await e.rpc.ethCall((r=e.environment.positionManager,{data:nW(oD,[e.account.wallet,o6(BigInt(s.positionId),"Position ID")]),to:r})),nV(oD,n));if(0n===c)throw new k.a("Combo position has no balance to redeem");let u=(i=e.environment.protocolV2Router,a=l.conditionId,o=l.outcomeIndex,{data:nW(oK,[o5(a),BigInt(function(e){if(0!==e&&1!==e)throw new k.a("Protocol v2 outcome index must be 0 or 1");return e}(o)),o6(c,"Redeem amount")]),to:i});return(async function*(){return e.account.walletType===t1.EOA?o8((yield uU(o9(e.environment.chainId,u)))):yield*await sm(e,{calls:[u],metadata:s.metadata??`Redeem combo position ${s.positionId}`})}).call(null)}async function uj(e,t){let r=az(t,uS);return void 0!==r.positionId?uB(e,r):uI(e,r)}function uM(e,t){return uj(e,t).then(o7(e.signer))}function uR(e){return{kind:"sendSplitPositionTransaction",request:e}}function uN(e){return{kind:"sendMergePositionsTransaction",request:e}}function uU(e){return{kind:"sendRedeemPositionsTransaction",request:e}}async function uz(e,t){let r=void 0!==t.conditionId?`condition ${t.conditionId}`:`market ${t.marketId}`,n=(await lW(e,void 0!==t.conditionId?{conditionIds:[t.conditionId],pageSize:1}:{ids:[function(e){let t=Number(e);if(!Number.isInteger(t))throw new k.a(`Market ID must be an integer, received ${e}`);return t}(t.marketId)],pageSize:1}).firstPage()).items;(0,O.kG)(1===n.length,`Expected exactly one ${r}`);let i=n[0];(0,O.kG)(void 0!==i,`No market found for ${r}`);let a=function(e,t){if(!(0,O.EN)(e.conditionId))throw new k.b(`Missing condition ID for ${t}`);if(!(0,O.EN)(e.state.negRisk))throw new k.b(`Missing negative-risk flag for ${t}`);let r=e.outcomes.yes.tokenId,n=e.outcomes.no.tokenId;if(!(0,O.EN)(r)||!(0,O.EN)(n))throw new k.b(`Missing market token IDs for ${t}`);return{marketId:e.id,conditionId:e.conditionId,negRisk:e.state.negRisk,tokenIds:[r,n]}}(i,r);return{...a,adapterAddress:a.negRisk?e.environment.negRiskCollateralAdapter
145:e.environment.collateralAdapter,positionErc1155Address:a.negRisk?e.environment.negRiskAdapter:e.environment.conditionalTokens}}function uD(e,t,r){let n=function(e){if(2!==e.length)throw new k.b("Expected two position balances");let[t,r]=e;return(0,O.kG)(void 0!==t,"Expected YES position balance"),(0,O.kG)(void 0!==r,"Expected NO position balance"),t<r?t:r}(t);if(0n===n)throw new k.a(`You have no complementary positions to merge for condition ${e}`);if("max"===r)return n;if(r>n)throw new k.a(`Requested merge amount ${r} exceeds the maximum mergeable amount ${n} for condition ${e}`);return r}(0,k.k)(k.h,k.e,k.d,k.j,k.c,k.b,k.a);var uF=C.Ry({address:C.Z_()});async function uL(e,t){let r=az(t,uF);return(0,O.Wg)(e.gamma.get("/public-profile",{params:a6(r,a5())}).andThen(aq(tq)).orElse(e=>e instanceof k.d&&404===e.status?(0,eK.ok)(null):(0,eK.cn)(e)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var uH=class extends O.ac{name="RfqQuoteRejectedError";code;rfqId;constructor(e,t){super(e,t),this.code=t.code,this.rfqId=t.rfqId}},uG=((0,k.k)(uH,k.j,k.f,k.c,k.a),class extends O.ac{name="RfqCancelQuoteRejectedError";code;rfqId;quoteId;constructor(e,t){super(e,t),this.code=t.code,this.rfqId=t.rfqId,this.quoteId=t.quoteId}}),uq=((0,k.k)(uG,k.f,k.c),class extends O.ac{name="RfqConfirmationRejectedError";code;rfqId;quoteId;constructor(e,t){super(e,t),this.code=t.code,this.rfqId=t.rfqId,this.quoteId=t.quoteId}});async function u$(e){return e.webSockets.rfqQuoter.connect()}(0,k.k)(uq,k.f,k.c),(0,k.k)(k.c);var uK=C.Ry({q:C.Z_().min(1),ascending:C.O7().optional(),cache:C.O7().optional(),cursor:P.ra.optional(),eventsStatus:C.Z_().min(1).optional(),eventsTag:C.IX(C.Z_()).optional(),excludeTagIds:C.IX(C.Rx().int()).optional(),keepClosedMarkets:C.Rx().int().optional(),optimized:C.O7().optional(),pageSize:aD.default(10),presets:C.IX(C.Z_()).optional(),recurrence:C.Km(["daily","weekly","monthly"]).optional(),searchProfiles:C.O7().optional(),searchTags:C.O7().optional(),sort:C.Z_().min(1).optional()});function uZ(e,t){let{cursor:r,pageSize:n,...i}=az(t,uK);return aL(t=>{let r=aG(t,n);return e.gamma.get("/public-search",{params:a6({...i,limitPerType:r.pageSize,page:r.offset},a5({excludeTagIds:"exclude_tag_id"}))}).andThen(aq(tZ)).map(e=>({items:{events:e.events??[],profiles:e.profiles??[],tags:e.tags??[]},hasMore:e.pagination?.hasMore??!1,totalCount:e.pagination?.totalResults??void 0,nextCursor:e.pagination?.hasMore?aH({offset:r.offset+1,pageSize:r.pageSize}):void 0}))},r??aH({offset:1,pageSize:n}),{events:[],profiles:[],tags:[]})}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var uV=C.Ry({ascending:C.O7().optional(),closed:C.O7().optional(),cursor:P.ra.optional(),excludeEvents:C.O7().optional(),locale:C.Z_().optional(),order:C.Z_().optional(),pageSize:aD.default(20),recurrence:C.Km(["daily","weekly","monthly"]).optional(),slug:C.IX(C.Z_()).optional()}),uW=C.Ry({id:C.Z_(),locale:C.Z_().optional()});function uY(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,uV);return aL(t=>{let r=aG(t,n);return e.gamma.get("/series",{params:a6({...i,limit:r.pageSize+1,offset:r.offset},a5())}).andThen(aq(t0)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function uX(e,t){let r=az(t,uW);return(0,O.Wg)(e.gamma.get(`series/${r.id}`,{params:a6({locale:r.locale},a5())}).andThen(aq(tQ)))}async function uJ(e){return(0,O.Wg)(e.gamma.get("/sports").andThen(aq(tT)))}async function uQ(e){return(0,O.Wg)(e.gamma.get("/sports/market-types").andThen(aq(t_)))}async function u0(e,t){return function(e){let t;async function r(){void 0===t&&(t=Promise.all(e.map(e=>e.close())).then(()=>{})),await t}let n=aU(...e);return{close:r,[Symbol.asyncIterator]:()=>n[Symbol.asyncIterator]()}}(await Promise.all(t.map(t=>(function(e,t){switch(t.topic){case"market":return e.webSockets.clobMarket.subscribe(t);case"sports":return e.webSockets.sports.subscribe(t);case"comments":case"prices.crypto.binance":case"prices.crypto.chainlink":case"prices.equity.pyth":return e.webSockets.rtds.subscribe(t);case"user":return(0,O.kG)(e.isSecureClient(),"A 'user' subscription requires a secure client instance."),e.webSockets.clobUser.subscribe(t)}})(e,t))))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b),(0,k.k)(k.e,k.d,k.c,k.b);var u1=C.Ry({ascending:C.O7().optional(),cursor:P.ra.optional(),includeTemplate:C.O7().optional(),isCarousel:C.O7().optional(),locale:C.Z_().optional(),order:C.Z_().optional(),pageSize:aD.default(20)}),u2=C.G0([C.Ry({id:C.Z_(),includeTemplate:C.O7().optional(),locale:C.Z_().optional()}),C.Ry({slug:C.Z_(),locale:C.Z_().optional()})]),u3=C.Ry({id:C.Z_(),omitEmpty:C.O7().optional(),status:C.Km(["active","closed","all"]).optional()}),u6=C.Ry({slug:C.Z_()}),u5=C.Ry({id:C.Z_(),locale:C.Z_().optional(),omitEmpty:C.O7().optional(),status:C.Km(["active","closed","all"]).optional()}),u8=C.Ry({locale:C.Z_().optional(),slug:C.Z_(),omitEmpty:C.O7().optional(),status:C.Km(["active","closed","all"]).optional()});function u7(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,u1);return aL(t=>{let r=aG(t,n);return e.gamma.get("/tags",{params:a6({...i,limit:r.pageSize+1,offset:r.offset},a5())}).andThen(aq(tY)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}async function u4(e,t){let r=az(t,u2);return"id"in r?(0,O.Wg)(e.gamma.get(`tags/${r.id}`,{params:a6({includeTemplate:r.includeTemplate,locale:r.locale},a5())}).andThen(aq(tV))):(0,O.Wg)(e.gamma.get(`tags/slug/${r.slug}`,{params:a6({locale:r.locale},a5())}).andThen(aq(tV)))}async function u9(e,t){if("id"in t){let r=az(t,u3);return(0,O.Wg)(e.gamma.get(`tags/${r.id}/related-tags`,{params:a6({omitEmpty:r.omitEmpty,status:r.status},a5())}).andThen(aq(tX)))}let r=az(t,u6);return(0,O.Wg)(e.gamma.get(`tags/slug/${r.slug}/related-tags`).andThen(aq(tX)))}async function de(e,t){if("id"in t){let r=az(t,u5);return(0,O.Wg)(e.gamma.get(`tags/${r.id}/related-tags/tags`,{params:a6({locale:r.locale,omitEmpty:r.omitEmpty,status:r.status},a5())}).andThen(aq(tJ)))}let r=az(t,u8);return(0,O.Wg)(e.gamma.get(`tags/slug/${r.slug}/related-tags/tags`,{params:a6({locale:r.locale,omitEmpty:r.omitEmpty,status:r.status},a5())}).andThen(aq(tJ)))}(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a),(0,k.k)(k.e,k.d,k.c,k.b,k.a);var dt=C.Ry({abbreviation:C.IX(C.Z_()).optional(),ascending:C.O7().optional(),cursor:P.ra.optional(),league:C.IX(C.Z_()).optional(),name:C.IX(C.Z_()).optional(),order:C.Z_().optional(),pageSize:aD.default(20),providerId:C.IX(C.Rx().int()).optional()});function dr(e,t={}){let{cursor:r,pageSize:n,...i}=az(t,dt);return aL(t=>{let r=aG(t,n);return e.gamma.get("/teams",{params:a6({...i,limit:r.pageSize+1,offset:r.offset},a5({providerId:"provider_id"}))}).andThen(aq(tC)).map(e=>{let t=e.length>r.pageSize;return{items:e.slice(0,r.pageSize),hasMore:t,nextCursor:t?aH({offset:r.offset+r.pageSize,pageSize:r.pageSize}):void 0}})},r)}(0,k.k)(k.e,k.d,k.c,k.b,k.a);var dn=C.Ry({amount:C.Kv(),metadata:su.optional(),recipientAddress:P.W,tokenAddress:P.W});async function di(e,t){let r=az(t,dn);return(async function*(){return e.account.walletType===t1.EOA?o8((yield{kind:"sendErc20TransferTransaction",request:o9(e.environment.chainId,o2(r.tokenAddress,r.recipientAddress,r.amount))})):yield*await sm(e,{calls:[o2(r.tokenAddress,r.recipientAddress,r.amount)],metadata:r.metadata??`Transfer ${r.amount} of ${r.tokenAddress} to ${r.recipientAddress}`})}).call(null)}function da(e,t){return di(e,t).then(o7(e.signer))}(0,k.k)(k.a),(0,k.k)(k.h,k.e,k.d,k.j,k.c,k.b,k.a);var ds=C.dj(e=>"string"==typeof e?e.toUpperCase():e,P.pa),dl=((m=dl||{}).Matched="TRADE_STATUS_MATCHED",m.MatchedNotBroadcasted="TRADE_STATUS_MATCHED_NOT_BROADCASTED",m.Mined="TRADE_STATUS_MINED",m.Confirmed="TRADE_STATUS_CONFIRMED",m.Retrying="TRADE_STATUS_RETRYING",m.Failed="TRADE_STATUS_FAILED",m),dc=C.dj(e=>"string"!=typeof e||e.startsWith("TRADE_STATUS_")?e:Object.values(dl).find(t=>t.slice(13)===e)??e,C.Km(dl)),du=((b=du||{}).Live="LIVE",b.Matched="MATCHED",b.Delayed="DELAYED",b.Unmatched="UNMATCHED",b.Canceled="CANCELED",b),dd=C.Km(du),df=C.Ry({price:P.Ca,size:P.Ca}),dp=C.Z_().regex(/^\d+$/).transform(e=>(0,P.u)(new Date(1e3*Number(e)).toISOString())),dh=C.Z_().regex(/^\d+$/).transform(e=>"0"===e?void 0:(0,P.u)(new Date(1e3*Number(e)).toISOString())),dm=C.Ry({event_type:C.i0("book"),market:C.Z_(),asset_id:P.za,bids:C.IX(df),asks:C.IX(df),hash:C.Z_().nullish(),timestamp:P.Z.nullish(),min_order_size:P.Ca.nullish(),tick_size:P.Ca.nullish(),neg_risk:C.O7().nullish(),last_trade_price:P.Ca.nullish()}).transform(({event_type:e,asset_id:t,min_order_size:r,tick_size:n,neg_risk:i,last_trade_price:a,...o})=>({topic:"market",type:e,payload:{...o,tokenId:t,minOrderSize:r,tickSize:n,negRisk:i,lastTradePrice
145:a}})),db=C.Ry({asset_id:P.za,price:P.Ca,size:P.Ca,side:ds,hash:C.Z_().nullish(),best_bid:P.Ca.nullish(),best_ask:P.Ca.nullish()}).transform(({asset_id:e,best_bid:t,best_ask:r,...n})=>({...n,tokenId:e,bestBid:t,bestAsk:r})),dy=C.Ry({event_type:C.i0("price_change"),market:C.Z_(),price_changes:C.IX(db),timestamp:P.Z.nullish()}).transform(({event_type:e,price_changes:t,...r})=>({topic:"market",type:e,payload:{...r,priceChanges:t}})),dg=C.Ry({event_type:C.i0("last_trade_price"),market:C.Z_(),asset_id:P.za,price:P.Ca,size:P.Ca.nullish(),fee_rate_bps:P.Ca.nullish(),side:ds,timestamp:P.Z.nullish(),transaction_hash:C.Z_().nullish()}).transform(({event_type:e,asset_id:t,fee_rate_bps:r,transaction_hash:n,...i})=>({topic:"market",type:e,payload:{...i,tokenId:t,feeRateBps:r,transactionHash:n}})),dv=C.Ry({event_type:C.i0("tick_size_change"),market:C.Z_(),asset_id:P.za,old_tick_size:P.Ca.nullish(),new_tick_size:P.Ca,timestamp:P.Z.nullish()}).transform(({event_type:e,asset_id:t,old_tick_size:r,new_tick_size:n,...i})=>({topic:"market",type:e,payload:{...i,tokenId:t,oldTickSize:r,newTickSize:n}})),dw=C.Ry({event_type:C.i0("best_bid_ask"),market:C.Z_(),asset_id:P.za,best_bid:P.Ca.nullish(),best_ask:P.Ca.nullish(),spread:P.Ca.nullish(),timestamp:P.Z.nullish()}).transform(({event_type:e,asset_id:t,best_bid:r,best_ask:n,...i})=>({topic:"market",type:e,payload:{...i,tokenId:t,bestBid:r,bestAsk:n}})),dE=C.Ry({id:C.Z_(),ticker:C.Z_().nullish(),slug:C.Z_().nullish(),title:C.Z_().nullish(),description:C.Z_().nullish()}),dx=C.Ry({event_type:C.i0("new_market"),id:C.Z_(),question:C.Z_().nullish(),market:C.Z_(),slug:C.Z_().nullish(),description:C.Z_().nullish(),assets_ids:C.IX(P.za).nullish(),outcomes:C.IX(C.Z_()).nullish(),event_message:dE.nullish(),timestamp:P.Z.nullish(),tags:C.IX(C.Z_()).nullish(),condition_id:P.U.nullish(),active:C.O7().nullish(),clob_token_ids:C.IX(C.Z_()).nullish(),sports_market_type:C.Z_().nullish(),line:P.Ca.nullish(),game_start_time:P.ba.nullish(),order_price_min_tick_size:P.Ca.nullish(),group_item_title:C.Z_().nullish(),taker_base_fee:P.Ca.nullish(),fees_enabled:C.O7().nullish(),fee_schedule:C._4().nullish()}).transform(({event_type:e,assets_ids:t,event_message:r,condition_id:n,clob_token_ids:i,sports_market_type:a,game_start_time:o,order_price_min_tick_size:s,group_item_title:l,taker_base_fee:c,fees_enabled:u,fee_schedule:d,...f})=>({topic:"market",type:e,payload:{...f,tokenIds:t,eventMessage:r,conditionId:n,clobTokenIds:i,sportsMarketType:a,gameStartTime:o,orderPriceMinTickSize:s,groupItemTitle:l,takerBaseFee:c,feesEnabled:u,feeSchedule:d}})),dA=C.Ry({event_type:C.i0("market_resolved"),id:C.Z_(),market:C.Z_(),assets_ids:C.IX(P.za).nullish(),winning_asset_id:P.za.nullish(),winning_outcome:C.Z_().nullish(),event_message:dE.nullish(),timestamp:P.Z.nullish(),tags:C.IX(C.Z_()).nullish()}).transform(({event_type:e,assets_ids:t,winning_asset_id:r,winning_outcome:n,event_message:i,...a})=>({topic:"market",type:e,payload:{...a,tokenIds:t,winningTokenId:r,winningOutcome:n,eventMessage:i}})),dk=((y=dk||{}).Placement="PLACEMENT",y.Update="UPDATE",y.Cancellation="CANCELLATION",y),dP=C.Km(dk),dC=C.Ry({event_type:C.i0("order"),id:C.Z_(),owner:C.Z_(),market:C.Z_(),asset_id:P.za,side:ds,order_owner:C.Z_().nullish(),original_size:P.Ca,size_matched:P.Ca,price:P.Ca,associate_trades:C.IX(C.Z_()).nullish(),outcome:C.Z_().nullish(),type:dP,created_at:dp.nullish(),expiration:dh.nullish(),order_type:P.qa.nullish(),status:dd.nullish(),maker_address:C.Z_().nullish(),timestamp:P.Z}).transform(({event_type:e,type:t,asset_id:r,order_owner:n,original_size:i,size_matched:a,associate_trades:o,created_at:s,expiration:l,order_type:c,maker_address:u,...d})=>({topic:"user",type:e,payload:{...d,orderEventType:t,tokenId:r,orderOwner:n,originalSize:i,sizeMatched:a,associateTrades:o,createdAt:s,expiresAt:l,orderType:c,makerAddress:u}})),dT=C.Ry({order_id:C.Z_(),owner:C.Z_(),maker_address:C.Z_().nullish(),matched_amount:P.Ca,price:P.Ca,fee_rate_bps:P.Ca.nullish(),asset_id:P.za,outcome:C.Z_().nullish(),outcome_index:C.Rx().int().nullish(),side:ds}).transform(({order_id:e,maker_address:t,matched_amount:r,fee_rate_bps:n,asset_id:i,outcome_index:a,...o})=>({...o,orderId:e,makerAddress:t,matchedAmount:r,feeRateBps:n,tokenId:i,outcomeIndex:a})),d_=C.Ry({event_type:C.i0("trade"),type:C.i0("TRADE"),id:C.Z_(),taker_order_id:C.Z_(),market:C.Z_(),asset_id:P.za,side:ds,size:P.Ca,fee_rate_bps:P.Ca.nullish(),price:P.Ca,status:dc,match_time:dp.nullish(),matchtime:dp.nullish(),last_update:dp.nullish(),outcome:C.Z_().nullish(),owner:C.Z_(),trade_owner:C.Z_().nullish(),maker_address:C.Z_().nullish(),transaction_hash:C.Z_().nullish(),bucket_index:C.Rx().int().nullish(),maker_orders:C.IX(dT).nullish(),trader_side:C.G0([C.i0("TAKER"),C.i0("MAKER")]).nullish(),timestamp:P.Z}).transform(({event_type:e,type:t,taker_order_id:r,asset_id:n,fee_rate_bps:i,match_time:a,matchtime:o,last_update:s,trade_owner:l,maker_address:c,transaction_hash:u,bucket_index:d,maker_orders:f,trader_side:p,...h})=>({topic:"user",type:e,payload:{...h,takerOrderId:r,tokenId:n,feeRateBps:i,matchedAt:a??o,updatedAt:s,tradeOwner:l,makerAddress:c,transactionHash:u,bucketIndex:d,makerOrders:f,traderSide:p}})),dO=(C.VK("event_type",[dm,dy,dg,dv]),C.VK("event_type",[dw,dx,dA]),C.VK("event_type",[dm,dy,dg,dv,dw,dx,dA])),dS=C.VK("event_type",[dC,d_]),dI=C.Ry({id:C.Z_(),body:C.Z_().nullish(),parentEntityType:P.oa.nullish(),parentEntityID:C.Rx().int().nullish(),parentCommentID:C.Z_().nullish(),userAddress:C.Z_().nullish(),replyAddress:C.Z_().nullish(),createdAt:C.Z_().nullish(),updatedAt:C.Z_().nullish(),media:C.IX(tD).nullish(),profile:tR.nullish(),reactions:C.IX(tz).nullish(),reportCount:C.Rx().int().nullish(),reactionCount:C.Rx().int().nullish(),tradeAsset:C.Z_().nullish()}),dB=C.Ry({topic:C.i0("comments"),type:C.i0("comment_created"),timestamp:P.X,payload:tF}
145),dj=C.Ry({topic:C.i0("comments"),type:C.i0("comment_removed"),timestamp:P.X,payload:dI}),dM=C.Ry({topic:C.i0("comments"),type:C.i0("reaction_created"),timestamp:P.X,payload:tz}),dR=C.Ry({topic:C.i0("comments"),type:C.i0("reaction_removed"),timestamp:P.X,payload:tz}),dN=C.Ry({symbol:C.Z_(),timestamp:P.X,value:P.Da}),dU=C.i0("crypto_prices"),dz=C.i0("crypto_prices_chainlink"),dD=dU.transform(()=>"prices.crypto.binance"),dF=dz.transform(()=>"prices.crypto.chainlink"),dL=C.Ry({topic:dD,type:C.i0("update"),timestamp:P.X,payload:dN}),dH=C.Ry({topic:dF,type:C.i0("update"),timestamp:P.X,payload:dN}),dG=C.VK("topic",[dL,dH]),dq=C.Ry({symbol:C.Z_(),value:P.Da,full_accuracy_value:P.Ca.nullish(),timestamp:P.X,received_at:P.X.nullish(),is_carried_forward:C.O7().nullish()}).transform(({full_accuracy_value:e,received_at:t,is_carried_forward:r,value:n,...i})=>({...i,value:e??n,receivedAt:t,isCarriedForward:r})),d$=C.Ry({timestamp:C.Rx(),value:P.Da}),dK=C.Ry({symbol:C.Z_(),data:C.IX(d$)}),dZ=C.i0("equity_prices").transform(()=>"prices.equity.pyth"),dV=C.Ry({topic:dZ,type:C.i0("update"),timestamp:P.X,payload:dq}),dW=C.Ry({topic:dZ,type:C.i0("subscribe"),timestamp:P.X,payload:dK}),dY=C.VK("type",[dV,dW]),dX=C.VK("type",[dB,dj,dM,dR]),dJ=C.VK("topic",[dX,dG,dY]),dQ=C.Ry({gameId:C.Rx().int(),sportradarGameId:C.Z_().nullish(),slug:C.Z_().nullish(),leagueAbbreviation:C.Z_(),homeTeam:C.Z_().nullish(),awayTeam:C.Z_().nullish(),status:C.Z_(),live:C.O7(),ended:C.O7(),score:C.Z_(),period:C.Z_().nullish(),elapsed:C.Z_().nullish(),finishedTimestamp:P.ba.nullish(),finished_timestamp:P.ba.nullish(),turn:C.Z_().nullish()}).transform(({finishedTimestamp:e,finished_timestamp:t,...r})=>({...r,finishedAt:e??t})).transform(e=>({topic:"sports",type:"sport_result",payload:e}));class d0{buffer;mask;top;btm;next;constructor(e){if(!(e>0)||(e-1&e)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}isEmpty(){return void 0===this.buffer[this.btm]}}class d1{size;hwm;head;tail;constructor(e={}){this.hwm=e.splitLimit??16,this.head=new d0(this.hwm),this.tail=this.head,this.size=0}calculateSize(e){return e?.byteLength!=null?e.byteLength:1}push(e){if(e?.value!=null&&(this.size+=this.calculateSize(e.value)),!this.head.push(e)){let t=this.head;this.head=t.next=new d0(2*this.head.buffer.length),this.head.push(e)}}shift(){let e=this.tail.shift();if(void 0===e&&null!=this.tail.next){let t=this.tail.next;this.tail.next=null,this.tail=t,e=this.tail.shift()}return e?.value!=null&&(this.size-=this.calculateSize(e.value)),e}isEmpty(){return this.head.isEmpty()}}class d2 extends Error{type;code;constructor(e,t){super(e??"The operation was aborted"),this.type="aborted",this.co
145de=t??"ABORT_ERR"}}function d3(e={}){return function(e,t){let r,n,i;let a=(t=t??{}).onEnd,o=new d1,s=aB(),l=e=>null!=n?n(e):(o.push(e),r),c=e=>(o=new d1,null!=n)?n({error:e}):(o.push({error:e}),r),u=e=>{if(i)return r;if(t?.objectMode!==!0&&e?.byteLength==null)throw Error("objectMode was not true but tried to push non-Uint8Array value");return l({done:!1,value:e})},d=e=>i?r:(i=!0,null!=e?c(e):l({done:!0}));if(r={[Symbol.asyncIterator](){return this},next:async()=>{try{if(!o.isEmpty())return e(o);if(i)return{done:!0};return await new Promise((t,i)=>{n=a=>{n=null,o.push(a);try{t(e(o))}catch(e){i(e)}return r}})}finally{o.isEmpty()&&queueMicrotask(()=>{s.resolve(),s=aB()})}},return:()=>(o=new d1,d(),{done:!0}),throw:e=>(d(e),{done:!0}),push:u,end:d,get readableLength(){return o.size},onEmpty:async e=>{let t,r;let n=e?.signal;if(n?.throwIfAborted(),!o.isEmpty()){null!=n&&(t=new Promise((e,t)=>{r=()=>{t(new d2)},n.addEventListener("abort",r)}));try{await Promise.race([s.promise,t])}finally{null!=r&&null!=n&&n?.removeEventListener("abort",r)}}}},null==a)return r;let f=r;return r={[Symbol.asyncIterator](){return this},next:()=>f.next(),throw:e=>(f.throw(e),null!=a&&(a(e),a=void 0),{done:!0}),return:()=>(f.return(),null!=a&&(a(),a=void 0),{done:!0}),push:u,end:e=>(f.end(e),null!=a&&(a(e),a=void 0),r),get readableLength(){return f.readableLength},onEmpty:e=>f.onEmpty(e)}}(e=>{let t=e.shift();if(null==t)return{done:!0};if(null!=t.error)throw t.error;return{done:!0===t.done,value:t.value}},e)}var d6=((g=d6||{}).Buy="BUY",g.Sell="SELL",g),d5=((v=d5||{}).Yes="YES",v.No="NO",v),d8=((w=d8||{}).Confirm="CONFIRM",w.Decline="DECLINE",w),d7=((E=d7||{}).Matched="MATCHED",E.Mined="MINED",E.Confirmed="CONFIRMED",E.Retrying="RETRYING",E.Failed="FAILED",E),d4=((x=d4||{}).Notional="notional",x.Shares="shares",x),d9=((A=d9||{}).AddressMismatch="ADDRESS_MISMATCH",A.CompetitionWindowClosed="COMPETITION_WINDOW_CLOSED",A.ContradictoryLegs="CONTRADICTORY_LEGS",A.ExpiredRfq="EXPIRED_RFQ",A.InvalidAcceptance="INVALID_ACCEPTANCE",A.InvalidConfirmation="INVALID_CONFIRMATION",A.InvalidExecutionResult="INVALID_EXECUTION_RESULT",A.InvalidIdentity="INVALID_IDENTITY",A.InvalidMessage="INVALID_MESSAGE",A.InvalidQuote="INVALID_QUOTE",A.InvalidRfq="INVALID_RFQ",A.InvalidRfqState="INVALID_RFQ_STATE",A.InvalidRole="INVALID_ROLE",A.LegMetadataUnavailable="LEG_METADATA_UNAVAILABLE",A.MakerAlreadyResponded="MAKER_ALREADY_RESPONDED",A.MakerNotRequired="MAKER_NOT_REQUIRED",A.QuoteMismatch="QUOTE_MISMATCH",A.QuoteUnavailable="QUOTE_UNAVAILABLE",A.RateLimited="RATE_LIMITED",A.RequestFailed="REQUEST_FAILED",A.ServiceUnavailable="SERVICE_UNAVAILABLE",A.TradeSubmissionFailed="TRADE_SUBMISSION_FAILED",A.Unauthenticated="UNAUTHENTICATED",A.UnauthorizedRole="UNAUTHORIZED_ROLE",A.UnknownRfq="UNKNOWN_RFQ",A),fe=C.Km(d6),ft=C.i0("YES"),fr=C.Km(d8),fn=C.Km(d7),fi=(C.Km(d4),C.Km(d9)),fa=C.Z_().regex(/^\d+$/).transform(e=>{let t=BigInt(e),r=(t%1000000n).toString().padStart(6,"0").replace(/0+$/,"");return(0,P.N)(`${t/1000000n}${""===r?"":`.${r}`}`)}),fo=C.VK("unit",[C.Ry({unit:C.i0("notional"),value_e6:fa}),C.Ry({unit:C.i0("shares"),value_e6:fa})]).transform(e=>({unit:e.unit,value:e.value_e6})),fs=C.Ry({type:C.i0("auth"),success:C.O7(),address:P.W.optional(),role:C.Z_().optional(),error:C.Z_().optional()}),fl=C.Ry({type:C.i0("RFQ_REQUEST"),rfq_id:P.va,requestor_public_id:P.xa,leg_position_ids:C.IX(P.sa),condition_id:P.U,yes_position_id:P.sa,no_position_id:P.sa,direction:fe,side:ft,requested_size:fo,submission_deadline:P.X}).transform(e=>({conditionId:e.condition_id,direction:e.direction,legPositionIds:e.leg_position_ids,noPositionId:e.no_position_id,requestorPublicId:e.requestor_public_id,requestedSize:e.requested_size,rfqId:e.rfq_id,side:e.side,submissionDeadline:e.submission_deadline,type:"quote_request",yesPositionId:e.yes_position_id})),fc=C.Ry({type:C.i0("ACK_RFQ_QUOTE"),rfq_id:P.va,quote_id:P.wa}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_ack"})),fu=C.Ry({type:C.i0("ACK_RFQ_QUOTE_CANCEL"),rfq_id:P.va,quote_id:P.wa}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_cancel_ack"})),fd=C.Ry({type:C.i0("RFQ_CONFIRMATION_REQUEST"),rfq_id:P.va,quote_id:P.wa,signer_address:P.W,maker_address:P.W,signature_type:_,leg_position_ids:C.IX(P.sa),condition_id:P.U,yes_position_id:P.sa,no_position_id:P.sa,direction:fe,side:ft,fill_size_e6:fa,price_e6:fa,confirm_by:P.X}).transform(e=>({conditionId:e.condition_id,confirmBy:e.confirm_by,direction:e.direction,fillSize:e.fill_size_e6,legPositionIds:e.leg_position_ids,makerAddress:e.maker_address,noPositionId:e.no_position_id,price:e.price_e6,quoteId:e.quote_id,rfqId:e.rfq_id,side:e.side,signatureType:e.signature_type,signerAddress:e.signer_address,type:"confirmation_request",yesPositionId:e.yes_position_id})),ff=C.Ry({type:C.i0("ACK_RFQ_CONFIRMATION_RESPONSE"),rfq_id:P.va,quote_id:P.wa,decision:fr}).transform(e=>({decision:e.decision,quoteId:e.quote_id,rfqId:e.rfq_id,type:"confirmation_ack"})),fp=C.Ry({type:C.i0("RFQ_EXECUTION_UPDATE"),rfq_id:P.va,status:fn,tx_hash:P.Ba.optional()}).transform(e=>({rfqId:e.rfq_id,status:e.status,...void 0===e.tx_hash?{}:{txHash:e.tx_hash},type:"execution_update"})),fh=C.Ry({type:C.i0("RFQ_ERROR"),request_type:C.Z_().optional(),rfq_id:P.va.optional(),quote_id:P.wa.optional(),code:fi,error:C.Z_(),request:C._4().optional()}).transform(e=>({code:e.code,message:e.error,quoteId:e.quote_id,requestType:e.request_type,rfqId:e.rfq_id,type:"rfq_error"})),fm=C.G0([fs,fl,fc,fu,fd,ff,fp,fh]),fb=C.Ry({POLY_BUILDER_API_KEY:C.Z_().min(1),POLY_BUILDER_TIMESTAMP:C.Z_().min(1),POLY_BUILDER_PASSPHRASE:C.Z_().min(1),POLY_BUILDER_SIGNATURE:C.Z_().min(1)});function fy(e){return new fg(e)}var fg=class{#g;constructor(e){this.#g=e}get isBuilderKey(){return!0}get supportGasless(){return!0}async authorize(e){try{return await this.#v(e)}catch(e){throw k.j.fromError(e,"Could not authorize the builder-authenticated request")}}async #w(){let e=this.#g.headers,t=new Headers("function"==typeof e?await e():e);return t.set("content-type","application/json"),t}async #v(e){let t=await fetch(this.#g.url,{body:JSON.stringify({body:e.body,method:e.method,path:e.path}),credentials:this.#g.credentials,headers:await this.#w(),method:"POST",mode:"cors"});if(!t.ok)throw Error(`Remote signer rejected request with status ${t.status}`);return fb.parse(await t.json())}};
145function fv(e,t={}){return{...t,user:t.user??e.account.wallet}}function fw(e){let t={listPositions:ue.bind(null,e),listClosedPositions:ut.bind(null,e),listComboPositions:ur.bind(null,e),fetchPortfolioValue:un.bind(null,e),fetchTradedMarketCount:ui.bind(null,e),downloadAccountingSnapshot:ua.bind(null,e),listMarketPositions:l0.bind(null,e),listActivity:oS.bind(null,e)};return e.isPublicClient()?t:{...t,listPositions:t=>ue(e,fv(e,t)),listClosedPositions:t=>ut(e,fv(e,t)),listComboPositions:t=>ur(e,fv(e,t)),fetchPortfolioValue:t=>un(e,fv(e,t)),fetchTradedMarketCount:t=>ui(e,fv(e,t)),downloadAccountingSnapshot:t=>ua(e,fv(e,t)),listActivity:t=>oS(e,fv(e,t)),listAccountTrades:oo.bind(null,e),fetchNotifications:ol.bind(null,e),dropNotifications:oc.bind(null,e),fetchClosedOnlyMode:a9.bind(null,e)}}function fE(e){return{listBuilderTrades:sH.bind(null,e),listBuilderLeaderboard:lM.bind(null,e),fetchBuilderVolume:lR.bind(null,e),listTraderLeaderboard:lN.bind(null,e)}}function fx(e){return{fetchEventLiveVolume:lS.bind(null,e),fetchMidpoint:sq.bind(null,e),fetchMidpoints:sK.bind(null,e),fetchPrice:s6.bind(null,e),fetchPrices:s8.bind(null,e),fetchOrderBook:s4.bind(null,e),fetchOrderBooks:le.bind(null,e),fetchSpread:lr.bind(null,e),fetchSpreads:li.bind(null,e),fetchLastTradePrice:lo.bind(null,e),fetchLastTradePrices:ll.bind(null,e),fetchPriceHistory:lu.bind(null,e),estimateMarketPrice:cn.bind(null,e),listOpenInterest:lQ.bind(null,e),listMarketHolders:lJ.bind(null,e),listTrades:oO.bind(null,e)}}function fA(e){return{listEvents:lT.bind(null,e),fetchEvent:l_.bind(null,e),fetchEventTags:lO.bind(null,e),listMarkets:lW.bind(null,e),fetchMarket:lY.bind(null,e),fetchMarketTags:lX.bind(null,e),listSeries:uY.bind(null,e),fetchSeries:uX.bind(null,e),listTags:u7.bind(null,e),fetchTag:u4.bind(null,e),fetchRelatedTags:u9.bind(null,e),fetchRelatedTagResources:de.bind(null,e),search:uZ.bind(null,e),listSports:uJ.bind(null,e),fetchSportsMarketTypes:uQ.bind(null,e),listTeams:dr.bind(null,e),fetchPublicProfile:uL.bind(null,e),listComments:lv.bind(null,e),fetchCommentsById:lw.bind(null,e),listCommentsByUserAddress:lE.bind(null,e)}}function fk(e){let t={listCurrentRewards:lf.bind(null,e),listMarketRewards:lh.bind(null,e)};return e.isPublicClient()?t:{...t,fetchOrderScoring:om.bind(null,e),fetchOrdersScoring:oy.bind(null,e),listUserEarningsForDay:ov.bind(null,e),fetchTotalEarningsForUserForDay:ow.bind(null,e),listUserEarningsAndMarketsConfig:ox.bind(null,e),fetchRewardPercentages:oA.bind(null,e)}}function fP(e){return e.isSecureClient()?{subscribe:t=>u0(e,t)}:{subscribe:t=>u0(e,t)}}function fC(e){return e.isSecureClient()?{...fw(e),...fE(e),...fx(e),...fA(e),...fk(e),openRfqSession:()=>u$(e),...fP(e),createMarketOrder:cV.bind(null,e),placeMarketOrder:cW.bind(null,e),createLimitOrder:cY.bind(null,e),placeLimitOrder:cX.bind(null,e),postOrder:co(e),postOrders:async function(t){let r=az(t,ca).map(t=>cs(e,t));return(0,O.Wg)(e.secureClob.post("/orders",{json:r}).andThen(aq(eN)))},cancelOrder:l8.bind(null,e),cancelOrders:l7.bind(null,e),cancelAll:l4.bind(null,e),cancelMarketOrders:l9.bind(null,e),listOpenOrders:ot.bind(null,e),fetchOrder:on.bind(null,e),isGaslessReady:()=>Promise.resolve(!0),setupTradingApprovals:sS.bind(null,e),approveErc20:sP.bind(null,e),approveErc1155ForAll:s_.bind(null,e),transferErc20:da.bind(null,e),splitPosition:uy.bind(null,e),mergePositions:uP.bind(null,e),redeemPositions:uM.bind(null,e)}:{...fw(e),...fE(e),...fx(e),...fA(e),...fk(e),...fP(e)}}var fT={name:"production",chainId:137,rpc:"https://polygon.drpc.org",walletDerivation:{depositWalletFactory:(0,O.ng)("0x00000000000Fb5C9ADea0298D729A0CB3823Cc07"),depositWalletBeacon:(0,O.ng)("0x7A18EDfe055488A3128f01F563e5B479D92ffc3a"),depositWalletImplementation:(0,O.ng)("0x58CA52ebe0DadfdF531Cde7062e76746de4Db1eB"),proxyFactory:(0,O.ng)("0xaB45c5A4B0c941a2F231C04C3f49182e1A254052"),proxyImplementation:(0,O.ng)("0x44e999d5c2F66Ef0861317f9A4805AC2e90aEB4f"),safeFactory:(0,O.ng)("0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b"),safeInitCodeHash:"0x2bce2127ff07fb632d16c8347c4ebf501f4841168bed00d9e6ef715ddb6fcecf"},collateralToken:(0,O.ng)("0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"),conditionalTokens:(0,O.ng)("0x4D97DCd97eC945f40cF65F87097ACe5EA0476045"),negRiskAdapter:(0,O.ng)("0xd91E80cF2E7be2e
145162c6513ceD06f1dD0dA35296"),collateralAdapter:(0,O.ng)("0xAdA100Db00Ca00073811820692005400218FcE1f"),negRiskCollateralAdapter:(0,O.ng)("0xadA2005600Dec949baf300f4C6120000bDB6eAab"),standardExchange:(0,O.ng)("0xE111180000d2663C0091e4f400237545B87B996B"),negRiskExchange:(0,O.ng)("0xe2222d279d744050d28e00520010520000310F59"),exchangeV3:(0,O.ng)("0xe3333700cA9d93003F00f0F71f8515005F6c00Aa"),protocolV2Router:(0,O.ng)("0x12121212006e4CD160D18e3f00711DA5c3372600"),combinatorialModule:(0,O.ng)("0x30000034706c7d8e12009dab006be20000c031a8"),positionManager:(0,O.ng)("0x006F54F7f9A22e0000CC2AB60031000000ae9fEF"),autoRedeemOperator:(0,O.ng)("0xa1200000d0002264C9a1698e001292D00E1b00af"),safeMultisend:(0,O.ng)("0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"),relayHub:(0,O.ng)("0xD216153c06E857cD7f72665E0aF1d7D82172F494"),clob:"https://clob.polymarket.com",clobMarketWs:"wss://ws-subscriptions-clob.polymarket.com/ws/market",clobUserWs:"wss://ws-subscriptions-clob.polymarket.com/ws/user",relayer:"https://relayer-v2.polymarket.com",gamma:"https://gamma-api.polymarket.com",data:"https://data-api.polymarket.com",rtdsWs:"wss://ws-live-data.polymarket.com",rfqQuoterWs:"wss://combos-rfq-gateway-quoter-preprod.polymarket.sh/ws/rfq",sportsWs:"wss://sports-api.polymarket.com/ws",relayerMaxPolls:100,relayerPollFrequencyMs:2e3};async function f_(e,t,r,n,i){let a=`${t}${r}${n}`;void 0!==i&&(a+=i);let o=await globalThis.crypto.subtle.importKey("raw",function(e){let t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/[^A-Za-z0-9+/=]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)r[e]=t.charCodeAt(e);return r.buffer}(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]);return(function(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r)})(await globalThis.crypto.subtle.sign("HMAC",o,new TextEncoder().encode(a))).replace(/\+/g,"-").replace(/\//g,"_")}var fO=class{#g;#w;constructor({root:e,resolveHeaders:t}){this.#g=iM.create({prefixUrl:e,throwHttpErrors:!1}),this.#w=t}get(e,t={}){return this.#E("GET",e,t)}post(e,t={}){return this.#E("POST",e,t)}del(e,t={}){return this.#E("DELETE",e,t)}#v(e){return e.startsWith("/")?e.slice(1):e}#E(e,t,r){return this.#x(this.#A(e,t,r))}async #A(e,t,r){let n=this.#k(e,t,r),i=await this.#w?.(n),a=this.#P(n.headers,i);return void 0===n.body||a.has("content-type")||a.set("content-type","application/json"),this.#g(this.#v(t),{body:n.body,headers:a,method:e,searchParams:n.params})}#k(e,t,r){return{body:"json"in r?this.#C(r.json):void 0,headers:r.headers,json:"json"in r?r.json:void 0,method:e,params:"params"in r?r.params:void 0,path:t}}#C(e){if(void 0!==e)return JSON.stringify(e)}#P(...e){let t=new Headers;for(let r of e)if(void 0!==r)for(let[e,n]of new Headers(r).entries())t.set(e,n);return t}#x(e){return eK.CX.fromPromise(e.then(async e=>{if(e.ok)return e;if(429===e.status)throw new k.e(`Request to ${e.url} was rate limited`);let t=await this.#T(e);throw new k.d(t,{status:e.status})}),e=>e instanceof k.e||e instanceof k.d?e:k.c.fromError(e))}async #T(e){let t=e.headers.get("content-type")?.toLowerCase();if(t?.includes("application/json")){let{error:t}=await e.clone().json().catch(()=>({}));if(t)return`${String(t)} (${e.url})`}if(t?.includes("text/plain")){let t=await e.clone().text().then(e=>e.trim(),()=>"");if(t)return`${t} (${e.url})`}return e.headers.get("server")?.toLowerCase()?.includes("cloudflare")?`Request to ${e.url} was blocked by Cloudflare with status ${e.status}`:t?.includes("text/html")||t?.includes("application/xhtml+xml")?`Request to ${e.url} failed with status ${e.status} and an unexpected HTML response body`:`Request to ${e.url} failed with status ${e.status} and unreadable response body`}};function fS(e,t){let r;return{close:()=>(void 0===r&&(r=Promise.resolve(e.return()).then(()=>t())),r),[Symbol.asyncIterator]:()=>e[Symbol.asyncIterator]()}}var fI=class{#g=0;#w;start(e){this.stop(),this.#g=Date.now(),this.#w=(0,O.fz)(()=>{e("PING")},1e4)}handleMessage(e){return"PONG"===e&&(this.#g=Date.now(),!0)}isStale(e){return e-this.#g>3e4}stop(){void 0!==this.#w&&(clearInterval(this.#w),this.#w=void 0)}},fB=class{#g=0;#w;start(e){this.stop(),this.#g=Date.now(),this.#w=(0,O.fz)(()=>{e("PING")},5e3)}handleMessage(){return this.#g=Date.now(),!1}isStale(e){return e-this.#g>6e5}stop(){void 0!==this.#w&&(clearInterval(this.#w),this.#w=void 0)}},fj=class{#g=0;#w;start(e){this.#g=Date.now(),this.#w=e}stop(){this.#w=void 0}handleMessage(e){return"ping"===e&&(this.#g=Date.now(),this.#w?.("pong"),!0)}isStale(e){return e-this.#g>3e4}},fM=class{#g;#w=0;schedule(e){var t,r;if(void 0!==this.#g||!e.shouldReconnect())return;let n=(t=this.#w,Math.random()*Math.min((r={baseMs:250,maxMs:3e4}).baseMs*2**t,r.maxMs));this.#w+=1,this.#g=(0,O.XB)(()=>{this.#g=void 0,this.#v(e)},n)}stop(){void 0!==this.#g&&(clearTimeout(this.#g),this.#g=void 0)}resetBackoff(){this.#w=0,this.stop()}async #v(e){if(e.shouldReconnect())try{await e.reconnect()}catch{this.schedule(e)}}},fR=class{#g;#w;#v;#E;constructor(e={}){this.#g=e.heartbeat}connect(e){if(this.#w?.readyState===WebSocket.OPEN)return Promise.resolve({reusedOpenSocket:!0});if(this.#P(),void 0!==this.#v)return this.#v;let t=this.#k(e).then(()=>({reusedOpenSocket:!1})).catch(e=>{throw this.#v===t&&(this.#v=void 0),e});return this.#v=t,t}send(e){return this.#A(JSON.stringify(e))}#A(e){return this.#w?.readyState===WebSocket.OPEN&&(this.#w.send(e),!0)}async close(){let e=await this.#_();this.#T(),void 0===e||e.readyState===WebSocket.CLOSED||await new Promise(t=>{e.addEventListener("close",()=>t(),{once:!0}),e.readyState!==WebSocket.CLOSING&&e.close()})}async #k(e){let t=await e.prepare?.();return new Promise((r,n)=>{let i=function(e,t){if(void 0===t)return new WebSocket(e);try{let r=Reflect.construct(WebSocket,[e,{headers:t}]);if(r instanceof WebSocket)return r}catch(e){throw new k.c("WebSocket headers require a header-capable WebSocket implementation.",{cause:e})}throw new k.c("WebSocket headers require a header-capable WebSocket implementation.")}(e.url,e.headers),a=()=>{i.removeEventListener("error",o),this.#C(i),this.#x(),e.onOpen(t),r(i)},o=t=>{i.removeEventListener("open",a),n(new k.c(`WebSocket connection failed: ${e.url}`,{cause:t}))};i.addEventListener("open",a,{once:!0}),i.addEventListener("error",o,{once:!0}),i.addEventListener("message",t=>{let r;if(this.#w!==i)return;let n=String(t.data);if(!this.#g?.handleMessage(n)){try{r=JSON.parse(n)}catch{return}e.onMessage(r)}}),i.addEventListener("close",()=>{this.#w===i&&(this.#P(),e.onClose())}),i.addEventListener("error",()=>e.onError())})}#C(e){this.#w=e,this.#v=void 0}#P(){this.#T(),this.#w=void 0}#x(){this.#T();let e=this.#g;void 0!==e&&(e.start(e=>this.#A(e)),this.#E=(0,O.fz)(()=>
145{if(!e.isStale(Date.now()))return;let t=this.#w;t?.readyState===WebSocket.OPEN&&t.close()},5e3))}#T(){void 0!==this.#E&&(clearInterval(this.#E),this.#E=void 0),this.#g?.stop()}async #_(){let e=this.#w,t=this.#v;return this.#w=void 0,this.#v=void 0,void 0!==e?e:t?.then(()=>this.#w,()=>{})}},fN=class{#g=new Set;#w;constructor(e){this.#w=e?.deriveServerState??(()=>{})}add(e,t={}){let r={queue:d3({objectMode:!0})};void 0!==t.matches&&(r.matches=t.matches);let n={subscription:e,subscriber:r};return{change:this.#v(n),entry:n}}#v(e){let t=this.serverState();return this.#g.add(e),{before:t,after:this.serverState()}}remove(e){let t=this.serverState();return this.#g.delete(e),e.subscriber.queue.end(),{before:t,after:this.serverState()}}dispatch(e){for(let{subscriber:t}of this.#g)(void 0===t.matches||t.matches(e))&&t.queue.push(e)}hasActiveSubscriptions(){return this.#g.size>0}endAll(e){for(let{subscriber:t}of this.#g)t.queue.end(e);this.#g.clear()}serverState(){return this.#w(this.#g)}};function fU(e,t,r){let n=f$(r.assetsIds,t.assetsIds),i=f$(t.assetsIds,r.assetsIds);n.length>0&&e(fL(n,r.customFeatureEnabled));let a=r.assetsIds[0];0===n.length&&t.customFeatureEnabled!==r.customFeatureEnabled&&void 0!==a&&e(fL([a],r.customFeatureEnabled)),i.length>0&&e({assets_ids:i,operation:"unsubscribe"})}function fz(e,t,r){if(r.includeAllMarkets){!t.includeAllMarkets&&t.markets.length>0&&e(fG(t.markets));return}if(t.includeAllMarkets){r.markets.length>0&&e(fH(r.markets));return}let n=f$(r.markets,t.markets),i=f$(t.markets,r.markets);n.length>0&&e(fH(n)),i.length>0&&e(fG(i))}function fD(e){let t=new Set,r=!1;for(let{subscription:n}of e){for(let e of n.tokenIds)t.add(e);r||=!0===n.customFeatureEnabled}return{assetsIds:Array.from(t),customFeatureEnabled:r}}function fF(e){let t=!1,r=new Set;for(let{subscription:n}of e){if(fq(n)){t=!0;continue}for(let e of n.markets??[])r.add(e)}return{includeAllMarkets:t,markets:t?[]:Array.from(r)}}function fL(e,t){return{assets_ids:e,custom_feature_enabled:t,operation:"subscribe"}}function fH(e){return{markets:e,operation:"subscribe"}}function fG(e){return{markets:e,operation:"unsubscribe"}}function fq(e){return(e.markets?.length??0)===0}function f$(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var fK=class{#g;#w;#v=new fR({heartbeat:new fI});#E=new fM;#A=new fN({deriveServerState:fD});constructor(e){this.#g=e.url}async subscribe(e){let{change:t,entry:r}=this.#A.add(e,{matches:t=>{switch(t.type){case"price_change":return t.payload.priceChanges.some(t=>e.tokenIds.includes(t.tokenId));case"new_market":return!0===e.customFeatureEnabled;case"market_resolved":return!0===e.customFeatureEnabled&&(t.payload.tokenIds??[]).some(t=>e.tokenIds.includes(t));case"best_bid_ask":return!0===e.customFeatureEnabled&&e.tokenIds.includes(t.payload.tokenId);default:return e.tokenIds.includes(t.payload.tokenId)}}});return await this.#k(r,t),fS(r.subscriber.queue,()=>this.#C(r))}async #k(e,t){let{before:r,after:n}=t;try{(await this.#x()).reusedOpenSocket&&fU(e=>this.#v.send(e),r,n)}catch(t){throw await this.#C(e),t}}async #C(e){let{before:t,after:r}=this.#A.remove(e);if(!this.#A.hasActiveSubscriptions()){await this.close();return}fU(e=>this.#v.send(e),t,r)}async close(){void 0===this.#w&&(this.#w=this.#P().finally(()=>{this.#w=void 0})),await this.#w}async #P(){this.#E.stop(),this.#A.endAll(),await this.#v.close()}#x(){return this.#v.connect({onClose:()=>this.#O(),onError:()=>this.#S(),onMessage:e=>this.#_(e),onOpen:()=>this.#T(),url:this.#g})}#T(){this.#E.resetBackoff(),this.#I()}#_(e){for(let t of Array.isArray(e)?e:[e]){let e=dO.safeParse(t);e.success&&this.#A.dispatch(e.data)}}#O(){this.#A.hasActiveSubscriptions()&&this.#B()}#S(){}#I(){var e;this.#v.send({assets_ids:(e=this.#A.serverState()).assetsIds,custom_feature_enabled:e.customFeatureEnabled,type:"market"})}#B(){this.#E.schedule({reconnect:()=>this.#x(),shouldReconnect:()=>this.#A.hasActiveSubscriptions()})}},fZ=class{#g;#w;#v;#E=new fR({heartbeat:new fI});#A=new fM;#k=new fN({deriveServerState:fF});constructor(e){this.#g=e.url,this.#w=e.credentials}async subscribe(e){let{change:t,entry:r}
145=this.#k.add(e,{matches:function(e){if(fq(e))return()=>!0;let t=new Set((e.markets??[]).map(e=>e.toLowerCase()));return e=>t.has(e.payload.market.toLowerCase())}(e)});return await this.#C(r,t),fS(r.subscriber.queue,()=>this.#P(r))}async #C(e,t){let{before:r,after:n}=t;try{(await this.#T()).reusedOpenSocket&&fz(e=>this.#E.send(e),r,n)}catch(t){throw await this.#P(e),t}}async #P(e){let{before:t,after:r}=this.#k.remove(e);if(!this.#k.hasActiveSubscriptions()){await this.close();return}fz(e=>this.#E.send(e),t,r)}async close(){void 0===this.#v&&(this.#v=this.#x().finally(()=>{this.#v=void 0})),await this.#v}async #x(){this.#A.stop(),this.#k.endAll(),await this.#E.close()}#T(){return this.#E.connect({onClose:()=>this.#S(),onError:()=>this.#I(),onMessage:e=>this.#O(e),onOpen:e=>this.#_(e),prepare:()=>this.#w,url:this.#g})}#_(e){this.#A.resetBackoff(),this.#B(e)}#O(e){for(let t of Array.isArray(e)?e:[e]){let e=dS.safeParse(t);e.success&&this.#k.dispatch(e.data)}}#S(){this.#k.hasActiveSubscriptions()&&this.#j()}#I(){}#B(e){var t;this.#E.send((t=this.#k.serverState(),{auth:{apiKey:e.key,passphrase:e.passphrase,secret:e.secret},markets:t.markets,type:"user"}))}#j(){this.#A.schedule({reconnect:()=>this.#T(),shouldReconnect:()=>this.#k.hasActiveSubscriptions()})}},fV=class{#g=new Map;#w;constructor(e){this.#w=e}waitFor(e,t){let r,n;let i={promise:new Promise((e,t)=>{r=e,n=t}),reject:n,resolve:r},a,o=(0,O.XB)(()=>{this.remove(e,a),i.reject(new k.f(t))},this.#w);a=i.promise.finally(()=>clearTimeout(o));let s=this.#g.get(e)??[];return s.push({...i,promise:a}),this.#g.set(e,s),a}resolve(e,t){let r=this.#g.get(e),n=r?.shift();void 0!==n&&(void 0!==r&&0===r.length&&this.#g.delete(e),n.resolve(t))}reject(e,t){let r=this.#g.get(e),n=r?.shift();void 0!==n&&(void 0!==r&&0===r.length&&this.#g.delete(e),n.reject(t))}remove(e,t){let r=this.#g.get(e);if(void 0===r)return;let n=r.filter(e=>e.promise!==t);0===n.length?this.#g.delete(e):this.#g.set(e,n)}rejectAll(e){for(let t of this.#g.values())for(let r of t)r.reject(e);this.#g.clear()}},fW="0x0000000000000000000000000000000000000000000000000000000000000000";async function fY(e){var t,r,n,i,a,o;let s;let l=aJ(e.account),c={builder:fW,maker:l.maker,makerAmount:(0,P.O)((t=e.orderSide,r=e.orderPrice,n=e.size,t===P.b.SELL?n.toString():((r*n+999999n)/1000000n).toString())),metadata:fW,salt:(s=new Uint8Array(8),globalThis.crypto.getRandomValues(s),BigInt(`0x${Array.from(s,e=>e.toString(16).padStart(2,"0")).join("")}`)).toString(),side:e.orderSide===P.b.BUY?0:1,signatureType:l.signatureType,signer:l.signer,takerAmount:(0,P.O)((i=e.orderSide,a=e.orderPrice,o=e.size,i===P.b.SELL?(a*o/1000000n).toString():o.toString())),timestamp:Math.floor(Date.now()/1e3).toString(),tokenId:e.tokenId},u;try{u=await e.signer.signTypedData(cU({domain:fX(e),order:c}))}catch(e){throw k.j.fromError(e,"Could not sign the RFQ quote order.")}return{...c,signature:cz({domain:fX(e),order:c,signature:u})}}function fX(e){return{chainId:e.chainId,exchange:e.exchange,protocolVersion:"3"}}var fJ=P.Da.transform(e=>f1(e)).refine(e=>e<=BigInt(Number.MAX_SAFE_INTEGER),{message:"Value exceeds the temporary numeric wire limit."}),fQ=C.cf({price:fJ.refine(e=>e<1000000n,{message:"Price must be less than 1."}),size:fJ.optional(),source:C.Km(["collateral","inventory"]).default("collateral")});async function f0(e){var t,r,n,i,a;let o;let s=e.response.price,l=void 0===e.response.size?(o=f1((t=e.request.requestedSize).value),t.unit===d4.Shares?o:1000000n*o/s):e.response.size,c=await fY({account:e.account,chainId:e.chainId,exchange:e.exchange,orderPrice:(r=e.request,n=e.response.source,r.direction===d6.Buy&&"collateral"===n||r.direction===d6.Sell&&"inventory"===n?1000000n-s:s),orderSide:"collateral"===e.response.source?P.b.BUY:P.b.SELL,signer:e.signer,size:l,tokenId:(i=e.request,a=e.response.source,i.direction===d6.Buy?"collateral"===a?i.noPositionId:i.yesPositionId:"collateral"===a?i.yesPositionId:i.noPositionId)});return{price:s,signedOrder:c,size:l}}function f1(e){let t=/^(\d+)(?:\.(\d*))?$/.exec(e);if(null===t)throw new k.a("Value must be a valid decimal.");let[,r="",n=""]=t;if(n.length>6)throw new k.a("Value must have at most 6 decimal places.");let i=1000000n*BigInt(r)+BigInt(n.padEnd(6,"0"));if(i<=0n)throw new k.a("Value must be greater than 0.");return i}var f2=class{#g;#w;#v;#E;#A;#k;#C;#P;#x;#T;
145constructor(e){this.#g=e.account,this.#w=e.chainId,this.#v=e.credentials,this.#E=e.exchange,this.#A=e.headers,this.#k=e.signer,this.#C=e.url}async connect(){let e;if(void 0!==this.#P)return this.#P;if(void 0!==this.#T)return this.#T;let t=new f3({account:this.#g,chainId:this.#w,credentials:this.#v,exchange:this.#E,headers:this.#A,onClose:()=>this.#_(t),signer:this.#k,url:this.#C});return this.#x=t,e=(async()=>{try{return await t.connect(),this.#P=t,t}catch(e){throw await t.close(),e}finally{this.#T===e&&(this.#T=void 0),this.#x===t&&(this.#x=void 0)}})(),this.#T=e,e}async close(){let e=this.#P,t=this.#x,r=this.#T;this.#P=void 0,this.#x=void 0,this.#T=void 0,await Promise.allSettled([e?.close(),t?.close(),r?.catch(()=>{})]).then(()=>{})}#_(e){this.#P===e&&(this.#P=void 0),this.#x===e&&(this.#x=void 0)}},f3=class{#g;#w;#v;#E;#A;#k;#C;#P;#x=new fR;#T=d3({objectMode:!0});#_=new fV(3e4);#O;#S;constructor(e){this.#g=e.account,this.#w=e.chainId,this.#v=e.credentials,this.#E=e.exchange,this.#A=e.headers,this.#k=e.onClose,this.#C=e.signer,this.#P=e.url}async connect(){let e,t;let r={promise:new Promise((r,n)=>{e=r,t=n}),reject:t,resolve:e};this.#S=r;let n=(0,O.XB)(()=>{r.reject(new k.c("RFQ quoter authentication timed out."))},3e4);try{await this.#x.connect({headers:this.#A,onClose:()=>this.#M(),onError:()=>{},onMessage:e=>this.#R(e),onOpen:()=>this.#j(),url:this.#P}),await r.promise}finally{clearTimeout(n),this.#S=void 0}}async #I(e){if(!this.#x.send(e))throw new k.c("RFQ quoter websocket is not open.")}async close(){void 0===this.#O&&(this.#O=this.#B()),await this.#O}[Symbol.asyncIterator](){return this.#T[Symbol.asyncIterator]()}async #B(){this.#_.rejectAll(new k.c("RFQ quoter websocket closed.")),this.#T.end(),await this.#x.close(),this.#k()}#j(){var e,t;let r;this.#x.send((e=this.#g,t=this.#v,r=aJ(e),{auth:{apiKey:t.key,passphrase:t.passphrase,secret:t.secret},identity:{maker_address:r.maker,signature_type:r.signatureType,signer_address:r.signer},type:"auth"}))}#R(e){var t,r;let n=fm.safeParse(e);if(!n.success){let e=new k.c("Invalid RFQ quoter message.",{cause:n.error});this.#_.rejectAll(e);return}let i=n.data;switch(i.type){case"auth":this.#N(i);return;case"quote_request":this.#T.push((t=this,{...i,quote:e=>t.quote(i,e)}));return;case"quote_ack":this.#_.resolve(f6(i.rfqId),{quoteId:i.quoteId,rfqId:i.rfqId});return;case"quote_cancel_ack":this.#_.resolve(f5(i.rfqId,i.quoteId),{quoteId:i.quoteId,rfqId:i.rfqId});return;case"confirmation_request":let a,o;this.#T.push((r=this,a=i.rfqId,o=i.quoteId,{...i,confirm:()=>r.respondToConfirmation(a,o,d8.Confirm),decline:()=>r.respondToConfirmation(a,o,d8.Decline)}));return;case"confirmation_ack":this.#_.resolve(f8(i.rfqId,i.quoteId),{quoteId:i.quoteId,rfqId:i.rfqId});return;case"execution_update":this.#T.push(i);return;case"rfq_error":this.#U(i);return}}#N(e){if(!0===e.success){this.#S?.resolve(void 0);return}this.#S?.reject(new k.c(`RFQ quoter authentication failed: ${e.error}`))}#M(){this.close()}#U(e){if("RFQ_QUOTE"===e.requestType&&void 0!==e.rfqId){this.#_.reject(f6(e.rfqId),new uH(e.message,{code:e.code,rfqId:e.rfqId}));return}if("RFQ_QUOTE_CANCEL"===e.requestType&&void 0!==e.rfqId&&void 0!==e.quoteId){this.#_.reject(f5(e.rfqId,e.quoteId),new uG(e.message,{code:e.code,quoteId:e.quoteId,rfqId:e.rfqId}));return}"RFQ_CONFIRMATION_RESPONSE"===e.requestType&&void 0!==e.rfqId&&void 0!==e.quoteId&&this.#_.reject(f8(e.rfqId,e.quoteId),new uq(e.message,{code:e.code,quoteId:e.quoteId,rfqId:e.rfqId}))}async quote(e,t){let r=az(t,fQ),n=await f0({account:this.#g,chainId:this.#w,exchange:this.#E,request:e,response:r,signer:this.#C}),i=this.#_.waitFor(f6(e.rfqId),`Timed out waiting for RFQ quote acknowledgement for ${e.rfqId}.`);try{return await this.#I({price_e6:n.price.toString(),rfq_id:e.rfqId,signed_order:n.signedOrder,size_e6:n.size.toString(),type:"RFQ_QUOTE"}),await i}catch(t){throw this.#_.remove(f6(e.rfqId),i),t}}async cancelQuote(e){let t=f5(e.rfqId,e.quoteId),r=this.#_.waitFor(t,`Timed out waiting for RFQ quote cancellation acknowledgement for ${e.rfqId}.`);try{var n,i,a;let t;return await this.#I((n=this.#g,i=e.rfqId,a=e.quoteId,{maker_address:(t=aJ(n)).maker,quote_id:a,rfq_id:i,signer_address:t.signer,type:"RFQ_QUOTE_CANCEL"})),await r}catch(e){throw this.#_.remove(t,r),e}}async respondToConfirmation(e,t,r){let n=f8(e,t),i=this.#_.waitFor(n,`Timed out waiting for RFQ confirmation acknowledgement for ${e}.`);try{return await this.#I({decision:r,quote_id:t,rfq_id:e,type:"RFQ_CONFIRMATION_RESPONSE"}),await i}catch(e){throw this.#_.remove(n,i),e}}};function f6(e){return`ACK_RFQ_QUOTE:${e}`}function f5(e,t){return`ACK_RFQ_QUOTE_CANCEL:${e}:${t}`}function f8(e,t){return`ACK_RFQ_CONFIRMATION_RESPONSE:${e}:${t}`}var f7=class{#g;#w;#v=new fR({heartbeat:new fB});#E=new fM;#A=new fN({deriveServerState:f4});constructor(e){this.#g=e}async subscribe(e){let{change:t,entry:r}=this.#A.add(e,{matches:function(e){switch(e.topic){case"comments":return t=>
145!("comments"!==t.topic||void 0!==e.types&&e.types.length>0&&!e.types.includes(t.type)||(void 0!==e.parentEntityId||void 0!==e.parentEntityType)&&(!("comment_created"===t.type||"comment_removed"===t.type)||void 0!==e.parentEntityId&&t.payload.parentEntityID!==e.parentEntityId||void 0!==e.parentEntityType&&t.payload.parentEntityType!==e.parentEntityType));case"prices.crypto.binance":return t=>"prices.crypto.binance"===t.topic&&(void 0===e.symbols||0===e.symbols.length||e.symbols.includes(t.payload.symbol));case"prices.crypto.chainlink":return t=>"prices.crypto.chainlink"===t.topic&&(void 0===e.symbols||0===e.symbols.length||e.symbols.includes(t.payload.symbol));case"prices.equity.pyth":return t=>"prices.equity.pyth"===t.topic&&t.payload.symbol.toLowerCase()===e.symbol.toLowerCase()&&(void 0===e.types||0===e.types.length||e.types.includes(t.type));default:(0,O.kG)(!1,`Unknown RTDS topic: ${String(e)}`)}}(e)});return await this.#k(r,t),fS(r.subscriber.queue,()=>this.#C(r))}async #k(e,t){try{if((await this.#x()).reusedOpenSocket){let{before:e,after:r}=t,n=Array.from(r).flatMap(([t,r])=>e.has(t)?[]:[r]);this.#B(n)}}catch(t){throw await this.#C(e),t}}async #C(e){let{before:t,after:r}=this.#A.remove(e),n=Array.from(t).flatMap(([e,t])=>r.has(e)?[]:[t]);this.#j(n),this.#A.hasActiveSubscriptions()||await this.close()}async close(){void 0===this.#w&&(this.#w=this.#P().finally(()=>{this.#w=void 0})),await this.#w}async #P(){this.#E.stop(),this.#A.endAll(),await this.#v.close()}#x(){return this.#v.connect({onClose:()=>this.#O(),onError:()=>this.#S(),onMessage:e=>this.#_(e),onOpen:()=>this.#T(),url:this.#g})}#T(){this.#E.resetBackoff(),this.#I()}#_(e){let t=dJ.safeParse(e);t.success&&this.#A.dispatch(t.data)}#O(){this.#A.hasActiveSubscriptions()&&this.#R()}#S(){}#I(){this.#B(Array.from(this.#A.serverState().values()))}#B(e){0!==e.length&&this.#v.send({action:"subscribe",subscriptions:e.map(({topic:e,type:t})=>({topic:e,type:t}))})}#j(e){0!==e.length&&this.#v.send({action:"unsubscribe",subscriptions:e.map(({topic:e,type:t})=>({topic:e,type:t}))})}#R(){this.#E.schedule({reconnect:()=>this.#x(),shouldReconnect:()=>this.#A.hasActiveSubscriptions()})}};function f4(e){let t=new Map;for(let{subscription:r}of e)for(let e of function(e){switch(e.topic){case"comments":return(e.types??["comment_created"]).map(e=>f9("comments",e));case"prices.crypto.binance":return[f9("crypto_prices","update")];case"prices.crypto.chainlink":return[f9("crypto_prices_chainlink","update")];case"prices.equity.pyth":return[f9("equity_prices","update")];default:(0,O.kG)(!1,`Unknown RTDS topic: ${String(e)}`)}}(r))t.has(e.key)||t.set(e.key,e);return t}function f9(e,t){return{key:`${e}:${t}`,topic:e,type:t}}var pe=class{#g;#w;#v=new fR({heartbeat:new fj});#E=new fM;#A=new fN;constructor(e){this.#g=e.url}async subscribe(e){let{entry:t}=this.#A.add(e);return await this.#k(t),fS(t.subscriber.queue,()=>this.#C(t))}async #k(e){try{await this.#x()}catch(t){throw await this.#C(e),t}}async #C(e){this.#A.remove(e),this.#A.hasActiveSubscriptions()||await this.close()}async close(){void 0===this.#w&&(this.#w=this.#P().finally(()=>{this.#w=void 0})),await this.#w}async #P(){this.#E.stop(),this.#A.endAll(),await this.#v.close()}#x(){return this.#v.connect({onClose:()=>this.#O(),onError:()=>this.#S(),onMessage:e=>this.#_(e),onOpen:()=>this.#T(),url:this.#g})}#T(){this.#E.resetBackoff()}#_(e){let t=dQ.safeParse(e);t.success&&this.#A.dispatch(t.data)}#O(){this.#A.hasActiveSubscriptions()&&this.#I()}#S(){}#I(){this.#E.schedule({reconnect:()=>this.#x(),shouldReconnect:()=>this.#A.hasActiveSubscriptions()})}},pt=class{#g;#w;get context(){return this.#g}get decorators(){return this.#w}get environment(){return this.context.environment}get clob(){return this.context.clob}get relayer(){return this.context.relayer}get rpc(){return this.context.rpc}get gamma(){return this.context.gamma}get data(){return this.context.data}get webSockets(){return this.context.webSockets}get supportsGasless(){return this.context.apiKey?.supportGasless??!1}constructor(e){this.#g=e,this.#w=[]}async resolveClobHeaders(e){return this.context.apiKey?.isBuilderKey?this.context.apiKey.authorize(e):Promise.resolve({})}async resolveRelayerHeaders(e){return this.context.apiKey?.supportGasless?this.context.apiKey.authorize(e):Promise.resolve({})}rememberDecorator(e){this.#w.push(e)}},pr=C.Ry({key:P.Q,passphrase:C.Z_(),secret:C.Z_()}),pn=C.Ry({wallet:P.W,credentials:pr.optional(),nonce:C.Rx().int().nonnegative().optional()}).superRefine((e,t)=>
145{void 0!==e.credentials&&void 0!==e.nonce&&t.addIssue({code:"custom",message:"`credentials` and `nonce` are mutually exclusive.",path:["nonce"]})}).transform(e=>void 0!==e.credentials?{wallet:e.wallet,credentials:e.credentials}:void 0!==e.nonce?{wallet:e.wallet,nonce:e.nonce}:{wallet:e.wallet}),pi=class extends pt{constructor(e){super({apiKey:e.apiKey,environment:e.environment,data:new fO({root:e.environment.data}),gamma:new fO({root:e.environment.gamma}),clob:new fO({root:e.environment.clob,resolveHeaders:e=>this.resolveClobHeaders(e)}),relayer:new fO({root:e.environment.relayer,resolveHeaders:e=>this.resolveRelayerHeaders(e)}),rpc:new aK({url:e.environment.rpc}),webSockets:{clobMarket:new fK({url:e.environment.clobMarketWs}),sports:new pe({url:e.environment.sportsWs}),rtds:new f7(e.environment.rtdsWs)}})}isSecureClient(){return!1}isPublicClient(){return!0}async closeSubscriptions(){await Promise.all([this.webSockets.clobMarket.close(),this.webSockets.rtds.close(),this.webSockets.sports.close()]).then(()=>{})}extend(e){return this.rememberDecorator(e),Object.assign(this,e(this)),this}beginAuthentication(e,t){let r=az(e,pn);return Promise.resolve((async function*(){var e;let n=Math.floor(Date.now()/1e3),i=r?.nonce??0,a=(0,O.ng)((yield o4())),o=(0,O.ng)(r.wallet),s={signer:a,wallet:o,walletType:function(e,t,r){let n;if((0,O.my)(r,t))return t1.EOA;let i=e.walletDerivation;return(0,O.my)(r,a0(t,i))||(0,O.my)(r,aQ(t,i))?t1.DEPOSIT_WALLET:(0,O.my)(r,(0,O.ng)(rK({bytecodeHash:i.safeInitCodeHash,from:i.safeFactory,salt:rR(r9([{name:"address",type:"address"}],[t]))})))?t1.GNOSIS_SAFE:(0,O.my)(r,(0,O.ng)(rK({bytecodeHash:(n="3d3d606380380380913d393d73%s5af4602a57600080fd5b602d8060366000396000f3363d3d373d3d3d363d73%s5af43d82803e903d91602b57fd5bf352e831dd00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000".replace("%s",i.proxyFactory.slice(2).toLowerCase()).replace("%s",i.proxyImplementation.slice(2).toLowerCase()),(0,O.JS)(rR(`0x${n}`))),from:i.proxyFactory,salt:rR(ne(["address"],[t]))})))?t1.POLY_PROXY:void(0,O.Fi)(`Wallet ${r} does not match the signer ${t}
145 or any supported deterministic wallet address.`)}(this.environment,a,o)};if(void 0!==r.credentials){let e=this.#g(r.credentials,s,t);try{if((await sz(e)).includes(r.credentials.key))return e}catch(e){if(!(e instanceof k.d)||401!==e.status)throw e}}let l=yield{kind:"signAuthMessage",payload:{domain:{chainId:(e={address:a,chainId:this.environment.chainId,nonce:i,timestamp:n}).chainId,name:"ClobAuthDomain",version:"1"},message:{address:e.address,message:"This message attests that I control the given wallet",nonce:e.nonce??0,timestamp:`${e.timestamp}`},primaryType:"ClobAuth",types:{ClobAuth:[{name:"address",type:"address"},{name:"timestamp",type:"string"},{name:"nonce",type:"uint256"},{name:"message",type:"string"}]}}},c=await sU(this,{address:a,nonce:i,signature:(0,O.Iz)(l),timestamp:n});return this.#g(c,s,t)}).call(this))}#g(e,t,r){let n=new pa({account:t,apiKey:this.context.apiKey,credentials:e,environment:this.environment,signer:r});for(let e of this.decorators)n.extend(e);return n}},pa=class extends pt{#g=!1;get context(){return(0,O.kG)(!this.#g,"This client has ended authentication and can no longer be used."),super.context}endAuthenticationLifecycle(){this.#g=!0}constructor(e){super({account:e.account,credentials:e.credentials,apiKey:e.apiKey,environment:e.environment,signer:e.signer,clob:new fO({root:e.environment.clob,resolveHeaders:e=>this.resolveClobHeaders(e)}),relayer:new fO({root:e.environment.relayer,resolveHeaders:e=>this.resolveRelayerHeaders(e)}),rpc:new aK({url:e.environment.rpc}),gamma:new fO({root:e.environment.gamma}),data:new fO({root:e.environment.data}),secureClob:new fO({resolveHeaders:async e=>({...await this.resolveClobHeaders(e),...await this.#w(e)}),root:e.environment.clob}),webSockets:{clobMarket:new fK({url:e.environment.clobMarketWs}),clobUser:new fZ({credentials:e.credentials,url:e.environment.clobUserWs}),rfqQuoter:new f2({account:e.account,chainId:e.environment.chainId,credentials:e.credentials,exchange:e.environment.exchangeV3,headers:e.environment.rfqQuoterWsHeaders,signer:e.signer,url:e.environment.rfqQuoterWs}),sports:new pe({url:e.environment.sportsWs}),rtds:new f7(e.environment.rtdsWs)}})}get credentials(){return this.context.credentials}get account(){return this.context.account}get signer(){return this.context.signer}setupGaslessWallet(){return Promise.resolve(this)}get secureClob(){return this.context.secureClob}get webSockets(){return this.context.webSockets}async closeSubscriptions(){await Promise.allSettled([this.webSockets.clobMarket.close(),this.webSockets.rtds.close(),this.webSockets.sports.close(),this.webSockets.clobUser.close(),this.webSockets.rfqQuoter.close()]).then(()=>{})}isSecureClient(){return!0}isPublicClient(){return!1}extend(e){return this.rememberDecorator(e),Object.assign(this,e(this)),this}async endAuthentication(){let e=this.closeSubscriptions(),{apiKey:t,environment:r}=this.context;try{await sD(this)}finally{this.endAuthenticationLifecycle(),await e}let n=new pi({apiKey:t,environment:r});for(let e of this.decorators)n.extend(e);return n}async #w(e){try{let t=Math.floor(Date.now()/1e3);return{POLY_ADDRESS:this.account.signer,POLY_API_KEY:this.credentials.key,POLY_PASSPHRASE:this.credentials.passphrase,POLY_SIGNATURE:await f_(this.credentials.secret,t,e.method,e.path,e.body),POLY_TIMESTAMP:`${t}`}}catch(e){throw k.j.fromError(e,"Could not sign the L2-authenticated request")}}};async function po(e){var t;let r=function(e={}){return new pi({environment:e.environment??fT,apiKey:e.apiKey}).extend(fC)}({environment:e.environment,apiKey:e.apiKey}),n=await ps(r,e),i=await r.beginAuthentication({wallet:n,credentials:e.credentials,nonce:e.nonce},e.signer).then((t=e.signer,async function(e){let r=await e.next();for(;!r.done;)try{switch(r.value.kind){case"requestAddress":r=await e.next(await t.getAddress());break;case"signAuthMessage":r=await e.next(await t.signTypedData(r.value.payload))}}catch(t){r=await e.throw(t)}return r.value}));if(i.account.walletType===t1.EOA||await sl(i,{wallet:i.account.wallet,type:i.account.walletType}))return i;if(i.account.walletType===t1.DEPOSIT_WALLET)return await pl(i),i;throw new k.a(`Wallet ${i.account.wallet} does not exist. Provide an existing wallet address, or omit wallet to use the default Deposit Wallet flow.`)}async function ps(e,t){if(void 0!==t.wallet)return t.wallet;let r=(0,O.ng)(await t.signer.getAddress());return a3(e.rpc,r,e.environment.walletDerivation)}async function pl(e){let t=await a3(e.rpc,e.account.signer,e.environment.walletDerivation);if(!(0,O.my)(e.account.wallet,t))throw new k.a(`Wallet ${e.account.wallet} does not match the expected Deposit Wallet ${t} for this signer, nor a deployed wallet address.`);await (await sd(e)).wait()}(0,k.k)(k.h,k.e,k.d,k.j,k.f,k.g,k.c,k.b,k.a),(0,k.k)(k.a)},11534:function(e,t,r){"use strict";r.d(t,{y:function(){return l}});var n=r(52542),i=r(31416),a=r(83409),o=r(94660),s=r(26155);function l(e){(0,i.kG)(void 0!==e.account,"Wallet client with account is required");let t=e.account,r=(0,i.ng)("string"==typeof e.account?e.account:e.account.address);return{getAddress:()=>Promise.resolve(r),signTypedData:async r=>(0,i.Iz)(await d(e,{account:t,...r})),signMessage:async r=>(0,i.Iz)(await f(e,{account:t,message:{raw:r}})),sendTransaction:async({chainId:r,...n})=>(await u(e,r),new h(await c(e,{account:t,...n}),e))}}async function c(e,t){try{let r=await e.sendTransaction(t);return(0,i.vQ)(r)}catch(e){p(e)}}async function u(e,t){try{let r=e.chain?.id??await e.getChainId();if(r!==t)throw new n.j(`Wallet client is connected to chain ${r}, expected ${t}`)}catch(e){throw e instanceof n.j?e:n.j.fromError(e,"Could not resolve wallet client chain ID")}}async function d(e,t){try{return await e.signTypedData(t)}catch(e){p(e)}}async function f(e,t){try{return await e.signMessage(t)}catch(e){p(e)}}function p(e){if(e instanceof a.ab)throw n.h.fromError(e);
145if(e instanceof o.mk){let t=e.walk(e=>e instanceof a.ab);if(t)throw n.h.fromError(t)}throw n.j.fromError(e)}var h=class{transactionId=null;#w;#A;constructor(e,t){this.#w=(0,i.vQ)(e),this.#A=t}get transactionHash(){return this.#w}async wait(){try{let e=await (0,s.e)(this.#A,{hash:this.#w}),t=(0,i.vQ)(e.transactionHash);if(this.#w=t,"reverted"===e.status)throw new n.g(`Transaction ${t} reverted`);return{transactionHash:t,transactionId:null}}catch(e){throw e instanceof o.mc?new n.f(`Timed out waiting for transaction ${this.#w} to settle`,{cause:e}):n.c.fromError(e)}}}},31416:function(e,t,r){"use strict";r.d(t,{A7:function(){return h},EN:function(){return s},Fi:function(){return c},He:function(){return w},Iz:function(){return v},JS:function(){return y},Wg:function(){return A},XB:function(){return p},ZN:function(){return b},ac:function(){return a},fz:function(){return f},gw:function(){return u},kG:function(){return l},my:function(){return m},ng:function(){return g},r_:function(){return i},vQ:function(){return E}});var n=r(9182),i="0x0000000000000000000000000000000000000000",a=class e extends Error{static isError(t){return t instanceof e}},o=class extends a{name="InvariantError"};function s(e){return null!=e}function l(e,t){if(!e)throw new o(t)}function c(e="Unexpected call to never()"){throw new o(e)}function u(e){return new Promise(t=>setTimeout(t,e))}function d(e){let t=e.unref;"function"==typeof t&&t.call(e)}function f(e,t){let r=setInterval(e,t);return d(r),r}function p(e,t){let r=setTimeout(e,t);return d(r),r}function h(e){return"string"==typeof e&&/^0x[a-fA-F0-9]+$/.test(e)}function m(e,t){return e.toLowerCase()===t.toLowerCase()}function b(e,t="Expected a non-empty array"){return l(e.length>0,t),e}function y(e,t="Expected a hex string"){return l(h(e),t),e}function g(e,t="Expected an EVM address"){return l(h(e)&&42===e.length,t),e}function v(e,t="Expected an EVM signature"){return l(h(e)&&132===e.length,t),e}function w(e,t="Expected an ERC-1271 signature payload"){return l(h(e),t),e}function E(e,t="Expected a transaction hash"){return l(h(e)&&66===e.length,t),e}function x(e){throw e}function A(e){return e instanceof n.CX?e.match(e=>e,x):e.match(e=>e,x)}},10384:function(e,t,r){"use strict";r.d(t,{a:function(){return p},b:function(){return c},c:function(){return h},u:function(){return m}});var n=r(92419),i=r(25777),a=r(71013),o=r(2407),s=r(75055),l=r(74316);let c=(0,s.U)(()=>null),u=e=>{null!==c.getState()&&c.setState(e)},d=()=>c.setState(null);async function f(e){let t=await e.fetchPrivyRoute(a.k1,{});u({config:{status:"ready",data:{currencies:t.currencies,chains:t.chains}}})}function p(){let e=c(),{closePrivyModal:t,privy:r}=(0,o.u)(),i=e?.params??null,a=e?.config??{status:"loading"},s=(0,n.useCallback)(e=>{u({modalState:e})},[]),l=(0,n.useCallback)(async()=>{if(i){u({config:{status:"loading"}});try{await f(r)}catch(e){throw u({config:{status:"error",error:e instanceof Error?e:Error("Failed to load deposit config")}}),e}}},[i,r]),d=(0,n.useCallback)(()=>{if(!e)return;let{modalState:r}=e;"complete"===r.step?e.onComplete():"failed"===r.step?e.onError(Error("DEPOSIT_FAILED")):"error"===r.step?e.onError(Error(r.code)):"refunded"===r.step?e.onError(Error("DEPOSIT_REFUNDED")):e.onError(Error("USER_EXITED")),t({shouldCallAuthOnSuccess:!1})},[e,t]);return{modalState:e?.modalState??{step:"intro"},setModalState:s,config:a,retryConfig:l,params:i,close:d}}function h(e){let{modalState:t,config:r,params:n,...i}=p();if(function(e,t){if(e.step!==t)throw Error("UNEXPECTED_STATE")}(t,e),!n||"ready"!==r.status)throw Error("UNEXPECTED_STATE");return{state:t,configData:r.data,params:n,...i}}let m=()=>{let{openModal:e,privy:t}=(0,o.u)(),r=(0,i.u)();return(0,n.useMemo)(()=>({createDepositAddress:async n=>{if("user-controlled-server-wallets-only"!==r.embeddedWallets.mode)throw Error("Deposit address flow requires TEE-execution wallets. Apps using on-device wallets are not supported.");let{resolve:i,reject:a,promise:o}=Promise.withResolvers();if(!l.u.getState().user)throw Error("User must be authenticated to create a deposit address");if(!n.destinationChain)throw Error("Invalid input: expected destinationChain");
145if(!n.destinationCurrency)throw Error("Invalid input: expected destinationCurrency");if(!n.destinationAddress)throw Error("Invalid input: expected destinationAddress");if(c.getState())return a(Error("Existing deposit address flow in progress")),await o;c.setState({onComplete:()=>{d(),i()},onError:e=>{d(),a(e)},params:{destinationChain:n.destinationChain,destinationCurrency:n.destinationCurrency,destinationAddress:n.destinationAddress,refundAddress:n.refundAddress,slippageBps:n.slippageBps},config:{status:"loading"},modalState:{step:"intro"}}),e("DepositAddressScreen");try{await f(t)}catch(e){u({config:{status:"error",error:e instanceof Error?e:Error("Failed to load deposit config")},modalState:{step:"error",code:"ROUTE_UNAVAILABLE"}})}return await o}}),[e,t,r])}},71013:function(e,t,r){"use strict";r.d(t,{Z8:function(){return n},k1:function(){return o},qE:function(){return i},wb:function(){return a}});let n={path:"/api/v1/onramp/deposit_addresses/quote",method:"POST"},i={path:"/api/v1/onramp/deposit_addresses/orders/:order_id",method:"GET"},a={path:"/api/v1/onramp/deposit_addresses/:deposit_address_id/next_order",method:"GET"},o={path:"/api/v1/onramp/deposit_addresses/deposit_config",method:"GET"}},48673:function(e,t,r){"use strict";r.r(t),r.d(t,{WebSocket:function(){return n}});let n=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw Error("`WebSocket` is not supported in this environment")}()},9659:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(92419);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),s=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},u=(0,n.createContext)({}),d=()=>(0,n.useContext)(u),f=(0,n.forwardRef)((e,t)=>{var r,a,o;let{color:s,size:u,strokeWidth:f,absoluteStrokeWidth:p,className:h="",children:m,iconNode:b,...y}=e,{size:g=24,strokeWidth:v=2,absoluteStrokeWidth:w=!1,color:E="currentColor",className:x=""}=null!==(r=d())&&void 0!==r?r:{},A=(null!=p?p:w)?24*Number(null!=f?f:v)/Number(null!=u?u:g):null!=f?f:v;return(0,n.createElement)("svg",{ref:t,...l,width:null!==(a=null!=u?u:g)&&void 0!==a?a:l.width,height:null!==(o=null!=u?u:g)&&void 0!==o?o:l.height,stroke:null!=s?s:E,strokeWidth:A,className:i("lucide",x,h),...!m&&!c(y)&&{"aria-hidden":"true"},...y},[...b.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(m)?m:[m]])}),p=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:l,...c}=r;return(0,n.createElement)(f,{ref:o,iconNode:t,className:i("lucide-".concat(a(s(e))),"lucide-".concat(e),l),...c})});return r.displayName=s(e),r}},99212:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},62803:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},41102:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},9060:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},81959:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},66689:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]])},88819:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},85612:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},97002:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(9659).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
145],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},67929:function(e,t,r){"use strict";r.r(t),r.d(t,{__addDisposableResource:function(){return R},__assign:function(){return a},__asyncDelegator:function(){return P},__asyncGenerator:function(){return k},__asyncValues:function(){return C},__await:function(){return A},__awaiter:function(){return h},__classPrivateFieldGet:function(){return B},__classPrivateFieldIn:function(){return M},__classPrivateFieldSet:function(){return j},__createBinding:function(){return b},__decorate:function(){return s},__disposeResources:function(){return U},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return I},__importStar:function(){return S},__makeTemplateObject:function(){return T},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return d},__read:function(){return v},__rest:function(){return o},__rewriteRelativeImportExtension:function(){return z},__runInitializers:function(){return u},__setFunctionName:function(){return f},__spread:function(){return w},__spreadArray:function(){return x},__spreadArrays:function(){return E},__values:function(){return g}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var b=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(s=o(b.get))&&(d.get=s),(s=o(b.set))&&(d.set=s),(s=o(b.init))&&i.unshift(s)}else(s=o(b))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var b=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,274 bytes, line 145
145(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||b(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function x(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function k(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function o(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof A?Promise.resolve(r.value.v).then(l,c):u(a[0][2],r)}catch(e){u(a[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:A(e[n](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return(O=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=O(e),n=0;n<r.length;n++)"default"!==r[n]&&b(t,e,r[n]);return _(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function B(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function j(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
145if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function U(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function z(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}t.default={__extends:i,__assign:a,__rest:o,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:m,__createBinding:b,__exportStar:y,__values:g,__read:v,__spread:w,__spreadArrays:E,__spreadArray:x,__await:A,__asyncGenerator:k,__asyncDelegator:P,__asyncValues:C,__makeTemplateOb
145ject:T,__importStar:S,__importDefault:I,__classPrivateFieldGet:B,__classPrivateFieldSet:j,__classPrivateFieldIn:M,__addDisposableResource:R,__disposeResources:U,__rewriteRelativeImportExtension:z}},2881:function(e,t,r){"use strict";r.d(t,{y:function(){return n}});let n=(0,r(12173).a)({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}})},69441:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});let n=(0,r(12173).a)({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}})},97111:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});let n=(0,r(12173).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://ethereum.reth.rs/rpc"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},4318:function(e,t,r){"use strict";r.d(t,{r:function(){return rO}});var n,i,a=r(39732),o=r(26310),s=r(82788),l=r(6137),c=r(59865),u=r(51682),d=r(37398);function f(e){return function(e,t){let r=(()=>{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new a.ad(e);return u.H_(e)}return e})();return function e(t,r="Hex"){if(0===t.bytes.length)return"Hex"===r?a.xv(t.bytes):t.bytes;let n=t.readByte();if(n<128&&t.decrementPosition(1),n<192){let e=p(t,n,128),i=t.readBytes(e);return"Hex"===r?a.xv(i):i}let i=p(t,n,192);return function(t,r,n){let i=t.position,a=[];for(;t.position-i<r;)a.push(e(t,n));return a}(t,i,r)}(d.Ue(r,{recursiveReadLimit:Number.POSITIVE_INFINITY}),"Hex")}(e,0)}function p(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new s.G("Invalid RLP prefix")}function h(e,t={}){let{as:r="Hex"}=t;return function(e,t){let{as:r}=t,n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=m(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?u.H_(e):e,r=m(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),i=d.Ue(new Uint8Array(n.length));return(n.encode(i),"Hex"===r)?a.xv(i.bytes):i.bytes}(e,{as:r})}function m(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new s.G("Length is too large.")}var b=r(43853),y=r(13568),g=r(94490);function v(e){let{hash:t,payload:r,publicKey:n,signature:i}=e;return y.QF.verify(i,r instanceof Uint8Array?r:u.H_(r),g.NC(n).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}u.mL("ox.p256.fromSeed.v1");var w=r(47212);function E(e){let{payload:t,signature:r}=e,{r:n,s:i,yParity:o}=r,s=new w.secp256k1.Signature(BigInt(n),BigInt(i)).addRecoveryBit(o).recoverPublicKey(a.Dp(t).substring(2));return g.Dp(s)}u.mL("ox.secp256k1.fromSeed.v1");var x=r(11503);let A=new TextEncoder;Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
145+/").map((e,t)=>[t,e.charCodeAt(0)]);let k={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};class P extends s.G{constructor({majorType:e}){super(`Invalid CBOR major type: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidMajorTypeError"})}}class C extends s.G{constructor({additionalInfo:e}){super(`Invalid CBOR additional info: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidAdditionalInfoError"})}}class T extends s.G{constructor(){super("64-bit integers are not supported in CBOR decoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.Unsupported64BitIntegerError"})}}class _ extends s.G{constructor({tag:e}){super(`CBOR tagged data (tag ${e}) is not yet supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedTagError"})}}class O extends s.G{constructor({type:e}){super(`Invalid chunk type in indefinite-length ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidIndefiniteLengthChunkError"})}}class S extends s.G{constructor({value:e}){super(`Invalid CBOR simple value: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidSimpleValueError"})}}class I extends s.G{constructor(){super("BigInt values are not supported in CBOR encoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedBigIntError"})}}class B extends s.G{constructor({token:e}){super(`Unexpected token: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnexpectedTokenError"})}}class j extends s.G{constructor({number:e}){super(`Number exceeds maximum safe integer (${Number.MAX_SAFE_INTEGER}): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.NumberTooLargeError"})}}class M extends s.G{constructor({size:e}){super(`String length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.StringTooLargeError"})}}class R extends s.G{constructor({size:e}){super(`Array length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ArrayTooLargeError"})}}class N extends s.G{constructor({size:e}){super(`Object size exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ObjectTooLargeError"})}}class U extends s.G{constructor({size:e}){super(`Byte string length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ByteStringTooLargeError"})}}function z(e){if(void 0===e)return{length:1,encode:e=>e.pushUint8(247)};if(null===e)return{length:1,encode:e=>e.pushUint8(246)};if("boolean"==typeof e)return{length:1,encode:t=>t.pushUint8(e?245:244)};if("number"==typeof e)return z.number(e);if("bigint"==typeof e)throw new I;if("string"==typeof e)return z.string(e);if(Array.isArray(e))return z.array(e);if(e instanceof Uint8Array)return z.byteString(e);if(e instanceof ArrayBuffer)return z.byteString(new Uint8Array(e));if(ArrayBuffer.isView(e))return z.byteString(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));if(e instanceof Map)return z.map(e);if("object"==typeof e)return z.object(e);throw new B({token:String(e)})}function D(e){let t=e.readUint8(),r=t>>5,n=31&t;switch(r){case 0:return D.readUnsignedInteger(e,n);case 1:return D.readNegativeInteger(e,n);case 2:return D.readByteString(e,n);case 3:return D.readTextString(e,n);case 4:return D.readArray(e,n);case 5:return D.readMap(e,n);case 6:throw new _({tag:n});case 7:return D.readSimpleOrFloat(e,n);default:throw new P({majorType:r})}}(n=z||(z={})).number=function(e){if(!Number.isSafeInteger(e)){let t=Math.fround(e);return Number.isNaN(e)||e===t?{length:5,encode(t){t.pushUint8(250),t.dataView.setFloat32(t.position,e,!1),t.position+=4}}:{length:9,encode(t){t.pushUint8(251),t.dataView.setFloat64(t.position,e,!1),t.position+=8}}}if(e>=0){if(e<=23)return{length:1,encode:t=>t.pushUint8(e)};if(e<=255)return{length:2,encode:t=>{t.pushUint8(24),t.pushUint8(e)}};if(e<=65535)return{length:3,encode:t=>{t.pushUint8(25),t.pushUint16(e)}};if(e<=4294967295)return{length:5,encode:t=>{t.pushUint8(26),t.pushUint32(e)}};throw new j({number:e.toString(10)})}let t=-1-e;if(e>=-24)return{length:1,encode:e=>e.pushUint8(32+t)};if(t<=255)return{length:2,encode:e=>{e.pushUint8(56),e.pushUint8(t)}};if(t<=65535)return{length:3,encode:e=>{e.pushUint8(57),e.pushUint16(t)}};if(t<=4294967295)return{length:5,encode:e=>{e.pushUint8(58),e.pushUint32(t)}};throw new j({number:e.toString(10)})},n.string=function(e){let t=u.mL(e),r=t.length;if(r<=23)return{length:1+r,encode(e){e.pushUint8(96+r),r>0&&e.pushBytes(t)}};if(r<=255)return{length:2+r,encode(e){e.pushUint8(120),e.pushUint8(r),e.pushBytes(t)}};if(r<=65535)return{length:3+r,encode(e){e.pushUint8(121),e.pushUint16(r),e.pushBytes(t)}};if(r<=4294967295)return{length:5+r,encode(e){e.pushUint8(122),e.pushUint32(r),e.pushBytes(t)}};throw new M({size:r})},n.array=function(e){let t=e.map(e=>n(e)),r=t.reduce((e,t)=>
145e+t.length,0),i=e.length;if(i<=23)return{length:1+r,encode(e){for(let r of(e.pushUint8(128+i),t))r.encode(e)}};if(i<=255)return{length:2+r,encode(e){for(let r of(e.pushUint8(152),e.pushUint8(i),t))r.encode(e)}};if(i<=65535)return{length:3+r,encode(e){for(let r of(e.pushUint8(153),e.pushUint16(i),t))r.encode(e)}};if(i<=4294967295)return{length:5+r,encode(e){for(let r of(e.pushUint8(154),e.pushUint32(i),t))r.encode(e)}};throw new R({size:i})},n.byteString=function(e){let t=e.byteLength;if(t<=23)return{length:1+t,encode(r){r.pushUint8(64+t),r.pushBytes(e)}};if(t<=255)return{length:2+t,encode(r){r.pushUint8(88),r.pushUint8(t),r.pushBytes(e)}};if(t<=65535)return{length:3+t,encode(r){r.pushUint8(89),r.pushUint16(t),r.pushBytes(e)}};if(t<=4294967295)return{length:5+t,encode(r){r.pushUint8(90),r.pushUint32(t),r.pushBytes(e)}};throw new U({size:t})},n.object=function(e){let t=Object.keys(e),r=t.map(t=>({key:n(t),value:n(e[t])})),i=r.reduce((e,t)=>e+t.key.length+t.value.length,0),a=t.length;if(a<=23)return{length:1+i,encode(e){for(let t of(e.pushUint8(160+a),r))t.key.encode(e),t.value.encode(e)}};if(a<=255)return{length:2+i,encode(e){for(let t of(e.pushUint8(184),e.pushUint8(a),r))t.key.encode(e),t.value.encode(e)}};if(a<=65535)return{length:3+i,encode(e){for(let t of(e.pushUint8(185),e.pushUint16(a),r))t.key.encode(e),t.value.encode(e)}};if(a<=4294967295)return{length:5+i,encode(e){for(let t of(e.pushUint8(186),e.pushUint32(a),r))t.key.encode(e),t.value.encode(e)}};throw new N({size:a})},n.map=function(e){let t=[];for(let[r,i]of e)t.push({key:n(r),value:n(i)});let r=t.reduce((e,t)=>e+t.key.length+t.value.length,0),i=e.size;if(i<=23)return{length:1+r,encode(e){for(let r of(e.pushUint8(160+i),t))r.key.encode(e),r.value.encode(e)}};if(i<=255)return{length:2+r,encode(e){for(let r of(e.pushUint8(184),e.pushUint8(i),t))r.key.encode(e),r.value.encode(e)}};if(i<=65535)return{length:3+r,encode(e){for(let r of(e.pushUint8(185),e.pushUint16(i),t))r.key.encode(e),r.value.encode(e)}};if(i<=4294967295)return{length:5+r,encode(e){for(let r of(e.pushUint8(186),e.pushUint32(i),t))r.key.encode(e),r.value.encode(e)}};throw new N({size:i})},function(e){function t(e,t){if(t<24)return t;if(24===t)return e.readUint8();if(25===t)return e.readUint16();if(26===t)return e.readUint32();if(27===t)throw new T;throw new C({additionalInfo:t})}e.readUnsignedInteger=function(e,r){return t(e,r)},e.readNegativeInteger=function(e,r){return -1-t(e,r)},e.readByteString=function(r,n){if(31===n){let t=[],n=0;for(;;){if(255===r.inspectUint8()){r.readUint8();break}let i=e(r);if(!(i instanceof Uint8Array))throw new O({type:"byte string"});t.push(i),n+=i.length}let i=new Uint8Array(n),a=0;for(let e of t)i.set(e,a),a+=e.length;return i}let i=t(r,n);return r.readBytes(i)},e.readTextString=function(r,n){if(31===n){let t=[];for(;;){if(255===r.inspectUint8()){r.readUint8();break}let n=e(r);if("string"!=typeof n)throw new O({type:"text string"});t.push(n)}return t.join("")}let i=t(r,n),a=r.readBytes(i);return u.BB(a)},e.readArray=function(r,n){if(31===n){let t=[];for(;;){if(255===r.inspectUint8()){r.readUint8();break}t.push(e(r))}return t}let i=t(r,n),a=[];for(let t=0;t<i;t++)a.push(e(r));return a},e.readMap=function(r,n){if(31===n){let t={};for(;;){if(255===r.inspectUint8()){r.readUint8();break}let n=e(r),i="string"==typeof n?n:String(n),a=e(r);t[i]=a}return t}let i=t(r,n),a={};for(let t=0;t<i;t++){let t=e(r),n="string"==typeof t?t:String(t),i=e(r);a[n]=i}return a},e.readSimpleOrFloat=function(e,t){if(20===t)return!1;if(21===t)return!0;if(22===t)return null;if(23!==t){if(25===t)return function(e){let t=e>>15&1,r=e>>10&31,n=1023&e;if(0===r){if(0===n)return t?-0:0;let e=n/1024*6103515625e-14;return t?-e:e}if(31===r)return 0===n?t?-1/0:1/0:NaN;let i=2**(r-15)*(1+n/1024);return t?-i:i}(e.readUint16());if(26===t){let t=e.dataView.getFloat32(e.position,!1);return e.position+=4,t}if(27===t){let t=e.dataView.getFloat64(e.position,!1);return e.position+=8,t}if(24===t){let t=e.readUint8();if(t<32)throw new S({value:t});return}throw new C({additionalInfo:t})}}}(D||(D={})),Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);let F=2n**64n-1n,L=`0x${"00".repeat(32)}`;function H(e){let t;let{owners:r,salt:n,threshold:i,version:s=0n}=e;if(void 0!==n&&32!==a.dp(n))throw new V({reason:"salt must be 32 bytes"});if(W(s),0===r.length)throw new V({reason:"owners cannot be empty"});if(r.length>48)throw new V({reason:"too many owners"});if(!Number.isInteger(Number(i)))throw new V({reason:"threshold must be an integer"});if(1>Number(i))throw new V({reason:"threshold cannot be zero"});if(Number(i)>
145255)throw new V({reason:"threshold exceeds max threshold"});let l=0,c=[];for(let e of r){if(!o.Gu(e.owner)||0n===a.Gh(e.owner))throw new V({reason:"owner cannot be zero"});if(!Number.isInteger(Number(e.weight)))throw new V({reason:"owner weight must be an integer"});if(1>Number(e.weight))throw new V({reason:"owner weight cannot be zero"});let r=a.Gh(e.owner);if(void 0!==t&&t>=r)throw new V({reason:"owners must be strictly ascending"});t=r;let n=Number(e.weight);l+=n,c.push(n)}if(l>255)throw new V({reason:"total owner weight exceeds u8 max"});if(Number(i)>l)throw new V({reason:"threshold exceeds total owner weight"});let u=c.sort((e,t)=>t-e).slice(0,8).reduce((e,t)=>e+t,0);if(Number(i)>u)throw new V({reason:"threshold exceeds weight reachable by 8 owner signatures"})}function G(e){let t=e.version??0n;W(t);let r={owners:[...e.owners].sort((e,t)=>a.Gh(e.owner)<a.Gh(t.owner)?-1:1),salt:e.salt?a.Q_(e.salt,32):L,threshold:e.threshold,version:BigInt(t)};return H(r),r}function q(e){return G({...e,version:a.Gh(e.version)})}function $(e){if(H(e),0n!==BigInt(e.version??0))throw new V({reason:"account address requires version zero"});let t=function(e){let t=u.H_(o.Dp(e.from)),r=u.Q_(u.Gu(e.salt)?e.salt:u.H_(e.salt),32),n="bytecodeHash"in e?u.Gu(e.bytecodeHash)?e.bytecodeHash:u.H_(e.bytecodeHash):l.wn(e.bytecode,{as:"Bytes"});return o.Dp(a.tP(l.wn(u.zo(u.H_("0xff"),t,r,n),{as:"Hex"}),12))}({bytecodeHash:"0x4b5ff53c5328a10a6ec5224adf16de5e204a47057c98af037ee30b7de660a8a6",from:"0x8a196A227C48Ae8A3E36EebD4E106675CC0f6E64",salt:l.wn(a.zo(a.mL("tempo:multisig:account"),a.Q_(e.salt??L,32),a.xS(e.threshold,{size:1}),a.xS(e.owners.length,{size:1}),...e.owners.flatMap(e=>[e.owner,a.xS(e.weight,{size:1})])))});if(0n===a.Gh(t))throw new V({reason:"derived account cannot be zero"});if(e.owners.some(e=>o.Xy(e.owner,t)))throw new V({reason:"derived account cannot be an owner"});return t}function K(e){let{account:t,config:r,payload:n}=e;return W(r.version),l.wn(a.zo(a.mL("tempo:multisig:signature"),a.Dp(n),t,a.xS(r.version??0n,{size:8})))}function Z(e){H(e);let t=e.owners.map(e=>[e.owner,a.xS(e.weight)]),r=e.salt?a.Q_(e.salt,32):L,n=BigInt(e.version??0);return[r,0n===n?"0x":a.xS(n),a.xS(e.threshold),t]}class V extends s.G{constructor({reason:e}){super(`Invalid native multisig config: ${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigConfig.InvalidConfigError"})}}function W(e){if("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&!Number.isSafeInteger(e)||0n>BigInt(e)||BigInt(e)>F)throw new V({reason:"version must be an unsigned 64-bit integer"})}let Y="0x01",X="0x02",J="0x03",Q="0x04",ee="0x05",et="0x7777777777777777777777777777777777777777777777777777777777777777";function er(e){let t=el(e);if("secp256k1"===t){x.hu(e.signature);return}if("p256"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),"boolean"!=typeof e.prehash&&t.push("prehash"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new eh({envelope:e,missing:t,type:"p256"});return}if("webAuthn"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),e.metadata?(e.metadata.authenticatorData||t.push("metadata.authenticatorData"),e.metadata.clientDataJSON||t.push("metadata.clientDataJSON")):t.push("metadata"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new eh({envelope:e,missing:t,type:"webAuthn"});return}if("keychain"===t){er(e.inner);return}if("multisig"===t){en(e,1);return}}function en(e,t){let r=[];if(e.account||r.push("account"),e.config||r.push("config"),Array.isArray(e.signatures)||r.push("signatures"),r.length>0)throw new eh({envelope:e,missing:r,type:"multisig"});if(t>2)throw new eb({reason:"multisig nesting depth exceeds 2"});if(!o.Gu(e.account))throw new eb({reason:"multisig account is invali
145d"});if(0n===a.Gh(e.account))throw new eb({reason:"multisig account cannot be zero"});if(H(e.config),e.config.owners.some(t=>o.Xy(t.owner,e.account)))throw new eb({reason:"multisig account cannot be an owner"});if(0n===e.config.version&&!o.Xy($(e.config),e.account))throw new eb({reason:"initial multisig config does not derive account"});if(0===e.signatures.length)throw new eb({reason:"multisig signatures cannot be empty"});if(e.signatures.length>8)throw new eb({reason:"multisig signatures exceed 8"});for(let r of e.signatures){let e=el(r);if("keychain"===e)throw new eb({reason:"keychain owner approvals are not allowed"});if("multisig"===e)en(r,t+1);else if(er(r),a.dp(ec(r))>2049)throw new eb({reason:"multisig owner signature exceeds 2049 bytes"})}}function ei(e){let{signature:t,root:r}=e;return"keychain"===t.type?r?t.userAddress:ei({...e,signature:t.inner}):"multisig"===t.type?t.account:o.Ml(function e(t){let{payload:r,signature:n}=t;switch(n.type){case"secp256k1":return E({payload:r,signature:n.signature});case"p256":case"webAuthn":return n.publicKey;case"keychain":return e({payload:r,signature:n.inner});case"multisig":throw new ep({envelope:n})}}(e))}function ea(e){return function e(t,r){let n=t.endsWith(et.slice(2))?a.tP(t,0,-a.dp(et)):t;if(65===a.dp(n)){let e=x.H_(n);return x.hu(e),{signature:e,type:"secp256k1"}}let i=a.tP(n,0,1),s=a.tP(n,1),l=a.dp(s);if(i===Y){if(129!==l)throw new em({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${l} bytes`,serialized:n});return{publicKey:{prefix:4,x:a.Gh(a.tP(s,64,96)),y:a.Gh(a.tP(s,96,128))},prehash:0!==a.He(a.tP(s,128,129)),signature:{r:a.Gh(a.tP(s,0,32)),s:a.Gh(a.tP(s,32,64))},type:"p256"}}if(i===X){let e,t;if(l<128)throw new em({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${l} bytes`,serialized:n});let r=l-128,i=a.tP(s,0,r);for(let n=37;n<r;n++){let r=a.BB(a.tP(i,n));if(r.startsWith("{")&&r.endsWith("}"))try{JSON.parse(r),e=a.tP(i,0,n),t=r;break}catch{}}if(!e||!t)throw new em({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:n});return{publicKey:{prefix:4,x:a.Gh(a.tP(s,r+64,r+96)),y:a.Gh(a.tP(s,r+96,r+128))},metadata:{authenticatorData:e,clientDataJSON:t},signature:{r:a.Gh(a.tP(s,r,r+32)),s:a.Gh(a.tP(s,r+32,r+64))},type:"webAuthn"}}if(i===J||i===Q)return{userAddress:a.tP(s,0,20),inner:e(a.tP(s,20),r),type:"keychain",version:i===Q?"v2":"v1"};if(i===ee){let t=r+1;if(t>2)throw new em({reason:"multisig nesting depth exceeds 2",serialized:n});let i=f(s);if(!Array.isArray(i)||3!==i.length)throw new em({reason:"invalid multisig wire shape: expected exactly three fields",serialized:n});let[l,c,u]=i;if(!o.Gu(l))throw new em({reason:"invalid multisig account",serialized:n});if(!Array.isArray(c))throw new em({reason:"invalid multisig config",serialized:n});let[d,p,h,m]=c;if(4!==c.length||Array.isArray(d)||32!==a.dp(d)||Array.isArray(p)||a.dp(p)>8||"0x"!==p&&"0x00"===a.tP(p,0,1)||Array.isArray(h)||a.dp(h)>1||!Array.isArray(m)||m.some(e=>!Array.isArray(e)||2!==e.length||e.some(Array.isArray)||!o.Gu(e[0])||a.dp(e[1])>1))throw new em({reason:"invalid multisig config",serialized:n});if(!Array.isArray(u)||u.some(Array.isArray))throw new em({reason:"invalid multisig signatures list",serialized:n});if(0===u.length)throw new em({reason:"multisig signatures cannot be empty",serialized:n});if(u.length>8)throw new em({reason:"multisig signatures exceed 8",serialized:n});for(let e of u)if(a.dp(e)>2049&&"0x05"!==a.tP(e,0,1))throw new em({reason:"multisig owner signature exceeds 2049 bytes",serialized:n});let b={account:l,config:function(e){let[t,r,n,i]=e;return{owners:i.map(e=>{let[t,r]=e;return{owner:t,weight:r&&"0x"!==r?a.He(r):0}}),salt:t&&"0x"!==t?a.Q_(t,32):L,threshold:"0x"===n?0:a.He(n),version:"0x"===r?0n:a.Gh(r)}}(c),signatures:u.map(r=>e(r,t)),type:"multisig"};return en(b,t),b}throw new em({reason:`Unknown signature type identifier: ${i}. Expected ${Y} (P256), ${X} (WebAuthn), ${J} (Keychain V1), ${Q} (Keychain V2), or ${ee} (Multisig)`,serialized:n})}(e,0)}function eo(e,t){if("string"==typeof e)return ea(e);if("object"==typeof e&&null!==e&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};let r=el(e);
145if("multisig"===r){let t=G(e.config),n={account:e.account??$(t),config:t,signatures:e.signatures.map(e=>eo(e)),type:r};return er(n),n}return{...e,..."p256"===r?{prehash:e.prehash}:{},..."keychain"===r?{..."object"==typeof e&&null!==e&&"version"in e&&e.version?{}:{version:"v2"},..."object"==typeof e&&"keyId"in e&&e.keyId?{}:(()=>{let r=e.inner;return"p256"===r.type||"webAuthn"===r.type?{keyId:o.Ml(r.publicKey)}:"secp256k1"===r.type&&t?.payload?{keyId:o.Ml(E({payload:t.payload,signature:r.signature}))}:{}})()}:{},type:r}}function es(e){if("string"==typeof e){let t=a.zo(ee,e),r=ea(t);if("multisig"!==r.type||!a.Xy(ec(r),t))throw new em({reason:"invalid multisig RPC signature",serialized:e});return r}if("secp256k1"===e.type)return{signature:x.VE(e),type:"secp256k1"};if("p256"===e.type)return{prehash:e.preHash,publicKey:{prefix:4,x:a.Gh(e.pubKeyX),y:a.Gh(e.pubKeyY)},signature:{r:a.Gh(e.r),s:a.Gh(e.s)},type:"p256"};if("webAuthn"===e.type){let t,r;let n=e.webauthnData,i=a.dp(n);for(let e=37;e<i;e++){let i=a.BB(a.tP(n,e));if(i.startsWith("{")&&i.endsWith("}"))try{JSON.parse(i),t=a.tP(n,0,e),r=i;break}catch{}}if(!t||!r)throw new em({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:n});return{metadata:{authenticatorData:t,clientDataJSON:r},publicKey:{prefix:4,x:a.Gh(e.pubKeyX),y:a.Gh(e.pubKeyY)},signature:{r:a.Gh(e.r),s:a.Gh(e.s)},type:"webAuthn"}}if("keychain"===e.type||"userAddress"in e&&"signature"in e)return{type:"keychain",userAddress:e.userAddress,inner:es(e.signature),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new ep({envelope:e})}function el(e){if("object"!=typeof e||null===e)throw new ep({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&"object"==typeof e.signature&&null!==e.signature&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&"boolean"==typeof e.prehash)return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";if("config"in e&&"signatures"in e)return"multisig";throw new ep({envelope:e})}function ec(e,t={}){let r=el(e);if("secp256k1"===r)return a.zo(x.NC(e.signature),t.magic?et:"0x");if("p256"===r)return a.zo(Y,a.xS(e.signature.r,{size:32}),a.xS(e.signature.s,{size:32}),a.xS(e.publicKey.x,{size:32}),a.xS(e.publicKey.y,{size:32}),a.xS(e.prehash?1:0,{size:1}),t.magic?et:"0x");if("webAuthn"===r){let r=a.zo(e.metadata.authenticatorData,a.mL(e.metadata.clientDataJSON));return a.zo(X,r,a.xS(e.signature.r,{size:32}),a.xS(e.signature.s,{size:32}),a.xS(e.publicKey.x,{size:32}),a.xS(e.publicKey.y,{size:32}),t.magic?et:"0x")}if("keychain"===r){let r="v1"===e.version?J:Q;return a.zo(r,e.userAddress,ec(e.inner),t.magic?et:"0x")}if("multisig"===r)return er(e),a.zo(ee,h([e.account,Z(e.config),e.signatures.map(e=>ec(e))]),t.magic?et:"0x");throw new ep({envelope:e})}function eu(e){let{account:t,config:r,payload:n,signatures:i}=e,o=K({account:t,config:G(r),payload:n});return i.map(e=>({key:a.Gh(ei({payload:o,signature:e})),signature:e})).sort((e,t)=>e.key<t.key?-1:e.key>t.key?1:0).map(e=>e.signature)}function ed(e){let t=el(e);if("secp256k1"===t)return{...x.oO(e.signature),type:"secp256k1"};if("p256"===t)return{preHash:e.prehash,pubKeyX:a.xS(e.publicKey.x,{size:32}),pubKeyY:a.xS(e.publicKey.y,{size:32}),r:a.xS(e.signature.r,{size:32}),s:a.xS(e.signature.s,{size:32}),type:"p256"};if("webAuthn"===t){let t=a.zo(e.metadata.authenticatorData,a.mL(e.metadata.clientDataJSON));return{pubKeyX:a.xS(e.publicKey.x,{size:32}),pubKeyY:a.xS(e.publicKey.y,{size:32}),r:a.xS(e.signature.r,{size:32}),s:a.xS(e.signature.s,{size:32}),type:"webAuthn",webauthnData:t}}if("keychain"===t)return{type:"keychain",userAddress:e.userAddress,signature:ed(e.inner),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};if("multisig"===t)return a.tP(ec(e),1);throw new ep({envelope:e})}function ef(e,t){let{payload:r}=t,n=t.address?t.address:t.publicKey?o.Ml(t.publicKey):void 0;if(!n)return!1;let i=eo(e);
145if("secp256k1"===i.type)return!!n&&function(e){let{hash:t,payload:r}=e;if(e.address){var n;return o.Xy(e.address,(n={payload:r,signature:e.signature},o.Ml(E(n))))}return w.secp256k1.verify(e.signature,u.Dp(r),g.O0(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])}({address:n,payload:r,signature:i.signature});if("p256"===i.type){let e=o.Ml(i.publicKey);return!!o.Xy(e,n)&&v({hash:i.prehash,publicKey:i.publicKey,payload:r,signature:i.signature})}if("webAuthn"===i.type){let e=o.Ml(i.publicKey);return!!o.Xy(e,n)&&function(e){let{challenge:t,metadata:r,origin:n,publicKey:i,rpId:o,signature:s}=e,{authenticatorData:c,clientDataJSON:d,userVerificationRequired:f}=r,p=u.H_(c);if(p.length<37)return!1;if(void 0!==o){let e=p.slice(0,32),t=l.JQ(a.mL(o),{as:"Bytes"});if(!u.Xy(e,t))return!1}let h=p[32];if((1&h)!=1||f&&(4&h)!=4||(8&h)!=8&&(16&h)==16)return!1;let m=JSON.parse(d);if("webauthn.get"!==m.type||!m.challenge||a.xv(function(e){let t=e.replace(/=+$/,""),r=t.length,n=new Uint8Array(r+3);A.encodeInto(t+"===",n);for(let e=0,r=0;e<t.length;e+=4,r+=3){let t=(k[n[e]]<<18)+(k[n[e+1]]<<12)+(k[n[e+2]]<<6)+k[n[e+3]];n[r]=t>>16,n[r+1]=t>>8&255,n[r+2]=255&t}return new Uint8Array(n.buffer,0,(r>>2)*3+(r%4&&r%4-1))}(m.challenge))!==t||void 0!==n&&!(Array.isArray(n)?n:[n]).includes(m.origin))return!1;let b=l.JQ(u.mL(d),{as:"Bytes"});return v({hash:!0,payload:u.zo(p,b),publicKey:i,signature:s})}({challenge:a.Dp(r),metadata:i.metadata,publicKey:i.publicKey,signature:i.signature})}throw new ey(`Unable to verify signature envelope of type "${i.type}".`)}class ep extends s.G{constructor({envelope:e}){super(`Unable to coerce value (\`${b.Pz(e)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}class eh extends s.G{constructor({envelope:e,missing:t,type:r}){super(`Signature envelope of type "${r}" is missing required properties: ${t.map(e=>`\`${e}\``).join(", ")}. 146 147Provided: ${b.Pz(e)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}}class em extends s.G{constructor({reason:e,serialized:t}){super(`Unable to deserialize signature envelope: ${e}`,{metaMessages:[`Serialized: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}}class eb extends s.G{constructor({reason:e}){super(`Invalid native multisig owner approval: ${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidMultisigApprovalError"})}}class ey extends s.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}}function eg(e){return e.startsWith("tempo")?function(e){if(!e.startsWith("tempox"))throw new ev({address:e});let t=e.slice(6);return a.hu(t,{strict:!0}),{address:o.K2(t)}}(e).address:e}class ev extends s.G{constructor({address:e}){super(`Tempo address "${e}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}}function ew(e,t={}){if("keyId"in e)return eE(e);void 0!==e.witness&&eS(e.witness),e.signature&&eI(e.signature);let r={...e,address:eg(e.address),...e.limits?{limits:e.limits.map(e=>({...e,token:eg(e.token)}))}:{},...e.scopes?{scopes:e.scopes.map(e=>({...e,address:eg(e.address),selector:eO(e.selector),...e.recipients?{recipients:e.recipients.map(e=>eg(e))}:{}}))}:{}};if(t.signature){let e=eo(t.signature);return eI(e),{...r,signature:e}}return r}function eE(e){let{allowedCalls:t,chainId:r,keyId:n,expiry:i,limits:o,keyType:s}=e,l=e.witness??void 0,c=e.isAdmin??void 0,u=e.account??void 0,d=es(e.signature);eI(d),void 0!==l&&eS(l);let f=t?t.flatMap(e=>e.selectorRules&&0!==e.selectorRules.length?e.selectorRules.map(t=>{var r;return{address:e.target,selector:"string"==typeof(r=t.selector)?r:Array.isArray(r)?a.xv(new Uint8Array(r)):r,...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
147}):[{address:e.target}]):void 0;return{address:n,chainId:"0x"===r?0n:a.Gh(r),...null!=i?{expiry:Number(i)}:{},limits:o?.map(e=>({token:e.token,limit:BigInt(e.limit),...e.period&&e_(e.period)>0?{period:e_(e.period)}:{}})),...f?{scopes:f}:{},signature:d,type:s,...void 0!==l?{witness:l}:{},...void 0!==u?{account:u,isAdmin:c??!1}:{}}}function ex(e){let[t,r]=e,[n,i,o,...s]=t,l=(()=>{switch(i){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw Error(`Invalid key type: ${i}`)}})(),[c,u,d,f,p,h]=s,m=eB(c)?void 0:e_(c)||void 0,b=Array.isArray(u)&&u.length>0?u.map(e=>{let[t,r,n]=e;return{token:t,limit:"0x"===r?0n:BigInt(r),...void 0!==n?{period:e_(n)}:{}}}):void 0,y=Array.isArray(d)?d.flatMap(e=>{let[t,r]=e;return Array.isArray(r)&&0!==r.length?r.map(e=>{let[r,n]=e;return{address:t,selector:r,...Array.isArray(n)&&n.length>0?{recipients:n}:{}}}):[{address:t}]}):void 0,g=eB(f)?void 0:f;void 0!==g&&eS(g);let v=(()=>{if(!eB(p)){if("0x01"!==p)throw new eM(p);return!0}})(),w=eB(h)?void 0:h,E={address:o,chainId:"0x"===n?0n:a.Gh(n),type:l,...void 0!==m?{expiry:m}:{},...void 0!==b?{limits:b}:{},...void 0!==y?{scopes:y}:{},...void 0!==g?{witness:g}:{},...void 0!==w?{account:w,isAdmin:v??!1}:{}};if(r){let e=ea(r);eI(e),E.signature=e}return ew(E)}function eA(e){let[t]=eP(e),r=h(t);return l.wn(r)}function ek(e){let{address:t,scopes:r,chainId:n,expiry:i,limits:o,type:s,signature:l,witness:c,isAdmin:u,account:d}=e;eI(l),void 0!==c&&eS(c);let f=(()=>{if(!r)return;let e=new Map;for(let t of r){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push({selector:eO(t.selector),...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
147)}return[...e.entries()].map(([e,t])=>({target:e,...t.length>0?{selectorRules:t}:{}}))})();return{chainId:0n===n?"0x":a.xS(n),expiry:"number"==typeof i?a.xS(i):null,keyId:eg(t),keyType:s,limits:o?.map(({token:e,limit:t,period:r})=>({token:e,limit:a.xS(t),...r?{period:eT(r)}:{}})),signature:ed(l),...f?{allowedCalls:f}:{},...void 0!==c?{witness:c}:{},...u?{isAdmin:!0}:{},...void 0!==d?{account:d}:{}}}function eP(e){let{address:t,chainId:r,scopes:n,expiry:i,limits:a,witness:o,isAdmin:s,account:l}=e;void 0!==o&&eS(o);let c=(()=>{if(e.signature)return eI(e.signature),ec(e.signature)})(),u=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw Error(`Invalid key type: ${e.type}`)}})(),d=a?.map(e=>{let t=[e.token,eC(e.limit)];return e.period&&e.period>0&&t.push(eT(e.period)),t}),f=(()=>{if(!n)return;let e=new Map;for(let t of n){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push([eO(t.selector),t.recipients??[]])}return[...e.entries()].map(([e,t])=>[e,t.map(([e,t])=>[e,t])])})(),p=void 0!==o||s||void 0!==l,h=[{value:null!=i&&0!==i?eT(i):void 0,placeholder:"0x"},{value:d,placeholder:p?"0x":[]},{value:f,placeholder:"0x"},{value:o,placeholder:"0x"},{value:s?"0x01":void 0,placeholder:"0x"},{value:l,placeholder:"0x"}],m=-1;for(let e=h.length-1;e>=0;e--)if(void 0!==h[e].value){m=e;break}let b=h.slice(0,m+1).map(({value:e,placeholder:t})=>e??t);return[[eC(r),u,t,...b],...c?[c]:[]]}function eC(e){return 0n===e?"0x":a.xS(e)}function eT(e){return 0===e?"0x":a.xS(e)}function e_(e){return"0x"===e?0:a.He(e)}function eO(e){if(e)return e.startsWith("0x")?e:c.GH(e)}function eS(e){if(32!==a.dp(e))throw new ej(e)}function eI(e){if("keychain"===e.type)throw new eR(e.type)}function eB(e){return void 0===e||"0x"===e}class ej extends Error{constructor(e){super(`Witness \`${e}\` must be exactly 32 bytes (got ${a.dp(e)} bytes).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidWitnessSizeError"})}}class eM extends Error{constructor(e){super(`Admin marker \`${e}\` is invalid; expected \`0x01\` (TIP-1049).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidAdminMarkerError"})}}
147class eR extends Error{constructor(e){super(`Signature type \`${e}\` is invalid for key authorizations; expected \`secp256k1\`, \`p256\`, \`webAuthn\`, or \`multisig\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidSignatureTypeError"})}}class eN extends s.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${a.dp(e)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}let eU={wei:0,gwei:9,szabo:12,finney:15,ether:18};function ez(e,t="wei"){return function(e,t=0){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}(e,eU.gwei-eU[t])}class eD extends s.G{constructor({feeCap:e}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${e?` = ${ez(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}class eF extends s.G{constructor({chainId:e}){super(void 0!==e?`Chain ID "${e}
147" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class eL extends s.G{constructor({attributes:e,serialized:t,type:r}){let n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}class eH extends s.G{constructor({maxPriorityFeePerGas:e,maxFeePerGas:t}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${ez(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${ez(t)} gwei`:""}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}function eG(e){let{address:t,chainId:r,nonce:n}=e,i=es(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:i}}function eq(e){if("string"==typeof e){let t=eg(e);return o.hu(t),t}let t=a.xS(e,{size:18});return a.zo("0x20c0",t)}let e$="0x78",eK="tempo";function eZ(e){let{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:i,validBefore:a,validAfter:s}=e;if(!t||0===t.length)throw new eJ;if("number"==typeof a&&"number"==typeof s&&a<=s)throw new eQ({validBefore:a,validAfter:s});if(t)for(let e of t)e.to&&o.hu(e.to,{strict:!1});if(r<=0)throw new eF({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new eD({feeCap:n});if(i&&n&&i>n)throw new eH({maxFeePerGas:n,maxPriorityFeePerGas:i})}function eV(e){let t=f(a.tP(e,1)),[r,n,i,s,c,u,d,p,h,m,b,y,g,v,w]=t,E=Array.isArray(v)?v:void 0,A=E?w:v;if(!(13===t.length||14===t.length||15===t.length))throw new eL({attributes:{authorizationList:g,chainId:r,maxPriorityFeePerGas:n,maxFeePerGas:i,gas:s,calls:c,accessList:u,keyAuthorization:E,nonceKey:d,nonce:p,validBefore:h,validAfter:m,feeToken:b,feePayerSignatureOrSender:y,...t.length>12?{signature:A}:{}},serialized:e,type:eK});let k={chainId:Number(r),type:eK};a.Gu(s)&&"0x"!==s&&(k.gas=BigInt(s)),a.Gu(p)&&(k.nonce="0x"===p?0n:BigInt(p)),a.Gu(i)&&"0x"!==i&&(k.maxFeePerGas=BigInt(i)),a.Gu(n)&&"0x"!==n&&(k.maxPriorityFeePerGas=BigInt(n)),a.Gu(d)&&(k.nonceKey="0x"===d?0n:BigInt(d)),a.Gu(h)&&"0x"!==h&&(k.validBefore=Number(h)),a.Gu(m)&&"0x"!==m&&(k.validAfter=Number(m)),a.Gu(b)&&"0x"!==b&&(k.feeToken=b),c&&"0x"!==c&&(k.calls=c.map(e=>{let[t,r,n]=e,i={};return t&&"0x"!==t&&(i.to=t),r&&"0x"!==r&&(i.value=BigInt(r)),n&&"0x"!==n&&(i.data=n),i})),u?.length!==0&&"0x"!==u&&(k.accessList=function(e){let t=[];for(let r=0;r<e.length;r++){let[n,i]=e[r];n&&o.hu(n,{strict:!1}),t.push({address:n,storageKeys:i.map(e=>l.Gu(e)?e:a.fi(e))})}return t}(u)),g?.length!==0&&"0x"!==g&&(k.authorizationList=function(e){let t=[];for(let r of e)t.push(function(e){let[t,r,n,i]=e,a={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return i&&(a.signature=ea(i)),function(e,t={}){if("string"==typeof e.chainId)return eG(e);let r={...e,address:eg(e.address)};return t.signature?{...r,signature:t.signature}:r}(a)}(r));return t}(g)),"0x"!==y&&void 0!==y&&("0x00"===y||o.Gu(y)?(k.feePayerSignature=null,o.Gu(y)&&(k.from=y)):k.feePayerSignature=x.xI(y)),E&&(k.keyAuthorization=ex(E));let P=A?ea(A):void 0;if(P&&(k={...k,signature:P}),!k.from&&P)try{k.from=ei({payload:eX(eW(k)),signature:P,root:!0})}catch{}return eZ(k),k}function eW(e,t={}){let{feePayerSignature:r,signature:n}=t,i="string"==typeof e?eV(e):e;return i.from&&(i.from=eg(i.from)),i.calls&&(i.calls=i.calls.map(e=>({...e,...e.to?{to:eg(e.to)}:{}}))),eZ(i),{...i,...n?{signature:eo(n)}:{},...r?{feePayerSignature:x.Dp(r)}:{},type:"tempo"}}function eY(e,t={}){let{accessList:r,authorizationList:n,calls:i,chainId:s,feeToken:l,gas:c,keyAuthorization:u,nonce:d,nonceKey:f,maxFeePerGas:p,maxPriorityFeePerGas:m,validBefore:b,validAfter:y}=e;eZ(e);let g=function(e){if(!e||0===e.length)return[];let t=[];for(let{address:r,storageKeys:n}of e){for(let e=0;e<n.length;e++)if(32!==a.dp(n[e]))throw new eN({storageKey:n[e]});r&&o.hu(r,{strict:!1}),t.push([r,n])}return t}(r),v=t.signature||e.signature,w=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(function(e){let{address:t,chainId:r,nonce:n}=e,i=e.signature?ec(e.signature):void 0;return[r?a.xS(r):"0x",t,n?a.xS(n):"0x",...i?[i]:[]]}(r));return t}(n),A=i.map(e=>[e.to?eg(e.to):"0x",e.value?a.xS(e.value):"0x",e.data??"0x"]),k=!1,P=(()=>
147{if(t.sender)return t.sender;if("feePayer"===t.format&&v){let t=eo(v);if("keychain"===t.type)return t.userAddress;if("p256"===t.type||"webAuthn"===t.type)return o.Ml(t.publicKey);if("secp256k1"===t.type){var r;return r={payload:eX(eW(e)),signature:t.signature},o.Ml(E(r))}}let n=void 0!==t.feePayerSignature?t.feePayerSignature:e.feePayerSignature;return null===n?(k=!0,"0x00"):n?x.Vb(n):"0x"})(),C=[a.xS(s),m?a.xS(m):"0x",p?a.xS(p):"0x",c?a.xS(c):"0x",A,g,f?a.xS(f):"0x",d?a.xS(d):"0x","number"==typeof b?a.xS(b):"0x","number"==typeof y?a.xS(y):"0x",k||"bigint"!=typeof l&&"string"!=typeof l?"0x":eq(l),P,w,...u?[eP(u)]:[],...v?[ec(eo(v))]:[]];return a.zo("feePayer"===t.format?e$:"0x76",h(C))}function eX(e,t={}){let r=function(e,t={}){let r=t.presign?eY({...e,signature:void 0,...void 0!==e.feePayerSignature?{feePayerSignature:null}:{}}):eY(e);return l.wn(r)}(e,{presign:!0});return t.from?l.wn(a.zo("0x04",r,eg(t.from))):r}class eJ extends s.G{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class eQ extends s.G{constructor({validBefore:e,validAfter:t}){super(`validBefore (${e}) must be greater than validAfter (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}async function e0(e){let{account:t,approvals:r,hash:n}=e;if(!o.Gu(t)||0n===a.Gh(t))throw new e4({reason:"account is invalid"});if(!l.Gu(n))throw new e4({reason:"hash is invalid"});let i=G(e.config);if(0n===i.version&&!o.Xy($(i),t))throw new e4({reason:"initial config does not derive the root multisig account"});return e2({account:t,approvals:r,config:i,hash:n},[t.toLowerCase()])}function e1(e){try{let t=e.config?.version;if("string"!=typeof t||!a.Gu(t))throw new e9({reason:"config.version must be a hexadecimal quantity"});let r=a.Gh(t);if(a.xS(r)!==t)throw new e9({reason:"config.version must use canonical quantity encoding"});return function(e){try{let t=G(e.config);if("number"!=typeof t.threshold||t.owners.some(e=>"number"!=typeof e.weight))throw new e9({reason:"config threshold and owner weights must be numbers"});let r={...e,config:t};if(function(e,t){if(!o.Gu(e.account))throw new e9({reason:"account is invalid"});if(0n===a.Gh(e.account))throw new e9({reason:"account cannot be zero"});if(!l.Gu(e.hash))throw new e9({reason:"hash is invalid"});if(e8(e.createdAt,"createdAt"),e8(e.updatedAt,"updatedAt"),e.updatedAt<e.createdAt)throw new e9({reason:"updatedAt cannot precede createdAt"});if(e8(e.signatureCount,"signatureCount"),e8(e.threshold,"threshold"),e8(e.weight,"weight"),e.threshold!==Number(t.threshold))throw new e9({reason:"threshold must equal config.threshold"});if(e.weight>255)throw new e9({reason:"weight exceeds u8 max"});if(e.signatureCount>8)throw new e9({reason:"too many selected signatures"});if(!Array.isArray(e.approvals))throw new e9({reason:"approvals must be an array"});if(e.approvals.length>t.owners.length)throw new e9({reason:"too many retained approvals"});if(e.signatureCount>e.approvals.length)throw new e9({reason:"signatureCount exceeds retained approvals"});if(0===e.signatureCount!=(0===e.weight))throw new e9({reason:"signatureCount and weight must both be zero or nonzero"});let r=new Map(t.owners.map(e=>[e.owner.toLowerCase(),Number(e.weight)])),n=[],i=new Set;for(let o of e.approvals){if("string"!=typeof o||!a.Gu(o,{strict:!0}))throw new e9({reason:"approval is invalid"});let s=function(e,t,r){let n=ea(t);if(er({account:e,config:r,signatures:[n],type:"multisig"}),ec(n).toLowerCase()!==t.toLowerCase())throw new e9({reason:"approval is not canonical"});return n}(e.account,o,t),l=ei({payload:e.hash,signature:s}).toLowerCase(),c=r.get(l);if(void 0===c)throw new e9({reason:"approval is from a non-owner"});if(i.has(l))throw new e9({reason:"keyAuthorization"===e.type?"key authorization contains duplicate owner approvals":"duplicate owner approval"});i.add(l),n.push(c)}if(!function(e,t,r){let n=Array.from({length:t+1},()=>new Set);for(let r of(n[0].add(0),e))for(let e=t;e>0;e--)for(let t of n[e-1])n[e].add(t+r);return n[t].has(r)}(n,e.signatureCount,e.weight))throw new e9({reason:"weight is not reachable by signatureCount retained owner approvals"});if(0n===t.version&&!o.Xy($(t),e.account))throw new e9({reason:"initial config does not derive the operation account"})}(r,t),"transaction"===r.type)!function(e){if("keyAuthorization"in e&&void 0!==e.ke
147yAuthorization)throw new e9({reason:"transaction operations cannot contain keyAuthorization"});let t=e.expiresAt,r=e.submissionId,n=e.transactionHash;if("pending"===e.status){if(void 0!==t||void 0!==r||void 0!==n)throw new e9({reason:"pending transactions cannot contain submission fields"})}else if("submitting"===e.status){if(e8(t,"expiresAt"),!l.Gu(r??""))throw new e9({reason:"submissionId is invalid"});if(r.toLowerCase()===e.hash.toLowerCase())throw new e9({reason:"submissionId must differ from the operation hash"});if(void 0!==n)throw new e9({reason:"submitting transactions cannot contain transactionHash"})}else if("success"===e.status){if(!l.Gu(n??""))throw new e9({reason:"transactionHash is invalid"});if(void 0!==t||void 0!==r)throw new e9({reason:"successful transactions cannot contain submission fields"})}else throw new e9({reason:"invalid transaction status"});if("pending"!==e.status&&(e.weight<e.threshold||0===e.signatureCount))throw new e9({reason:"submitted transactions must have quorum"});if("string"!=typeof e.transaction)throw new e9({reason:"transaction is invalid"});let i=eV(e.transaction);if(i.signature)throw new e9({reason:"transaction must not contain an outer sender signature"});if(i.from&&i.from.toLowerCase()!==e.account.toLowerCase())throw new e9({reason:"transaction sender does not match the operation account"});if(e5(e,eX(i)),eY(i,e.transaction.startsWith(e$)?i.from?{format:"feePayer",sender:i.from}:{format:"feePayer"}:{}).toLowerCase()!==e.transaction.toLowerCase())throw new e9({reason:"transaction is not canonically serialized"})}(r);else if("keyAuthorization"===r.type)!function(e,t){if(void 0!==e.expiresAt||void 0!==e.submissionId||void 0!==e.transaction||void 0!==e.transactionHash)throw new e9({reason:"key authorization operations cannot contain transaction fields"});if("pending"!==e.status&&"success"!==e.status)throw new e9({reason:"invalid key authorization status"});if("success"===e.status&&(e.weight<e.threshold||0===e.signatureCount))throw new e9({reason:"successful key authorizations must have quorum"});if("pending"===e.status&&e.weight>=e.threshold)throw new e9({reason:"pending key authorizations cannot have quorum"});if("string"!=typeof e.keyAuthorization)throw new e9({reason:"keyAuthorization is invalid"});let r=ex(f(e.keyAuthorization));if(!r.account||r.account.toLowerCase()!==e.account.toLowerCase())throw new e9({reason:"key authorization account does not match the operation account"});let n=r.signature;if("pending"===e.status&&n)throw new e9({reason:"pending key authorizations must be unsigned"});if("success"===e.status){if(n?.type!=="multisig")throw new e9({reason:"successful key authorizations require a multisig signature"});if(n.account.toLowerCase()!==e.account.toLowerCase())throw new e9({reason:"key authorization signature account does not match"});if(n.signatures.length!==e.signatureCount)throw new e9({reason:"key authorization signatureCount does not match its signature"});if(function(e,t,r){let n=e.approvals.map(e=>ea(e));for(let e of t){let t=n.findIndex(t=>(function e(t,r){if("multisig"!==t.type||"multisig"!==r.type)return ec(t).toLowerCase()===ec(r).toLowerCase();if(t.account.toLowerCase()!==r.account.toLowerCase()||!e7(t.config,r.config))return!1;let n=0;for(let i of r.signatures){for(;n<t.signatures.length&&!e(t.signatures[n],i);)n++;if(n===t.signatures.length)return!1;n++}return!0})(t,e));if(-1===t)throw new e9({reason:"key authorization signature is not a retained approval"});n.splice(t,1)}let i=K({account:e.account,config:e.config,payload:eA(r)}),o=t.map(e=>ei({payload:i,signature:e}));for(let e=1;e<o.length;
147e++){let t=a.Gh(o[e-1]),r=a.Gh(o[e]);if(t===r)throw new e9({reason:"key authorization contains duplicate owner approvals"});if(t>r)throw new e9({reason:"key authorization approvals are not canonically ordered"})}}(e,n.signatures,r),!e7(n.config,t))throw new e9({reason:"key authorization config does not match"})}if(e5(e,eA(r)),h(eP(r)).toLowerCase()!==e.keyAuthorization.toLowerCase())throw new e9({reason:"keyAuthorization is not canonically serialized"})}(r,t);else throw new e9({reason:"unknown operation type"});return r}catch(e){if(e instanceof e9)throw e;throw new e9({cause:e})}}({...e,config:q(e.config)})}catch(e){if(e instanceof e9)throw e;throw new e9({cause:e})}}async function e2(e,t){let r=new Map(e.config.owners.map(e=>[e.owner.toLowerCase(),{address:e.owner,weight:Number(e.weight)}])),n=new Map;for(let t of e.approvals){let i=eo(t);if("keychain"===i.type)throw new e4({reason:"keychain signatures cannot approve a multisig operation"});let a="multisig"===i.type?i.account:ei({payload:e.hash,signature:i}),o=r.get(a.toLowerCase());if(!o)throw new e4({reason:`signature is from non-owner ${a}`});let s=a.toLowerCase(),l=n.get(s);l?l.signatures.push(i):n.set(s,{address:o.address,signatures:[i],weight:o.weight})}let i=[],a=[];for(let r of n.values()){let n=r.signatures.filter(e=>"multisig"===e.type);if(n.length>0){if(n.length!==r.signatures.length)throw new e4({reason:`owner ${r.address} has conflicting signature types`});if(t.length>=2||t.includes(r.address.toLowerCase()))throw new e4({reason:`nested multisig owner ${r.address} is invalid`});let s=G(n[0].config);if(n.some(e=>!e7(e.config,s)))throw new e4({reason:`nested multisig owner ${r.address} has conflicting config witnesses`});if(0n===s.version&&!o.Xy($(s),r.address))throw new e4({reason:`initial config does not derive nested multisig owner ${r.address}`});let l=await e2({account:r.address,approvals:n.flatMap(e=>e.signatures.map(e=>ec(e))),config:s,hash:K({account:r.address,config:s,payload:e.hash})},[...t,r.address.toLowerCase()]);a.push({address:r.address,signature:ec(eo({account:r.address,config:s,signatures:l.approvals.map(e=>eo(e))}))}),l.weight>=l.threshold&&i.push({address:r.address,signature:ec(eo({account:r.address,config:s,signatures:l.selectedApprovals.map(e=>eo(e))})),weight:r.weight});continue}let s=r.signatures.map(t=>{if(!ef(t,{address:r.address,payload:e.hash}))throw new e4({reason:`signature from owner ${r.address} is invalid`});return ec(t)}).sort(e6)[0];i.push({address:r.address,signature:s,weight:r.weight}),a.push({address:r.address,signature:s})}let s=i.sort((e,t)=>t.weight-e.weight||e3(e,t)),l=[],c=0;for(let t of s.slice(0,8)){if(c>=Number(e.config.threshold))break;l.push(t),c+=t.weight}return l.sort(e3),{approvals:a.sort(e3).map(e=>e.signature),selectedApprovals:l.map(e=>e.signature),signatureCount:l.length,threshold:Number(e.config.threshold),weight:c}}function e3(e,t){let r=a.Gh(e.address),n=a.Gh(t.address);return r<n?-1:r>n?1:0}function e6(e,t){let r=e.toLowerCase(),n=t.toLowerCase();return r<n?-1:r>n?1:0}function e5(e,t){if(K({account:e.account,config:e.config,payload:t}).toLowerCase()!==e.hash.toLowerCase())throw new e9({reason:"hash does not match the operation payload"})}function e8(e,t){if("number"!=typeof e||!Number.isSafeInteger(e)||e<0)throw new e9({reason:`${t} must be a nonnegative safe integer`})}function e7(e,t){let r=G(e),n=G(t);return a.Xy(r.salt??L,n.salt??L)&&r.threshold===n.threshold&&r.version===n.version&&r.owners.length===n.owners.length&&r.owners.every((e,t)=>{let r=n.owners[t];return o.Xy(e.owner,r.owner)&&e.weight===r.weight})}class e4 extends s.G{constructor(e={}){super(e.reason?`Invalid multisig approval: ${e.reason}.`:"Invalid multisig approval.",{cause:e.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidApprovalError"})}}class e9 extends s.G{constructor(e={}){super(e.reason?`Invalid multisig operation: ${e.reason}.`:"Invalid multisig operation.",{cause:e.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidOperationError"})}}var te=r(1064),tt=r(65804),tr=r(18808),tn=r(40085),ti=r(9131),ta=r(12173),to=r(2445),ts=r(41356),tl=r(73316),tc=r(92202),tu=r(52267),td=r(53518),tf=r(82735),tp=r(85714),th=r(38850),tm=r(48628),tb=r(50143),ty=r(66726),tg=r(37624),tv=r(94660),tw=r(20002),tE=r(25113),tx=r(35304),tA=r(2701),tk=r(12634),tP=r(36530),tC=r(29195),tT=r(98335),t_=r(80213),tO=r(54515),tS=r(42390);function tI(e,t="hex"){let r=(()=>
147{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new tT.P9(e);return(0,tO.nr)(e)}return e})(),n=(0,t_.q)(r,{recursiveReadLimit:Number.POSITIVE_INFINITY}),i=function e(t,r="hex",n=0){if(n>=1024)throw new tT.Hj({limit:1024});if(0===t.bytes.length)return"hex"===r?(0,tS.ci)(t.bytes):t.bytes;let i=t.readByte();if(i<128&&t.decrementPosition(1),i<192){let e=tB(t,i,128),n=t.readBytes(e);return"hex"===r?(0,tS.ci)(n):n}let a=tB(t,i,192);return function(t,r,n,i){let a=t.position,o=[];for(;t.position-a<r;)o.push(e(t,n,i));if(t.position-a!==r)throw new tT.$$({consumed:t.position-a,declared:r});return o}(t,a,r,n+1)}(n,t);if(n.position<n.bytes.length)throw new tT.dI({count:n.bytes.length-n.position});return i}function tB(e,t,r){if(128===r&&t<128)return 1;if(t<=r+55)return t-r;if(t===r+55+1)return e.readUint8();if(t===r+55+2)return e.readUint16();if(t===r+55+3)return e.readUint24();if(t===r+55+4)return e.readUint32();throw new tC.G("Invalid RLP prefix")}var tj=r(90348),tM=r(10280);function tR(e){return tI(`0x${e.slice(4)}`,"hex")}function tN(e){let t=[];for(let r=0;r<e.length;r++){let[n,i]=e[r];if(!(0,tw.U)(n,{strict:!1}))throw new tg.b({address:n});t.push({address:n,storageKeys:i.map(e=>(0,tx.v)(e)&&66===e.length?e:(0,tk.f)(e))})}return t}function tU(e){let t=e.slice(-3),r="0x"===t[0]?0n:(0,tP.y_)(t[0]);if(0n!==r&&1n!==r)throw new tv.Bs({yParity:r});let n=0n===r?27n:28n;return{r:(0,tA.gc)(t[1],{size:32}),s:(0,tA.gc)(t[2],{size:32}),v:n,yParity:27n===n?0:1}}var tz=r(23814);function tD(e){let t=e.account;return t?.keyType&&"secp256k1"!==t.keyType||t?.source==="accessKey"||t?.source==="multisig"||void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feePayerSignature||void 0!==e.feeToken||void 0!==e.ke
147yAuthorization||void 0!==e.multisigSimulation||void 0!==e.nonceKey||void 0!==e.owner||void 0!==e.signature||void 0!==e.signatures||void 0!==e.validBefore||void 0!==e.validAfter?"tempo":e.type?e.type:(0,ty.l)(e)}function tF(e){try{let t=tD(e);return"tempo"===t}catch{return!1}}function tL(e){let t=a.tP(e,0,1);return"0x76"===t||"0x78"===t?function(e){let{feePayerSignature:t,nonce:r,...n}=eV(e);return{...n,nonce:Number(r??0n),feePayerSignature:t?{r:a.xS(t.r,{size:32}),s:a.xS(t.s,{size:32}),yParity:t.yParity}:t}}(e):function(e){let t=function(e){let t=(0,tM.p5)(e,0,1);if("0x04"===t)return"eip7702";if("0x03"===t)return"eip4844";if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,tP.ly)(t)>=192)return"legacy";throw new tv.DU({serializedType:t})}(e);return"eip1559"===t?function(e){let t=tR(e),[r,n,i,a,o,s,l,c,u,d,f,p]=t;if(!(9===t.length||12===t.length))throw new tv.XZ({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:l,data:c,accessList:u,...t.length>9?{v:d,r:f,s:p}:{}},serializedTransaction:e,type:"eip1559"});let h={chainId:(0,tP.ly)(r),type:"eip1559"};return(0,tx.v)(s)&&"0x"!==s&&(h.to=s),(0,tx.v)(o)&&"0x"!==o&&(h.gas=(0,tP.y_)(o)),(0,tx.v)(c)&&"0x"!==c&&(h.data=c),(0,tx.v)(n)&&(h.nonce="0x"===n?0:(0,tP.ly)(n)),(0,tx.v)(l)&&"0x"!==l&&(h.value=(0,tP.y_)(l)),(0,tx.v)(a)&&"0x"!==a&&(h.maxFeePerGas=(0,tP.y_)(a)),(0,tx.v)(i)&&"0x"!==i&&(h.maxPriorityFeePerGas=(0,tP.y_)(i)),0!==u.length&&"0x"!==u&&(h.accessList=tN(u)),(0,tj.mJ)(h),{...12===t.length?tU(t):void 0,...h}}(e):"eip2930"===t?function(e){let t=tR(e),[r,n,i,a,o,s,l,c,u,d,f]=t;if(!(8===t.length||11===t.length))throw new tv.XZ({attributes:{chainId:r,nonce:n,gasPrice:i,gas:a,to:o,value:s,data:l,accessList:c,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:"eip2930"});let p={chainId:(0,tP.ly)(r),type:"eip2930"};return(0,tx.v)(o)&&"0x"!==o&&(p.to=o),(0,tx.v)(a)&&"0x"!==a&&(p.gas=(0,tP.y_)(a)),(0,tx.v)(l)&&"0x"!==l&&(p.data=l),(0,tx.v)(n)&&(p.nonce="0x"===n?0:(0,tP.ly)(n)),(0,tx.v)(s)&&"0x"!==s&&(p.value=(0,tP.y_)(s)),(0,tx.v)(i)&&"0x"!==i&&(p.gasPrice=(0,tP.y_)(i)),0!==c.length&&"0x"!==c&&(p.accessList=tN(c)),(0,tj.Re)(p),{...11===t.length?tU(t):void 0,...p}}(e):"eip4844"===t?function(e){let t=tR(e),r=4===t.length,n=r?t[0]:t,i=r?t.slice(1):[],[a,o,s,l,c,u,d,f,p,h,m,b,y,g]=n,[v,w,E]=i;if(!(11===n.length||14===n.length))throw new tv.XZ({attributes:{chainId:a,nonce:o,maxPriorityFeePerGas:s,maxFeePerGas:l,gas:c,to:u,value:d,data:f,accessList:p,...n.length>9?{v:b,r:y,s:g}:{}},serializedTransaction:e,type:"eip4844"});let x={blobVersionedHashes:m,chainId:(0,tP.ly)(a),to:u,type:"eip4844"};return(0,tx.v)(c)&&"0x"!==c&&(x.gas=(0,tP.y_)(c)),(0,tx.v)(f)&&"0x"!==f&&(x.data=f),(0,tx.v)(o)&&(x.nonce="0x"===o?0:(0,tP.ly)(o)),(0,tx.v)(d)&&"0x"!==d&&(x.value=(0,tP.y_)(d)),(0,tx.v)(h)&&"0x"!==h&&(x.maxFeePerBlobGas=(0,tP.y_)(h)),(0,tx.v)(l)&&"0x"!==l&&(x.maxFeePerGas=(0,tP.y_)(l)),(0,tx.v)(s)&&"0x"!==s&&(x.maxPriorityFeePerGas=(0,tP.y_)(s)),0!==p.length&&"0x"!==p&&(x.accessList=tN(p)),v&&w&&E&&(x.sidecars=(0,tE.j)({blobs:v,commitments:w,proofs:E})),(0,tj.K6)(x),{...14===n.length?tU(n):void 0,...x}}(e):"eip7702"===t?function(e){let t=tR(e),[r,n,i,a,o,s,l,c,u,d,f,p,h]=t;if(10!==t.length&&13!==t.length)throw new tv.XZ({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:l,data:c,accessList:u,authorizationList:d,...t.length>9?{v:f,r:p,s:h}:{}},serializedTransaction:e,type:"eip7702"});let m={chainId:(0,tP.ly)(r),type:"eip7702"};return(0,tx.v)(s)&&"0x"!==s&&(m.to=s),(0,tx.v)(o)&&"0x"!==o&&(m.gas=(0,tP.y_)(o)),(0,tx.v)(c)&&"0x"!==c&&(m.data=c),(0,tx.v)(n)&&(m.nonce="0x"===n?0:(0,tP.ly)(n)),(0,tx.v)(l)&&"0x"!==l&&(m.value=(0,tP.y_)(l)),(0,tx.v)(a)&&"0x"!==a&&(m.maxFeePerGas=(0,tP.y_)(a)),(0,tx.v)(i)&&"0x"!==i&&(m.maxPriorityFeePerGas=(0,tP.y_)(i)),0!==u.length&&"0x"!==u&&(m.accessList=tN(u)),0!==d.length&&"0x"!==d&&(m.authorizationList=function(e){let t=[];for(let r=0;r<e.length;r++){let[n,i,a,o,s,l]=e[r];t.push({address:i,chainId:"0x"===n?0:(0,tP.ly)(n),nonce:"0x"===a?0:(0,tP.ly)(a),...tU([o,s,l])})}return t}(d)),(0,tj.b$)(m),{...13===t.length?tU(t):void 0,...m}}(e):function(e){let t=tI(e,"hex"),[r,n,i,a,o,s,l,c,u]=t;if(!(6===t.length||9===t.length))throw new tv.XZ({attributes:{nonce:r,gasPrice:n,gas:i,to:a,value:o,data:s,...t.length>6?{v:l,r:c,s:u}:{}},serializedTransaction:e,type:"legacy"});let d={type:"legacy"};
147if((0,tx.v)(a)&&"0x"!==a&&(d.to=a),(0,tx.v)(i)&&"0x"!==i&&(d.gas=(0,tP.y_)(i)),(0,tx.v)(s)&&"0x"!==s&&(d.data=s),(0,tx.v)(r)&&(d.nonce="0x"===r?0:(0,tP.ly)(r)),(0,tx.v)(o)&&"0x"!==o&&(d.value=(0,tP.y_)(o)),(0,tx.v)(n)&&"0x"!==n&&(d.gasPrice=(0,tP.y_)(n)),(0,tj.vX)(d),6===t.length)return d;let f=(0,tx.v)(l)&&"0x"!==l?(0,tP.y_)(l):0n;if("0x"===u&&"0x"===c)return f>0&&(d.chainId=Number(f)),d;let p=Number((f-35n)/2n);if(p>0)d.chainId=p;else if(27n!==f&&28n!==f)throw new tv.vl({v:f});return d.v=f,d.s=u,d.r=c,d.yParity=f%2n===0n?1:0,d}(e)}(e)}async function tH(e,t){if(!tF(e)){if(t&&"type"in t&&"secp256k1"!==t.type)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){let{r,s:n,yParity:i}=t?.signature;return(0,tz.D)(e,{r:a.xS(r,{size:32}),s:a.xS(n,{size:32}),yParity:i})}return(0,tz.D)(e,t)}if("tempo"===tD(e))return tG(e,t);throw Error("Unsupported transaction type")}async function tG(e,t){let r=e.signature?e.signature:t&&"type"in t?t:t?eo({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}):void 0,{chainId:n,feePayer:i,multisigSimulation:a,nonce:o,owner:s,...c}=e,u=(()=>{let t=e.feePayerSignature;return t?{r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}:null===t||i?null:void 0})(),d=void 0!==e.feePayerSignature&&null!==e.feePayerSignature,f=void 0!==r||!!(a&&e.signatures),p={...c,calls:c.calls?.length?c.calls:[{to:c.to||(c.data&&"0x"!==c.data?void 0:"0x0000000000000000000000000000000000000000"),value:c.value,data:c.data}],chainId:Number(n),feePayerSignature:u,type:"tempo",...o?{nonce:BigInt(o)}:{}},h={...p};(!0!==i||f&&u)&&("object"!=typeof i||f)&&(f||!d)||delete h.feeToken;let m=(()=>{if(r)return r;if(!a||!e.signatures)return;let t=eX(eW(h)),n=e.signatures.map(e=>eo(e)),i=G(a.config),o=a.account,s=eu({account:o,config:i,payload:t,signatures:n});return eo({account:o,config:i,signatures:s})})();if(m&&"object"==typeof e.feePayer){let t=eW(p,{signature:m}),r=e.from??ei({payload:eX(t),root:!0,signature:m}),n=function(e,t){let r=eg(t.sender),n=eY({...e,signature:void 0},{sender:r,format:"feePayer"});return l.wn(n)}(t,{sender:r}),i=await e.feePayer.sign({hash:n});return eY(t,{feePayerSignature:x.Dp(i)})}return!0===i||!m&&d?m&&u?eY(h,{signature:m}):m?eY(h,{format:"feePayer",sender:e.from,signature:m}):eY(h,{feePayerSignature:null}):eY(h,{feePayerSignature:void 0,signature:m})}function tq(e){let t=(()=>{if("string"==typeof e)return;let{address:t,...r}=e;return r})(),r=(()=>{if(!t)return;let e=t.owners.map(e=>"string"==typeof e||"address"in e?{owner:e,weight:1}:e);return G({...t,owners:e.map(({owner:e,weight:t})=>({owner:"string"==typeof e?e:e.address,weight:t})),threshold:t.threshold??1})})();if("string"!=typeof e){if((void 0===e.address||"infer"===e.address)&&0n!==r.version)throw Error("An initial multisig config must have version zero.");if(void 0!==e.address&&"infer"!==e.address&&0n===r.version)throw Error("A current multisig config must have a version.")}let n=o.K2("string"==typeof e?e:void 0===e.address||"infer"===e.address?$(r):e.address),i=t?t.owners.flatMap(e=>{let t="string"==typeof e||"address"in e?e:e.owner;return"string"==typeof t?[]:[(0,td.T)(t)]}):[],a=r?.owners.flatMap(({owner:e})=>{let t=i.find(t=>o.Xy(t.address,e));return t?[t]:[]})??[],s={address:n,config:r,owners:a,publicKey:"0x",source:"multisig",type:"local",sign:async({hash:e})=>ec(await tK(s,{payload:e})),async signMessage(){throw Error("`signMessage` is not supported for multisig accounts.")},async signTransaction(e,t){let{serializer:r=tH}=t??{};if(e.owner){let r=(0,td.T)(e.owner);if("local"!==r.type)throw Error("A local owner account is required to approve a multisig transaction.");if("root"!==r.source&&"multisig"!==r.source)throw Error("A Tempo owner account is required to approve a multisig transaction.");let{owner:n,...i}=e;return await r.signTransaction(i,t)}if(0===a.length)return await r(e);let i={...e,signatures:void 0,...void 0===e.feePayerSignature?{}:{feePayerSignature:null}},l=(0,tu.w)(await r(i)),c=e.multisigSimulation,u=c?.account??n;if(!o.Xy(u,n)){if(!c)throw Error("A multisig config is required for local signing.");let e=K({account:u,config:G(c.config),payload:l});return ec(await tK(s,{payload:e}))}let d=await tK(s,{config:c?.config,payload:l,signatures:e.signatures?.map(e=>eo(e))});return await r(e,d)},async signTypedData(){throw Error("`signTypedData` is not supported for multisig accounts.")}};return s}function t$(e){return"multisig"===e.source}
147async function tK(e,t){let{config:r,payload:n,signatures:i=[]}=t,a=r??e.config;if(!a)throw Error("A current multisig config is required for local signing.");let s=K({account:e.address,config:a,payload:n}),l=[...i],c=new Set,u=0;for(let e of i){let t=ei({payload:s,signature:e}).toLowerCase(),r=a.owners.find(e=>o.Xy(e.owner,t));!r||c.has(t)||(c.add(t),u+=Number(r.weight))}for(let t of[...a.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))){let r=t.owner.toLowerCase();if(c.has(r))continue;let n=e.owners.find(e=>o.Xy(e.address,t.owner));if(n){if(t$(n))l.push(await tK(n,{payload:s}));else{if(!n.sign)throw Error("Multisig owner account cannot sign.");l.push(eo(await n.sign({hash:s})))}if(c.add(r),(u+=Number(t.weight))>=Number(a.threshold))break}}if(u<Number(a.threshold))throw Error("Local multisig owners do not meet the threshold.");return eo({account:e.address,config:a,signatures:eu({account:e.address,config:a,payload:n,signatures:l})})}function tZ(e){return"accessKey"===e.source&&"accessKeyAddress"in e}function tV(e,t){let{admin:r,chainId:n,expiry:i,key:a,limits:o,scopes:s,witness:l}=t,{accessKeyAddress:c,keyType:u}=tY(a),d=tZ(e)||t$(e)?{account:e.address}:{};return eA({address:c,chainId:n,type:u,witness:l,...r?{isAdmin:!0}:{},...d,...r?{}:{expiry:i,limits:o,scopes:s}})}async function tW(e,t){let{admin:r,chainId:n,expiry:i,key:a,limits:o,multisig:s,scopes:l,signatures:c,witness:u}=t,{accessKeyAddress:d,keyType:f}=tY(a),p=tZ(e),h=t$(e),m=p||h?{account:e.address}:{},b=tV(e,t),y=await (async()=>{if(p)return e.sign({hash:b,raw:!0});if(h){if(!s)throw Error("Multisig state is required to sign a key authorization.");return ec(await tK(e,{config:s.config,payload:b,signatures:c?.map(e=>eo(e))}))}return e.sign({hash:b})})();return ew({address:d,chainId:n,signature:eo(y),type:f,...u?{witness:u}:{},...r?{isAdmin:!0}:{},...m,...r?{}:{expiry:i,limits:o,scopes:l}})}function tY(e){return"accessKeyAddress"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:"publicKey"in e&&e.publicKey?{accessKeyAddress:o.Ml(g.H_(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}let tX={4217:{base:4217e5,range:100261e4},42431:{base:142431e4,range:723173648}};function tJ(e,t=4217){let{base:r,range:n}=function(e){if(4217===e||42431===e)return tX[e];throw new tQ({sourceId:e})}(t);return r+e%n}tX[4217].base;class tQ extends s.G{constructor({sourceId:e}){super(`Source chain ID "${e}" is not supported.`,{metaMessages:["Supported source chain IDs: 4217, 42431."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ZoneId.UnsupportedSourceIdError"})}}tJ(0),tJ(0,42431);let t0="0xaAAAaaAA00000000000000000000000000000000",t1="0xAACC000000000000000000000000000000000000",t2=["genesis","t0","t1","t1a","t1b","t1c","t2","t3","t4","t5","t6"];var t3=r(49806);function t6(e){return{...e,data:(0,t3.R)(e),to:e.address}}async function t5(e,t){let r=await e.request({method:"multisig_getConfig",params:[{address:t.address}]});return r?q(r):null}async function t8(e,t){let{account:r,...n}=t;return(0,tf.L)(e,{...n,...t8.call({account:r})})}async function t7(e,t){return t7.inner(th.n,e,t)}(t8||(t8={})).call=function(e){return t6({address:t1,abi:tb.Rs,args:[e.account],functionName:"getConfigCommitment"})},function(e){async function t(t,r,n){let{account:i,currentConfig:a,nextConfig:o,...s}=n,l=i??r.account,c=(()=>{if("object"==typeof l&&"multisig"===l.source)return l})(),u=a||(c?.config?c.config:void 0),d=c?c.address:"string"==typeof l?l:l?l.address:void 0,f=await (async()=>{if(u)return G(u);if(!d)throw Error("A multisig account address or current config is required.");let e=await t5(r,{address:d});if(!e)throw Error(`No current multisig config is cached for account ${d}. Provide the current config.`);return e})(),p=c?{...c,config:f}:"object"==typeof l?l:d?tq({address:d,...f}):void 0;return await t(r,{...s,...p?{account:p}:{},...e.call({currentConfig:f,nextConfig:o})})}e.inner=t,e.call=function(e){let t=G(e.currentConfig),r=G({owners:e.nextConfig.owners,salt:t.salt,threshold:e.nextConfig.threshold,version:t.version+1n});return t6({address:t1,abi:tb.Rs,args:[t,r.threshold,r.owners],functionName:"updateConfig"})},e.extractEvent=function(e){let[t]=(0,tm.h)({abi:tb.Rs,logs:e,eventName:"MultisigConfigUpdated",strict:!0});if(!t)throw Error("`MultisigConfigUpdated` event not found.");return t}}(t7||(t7={}));let t4={0:"secp256k1",1:"p256",2:"webAuthn"}
147,t9={true:"limited",false:"unlimited"};async function re(e,t){return re.inner(tp.T,e,t)}async function rt(e,t){return rt.inner(th.n,e,t)}async function rr(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,td.T)(r),o=await (0,tf.L)(e,{...i,account:null,...rr.call({account:a.address,accessKey:n})});return{address:o.keyId,keyType:t4[o.signatureType]??"secp256k1",expiry:o.expiry,spendPolicy:t9[`${o.enforceLimits}`],isRevoked:o.isRevoked}}async function rn(e,t){let{account:r=e.account,accessKey:n,token:i,...a}=t;if(!r)throw Error("account is required.");let o=(0,td.T)(r),s=e.chain?.hardfork;if(s&&t2.indexOf(s)<t2.indexOf("t3"))return{remaining:await (0,tf.L)(e,{...a,...rn.call({account:o.address,accessKey:n,token:i})}),periodEnd:void 0};let[l,c]=await (0,tf.L)(e,{...a,...rn.callWithPeriod({account:o.address,accessKey:n,token:i})});return{remaining:l,periodEnd:c}}async function ri(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,td.T)(r);return(0,tf.L)(e,{...i,account:null,...ri.call({account:a.address,accessKey:n})})}async function ra(e,t){let{account:r=e.account,witness:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,td.T)(r);return(0,tf.L)(e,{...i,account:null,...ra.call({account:a.address,witness:n})})}async function ro(e,t){return ro.inner(th.n,e,t)}async function rs(e,t){let{chainId:r=e.chain?.id}=t,n=t.account??e.account;if(!n)throw Error("account is required.");if(!r)throw Error("chainId is required.");let i=(0,td.T)(n),a=await (async()=>{if("multisig"in t)return t.multisig;if("multisig"===i.source){if(!i.config)throw Error("A multisig config is required to prepare a key authorization.");return{config:i.config}}})(),o=tV(i,{...t,chainId:BigInt(r),key:t.accessKey}),s="multisig"===i.source&&a?K({account:i.address,config:a.config,payload:o}):o;return{...t,account:i,chainId:r,multisig:a,signPayload:s}}async function rl(e,t){if("hash"in t&&t.hash||"owner"in t&&t.owner){var r;let n=t.owner;if(!n||"string"==typeof n)throw Error("A local owner account is required to approve a multisig key authorization.");let i=(0,td.T)(n).sign;if(!i)throw Error("A local owner account is required to approve a multisig key authorization.");let a=await (async()=>{if("hash"in t&&t.hash){let e=ec(eo(await i({hash:t.hash})));return{hash:t.hash,signature:e}}let{account:r,owner:n,...a}=t,o="string"==typeof r?r:r.address,s=await (async()=>{if("string"!=typeof r&&r.config)return r.config;let t=await t5(e,{address:o});if(t)return t;throw Error(`No current multisig config is cached for account ${o}. Provide the current config.`)})(),l=(()=>{if(0n!==s.version)return tq({address:o,...s});let{version:e,...t}=s;return tq({address:"infer",...t})})();if(!(0,ti.E)(l.address,o))throw Error("Initial multisig config does not match the account.");let c=await rs(e,{...a,account:l}),u=ec(eo(await i({hash:c.signPayload}))),{accessKey:d,admin:f,chainId:p,expiry:h,limits:m,scopes:b,witness:y}=c,{accessKeyAddress:g,keyType:v}=tY(d);return{keyAuthorization:ek(ew({account:l.address,address:g,chainId:BigInt(p),signature:eo({account:l.address,config:s,signatures:[eo(u)]}),type:v,...y?{witness:y}:{},...f?{isAdmin:!0}:{expiry:h,limits:m,scopes:b}}))}})(),o=e1(await e.request({method:"multisig_approveKeyAuthorization",params:[a]})),s=(r=await (async()=>{if("success"===o.status)return o.keyAuthorization;let e=await e0({account:o.account,approvals:o.approvals,config:o.config,hash:o.hash});return function(e,t){let r=ex(f(e));if(r.signature)throw new e9({reason:"keyAuthorization must not contain a signature"});if(h(eP(r)).toLowerCase()!==e.toLowerCase())throw new e9({reason:"keyAuthorization is not canonically serialized"});let n=G(t.config),i=eu({account:t.account,config:n,payload:eA(r),signatures:t.approvals.map(e=>ea(e))});return h(eP(ew(r,{signature:eo({account:t.account,config:n,signatures:i})})))}(o.keyAuthorization,{account:o.account,approvals:e.selectedApprovals.length>0?e.selectedApprovals:e.approvals.slice(0,1),config:o.config})})(),ex(f(r)));if(!s.signature)throw Error("Expected a signed multisig key authorization.");return{...s,hash:o.hash,multisig:o,status:o.status}}let{accessKey:n,account:i,chainId:a,multisig:o,signPayload:s,...l}="signPayload"in t?t:await rs(e,t);return tW(i,{chainId:BigInt(a),key:n,multisig:o,...l})}async function rc(e,t){return rc.inner(th.n,e,t)}async function ru(e,t){let{account:r,admin:n,hash:i,signature:a,...o}=t;return(0,tf.L)(e,{...o,...ru.call({account:r,admin:n,hash:i,signature:a})})}function rd(e){return"string"==typeof e?e:e.accessKeyAddress}!function(e){async function t(e,t,r){let{accessKey:n,admin:i,chainId:a=t.chain?.id,expiry:o,limits:s,scopes:l,witness:c,...u}=r,d=u.account??t.account;if(!d)throw Error("account is required.");
147if(!a)throw Error("chainId is required.");let f=await rl(t,{account:d,accessKey:n,chainId:a,admin:i,expiry:o,limits:s,scopes:l,witness:c});return await e(t,{...u,keyAuthorization:f})}e.inner=t,e.extractEvent=function(e){let[t]=(0,tm.h)({abi:tb.vb,logs:e,eventName:"KeyAuthorized",strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t}}(re||(re={})),function(e){async function t(t,r,n){let{witness:i,...a}=n,o=e.call({witness:i});return await t(r,{...a,...o})}e.inner=t,e.call=function(e){let{witness:t}=e;return t6({address:t0,abi:tb.vb,functionName:"burnKeyAuthorizationWitness",args:[t]})},e.extractEvent=function(e){let[t]=(0,tm.h)({abi:tb.vb,logs:e,eventName:"KeyAuthorizationWitnessBurned",strict:!0});if(!t)throw Error("`KeyAuthorizationWitnessBurned` event not found.");return t}}(rt||(rt={})),(rr||(rr={})).call=function(e){let{account:t,accessKey:r}=e;return t6({address:t0,abi:tb.vb,functionName:"getKey",args:[t,rd(r)]})},(i=rn||(rn={})).call=function(e){let{account:t,accessKey:r,token:n}=e;return t6({address:t0,abi:tb.vb,functionName:"getRemainingLimit",args:[t,rd(r),n]})},i.callWithPeriod=function(e){let{account:t,accessKey:r,token:n}=e;return t6({address:t0,abi:tb.vb,functionName:"getRemainingLimitWithPeriod",args:[t,rd(r),n]})},(ri||(ri={})).call=function(e){let{account:t,accessKey:r}=e;return t6({address:t0,abi:tb.vb,functionName:"isAdminKey",args:[t,rd(r)]})},(ra||(ra={})).call=function(e){let{account:t,witness:r}=e;return t6({address:t0,abi:tb.vb,functionName:"isKeyAuthorizationWitnessBurned",args:[t,r]})},function(e){async function t(t,r,n){let{accessKey:i,...a}=n,o=e.call({accessKey:i});return await t(r,{...a,...o})}e.inner=t,e.call=function(e){let{accessKey:t}=e;return t6({address:t0,abi:tb.vb,functionName:"revokeKey",args:[rd(t)]})},e.extractEvent=function(e){let[t]=(0,tm.h)({abi:tb.vb,logs:e,eventName:"KeyRevoked",strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t}}(ro||(ro={})),function(e){async function t(t,r,n){let{accessKey:i,token:a,limit:o,...s}=n,l=e.call({accessKey:i,token:a,limit:o});return await t(r,{...s,...l})}e.inner=t,e.call=function(e){let{accessKey:t,token:r,limit:n}=e;return t6({address:t0,abi:tb.vb,functionName:"updateSpendingLimit",args:[rd(t),r,n]})},e.extractEvent=function(e){let[t]=(0,tm.h)({abi:tb.vb,logs:e,eventName:"SpendingLimitUpdated",strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t}}(rc||(rc={})),(ru||(ru={})).call=function(e){let{account:t,admin:r=!0,hash:n,signature:i}=e;return t6({address:"0x5165300000000000000000000000000000000000",abi:tb.YN,functionName:r?"verifyKeychainAdmin":"verifyKeychain",args:[t,n,i]})};var rf=r(98372);let rp={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},rh={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"},rm={...rp,tempo:"0x76"},rb={...rh,"0x76":"tempo"};function ry(e){if(e.length>8)throw new rv({reason:"approval count exceeds 8"})}function rg(e){let t=a.dp(e);return t<=4?e:a.xS(t,{size:2})}class rv extends s.G{constructor(e){super(`Invalid multisig simulation: ${e.reason}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigSimulation.InvalidSimulationError"})}}function rw(e){if(!e)return;let t=e1(e);if("transaction"!==t.type)throw Error("Expected a multisig transaction operation.");return t}function rE(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:a.xS(t,{size:2})}let rx=new Map;async function rA(e){rx.set(e,(rx.get(e)??0)+1),await Promise.resolve();let t=(rx.get(e)??0)>1;return queueMicrotask(()=>{let t=rx.get(e)??0;t<=1?rx.delete(e):rx.set(e,t-1)}),t}let rk=(e,t)=>tH(e,t),rP={blockTime:1e3,extendSchema:(0,ta.W)(),formatters:{transaction:(0,to.y_)({exclude:["aaAuthorizationList"],format:function(e){if(!tF(e))return(0,to.Tr)(e);let t=null==e.blockTimestamp?void 0:BigInt(e.blockTimestamp),r=e.multisig,{feePayerSignature:n,gasPrice:i,nonce:o,...s}=function(e,t={}){if(!e)return null;let r=function(e,t={}){if(!e)return null;let r=x.Kl(e),n={...e,...r};return n.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(n.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0),n.data=e.input,n.gas=BigInt(e.gas??0n),n.nonce=BigInt(e.nonce??0n),n.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,n.value=
147BigInt(e.value??0n),e.authorizationList&&(n.authorizationList=rf.A2(e.authorizationList)),e.chainId&&(n.chainId=Number(e.chainId)),e.gasPrice&&(n.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(n.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(n.type=rh[e.type]??e.type),r&&(n.v=x.Kb(r.yParity)),n}(e);return r.type=rb[e.type],e.aaAuthorizationList&&(r.authorizationList=e.aaAuthorizationList.map(e=>eG(e)),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(e=>({to:e.to,value:e.value&&"0x"!==e.value?BigInt(e.value):void 0,data:e.input||e.data||"0x"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=es(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=eE(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=x.VE(e.feePayerSignature),r.feePayerSignature.v=x.Kb(r.feePayerSignature.yParity)),r}(e);return{...s,accessList:s.accessList,...void 0!==t&&{blockTimestamp:t},feePayerSignature:n?{r:a.xS(n.r,{size:32}),s:a.xS(n.s,{size:32}),v:BigInt(n.v??27),yParity:n.yParity}:void 0,multisig:rw(r),nonce:Number(o),typeHex:rm[s.type],type:s.type}}}),transactionReceipt:(0,ts.dI)({format:function(e){return{...(0,ts.fA)(e),multisig:rw(e.multisig),..."pending"===e.status?{status:"pending",type:"tempo"}:{}}}}),transactionRequest:(0,tl.iy)({format:function(e,t){let r=e.account?(0,td.T)(e.account):void 0,n=e.owner?(0,td.T)(e.owner):void 0;if(n?.type==="json-rpc")throw Error("A local owner account is required to approve a multisig transaction.");if(!tF(e))return(0,tl.tG)(e,t);t&&(e.calls=e.calls??[{to:e.to||(e.data&&"0x"!==e.data?void 0:"0x0000000000000000000000000000000000000000"),value:e.value,data:e.data}]),!0!==e.feePayer||e.feePayerSignature||delete e.feeToken;let{owner:i,signatures:o,...s}=e,l=function(e){let t=function(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.authorizationList&&(t.authorizationList=rf.$D(e.authorizationList)),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(t.blobs=e.blobs),void 0!==e.chainId&&(t.chainId=a.xS(e.chainId)),void 0!==e.data?(t.data=e.data,t.input=e.data):void 0!==e.input&&(t.data=e.input,t.input=e.input),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=a.xS(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=a.xS(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=a.xS(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=a.xS(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=a.xS(e.maxPriorityFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=a.xS(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=a.xS(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=rp[e.type]||e.type),void 0!==e.value&&(t.value=a.xS(e.value)),t}({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>(function(e){let{address:t,chainId:r,nonce:n,signature:i}=e;return{address:t,chainId:a.xS(r),nonce:a.xS(n),signature:ed(i)}})(e))),e.calls?t.calls=e.calls.map(e=>({to:e.to?eg(e.to):e.to,value:e.value?a.xS(e.value):"0x",data:e.data??"0x"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?eg(e.to):void 0,value:e.value?a.xS(e.value):"0x",data:e.data??"0x"}]),void 0!==e.feeToken&&(t.feeToken=eq(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=ek(e.keyAuthorization)),e.multisigSimulation&&(t.multisigSimulation=function(e){let{account:t,approvals:r,config:n}=e;return ry(r),{account:t,approvals:r.map(e=>
147"primitive"===e.type?{...e,...void 0!==e.keyData?{keyData:rg(e.keyData)}:{}}:(ry(e.spec.approvals),{spec:{account:e.spec.account,approvals:e.spec.approvals.map(e=>({...e,...void 0!==e.keyData?{keyData:rg(e.keyData)}:{}})),config:h(Z(e.spec.config))},type:"multisig"})),config:h(Z(n))}}(e.multisigSimulation)),void 0!==e.validBefore&&(t.validBefore=a.xS(e.validBefore)),void 0!==e.validAfter&&(t.validAfter=a.xS(e.validAfter));let r="random"===e.nonceKey?a.MX(6):"bigint"==typeof e.nonceKey?a.xS(e.nonceKey):void 0;return r&&(t.nonceKey=r),(void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.keyAuthorization||void 0!==e.multisigSimulation||void 0!==e.nonceKey||void 0!==e.validBefore||void 0!==e.validAfter||"tempo"===e.type)&&(t.type=rm.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}({...s,type:"tempo"});"estimateGas"===t&&(l.maxFeePerGas=void 0,l.maxPriorityFeePerGas=void 0),l.to=void 0,l.data=void 0,l.value=void 0;let c=n??r,[u,d]=(()=>{let t=c&&"keyType"in c?c.keyType:c?.source;return t?"webAuthn"===t?["webAuthn","0x0578"]:["p256","secp256k1"].includes(t)?[t,void 0]:[e.keyType,rE(e.keyData)]:[e.keyType,rE(e.keyData)]})(),f=c&&"accessKeyAddress"in c?c.accessKeyAddress:e.keyId;return r&&(l.from=r.address),{...l,...e.capabilities?{capabilities:e.capabilities}:{},...d?{keyData:d}:{},...f?{keyId:f}:{},...u?{keyType:u}:{},...e.owner?{owner:void 0}:{},...void 0!==e.feePayer?{feePayer:"object"==typeof e.feePayer?(0,td.T)(e.feePayer):e.feePayer}:{},..."feePayerSignature"in e&&void 0!==e.feePayerSignature?{feePayerSignature:e.feePayerSignature}:{}}}})},prepareTransactionRequest:[async(e,{client:t,phase:r})=>{if(e.hash){if(!e.account||"string"==typeof e.account||"multisig"!==e.account.source)throw Error("A local multisig account is required to approve a stored multisig transaction.");if(!e.owner||"string"==typeof e.owner)throw Error("A local owner account is required to approve a stored multisig transaction.");if("root"!==e.owner.source&&"multisig"!==e.owner.source)throw Error("A Tempo owner account is required to approve a stored multisig transaction.");let r=await (0,tc.s)(t,tt.f,"getTransaction")({hash:e.hash}),n="multisig"in r?r.multisig:void 0;if(!n)throw Error("Expected a multisig operation transaction.");if(!(0,ti.E)(n.account,e.account.address))throw Error("Multisig operation account does not match the requested account.");let i=tL(n.transaction);if((function(e){let{account:t,config:r}=e;return K({account:t,config:r,payload:"transaction"===e.type?eX(eV(e.transaction)):eA(ex(f(e.keyAuthorization)))})})({account:n.account,config:n.config,transaction:n.transaction,type:"transaction"}).toLowerCase()!==e.hash.toLowerCase())throw Error("Multisig operation hash does not match transaction.");return{...i,account:e.account,from:n.account,multisigSimulation:rC({account:n.account,config:n.config,local:e.account}),owner:e.owner}}if("afterFillParameters"===r)return void 0!==e.gas&&e.feePayer&&!e.feePayerSignature&&(e.keyAuthorization?.signature.type==="webAuthn"?e.gas=(e.gas??0n)+20000n:e.account?.source==="accessKey"&&(e.gas=(e.gas??0n)+10000n)),e;let n=(()=>{if(e.account?.source==="multisig")return{account:e.account.address,config:e.account.config,local:e.account}})();if(e.owner&&!n)throw Error("A multisig account is required when an owner is provided.");if(e.owner&&"string"==typeof e.owner)throw Error("A local owner account is required to approve a multisig transaction.");if(e.owner&&"root"!==e.owner.source&&"multisig"!==e.owner.source)throw Error("A Tempo owner account is required to approve a multisig transaction.");let i=!!n&&!!e.owner&&!0===t.transport.multisig;if(n){let{account:r,local:a}=n;if(!r)throw Error("A multisig account address is required with a current config.");let o=await (async()=>{if(n.config)return n.config;if(!i)return;let e=await (0,tc.s)(t,t5,"getConfig")({address:r});if(!e)throw Error(`No current multisig config is cached for account ${r}. Provide the current config.`);return e})();if(!o)throw Error("A multisig config is required to prepare a transaction.");e.from=r,e.multisigSimulation=rC({account:r,config:o,local:a})}let o=await (async()=>
147{if("expiring"===e.nonceKey||e.nonceKey===tn.zL)return!0;if(void 0!==e.nonceKey||n)return!1;if(e.feePayer&&void 0===e.nonceKey)return!0;let t=e.account,r="string"==typeof t?t:t?.address;return!!r&&void 0===e.nonceKey&&await rA(r.toLowerCase())})();if(i&&void 0===e.nonceKey?(e.nonceKey=a.Gh(a.MX(31))+1n,e.nonce=0):o?(e.nonceKey=tn.zL,e.nonce=0,void 0===e.validAfter&&(e.validAfter=function(){let e=BigInt(Math.floor(Date.now()/1e3))-60n;return e<=0n?0:Number(BigInt(a.MX(8))%e)}()),void 0===e.validBefore&&(e.validBefore=Math.floor(Date.now()/1e3)+25)):void 0!==e.nonceKey&&(e.nonce="number"==typeof e.nonce?e.nonce:0),!e.keyAuthorization&&e.account?.source==="accessKey"){let r=e.account.keyAuthorizationManager;if(r){let n=e.chainId??e.chain?.id;if(void 0!==n){let i=e.account.address,a=e.account.accessKeyAddress,o={address:i,accessKey:a,chainId:n},s=await r.get(o);if(s){let n=BigInt(Math.floor(Date.now()/1e3));if(null!=s.expiry&&BigInt(s.expiry)<=n)await r.remove(o);else{let l=await (0,tc.s)(t,rr,"getMetadata")({account:i,accessKey:a});(0,ti.E)(l.address,a)&&!l.isRevoked&&l.expiry>n?await r.remove(o):e.keyAuthorization=s}}}}}return!e.feeToken&&e.chain?.feeToken&&(e.feeToken=e.chain.feeToken),e},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:rk,async transactionEnvelope({serializedTransaction:e,transaction:t}){if(!t.multisigSimulation)return e;try{ea(e)}catch{let t=tL(e);if(t.signature?.type==="multisig")return e;throw Error("A Tempo owner account is required to approve a multisig transaction.")}return await rk({...t,signatures:[...t.signatures??[],e]})}},async verifyHash(e,t){let{address:r,hash:n,signature:i,mode:o}=t,s=(()=>{if("string"==typeof i)try{return ea(i)}catch{return}})();if(s){if(s?.type==="keychain"&&"allowAccessKey"===o){let i="v2"===s.version?(0,tu.w)(a.zo("0x04",n,r)):n,o=(()=>{try{return ei({payload:i,signature:s.inner})}catch{return}})();if(!o)return!1;let l=await rr(e,{account:r,accessKey:o,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return!(l.isRevoked||l.expiry<=BigInt(Math.floor(Date.now()/1e3)))&&ef(s.inner,{address:o,payload:i})}if("p256"===s.type||"webAuthn"===s.type){let i=await (0,te.C)(e,{address:r,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!i||"0xef01007702c00000000000000000000000000000000000"===i)return ef(s,{address:r,payload:n})}}return await (0,tc.s)(e,tr.ZR,"verifyHash")({...t,chain:null})}};function rC(e){let{account:t,config:r,local:n}=e;return{account:t,approvals:r_(r).map(e=>{let t=n?.owners.find(t=>ti.E(t.address,e.owner));if(t?.source==="multisig"){if(!t.config)throw Error("A nested multisig config is required for gas estimation.");return{type:"multisig",spec:{account:t.address,approvals:r_(t.config).map(e=>{let r=t.owners.find(t=>(0,ti.E)(t.address,e.owner));if(r?.source==="multisig")throw Error("Multisig simulation nesting exceeds depth two.");return{...rT(r),owner:e.owner}}),config:t.config}}}return{...rT(t),owner:e.owner,type:"primitive"}}),config:r}}function rT(e){let t=(()=>{if(e&&"object"==typeof e&&"keyType"in e&&"string"==typeof e.keyType)return e.keyType})();return t&&"webAuthn"!==t&&("p256"===t||"secp256k1"===t)?{keyType:t}:{keyData:"0x0578",keyType:"webAuthn"}}function r_(e){let t=[...e.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase())),r=[],n=0;for(let i of t.slice(0,8)){if(n>=Number(e.threshold))break;r.push(i),n+=Number(i.weight)}return r.sort((e,t)=>e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))}let rO=(0,ta.a)({...rP,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}})},50704:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(75638);function i(e,t={}){let{key:r="custom",methods:i,name:a="Custom Provider",retryDelay:o}=t;return({retryCount:s})=>(0,n.q)({key:r,methods:i,name:a,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:o,type:"custom"})}},54329:function(e,t,r){"use strict";r.d(t,{tv:function(){return s}});var n=r(77008),i=r(83409),a=r(61297),o=r(75638);function s(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,shouldThrow:s=l,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:l=4e3,timeout:d,...f})=>{let p=e,h=()=>{},m=(0,o.q)({key:r,name:n,async request({method:e,params:r}){let n;let i=async(a=0)=>{let o=p[a]({...f,chain:t,retryCount:0,timeout:d});try{let t=await o.request({method:e,params:r});return h({method:e,params:r,response:t,transport:o,status:"success"}),t}catch(l){if(h({error:l,method:e,params:r,transport:o,status:"error"}),s(l)||a===p.length-1||!(n??=p.slice(a+1).some(r=>{let{include:n,exclude:i}=r({chain:t}).config.methods||{};return n?n.includes(e):!i||!i.includes(e)})))throw l;return i(a+1)}};return i()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>h=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:r,ping:n,sampleCount:i=10,timeout:o=1e3,transports:s,weights:l={}}){let{stability:c=.7,latency:u=.3}=l,d=[],f=async()=>{let l=await Promise.all(s.map(async t=>{let r,i;let a=t({chain:e,retryCount:0,timeout:o}),s=Date.now();try{await (n?n({transport:a}):a.request({method:"net_listening"})),i=1}catch{i=0}finally{r=Date.now()}return{latency:r-s,success:i}}));d.push(l),d.length>i&&d.shift();let p=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));r(s.map((e,t)=>{let r=d.map(e=>e[t].latency),n=r.reduce((e,t)=>
147e+t,0)/r.length,i=d.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[u*(1-n/p)+c*a,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,a.D)(t),f()};f()}({chain:t,interval:e.interval??l,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}}function l(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===i.KB.code||e.code===i.ab.code||e.code===i.UF.code||n.M_.nodeMessage.test(e.message)||5e3===e.code))}},73184:function(e,t,r){"use strict";r.d(t,{tJ:function(){return i}});let n=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>n(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},i=(e,t)=>(r,i,a)=>{let o,s={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=r.getItem(e))?t:null;return i instanceof Promise?i.then(n):n(i)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=0,u=new Set,d=new Set,f=s.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...e)},i,a);let p=()=>{let e=s.partialize({...i()});return f.setItem(s.name,{state:e,version:s.version})},h=a.setState;a.setState=(e,t)=>(h(e,t),p());let m=e((...e)=>(r(...e),p()),i,a);a.getInitialState=()=>m;let b=()=>{var e,t;if(!f)return;let a=++c;l=!1,u.forEach(e=>{var t;return e(null!=(t=i())?t:m)});let h=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=i())?e:m))||void 0;return n(f.getItem.bind(f))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];if(s.migrate){let t=s.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(a!==c)return;let[n,l]=e;if(r(o=s.merge(l,null!=(t=i())?t:m),!0),n)return p()}).then(()=>{a===c&&(null==h||h(i(),void 0),o=i(),l=!0,d.forEach(e=>e(o)))}).catch(e=>{a===c&&(null==h||h(void 0,e))})};return a.persist={setOptions:e=>{s={...s,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>l,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},s.skipHydration||b(),o||m}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.