@latticexyz/explorer 2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d → 2.2.23-c4447b1f597a2abb03b6fdb52e79d3fbdd05a948

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.
Files changed (46) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +62 -62
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +5 -5
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +3 -3
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +4 -4
  22. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  24. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  27. package/.next/standalone/packages/explorer/.next/static/chunks/{07c470c4-e708d2efc0495323.js → 07c470c4-63661328d704c316.js} +1 -1
  28. package/.next/standalone/packages/explorer/.next/static/chunks/{203-7103dd74bcfa43f9.js → 203-146df75c824a4553.js} +1 -1
  29. package/.next/standalone/packages/explorer/.next/static/chunks/{3194-241deaab46a15a9c.js → 3194-87e342c836de3a1d.js} +1 -1
  30. package/.next/standalone/packages/explorer/.next/static/chunks/{3278-d5cbcf2ad7e609f6.js → 3278-89738a89c39a7ef2.js} +2 -2
  31. package/.next/standalone/packages/explorer/.next/static/chunks/3802-76a642e08401a8ad.js +1 -0
  32. package/.next/standalone/packages/explorer/.next/static/chunks/{4433-22ca486eff588b63.js → 4433-c5bf28c492dd050e.js} +1 -1
  33. package/.next/standalone/packages/explorer/.next/static/chunks/{8702-e424e97fd25c7efb.js → 8702-8d7c7e04b3be341f.js} +1 -1
  34. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-9c16ea4ab4902698.js +1 -0
  35. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-2085d52041a92f32.js +1 -0
  36. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-949e7149c3c65340.js +26 -0
  37. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-2188d07de98fb08a.js +21 -0
  38. package/.next/standalone/packages/explorer/.next/static/chunks/{webpack-b9596634489483b2.js → webpack-0a1a8d946004675b.js} +1 -1
  39. package/package.json +10 -10
  40. package/.next/standalone/packages/explorer/.next/static/chunks/3802-9f231690b786d313.js +0 -1
  41. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-1e744e17feea5bb2.js +0 -1
  42. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-7285b8b3f76be7ba.js +0 -1
  43. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-ae491df4e822b264.js +0 -26
  44. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-3b195c3484c590ad.js +0 -21
  45. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → B-F9ApRFFjOJ2PcRk4WGN}/_buildManifest.js +0 -0
  46. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → B-F9ApRFFjOJ2PcRk4WGN}/_ssgManifest.js +0 -0
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
- */var r=n(6466),a=n(75211),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useSyncExternalStore,s=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var b=i(e,(d=c(function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?(i=e,t):(i=e,s=n)}var i,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,a]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=b},[b]),l(b),b}},75211:function(e,t,n){e.exports=n(44500)},40980:function(e,t,n){e.exports=n(95572)},34260:function(e,t,n){n.d(t,{R:function(){return s},m:function(){return i}});var r=n(88079),a=n(88646),o=n(78979),i=class extends a.F{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let t="pending"===this.state.status,n=!this.#n.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:n}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#n.start();return await this.#t.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#t.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:"error",error:t})}}finally{this.#t.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},99141:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(6466),a=n(34260),o=n(88079),i=n(63745),s=n(72946),u=class extends i.l{#a;#o=void 0;#i;#s;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#a.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(e){this.#u(),this.#c(e)}getCurrentResult(){return this.#o}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#u(),this.#c()}mutate(e,t){return this.#s=t,this.#i?.removeObserver(this),this.#i=this.#a.getMutationCache().build(this.#a,this.options),this.#i.addObserver(this),this.#i.execute(e)}#u(){let e=this.#i?.state??(0,a.R)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#c(e){o.V.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#o.variables,n=this.#o.context;e?.type==="success"?(this.#s.onSuccess?.(e.data,t,n),this.#s.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#s.onError?.(e.error,t,n),this.#s.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#o)})})}},c=n(25704),l=n(99828);function d(e,t){let n=(0,c.NL)(t),[a]=r.useState(()=>new u(n,e));r.useEffect(()=>{a.setOptions(e)},[a,e]);let i=r.useSyncExternalStore(r.useCallback(e=>a.subscribe(o.V.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=r.useCallback((e,t)=>{a.mutate(e,t).catch(l.Z)},[a]);if(i.error&&(0,l.L)(a.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}},38870:function(e,t,n){n.d(t,{D:function(){return r}});function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,a=r?.[0],o=e.chains.find(e=>e.id===n?.chainId),i=e.state.status;switch(i){case"connected":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:i};case"reconnecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!!a,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:i};case"connecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:i};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:i}}}},43322:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(78243),a=n(67609),o=n(50394),i=n(53104),s=n(25602);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 s.$S({connector:r});let[a,o]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:a,chainId:o,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let u=t.chainId??n.chainId,c=await n.connector.getChainId();if(c!==n.chainId)throw new s.XZ({connectionChainId:n.chainId,connectorChainId:c});let l=n.connector;if(l.getClient)return l.getClient({chainId:u});let d=(0,o.T)(t.account??n.accounts[0]);if(d&&(d.address=(0,i.K)(d.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===u),b=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",methods:r,name:o="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,a.q)({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})})(b)({...e,retryCount:0})})}},64477:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(94867),a=n(44988),o=n(93971),i=n(25321),s=n(4722);async function u(e,t){let{chainId:n,timeout:u=0,...c}=t,l=e.getClient({chainId:n}),d=(0,s.s)(l,a.e,"waitForTransactionReceipt"),f=await d({...c,timeout:u});if("reverted"===f.status){let e=(0,s.s)(l,o.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(l,i.R,"call"),a=await n({...t,data:t.input,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(a?.data?(0,r.rR)(`0x${a.data.substring(138)}`):"unknown reason")}return{...f,chainId:l.chain.id}}},4579:function(e,t,n){n.d(t,{u:function(){return o}});var r=n(43351),a=n(38870);function o(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,a.D)(e),n,{equalityFn(e,t){let{connector:n,...a}=e,{connector:o,...i}=t;return(0,r.v)(a,i)&&n?.id===o?.id&&n?.uid===o?.uid}})}},25602:function(e,t,n){n.d(t,{$S:function(){return c},JK:function(){return s},X4:function(){return a},XZ:function(){return u},aH:function(){return i},wi:function(){return o}});var r=n(48983);class a extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class i extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s 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`, `uid`. 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"})}}},43351:function(e,t,n){n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,a;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let o=Object.keys(t);if((r=o.length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){let r=o[a];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},67888:function(e,t,n){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,a=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...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=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}},22872:function(e,t,n){n.d(t,{F:function(){return o},Hk:function(){return i},a_:function(){return a}});var r=n(67888);class a 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 o 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 i 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"})}}},70378:function(e,t,n){n.d(t,{TT:function(){return o},_D:function(){return s},aZ:function(){return u},jO:function(){return a},zL:function(){return i}});var r=n(67888);class a 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 i 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 s 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 u 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"})}}},26417:function(e,t,n){n.d(t,{H6:function(){return i},Vs:function(){return o},wn:function(){return a}});var r=n(67888);class a 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 o extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i 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"})}}},43135:function(e,t,n){n.d(t,{Dt:function(){return M},EC:function(){return w},N0:function(){return p},PI:function(){return g},QM:function(){return P},SA:function(){return i},Wg:function(){return $},_c:function(){return o},a4:function(){return y},c3:function(){return u},g1:function(){return h},l$:function(){return f},rh:function(){return d},wA:function(){return c}});var r=n(3100);let a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return a.test(e)}function i(e){return(0,r.Zw)(a,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return s.test(e)}function c(e){return(0,r.Zw)(s,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 b=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return b.test(e)}function h(e){return(0,r.Zw)(b,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(["indexed"]),M=new Set(["calldata","memory","storage"])},6838:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(3100),a=n(22872),o=n(70378),i=n(26417),s=n(67888);class u extends s.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(43135),l=n(45549);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 a=(0,c.g1)(n);if(!a)throw new i.wn({signature:n,type:"struct"});let o=a.properties.split(";"),s=[],u=o.length;for(let e=0;e<u;e++){let t=o[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new i.H6({signature:n});t[a.name]=s}let s={},d=Object.entries(t),b=d.length;for(let e=0;e<b;e++){let[n,i]=d[e];s[n]=function e(t,n,i=new Set){let s=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.cN.test(c.type))s.push(c);else{let t=(0,r.Zw)(f,c.type);if(!t?.type)throw new o.aZ({abiParameter:c});let{array:d,type:b}=t;if(b in n){if(i.has(b))throw new u({type:b});s.push({...c,type:`tuple${d??""}`,components:e(n[b]??[],n,new Set([...i,b]))})}else if((0,l.uN)(b))s.push(c);else throw new a.F({type:b})}}return s}(i,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},45549:function(e,t,n){n.d(t,{uN:function(){return y},C$:function(){return h},cK:function(){return d}});var r=n(3100),a=n(22872),o=n(70378),i=n(26417),s=n(67888);class u extends s.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(43135);function d(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new i.wn({signature:e,type:"function"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(h(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new i.wn({signature:e,type:"event"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new i.wn({signature:e,type:"error"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new i.wn({signature:e,type:"constructor"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new i.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$_]*))?$/,b=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function h(e,t){var n,i,s;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?b:f,e);if(!w)throw new o.jO({param:e});if(w.name&&("address"===(i=w.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||r.eL.test(i)||r.lh.test(i)||g.test(i)))throw new o.TT({param:e,name:w.name});let x=w.name?{name:w.name}:{},P="indexed"===w.modifier?{indexed:!0}:{},$=t?.structs??{},M={};if(v){u="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(h(e[r],{structs:$}));M={components:t}}else if(w.type in $)u="tuple",M={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 a.Hk({type:u});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new o.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(s=u,!w.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new o._D({param:e,type:t?.type,modifier:w.modifier})}let C={type:`${u}${w.array??""}`,...x,...P,...M};return c.set(d,C),C}function m(e,t=[],n="",r=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],i=e.slice(o+1);switch(a){case",":return 0===r?m(i,[...t,n.trim()]):m(i,t,`${n}${a}`,r);case"(":return m(i,t,`${n}${a}`,r+1);case")":return m(i,t,`${n}${a}`,r-1);default:return m(i,t,`${n}${a}`,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)$/},3100:function(e,t,n){function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return i},eL:function(){return a},lh:function(){return o}});let a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,i=/^\(.+?\).*?$/},61266:function(e,t,n){n.d(t,{V:function(){return i}});var r=n(40345),a=n(10682),o=n(63640);function i(e){let t=(0,a.D)(e),n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];(0,r.N0)(i)||n.push((0,o.cK)(i,t))}return n}},18367:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(9533);function a(e){return{address:e.address,amount:r.xS(e.amount),index:r.xS(e.index),validatorIndex:r.xS(e.validatorIndex)}}function o(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.xS(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.xS(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:r.xS(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.xS(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.xS(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.xS(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(a)}}}},16267:function(e,t,n){n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),a=t.cause instanceof r&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${a??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||a?["",n?`Details: ${n}`:void 0,a?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=a,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}},9533:function(e,t,n){n.d(t,{$s:function(){return $},Gu:function(){return y},J5:function(){return g},M6:function(){return x},O3:function(){return c},Q_:function(){return b},dp:function(){return m},eh:function(){return p},mL:function(){return f},mV:function(){return P},tP:function(){return h},xS:function(){return d},xv:function(){return l},zo:function(){return u}});var r=n(16267),a=n(123),o=n(92758);let i=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(o.Yf(n,t.size),b(n,t.size)):n}function l(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(o.Yf(r,t.size),p(r,t.size)):r}function d(e,t={}){let n;let{signed:r,size:a}=t,o=BigInt(e);a?n=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let i="bigint"==typeof n&&r?-n-1n:0;if(n&&o>n||o<i){let t="bigint"==typeof e?"n":"";throw new g({max:n?`${n}${t}`:void 0,min:`${i}${t}`,signed:r,size:a,value:`${e}${t}`})}let s=(r&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16),u=`0x${s}`;return a?b(u,a):u}function f(e,t={}){return l(i.encode(e),t)}function b(e,t){return o.vk(e,{dir:"left",size:t})}function p(e,t){return o.vk(e,{dir:"right",size:t})}function h(e,t,n,r={}){let{strict:a}=r;o.EM(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&o.Ro(i,t,n),i}function m(e){return Math.ceil((e.length-2)/2)}function y(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new v(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new w(e)}(e,{strict:n}),!0}catch{return!1}}class g extends r.G{constructor({max:e,min:t,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class v extends r.G{constructor(e){super(`Value \`${"object"==typeof e?a.P(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class w extends r.G{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class x extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class P extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class $ extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},123:function(e,t,n){n.d(t,{P:function(){return r}});function r(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}},92758:function(e,t,n){n.d(t,{EM:function(){return o},Ro:function(){return i},Yf:function(){return a},vk:function(){return s}});var r=n(9533);function a(e,t){if(r.dp(e)>t)throw new r.M6({givenSize:r.dp(e),maxSize:t})}function o(e,t){if("number"==typeof t&&t>0&&t>r.dp(e)-1)throw new r.mV({offset:t,position:"start",size:r.dp(e)})}function i(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.dp(e)!==n-t)throw new r.mV({offset:n,position:"end",size:r.dp(e)})}function s(e,t={}){let{dir:n,size:a=32}=t;if(0===a)return e;let o=e.replace("0x","");if(o.length>2*a)throw new r.$s({size:Math.ceil(o.length/2),targetSize:a,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*a,"0")}`}},50394:function(e,t,n){n.d(t,{T:function(){return r}});function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},70009:function(e,t,n){n.d(t,{y:function(){return o}});var r=n(53104),a=n(24443);function o(e){let t=(0,a.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},25321:function(e,t,n){n.d(t,{R:function(){return P}});var r=n(61266),a=n(18367),o=n(50394),i=n(28931),s=n(5405),u=n(99997),c=n(44275),l=n(65606),d=n(93965),f=n(17226),b=n(86498),p=n(6442),h=n(26980),m=n(44570),y=n(11625),g=n(49578),v=n(66516),w=n(50961),x=n(62556);async function P(e,t){let{account:i=e.account,authorizationList:d,batch:b=!!e.batch?.multicall,blockNumber:p,blockTag:v="latest",accessList:P,blobs:M,blockOverrides:C,code:O,data:E,factory:j,factoryData:G,gas:S,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:I,maxPriorityFeePerGas:F,nonce:A,to:N,value:T,stateOverride:B,...D}=t,_=i?(0,o.T)(i):void 0;if(O&&(j||G))throw new u.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(O&&N)throw new u.G("Cannot provide both `code` & `to` as parameters.");let z=O&&E,q=j&&G&&N&&E,L=z||q,Z=z?function(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:s.NO,args:[t,n]})}({code:O,data:E}):q?function(e){let{data:t,factory:n,factoryData:a,to:o}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:s.pG,args:[o,t,n,a]})}({data:E,factory:j,factoryData:G,to:N}):E;try{(0,x.F)(t);let n=("bigint"==typeof p?(0,h.eC)(p):void 0)||v,r=C?a.o(C):void 0,o=(0,w.mF)(B),i=e.chain?.formatters?.transactionRequest?.format,s=(i||g.tG)({...(0,y.K)(D,{format:i}),from:_?.address,accessList:P,authorizationList:d,blobs:M,data:Z,gas:S,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:I,maxPriorityFeePerGas:F,nonce:A,to:L?void 0:N,value:T});if(b&&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:s})&&!o&&!r)try{return await $(e,{...s,blockNumber:p,blockTag:v})}catch(e){if(!(e instanceof c.pZ)&&!(e instanceof c.mm))throw e}let u=(()=>{let e=[s,n];return o&&r?[...e,o,r]:o?[...e,o]:r?[...e,{},r]:e})(),l=await e.request({method:"eth_call",params:u});if("0x"===l)return{data:void 0};return{data:l}}catch(i){let r=function(e){if(!(e instanceof u.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:a,offchainLookupSignature:o}=await n.e(9856).then(n.bind(n,99856));if(!1!==e.ccipRead&&r?.slice(0,10)===o&&N)return{data:await a(e,{data:r,to:N})};if(L&&r?.slice(0,10)==="0x101bb98d")throw new l.Mo({factory:j});throw(0,m.P)(i,{...t,account:_,chain:e.chain})}}async function $(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:o="latest",data:s,multicallAddress:u,to:f}=t,m=u;if(!m){if(!e.chain)throw new c.pZ;m=(0,p.L)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let y=("bigint"==typeof a?(0,h.eC)(a):void 0)||o,{schedule:g}=(0,v.S)({id:`${e.uid}.${y}`,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:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:m},y]});return(0,d.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:w,success:x}]=await g({data:s,to:f});if(!x)throw new l.VQ({data:w});return"0x"===w?{data:void 0}:{data:w}}},80878:function(e,t,n){n.d(t,{C:function(){return c},X:function(){return u}});var r=n(96735),a=n(80323),o=n(28821),i=n(1347),s=n(50230);async function u(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:u=e.chain,request:c,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:n,client:e,request:c}):u?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),b=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=n||await (0,a.s)(e,i.Q,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas){let t=await u.fees.estimateFeesPerGas({block:n,client:e,multiply:b,request:c,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new r.e5;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:u,request:c}),n=b(p.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??b(await (0,a.s)(e,s.o,"getGasPrice")({}))}}},26237:function(e,t,n){n.d(t,{Q:function(){return v}});var r=n(50394),a=n(99997),o=n(41755),i=n(26980),s=n(73500),u=n(50024),c=n(12887);class l extends a.G{constructor(e,{account:t,docsPath:n,chain:r,data:a,gas:o,gasPrice:i,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:b,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,c.xr)({from:t?.address,to:b,value:void 0!==p&&`${(0,s.d)(p)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==i&&`${(0,u.o)(i)} gwei`,maxFeePerGas:void 0!==l&&`${(0,u.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,u.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(45747),f=n(72401),b=n(11625),p=n(49578),h=n(50961),m=n(62556),y=n(15044),g=n(65066);async function v(e,t){let{account:n=e.account}=t,s=n?(0,r.T)(n):void 0;try{let{accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:l,blockNumber:d,blockTag:f,data:v,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:$,maxPriorityFeePerGas:M,nonce:C,value:O,stateOverride:E,...j}=await (0,y.ZE)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),G=("bigint"==typeof d?(0,i.eC)(d):void 0)||f,S=(0,h.mF)(E),R=await (async()=>j.to?j.to:r&&r.length>0?await (0,o.z)({authorization:r[0]}).catch(()=>{throw new a.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,m.F)(t);let k=e.chain?.formatters?.transactionRequest?.format,I=(k||p.tG)({...(0,b.K)(j,{format:k}),from:s?.address,accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:l,data:v,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:$,maxPriorityFeePerGas:M,nonce:C,to:R,value:O});function u(t){let{block:n,request:r,rpcStateOverride:a}=t;return e.request({method:"eth_estimateGas",params:a?[r,n??"latest",a]:n?[r,n]:[r]})}let F=BigInt(await u({block:G,request:I,rpcStateOverride:S}));if(r){let t=await (0,g.s)(e,{address:I.from}),n=await Promise.all(r.map(async e=>{let{address:n}=e,r=await u({block:G,request:{authorizationList:void 0,data:v,from:s?.address,to:n,value:(0,i.eC)(t)},rpcStateOverride:S}).catch(()=>100000n);return 2n*BigInt(r)}));F+=n.reduce((e,t)=>e+t,0n)}return F}catch(n){throw function(e,{docsPath:t,...n}){return new l((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},28821:function(e,t,n){n.d(t,{_:function(){return u},h:function(){return c}});var r=n(96735),a=n(94867),o=n(80323),i=n(1347),s=n(50230);async function u(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:u=e.chain,request:c}=t||{};try{let t=u?.fees?.maxPriorityFeePerGas??u?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,o.s)(e,i.Q,"getBlock")({}),a=await t({block:r,client:e,request:c});if(null===a)throw Error();return a}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,a.y_)(r)}catch{let[t,a]=await Promise.all([n?Promise.resolve(n):(0,o.s)(e,i.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let u=a-t.baseFeePerGas;if(u<0n)return 0n;return u}}},65066:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(26980);async function a(e,{address:t,blockNumber:n,blockTag:a="latest"}){let o="bigint"==typeof n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||a]}))}},1347:function(e,t,n){n.d(t,{Q:function(){return i}});var r=n(44712),a=n(26980),o=n(6896);async function i(e,{blockHash:t,blockNumber:n,blockTag:i,includeTransactions:s}={}){let u=s??!1,c=void 0!==n?(0,a.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||(i??"latest"),u]},{dedupe:!!c})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||o.Z)(l)}},97245:function(e,t,n){n.d(t,{L:function(){return a}});var r=n(94867);async function a(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},50230:function(e,t,n){n.d(t,{o:function(){return r}});async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}},89500:function(e,t,n){n.d(t,{K:function(){return o}});var r=n(94867),a=n(26980);async function o(e,{address:t,blockTag:n="latest",blockNumber:o}){let i=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,a.eC)(o):n]},{dedupe:!!o});return(0,r.ly)(i)}},87682:function(e,t,n){n.d(t,{a:function(){return o}});var r=n(12887),a=n(48275);async function o(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||a.fA)(n)}},44988:function(e,t,n){n.d(t,{e:function(){return p}});var r=n(44712),a=n(12887),o=n(80323),i=n(31933),s=n(89395),u=n(27067),c=n(91524),l=n(1347),d=n(93971),f=n(87682),b=n(48433);async function p(e,{confirmations:t=1,hash:n,onReplaced:p,pollingInterval:h=e.pollingInterval,retryCount:m=6,retryDelay:y=({count:e})=>200*~~(1<<e),timeout:g=18e4}){let v,w,x,P,$;let M=(0,c.P)(["waitForTransactionReceipt",e.uid,n]),C=!1,{promise:O,resolve:E,reject:j}=(0,s.n)(),G=g?setTimeout(()=>{$(),P(),j(new a.mc({hash:n}))},g):void 0;return P=(0,i.N7)(M,{onReplaced:p,resolve:E,reject:j},i=>{$=(0,o.s)(e,b.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(s){let c=e=>{clearTimeout(G),$(),e(),P()},b=s;if(!C)try{if(x){if(t>1&&(!x.blockNumber||b-x.blockNumber+1n<t))return;c(()=>i.resolve(x));return}if(v||(C=!0,await (0,u.J)(async()=>{(v=await (0,o.s)(e,d.f,"getTransaction")({hash:n})).blockNumber&&(b=v.blockNumber)},{delay:y,retryCount:m}),C=!1),x=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:n}),t>1&&(!x.blockNumber||b-x.blockNumber+1n<t))return;c(()=>i.resolve(x))}catch(n){if(n instanceof a.Bh||n instanceof a.Yb){if(!v){C=!1;return}try{w=v,C=!0;let n=await (0,u.J)(()=>(0,o.s)(e,l.Q,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:y,retryCount:m,shouldRetry:({error:e})=>e instanceof r.f});C=!1;let a=n.transactions.find(({from:e,nonce:t})=>e===w.from&&t===w.nonce);if(!a||(x=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:a.hash}),t>1&&(!x.blockNumber||b-x.blockNumber+1n<t)))return;let s="replaced";a.to===w.to&&a.value===w.value&&a.input===w.input?s="repriced":a.from===a.to&&0n===a.value&&(s="cancelled"),c(()=>{i.onReplaced?.({reason:s,replacedTransaction:w,transaction:a,transactionReceipt:x}),i.resolve(x)})}catch(e){c(()=>i.reject(e))}}else c(()=>i.reject(n))}}})}),O}},48433:function(e,t,n){n.d(t,{q:function(){return c}});var r=n(94867),a=n(80323),o=n(31933),i=n(46456),s=n(91524),u=n(58947);function c(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:c,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let b;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,o.N7)(r,{onBlockNumber:c,onError:l},r=>(0,i.$)(async()=>{try{let t=await (0,a.s)(e,u.z,"getBlockNumber")({cacheTime:0});if(b){if(t===b)return;if(t-b>1&&n)for(let e=b+1n;e<t;e++)r.onBlockNumber(e,b),b=e}(!b||t>b)&&(r.onBlockNumber(t,b),b=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let a=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,o.N7)(a,{onBlockNumber:c,onError:l},t=>{let n=!0,a=()=>n=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await o.subscribe({params:["newHeads"],onData(e){if(!n)return;let a=(0,r.y_)(e.result?.number);t.onBlockNumber(a,b),b=a},onError(e){t.onError?.(e)}});a=i,n||a()}catch(e){l?.(e)}})(),()=>a()})})()}},15044:function(e,t,n){n.d(t,{QZ:function(){return y},ZE:function(){return v}});var r=n(50394),a=n(80878),o=n(26237),i=n(1347),s=n(89500),u=n(96735),c=n(63829),l=n(13260),d=n(34115),f=n(25268),b=n(80323),p=n(62556),h=n(81614),m=n(97245);let y=["blobVersionedHashes","chainId","fees","gas","nonce","type"],g=new Map;async function v(e,t){let n,v;let{account:w=e.account,blobs:x,chain:P,gas:$,kzg:M,nonce:C,nonceManager:O,parameters:E=y,type:j}=t,G=w?(0,r.T)(w):w,S={...t,...G?{from:G?.address}:{}};async function R(){return n||(n=await (0,b.s)(e,i.Q,"getBlock")({blockTag:"latest"}))}async function k(){return v||(P?P.id:void 0!==t.chainId?t.chainId:v=await (0,b.s)(e,m.L,"getChainId")({}))}if(E.includes("nonce")&&void 0===C&&G){if(O){let t=await k();S.nonce=await O.consume({address:G.address,chainId:t,client:e})}else S.nonce=await (0,b.s)(e,s.K,"getTransactionCount")({address:G.address,blockTag:"pending"})}if((E.includes("blobVersionedHashes")||E.includes("sidecars"))&&x&&M){let e=(0,c.P)({blobs:x,kzg:M});if(E.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});S.blobVersionedHashes=t}if(E.includes("sidecars")){let t=(0,l.y)({blobs:x,commitments:e,kzg:M}),n=(0,f.j)({blobs:x,commitments:e,proofs:t,to:"hex"});S.sidecars=n}}if(E.includes("chainId")&&(S.chainId=await k()),(E.includes("fees")||E.includes("type"))&&void 0===j)try{S.type=(0,h.l)(S)}catch{let t=g.get(e.uid);if(void 0===t){let n=await R();t="bigint"==typeof n?.baseFeePerGas,g.set(e.uid,t)}S.type=t?"eip1559":"legacy"}if(E.includes("fees")){if("legacy"!==S.type&&"eip2930"!==S.type){if(void 0===S.maxFeePerGas||void 0===S.maxPriorityFeePerGas){let n=await R(),{maxFeePerGas:r,maxPriorityFeePerGas:o}=await (0,a.C)(e,{block:n,chain:P,request:S});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new u.ld({maxPriorityFeePerGas:o});S.maxPriorityFeePerGas=o,S.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new u.e5;if(void 0===t.gasPrice){let t=await R(),{gasPrice:n}=await (0,a.C)(e,{block:t,chain:P,request:S,type:"legacy"});S.gasPrice=n}}}return E.includes("gas")&&void 0===$&&(S.gas=await (0,b.s)(e,o.Q,"estimateGas")({...S,account:G?{address:G.address,type:"json-rpc"}:G})),(0,p.F)(S),delete S.parameters,S}},72090:function(e,t,n){n.d(t,{p:function(){return r}});async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}},78243:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(50394),a=n(67129);function o(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:o,key:i="base",name:s="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:b,value:p}=e.transport({chain:l,pollingInterval:u}),h={account:d,batch:t,cacheTime:n,ccipRead:o,chain:l,key:i,name:s,pollingInterval:u,request:b,transport:{...f,...p},type:c,uid:(0,a.h)()};return Object.assign(h,{extend:function e(t){return n=>{let r=n(t);for(let e in h)delete r[e];let a={...t,...r};return Object.assign(a,{extend:e(a)})}}(h)})}},67609:function(e,t,n){n.d(t,{q:function(){return d}});var r=n(99997),a=n(15800),o=n(95366),i=n(26980);let s=new(n(63655)).k(8192);var u=n(27067),c=n(91524),l=n(67129);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:b=150,timeout:p,type:h},m){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:b,timeout:p,type:h},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:b=150,retryCount:p=3,uid:h}={...t,...l},{method:m}=n;if(f?.exclude?.includes(m)||f?.include&&!f.include.includes(m))throw new o.gS(Error("method not supported"),{method:m});let y=d?(0,i.$G)(`${h}.${(0,c.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,u.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e,{method:n.method});case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e,{method:n.method});case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case o.vl.code:throw new o.vl(e);case o.Uu.code:throw new o.Uu(e);case o.Nt.code:throw new o.Nt(e);case o.EJ.code:throw new o.EJ(e);case o.fl.code:throw new o.fl(e);case o.NO.code:throw new o.NO(e);case o.r0.code:throw new o.r0(e);case 5e3:throw new o.ab(e);default:if(e instanceof r.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof a.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*b},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.code:!(e instanceof a.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:d,id:y})}}(d,{methods:t,retryCount:f,retryDelay:b,uid:(0,l.h)()}),value:m}}},28931:function(e,t,n){n.d(t,{$o:function(){return l},F8:function(){return r},X$:function(){return c},Yi:function(){return a},du:function(){return s},k3:function(){return i},nZ:function(){return u}});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"}],a=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{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"}],i=[...o,{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"}]}],s=[...o,{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"}]}],u=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],l=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},5405:function(e,t,n){n.d(t,{NO:function(){return r},ST:function(){return o},pG:function(){return a}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",a="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},94900:function(e,t,n){n.d(t,{Y:function(){return o},o:function(){return a}});var r=n(99997);class a extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends r.G{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},44712:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(99997);class a 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"})}}},65606:function(e,t,n){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(50394),a=n(93141),o=n(1660),i=n(78314),s=n(91524);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,s.P)(t[n]):t[n]}`).join(", ")})`}var c=n(5231),l=n(73500),d=n(50024),f=n(84771),b=n(99997),p=n(13878),h=n(12887),m=n(74130);class y extends b.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:i,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:b,value:m,stateOverride:y}){let g=t?(0,r.T)(t):void 0,v=(0,h.xr)({from:g?.address,to:b,value:void 0!==m&&`${(0,l.d)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});y&&(v+=`
22
+ */var r=n(6466),a=n(75211),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useSyncExternalStore,s=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var b=i(e,(d=c(function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?(i=e,t):(i=e,s=n)}var i,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,a]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=b},[b]),l(b),b}},75211:function(e,t,n){e.exports=n(44500)},40980:function(e,t,n){e.exports=n(95572)},34260:function(e,t,n){n.d(t,{R:function(){return s},m:function(){return i}});var r=n(88079),a=n(88646),o=n(78979),i=class extends a.F{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let t="pending"===this.state.status,n=!this.#n.canStart();try{if(!t){this.#r({type:"pending",variables:e,isPaused:n}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#n.start();return await this.#t.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#t.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#r({type:"success",data:r}),r}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:"error",error:t})}}finally{this.#t.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},99141:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(6466),a=n(34260),o=n(88079),i=n(63745),s=n(72946),u=class extends i.l{#a;#o=void 0;#i;#s;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#a.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(e){this.#u(),this.#c(e)}getCurrentResult(){return this.#o}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#u(),this.#c()}mutate(e,t){return this.#s=t,this.#i?.removeObserver(this),this.#i=this.#a.getMutationCache().build(this.#a,this.options),this.#i.addObserver(this),this.#i.execute(e)}#u(){let e=this.#i?.state??(0,a.R)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#c(e){o.V.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#o.variables,n=this.#o.context;e?.type==="success"?(this.#s.onSuccess?.(e.data,t,n),this.#s.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#s.onError?.(e.error,t,n),this.#s.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#o)})})}},c=n(25704),l=n(99828);function d(e,t){let n=(0,c.NL)(t),[a]=r.useState(()=>new u(n,e));r.useEffect(()=>{a.setOptions(e)},[a,e]);let i=r.useSyncExternalStore(r.useCallback(e=>a.subscribe(o.V.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=r.useCallback((e,t)=>{a.mutate(e,t).catch(l.Z)},[a]);if(i.error&&(0,l.L)(a.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}},38870:function(e,t,n){n.d(t,{D:function(){return r}});function r(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,a=r?.[0],o=e.chains.find(e=>e.id===n?.chainId),i=e.state.status;switch(i){case"connected":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:i};case"reconnecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!!a,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:i};case"connecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:i};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:i}}}},43322:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(78243),a=n(67609),o=n(50394),i=n(53104),s=n(25602);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 s.$S({connector:r});let[a,o]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:a,chainId:o,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let u=t.chainId??n.chainId,c=await n.connector.getChainId();if(c!==n.chainId)throw new s.XZ({connectionChainId:n.chainId,connectorChainId:c});let l=n.connector;if(l.getClient)return l.getClient({chainId:u});let d=(0,o.T)(t.account??n.accounts[0]);if(d&&(d.address=(0,i.K)(d.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===u),b=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",methods:r,name:o="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,a.q)({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})})(b)({...e,retryCount:0})})}},64477:function(e,t,n){n.d(t,{e:function(){return u}});var r=n(94867),a=n(44988),o=n(93971),i=n(25321),s=n(4722);async function u(e,t){let{chainId:n,timeout:u=0,...c}=t,l=e.getClient({chainId:n}),d=(0,s.s)(l,a.e,"waitForTransactionReceipt"),f=await d({...c,timeout:u});if("reverted"===f.status){let e=(0,s.s)(l,o.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(l,i.R,"call"),a=await n({...t,data:t.input,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(a?.data?(0,r.rR)(`0x${a.data.substring(138)}`):"unknown reason")}return{...f,chainId:l.chain.id}}},4579:function(e,t,n){n.d(t,{u:function(){return o}});var r=n(43351),a=n(38870);function o(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,a.D)(e),n,{equalityFn(e,t){let{connector:n,...a}=e,{connector:o,...i}=t;return(0,r.v)(a,i)&&n?.id===o?.id&&n?.uid===o?.uid}})}},25602:function(e,t,n){n.d(t,{$S:function(){return c},JK:function(){return s},X4:function(){return a},XZ:function(){return u},aH:function(){return i},wi:function(){return o}});var r=n(48983);class a extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class i extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s 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`, `uid`. 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"})}}},43351:function(e,t,n){n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,a;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let o=Object.keys(t);if((r=o.length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){let r=o[a];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},67888:function(e,t,n){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,a=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...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=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}},22872:function(e,t,n){n.d(t,{F:function(){return o},Hk:function(){return i},a_:function(){return a}});var r=n(67888);class a 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 o 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 i 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"})}}},70378:function(e,t,n){n.d(t,{TT:function(){return o},_D:function(){return s},aZ:function(){return u},jO:function(){return a},zL:function(){return i}});var r=n(67888);class a 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 i 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 s 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 u 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"})}}},26417:function(e,t,n){n.d(t,{H6:function(){return i},Vs:function(){return o},wn:function(){return a}});var r=n(67888);class a 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 o extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i 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"})}}},43135:function(e,t,n){n.d(t,{Dt:function(){return M},EC:function(){return w},N0:function(){return p},PI:function(){return g},QM:function(){return P},SA:function(){return i},Wg:function(){return $},_c:function(){return o},a4:function(){return y},c3:function(){return u},g1:function(){return h},l$:function(){return f},rh:function(){return d},wA:function(){return c}});var r=n(3100);let a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return a.test(e)}function i(e){return(0,r.Zw)(a,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return s.test(e)}function c(e){return(0,r.Zw)(s,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 b=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return b.test(e)}function h(e){return(0,r.Zw)(b,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(["indexed"]),M=new Set(["calldata","memory","storage"])},6838:function(e,t,n){n.d(t,{D:function(){return d}});var r=n(3100),a=n(22872),o=n(70378),i=n(26417),s=n(67888);class u extends s.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(43135),l=n(45549);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 a=(0,c.g1)(n);if(!a)throw new i.wn({signature:n,type:"struct"});let o=a.properties.split(";"),s=[],u=o.length;for(let e=0;e<u;e++){let t=o[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new i.H6({signature:n});t[a.name]=s}let s={},d=Object.entries(t),b=d.length;for(let e=0;e<b;e++){let[n,i]=d[e];s[n]=function e(t,n,i=new Set){let s=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.cN.test(c.type))s.push(c);else{let t=(0,r.Zw)(f,c.type);if(!t?.type)throw new o.aZ({abiParameter:c});let{array:d,type:b}=t;if(b in n){if(i.has(b))throw new u({type:b});s.push({...c,type:`tuple${d??""}`,components:e(n[b]??[],n,new Set([...i,b]))})}else if((0,l.uN)(b))s.push(c);else throw new a.F({type:b})}}return s}(i,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},45549:function(e,t,n){n.d(t,{uN:function(){return y},C$:function(){return h},cK:function(){return d}});var r=n(3100),a=n(22872),o=n(70378),i=n(26417),s=n(67888);class u extends s.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(43135);function d(e,t={}){if((0,l.rh)(e)){let n=(0,l.l$)(e);if(!n)throw new i.wn({signature:e,type:"function"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(h(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}if((0,l.c3)(e)){let n=(0,l.wA)(e);if(!n)throw new i.wn({signature:e,type:"event"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}if((0,l._c)(e)){let n=(0,l.SA)(e);if(!n)throw new i.wn({signature:e,type:"error"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}if((0,l.a4)(e)){let n=(0,l.PI)(e);if(!n)throw new i.wn({signature:e,type:"constructor"});let r=m(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(h(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}if((0,l.EC)(e))return{type:"fallback"};if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new i.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$_]*))?$/,b=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function h(e,t){var n,i,s;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?b:f,e);if(!w)throw new o.jO({param:e});if(w.name&&("address"===(i=w.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||r.eL.test(i)||r.lh.test(i)||g.test(i)))throw new o.TT({param:e,name:w.name});let x=w.name?{name:w.name}:{},P="indexed"===w.modifier?{indexed:!0}:{},$=t?.structs??{},M={};if(v){u="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(h(e[r],{structs:$}));M={components:t}}else if(w.type in $)u="tuple",M={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 a.Hk({type:u});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new o.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(s=u,!w.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new o._D({param:e,type:t?.type,modifier:w.modifier})}let C={type:`${u}${w.array??""}`,...x,...P,...M};return c.set(d,C),C}function m(e,t=[],n="",r=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],i=e.slice(o+1);switch(a){case",":return 0===r?m(i,[...t,n.trim()]):m(i,t,`${n}${a}`,r);case"(":return m(i,t,`${n}${a}`,r+1);case")":return m(i,t,`${n}${a}`,r-1);default:return m(i,t,`${n}${a}`,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)$/},3100:function(e,t,n){function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return i},eL:function(){return a},lh:function(){return o}});let a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,i=/^\(.+?\).*?$/},61266:function(e,t,n){n.d(t,{V:function(){return i}});var r=n(40345),a=n(10682),o=n(63640);function i(e){let t=(0,a.D)(e),n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];(0,r.N0)(i)||n.push((0,o.cK)(i,t))}return n}},18367:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(9533);function a(e){return{address:e.address,amount:r.xS(e.amount),index:r.xS(e.index),validatorIndex:r.xS(e.validatorIndex)}}function o(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.xS(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.xS(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:r.xS(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.xS(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.xS(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.xS(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(a)}}}},16267:function(e,t,n){n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),a=t.cause instanceof r&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${a??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||a?["",n?`Details: ${n}`:void 0,a?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=a,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}},9533:function(e,t,n){n.d(t,{$s:function(){return $},Gu:function(){return y},J5:function(){return g},M6:function(){return x},O3:function(){return c},Q_:function(){return b},dp:function(){return m},eh:function(){return p},mL:function(){return f},mV:function(){return P},tP:function(){return h},xS:function(){return d},xv:function(){return l},zo:function(){return u}});var r=n(16267),a=n(123),o=n(92758);let i=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(o.Yf(n,t.size),b(n,t.size)):n}function l(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(o.Yf(r,t.size),p(r,t.size)):r}function d(e,t={}){let n;let{signed:r,size:a}=t,o=BigInt(e);a?n=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let i="bigint"==typeof n&&r?-n-1n:0;if(n&&o>n||o<i){let t="bigint"==typeof e?"n":"";throw new g({max:n?`${n}${t}`:void 0,min:`${i}${t}`,signed:r,size:a,value:`${e}${t}`})}let s=(r&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16),u=`0x${s}`;return a?b(u,a):u}function f(e,t={}){return l(i.encode(e),t)}function b(e,t){return o.vk(e,{dir:"left",size:t})}function p(e,t){return o.vk(e,{dir:"right",size:t})}function h(e,t,n,r={}){let{strict:a}=r;o.EM(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&o.Ro(i,t,n),i}function m(e){return Math.ceil((e.length-2)/2)}function y(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new v(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new w(e)}(e,{strict:n}),!0}catch{return!1}}class g extends r.G{constructor({max:e,min:t,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class v extends r.G{constructor(e){super(`Value \`${"object"==typeof e?a.P(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class w extends r.G{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class x extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class P extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class $ extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},123:function(e,t,n){n.d(t,{P:function(){return r}});function r(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}},92758:function(e,t,n){n.d(t,{EM:function(){return o},Ro:function(){return i},Yf:function(){return a},vk:function(){return s}});var r=n(9533);function a(e,t){if(r.dp(e)>t)throw new r.M6({givenSize:r.dp(e),maxSize:t})}function o(e,t){if("number"==typeof t&&t>0&&t>r.dp(e)-1)throw new r.mV({offset:t,position:"start",size:r.dp(e)})}function i(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.dp(e)!==n-t)throw new r.mV({offset:n,position:"end",size:r.dp(e)})}function s(e,t={}){let{dir:n,size:a=32}=t;if(0===a)return e;let o=e.replace("0x","");if(o.length>2*a)throw new r.$s({size:Math.ceil(o.length/2),targetSize:a,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*a,"0")}`}},50394:function(e,t,n){n.d(t,{T:function(){return r}});function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},70009:function(e,t,n){n.d(t,{y:function(){return o}});var r=n(53104),a=n(24443);function o(e){let t=(0,a.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},25321:function(e,t,n){n.d(t,{R:function(){return P}});var r=n(61266),a=n(18367),o=n(50394),i=n(28931),s=n(5405),u=n(99997),c=n(44275),l=n(65606),d=n(93965),f=n(17226),b=n(86498),p=n(6442),h=n(26980),m=n(44570),y=n(11625),g=n(49578),v=n(66516),w=n(50961),x=n(62556);async function P(e,t){let{account:i=e.account,authorizationList:d,batch:b=!!e.batch?.multicall,blockNumber:p,blockTag:v="latest",accessList:P,blobs:M,blockOverrides:C,code:O,data:E,factory:j,factoryData:G,gas:S,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:I,maxPriorityFeePerGas:F,nonce:A,to:N,value:T,stateOverride:B,...D}=t,_=i?(0,o.T)(i):void 0;if(O&&(j||G))throw new u.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(O&&N)throw new u.G("Cannot provide both `code` & `to` as parameters.");let z=O&&E,q=j&&G&&N&&E,L=z||q,Z=z?function(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:s.NO,args:[t,n]})}({code:O,data:E}):q?function(e){let{data:t,factory:n,factoryData:a,to:o}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:s.pG,args:[o,t,n,a]})}({data:E,factory:j,factoryData:G,to:N}):E;try{(0,x.F)(t);let n=("bigint"==typeof p?(0,h.eC)(p):void 0)||v,r=C?a.o(C):void 0,o=(0,w.mF)(B),i=e.chain?.formatters?.transactionRequest?.format,s=(i||g.tG)({...(0,y.K)(D,{format:i}),from:_?.address,accessList:P,authorizationList:d,blobs:M,data:Z,gas:S,gasPrice:R,maxFeePerBlobGas:k,maxFeePerGas:I,maxPriorityFeePerGas:F,nonce:A,to:L?void 0:N,value:T});if(b&&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:s})&&!o&&!r)try{return await $(e,{...s,blockNumber:p,blockTag:v})}catch(e){if(!(e instanceof c.pZ)&&!(e instanceof c.mm))throw e}let u=(()=>{let e=[s,n];return o&&r?[...e,o,r]:o?[...e,o]:r?[...e,{},r]:e})(),l=await e.request({method:"eth_call",params:u});if("0x"===l)return{data:void 0};return{data:l}}catch(i){let r=function(e){if(!(e instanceof u.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:a,offchainLookupSignature:o}=await n.e(9856).then(n.bind(n,99856));if(!1!==e.ccipRead&&r?.slice(0,10)===o&&N)return{data:await a(e,{data:r,to:N})};if(L&&r?.slice(0,10)==="0x101bb98d")throw new l.Mo({factory:j});throw(0,m.P)(i,{...t,account:_,chain:e.chain})}}async function $(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:o="latest",data:s,multicallAddress:u,to:f}=t,m=u;if(!m){if(!e.chain)throw new c.pZ;m=(0,p.L)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let y=("bigint"==typeof a?(0,h.eC)(a):void 0)||o,{schedule:g}=(0,v.S)({id:`${e.uid}.${y}`,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:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:m},y]});return(0,d.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:w,success:x}]=await g({data:s,to:f});if(!x)throw new l.VQ({data:w});return"0x"===w?{data:void 0}:{data:w}}},80878:function(e,t,n){n.d(t,{C:function(){return c},X:function(){return u}});var r=n(96735),a=n(80323),o=n(28821),i=n(1347),s=n(83802);async function u(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:u=e.chain,request:c,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:n,client:e,request:c}):u?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),b=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=n||await (0,a.s)(e,i.Q,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas){let t=await u.fees.estimateFeesPerGas({block:n,client:e,multiply:b,request:c,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new r.e5;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:u,request:c}),n=b(p.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??b(await (0,a.s)(e,s.o,"getGasPrice")({}))}}},26237:function(e,t,n){n.d(t,{Q:function(){return v}});var r=n(50394),a=n(99997),o=n(41755),i=n(26980),s=n(73500),u=n(50024),c=n(12887);class l extends a.G{constructor(e,{account:t,docsPath:n,chain:r,data:a,gas:o,gasPrice:i,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:b,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,c.xr)({from:t?.address,to:b,value:void 0!==p&&`${(0,s.d)(p)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==i&&`${(0,u.o)(i)} gwei`,maxFeePerGas:void 0!==l&&`${(0,u.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,u.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(45747),f=n(72401),b=n(11625),p=n(49578),h=n(50961),m=n(62556),y=n(15044),g=n(65066);async function v(e,t){let{account:n=e.account}=t,s=n?(0,r.T)(n):void 0;try{let{accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:l,blockNumber:d,blockTag:f,data:v,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:$,maxPriorityFeePerGas:M,nonce:C,value:O,stateOverride:E,...j}=await (0,y.ZE)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),G=("bigint"==typeof d?(0,i.eC)(d):void 0)||f,S=(0,h.mF)(E),R=await (async()=>j.to?j.to:r&&r.length>0?await (0,o.z)({authorization:r[0]}).catch(()=>{throw new a.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,m.F)(t);let k=e.chain?.formatters?.transactionRequest?.format,I=(k||p.tG)({...(0,b.K)(j,{format:k}),from:s?.address,accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:l,data:v,gas:w,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:$,maxPriorityFeePerGas:M,nonce:C,to:R,value:O});function u(t){let{block:n,request:r,rpcStateOverride:a}=t;return e.request({method:"eth_estimateGas",params:a?[r,n??"latest",a]:n?[r,n]:[r]})}let F=BigInt(await u({block:G,request:I,rpcStateOverride:S}));if(r){let t=await (0,g.s)(e,{address:I.from}),n=await Promise.all(r.map(async e=>{let{address:n}=e,r=await u({block:G,request:{authorizationList:void 0,data:v,from:s?.address,to:n,value:(0,i.eC)(t)},rpcStateOverride:S}).catch(()=>100000n);return 2n*BigInt(r)}));F+=n.reduce((e,t)=>e+t,0n)}return F}catch(n){throw function(e,{docsPath:t,...n}){return new l((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},28821:function(e,t,n){n.d(t,{_:function(){return u},h:function(){return c}});var r=n(96735),a=n(94867),o=n(80323),i=n(1347),s=n(83802);async function u(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:u=e.chain,request:c}=t||{};try{let t=u?.fees?.maxPriorityFeePerGas??u?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,o.s)(e,i.Q,"getBlock")({}),a=await t({block:r,client:e,request:c});if(null===a)throw Error();return a}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,a.y_)(r)}catch{let[t,a]=await Promise.all([n?Promise.resolve(n):(0,o.s)(e,i.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let u=a-t.baseFeePerGas;if(u<0n)return 0n;return u}}},65066:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(26980);async function a(e,{address:t,blockNumber:n,blockTag:a="latest"}){let o="bigint"==typeof n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||a]}))}},1347:function(e,t,n){n.d(t,{Q:function(){return i}});var r=n(44712),a=n(26980),o=n(6896);async function i(e,{blockHash:t,blockNumber:n,blockTag:i,includeTransactions:s}={}){let u=s??!1,c=void 0!==n?(0,a.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||(i??"latest"),u]},{dedupe:!!c})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||o.Z)(l)}},97245:function(e,t,n){n.d(t,{L:function(){return a}});var r=n(94867);async function a(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},83802:function(e,t,n){n.d(t,{o:function(){return r}});async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}},89500:function(e,t,n){n.d(t,{K:function(){return o}});var r=n(94867),a=n(26980);async function o(e,{address:t,blockTag:n="latest",blockNumber:o}){let i=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,a.eC)(o):n]},{dedupe:!!o});return(0,r.ly)(i)}},87682:function(e,t,n){n.d(t,{a:function(){return o}});var r=n(12887),a=n(48275);async function o(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||a.fA)(n)}},44988:function(e,t,n){n.d(t,{e:function(){return p}});var r=n(44712),a=n(12887),o=n(80323),i=n(31933),s=n(89395),u=n(27067),c=n(91524),l=n(1347),d=n(93971),f=n(87682),b=n(48433);async function p(e,{confirmations:t=1,hash:n,onReplaced:p,pollingInterval:h=e.pollingInterval,retryCount:m=6,retryDelay:y=({count:e})=>200*~~(1<<e),timeout:g=18e4}){let v,w,x,P,$;let M=(0,c.P)(["waitForTransactionReceipt",e.uid,n]),C=!1,{promise:O,resolve:E,reject:j}=(0,s.n)(),G=g?setTimeout(()=>{$(),P(),j(new a.mc({hash:n}))},g):void 0;return P=(0,i.N7)(M,{onReplaced:p,resolve:E,reject:j},i=>{$=(0,o.s)(e,b.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(s){let c=e=>{clearTimeout(G),$(),e(),P()},b=s;if(!C)try{if(x){if(t>1&&(!x.blockNumber||b-x.blockNumber+1n<t))return;c(()=>i.resolve(x));return}if(v||(C=!0,await (0,u.J)(async()=>{(v=await (0,o.s)(e,d.f,"getTransaction")({hash:n})).blockNumber&&(b=v.blockNumber)},{delay:y,retryCount:m}),C=!1),x=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:n}),t>1&&(!x.blockNumber||b-x.blockNumber+1n<t))return;c(()=>i.resolve(x))}catch(n){if(n instanceof a.Bh||n instanceof a.Yb){if(!v){C=!1;return}try{w=v,C=!0;let n=await (0,u.J)(()=>(0,o.s)(e,l.Q,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:y,retryCount:m,shouldRetry:({error:e})=>e instanceof r.f});C=!1;let a=n.transactions.find(({from:e,nonce:t})=>e===w.from&&t===w.nonce);if(!a||(x=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:a.hash}),t>1&&(!x.blockNumber||b-x.blockNumber+1n<t)))return;let s="replaced";a.to===w.to&&a.value===w.value&&a.input===w.input?s="repriced":a.from===a.to&&0n===a.value&&(s="cancelled"),c(()=>{i.onReplaced?.({reason:s,replacedTransaction:w,transaction:a,transactionReceipt:x}),i.resolve(x)})}catch(e){c(()=>i.reject(e))}}else c(()=>i.reject(n))}}})}),O}},48433:function(e,t,n){n.d(t,{q:function(){return c}});var r=n(94867),a=n(80323),o=n(31933),i=n(46456),s=n(91524),u=n(58947);function c(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:c,onError:l,poll:d,pollingInterval:f=e.pollingInterval}){let b;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,o.N7)(r,{onBlockNumber:c,onError:l},r=>(0,i.$)(async()=>{try{let t=await (0,a.s)(e,u.z,"getBlockNumber")({cacheTime:0});if(b){if(t===b)return;if(t-b>1&&n)for(let e=b+1n;e<t;e++)r.onBlockNumber(e,b),b=e}(!b||t>b)&&(r.onBlockNumber(t,b),b=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let a=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,o.N7)(a,{onBlockNumber:c,onError:l},t=>{let n=!0,a=()=>n=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await o.subscribe({params:["newHeads"],onData(e){if(!n)return;let a=(0,r.y_)(e.result?.number);t.onBlockNumber(a,b),b=a},onError(e){t.onError?.(e)}});a=i,n||a()}catch(e){l?.(e)}})(),()=>a()})})()}},15044:function(e,t,n){n.d(t,{QZ:function(){return y},ZE:function(){return v}});var r=n(50394),a=n(80878),o=n(26237),i=n(1347),s=n(89500),u=n(96735),c=n(63829),l=n(13260),d=n(34115),f=n(25268),b=n(80323),p=n(62556),h=n(81614),m=n(97245);let y=["blobVersionedHashes","chainId","fees","gas","nonce","type"],g=new Map;async function v(e,t){let n,v;let{account:w=e.account,blobs:x,chain:P,gas:$,kzg:M,nonce:C,nonceManager:O,parameters:E=y,type:j}=t,G=w?(0,r.T)(w):w,S={...t,...G?{from:G?.address}:{}};async function R(){return n||(n=await (0,b.s)(e,i.Q,"getBlock")({blockTag:"latest"}))}async function k(){return v||(P?P.id:void 0!==t.chainId?t.chainId:v=await (0,b.s)(e,m.L,"getChainId")({}))}if(E.includes("nonce")&&void 0===C&&G){if(O){let t=await k();S.nonce=await O.consume({address:G.address,chainId:t,client:e})}else S.nonce=await (0,b.s)(e,s.K,"getTransactionCount")({address:G.address,blockTag:"pending"})}if((E.includes("blobVersionedHashes")||E.includes("sidecars"))&&x&&M){let e=(0,c.P)({blobs:x,kzg:M});if(E.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});S.blobVersionedHashes=t}if(E.includes("sidecars")){let t=(0,l.y)({blobs:x,commitments:e,kzg:M}),n=(0,f.j)({blobs:x,commitments:e,proofs:t,to:"hex"});S.sidecars=n}}if(E.includes("chainId")&&(S.chainId=await k()),(E.includes("fees")||E.includes("type"))&&void 0===j)try{S.type=(0,h.l)(S)}catch{let t=g.get(e.uid);if(void 0===t){let n=await R();t="bigint"==typeof n?.baseFeePerGas,g.set(e.uid,t)}S.type=t?"eip1559":"legacy"}if(E.includes("fees")){if("legacy"!==S.type&&"eip2930"!==S.type){if(void 0===S.maxFeePerGas||void 0===S.maxPriorityFeePerGas){let n=await R(),{maxFeePerGas:r,maxPriorityFeePerGas:o}=await (0,a.C)(e,{block:n,chain:P,request:S});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new u.ld({maxPriorityFeePerGas:o});S.maxPriorityFeePerGas=o,S.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new u.e5;if(void 0===t.gasPrice){let t=await R(),{gasPrice:n}=await (0,a.C)(e,{block:t,chain:P,request:S,type:"legacy"});S.gasPrice=n}}}return E.includes("gas")&&void 0===$&&(S.gas=await (0,b.s)(e,o.Q,"estimateGas")({...S,account:G?{address:G.address,type:"json-rpc"}:G})),(0,p.F)(S),delete S.parameters,S}},72090:function(e,t,n){n.d(t,{p:function(){return r}});async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}},78243:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(50394),a=n(67129);function o(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:o,key:i="base",name:s="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:b,value:p}=e.transport({chain:l,pollingInterval:u}),h={account:d,batch:t,cacheTime:n,ccipRead:o,chain:l,key:i,name:s,pollingInterval:u,request:b,transport:{...f,...p},type:c,uid:(0,a.h)()};return Object.assign(h,{extend:function e(t){return n=>{let r=n(t);for(let e in h)delete r[e];let a={...t,...r};return Object.assign(a,{extend:e(a)})}}(h)})}},67609:function(e,t,n){n.d(t,{q:function(){return d}});var r=n(99997),a=n(15800),o=n(95366),i=n(26980);let s=new(n(63655)).k(8192);var u=n(27067),c=n(91524),l=n(67129);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:b=150,timeout:p,type:h},m){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:b,timeout:p,type:h},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:b=150,retryCount:p=3,uid:h}={...t,...l},{method:m}=n;if(f?.exclude?.includes(m)||f?.include&&!f.include.includes(m))throw new o.gS(Error("method not supported"),{method:m});let y=d?(0,i.$G)(`${h}.${(0,c.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,u.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e,{method:n.method});case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e,{method:n.method});case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case o.vl.code:throw new o.vl(e);case o.Uu.code:throw new o.Uu(e);case o.Nt.code:throw new o.Nt(e);case o.EJ.code:throw new o.EJ(e);case o.fl.code:throw new o.fl(e);case o.NO.code:throw new o.NO(e);case o.r0.code:throw new o.r0(e);case 5e3:throw new o.ab(e);default:if(e instanceof r.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof a.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*b},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.code:!(e instanceof a.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:d,id:y})}}(d,{methods:t,retryCount:f,retryDelay:b,uid:(0,l.h)()}),value:m}}},28931:function(e,t,n){n.d(t,{$o:function(){return l},F8:function(){return r},X$:function(){return c},Yi:function(){return a},du:function(){return s},k3:function(){return i},nZ:function(){return u}});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"}],a=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{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"}],i=[...o,{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"}]}],s=[...o,{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"}]}],u=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],l=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},5405:function(e,t,n){n.d(t,{NO:function(){return r},ST:function(){return o},pG:function(){return a}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",a="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},94900:function(e,t,n){n.d(t,{Y:function(){return o},o:function(){return a}});var r=n(99997);class a extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends r.G{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},44712:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(99997);class a 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"})}}},65606:function(e,t,n){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(50394),a=n(93141),o=n(1660),i=n(78314),s=n(91524);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,s.P)(t[n]):t[n]}`).join(", ")})`}var c=n(5231),l=n(73500),d=n(50024),f=n(84771),b=n(99997),p=n(13878),h=n(12887),m=n(74130);class y extends b.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:i,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:b,value:m,stateOverride:y}){let g=t?(0,r.T)(t):void 0,v=(0,h.xr)({from:g?.address,to:b,value:void 0!==m&&`${(0,l.d)(m)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});y&&(v+=`
23
23
  ${(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 b.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:a,functionName:o,sender:s}){let l=(0,c.mE)({abi:t,args:n,name:o}),d=l?u({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,i.t)(l,{includeName:!0}):void 0,b=(0,h.xr)({address:r&&(0,m.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],b&&"Contract Call:",b].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=o,this.sender=s}}class v extends b.G{constructor({abi:e,data:t,functionName:n,message:r}){let s,c,l,d,b;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:s}=b=(0,o.p)({abi:e,data:t});if("Error"===r)l=s[0];else if("Panic"===r){let[e]=s;l=a.$[e]}else{let e=n?(0,i.t)(n,{includeName:!0}):void 0,t=n&&s?u({abiItem:n,args:s,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else r&&(l=r);s instanceof f.yP&&(d=s.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:s,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=b,this.raw=t,this.reason=l,this.signature=d}}class w extends b.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 b.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 b.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}}},96735:function(e,t,n){n.d(t,{Fz:function(){return o},e5:function(){return i},ld:function(){return s}});var r=n(50024),a=n(99997);class o extends a.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class i extends a.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends a.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},15800:function(e,t,n){n.d(t,{Cc:function(){return c},Gg:function(){return i},W5:function(){return l},bs:function(){return u},c9:function(){return s}});var r=n(91524),a=n(99997),o=n(74130);class i extends a.G{constructor({body:e,cause:t,details:n,headers:a,status:i,url:s}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.G)(s)}`,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=a,this.status=i,this.url=s}}class s extends a.G{constructor({body:e,cause:t,details:n,url:a}){super("WebSocket request failed.",{cause:t,details:n,metaMessages:[`URL: ${(0,o.G)(a)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}class u extends a.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class c extends a.G{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,o.G)(e)}`].filter(Boolean),name:"SocketClosedError"})}}class l extends a.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"})}}},95366:function(e,t,n){n.d(t,{B:function(){return u},EJ:function(){return j},GD:function(){return g},I0:function(){return $},KB:function(){return h},LX:function(){return c},NO:function(){return S},Nt:function(){return E},Og:function(){return b},PE:function(){return w},Pv:function(){return y},Ts:function(){return x},Uu:function(){return O},XS:function(){return d},ab:function(){return v},fl:function(){return G},gS:function(){return m},ir:function(){return k},nY:function(){return l},pT:function(){return p},r0:function(){return R},s7:function(){return s},u5:function(){return P},vl:function(){return C},x3:function(){return M},yR:function(){return f}});var r=n(99997),a=n(15800);class o extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:o,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof a.bs?e.code:t??-1}}class i extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends o{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends o{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 o{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 o{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 o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends o{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 b extends o{constructor(e){super(e,{code:b.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class h extends o{constructor(e){super(e,{code:h.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends o{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 o{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 i{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 i{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 i{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 i{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 i{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 M extends i{constructor(e){super(e,{code:M.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class C extends i{constructor(e){super(e,{code:C.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class O extends i{constructor(e){super(e,{code:O.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class E extends i{constructor(e){super(e,{code:E.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class j extends i{constructor(e){super(e,{code:j.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class G extends i{constructor(e){super(e,{code:G.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(G,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class S extends i{constructor(e){super(e,{code:S.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class R extends i{constructor(e){super(e,{code:R.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class k extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},13878:function(e,t,n){n.d(t,{Bj:function(){return s},Nc:function(){return a},Z8:function(){return o}});var r=n(99997);class a extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}
24
24
  `,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:
25
25
  `;return n.nonce&&(r+=` nonce: ${n.nonce}