@latticexyz/explorer 2.2.12-main-84ae33b8af3ebeb90749c6e82250869b15d17ed1 → 2.2.12-main-4b4640913d014fb3a0a5a417b84c91b247e08ffc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +32 -27
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +3 -3
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +3 -3
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +2 -2
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +4 -4
- package/.next/standalone/packages/explorer/.next/server/chunks/{963.js → 1969.js} +3 -3
- package/.next/standalone/packages/explorer/.next/server/chunks/5086.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/{1736.js → 531.js} +9 -9
- package/.next/standalone/packages/explorer/.next/server/chunks/{1680.js → 7894.js} +4 -4
- package/.next/standalone/packages/explorer/.next/server/chunks/9490.js +1 -0
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/1264-19f6323500059507.js +36 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/1461-570df727ad8f9d4e.js +27 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/1954-c6aa5b527d0cbcba.js +18 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/4805-eae23e0cee93d055.js +16 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/5401-7a68b31b558af92f.js +25 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/5674-57c906e3570df406.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/{3715-16fce8ffb45f3ed2.js → 9001-537c943f52e18398.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/{page-f845d1abf729da0d.js → page-ed4e4187229a8431.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/{page-d17a5025f5dc9e07.js → page-a4df215b94c44a00.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-e0ad052cb1e6411a.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-08369c22a5b8da74.js +21 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/layout-cad4310a3c48104c.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/internal/observer-relay/page-48a000daa431bfe3.js +1 -0
- package/package.json +9 -9
- package/.next/standalone/packages/explorer/.next/server/chunks/9911.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/2083-33b68edc5b4bb798.js +0 -36
- package/.next/standalone/packages/explorer/.next/static/chunks/5205-77d06eb001a24a51.js +0 -41
- package/.next/standalone/packages/explorer/.next/static/chunks/72-d434b97c7bdb1c43.js +0 -27
- package/.next/standalone/packages/explorer/.next/static/chunks/9566-c1c708950888fdde.js +0 -2
- package/.next/standalone/packages/explorer/.next/static/chunks/9609-a7db605ce9a782ed.js +0 -16
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-f35277d36854514d.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page-f1de09dd5f610156.js +0 -21
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/layout-62587300e8497085.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/internal/observer-relay/page-922767fdad7a8f4e.js +0 -1
- /package/.next/standalone/packages/explorer/.next/static/{g0hMCPG5SWfEn9M2k5FAx → MGsA-1no2rMWi8IBzfrIs}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{g0hMCPG5SWfEn9M2k5FAx → MGsA-1no2rMWi8IBzfrIs}/_ssgManifest.js +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5205],{21111:function(e,t,n){"use strict";/**
|
|
2
|
-
* @license React
|
|
3
|
-
* use-sync-external-store-shim.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var r=n(89702),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),o(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},94436:function(e,t,n){"use strict";/**
|
|
10
|
-
* @license React
|
|
11
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var r=n(89702),i=n(53259),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,a=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=o(e,(d=c(function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,a=n)}var o,a,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},53259:function(e,t,n){"use strict";e.exports=n(21111)},44666:function(e,t,n){"use strict";e.exports=n(94436)},32608:function(e){var t,n,r,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u=[],c=!1,l=-1;function d(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(r=u,u=[];++l<t;)r&&r[l].run();l=-1,t=u.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},20749:function(e,t,n){"use strict";n.d(t,{JQ:function(){return f}});var r=n(13678),i=n(5631);let s=(e,t,n)=>e&t^~e&n,o=(e,t,n)=>e&t^e&n^t&n;class a extends i.kb{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,r.Gg)(this);let{view:t,buffer:n,blockLen:s}=this,o=(e=(0,i.O0)(e)).length;for(let r=0;r<o;){let a=Math.min(s-this.pos,o-r);if(a===s){let t=(0,i.GL)(e);for(;s<=o-r;r+=s)this.process(t,r);continue}n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.Gg)(this),(0,r.J8)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(n,0),a=0);for(let e=a;e<s;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),s=BigInt(4294967295),o=Number(n>>i&s),a=Number(n&s),u=r?4:0,c=r?0:4;e.setUint32(t+u,o,r),e.setUint32(t+c,a,r)}(n,s-8,BigInt(8*this.length),o),this.process(n,0);let u=(0,i.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)u.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:s,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=s,r%t&&e.buffer.set(n),e}}let u=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class d extends a{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:s,G:o,H:a}=this;return[e,t,n,r,i,s,o,a]}set(e,t,n,r,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=l[e-15],n=l[e-2],r=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,s=(0,i.np)(n,17)^(0,i.np)(n,19)^n>>>10;l[e]=s+l[e-7]+r+l[e-16]|0}let{A:n,B:r,C:a,D:c,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+s(d,f,h)+u[e]+l[e]|0,b=((0,i.np)(n,2)^(0,i.np)(n,13)^(0,i.np)(n,22))+o(n,r,a)|0;p=h,h=f,f=d,d=c+t|0,c=a,a=r,r=n,n=t+b|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,c=c+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(n,r,a,c,d,f,h,p)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let f=(0,i.hE)(()=>new d)},43682:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(123),i=n(97966),s=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},22274:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),s=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||o()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},41157:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(123),i=n(97966),s=new class extends r.l{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}}},63178:function(e,t,n){"use strict";n.d(t,{A:function(){return a},z:function(){return u}});var r=n(97966),i=n(22274),s=n(17767),o=n(18798),a=class extends o.F{#i;#s;#o;#a;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#c?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(i(n),this.#c=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(o),this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta});let a=e=>{(0,s.DV)(e)&&e.silent||this.#l({type:"error",error:e}),(0,s.DV)(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#a=(0,s.Mz)({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#a.start()}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,s.DV)(n)&&n.revert&&this.#s)return{...this.#s,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},18798:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(97966),i=class{#d;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#d=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#d&&(clearTimeout(this.#d),this.#d=void 0)}}},17767:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return a},Mz:function(){return l}});var r=n(43682),i=n(41157),s=n(97966);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function l(e){let t,n,c,l=!1,d=0,f=!1,h=new Promise((e,t)=>{n=e,c=t}),p=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),b=()=>a(e.networkMode)&&e.canRun(),m=r=>{f||(f=!0,e.onSuccess?.(r),t?.(),n(r))},y=n=>{f||(f=!0,e.onError?.(n),t?.(),c(n))},g=()=>new Promise(n=>{t=e=>{(f||p())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,f||e.onContinue?.()}),v=()=>{let t;if(f)return;let n=0===d?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(f)return;let n=e.retry??(s.sk?0:3),r=e.retryDelay??o,i="function"==typeof r?r(d,t):r,a=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,t);if(l||!a){y(t);return}d++,e.onFail?.(d,t),(0,s._v)(i).then(()=>p()?void 0:g()).then(()=>{l?y(t):v()})})};return{promise:h,cancel:t=>{f||(y(new u(t)),e.abort?.())},continue:()=>(t?.(),h),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:b,start:()=>(b()?v():g().then(v),h)}}},123:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},97966:function(e,t,n){"use strict";n.d(t,{CN:function(){return $},Ht:function(){return P},KC:function(){return u},Kp:function(){return a},Nc:function(){return c},PN:function(){return o},Rm:function(){return f},SE:function(){return s},VS:function(){return b},VX:function(){return x},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return v},_x:function(){return l},cG:function(){return C},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==f(o,t.options))return!1}else if(!p(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!s||!!s(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(s))return!1}else if(!p(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!g(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=m(t)&&m(n);if(r||y(t)&&y(n)){let i=r?t:Object.keys(t),s=i.length,o=r?n:Object.keys(n),a=o.length,u=r?[]:{},c=0;for(let s=0;s<a;s++){let a=r?s:o[s];(!r&&i.includes(a)||r)&&void 0===t[a]&&void 0===n[a]?(u[a]=void 0,c++):(u[a]=e(t[a],n[a]),u[a]===t[a]&&void 0!==t[a]&&c++)}return s===a&&c===s?t:u}return n}(e,t):t}function x(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function P(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $=Symbol();function C(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==$?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},50693:function(e,t,n){"use strict";n.d(t,{NL:function(){return o},aH:function(){return a}});var r=n(89702),i=n(75536),s=r.createContext(void 0),o=e=>{let t=r.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:n})}},95951:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return G}});var i=n(97966),s=n(22274),o=n(43682),a=n(123),u=n(63178),c=class extends a.l{constructor(e,t){super(),this.options=t,this.#f=e,this.#h=null,this.bindMethods(),this.setOptions(t)}#f;#p=void 0;#b=void 0;#m=void 0;#y;#g;#h;#v;#w;#x;#P;#$;#C;#E=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#p.addObserver(this),l(this.#p,this.options)?this.#I():this.updateResult(),this.#G())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#p,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#p,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#T(),this.#p.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#p;if(this.options=this.#f.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.Nc)(this.options.enabled,this.#p))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#M(),this.#p.setOptions(this.options),n._defaulted&&!(0,i.VS)(this.options,n)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#p,observer:this});let s=this.hasListeners();s&&f(this.#p,r,this.options,n)&&this.#I(),this.updateResult(t),s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||(0,i.KC)(this.options.staleTime,this.#p)!==(0,i.KC)(n.staleTime,this.#p))&&this.#k();let o=this.#S();s&&(this.#p!==r||(0,i.Nc)(this.options.enabled,this.#p)!==(0,i.Nc)(n.enabled,this.#p)||o!==this.#C)&&this.#N(o)}getOptimisticResult(e){let t=this.#f.getQueryCache().build(this.#f,e),n=this.createResult(t,e);return(0,i.VS)(this.getCurrentResult(),n)||(this.#m=n,this.#g=this.options,this.#y=this.#p.state),n}getCurrentResult(){return this.#m}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#E.add(e)}getCurrentQuery(){return this.#p}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#f.defaultQueryOptions(e),n=this.#f.getQueryCache().build(this.#f,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#m))}#I(e){this.#M();let t=this.#p.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.ZT)),t}#k(){this.#O();let e=(0,i.KC)(this.options.staleTime,this.#p);if(i.sk||this.#m.isStale||!(0,i.PN)(e))return;let t=(0,i.Kp)(this.#m.dataUpdatedAt,e);this.#P=setTimeout(()=>{this.#m.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#p):this.options.refetchInterval)??!1}#N(e){this.#T(),this.#C=e,!i.sk&&!1!==(0,i.Nc)(this.options.enabled,this.#p)&&(0,i.PN)(this.#C)&&0!==this.#C&&(this.#$=setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#I()},this.#C))}#G(){this.#k(),this.#N(this.#S())}#O(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}#T(){this.#$&&(clearInterval(this.#$),this.#$=void 0)}createResult(e,t){let n;let r=this.#p,s=this.options,o=this.#m,a=this.#y,c=this.#g,d=e!==r?e.state:this.#b,{state:p}=e,b={...p},m=!1;if(t._optimisticResults){let n=this.hasListeners(),i=!n&&l(e,t),o=n&&f(e,r,t,s);(i||o)&&(b={...b,...(0,u.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:v}=b;if(t.select&&void 0!==b.data){if(o&&b.data===a?.data&&t.select===this.#v)n=this.#w;else try{this.#v=t.select,n=t.select(b.data),n=(0,i.oE)(o?.data,n,t),this.#w=n,this.#h=null}catch(e){this.#h=e}}else n=b.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===v){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#h=null}catch(e){this.#h=e}void 0!==e&&(v="success",n=(0,i.oE)(o?.data,e,t),m=!0)}this.#h&&(y=this.#h,n=this.#w,g=Date.now(),v="error");let w="fetching"===b.fetchStatus,x="pending"===v,P="error"===v,$=x&&w,C=void 0!==n;return{status:v,fetchStatus:b.fetchStatus,isPending:x,isSuccess:"success"===v,isError:P,isInitialLoading:$,isLoading:$,data:n,dataUpdatedAt:b.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>d.dataUpdateCount||b.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:P&&!C,isPaused:"paused"===b.fetchStatus,isPlaceholderData:m,isRefetchError:P&&C,isStale:h(e,t),refetch:this.refetch}}updateResult(e){let t=this.#m,n=this.createResult(this.#p,this.options);if(this.#y=this.#p.state,this.#g=this.options,void 0!==this.#y.data&&(this.#x=this.#p),(0,i.VS)(n,t))return;this.#m=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#E.size)return!0;let r=new Set(n??this.#E);return this.options.throwOnError&&r.add("error"),Object.keys(this.#m).some(e=>this.#m[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#R({...r,...e})}#M(){let e=this.#f.getQueryCache().build(this.#f,this.options);if(e===this.#p)return;let t=this.#p;this.#p=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#G()}#R(e){s.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#m)}),this.#f.getQueryCache().notify({query:this.#p,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,n){if(!1!==(0,i.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&h(e,t)}return!1}function f(e,t,n,r){return(e!==t||!1===(0,i.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&h(e,n)}function h(e,t){return!1!==(0,i.Nc)(t.enabled,e)&&e.isStaleByTime((0,i.KC)(t.staleTime,e))}var p=n(89702);n(75536);var b=p.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),m=()=>p.useContext(b),y=n(50693),g=p.createContext(!1),v=()=>p.useContext(g);g.Provider;var w=n(11267),x=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},P=e=>{p.useEffect(()=>{e.clearReset()},[e])},$=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(0,w.L)(r,[t.error,i])},C=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},E=(e,t)=>e?.suspense&&t.isPending,I=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function G(e,t){return function(e,t,n){var r,i,o,a;let u=(0,y.NL)(n),c=v(),l=m(),d=u.defaultQueryOptions(e);null===(i=u.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,d),d._optimisticResults=c?"isRestoring":"optimistic",C(d),x(d,l),P(l);let[f]=p.useState(()=>new t(u,d)),h=f.getOptimisticResult(d);if(p.useSyncExternalStore(p.useCallback(e=>{let t=c?()=>void 0:f.subscribe(s.V.batchCalls(e));return f.updateResult(),t},[f,c]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p.useEffect(()=>{f.setOptions(d,{listeners:!1})},[d,f]),E(d,h))throw I(d,f,l);if($({result:h,errorResetBoundary:l,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash)}))throw h.error;return null===(a=u.getDefaultOptions().queries)||void 0===a||null===(o=a._experimental_afterQuery)||void 0===o||o.call(a,d,h),d.notifyOnChangeProps?h:f.trackResult(h)}(e,c,t)}},11267:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},3948:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(9252),i=n(47812),s=n(18550),o=n(55024),a=n(27178);async function u(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new a.$S({connector:r});let[i,s]=await Promise.all([r.getAccounts(),r.getChainId()]);n={accounts:i,chainId:s,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new a.aH;let u=t.chainId??n.chainId,c=await n.connector.getChainId();if(c!==n.chainId)throw new a.XZ({connectionChainId:n.chainId,connectorChainId:c});let l=n.connector;if(l.getClient)return l.getClient({chainId:u});let d=(0,s.T)(t.account??n.accounts[0]);if(d.address=(0,o.K)(d.address),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new a.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===u),h=await n.connector.getProvider({chainId:u});return(0,r.e)({account:d,chain:f,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",name:r="Custom Provider",retryDelay:s}=t;return({retryCount:o})=>(0,i.q)({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??o,retryDelay:s,type:"custom"})})(h)({...e,retryCount:0})})}},56858:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r,i,s=n(32110);let o=()=>`@wagmi/core@${s.i}`;var a=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class u extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return o()}constructor(e,t={}){super(),r.add(this),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:"WagmiCoreError"});let n=t.cause instanceof u?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof u&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return a(this,r,"m",i).call(this,this,e)}}r=new WeakSet,i=function e(t,n){return n?.(t)?t:t.cause?a(this,r,"m",e).call(this,t.cause,n):t}},27178:function(e,t,n){"use strict";n.d(t,{$S:function(){return c},JK:function(){return a},X4:function(){return i},XZ:function(){return u},aH:function(){return o},wi:function(){return s}});var r=n(56858);class i extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class s extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class o extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class a extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class u extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class c extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},33586:function(e,t,n){"use strict";function r(e){return JSON.stringify(e,(e,t)=>!function(e){if(!i(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(i(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:s,maxPages:o,meta:a,networkMode:u,queryFn:c,queryHash:l,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:p,structuralSharing:b,getPreviousPageParam:m,getNextPageParam:y,initialPageParam:g,_optimisticResults:v,enabled:w,notifyOnChangeProps:x,placeholderData:P,refetchInterval:$,refetchIntervalInBackground:C,refetchOnMount:E,refetchOnReconnect:I,refetchOnWindowFocus:G,retryOnMount:O,select:T,staleTime:M,suspense:k,throwOnError:S,config:N,connector:R,query:F,...A}=e;return A}n.d(t,{OP:function(){return s},kq:function(){return r}})},37979:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},32110:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r="2.13.5"},28994:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].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=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},1586:function(e,t,n){"use strict";n.d(t,{F:function(){return s},Hk:function(){return o},a_:function(){return i}});var r=n(28994);class i extends r.G{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 s extends r.G{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 o extends r.G{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"})}}},45888:function(e,t,n){"use strict";n.d(t,{$r:function(){return i},TT:function(){return o},_D:function(){return u},aZ:function(){return c},jO:function(){return s},zL:function(){return a}});var r=n(28994);class i extends r.G{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"})}}class s extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends r.G{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 a extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class u extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{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"})}}},53834:function(e,t,n){"use strict";n.d(t,{H6:function(){return o},Vs:function(){return s},wn:function(){return i}});var r=n(28994);class i extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class s extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class o extends r.G{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"})}}},11427:function(e,t,n){"use strict";n.d(t,{Dt:function(){return E},EC:function(){return w},LY:function(){return $},N0:function(){return p},PI:function(){return g},QM:function(){return P},SA:function(){return o},Wg:function(){return C},_c:function(){return s},a4:function(){return y},c3:function(){return u},g1:function(){return b},l$:function(){return f},rh:function(){return d},wA:function(){return c}});var r=n(5821);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function o(e){return(0,r.Zw)(i,e)}let a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return a.test(e)}function c(e){return(0,r.Zw)(a,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return h.test(e)}function b(e){return(0,r.Zw)(h,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return m.test(e)}function g(e){return(0,r.Zw)(m,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}let x=/^receive\(\) external payable$/;function P(e){return x.test(e)}let $=new Set(["memory","indexed","storage","calldata"]),C=new Set(["indexed"]),E=new Set(["calldata","memory","storage"])},71792:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(5821),i=n(1586),s=n(45888),o=n(53834),a=n(28994);class u extends a.G{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"})}}var c=n(11427),l=n(14448);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.N0)(n))continue;let i=(0,c.g1)(n);if(!i)throw new o.wn({signature:n,type:"struct"});let s=i.properties.split(";"),a=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});a.push(n)}if(!a.length)throw new o.H6({signature:n});t[i.name]=a}let a={},d=Object.entries(t),h=d.length;for(let e=0;e<h;e++){let[n,o]=d[e];a[n]=function e(t,n,o=new Set){let a=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.cN.test(c.type))a.push(c);else{let t=(0,r.Zw)(f,c.type);if(!t?.type)throw new s.aZ({abiParameter:c});let{array:d,type:h}=t;if(h in n){if(o.has(h))throw new u({type:h});a.push({...c,type:`tuple${d??""}`,components:e(n[h]??[],n,new Set([...o,h]))})}else if((0,l.uN)(h))a.push(c);else throw new i.F({type:h})}}return a}(o,t)}return a}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},14448:function(e,t,n){"use strict";n.d(t,{uN:function(){return y},C$:function(){return b},cK:function(){return d},Q4:function(){return m}});var r=n(5821),i=n(1586),s=n(45888),o=n(53834),a=n(28994);class u extends a.G{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 c=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}]]);var l=n(11427);function d(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new o.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let a=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)a.push(b(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:a}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new o.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new o.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new o.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(b(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new o.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function b(e,t){var n,o,a;let u;let d=(n=t?.type)?`${n}:${e}`:e;if(c.has(d))return c.get(d);let v=r.cN.test(e),w=(0,r.Zw)(v?h:f,e);if(!w)throw new s.jO({param:e});if(w.name&&("address"===(o=w.name)||"bool"===o||"function"===o||"string"===o||"tuple"===o||r.eL.test(o)||r.lh.test(o)||g.test(o)))throw new s.TT({param:e,name:w.name});let x=w.name?{name:w.name}:{},P="indexed"===w.modifier?{indexed:!0}:{},$=t?.structs??{},C={};if(v){u="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(b(e[r],{structs:$}));C={components:t}}else if(w.type in $)u="tuple",C={components:$[w.type]};else if(p.test(w.type))u=`${w.type}256`;else if(u=w.type,t?.type!=="struct"&&!y(u))throw new i.Hk({type:u});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new s.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(a=u,!w.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new s._D({param:e,type:t?.type,modifier:w.modifier})}let E={type:`${u}${w.array??""}`,...x,...P,...C};return c.set(d,E),E}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],o=e.slice(s+1);switch(i){case",":return 0===r?m(o,[...t,n.trim()]):m(o,t,`${n}${i}`,r);case"(":return m(o,t,`${n}${i}`,r+1);case")":return m(o,t,`${n}${i}`,r-1);default:return m(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new u({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let g=/^(?: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)$/},5821:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return o},eL:function(){return i},lh:function(){return s}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^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)?$/,o=/^\(.+?\).*?$/},18550:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},33304:function(e,t,n){"use strict";n.d(t,{R:function(){return E}});var r=n(11427),i=n(71792),s=n(14448);function o(e){let t=(0,i.D)(e),n=[],o=e.length;for(let i=0;i<o;i++){let o=e[i];(0,r.N0)(o)||n.push((0,s.cK)(o,t))}return n}var a=n(18550),u=n(15882),c=n(14097),l=n(5421),d=n(237),f=n(41894),h=n(70338),p=n(85310),b=n(38287),m=n(88340),y=n(79196),g=n(98780),v=n(9284),w=n(71308),x=n(55247),P=n(40852),$=n(79851),C=n(10042);async function E(e,t){let{account:r=e.account,batch:i=!!e.batch?.multicall,blockNumber:s,blockTag:u="latest",accessList:h,blobs:b,code:m,data:P,factory:E,factoryData:G,gas:O,gasPrice:T,maxFeePerBlobGas:M,maxFeePerGas:k,maxPriorityFeePerGas:S,nonce:N,to:R,value:F,stateOverride:A,...B}=t,j=r?(0,a.T)(r):void 0;if(m&&(E||G))throw new l.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(m&&R)throw new l.G("Cannot provide both `code` & `to` as parameters.");let U=m&&P,D=E&&G&&R&&P,L=U||D,z=U?function(e){let{code:t,data:n}=e;return(0,p.w)({abi:o(["constructor(bytes, bytes)"]),bytecode:c.NO,args:[t,n]})}({code:m,data:P}):D?function(e){let{data:t,factory:n,factoryData:r,to:i}=e;return(0,p.w)({abi:o(["constructor(address, bytes, address, bytes)"]),bytecode:c.pG,args:[i,t,n,r]})}({data:P,factory:E,factoryData:G,to:R}):P;try{(0,C.F)(t);let n=(s?(0,y.eC)(s):void 0)||u,r=(0,$.mF)(A),o=e.chain?.formatters?.transactionRequest?.format,a=(o||x.tG)({...(0,w.K)(B,{format:o}),from:j?.address,accessList:h,blobs:b,data:z,gas:O,gasPrice:T,maxFeePerBlobGas:M,maxFeePerGas:k,maxPriorityFeePerGas:S,nonce:N,to:L?void 0:R,value:F});if(i&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:a})&&!r)try{return await I(e,{...a,blockNumber:s,blockTag:u})}catch(e){if(!(e instanceof d.pZ)&&!(e instanceof d.mm))throw e}let c=await e.request({method:"eth_call",params:r?[a,n,r]:[a,n]});if("0x"===c)return{data:void 0};return{data:c}}catch(o){let r=function(e){if(!(e instanceof l.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(o),{offchainLookup:i,offchainLookupSignature:s}=await n.e(8559).then(n.bind(n,68559));if(!1!==e.ccipRead&&r?.slice(0,10)===s&&R)return{data:await i(e,{data:r,to:R})};if(L&&r?.slice(0,10)==="0x101bb98d")throw new f.Mo({factory:E});throw function(e,{docsPath:t,...n}){let r=(()=>{let t=(0,v.k)(e,n);return t instanceof g.cj?e:t})();return new f.cg(r,{docsPath:t,...n})}(o,{...t,account:j,chain:e.chain})}}async function I(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s="latest",data:o,multicallAddress:a,to:c}=t,l=a;if(!l){if(!e.chain)throw new d.pZ;l=(0,m.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let p=(i?(0,y.eC)(i):void 0)||s,{schedule:g}=(0,P.S)({id:`${e.uid}.${p}`,wait:r,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,b.R)({abi:u.F8,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:r,to:l},p]});return(0,h.k)({abi:u.F8,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:v,success:w}]=await g({data:o,to:c});if(!w)throw new f.VQ({data:v});return"0x"===v?{data:void 0}:{data:v}}},40517:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(40717),i=n(79196),s=n(23569);async function o(e,{blockHash:t,blockNumber:n,blockTag:o,includeTransactions:a}={}){let u=a??!1,c=void 0!==n?(0,i.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||(o??"latest"),u]},{dedupe:!!c})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||s.Z)(l)}},84639:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});let r=new Map,i=new Map;async function s(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let s=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),s=t(e,i);return{clear:()=>{n.clear(),s.clear()},promise:n,response:s}}(t),o=s.response.get();if(o&&n>0&&new Date().getTime()-o.created.getTime()<n)return o.data;let a=s.promise.get();a||(a=e(),s.promise.set(a));try{let e=await a;return s.response.set({created:new Date,data:e}),e}finally{s.promise.clear()}}let o=e=>`blockNumber.${e}`;async function a(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await s(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:t}))}},51592:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(91580),i=n(79196),s=n(92323);async function o(e,{blockHash:t,blockNumber:n,blockTag:o,hash:a,index:u}){let c=o||"latest",l=void 0!==n?(0,i.eC)(n):void 0,d=null;if(a?d=await e.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(u)]},{dedupe:!0}):(l||c)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,i.eC)(u)]},{dedupe:!!l})),!d)throw new r.Bh({blockHash:t,blockNumber:n,blockTag:c,hash:a,index:u});return(e.chain?.formatters?.transaction?.format||s.Tr)(d)}},79701:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(19976),i=n(84639),s=n(51592);async function o(e,{hash:t,transactionReceipt:n}){let[o,a]=await Promise.all([(0,r.s)(e,i.z,"getBlockNumber")({}),t?(0,r.s)(e,s.f,"getTransaction")({hash:t}):void 0]),u=n?.blockNumber||a?.blockNumber;return u?o-u+1n:0n}},84409:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var r=n(91580),i=n(36935);async function s(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.fA)(n)}},22765:function(e,t,n){"use strict";n.d(t,{a:function(){return c}});var r=n(18550),i=n(70338),s=n(38287),o=n(94993),a=n(19976),u=n(33304);async function c(e,t){let{abi:n,address:c,args:l,dataSuffix:d,functionName:f,...h}=t,p=h.account?(0,r.T)(h.account):e.account,b=(0,s.R)({abi:n,args:l,functionName:f});try{let{data:r}=await (0,a.s)(e,u.R,"call")({batch:!1,data:`${b}${d?d.replace("0x",""):""}`,to:c,...h,account:p}),s=(0,i.k)({abi:n,args:l,functionName:f,data:r||"0x"}),o=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:s,request:{abi:o,address:c,args:l,dataSuffix:d,functionName:f,...h,account:p}}}catch(e){throw(0,o.S)(e,{abi:n,address:c,args:l,docsPath:"/docs/contract/simulateContract",functionName:f,sender:p?.address})}}},1462:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(40717),i=n(91580),s=n(19976),o=n(61399),a=n(93156),u=n(49130),c=n(40517),l=n(51592),d=n(84409),f=n(53524);async function h(e,{confirmations:t=1,hash:n,onReplaced:h,pollingInterval:p=e.pollingInterval,retryCount:b=6,retryDelay:m=({count:e})=>200*~~(1<<e),timeout:y=18e4}){let g,v,w;let x=(0,u.P)(["waitForTransactionReceipt",e.uid,n]),P=!1;return new Promise((u,$)=>{y&&setTimeout(()=>$(new i.mc({hash:n})),y);let C=(0,o.N7)(x,{onReplaced:h,resolve:u,reject:$},o=>{let u=(0,s.s)(e,f.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(f){let h=e=>{u(),e(),C()},p=f;if(!P)try{if(w){if(t>1&&(!w.blockNumber||p-w.blockNumber+1n<t))return;h(()=>o.resolve(w));return}if(g||(P=!0,await (0,a.J)(async()=>{(g=await (0,s.s)(e,l.f,"getTransaction")({hash:n})).blockNumber&&(p=g.blockNumber)},{delay:m,retryCount:b}),P=!1),w=await (0,s.s)(e,d.a,"getTransactionReceipt")({hash:n}),t>1&&(!w.blockNumber||p-w.blockNumber+1n<t))return;h(()=>o.resolve(w))}catch(n){if(n instanceof i.Bh||n instanceof i.Yb){if(!g){P=!1;return}try{v=g,P=!0;let n=await (0,a.J)(()=>(0,s.s)(e,c.Q,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:m,retryCount:b,shouldRetry:({error:e})=>e instanceof r.f});P=!1;let i=n.transactions.find(({from:e,nonce:t})=>e===v.from&&t===v.nonce);if(!i||(w=await (0,s.s)(e,d.a,"getTransactionReceipt")({hash:i.hash}),t>1&&(!w.blockNumber||p-w.blockNumber+1n<t)))return;let u="replaced";i.to===v.to&&i.value===v.value?u="repriced":i.from===i.to&&0n===i.value&&(u="cancelled"),h(()=>{o.onReplaced?.({reason:u,replacedTransaction:v,transaction:i,transactionReceipt:w}),o.resolve(w)})}catch(e){h(()=>o.reject(e))}}else h(()=>o.reject(n))}}})})})}},53524:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var r=n(78902),i=n(19976),s=n(61399),o=n(66096),a=n(49130),u=n(84639);function c(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:c,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let h;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,a.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,s.N7)(r,{onBlockNumber:c,onError:l},r=>(0,o.$)(async()=>{try{let t=await (0,i.s)(e,u.z,"getBlockNumber")({cacheTime:0});if(h){if(t===h)return;if(t-h>1&&n)for(let e=h+1n;e<t;e++)r.onBlockNumber(e,h),h=e}(!h||t>h)&&(r.onBlockNumber(t,h),h=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let i=(0,a.P)(["watchBlockNumber",e.uid,t,n]);return(0,s.N7)(i,{onBlockNumber:c,onError:l},t=>{let n=!0,i=()=>n=!1;return(async()=>{try{let s=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await s.subscribe({params:["newHeads"],onData(e){if(!n)return;let i=(0,r.y_)(e.result?.number);t.onBlockNumber(i,h),h=i},onError(e){t.onError?.(e)}});i=o,n||i()}catch(e){l?.(e)}})(),()=>i()})})()}},4778:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(23569),i=n(19976),s=n(61399),o=n(66096),a=n(49130),u=n(40517);function c(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:c=!1,onBlock:l,onError:d,includeTransactions:f,poll:h,pollingInterval:p=e.pollingInterval}){let b,m,y,g;let v=void 0!==h?h:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),w=f??!1;return v?(()=>{let r=(0,a.P)(["watchBlocks",e.uid,t,n,c,w,p]);return(0,s.N7)(r,{onBlock:l,onError:d},r=>(0,o.$)(async()=>{try{let s=await (0,i.s)(e,u.Q,"getBlock")({blockTag:t,includeTransactions:w});if(s.number&&b?.number){if(s.number===b.number)return;if(s.number-b.number>1&&n)for(let t=b?.number+1n;t<s.number;t++){let n=await (0,i.s)(e,u.Q,"getBlock")({blockNumber:t,includeTransactions:w});r.onBlock(n,b),b=n}}(!b?.number||"pending"===t&&!s?.number||s.number&&s.number>b.number)&&(r.onBlock(s,b),b=s)}catch(e){r.onError?.(e)}},{emitOnBegin:c,interval:p}))})():(m=!0,y=!0,g=()=>m=!1,(async()=>{try{c&&(0,i.s)(e,u.Q,"getBlock")({blockTag:t,includeTransactions:w}).then(e=>{m&&y&&(l(e,void 0),y=!1)});let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await n.subscribe({params:["newHeads"],onData(t){if(!m)return;let n=(e.chain?.formatters?.block?.format||r.Z)(t.result);l(n,b),y=!1,b=n},onError(e){d?.(e)}});g=s,m||g()}catch(e){d?.(e)}})(),()=>g())}},79617:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=(0,n(41165).a)({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"]}}})},53103:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});let r=(0,n(41165).a)({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},49249:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(76271);let i=(0,n(41165).a)({...r.i,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:{...r.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},20536:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(76271);let i=(0,n(41165).a)({...r.i,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:{...r.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},9252:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(18550),i=n(16051);function s(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:s,key:o="base",name:a="Base Client",pollingInterval:u=4e3,type:c="base"}=e,l=e.chain,d=e.account?(0,r.T)(e.account):void 0,{config:f,request:h,value:p}=e.transport({chain:l,pollingInterval:u}),b={account:d,batch:t,cacheTime:n,ccipRead:s,chain:l,key:o,name:a,pollingInterval:u,request:h,transport:{...f,...p},type:c,uid:(0,i.h)()};return Object.assign(b,{extend:function e(t){return n=>{let r=n(t);for(let e in b)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(b)})}},47812:function(e,t,n){"use strict";n.d(t,{q:function(){return f}});var r=n(5421),i=n(68688),s=n(61880),o=n(79196),a=n(96508);let u=new(n(25941)).k(8192);var c=n(93156),l=n(49130),d=n(16051);function f({key:e,name:t,request:n,retryCount:f=3,retryDelay:h=150,timeout:p,type:b},m){return{config:{key:e,name:t,request:n,retryCount:f,retryDelay:h,timeout:p,type:b},request:function(e,t={}){return async(n,d={})=>{let{dedupe:f=!1,retryDelay:h=150,retryCount:p=3,uid:b}={...t,...d},m=f?(0,a.w)((0,o.$G)(`${b}.${(0,l.P)(n)}`)):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(u.get(n))return u.get(n);let r=e().finally(()=>u.delete(n));return u.set(n,r),r}(()=>(0,c.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case s.s7.code:throw new s.s7(e);case s.B.code:throw new s.B(e);case s.LX.code:throw new s.LX(e,{method:n.method});case s.nY.code:throw new s.nY(e);case s.XS.code:throw new s.XS(e);case s.yR.code:throw new s.yR(e);case s.Og.code:throw new s.Og(e);case s.pT.code:throw new s.pT(e);case s.KB.code:throw new s.KB(e);case s.gS.code:throw new s.gS(e,{method:n.method});case s.Pv.code:throw new s.Pv(e);case s.GD.code:throw new s.GD(e);case s.ab.code:throw new s.ab(e);case s.PE.code:throw new s.PE(e);case s.Ts.code:throw new s.Ts(e);case s.u5.code:throw new s.u5(e);case s.I0.code:throw new s.I0(e);case s.x3.code:throw new s.x3(e);case 5e3:throw new s.ab(e);default:if(e instanceof r.G)throw e;throw new s.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*h},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===s.Pv.code||e.code===s.XS.code:!(e instanceof i.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:f,id:m})}}(n,{retryCount:f,retryDelay:h,uid:(0,d.h)()}),value:m}}},15882:function(e,t,n){"use strict";n.d(t,{$o:function(){return c},F8:function(){return r},X$:function(){return u},du:function(){return o},k3:function(){return s},nZ:function(){return a}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],s=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],a=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},14097:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},ST:function(){return s},pG:function(){return i}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",s="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},58378:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});let r=1},59938:function(e,t,n){"use strict";n.d(t,{zL:function(){return r}});let r=2n**256n-1n},57513:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return s}});let r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},58775:function(e,t,n){"use strict";n.d(t,{CI:function(){return E},FM:function(){return p},Gy:function(){return $},KY:function(){return x},M4:function(){return d},MX:function(){return g},Mi:function(){return O},S4:function(){return w},SM:function(){return P},cO:function(){return a},dh:function(){return C},eF:function(){return v},fM:function(){return o},fs:function(){return f},gr:function(){return l},hn:function(){return I},lC:function(){return b},mv:function(){return m},wM:function(){return G},wb:function(){return c},xB:function(){return u},xL:function(){return y},yP:function(){return h}});var r=n(90491),i=n(69314),s=n(5421);class o extends s.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class a extends s.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class u extends s.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data: ${e} (${n} 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=n}}class c extends s.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class l extends s.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
|
|
18
|
-
Expected length: ${e}
|
|
19
|
-
Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends s.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends s.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
|
|
20
|
-
Expected length (params): ${e}
|
|
21
|
-
Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h extends s.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
|
|
22
|
-
Make sure you are using the correct ABI and that the error exists on it.
|
|
23
|
-
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends s.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends s.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
|
|
24
|
-
Make sure you are using the correct ABI and that the event exists on it.
|
|
25
|
-
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends s.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
|
|
26
|
-
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends s.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
|
|
27
|
-
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class g extends s.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
|
|
28
|
-
Cannot decode function result without knowing what the parameter types are.
|
|
29
|
-
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class v extends s.G{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
|
|
30
|
-
Make sure you are using the correct ABI and that the function exists on it.
|
|
31
|
-
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class w extends s.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class x extends s.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class P extends s.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{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=n,this.size=i}}class $ extends s.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends s.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
|
|
32
|
-
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class E extends s.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
|
|
33
|
-
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class I extends s.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class G extends s.G{constructor(e){super(`"${e}" is not a valid definition type.
|
|
34
|
-
Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class O extends s.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},52964:function(e,t,n){"use strict";n.d(t,{RX:function(){return o},cJ:function(){return u},m7:function(){return s},xd:function(){return a}});var r=n(58378),i=n(5421);class s extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class u extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},40717:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(5421);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},237:function(e,t,n){"use strict";n.d(t,{Bk:function(){return o},Yl:function(){return s},hJ:function(){return u},mm:function(){return i},pZ:function(){return a}});var r=n(5421);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class s extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class o extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class a extends r.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class u extends r.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},41894:function(e,t,n){"use strict";n.d(t,{cg:function(){return y},uq:function(){return g},Lu:function(){return v},Dk:function(){return w},Mo:function(){return x},VQ:function(){return P}});var r=n(18550),i=n(57513),s=n(57948),o=n(90491),a=n(49130);function u({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,a.P)(t[n]):t[n]}`).join(", ")})`}var c=n(3734),l=n(84141),d=n(33048),f=n(58775),h=n(5421),p=n(80780),b=n(91580),m=n(21281);class y extends h.G{constructor(e,{account:t,docsPath:n,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:h,value:m,stateOverride:y}){let g=t?(0,r.T)(t):void 0,v=(0,b.xr)({from:g?.address,to:h,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,d.o)(a)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});y&&(v+=`
|
|
35
|
-
${(0,p.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends h.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:s,sender:a}){let l=(0,c.mE)({abi:t,args:n,name:s}),d=l?u({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,o.t)(l,{includeName:!0}):void 0,h=(0,b.xr)({address:r&&(0,m.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].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=n,this.cause=e,this.contractAddress=r,this.functionName=s,this.sender=a}}class v extends h.G{constructor({abi:e,data:t,functionName:n,message:r}){let a,c,l,d,h;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:a}=h=(0,s.p)({abi:e,data:t});if("Error"===r)l=a[0];else if("Panic"===r){let[e]=a;l=i.$[e]}else{let e=n?(0,o.t)(n,{includeName:!0}):void 0,t=n&&a?u({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){a=e}else r&&(l=r);a instanceof f.yP&&(d=a.signature,c=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=d}}class w extends h.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class x extends h.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class P extends h.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},19431:function(e,t,n){"use strict";n.d(t,{KD:function(){return o},T_:function(){return i},lQ:function(){return s}});var r=n(5421);class i extends r.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends r.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},98780:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return a},Hh:function(){return o},M_:function(){return s},WF:function(){return f},ZI:function(){return u},cj:function(){return m},cs:function(){return b},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var r=n(33048),i=n(5421);class s extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}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 a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
36
|
-
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},68688:function(e,t,n){"use strict";n.d(t,{Gg:function(){return o},W5:function(){return u},bs:function(){return a}});var r=n(49130),i=n(5421),s=n(21281);class o extends i.G{constructor({body:e,cause:t,details:n,headers:i,status:o,url:a}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,s.G)(a)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=o,this.url=a}}class a extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,s.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class u extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,s.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"})}}},61880:function(e,t,n){"use strict";n.d(t,{B:function(){return u},GD:function(){return g},I0:function(){return $},KB:function(){return b},LX:function(){return c},Og:function(){return h},PE:function(){return w},Pv:function(){return y},Ts:function(){return x},XS:function(){return d},ab:function(){return v},gS:function(){return m},ir:function(){return E},nY:function(){return l},pT:function(){return p},s7:function(){return a},u5:function(){return P},x3:function(){return C},yR:function(){return f}});var r=n(5421),i=n(68688);class s extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:s,shortMessage:o}){super(o,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof i.bs?e.code:t??-1}}class o extends s{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class a extends s{constructor(e){super(e,{code:a.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends s{constructor(e){super(e,{code:u.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends s{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends s{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends s{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends s{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends s{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends s{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends s{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not implemented.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{constructor(e){super(e,{code:y.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends s{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}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."})}}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."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class x extends o{constructor(e,{method:t}={}){super(e,{code:x.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class P extends o{constructor(e){super(e,{code:P.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class $ extends o{constructor(e){super(e,{code:$.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class C extends o{constructor(e){super(e,{code:C.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class E extends s{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},80780:function(e,t,n){"use strict";n.d(t,{Bj:function(){return a},Nc:function(){return i},Z8:function(){return s}});var r=n(5421);class i extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class s extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}
|
|
37
|
-
`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:
|
|
38
|
-
`;return n.nonce&&(r+=` nonce: ${n.nonce}
|
|
39
|
-
`),n.balance&&(r+=` balance: ${n.balance}
|
|
40
|
-
`),n.code&&(r+=` code: ${n.code}
|
|
41
|
-
`),n.state&&(r+=" state:\n"+o(n.state)),n.stateDiff&&(r+=" stateDiff:\n"+o(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},91580:function(e,t,n){"use strict";n.d(t,{Bh:function(){return f},JC:function(){return l},Yb:function(){return h},j3:function(){return c},mc:function(){return p},mk:function(){return d},vl:function(){return u},xY:function(){return a},xr:function(){return o}});var r=n(84141),i=n(33048),s=n(5421);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class a extends s.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class u extends s.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends s.G{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"})}}class l extends s.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class d extends s.G{constructor(e,{account:t,docsPath:n,chain:s,data:a,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:s&&`${s?.name} (id: ${s?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,r.d)(p)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class f extends s.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let s="Transaction";n&&void 0!==i&&(s=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block number "${t}" at index "${i}"`),r&&(s=`Transaction with hash "${r}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class h extends s.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class p extends s.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},21281:function(e,t,n){"use strict";n.d(t,{C:function(){return r},G:function(){return i}});let r=e=>e,i=e=>e},76271:function(e,t,n){"use strict";n.d(t,{i:function(){return p}});var r=n(78902),i=n(23569),s=n(92323),o=n(36935);let a={block:(0,i.G)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=s.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?r.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,s.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,o.dI)({format:e=>({l1GasPrice:e.l1GasPrice?(0,r.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,r.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,r.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var u=n(47929),c=n(39585),l=n(67833),d=n(79196),f=n(18871),h=n(57805);let p={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:a,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){!function(e){let{from:t,to:n}=e;if(t&&!(0,c.U)(t))throw new u.b({address:t});if(n&&!(0,c.U)(n))throw new u.b({address:n})}(e);let{sourceHash:t,data:n,from:r,gas:i,isSystemTx:s,mint:o,to:a,value:h}=e,p=[t,r,a??"0x",o?(0,d.NC)(o):"0x",h?(0,d.NC)(h):"0x",i?(0,d.NC)(i):"0x",s?"0x1":"0x",n??"0x"];return(0,l.SM)(["0x7e",(0,f.LV)(p)])}(e):(0,h.D)(e,t)}}}},38466:function(e,t,n){"use strict";n.d(t,{r:function(){return b}});var r=n(58775),i=n(55024),s=n(17904),o=n(69314),a=n(82278),u=n(59418),c=n(19721),l=n(78902),d=n(79196);function f(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.ly)(n,t)}var h=n(22285),p=n(41837);function b(e,t){let n="string"==typeof t?(0,h.nr)(t):t,b=(0,s.q)(n);if(0===(0,o.d)(n)&&e.length>0)throw new r.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,o.d)(t)});let y=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];b.setPosition(y);let[s,o]=function e(t,n,{staticPosition:s}){let o=(0,p.S)(n.type);if(o){let[r,i]=o;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+f(t.readBytes(32)),s=r+32;t.setPosition(r);let o=f(t.readBytes(32)),a=m(n),u=0,c=[];for(let r=0;r<o;++r){t.setPosition(s+(a?32*r:u));let[i,o]=e(t,n,{staticPosition:s});u+=o,c.push(i)}return t.setPosition(i+32),[c,32]}if(m(n)){let s=i+f(t.readBytes(32)),o=[];for(let i=0;i<r;++i){t.setPosition(s+32*i);let[r]=e(t,n,{staticPosition:s});o.push(r)}return t.setPosition(i+32),[o,32]}let s=0,o=[];for(let a=0;a<r;++a){let[r,a]=e(t,n,{staticPosition:i+s});s+=a,o.push(r)}return[o,s]}(t,{...n,type:i},{length:r,staticPosition:s})}if("tuple"===n.type)return function(t,n,{staticPosition:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),s=i?[]:{},o=0;if(m(n)){let a=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let u=n.components[r];t.setPosition(a+o);let[c,l]=e(t,u,{staticPosition:a});o+=l,s[i?r:u?.name]=c}return t.setPosition(r+32),[s,32]}for(let a=0;a<n.components.length;++a){let u=n.components[a],[c,l]=e(t,u,{staticPosition:r});s[i?a:u?.name]=c,o+=l}return[s,o]}(t,n,{staticPosition:s});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,a.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,u.f)(n)),n.length>1||n[0]>1)throw new c.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=f(e.readBytes(32));e.setPosition(n+t);let r=f(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,n,{staticPosition:s});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.y_)(n,t)}(i,{signed:n}):f(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=f(e.readBytes(32));e.setPosition(t+n);let r=f(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),s=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,u.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,u.f)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,n,{staticPosition:0});y+=o,g.push(s)}return g}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let n=(0,p.S)(e.type);return!!(n&&m({...e,type:n[1]}))}},57948:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(57513),i=n(58775),s=n(82278),o=n(14902),a=n(38466),u=n(90491);function c(e){let{abi:t,data:n}=e,c=(0,s.tP)(n,0,4);if("0x"===c)throw new i.wb;let l=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&c===(0,o.C)((0,u.t)(e)));if(!l)throw new i.yP(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.r)(l.inputs,(0,s.tP)(n,4)):void 0,errorName:l.name}}},91889:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var r=n(58775),i=n(69314),s=n(51913),o=n(19431),a=n(38466),u=n(90491);let c="/docs/contract/decodeEventLog";function l(e){let{abi:t,data:n,strict:l,topics:d}=e,f=l??!0,[h,...p]=d;if(!h)throw new r.FM({docsPath:c});let b=1===t.length?t[0]:t.find(e=>"event"===e.type&&h===(0,s.n)((0,u.t)(e)));if(!(b&&"name"in b)||"event"!==b.type)throw new r.lC(h,{docsPath:c});let{name:m,inputs:y}=b,g=y?.some(e=>!("name"in e&&e.name)),v=g?[]:{},w=y.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<w.length;e++){let t=w[e],n=p[e];if(!n)throw new r.Gy({abiItem:b,param:t});v[g?e:t.name||e]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,a.r)([e],t)||[])[0]}({param:t,value:n})}let x=y.filter(e=>!("indexed"in e&&e.indexed));if(x.length>0){if(n&&"0x"!==n)try{let e=(0,a.r)(x,n);if(e){if(g)v=[...v,...e];else for(let t=0;t<x.length;t++)v[x[t].name]=e[t]}}catch(e){if(f){if(e instanceof r.xB||e instanceof o.lQ)throw new r.SM({abiItem:b,data:n,params:x,size:(0,i.d)(n)});throw e}}else if(f)throw new r.SM({abiItem:b,data:"0x",params:x,size:0})}return{eventName:m,args:Object.values(v).length>0?v:void 0}}},70338:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(58775),i=n(38466),s=n(3734);let o="/docs/contract/decodeFunctionResult";function a(e){let{abi:t,args:n,functionName:a,data:u}=e,c=t[0];if(a){let e=(0,s.mE)({abi:t,args:n,name:a});if(!e)throw new r.xL(a,{docsPath:o});c=e}if("function"!==c.type)throw new r.xL(void 0,{docsPath:o});if(!c.outputs)throw new r.MX(c.name,{docsPath:o});let l=(0,i.r)(c.outputs,u);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},41837:function(e,t,n){"use strict";n.d(t,{E:function(){return f},S:function(){return p}});var r=n(58775),i=n(47929),s=n(5421),o=n(39585),a=n(67833),u=n(78492),c=n(69314),l=n(82278),d=n(79196);function f(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=h(function({params:e,values:t}){let n=[];for(let f=0;f<e.length;f++)n.push(function e({param:t,value:n}){let f=p(t.type);if(f){let[i,s]=f;return function(t,{length:n,param:i}){let s=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!s&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,u=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),u.push(r)}if(s||o){let e=h(u);if(s){let t=(0,d.eC)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,a.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(u.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let s=0;s<n.components.length;s++){let o=n.components[s],a=Array.isArray(t)?s:o.name,u=e({param:o,value:t[a]});i.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?h(i):(0,a.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,u.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new s.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.gc)((0,d.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.eC)(e,{size:32,signed:t})}}(n,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,c.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,u.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,u.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(n))throw new r.M4({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:(0,u.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,d.$G)(e),n=Math.ceil((0,c.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.gc)((0,l.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.zo)([(0,u.gc)((0,d.eC)((0,c.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function h(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,c.d)(i)}let n=[],r=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(n.push((0,d.eC)(t+i,{size:32})),r.push(a),i+=(0,c.d)(a)):n.push(a)}return(0,a.zo)([...n,...r])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},85310:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(58775),i=n(67833),s=n(41837);let o="/docs/contract/encodeDeployData";function a(e){let{abi:t,args:n,bytecode:a}=e;if(!n||0===n.length)return a;let u=t.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new r.fM({docsPath:o});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new r.cO({docsPath:o});let c=(0,s.E)(u.inputs,n);return(0,i.SM)([a,c])}},38287:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(67833),i=n(41837),s=n(58775),o=n(14902),a=n(90491),u=n(3734);let c="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,i=t[0];if(r){let e=(0,u.mE)({abi:t,args:n,name:r});if(!e)throw new s.xL(r,{docsPath:c});i=e}if("function"!==i.type)throw new s.xL(void 0,{docsPath:c});return{abi:[i],functionName:(0,o.C)((0,a.t)(i))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,r.SM)([l,f??"0x"])}},90491:function(e,t,n){"use strict";n.d(t,{h:function(){return s},t:function(){return i}});var r=n(58775);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},3734:function(e,t,n){"use strict";n.d(t,{mE:function(){return u}});var r=n(58775),i=n(82442),s=n(39585),o=n(51913),a=n(14902);function u(e){let t;let{abi:n,args:u=[],name:c}=e,l=(0,i.v)(c,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,a.C)(e)===c:"event"===e.type&&(0,o.n)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,s.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));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"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let o=t[i],a=n[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,r[i]);let u=[o.type,a.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,s.U)(r[i],{strict:!1}))return u}}(e.inputs,t.inputs,u);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},88873:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(58775),i=n(98333),s=n(22285),o=n(96508),a=n(51913),u=n(91889);function c(e){let{abi:t,args:n,logs:c,strict:l=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return c.map(e=>{try{let r=t.find(t=>"event"===t.type&&e.topics[0]===(0,a.n)(t));if(!r)return null;let c=(0,u.F)({...e,abi:[r],strict:l});if(d&&!d.includes(c.eventName)||!function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function a(e,t,n){try{if("address"===e.type)return(0,i.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,o.w)((0,s.O0)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(null==e)return!0;let i=n[r];return!!i&&(Array.isArray(e)?e:[e]).some(e=>a(i,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof r||Array.isArray(r))&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;let i=n.find(t=>t.name===e);return!!i&&(Array.isArray(r)?r:[r]).some(n=>a(i,n,t[e]))})}({args:c.args,inputs:r.inputs,matchArgs:n}))return null;return{...c,...e}}catch(i){let t,n;if(i instanceof r.lC)return null;if(i instanceof r.SM||i instanceof r.Gy){if(l)return null;t=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}).filter(Boolean)}},98333:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var r=n(47929),i=n(39585);function s(e,t){if(!(0,i.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},75022:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(22285),i=n(79196);function s(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o=[];for(let e of s)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?o:o.map(e=>(0,i.ci)(e))}},60768:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(22285),i=n(79196);function s(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.nr)(e)):e.commitments,a=[];for(let e=0;e<s.length;e++){let n=s[e],r=o[e];a.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?a:a.map(e=>(0,i.ci)(e))}},42641:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(79196),i=n(20749),s=n(82442),o=n(22285);function a(e){let{commitments:t,version:n}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),u=[];for(let e of t)u.push(function(e){let{commitment:t,version:n=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),u=function(e,t){let n=(0,i.JQ)((0,s.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?n:(0,r.NC)(n)}(t,"bytes");return u.set([n],0),"bytes"===a?u:(0,r.ci)(u)}({commitment:e,to:a,version:n}));return u}},81342:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(75022),i=n(60768),s=n(52964),o=n(17904),a=n(69314),u=n(22285),c=n(79196);function l(e){let{data:t,kzg:n,to:l}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,u.nr)(e.data):e.data,r=(0,a.d)(n);if(!r)throw new s.RX;if(r>761855)throw new s.m7({maxSize:761855,size:r});let i=[],l=!0,d=0;for(;l;){let e=(0,o.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(d,d+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:l}),f=e.commitments??(0,r.P)({blobs:d,kzg:n,to:l}),h=e.proofs??(0,i.y)({blobs:d,commitments:f,kzg:n,to:l}),p=[];for(let e=0;e<d.length;e++)p.push({blob:d[e],commitment:f[e],proof:h[e]});return p}},41165:function(e,t,n){"use strict";function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}n.d(t,{a:function(){return r}})},88340:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(237);function i({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},17904:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(19431);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+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 n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function s(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},67833:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},82278:function(e,t,n){"use strict";n.d(t,{T4:function(){return c},p5:function(){return l},tP:function(){return o}});var r=n(30582),i=n(82442),s=n(69314);function o(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?l(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,s.d)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,s.d)(e)})}function c(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}function l(e,t,n,{strict:r}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}},18871:function(e,t,n){"use strict";n.d(t,{LV:function(){return a}});var r=n(5421),i=n(17904),s=n(22285),o=n(79196);function a(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),n=u(t);return{length:t<=55?1+t:1+n+t,encode(r){for(let{encode:i}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))i(r)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,s.nr)(e):e,n=u(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),r=(0,i.q)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,o.ci)(r.bytes):r.bytes}function u(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.G("Length is too large.")}},94993:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(58775),i=n(5421),s=n(41894),o=n(61880);function a(e,{abi:t,address:n,args:a,docsPath:u,functionName:c,sender:l}){let{code:d,data:f,message:h,shortMessage:p}=e instanceof s.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},b=e instanceof r.wb?new s.Dk({functionName:c}):[3,o.XS.code].includes(d)&&(f||h||p)?new s.Lu({abi:t,data:"object"==typeof f?f.data:f,functionName:c,message:p??h}):e;return new s.uq(b,{abi:t,args:a,contractAddress:n,docsPath:u,functionName:c,sender:l})}},9284:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(5421),i=n(98780);function s(e,t){let n=(e.details||"").toLowerCase(),s=e instanceof r.G?e.walk(e=>e?.code===i.M_.code):e;return s instanceof r.G?new i.M_({cause:e,message:s.details}):i.M_.nodeMessage.test(n)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(n)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(n)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(n)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(n)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(n)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(n)?new i.C_({cause:e}):i.WF.nodeMessage.test(n)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(n)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(n)?new i.pZ({cause:e}):i.cs.nodeMessage.test(n)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},23569:function(e,t,n){"use strict";n.d(t,{G:function(){return o},Z:function(){return s}});var r=n(18482),i=n(92323);function s(e){let t=e.transactions?.map(e=>"string"==typeof e?e:i.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,r.$)("block",s)},71308:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let i of Object.keys(r))i in e&&(n[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}n.d(t,{K:function(){return r}})},18482:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}n.d(t,{$:function(){return r}})},1167:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},92323:function(e,t,n){"use strict";n.d(t,{Tr:function(){return o},c8:function(){return s},y_:function(){return a}});var r=n(78902),i=n(18482);let s={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?s[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,i.$)("transaction",o)},36935:function(e,t,n){"use strict";n.d(t,{dI:function(){return c},fA:function(){return u}});var r=n(78902),i=n(18482),s=n(1167),o=n(92323);let a={"0x0":"reverted","0x1":"success"};function u(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,s.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?a[e.status]:null,type:e.type?o.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}let c=(0,i.$)("transactionReceipt",u)},55247:function(e,t,n){"use strict";n.d(t,{tG:function(){return s}});var r=n(79196);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function s(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,r.eC)(e.chainId),nonce:(0,r.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,r.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,r.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,r.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,r.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,r.eC)(e.value)),t}},19976:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},51913:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});let r=n(44846).r},14902:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(82278),i=n(44846);let s=e=>(0,r.tP)((0,i.r)(e),0,4)},44846:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(22285),i=n(96508);let s=e=>(0,i.w)((0,r.O0)(e));var o=n(5821);let a=/^tuple(?<array>(\[(\d*)\])*)$/;function u(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(a.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let i=0;i<r;i++)n+=e(t.components[i]),i<r-1&&(n+=", ");let i=(0,o.Zw)(a,t.type);return n+=`)${i?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n} indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}var c=n(5421);let l=e=>(function(e){let t=!0,n="",r=0,i="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t){if(0===r){if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!s)throw new c.G("Unable to normalize signature.");return i})("string"==typeof e?e:"function"===e.type?`function ${e.name}(${u(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${u(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${u(e.inputs)})`:"error"===e.type?`error ${e.name}(${u(e.inputs)})`:"constructor"===e.type?`constructor(${u(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable");function d(e){return s(l(e))}},61399:function(e,t,n){"use strict";n.d(t,{N7:function(){return o}});let r=new Map,i=new Map,s=0;function o(e,t,n){let o=++s,a=()=>r.get(e)||[],u=()=>{let t=a();r.set(e,t.filter(e=>e.id!==o))},c=()=>{let t=i.get(e);1===a().length&&t&&t(),u()},l=a();if(r.set(e,[...l,{id:o,fns:t}]),l&&l.length>0)return c;let d={};for(let e in t)d[e]=(...t)=>{let n=a();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&i.set(e,f),c}},66096:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(92618);function i(e,{emitOnBegin:t,initialWaitTime:n,interval:i}){let s=!0,o=()=>s=!1;return(async()=>{let a;t&&(a=await e({unpoll:o}));let u=await n?.(a)??i;await (0,r.D)(u);let c=async()=>{s&&(await e({unpoll:o}),await (0,r.D)(i),c())};c()})(),o}},40852:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});let r=new Map;function i({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:s}){let o=async()=>{let t=c();a();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let n=0;n<t.length;n++){let{pendingPromise:r}=t[n];r.resolve?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{pendingPromise:r}=t[n];r.reject?.(e)}})},a=()=>r.delete(t),u=()=>c().map(({args:e})=>e),c=()=>r.get(t)||[],l=e=>r.set(t,[...c(),e]);return{flush:a,async schedule(e){let t={},r=new Promise((e,n)=>{t.resolve=e,t.reject=n});return(n?.([...u(),e])&&o(),c().length>0)?l({args:e,pendingPromise:t}):(l({args:e,pendingPromise:t}),setTimeout(o,i)),r}}}},93156:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(92618);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((s,o)=>{let a=async({count:u=0}={})=>{let c=async({error:e})=>{let n="function"==typeof t?t({count:u,error:e}):t;n&&await (0,r.D)(n),a({count:u+1})};try{let t=await e();s(t)}catch(e){if(u<n&&await i({count:u,error:e}))return c({error:e});o(e)}};a()})}},79851:function(e,t,n){"use strict";n.d(t,{mF:function(){return c}});var r=n(47929),i=n(30582),s=n(80780),o=n(39585),a=n(79196);function u(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function c(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,o.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new s.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,c={};if(void 0!==o&&(c.code=o),void 0!==t&&(c.balance=(0,a.eC)(t)),void 0!==n&&(c.nonce=(0,a.eC)(n)),void 0!==r&&(c.state=u(r)),void 0!==i){if(c.state)throw new s.Z8;c.stateDiff=u(i)}return c}(i)}return t}},49130:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},10042:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(18550),i=n(59938),s=n(47929),o=n(98780),a=n(91580),u=n(39585);function c(e){let{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:l,to:d}=e,f=t?(0,r.T)(t):void 0;if(f&&!(0,u.U)(f.address))throw new s.b({address:f.address});if(d&&!(0,u.U)(d))throw new s.b({address:d});if(void 0!==n&&(void 0!==c||void 0!==l))throw new a.xY;if(c&&c>i.zL)throw new o.Hh({maxFeePerGas:c});if(l&&c&&l>c)throw new o.cs({maxFeePerGas:c,maxPriorityFeePerGas:l})}},74641:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(91580);function i(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 r.j3({transaction:e})}},57805:function(e,t,n){"use strict";n.d(t,{D:function(){return I},d:function(){return G}});var r=n(91580),i=n(75022),s=n(60768),o=n(42641),a=n(81342),u=n(67833),c=n(59418),l=n(79196),d=n(18871),f=n(58378),h=n(59938),p=n(47929),b=n(5421),m=n(52964),y=n(237),g=n(98780),v=n(39585),w=n(69314),x=n(82278),P=n(78902);function $(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new y.hJ({chainId:t});if(i&&!(0,v.U)(i))throw new p.b({address:i});if(r&&r>h.zL)throw new g.Hh({maxFeePerGas:r});if(n&&r&&n>r)throw new g.cs({maxFeePerGas:r,maxPriorityFeePerGas:n})}var C=n(74641);function E(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:i,storageKeys:s}=e[n];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new r.JC({storageKey:s[e]});if(!(0,v.U)(i,{strict:!1}))throw new p.b({address:i});t.push([i,s])}return t}function I(e,t){let n=(0,C.l)(e);return"eip1559"===n?function(e,t){let{chainId:n,gas:r,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:f,data:h}=e;$(e);let p=E(f),b=[(0,l.NC)(n),i?(0,l.NC)(i):"0x",c?(0,l.NC)(c):"0x",a?(0,l.NC)(a):"0x",r?(0,l.NC)(r):"0x",s??"0x",o?(0,l.NC)(o):"0x",h??"0x",p,...G(e,t)];return(0,u.SM)(["0x02",(0,d.LV)(b)])}(e,t):"eip2930"===n?function(e,t){let{chainId:n,gas:r,data:i,nonce:s,to:o,value:a,accessList:c,gasPrice:f}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(t<=0)throw new y.hJ({chainId:t});if(s&&!(0,v.U)(s))throw new p.b({address:s});if(n||i)throw new b.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>h.zL)throw new g.Hh({maxFeePerGas:r})}(e);let m=E(c),w=[(0,l.NC)(n),s?(0,l.NC)(s):"0x",f?(0,l.NC)(f):"0x",r?(0,l.NC)(r):"0x",o??"0x",a?(0,l.NC)(a):"0x",i??"0x",m,...G(e,t)];return(0,u.SM)(["0x01",(0,d.LV)(w)])}(e,t):"eip4844"===n?function(e,t){let{chainId:n,gas:r,nonce:c,to:h,value:p,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:g,accessList:v,data:C}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new m.RX;for(let e of t){let t=(0,w.d)(e),n=(0,P.ly)((0,x.tP)(e,0,1));if(32!==t)throw new m.xd({hash:e,size:t});if(n!==f.l)throw new m.cJ({hash:e,version:n})}}$(e)}(e);let I=e.blobVersionedHashes,O=e.sidecars;if(e.blobs&&(void 0===I||void 0===O)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,l.ci)(e)),n=e.kzg,r=(0,i.P)({blobs:t,kzg:n});if(void 0===I&&(I=(0,o.C)({commitments:r})),void 0===O){let e=(0,s.y)({blobs:t,commitments:r,kzg:n});O=(0,a.j)({blobs:t,commitments:r,proofs:e})}}let T=E(v),M=[(0,l.NC)(n),c?(0,l.NC)(c):"0x",g?(0,l.NC)(g):"0x",y?(0,l.NC)(y):"0x",r?(0,l.NC)(r):"0x",h??"0x",p?(0,l.NC)(p):"0x",C??"0x",T,b?(0,l.NC)(b):"0x",I??[],...G(e,t)],k=[],S=[],N=[];if(O)for(let e=0;e<O.length;e++){let{blob:t,commitment:n,proof:r}=O[e];k.push(t),S.push(n),N.push(r)}return(0,u.SM)(["0x03",O?(0,d.LV)([M,k,S,N]):(0,d.LV)(M)])}(e,t):"eip7702"===n?function(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:s,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:f,accessList:h,data:b}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:n}=e;if(!(0,v.U)(t))throw new p.b({address:t});if(n<=0)throw new y.hJ({chainId:n})}$(e)}(e);let m=E(h),g=function(e){if(!e||0===e.length)return[];let t=[];for(let n of e){let{contractAddress:e,chainId:r,nonce:i,...s}=n;t.push([(0,l.NC)(r),e,i?(0,l.NC)(i):"0x",...G({},s)])}return t}(n);return(0,u.SM)(["0x04",(0,d.LV)([(0,l.NC)(r),s?(0,l.NC)(s):"0x",f?(0,l.NC)(f):"0x",c?(0,l.NC)(c):"0x",i?(0,l.NC)(i):"0x",o??"0x",a?(0,l.NC)(a):"0x",b??"0x",m,g,...G(e,t)])])}(e,t):function(e,t){let{chainId:n=0,gas:i,data:s,nonce:o,to:a,value:u,gasPrice:f}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:s}=e;if(s&&!(0,v.U)(s))throw new p.b({address:s});if(void 0!==t&&t<=0)throw new y.hJ({chainId:t});if(n||i)throw new b.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>h.zL)throw new g.Hh({maxFeePerGas:r})}(e);let m=[o?(0,l.NC)(o):"0x",f?(0,l.NC)(f):"0x",i?(0,l.NC)(i):"0x",a??"0x",u?(0,l.NC)(u):"0x",s??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new r.vl({v:t.v});return e})(),i=(0,c.f)(t.r),s=(0,c.f)(t.s);m=[...m,(0,l.NC)(e),"0x00"===i?"0x":i,"0x00"===s?"0x":s]}else n>0&&(m=[...m,(0,l.NC)(n),"0x","0x"]);return(0,d.LV)(m)}(e,t)}function G(e,t){let n=t??e,{v:r,yParity:i}=n;if(void 0===n.r||void 0===n.s||void 0===r&&void 0===i)return[];let s=(0,c.f)(n.r),o=(0,c.f)(n.s);return["number"==typeof i?i?(0,l.NC)(1):"0x":0n===r?"0x":1n===r?(0,l.NC)(1):27n===r?"0x":(0,l.NC)(1),"0x00"===s?"0x":s,"0x00"===o?"0x":o]}},16051:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return s}});let i=256;function s(e=11){if(!r||i+e>512){r="",i=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(i,i+++e)}},33048:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var r=n(84897),i=n(18583);function s(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},92618:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},1405:function(e,t,n){"use strict";n.d(t,{V:function(){return a},F:function(){return u}});var r=n(89702);let i=!1;async function s(e,t={}){let n;if(i)return[];i=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let s={};for(let[,t]of e.state.connections)s[t.connector.id]=1;n&&(s[n]=0);let o=Object.keys(s).length>0?[...r].sort((e,t)=>(s[e.id]??10)-(s[t.id]??10)):r,a=!1,u=[],c=[];for(let t of o){let n=await t.getProvider().catch(()=>void 0);if(!n||c.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(a?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:a?e.current:t.uid,connections:n}}),u.push({accounts:r.accounts,chainId:r.chainId,connector:t}),c.push(n),a=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(a?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,u}function o(e){let{children:t,config:n,initialState:i,reconnectOnMount:o=!0}=e,{onMount:a}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){if(e._internal.ssr){await e._internal.store.persist.rehydrate();let t=e._internal.mipd?.getProviders().map(e._internal.connectors.providerDetailToConnector).map(e._internal.connectors.setup);e._internal.connectors.setState(e=>[...e,...t??[]])}r?s(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:i,reconnectOnMount:o});n._internal.ssr||a();let u=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(u.current&&n._internal.ssr)return a(),()=>{u.current=!1}},[]),t}let a=(0,r.createContext)(void 0);function u(e){let{children:t,config:n}=e;return(0,r.createElement)(o,e,(0,r.createElement)(a.Provider,{value:n},t))}},368:function(e,t,n){"use strict";function r(e){return e.state.chainId}n.d(t,{x:function(){return o}});var i=n(89702),s=n(97869);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},97869:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(89702),i=n(1405),s=n(56858);let o=()=>"wagmi@2.12.11";class a extends s.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return o()}}class u extends a{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null!==(e=t.config)&&void 0!==e?e:(0,r.useContext)(i.V);if(!n)throw new u;return n}},42473:function(e,t,n){"use strict";n.d(t,{aM:function(){return s}});var r=n(95951),i=n(33586);function s(e){let t=(0,r.a)({...e,queryKeyHashFn:i.kq});return t.queryKey=e.queryKey,t}}}]);
|