1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="88f5f90d-5005-4ed9-8512-cd3737708793",e._sentryDebugIdIdentifier="sentry-dbid-88f5f90d-5005-4ed9-8512-cd3737708793")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5320],{47239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:a=null,children:o,dataNtpc:u=""}=e;return(0,i.useEffect)(()=>{u&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(u)}})},[u]),(0,r.jsxs)(r.Fragment,{children:[o,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=a?"".concat(a,"px"):"auto"},"data-ntpc":u,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(57437),i=n(2265)},14888:function(e,t,n){"use strict";var r;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:r="dataLayer",nonce:s}=e;return void 0===i&&(i=r),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(r,"'] = window['").concat(r,"'] || [];\n function gtag(){window['").concat(r,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:s}),(0,a.jsx)(u.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:s})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===i){console.warn("@next/third-parties: GA has not been initialized");return}window[i]?window[i].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(i," does not exist"))};let a=n(57437),o=n(2265),u=(r=n(48667))&&r.__esModule?r:{default:r}},98087:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:r="dataLayer",auth:s,preview:c,dataLayer:l,nonce:d}=e;u=r;let f="dataLayer"!==r?"&l=".concat(r):"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(l?"w[l].push(".concat(JSON.stringify(l),")"):"","\n })(window,'").concat(r,"');")},nonce:d}),(0,i.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(f).concat(s?">m_auth=".concat(s):"").concat(c?">m_preview=".concat(c,">m_cookies_win=x"):"")})]})};let i=n(57437),a=n(2265),o=(r=n(48667))&&r.__esModule?r:{default:r},u="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||u;window[n]=window[n]||[],window[n].push(e)}},99376:function(e,t,n){"use strict";var r=n(35475);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},48667:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.a}});var r=n(88003),i=n.n(r),a={};for(var o in r)"default"!==o&&(a[o]=(function(e){return r[e]}).bind(0,o));n.d(t,a)},10034:function(e,t,n){"use strict";var r=n(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return u(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),o(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},83044:function(e,t,n){"use strict";var r=n(2265),i=n(82558),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,u=r.useRef,s=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=u(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=o(e,(d=c(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return u=t}return u=e}if(t=u,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,u=n)}var o,u,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},82558:function(e,t,n){"use strict";e.exports=n(10034)},35195:function(e,t,n){"use strict";e.exports=n(83044)},34007:function(e){e.exports={style:{fontFamily:"'__geistFont_3563e5', '__geistFont_Fallback_3563e5'"},className:"__className_3563e5",variable:"__variable_3563e5"}},41154:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},54114:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(45345),i=n(21733),a=n(18238),o=n(24112),u=class extends o.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let a=t.queryKey,o=t.queryHash??(0,r.Rm)(a,t),u=this.get(o);return u||(u=new i.A({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.V.batch(()=>
1{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},s=n(2894),c=class extends o.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new s.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=l(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=l(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(l(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(l(e))?.find(t=>
1t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function l(e){return e.options.scope?.id??String(e.mutationId)}var d=n(87045),f=n(57853),h=n(21636),y=class{#r;#i;#a;#o;#u;#s;#c;#l;constructor(e={}){this.#r=e.queryCache||new u,this.#i=e.mutationCache||new c,this.#a=e.defaultOptions||{},this.#o=new Map,this.#u=new Map,this.#s=0}mount(){this.#s++,1===this.#s&&(this.#c=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#l=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#s--,0===this.#s&&(this.#c?.(),this.#c=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),r=this.#r.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#r.get(i.queryHash),o=a?.state.data,u=(0,r.SE)(t,o);if(void 0!==u)return this.#r.build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return a.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;a.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return a.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(a.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return a.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,h.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#i}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#o.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#u.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#i.clear()}}},88291:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return s}});var r=n(2265),i=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.vaq=window.vaq||[]).push(t)})};function a(){return"undefined"!=typeof window}function o(){return"production"}function u(){return"development"===((a()?window.vam:o())||"production")}function s(e){return(0,r.useEffect)(()=>{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!a())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=o();return}window.vam=e})(t.mode),i(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc||(u()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.
1js");if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),r.dataset.sdkv="1.2.2",t.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),t.endpoint&&(r.dataset.endpoint=t.endpoint),t.dsn&&(r.dataset.dsn=t.dsn),r.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},u()&&!1===t.debug&&(r.dataset.debug="false"),document.head.appendChild(r)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}},1952:function(e,t,n){"use strict";n.d(t,{SpeedInsights:function(){return y}});var r=n(2265),i=n(99376),a=()=>{window.si||(window.si=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.siq=window.siq||[]).push(t)})};function o(){return false}function u(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}var s="https://va.vercel-scripts.com/v1/speed-insights",c="".concat(s,"/script.js"),l="".concat(s,"/script.debug.js");function d(e){let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let n=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("undefined"!=typeof window)||null===t.route)return null;a();let n=!!t.dsn,r=t.scriptSrc||(n?c:"/_vercel/speed-insights/script.js");if(document.head.querySelector('script[src*="'.concat(r,'"]')))return null;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend));let i=document.createElement("script");return i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(t.framework?"/".concat(t.framework):""),i.dataset.sdkv="1.0.12",t.sampleRate&&(i.dataset.sampleRate=t.sampleRate.toString()),t.route&&(i.dataset.route=t.route),t.endpoint&&(i.dataset.endpoint=t.endpoint),t.dsn&&(i.dataset.dsn=t.dsn),i.onerror=()=>{console.log("[Vercel Speed Insights] Failed to load script from ".concat(r,". Please check if any content blockers are enabled and try again."))},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=null!=e?e:void 0}}}({framework:e.framework||"react",...e});n&&(t.current=n.setRoute)}},[e.route]),null}var f=()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,n=(0,i.usePathname)(),r={...Object.fromEntries(t.entries()),...e||{}};return e?function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=u(r);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,r]of e)if(Array.isArray(r)){let e=u(r.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,r):null};function h(e){let t=f();return r.createElement(d,{route:t,...e,framework:"next"})}function y(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(h,{...e}))}},94197:function(e,t,n){"use strict";function r(e,t={}){let n;try{n=e.getClient(t)}catch{}return n}n.d(t,{s:function(){return r}})},93316:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(82538),i=n(93715),a=n(19775),o=n(31669),u=n(13102);async function s(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new u.$S({connector:r});let[i,a]=await Promise.all([r.getAccounts(),r.getChainId()]);n={accounts:i,chainId:a,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new u.aH;let s=t.chainId??n.chainId,c=await n.connector.getChainId();if(c!==n.chainId)throw new u.XZ({connectionChainId:n.chainId,connectorChainId:c});let l=n.connector;if(l.getClient)return l.getClient({chainId:s});let d=(0,a.T)(t.account??n.accounts[0]);if(d.address=(0,o.K)(d.address),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new u.JK({address:d.address,connector:l});let f=e.chains.find(e=>e.id===s),h=await n.connector.getProvider({chainId:s});return(0,r.e)({account:d,chain:f,name:"Connector Client",transport:e=>(0,i.P)(h)({...e,retryCount:0})})}},37691:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(28766),i=n(44199);function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.L,"readContract")(a)}},75079:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(20010),i=n(94797),a=n(44199);async function o(e,t){let{allowFailure:n=!0,chainId:r,contracts:o,...u}=t,s=e.getClient({chainId:r});return(0,a.s)(s,i.A,"multicall")({allowFailure:n,contracts:o,...u})}var u=n(37691);async function s(e,t){let{allowFailure:n=!0,blockNumber:i,blockTag:a,...s}=t,c=t.contracts;try{let t={};for(let[n,r]of c.entries()){let i=r.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:r,index:n})}let r=(await Promise.all(Object.entries(t).map(([t,r])=>o(e,{...s,allowFailure:n,blockNumber:i,blockTag:a,chainId:Number.parseInt(t),contracts:r.map(({contract:e})=>e)}
1)))).flat(),u=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return r.reduce((e,t,n)=>(e&&(e[u[n]]=t),e),[])}catch(o){if(o instanceof r.uq)throw o;let t=()=>c.map(t=>(0,u.L)(e,{...t,blockNumber:i,blockTag:a}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}},635:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return E}});var i=n(82538);let a=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,o=e(r.getState());a=n=>{let r=e(n);if(!i(o,r)){let e=o;t(o=r,e)}},(null==n?void 0:n.fireImmediately)&&t(o,o)}return i(a)},e(t,n,r)},o=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>o(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>o(t)(e)}}},u=(e,t)=>(n,r,i)=>{let a,u={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=n.getItem(e))?t:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=new Set,l=new Set,d=u.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),n(...e)},r,i);let f=()=>{let e=u.partialize({...r()});return d.setItem(u.name,{state:e,version:u.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let y=e((...e)=>{n(...e),f()},r,i);i.getInitialState=()=>y;let g=()=>{var e,t;if(!d)return;s=!1,c.forEach(e=>{var t;return e(null!=(t=r())?t:y)});let i=(null==(t=u.onRehydrateStorage)?void 0:t.call(u,null!=(e=r())?e:y))||void 0;return o(d.getItem.bind(d))(u.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===u.version)return[!1,e.state];if(u.migrate)return[!0,u.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[i,o]=e;if(n(a=u.merge(o,null!=(t=r())?t:y),!0),i)return f()}).then(()=>{null==i||i(a,void 0),a=r(),s=!0,l.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{u={...u,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},u.skipHydration||g(),a||y},s=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},c=e=>e?s(e):s;var l=n(31669),d=n(77014),f=n(39504),h=n(49287),y=n(59455),g=n(13102),v=n(14478),m=n(53738);function p(e={}){let t,n,r,i;let{shimDisconnect:a=!0,unstable_shimAsyncInject:o}=e;function u(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...w[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,m.K)(s=>({get icon(){return u().icon},get id(){return u().id},get name(){return u().name},get supportsSimulation(){return!0},type:p.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(r||(r=this.onConnect.bind(this),n.on("connect",r)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:o,isReconnecting:u}={}){let c=await this.getProvider();if(!c)throw new v.M;let f=[];if(u)f=await this.getAccounts().catch(()=>[]);else if(a)try{let e=await c.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(f=e[0]?.caveats?.[0]?.value?.map(e=>l.K(e))).length>0&&(f=await this.getAccounts())}catch(e){if(e.code===d.ab.code)throw new d.ab(e);if(e.code===d.pT.code)throw e}try{f?.length||u||(f=(await c.request({method:"eth_requestAccounts"})).map(e=>(0,l.K)(e))),r&&(c.removeListener("connect",r),r=void 0),t||(t=this.onAccountsChanged.bind(this),c.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),c.on("chainChanged",n)),i||(i=this.onDisconnect.bind(this),c.on("disconnect",i));let h=await this.getChainId();if(o&&h!==o){let e=await this.switchChain({chainId:o}).catch(e=>{if(e.code===d.ab.code)throw e;return{id:h}});h=e?.id??h}return a&&await s.storage?.removeItem(`${this.id}.disconnected`),e.target||await s.storage?.setItem("injected.connected",!0),{accounts:f,chainId:h}}catch(e){if(e.code===d.ab.code)throw new d.ab(e);if(e.code===d.pT.code)throw new d.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new v.M;n&&(t.removeListener("chainChanged",n),n=void 0),i&&(t.removeListener("disconnect",i),i=void 0),r||(r=this.onConnect.bind(this),t.on("connect",r));try{await (0,f.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}a&&await s.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await s.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new v.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,l.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new v.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=u();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?b(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
1,async isAuthorized(){try{if(a&&await s.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await s.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==o&&!1!==o){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof o?o:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new v.M}return!!(await (0,h.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new v.M;let r=s.chains.find(e=>e.id===t);if(!r)throw new d.x3(new g.X4);let i=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(s.emitter.off("change",n),e())};s.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,y.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&s.emitter.emit("change",{chainId:t})}),i]),r}catch(a){if(4902===a.code||a?.data?.originalError?.code===4902)try{let a,o;let{default:u,...c}=r.blockExplorers??{};e?.blockExplorerUrls?a=e.blockExplorerUrls:u&&(a=[u.url,...Object.values(c).map(e=>e.url)]),o=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let l={blockExplorerUrls:a,chainId:(0,y.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:o};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[l]}).then(async()=>{if(await this.getChainId()===t)s.emitter.emit("change",{chainId:t});else throw new d.ab(Error("User rejected switch after adding network."))}),i]),r}catch(e){throw new d.ab(e)}if(a.code===d.ab.code)throw new d.ab(a);throw new d.x3(a)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(s.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),a&&await s.storage?.removeItem(`${this.id}.disconnected`)}else s.emitter.emit("change",{accounts:e.map(e=>(0,l.K)(e))})},onChainChanged(e){let t=Number(e);s.emitter.emit("change",{chainId:t})},async onConnect(e){let a=await this.getAccounts();if(0===a.length)return;let o=Number(e.chainId);s.emitter.emit("connect",{accounts:a,chainId:o});let u=await this.getProvider();u&&(r&&(u.removeListener("connect",r),r=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),u.on("chainChanged",n)),i||(i=this.onDisconnect.bind(this),u.on("disconnect",i)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(s.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),i&&(t.removeListener("disconnect",i),i=void 0),r||(r=this.onConnect.bind(this),t.on("connect",r))))}}))}p.type="injected";let w={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:b(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>b(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","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:b(e,"isPhantom")}};function b(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}var C=n(87336);class I{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 C.v})}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,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}var q=n(51153);let P=256;var S=n(19676);function E(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:o=(0,q.o)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:q.w}),syncConnectedChain:s=!0,ssr:l=!1,...d}=e,f="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>
1e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,h=c(()=>d.chains),y=c(()=>{let e=[],t=new Set;for(let n of d.connectors??[]){let r=v(n);if(e.push(r),!l&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!l&&f)for(let n of f.getProviders())t.has(n.info.rdns)||e.push(v(m(n)));return e});function v(e){let t=new I(function(e=11){if(!r||P+e>512){r="",P=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(P,P+++e)}()),n={...e({emitter:t,chains:h.getState(),storage:o,transports:d.transports}),emitter:t,uid:t.uid};return t.on("connect",_),n.setup?.(),n}function m(e){let{info:t}=e,n=e.provider;return p({target:{...t,id:t.rdns,provider:n}})}let w=new Map;function b(){return{chainId:h.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let C="0.0.0-canary-";t=S.i.startsWith(C)?Number.parseInt(S.i.replace(C,"")):Number.parseInt(S.i.split(".")[0]??"0");let E=c(a(o?u(b,{migrate(e,n){if(n===t)return e;let r=b(),i=M(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:a}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=M(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:l,storage:o,version:t}):b));function M(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&h.getState().some(t=>t.id===e.chainId)?e.chainId:t}function O(e){E.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function _(e){"connecting"!==E.getState().status&&"reconnecting"!==E.getState().status&&E.setState(t=>{let n=y.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",O),n.emitter.listenerCount("change")||n.emitter.on("change",O),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",k),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function k(e){E.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",O),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",k),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",_)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return E.setState(b()),s&&E.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(h.getState().some(t=>t.id===e))return E.setState(t=>({...t,chainId:e??t.chainId}))}),f?.subscribe(e=>{let t=new Set,n=new Set;for(let e of y.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let r=[];for(let i of e){if(n.has(i.info.rdns))continue;let e=v(m(i));t.has(e.id)||r.push(e)}(!o||E.persist.hasHydrated())&&y.setState(e=>[...e,...r],!0)}),{get chains(){return h.getState()},get connectors(){return y.getState()},storage:o,getClient:function(e={}){let t;let n=e.chainId??E.getState().chainId,r=h.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new g.X4;{let e=w.get(E.getState().chainId);if(e&&!r)return e;if(!r)throw new g.X4}{let e=w.get(n);if(e)return e}if(d.client)t=d.client({chain:r});else{let e=r.id,n=h.getState().map(e=>e.id),a={};for(let[t,r]of Object.entries(d))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)a[t]=r[e];else{if(n.some(e=>e in r))continue;a[t]=r}}else a[t]=r}t=(0,i.e)({...a,chain:r,batch:a.batch??{multicall:!0},transport:t=>d.transports[e]({...t,connectors:y})})}return w.set(n,t),t},get state(){return E.getState()},setState(e){let t;t="function"==typeof e?e(E.getState()):e;let n=b();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),E.setState(t,!0)}
1,subscribe:(e,t,n)=>E.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:f,store:E,ssr:!!l,syncConnectedChain:s,transports:d.transports,chains:{setState(e){let t="function"==typeof e?e(h.getState()):e;if(0!==t.length)return h.setState(t,!0)},subscribe:e=>h.subscribe(e)},connectors:{providerDetailToConnector:m,setup:v,setState:e=>y.setState("function"==typeof e?e(y.getState()):e,!0),subscribe:e=>y.subscribe(e)},events:{change:O,connect:_,disconnect:k}}}}},51153:function(e,t,n){"use strict";function r(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function i(e,t){return e.slice(0,t).join(".")||"."}function a(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function o(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,o=[],u=[];return function(s,c){if("object"==typeof c){if(o.length){let e=a(o,this);0===e?o[o.length]=this:(o.splice(e),u.splice(e)),u[u.length]=s;let n=a(o,c);if(0!==n)return r?t.call(this,s,c,i(u,n)):`[ref=${i(u,n)}]`}else o[0]=c,u[0]=s}return n?e.call(this,s,c):c}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}function u(e){let{deserialize:t=r,key:n="wagmi",serialize:i=o,storage:a=s}=e;function u(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...a,key:n,async getItem(e,r){let i=a.getItem(`${n}.${e}`),o=await u(i);return o?t(o)??null:r??null},async setItem(e,t){let r=`${n}.${e}`;null===t?await u(a.removeItem(r)):await u(a.setItem(r,i(t)))},async removeItem(e){await u(a.removeItem(`${n}.${e}`))}}}n.d(t,{o:function(){return u},w:function(){return s}});let s={getItem:()=>null,setItem:()=>{},removeItem:()=>{}}},14478:function(e,t,n){"use strict";n.d(t,{M:function(){return i},O:function(){return a}});var r=n(26129);class i extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class a extends r.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},31213:function(e,t,n){"use strict";n.d(t,{Dr:function(){return r}});let r={getItem:e=>"undefined"==typeof window?null:function(e,t){let n=e.split("; ").find(e=>e.startsWith(`${t}=`));if(n)return n.substring(t.length+1)}(document.cookie,e)??null,setItem(e,t){"undefined"!=typeof window&&(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){"undefined"!=typeof window&&(document.cookie=`${e}=;max-age=-1;path=/`)}}},10816:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(98173);function i(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(r.Bd[e])}},49813:function(e,t,n){"use strict";n.d(t,{useBalance:function(){return v}});var r=n(72932),i=n(36826),a=n(39502),o=n(32807),u=n(44199),s=n(10816),c=n(75079);async function l(e,t){let{address:n,blockNumber:c,blockTag:l,chainId:f,token:h,unit:y="ether"}=t;if(h)try{return await d(e,{balanceAddress:n,chainId:f,symbolType:"string",tokenAddress:h})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await d(e,{balanceAddress:n,chainId:f,symbolType:"bytes32",tokenAddress:h}),a=(0,r.rR)((0,i.f)(t.symbol,{dir:"right"}));return{...t,symbol:a}}throw t}let g=e.getClient({chainId:f}),v=(0,u.s)(g,o.s,"getBalance"),m=await v(c?{address:n,blockNumber:c}:{address:n,blockTag:l}),p=e.chains.find(e=>e.id===f)??g.chain;return{decimals:p.nativeCurrency.decimals,formatted:(0,a.b)(m,(0,s.W)(y)),symbol:p.nativeCurrency.symbol,value:m}}async function d(e,t){let{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:o,unit:u}=t,l={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:o},[d,f,h]=await (0,c.J)(e,{allowFailure:!1,contracts:[{...l,functionName:"balanceOf",args:[n],chainId:r},{...l,functionName:"decimals",chainId:r},{...l,functionName:"symbol",chainId:r}]}),y=(0,a.b)(d??"0",(0,s.W)(u??f));return{decimals:f,formatted:y,symbol:h,value:d}}var f=n(27534),h=n(63040),y=n(44005),g=n(12364);function v(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,a=(0,g.useConfig)(n),o=(0,y.useChainId)({config:a}),u=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await l(e,{...i,address:n})??null},queryKey:function(e={}){return["balance",(0,f.OP)(e)]}(t)}}(a,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:o}),s=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,h.aM)({...i,...u,enabled:s})}},394:function(e,t,n){"use strict";n.d(t,{useBlock:function(){return f}});var r=n(29827),i=n(74587),a=n(44199);async function o(e,t={}){let{chainId:n,...r}=t,o=e.getClient({chainId:n}),u=(0,a.s)(o,i.Q,"getBlock");return{...await u(r),chainId:o.chain.id}}var u=n(27534),s=n(63040),c=n(44005),l=n(12364),d=n(49487);function f(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:i={},watch:a}=n,f=(0,l.useConfig)(n),h=(0,r.NL)(),y=(0,c.useChainId)({config:f}),g=null!==(e=n.chainId)&&void 0!==e?e:y,v=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await o(e,r)??null},queryKey:function(e={}){return["block",(0,u.OP)(e)]}(t)}}(f,{...n,chainId:g}),m=!!(null===(t=i.enabled)||void 0===t||t);return(0,d.useWatchBlocks)({...{config:n.config,chainId:n.chainId,..."object"==typeof a?a:{}},enabled:!!(m&&("object"==typeof a?a.enabled:a)),onBlock(e){h.setQueryData(v.queryKey,e)}}),(0,s.aM)({...i,...v,enabled:m})}},23383:function(e,t,n){"use strict";n.d(t,{useBlockNumber:function(){return d}});var r=n(29827),i=n(13708),a=n(44199),o=n(27534),u=n(63040),s=n(44005),c=n(12364),l=n(13359);function d(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:d={},watch:f}=n,h=(0,c.useConfig)(n),y=(0,r.NL)(),g=(0,s.useChainId)({config:h}),v=null!==(e=n.chainId)&&void 0!==e?e:g,m=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,o=e.getClient({chainId:n});return(0,a.s)(o,i.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,o.OP)(e)]}(t)}}(h,{...n,chainId:v});return(0,l.useWatchBlockNumber)({...{config:n.config,chainId:n.chainId,..."object"==typeof f?f:{}},enabled:!!((null===(t=d.enabled)||void 0===t||t)&&("object"==typeof f?f.enabled:f)),onBlockNumber(e){y.setQueryData(m.queryKey,e)}}),(0,u.aM)({...d,...m})}},69372:function(e,t,n){"use strict";n.d(t,{useBlockTransactionCount:function(){return c}});var r=n(85682),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,c=(0,s.useConfig)(t),l=(0,u.useChainId)({config:c}
1),d=null!==(e=t.chainId)&&void 0!==e?e:l,f=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...a}=t[1];return await function(e,t={}){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.c,"getBlockTransactionCount")(a)}(e,a)??null},queryKey:function(e={}){return["blockTransactionCount",(0,a.OP)(e)]}(t)}}(c,{...t,chainId:d});return(0,o.aM)({...n,...f})}},18716:function(e,t,n){"use strict";n.d(t,{useBytecode:function(){return l}});var r=n(56570),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.C,"getBytecode")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,l=(0,c.useConfig)(n),d=(0,s.useChainId)({config:l}),f=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await a(e,{...i,address:n})??null},queryKey:["getBytecode",(0,o.OP)(t)]}}(l,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:d}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,u.aM)({...i,...f,enabled:h})}},45432:function(e,t,n){"use strict";n.d(t,{useCall:function(){return l}});var r=n(56969),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.R,"call")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,r=(0,c.useConfig)(t),i=(0,s.useChainId)({config:r}),l=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await a(e,{...r})??null},queryKey:["call",(0,o.OP)(t)]}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,u.aM)({...n,...l})}},54283:function(e,t,n){"use strict";n.d(t,{useChains:function(){return s}});var r=n(52123);let i=[];function a(e){let t=e.chains;return(0,r.v)(i,t)?i:(i=t,t)}var o=n(2265),u=n(12364);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.useConfig)(e);return(0,o.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>a(t),()=>a(t))}},94825:function(e,t,n){"use strict";n.d(t,{useClient:function(){return o}});var r=n(94197),i=n(35195),a=n(12364);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.useConfig)(e);return(0,i.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,r.s)(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>(0,r.s)(t,e),()=>(0,r.s)(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},21267:function(e,t,n){"use strict";n.d(t,{useConnectorClient:function(){return d}});var r=n(29827),i=n(93316),a=n(27534),o=n(2265),u=n(63040),s=n(64707),c=n(44005),l=n(12364);function d(){var e,t,n;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:f={},...h}=d,y=(0,l.useConfig)(h),g=(0,r.NL)(),{address:v,connector:m,status:p}=(0,s.useAccount)({config:y}),w=(0,c.useChainId)({config:y}),b=null!==(e=d.connector)&&void 0!==e?e:m,{queryKey:C,...I}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:a,scopeKey:o,...u}=n[1];return(0,i.e)(e,{...u,connector:r})},queryKey:function(e={}){let{connector:t,...n}=e;return["connectorClient",{...(0,a.OP)(n),connectorUid:t?.uid}]}(t)}}(y,{...d,chainId:null!==(t=d.chainId)&&void 0!==t?t:w,connector:b}),q=!!(("connected"===p||"reconnecting"===p&&(null==b?void 0:b.getProvider))&&(null===(n=f.enabled)||void 0===n||n)),P=(0,o.useRef)(v);return(0,o.useEffect)(()=>{let e=P.current;!v&&e?(g.removeQueries({queryKey:C}),P.current=void 0):v!==e&&(g.invalidateQueries({queryKey:C}),P.current=v)},[v,g]),(0,u.aM)({...f,...I,queryKey:C,enabled:q,staleTime:Number.POSITIVE_INFINITY})}},53160:function(e,t,n){"use strict";n.d(t,{useDeployContract:function(){return c}});var r=n(21770),i=n(79078),a=n(44199),o=n(93316);async function u(e,t){let n;let{account:r,chainId:u,connector:s,...c}=t;n="object"==typeof r&&r?.type==="local"?e.getClient({chainId:u}):await (0,o.e)(e,{account:r??void 0,chainId:u,connector:s});let l=(0,a.s)(n,i.P,"deployContract");return await l({...c,...r?{account:r}:{},chain:u?{id:u}:null})}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["deployContract"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,deployContract:a,deployContractAsync:o}}},28752:function(e,t,n){"use strict";n.d(t,{useEnsAddress:function(){return c}});var r=n(52530),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:c,query:l={}}=n,d=(0,s.useConfig)(n),f=(0,u.useChainId)({config:d}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:a,...o}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.O,"getEnsAddress")(a)}(e,{...o,name:n})},queryKey:function(e={}){return["ensAddress",(0,a.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),y=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:y})}},67970:function(e,t,n){"use strict";n.d(t,{useEnsResolver:function(){return c}});var r=n(32457),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:c,query:l={}}=n,d=(0,s.useConfig)(n),f=(0,u.useChainId)({config:d}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:a,...o}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.S,"getEnsResolver")(a)}(e,{...o,name:n})},queryKey:function(e={}){return["ensResolver",(0,a.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),y=!!(c&&(null===(t=l.enabled)||void 0===t||t));return(0,o.aM)({...l,...h,enabled:y})}},67010:function(e,t,n){"use strict";n.d(t,{useEnsText:function(){return c}});var r=n(99861),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{key:c,name:l,query:d={}}=n,f=(0,s.useConfig)(n),h=(0,u.useChainId)({config:f}),y=function(e,t={}){return{async queryFn({queryKey:t}){let{key:n,name:a,scopeKey:o,...u}=t[1];if(!n||!a)throw Error("key and name are required");return function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.g,"getEnsText")(a)}(e,{...u,key:n,name:a})},queryKey:function(e={}){return["ensText",(0,a.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),g=!!(c&&l&&(null===(t=d.enabled)||void 0===t||t));return(0,o.aM)({...d,...y,enabled:g})}},34087:function(e,t,n){"use strict";n.d(t,{useEstimateFeesPerGas:function(){return f}});var r=n(39502),i=n(6458),a=n(44199),o=n(10816);async function u(e,t={}){let{chainId:n,formatUnits:u="gwei",...s}=t,c=e.getClient({chainId:n}),l=(0,a.s)(c,i.X,"estimateFeesPerGas"),{gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:h}=await l({...s,chain:c.chain}),y=(0,o.W)(u);return{formatted:{gasPrice:d?(0,r.b)(d,y):void 0,maxFeePerGas:f?(0,r.b)(f,y):void 0,maxPriorityFeePerGas:h?(0,r.b)(h,y):void 0},gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:h}}var s=n(27534),c=n(63040),l=n(44005),d=n(12364);function f(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,r=(0,d.useConfig)(t),i=(0,l.useChainId)({config:r}),a=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return u(e,r)},queryKey:function(e={}){return["estimateFeesPerGas",(0,s.OP)(e)]}(t)}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,c.aM)({...n,...a}
1)}},25880:function(e,t,n){"use strict";n.d(t,{useEstimateGas:function(){return f}});var r=n(8741),i=n(44199),a=n(93316);async function o(e,t){let n;let{chainId:o,connector:u,...s}=t;n=t.account?t.account:(await (0,a.e)(e,{account:t.account,chainId:o,connector:u})).account;let c=e.getClient({chainId:o});return(0,i.s)(c,r.Q,"estimateGas")({...s,account:n})}var u=n(27534),s=n(63040),c=n(44005),l=n(12364),d=n(21267);function f(){var e,t,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:i,query:a={}}=r,f=(0,l.useConfig)(r),{data:h}=(0,d.useConnectorClient)({connector:i,query:{enabled:void 0===r.account}}),y=null!==(e=r.account)&&void 0!==e?e:null==h?void 0:h.account,g=(0,c.useChainId)({config:f}),v=function(e,t={}){return{async queryFn({queryKey:n}){let{connector:r}=t,{account:i,scopeKey:a,...u}=n[1];if(!i&&!r)throw Error("account or connector is required");return o(e,{account:i,connector:r,...u})},queryKey:function(e={}){let{connector:t,...n}=e;return["estimateGas",(0,u.OP)(n)]}(t)}}(f,{...r,account:y,chainId:null!==(t=r.chainId)&&void 0!==t?t:g,connector:i}),m=!!((y||i)&&(null===(n=a.enabled)||void 0===n||n));return(0,s.aM)({...a,...v,enabled:m})}},26290:function(e,t,n){"use strict";n.d(t,{useEstimateMaxPriorityFeePerGas:function(){return l}});var r=n(96174),i=n(44199);async function a(e,t={}){let{chainId:n}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r._,"estimateMaxPriorityFeePerGas")({chain:a.chain})}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,r=(0,c.useConfig)(t),i=(0,s.useChainId)({config:r}),l=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return a(e,r)},queryKey:function(e={}){return["estimateMaxPriorityFeePerGas",(0,o.OP)(e)]}(t)}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,u.aM)({...n,...l})}},75888:function(e,t,n){"use strict";n.d(t,{useFeeHistory:function(){return c}});var r=n(2054),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockCount:c,rewardPercentiles:l,query:d={}}=n,f=(0,s.useConfig)(n),h=(0,u.useChainId)({config:f}),y=function(e,t={}){return{async queryFn({queryKey:t}){let{blockCount:n,rewardPercentiles:a,scopeKey:o,...u}=t[1];if(!n)throw Error("blockCount is required");if(!a)throw Error("rewardPercentiles is required");return await function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.Z,"getFeeHistory")(a)}(e,{...u,blockCount:n,rewardPercentiles:a})??null},queryKey:function(e={}){return["feeHistory",(0,a.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),g=!!(c&&l&&(null===(t=d.enabled)||void 0===t||t));return(0,o.aM)({...d,...y,enabled:g})}},77494:function(e,t,n){"use strict";n.d(t,{useGasPrice:function(){return c}});var r=n(25283),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,c=(0,s.useConfig)(t),l=(0,u.useChainId)({config:c}),d=null!==(e=t.chainId)&&void 0!==e?e:l,f=function(e,t={}){return{async queryFn({queryKey:t}){let{scopeKey:n,...a}=t[1];return await function(e,t={}){let{chainId:n}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.o,"getGasPrice")({})}(e,a)??null},queryKey:function(e={}){return["gasPrice",(0,a.OP)(e)]}(t)}}(c,{...t,chainId:d});return(0,o.aM)({...n,...f})}},38862:function(e,t,n){"use strict";n.d(t,{useInfiniteReadContracts:function(){return s}});var r=n(75079),i=n(27534),a=n(63040),o=n(44005),u=n(12364);function s(e){var t,n;let{contracts:s=[],query:c}=e,l=(0,u.useConfig)(e),d=(0,o.useChainId)({config:l}),f={...(n={...e,chainId:d,contracts:s,query:c}).query,async queryFn({pageParam:e,queryKey:t}){let{contracts:i}=n,{cacheKey:a,scopeKey:o,...u}=t[1];return await (0,r.J)(l,{...u,contracts:i(e)})},queryKey:function(e){let{contracts:t,query:n,...r}=e;return["infiniteReadContracts",(0,i.OP)(r)]}(n)};return(0,a.NS)({...c,...f,initialPageParam:f.initialPageParam,structuralSharing:null!==(t=c.structuralSharing)&&void 0!==t?t:i.if})}},36627:function(e,t,n){"use strict";n.d(t,{usePrepareTransactionRequest:function(){return d}});var r=n(34467),i=n(44199),a=n(24380);async function o(e,t){let{account:n,chainId:o,...u}=t,s=n??(0,a.D)(e).address,c=e.getClient({chainId:o});return(0,i.s)(c,r.Z,"prepareTransactionRequest")({...u,...s?{account:s}:{}})}var u=n(27534),s=n(63040),c=n(44005),l=n(12364);function d(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{to:r,query:i={}}=n,a=(0,l.useConfig)(n),d=(0,c.useChainId)({config:a}),f=function(e,t={}){return{queryFn({queryKey:t}){let{scopeKey:n,to:r,...i}=t[1];if(!r)throw Error("to is required");return o(e,{to:r,...i})},queryKey:["prepareTransactionRequest",(0,u.OP)(t)]}}(a,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:d}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,s.aM)({...i,...f,enabled:h})}},84690:function(e,t,n){"use strict";n.d(t,{useProof:function(){return l}});var r=n(90587),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.S,"getProof")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,storageKeys:i,query:l={}}=n,d=(0,c.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,storageKeys:i,...o}=t[1];if(!n||!i)throw Error("address and storageKeys are required");return a(e,{...o,address:n,storageKeys:i})},queryKey:["getProof",(0,o.OP)(t)]}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),y=!!(r&&i&&(null===(t=l.enabled)||void 0===t||t));return(0,u.aM)({...l,...h,enabled:y})}},32917:function(e,t,n){"use strict";n.d(t,{usePublicClient:function(){return s}});var r=n(26754),i=n(94197);function a(e,t={}){let n=(0,i.s)(e,t);return n?.extend(r.I)}var o=n(35195),u=n(12364);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.useConfig)(e);return(0,o.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>a(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>a(t,e),()=>a(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},27323:function(e,t,n){"use strict";n.d(t,{useReadContract:function(){return s}});var r=n(37691),i=n(27534),a=n(63040),o=n(44005),u=n(12364);function s(){var e,t,n;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:c,address:l,functionName:d,query:f={}}=s,h=s.code,y=(0,u.useConfig)(s),g=(0,o.useChainId)({config:y}),v=function(e,t={}){return{async queryFn({queryKey:n}){let i=t.abi;if(!i)throw Error("abi is required");let{functionName:a,scopeKey:o,...u}=n[1],s=(()=>{let e=n[1];if(e.address)return{address:e.address};if(e.code)return{code:e.code};throw Error("address or code is required")})();if(!a)throw Error("functionName is required");return(0,r.L)(e,{abi:i,functionName:a,args:u.args,...s,...u})},queryKey:function(e={}){let{abi:t,...n}=e;return["readContract",(0,i.OP)(n)]}(t)}}(y,{...s,chainId:null!==(e=s.chainId)&&void 0!==e?e:g}),m=!!((l||h)&&c&&d&&(null===(t=f.enabled)||void 0===t||t));return(0,a.aM)({...f,...v,enabled:m,structuralSharing:null!==(n=f.structuralSharing)&&void 0!==n?n:i.if})}},16986:function(e,t,n){"use strict";n.d(t,{useReadContracts:function(){return c}});var r=n(75079),i=n(27534),a=n(2265),o=n(63040),u=n(44005),s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{contracts:n=[],query:c={}}=t,l=(0,s.useConfig)(t),d=(0,u.useChainId)({config:l}),f=function(e,t={}){return{async queryFn({queryKey:n}){let i=[],a=n[1].contracts.length;for(let e=0;e<a;e++){let r=n[1].contracts[e],a=(t.contracts?.[e]).abi;i.push({...r,abi:a})}let{scopeKey:o,...u}=n[1];return(0,r.J)(e,{...u,contracts:i})},queryKey:function(e={}){let t=[];for(let n of e.contracts??[]){let{abi:r,...i}=n;t.push({...i,chainId:i.chainId??e.chainId})}return["readContracts",(0,i.OP)({...e,contracts:t})]}(t)}}(l,{...t,chainId:d}),h=(0,a.useMemo)(()=>{var e;let t=!1;for(let e of n){let{abi:n,address:r,functionName:i}=e;if(!n||!r||!i){t=!1;break}t=!0}return!!(t&&(null===(e=c.enabled)||void 0===e||e))},[n,c.enabled]);return(0,o.aM)({...f,...c,enabled:h,structuralSharing:null!==(e=c.structuralSharing)&&void 0!==e?e:i.if})}},91300:function(e,t,n){"use strict";n.d(t,{useReconnect:function(){return o}});var r=n(21770),i=n(54026),a=n(12364);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,a.useConfig)(e),{mutate:o,mutateAsync:u,...s}=(0,r.D)({...t,mutationFn:e=>(0,i.G)(n,e),mutationKey:["reconnect"]});return{...s,connectors:n.connectors,reconnect:o,reconnectAsync:u}}},45249:function(e,t,n){"use strict";n.d(t,{useSendTransaction:function(){return c}});var r=n(21770),i=n(19443),a=n(44199),o=n(93316);async function u(e,t){let n;let{account:r,chainId:u,connector:s,...c}=t;n="object"==typeof r&&r?.type==="local"?e.getClient({chainId:u}):await (0,o.e)(e,{account:r??void 0,chainId:u,connector:s});let l=(0,a.s)(n,i.T,"sendTransaction");return await l({...c,...r?{account:r}:{},chain:u?{id:u}:null})}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["sendTransaction"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,sendTransaction:a,sendTransactionAsync:o}}},19496:function(e,t,n){"use strict";n.d(t,{useSignMessage:function(){return c}});var r=n(21770),i=n(70550),a=n(44199),o=n(93316);async function u(e,t){let n;let{account:r,connector:u,...s}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,o.e)(e,{account:r,connector:u}),(0,a.s)(n,i.l,"signMessage")({...s,...r?{account:r}:{}})}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["signMessage"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,signMessage:a,signMessageAsync:o}}},83034:function(e,t,n){"use strict";n.d(t,{useSignTypedData:function(){return c}});var r=n(21770),i=n(69133),a=n(44199),o=n(93316);async function u(e,t){let n;let{account:r,connector:u,...s}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,o.e)(e,{account:r,connector:u}),(0,a.s)(n,i.x,"signTypedData")({...s,...r?{account:r}:{}})}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["signTypedData"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,signTypedData:a,signTypedDataAsync:o}}},52622:function(e,t,n){"use strict";n.d(t,{useSimulateContract:function(){return f}});var r=n(21541),i=n(44199),a=n(93316);async function o(e,t){let n;let{abi:o,chainId:u,connector:s,...c}=t;n=t.account?t.account:(await (0,a.e)(e,{chainId:u,connector:s})).account;let l=e.getClient({chainId:u}),d=(0,i.s)(l,r.a,"simulateContract"),{result:f,request:h}=await d({...c,abi:o,account:n});return{chainId:l.chain.id,result:f,request:{...h,chainId:u}}}var u=n(27534),s=n(63040),c=n(44005),l=n(12364),d=n(21267);function f(){var e,t,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:i,address:a,connector:f,functionName:h,query:y={}}=r,g=(0,l.useConfig)(r),{data:v}=(0,d.useConnectorClient)({connector:f,query:{enabled:void 0===r.account}}),m=(0,c.useChainId)({config:g}),p=function(e,t={}){return{async queryFn({queryKey:n}){let{abi:r,connector:i}=t;if(!r)throw Error("abi is required");let{scopeKey:a,...u}=n[1],{address:s,functionName:c}=u;if(!s)throw Error("address is required");if(!c)throw Error("functionName is required");return o(e,{abi:r,connector:i,...u})},queryKey:function(e={}){let{abi:t,connector:n,...r}=e;return["simulateContract",(0,u.OP)(r)]}(t)}}(g,{...r,account:null!==(e=r.account)&&void 0!==e?e:null==v?void 0:v.account,chainId:null!==(t=r.chainId)&&void 0!==t?t:m}),w=!!(i&&a&&h&&(null===(n=y.enabled)||void 0===n||n));return(0,s.aM)({...y,...p,enabled:w})}},37635:function(e,t,n){"use strict";n.d(t,{useStorageAt:function(){return l}});var r=n(14205),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.Y,"getStorageAt")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,slot:i,query:l={}}=n,d=(0,c.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e,t={}){return{queryFn({queryKey:t}){let{address:n,slot:r,scopeKey:i,...o}=t[1];if(!n||!r)throw Error("address and slot are required");return a(e,{...o,address:n,slot:r})},queryKey:["getStorageAt",(0,o.OP)(t)]}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),y=!!(r&&i&&(null===(t=l.enabled)||void 0===t||t));return(0,u.aM)({...l,...h,enabled:y})}},17897:function(e,t,n){"use strict";n.d(t,{useSwitchAccount:function(){return s}});var r=n(21770),i=n(13102);
1async function a(e,t){let{connector:n}=t,r=e.state.connections.get(n.uid);if(!r)throw new i.aH;return await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,current:n.uid})),{accounts:r.accounts,chainId:r.chainId}}var o=n(12364),u=n(99552);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,o.useConfig)(e),{mutate:i,mutateAsync:s,...c}=(0,r.D)({...t,mutationFn:e=>a(n,e),mutationKey:["switchAccount"]});return{...c,connectors:(0,u.useConnections)({config:n}).map(e=>e.connector),switchAccount:i,switchAccountAsync:s}}},64647:function(e,t,n){"use strict";n.d(t,{useSwitchChain:function(){return c}});var r=n(21770),i=n(13102),a=n(14478);async function o(e,t){let{addEthereumChainParameter:n,chainId:r}=t,o=e.state.connections.get(t.connector?.uid??e.state.current);if(o){let e=o.connector;if(!e.switchChain)throw new a.O({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let u=e.chains.find(e=>e.id===r);if(!u)throw new i.X4;return e.setState(e=>({...e,chainId:r})),u}var u=n(54283),s=n(12364);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,s.useConfig)(e),{mutate:i,mutateAsync:a,...c}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["switchChain"]});return{...c,chains:(0,u.useChains)({config:n}),switchChain:i,switchChainAsync:a}}},33017:function(e,t,n){"use strict";n.d(t,{useToken:function(){return y}});var r=n(20010),i=n(39502),a=n(72932),o=n(36826),u=n(10816),s=n(75079);async function c(e,t){let{address:n,chainId:c,formatUnits:l=18}=t;function d(e){return[{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:e}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:e}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]}]}try{let t=d("string"),a={address:n,abi:t,chainId:c},[o,f,h,y]=await (0,s.J)(e,{allowFailure:!0,contracts:[{...a,functionName:"decimals"},{...a,functionName:"name"},{...a,functionName:"symbol"},{...a,functionName:"totalSupply"}]});if(f.error instanceof r.uq)throw f.error;if(h.error instanceof r.uq)throw h.error;if(o.error)throw o.error;if(y.error)throw y.error;return{address:n,decimals:o.result,name:f.result,symbol:h.result,totalSupply:{formatted:(0,i.b)(y.result,(0,u.W)(l)),value:y.result}}}catch(t){if(t instanceof r.uq){let t={address:n,abi:d("bytes32"),chainId:c},[r,f,h,y]=await (0,s.J)(e,{allowFailure:!1,contracts:[{...t,functionName:"decimals"},{...t,functionName:"name"},{...t,functionName:"symbol"},{...t,functionName:"totalSupply"}]});return{address:n,decimals:r,name:(0,a.rR)((0,o.f)(f,{dir:"right"})),symbol:(0,a.rR)((0,o.f)(h,{dir:"right"})),totalSupply:{formatted:(0,i.b)(y,(0,u.W)(l)),value:y}}}throw t}}var l=n(27534),d=n(63040),f=n(44005),h=n(12364);function y(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,a=(0,h.useConfig)(n),o=(0,f.useChainId)({config:a}),u=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return c(e,{...i,address:n})},queryKey:function(e={}){return["token",(0,l.OP)(e)]}(t)}}(a,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:o}),s=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,d.aM)({...i,...u,enabled:s})}},71353:function(e,t,n){"use strict";n.d(t,{useTransaction:function(){return c}});var r=n(39277),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockHash:c,blockNumber:l,blockTag:d,hash:f,query:h={}}=n,y=(0,s.useConfig)(n),g=(0,u.useChainId)({config:y}),v=function(e,t={}){return{async queryFn({queryKey:t}){let{blockHash:n,blockNumber:a,blockTag:o,hash:u,index:s}=t[1];if(!n&&!a&&!o&&!u)throw Error("blockHash, blockNumber, blockTag, or hash is required");if(!u&&!s)throw Error("index is required for blockHash, blockNumber, or blockTag");let{scopeKey:c,...l}=t[1];return function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.f,"getTransaction")(a)}(e,l)},queryKey:function(e={}){return["transaction",(0,a.OP)(e)]}(t)}}(y,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:g}),m=!!(!(c&&l&&d&&f)&&(null===(t=h.enabled)||void 0===t||t));return(0,o.aM)({...h,...v,enabled:m})}},81574:function(e,t,n){"use strict";n.d(t,{useTransactionConfirmations:function(){return c}});var r=n(68847),i=n(44199),a=n(27534),o=n(63040),u=n(44005),s=n(12364);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:c,transactionReceipt:l,query:d={}}=n,f=(0,s.useConfig)(n),h=(0,u.useChainId)({config:f}),y=function(e,t={}){return{async queryFn({queryKey:t}){let{hash:n,transactionReceipt:a,scopeKey:o,...u}=t[1];if(!n&&!a)throw Error("hash or transactionReceipt is required");return await function(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.a,"getTransactionConfirmations")(a)}(e,{hash:n,transactionReceipt:a,...u})??null},queryKey:function(e={}){return["transactionConfirmations",(0,a.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),g=!!(!(c&&l)&&(c||l)&&(null===(t=d.enabled)||void 0===t||t));return(0,o.aM)({...d,...y,enabled:g})}},39488:function(e,t,n){"use strict";n.d(t,{useTransactionCount:function(){return l}});var r=n(16689),i=n(44199);async function a(e,t){let{address:n,blockNumber:a,blockTag:o,chainId:u}=t,s=e.getClient({chainId:u});return(0,i.s)(s,r.K,"getTransactionCount")(a?{address:n,blockNumber:a}:{address:n,blockTag:o})}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,l=(0,c.useConfig)(n),d=(0,s.useChainId)({config:l}),f=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await a(e,{...i,address:n})??null},queryKey:function(e={}){return["transactionCount",(0,o.OP)(e)]}(t)}}(l,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:d}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,u.aM)({...i,...f,enabled:h})}},63146:function(e,t,n){"use strict";n.d(t,{useTransactionReceipt:function(){return l}});var r=n(78526),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.a,"getTransactionReceipt")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:r,query:i={}}=n,l=(0,c.useConfig)(n),d=(0,s.useChainId)({config:l}),f=function(e,t={}){return{queryFn({queryKey:t}){let{hash:n,scopeKey:r,...i}=t[1];if(!n)throw Error("hash is required");return a(e,{...i,hash:n})},queryKey:["getTransactionReceipt",(0,o.OP)(t)]}}(l,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:d}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,u.aM)({...i,...f,enabled:h})}},50372:function(e,t,n){"use strict";n.d(t,{useVerifyMessage:function(){return l}});var r=n(41969),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.n,"verifyMessage")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,message:i,signature:l,query:d={}}=n,f=(0,c.useConfig)(n),h=(0,s.useChainId)({config:f}),y=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,message:r,signature:i}=t[1];if(!n||!r||!i)throw Error("address, message, and signature are required");let{scopeKey:o,...u}=t[1];return await a(e,u)??null},queryKey:["verifyMessage",(0,o.OP)(t)]}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),g=!!(r&&i&&l&&(null===(t=d.enabled)||void 0===t||t));return(0,u.aM)({...d,...y,enabled:g})}},13237:function(e,t,n){"use strict";n.d(t,{useVerifyTypedData:function(){return l}});var r=n(71263),i=n(44199);async function a(e,t){let{chainId:n,...a}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.B,"verifyTypedData")(a)}var o=n(27534),u=n(63040),s=n(44005),c=n(12364);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,message:i,primaryType:l,signature:d,types:f,query:h={}}=n,y=(0,c.useConfig)(n),g=(0,s.useChainId)({config:y}),v=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,message:r,primaryType:i,signature:o,types:u,scopeKey:s,...c}=t[1];if(!n)throw Error("address is required");if(!r)throw Error("message is required");if(!i)throw Error("primaryType is required");if(!o)throw Error("signature is required");if(!u)throw Error("types is required");return await a(e,{...c,address:n,message:r,primaryType:i,signature:o,types:u})??null},queryKey:["verifyTypedData",(0,o.OP)(t)]}}(y,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:g}),m=!!(r&&i&&l&&d&&f&&(null===(t=h.enabled)||void 0===t||t));return(0,u.aM)({...h,...v,enabled:m})}},97269:function(e,t,n){"use strict";n.d(t,{useWaitForTransactionReceipt:function(){return h}});var r=n(72932),i=n(67348),a=n(39277),o=n(56969),u=n(44199);async function s(e,t){let{chainId:n,timeout:s=0,...c}=t,l=e.getClient({chainId:n}),d=(0,u.s)(l,i.e,"waitForTransactionReceipt"),f=await d({...c,timeout:s}
1);if("reverted"===f.status){let e=(0,u.s)(l,a.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,u.s)(l,o.R,"call"),i=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(i?.data?(0,r.rR)(`0x${i.data.substring(138)}`):"unknown reason")}return{...f,chainId:l.chain.id}}var c=n(27534),l=n(63040),d=n(44005),f=n(12364);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:r,query:i={}}=n,a=(0,f.useConfig)(n),o=(0,d.useChainId)({config:a}),u=function(e,t={}){return{async queryFn({queryKey:n}){let{hash:r,...i}=n[1];if(!r)throw Error("hash is required");return s(e,{...i,onReplaced:t.onReplaced,hash:r})},queryKey:function(e={}){let{onReplaced:t,...n}=e;return["waitForTransactionReceipt",(0,c.OP)(n)]}(t)}}(a,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:o}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,l.aM)({...i,...u,enabled:h})}},57225:function(e,t,n){"use strict";n.d(t,{useWalletClient:function(){return h}});var r=n(29827),i=n(29782),a=n(93316);async function o(e,t={}){return(await (0,a.e)(e,t)).extend(i.v)}var u=n(27534),s=n(2265),c=n(63040),l=n(64707),d=n(44005),f=n(12364);function h(){var e,t,n,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},...y}=a,g=(0,f.useConfig)(y),v=(0,r.NL)(),{address:m,connector:p,status:w}=(0,l.useAccount)({config:g}),b=(0,d.useChainId)({config:g}),C=null!==(e=a.connector)&&void 0!==e?e:p,{queryKey:I,...q}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:i,scopeKey:a,...u}=n[1];return o(e,{...u,connector:r})},queryKey:function(e={}){let{connector:t,...n}=e;return["walletClient",{...(0,u.OP)(n),connectorUid:t?.uid}]}(t)}}(g,{...a,chainId:null!==(t=a.chainId)&&void 0!==t?t:b,connector:null!==(n=a.connector)&&void 0!==n?n:p}),P=!!(("connected"===w||"reconnecting"===w&&(null==C?void 0:C.getProvider))&&(null===(i=h.enabled)||void 0===i||i)),S=(0,s.useRef)(m);return(0,s.useEffect)(()=>{let e=S.current;!m&&e?(v.removeQueries({queryKey:I}),S.current=void 0):m!==e&&(v.invalidateQueries({queryKey:I}),S.current=m)},[m,v]),(0,c.aM)({...h,...q,queryKey:I,enabled:P,staleTime:Number.POSITIVE_INFINITY})}},67185:function(e,t,n){"use strict";n.d(t,{useWatchAsset:function(){return c}});var r=n(21770),i=n(81821),a=n(44199),o=n(93316);async function u(e,t){let{connector:n,...r}=t,u=await (0,o.e)(e,{connector:n});return(0,a.s)(u,i.d,"watchAsset")(r)}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["watchAsset"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,watchAsset:a,watchAssetAsync:o}}},13359:function(e,t,n){"use strict";n.d(t,{useWatchBlockNumber:function(){return s}});var r=n(2228),i=n(44199),a=n(2265),o=n(44005),u=n(12364);function s(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:s,config:c,...l}=t,d=(0,u.useConfig)(t),f=(0,o.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,a.useEffect)(()=>{if(n&&s)return function(e,t){let n,a;let{syncConnectedChain:o=e._internal.syncConnectedChain,...u}=t,s=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.q,"watchBlockNumber")(u)},c=s(t.chainId);return o&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>s(e))),()=>{c?.(),a?.()}}(d,{...l,chainId:h,onBlockNumber:s})},[h,d,n,s,l.onError,l.emitMissed,l.emitOnBegin,l.poll,l.pollingInterval,l.syncConnectedChain])}},49487:function(e,t,n){"use strict";n.d(t,{useWatchBlocks:function(){return s}});var r=n(45789),i=n(44199),a=n(2265),o=n(44005),u=n(12364);function s(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:s,config:c,...l}=t,d=(0,u.useConfig)(t),f=(0,o.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,a.useEffect)(()=>{if(n&&s)return function(e,t){let n,a;let{syncConnectedChain:o=e._internal.syncConnectedChain,...u}=t,s=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.p,"watchBlocks")(u)},c=s(t.chainId);return o&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>s(e))),()=>{c?.(),a?.()}}(d,{...l,chainId:h,onBlock:s})},[h,d,n,s,l.blockTag,l.emitMissed,l.emitOnBegin,l.includeTransactions,l.onError,l.poll,l.pollingInterval,l.syncConnectedChain])}},43946:function(e,t,n){"use strict";n.d(t,{useWatchContractEvent:function(){return s}});var r=n(91583),i=n(44199),a=n(2265),o=n(44005),u=n(12364);function s(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onLogs:s,config:c,...l}=t,d=(0,u.useConfig)(t),f=(0,o.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,a.useEffect)(()=>
1{if(n&&s)return function(e,t){let n,a;let{syncConnectedChain:o=e._internal.syncConnectedChain,...u}=t,s=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.Y,"watchContractEvent")(u)},c=s(t.chainId);return o&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>s(e))),()=>{c?.(),a?.()}}(d,{...l,chainId:h,onLogs:s})},[h,d,n,s,l.abi,l.address,l.args,l.batch,l.eventName,l.fromBlock,l.onError,l.poll,l.pollingInterval,l.strict,l.syncConnectedChain])}},2724:function(e,t,n){"use strict";n.d(t,{useWatchPendingTransactions:function(){return s}});var r=n(1337),i=n(44199),a=n(2265),o=n(44005),u=n(12364);function s(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onTransactions:s,config:c,...l}=t,d=(0,u.useConfig)(t),f=(0,o.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,a.useEffect)(()=>{if(n&&s)return function(e,t){let n,a;let{syncConnectedChain:o=e._internal.syncConnectedChain,...u}=t,s=t=>{n&&n();let a=e.getClient({chainId:t});return n=(0,i.s)(a,r.O,"watchPendingTransactions")(u)},c=s(t.chainId);return o&&!t.chainId&&(a=e.subscribe(({chainId:e})=>e,async e=>s(e))),()=>{c?.(),a?.()}}(d,{...l,chainId:h,onTransactions:s})},[h,d,n,s,l.batch,l.onError,l.poll,l.pollingInterval,l.syncConnectedChain])}},11684:function(e,t,n){"use strict";n.d(t,{useWriteContract:function(){return c}});var r=n(21770),i=n(50825),a=n(44199),o=n(93316);async function u(e,t){let n;let{account:r,chainId:u,connector:s,...c}=t;n="object"==typeof r&&r?.type==="local"?e.getClient({chainId:u}):await (0,o.e)(e,{account:r??void 0,chainId:u,connector:s});let l=(0,a.s)(n,i.n,"writeContract");return await l({...c,...r?{account:r}:{},chain:u?{id:u}:null})}var s=n(12364);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,s.useConfig)(t),{mutationFn:t=>u(e,t),mutationKey:["writeContract"]}),{mutate:a,mutateAsync:o,...c}=(0,r.D)({...n,...i});return{...c,writeContract:a,writeContractAsync:o}}}}]);
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.