1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="4ceacb64-fbf4-ccf8-f9e6-0051c141318e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,886557,893122,979269,178389,e=>{"use strict";let t;var r=e.i(292210),n=e.i(471351),o=e.i(45664),i=e.i(397141),a=e.i(823722),s=e.i(612096),c=e.i(942140),u=e.i(842923),d=e.i(848005),l=e.i(817573),h=e.i(215124);function f(e){return e}function m(){let e,t,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{shimDisconnect:i=!0,unstable_shimAsyncInject:w}=o;function v(){let e=o.target;if("function"==typeof e){let t=e();if(t)return t}return"object"==typeof e?e:"string"==typeof e?{...p[e]??{id:e,name:`${e[0].toUpperCase()}${e.slice(1)}`,provider:`is${e[0].toUpperCase()}${e.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return f(f=>({get icon(){return v().icon},get id(){return v().id},get name(){return v().name},get supportsSimulation(){return!0},type:m.type,async setup(){let t=await this.getProvider();t?.on&&o.target&&(r||(r=this.onConnect.bind(this),t.on("connect",r)),e||(e=this.onAccountsChanged.bind(this),t.on("accountsChanged",e)))},async connect(){let{chainId:s,isReconnecting:u,withCapabilities:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=await this.getProvider();if(!l)throw new h.ProviderNotFoundError;let m=[];if(u)m=await this.getAccounts().catch(()=>[]);else if(i)try{let e=await l.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(m=e[0]?.caveats?.[0]?.value?.map(e=>(0,a.getAddress)(e))).length>0&&(m=await this.getAccounts())}catch(e){if(e.code===c.UserRejectedRequestError.code)throw new c.UserRejectedRequestError(e);if(e.code===c.ResourceUnavailableRpcError.code)throw e}try{m?.length||u||(m=(await l.request({method:"eth_requestAccounts"})).map(e=>(0,a.getAddress)(e))),r&&(l.removeListener("connect",r),r=void 0),e||(e=this.onAccountsChanged.bind(this),l.on("accountsChanged",e)),t||(t=this.onChainChanged.bind(this),l.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),l.on("disconnect",n));let h=await this.getChainId();if(s&&h!==s){let e=await this.switchChain({chainId:s}).catch(e=>{if(e.code===c.UserRejectedRequestError.code)throw e;return{id:h}});h=e?.id??h}return i&&await f.storage?.removeItem(`${this.id}.disconnected`),o.target||await f.storage?.setItem("injected.connected",!0),{accounts:d?m.map(e=>({address:e,capabilities:{}})):m,chainId:h}}catch(e){if(e.code===c.UserRejectedRequestError.code)throw new c.UserRejectedRequestError(e);if(e.code===c.ResourceUnavailableRpcError.code)throw new c.ResourceUnavailableRpcError(e);throw e}},async disconnect(){let e=await this.getProvider();if(!e)throw new h.ProviderNotFoundError;t&&(e.removeListener("chainChanged",t),t=void 0),n&&(e.removeListener("disconnect",n),n=void 0),r||(r=this.onConnect.bind(this),e.on("connect",r));try{await (0,d.withTimeout)(()=>e.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}i&&await f.storage?.setItem(`${this.id}.disconnected`,!0),o.target||await f.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new h.ProviderNotFoundError;return(await e.request({method:"eth_accounts"})).map(e=>(0,a.getAddress)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new h.ProviderNotFoundError;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("u"<typeof window)return;let t=v();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?g(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(i&&await f.storage?.getItem(`${this.id}.disconnected`)||!o.target&&!await f.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==w&&!1!==w){let e=async()=>("u">typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof w?w:1e3;if(await Promise.race([..."u">typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(r=>setTimeout(()=>r(e()),t))]))return!0}throw new h.ProviderNotFoundError}return!!(await (0,u.withRetry)(()=>this.getAccounts())).length}catch{return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:r}=e,n=await this.getProvider();if(!n)throw new h.ProviderNotFoundError;let o=f.chains.find(e=>e.id===r);if(!o)throw new c.SwitchChainError(new l.ChainNotConfiguredError);let i=new Promise(e=>{let t=n=>{"chainId"in n&&n.chainId===r&&(f.emitter.off("change",t),e())};f.emitter.on("change",t)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.numberToHex)(r)}]}).then(async()=>{await this.getChainId()===r&&f.emitter.emit("change",{chainId:r})}),i]),o}catch(e){if(4902===e.code||e?.data?.originalError?.code===4902)try{let e,a,{default:u,...d}=o.blockExplorers??{};t?.blockExplorerUrls?e=t.blockExplorerUrls:u&&(e=[u.url,...Object.values(d).map(e=>e.url)]),a=t?.rpcUrls?.length?t.rpcUrls:[o.rpcUrls.default?.http[0]??""];let l={blockExplorerUrls:e,chainId:(0,s.numberToHex)(r),chainName:t?.chainName??o.name,iconUrls:t?.iconUrls,nativeCurrency:t?.nativeCurrency??o.nativeCurrency,rpcUrls:a};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[l]}).then(async()=>
2{if(await this.getChainId()===r)f.emitter.emit("change",{chainId:r});else throw new c.UserRejectedRequestError(Error("User rejected switch after adding network."))}),i]),o}catch(e){throw new c.UserRejectedRequestError(e)}if(e.code===c.UserRejectedRequestError.code)throw new c.UserRejectedRequestError(e);throw new c.SwitchChainError(e)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(f.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),i&&await f.storage?.removeItem(`${this.id}.disconnected`)}else f.emitter.emit("change",{accounts:e.map(e=>(0,a.getAddress)(e))})},onChainChanged(e){let t=Number(e);f.emitter.emit("change",{chainId:t})},async onConnect(o){let i=await this.getAccounts();if(0===i.length)return;let a=Number(o.chainId);f.emitter.emit("connect",{accounts:i,chainId:a});let s=await this.getProvider();s&&(r&&(s.removeListener("connect",r),r=void 0),e||(e=this.onAccountsChanged.bind(this),s.on("accountsChanged",e)),t||(t=this.onChainChanged.bind(this),s.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),s.on("disconnect",n)))},async onDisconnect(e){let o=await this.getProvider();e&&1013===e.code&&o&&(await this.getAccounts()).length||(f.emitter.emit("disconnect"),o&&(t&&(o.removeListener("chainChanged",t),t=void 0),n&&(o.removeListener("disconnect",n),n=void 0),r||(r=this.onConnect.bind(this),o.on("connect",r))))}}))}e.s(["createConnector",0,f],893122),m.type="injected";let p={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:g(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>g(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:g(e,"isPhantom")}};function g(e,t){function r(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let n=e.ethereum;return n?.providers?n.providers.find(e=>r(e)):n&&r(n)?n:void 0}e.s(["injected",0,m],979269),e.i(785373);var w=e.i(50158);class v{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new w.EventEmitter})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let o=r[0];this._emitter.emit(e,{uid:this.uid,...o})}listenerCount(e){return this._emitter.listenerCount(e)}}function b(e,t){return JSON.parse(e,(e,r)=>{let n=r;return n?.__type==="bigint"&&(n=BigInt(n.value)),n?.__type==="Map"&&(n=new Map(n.value)),t?.(e,n)??n})}function y(e,t){return e.slice(0,t).join(".")||"."}function E(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function C(e,t,r,n){var o;let i,a,s,c;return JSON.stringify(e,(o=(e,r)=>{let n=r;return"bigint"==typeof n&&(n={__type:"bigint",value:r.toString()}),n instanceof Map&&(n={__type:"Map",value:Array.from(r.entries())}),t?.(e,n)??n},i=true,a="function"==typeof n,s=[],c=[],function(e,t){if("object"==typeof t)if(s.length){let r=E(s,this);0===r?s[s.length]=this:(s.splice(r),c.splice(r)),c[c.length]=e;let o=E(s,t);if(0!==o)return a?n.call(this,e,t,y(c,o)):`[ref=${y(c,o)}]`}else s[0]=t,c[0]=e;return i?o.call(this,e,t):t}),r??void 0)}function I(e){let{deserialize:t=b,key:r="wagmi",serialize:n=C,storage:o=R}=e;function i(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...o,key:r,async getItem(e,n){let a=o.getItem(`${r}.${e}`),s=await i(a);return s?t(s)??null:n??null},async setItem(e,t){let a=`${r}.${e}`;null===t?await i(o.removeItem(a)):await i(o.setItem(a,n(t)))},async removeItem(e){await i(o.removeItem(`${r}.${e}`))}}}let R={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function S(){let e="u">typeof window&&window.localStorage?window.localStorage:R;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}e.s(["createStorage",0,I,"getDefaultStorage",0,S,"noopStorage",0,R],178389);let P=256;var j=e.i(982940);e.s(["createConfig",0,function(e){let a,{multiInjectedProviderDiscovery:s=!0,storage:c=I({storage:S()}),syncConnectedChain:u=!0,ssr:d=!1,...h}=e,f="u">typeof window&&s?(0,r.createStore)():void 0,p=(0,i.createStore)(()=>h.chains),g=(0,i.createStore)(()=>{let e=[],t=new Set;for(let r of h.connectors??[]){let n=w(r);if(e.push(n),!d&&n.rdns)for(let e of"string"==typeof n.rdns?[n.rdns]:n.rdns)t.add(e)}if(!d&&f)for(let r of f.getProviders())t.has(r.info.rdns)||e.push(w(b(r)));return e});function w(e){let r=new v(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!t||P+e>512){t="",P=0;for(let e=0;e<256;e++)t+=(256+256*Math.random()|0).toString(16).substring(1)}return t.substring(P,P+++e)}()),n={...e({emitter:r,chains:p.getState(),storage:c,transports:h.transports}),emitter:r,uid:r.uid};return r.on("connect",M),n.setup?.(),n}function b(e){let{info:t}=e,r=e.provider;return m({target:{...t,id:t.rdns,provider:r}})}let y=new Map;function E(){return{chainId:p.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let C="0.0.0-canary-";a=j.version.startsWith(C)?Number.parseInt(j.version.replace(C,""),10):Number.parseInt(j.version.split(".")[0]??"0",10);let R=(0,i.createStore)((0,o.subscribeWithSelector)(c?(0,o.persist)(E,{migrate(e,t){if(t===a)return e;let r=E(),n=U(e,r.chainId);return{...r,chainId:n}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(e=>{let[t,r]=e,{id:n,name:o,type:i,uid:a}=r.connector;return[t,{...r,connector:{id:n,name:o,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let r=U(e,t.chainId);return{...t,...e,chainId:r}},skipHydration:d,storage:c,version:a}):E));function U(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&p.getState().some(t=>t.id===e.chainId)?e.chainId:t}function A(e){R.setState(t=>{let r=t.connections.get(e.uid);return r?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??r.accounts,chainId:e.chainId??r.chainId,connector:r.connector})}:t})}function M(e){"connecting"!==R.getState().status&&"reconnecting"!==R.getState().status&&R.setState(t=>{let r=g.getState().find(t=>t.uid===e.uid);return r?(r.emitter.listenerCount("connect")&&r.emitter.off("connect",A),r.emitter.listenerCount("change")||r.emitter.on("change",A),r.emitter.listenerCount("disconnect")||r.emitter.on("disconnect",O),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t})}function O(e){R.setState(t=>{let r=t.connections.get(e.uid);if(r){let e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",A),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",O),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",M)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}})}return R.setState(E()),u&&R.subscribe(e=>{let{connections:t,current:r}=e;return r?t.get(r)?.chainId:void 0},e=>{if(p.getState().some(t=>t.id===e))return R.setState(t=>({...t,chainId:e??t.chainId}))}),f?.subscribe(e=>{let t=new Set,r=new Set;for(let e of g.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)r.add(t);let n=[];for(let o of e){if(r.has(o.info.rdns))continue;let e=w(b(o));t.has(e.id)||n.push(e)}(!c||R.persist.hasHydrated())&&g.setState(e=>[...e,...n],!0)}),{get chains(){return p.getState()},get connectors(){return g.getState()},storage:c,getClient:function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.chainId??R.getState().chainId,o=p.getState().find(e=>e.id===r);if(t.chainId&&!o)throw new l.ChainNotConfiguredError;{let e=y.get(R.getState().chainId);if(e&&!o)return e;if(!o)throw new l.ChainNotConfiguredError}{let e=y.get(r);if(e)return e}if(h.client)e=h.client({chain:o});else{let t=o.id,r=p.getState().map(e=>e.id),i={};for(let[e,n]of Object.entries(h))if("chains"!==e&&"client"!==e&&"connectors"!==e&&"transports"!==e)if("object"==typeof n)if(t in n)i[e]=n[t];else{if(r.some(e=>e in n))continue;i[e]=n}else i[e]=n;e=(0,n.createClient)({...i,chain:o,batch:i.batch??{multicall:!0},transport:e=>h.transports[t]({...e,connectors:g})})}return y.set(r,e),e},get state(){return R.getState()},setState(e){let t;t="function"==typeof e?e(R.getState()):e;let r=E();"object"!=typeof t&&(t=r),Object.keys(r).some(e=>!(e in t))&&(t=r),R.setState(t,!0)},subscribe:(e,t,r)=>R.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0),_internal:{mipd:f,async revalidate(){let e=R.getState(),t=e.connections,r=e.current;for(let[,e]of t){let n=e.connector;n.isAuthorized&&await n.isAuthorized()||(t.delete(n.uid),r===n.uid&&(r=null))}R.setState(e=>({...e,connections:t,current:r}))},store:R,ssr:!!d,syncConnectedChain:u,transports:h.transports,chains:{setState(e){let t="function"==typeof e?e(p.getState()):e;if(0!==t.length)return p.setState(t,!0)},subscribe:e=>p.subscribe(e)}
2,connectors:{providerDetailToConnector:b,setup:w,setState:e=>g.setState("function"==typeof e?e(g.getState()):e,!0),subscribe:e=>g.subscribe(e)},events:{change:A,connect:M,disconnect:O}}}}],886557)},817573,215124,e=>{"use strict";var t=e.i(992059);class r extends t.BaseError{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class n extends t.BaseError{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class o extends t.BaseError{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}t.BaseError;class i extends t.BaseError{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 a extends t.BaseError{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 s extends t.BaseError{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"})}}e.s(["ChainNotConfiguredError",0,r,"ConnectorAccountNotFoundError",0,i,"ConnectorAlreadyConnectedError",0,n,"ConnectorChainMismatchError",0,a,"ConnectorNotConnectedError",0,o,"ConnectorUnavailableReconnectingError",0,s],817573);var c=t;class u extends c.BaseError{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class d extends c.BaseError{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}e.s(["ProviderNotFoundError",0,u,"SwitchChainNotSupportedError",0,d],215124)},50158,e=>{"use strict";var t=e.i(153413);e.s(["EventEmitter",()=>t.default])},471351,e=>{"use strict";var t=e.i(488745),r=e.i(713466);e.s(["createClient",0,function(e){let{batch:n,chain:o,ccipRead:i,dataSuffix:a,key:s="base",name:c="Base Client",type:u="base"}=e,d=e.experimental_blockTag??("number"==typeof o?.experimental_preconfirmationTime?"pending":void 0),l=Math.min(Math.max(Math.floor((o?.blockTime??12e3)/2),500),4e3),h=e.pollingInterval??l,f=e.cacheTime??h,m=e.account?(0,t.parseAccount)(e.account):void 0,{config:p,request:g,value:w}=e.transport({account:m,chain:o,pollingInterval:h}),v={account:m,batch:n,cacheTime:f,ccipRead:i,chain:o,dataSuffix:a,key:s,name:c,pollingInterval:h,request:g,transport:{...p,...w},type:u,uid:(0,r.uid)(),...d?{experimental_blockTag:d}:{}};return Object.assign(v,{extend:function e(t){return r=>{let n=r(t);for(let e in v)delete n[e];let o={...t,...n};return Object.assign(o,{extend:e(o)})}}(v)})}])},37328,e=>{"use strict";var t=e.i(141820),r=e.i(713466);e.s(["createTransport",0,function(e,n){let{key:o,methods:i,name:a,request:s,retryCount:c=3,retryDelay:u=150,timeout:d,type:l}=e,h=(0,r.uid)();return{config:{key:o,methods:i,name:a,request:s,retryCount:c,retryDelay:u,timeout:d,type:l},request:(0,t.buildRequest)(s,{methods:i,retryCount:c,retryDelay:u,uid:h}),value:n}}])},61214,e=>{"use strict";var t=e.i(118393),r=e.i(889755),n=e.i(757470),o=e.i(917422),i=e.i(37328);e.s(["http",0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{batch:s,fetchFn:c,fetchOptions:u,key:d="http",methods:l,name:h="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:m,retryDelay:p,raw:g}=a;return w=>{let{chain:v,retryCount:b,timeout:y}=w,{batchSize:E=1e3,wait:C=0}="object"==typeof s?s:{},I=a.retryCount??b,R=y??a.timeout??1e4,S=e||v?.rpcUrls.default.http[0];if(!S)throw new r.UrlRequiredError;let P=(0,o.getHttpRpcClient)(S,{fetchFn:c,fetchOptions:u,onRequest:f,onResponse:m,timeout:R});return(0,i.createTransport)({key:d,methods:l,name:h,async request(e){let{method:r,params:o}=e,i={method:r,params:o},{schedule:a}=(0,n.createBatchScheduler)({id:S,wait:C,shouldSplitBatch:e=>e.length>E,fn:e=>P.request({body:e}),sort:(e,t)=>e.id-t.id}),c=async e=>s?a(e):[await P.request({body:e})],[{error:u,result:d}]=await c(i);if(g)return{error:u,result:d};if(u)throw new t.RpcRequestError({body:i,error:u,url:S});return d},retryCount:I,retryDelay:p,timeout:R,type:"http"},{fetchOptions:u,url:S})}}])},889755,848005,917422,e=>{"use strict";var t=e.i(719995);class r extends t.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}e.s(["UrlRequiredError",0,r],889755);var n=e.i(118393);function o(e,t){let{errorInstance:r=Error("timed out"),timeout:n,signal:o}=t;return new Promise((t,i)=>{(async()=>{let a;try{let s=new AbortController;n>0&&(a=setTimeout(()=>{o?s.abort():i(r)},n)),t(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&i(r),i(e)}finally{clearTimeout(a)}})()})}e.s(["withTimeout",0,o],848005);var i=e.i(794346);let a={current:0,take(){return this.current++},reset(){this.current=0}};e.s(["getHttpRpcClient",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{url:r,headers:s}=function(e){try{let t=new URL(e),r=(()=>
2{if(t.username){let e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...r}}catch{return{url:e}}}(e);return{async request(e){let{body:c,fetchFn:u=t.fetchFn??fetch,onRequest:d=t.onRequest,onResponse:l=t.onResponse,timeout:h=t.timeout??1e4}=e,f={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:m,method:p,signal:g}=f;try{let e,t=await o(async e=>{let{signal:t}=e,n={...f,body:Array.isArray(c)?(0,i.stringify)(c.map(e=>({jsonrpc:"2.0",id:e.id??a.take(),...e}))):(0,i.stringify)({jsonrpc:"2.0",id:c.id??a.take(),...c}),headers:{...s,"Content-Type":"application/json",...m},method:p||"POST",signal:g||(h>0?t:null)},o=new Request(r,n),l=await d?.(o,n)??{...n,url:r};return await u(l.url??r,l)},{errorInstance:new n.TimeoutError({body:c,url:r}),timeout:h,signal:!0});if(l&&await l(t),t.headers.get("Content-Type")?.startsWith("application/json"))e=await t.json();else{e=await t.text();try{e=JSON.parse(e||"{}")}catch(r){if(t.ok)throw r;e={error:e}}}if(!t.ok){if("number"==typeof e.error?.code&&"string"==typeof e.error?.message)return e;throw new n.HttpRequestError({body:c,details:(0,i.stringify)(e.error)||t.statusText,headers:t.headers,status:t.status,url:r})}return e}catch(e){if(e instanceof n.HttpRequestError||e instanceof n.TimeoutError)throw e;throw new n.HttpRequestError({body:c,cause:e,url:r})}}}}],917422)},141820,e=>{"use strict";var t=e.i(719995),r=e.i(118393),n=e.i(942140),o=e.i(612096),i=e.i(391772),a=e.i(842923),s=e.i(794346);e.s(["buildRequest",0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(u){let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dedupe:l=!1,methods:h,retryDelay:f=150,retryCount:m=3,uid:p}={...c,...d},{method:g}=u;if(h?.exclude?.includes(g)||h?.include&&!h.include.includes(g))throw new n.MethodNotSupportedRpcError(Error("method not supported"),{method:g});let w=l?(0,o.stringToHex)(`${p}.${(0,s.stringify)(u)}`):void 0;return(0,i.withDedupe)(()=>(0,a.withRetry)(async()=>{try{return await e(u)}catch(e){switch(e.code){case n.ParseRpcError.code:throw new n.ParseRpcError(e);case n.InvalidRequestRpcError.code:throw new n.InvalidRequestRpcError(e);case n.MethodNotFoundRpcError.code:throw new n.MethodNotFoundRpcError(e,{method:u.method});case n.InvalidParamsRpcError.code:throw new n.InvalidParamsRpcError(e);case n.InternalRpcError.code:throw new n.InternalRpcError(e);case n.InvalidInputRpcError.code:throw new n.InvalidInputRpcError(e);case n.ResourceNotFoundRpcError.code:throw new n.ResourceNotFoundRpcError(e);case n.ResourceUnavailableRpcError.code:throw new n.ResourceUnavailableRpcError(e);case n.TransactionRejectedRpcError.code:throw new n.TransactionRejectedRpcError(e);case n.MethodNotSupportedRpcError.code:throw new n.MethodNotSupportedRpcError(e,{method:u.method});case n.LimitExceededRpcError.code:throw new n.LimitExceededRpcError(e);case n.JsonRpcVersionUnsupportedError.code:throw new n.JsonRpcVersionUnsupportedError(e);case n.UserRejectedRequestError.code:throw new n.UserRejectedRequestError(e);case n.UnauthorizedProviderError.code:throw new n.UnauthorizedProviderError(e);case n.UnsupportedProviderMethodError.code:throw new n.UnsupportedProviderMethodError(e);case n.ProviderDisconnectedError.code:throw new n.ProviderDisconnectedError(e);case n.ChainDisconnectedError.code:throw new n.ChainDisconnectedError(e);case n.SwitchChainError.code:throw new n.SwitchChainError(e);case n.UnsupportedNonOptionalCapabilityError.code:throw new n.UnsupportedNonOptionalCapabilityError(e);case n.UnsupportedChainIdError.code:throw new n.UnsupportedChainIdError(e);case n.DuplicateIdError.code:throw new n.DuplicateIdError(e);case n.UnknownBundleIdError.code:throw new n.UnknownBundleIdError(e);case n.BundleTooLargeError.code:throw new n.BundleTooLargeError(e);case n.AtomicReadyWalletRejectedUpgradeError.code:throw new n.AtomicReadyWalletRejectedUpgradeError(e);case n.AtomicityNotSupportedError.code:throw new n.AtomicityNotSupportedError(e);case 5e3:throw new n.UserRejectedRequestError(e);case n.WalletConnectSessionSettlementError.code:throw new n.WalletConnectSessionSettlementError(e);default:if(e instanceof t.BaseError)throw e;throw new n.UnknownRpcError(e)}}},{delay:e=>{let{count:t,error:n}=e;if(n&&n instanceof r.HttpRequestError){let e=n?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<t)*f},retryCount:m,shouldRetry:e=>{var t;let{error:o}=e;return"code"in(t=o)&&"number"==typeof t.code?-1===t.code||t.code===n.LimitExceededRpcError.code||t.code===n.InternalRpcError.code:!(t instanceof r.HttpRequestError)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status||!1}}),{enabled:l,id:w})}}])},391772,e=>{"use strict";let t=new(e.i(603751)).LruMap(8192);e.s(["withDedupe",0,function(e,r){let{enabled:n=!0,id:o}=r;if(!n||!o)return e();if(t.get(o))return t.get(o);let i=e().finally(()=>t.delete(o));return t.set(o,i),i}])},842923,78511,e=>{"use strict";async function t(e){return new Promise(t=>setTimeout(t,e))}e.s(["wait",0,t],78511),e.s(["withRetry",0,function(e){let{delay:r=100,retryCount:n=2,shouldRetry:o=()=>!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((i,a)=>{let s=async function(){let{count:c=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=async e=>{let{error:n}=e,o="function"==typeof r?r({count:c,error:n}):r;o&&await t(o),s({count:c+1})};try{let t=await e();i(t)}catch(e){if(c<n&&await o({count:c,error:e}))return u({error:e});a(e)}};s()})}],842923)},713466,e=>{"use strict";let t,r=256;
2e.s(["uid",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!t||r+e>512){t="",r=0;for(let e=0;e<256;e++)t+=(256+256*Math.random()|0).toString(16).substring(1)}return t.substring(r,r+++e)}])},681854,87895,982940,992059,e=>{"use strict";var t,r,n=e.i(767281);let o=!1;async function i(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o)return[];o=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let n=[];if(r.connectors?.length)for(let t of r.connectors){let r;r="function"==typeof t?e._internal.connectors.setup(t):t,n.push(r)}else n.push(...e.connectors);try{t=await e.storage?.getItem("recentConnectorId")}catch{}let i={};for(let[,t]of e.state.connections)i[t.connector.id]=1;t&&(i[t]=0);let a=Object.keys(i).length>0?[...n].sort((e,t)=>(i[e.id]??10)-(i[t.id]??10)):n,s=!1,c=[],u=[];for(let t of a){let r=await t.getProvider().catch(()=>void 0);if(!r||u.some(e=>e===r)||!await t.isAuthorized())continue;let n=await t.connect({isReconnecting:!0}).catch(()=>null);n&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let r=new Map(s?e.connections:new Map).set(t.uid,{accounts:n.accounts,chainId:n.chainId,connector:t});return{...e,current:s?e.current:t.uid,connections:r}}),c.push({accounts:n.accounts,chainId:n.chainId,connector:t}),u.push(r),s=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(s?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),o=!1,c}function a(e){let{children:t,config:r,initialState:o,reconnectOnMount:a=!0}=e,{onMount:s}=function(e,t){let{initialState:r,reconnectOnMount:n}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(e=>e.id===r.chainId)?r.chainId:e.chains[0].id,connections:n?r.connections:new Map,status:n?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let r=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])r.add(t);let n=[];for(let t of e._internal.mipd?.getProviders()??[]){if(r.has(t.info.rdns))continue;let o=e._internal.connectors.providerDetailToConnector(t),i=e._internal.connectors.setup(o);n.push(i)}return[...t,...n]})),n?i(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(r,{initialState:o,reconnectOnMount:a});r._internal.ssr||s();let c=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{if(c.current&&r._internal.ssr)return s(),()=>{c.current=!1}},[]),t}e.s(["reconnect",0,i],87895);let s=(0,n.createContext)(void 0);e.s(["WagmiContext",0,s,"WagmiProvider",0,function(e){let{children:t,config:r}=e;return(0,n.createElement)(a,e,(0,n.createElement)(s.Provider,{value:r},t))}],681854);let c="2.22.1";e.s(["version",0,c],982940);var u=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};t=new WeakSet,r=function e(r,n){return n?.(r)?r:r.cause?u(this,t,"m",e).call(this,r.cause,n):r},e.s(["BaseError",0,class e extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${c}`}constructor(r,n={}){super(),t.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const o=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,i=n.cause instanceof e&&n.cause.docsPath||n.docsPath;this.message=[r||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join("\n"),n.cause&&(this.cause=n.cause),this.details=o,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=r}
2walk(e){return u(this,t,"m",r).call(this,this,e)}}],992059)},423787,e=>{"use strict";var t=e.i(767281),r=e.i(681854),n=e.i(992059);class o extends n.BaseError{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return"[email protected]"}}class i extends o{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}e.s(["useConfig",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.config??(0,t.useContext)(r.WagmiContext);if(!n)throw new i;return n}],423787)},45664,397141,e=>{"use strict";let t=e=>r=>{try{let n=e(r);if(n instanceof Promise)return n;return{then:e=>t(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:r=>t(r)(e)}}};e.s(["persist",0,(e,r)=>(n,o,i)=>{let a,s={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var r;let n=e=>null===e?null:JSON.parse(e,void 0),o=null!=(r=t.getItem(e))?r:null;return o instanceof Promise?o.then(n):n(o)},setItem:(e,r)=>t.setItem(e,JSON.stringify(r,void 0)),removeItem:e=>t.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...r},c=!1,u=new Set,d=new Set,l=s.storage;if(!l)return e(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...t)},o,i);let h=()=>{let e=s.partialize({...o()});return l.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),h()};let m=e(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n(...t),h()},o,i);i.getInitialState=()=>m;let p=()=>{var e,r;if(!l)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=o())?t:m)});let i=(null==(r=s.onRehydrateStorage)?void 0:r.call(s,null!=(e=o())?e:m))||void 0;return t(l.getItem.bind(l))(s.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];else{if(s.migrate)return[!0,s.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[r,i]=e;if(n(a=s.merge(i,null!=(t=o())?t:m),!0),r)return h()}).then(()=>{null==i||i(a,void 0),a=o(),c=!0,d.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},s.skipHydration||p(),a||m},"subscribeWithSelector",0,e=>(t,r,n)=>{let o=n.subscribe;return n.subscribe=(e,t,r)=>{let i=e;if(t){let o=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());i=r=>{let n=e(r);if(!o(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return o(i)},e(t,r,n)}],45664);let r=e=>{let t,r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,o,i);return i};e.s(["createStore",0,e=>e?r(e):r],397141)}]); 3 4//# debugId=4ceacb64-fbf4-ccf8-f9e6-0051c141318e
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.