PageSourceSearch

https://www.joindistrict.com/_next/static/chunks/3975-713239886bebcb96.js

js joindistrict.com collected 2026-10-05 04:57:27 UTC 274,682 bytes, 37 lines download raw bytes

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]="83c4a749-6f23-4def-a567-2d8217bfcabd",e._sentryDebugIdIdentifier="sentry-dbid-83c4a749-6f23-4def-a567-2d8217bfcabd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3975],{43170:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,l,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(l=1,u=Array(d-1);l<d;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var f,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),d){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,r);break;case 4:c[l].fn.call(c[l].context,t,r,i);break;default:if(!u)for(f=1,u=Array(d-1);f<d;f++)u[f-1]=arguments[f];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==t||i&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},86229:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(7653);/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.453.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:l="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:n,strokeWidth:u?24*Number(s)/Number(i):s,className:o("lucide",l),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),u=(e,t)=>
16{let n=(0,r.forwardRef)((n,a)=>{let{className:u,...l}=n;return(0,r.createElement)(s,{ref:a,iconNode:t,className:o("lucide-".concat(i(e)),u),...l})});return n.displayName="".concat(e),n}},77037:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
17 * @license lucide-react v0.453.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let r=(0,n(86229).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},64759:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(93394),i=n.n(r)},39213:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57362:function(e,t,n){"use strict";function r(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}}),n(53465),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15914:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{markAssetError:function(){return u},isAssetError:function(){return l},getClientBuildManifest:function(){return h},createRouteLoader:function(){return m}}),n(907),n(5343);let r=n(87196),i=n(89460),o=n(47025);function a(e,t,n){let r,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let o=new Promise(e=>{r=e});return t.set(e,i={resolve:r,future:o}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):o}let s=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,s,{})}function l(e){return e&&s in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,o.getDeploymentIdQueryOrEmptyString)();function f(e,t,n){return new Promise((r,o)=>{let a=!1;e.then(e=>{a=!0,r(e)}).catch(o),(0,i.requestIdleCallback)(()=>setTimeout(()=>{a||o(n)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):f(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,u(Error("Failed to load client build manifest")))}function p(e,t){return h().then(n=>{if(!(t in n))throw u(Error("Failed to lookup route: "+t));let i=n[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,r.__unsafeCreateTrustedScriptURL)(e)+d()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,n=new Map,r=new Map,o=new Map;function s(e){{var t;let r=n.get(e.toString());return r||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(u(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r))}}function l(e){let t=r.get(e);return t||r.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw u(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),o.delete(e))})},loadRoute(n,r){return a(n,o,()=>{let i;return f(p(e,n).then(e=>{let{scripts:r,css:i}=e;
21return Promise.all([t.has(n)?[]:Promise.all(r.map(s)),Promise.all(i.map(l))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,u(Error("Route did not complete loading: "+n))).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(r)throw e;return{error:e}}).finally(()=>null==i?void 0:i())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():p(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,i)=>{if(document.querySelector('\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]'))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>i(u(Error("Failed to prefetch: "+t))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,i.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return o.default},default:function(){return h},withRouter:function(){return u.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return y}});let r=n(907),i=r._(n(7653)),o=r._(n(38184)),a=n(62537),s=r._(n(42993)),u=r._(n(6986)),l={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!l.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return l.router}Object.defineProperty(l,"events",{get:()=>o.default.events}),c.forEach(e=>{Object.defineProperty(l,e,{get:()=>f()[e]})}),d.forEach(e=>{l[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f()[e](...n)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{l.ready(()=>{o.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i="on"+e.charAt(0).toUpperCase()+e.substring(1);if(l[i])try{l[i](...n)}catch(e){console.error("Error when running the Router event: "+i),console.error((0,s.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let h=l;function p(){let e=i.default.useContext(a.RouterContext);if(!e)throw Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.router=new o.default(...t),l.readyCallbacks.forEach(e=>e()),l.readyCallbacks=[],l.router}function y(e){let t={};for(let n of c){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=o.default.events,d.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e[n](...r)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87196:function(e,t){"use strict";let n;function r(e){var t;return(null==(t=function(){if(void 0===n&&"undefined"!=typeof window){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}
21Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6986:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}}),n(907);let r=n(27573);n(7653);let i=n(93394);function o(e){function t(t){return(0,r.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76658:function(e,t){"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return n}})},42993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return i},getProperError:function(){return o}});let r=n(57620);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return i(e)?e:Error((0,r.isPlainObject)(e)?JSON.stringify(e):e+"")}},16207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{static from(e,t){void 0===t&&(t=1e-4);let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let n=1;n<=this.numHashes;n++){let r=function(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+n)%this.numBits;t.push(r)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},60762:function(e,t){"use strict";function n(e,t){let n;let r=e.split("/");return(t||[]).some(t=>!!r[1]&&r[1].toLowerCase()===t.toLowerCase()&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},57620:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},4747:function(e,t){"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},4858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let r=n(37960),i=n(24363);function o(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},24363:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}
21Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},38184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return V},matchesMiddleware:function(){return q},createKey:function(){return K}});let r=n(907),i=n(45129),o=n(80969),a=n(15914),s=n(84728),u=i._(n(42993)),l=n(4858),c=n(60762),d=r._(n(4747)),f=n(35551),h=n(72069),p=n(7445);n(72094);let m=n(59450),y=n(45135),g=n(90856);n(39213);let w=n(53465),b=n(68379),P=n(57362),E=n(2616),_=n(65380),C=n(77685),I=n(93832),x=n(76658),S=n(9403),O=n(30607),T=n(25083),R=n(96171),A=n(24910),B=n(93215),N=n(38971),k=n(22554);function j(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function q(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,w.parsePath)(e.asPath),r=(0,C.hasBasePath)(n)?(0,E.removeBasePath)(n):n,i=(0,_.addBasePath)((0,b.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function F(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function M(e,t,n){let[r,i]=(0,I.resolveHref)(e,t,!0),o=(0,f.getLocationOrigin)(),a=r.startsWith(o),s=i&&i.startsWith(o);r=F(r),i=i?F(i):i;let u=a?r:(0,_.addBasePath)(r),l=n?F((0,I.resolveHref)(e,n)):i||r;return{url:u,as:s?l:(0,_.addBasePath)(l)}}function L(e,t){let n=(0,o.removeTrailingSlash)((0,l.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function D(e){if(!await q(e)||!e.fetchData)return null;try{let t=await e.fetchData(),n=await function(e,t,n){let r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),s=i||t.headers.get("x-nextjs-matched-path"),u=t.headers.get("x-matched-path");if(!u||s||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(s=u),s){if(s.startsWith("/")){let t=(0,p.parseRelativeUrl)(s),u=(0,S.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),l=(0,o.removeTrailingSlash)(u.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,a.getClientBuildManifest)()]).then(o=>{let[a,{__rewrites:s}]=o,d=(0,b.addLocale)(u.pathname,u.locale);if((0,h.isDynamicRoute)(d)||!i&&a.includes((0,c.normalizeLocalePath)((0,E.removeBasePath)(d),n.router.locales).pathname)){let n=(0,S.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:r,parseData:!0});d=(0,_.addBasePath)(n.pathname),t.pathname=d}if(!a.includes(l)){let e=L(l,a);e!==l&&(l=e)}let f=a.includes(l)?l:L((0,c.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),n.router.locales).pathname,a);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,y.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,w.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,O.formatNextPathnameInfo)({...(0,S.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""})+t.query+t.hash})}let l=t.headers.get("x-nextjs-redirect");if(l){if(l.startsWith("/")){let e=(0,w.parsePath)(l),t=(0,O.formatNextPathnameInfo)({...(0,S.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:l})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function G(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){var t;let{dataHref:n,inflightCache:r,isPrefetch:i,hasMiddleware:o,isServerRender:s,parseJSON:u,persistCache:l,isBackgroun
21d:c,unstable_skipClientCache:d}=e,{href:f}=new URL(n,window.location.href),h=e=>(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(i=>!i.ok&&n>1&&i.status>=500?e(t,n-1,r):i)})(n,s?3:1,{headers:Object.assign({},i?{purpose:"prefetch"}:{},i&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:n,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:n,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var r;if(null==(r=G(e))?void 0:r.notFound)return{dataHref:n,json:{notFound:U},response:t,text:e,cacheKey:f}}let i=Error("Failed to load static props");throw s||(0,a.markAssetError)(i),i}return{dataHref:n,json:u?G(e):null,response:t,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw d||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,a.markAssetError)(e),e});return d&&l?h({}).then(e=>(r[f]=Promise.resolve(e),e)):void 0!==r[f]?r[f]:r[f]=h(c?{method:"HEAD"}:{})}function K(){return Math.random().toString(36).slice(2,10)}function W(e){let{url:t,router:n}=e;if(t===(0,_.addBasePath)((0,b.addLocale)(n.asPath,n.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:n}=e,r=!1,i=n.clc=()=>{r=!0};return()=>{if(r){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}i===n.clc&&(n.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=M(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=M(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,n,r){{let u=!1,l=!1;for(let c of[e,t])if(c){let t=(0,o.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,_.addBasePath)((0,b.addLocale)(t,n||this.locale));if(t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var i,a,s;for(let e of(u=u||!!(null==(i=this._bfl_s)?void 0:i.contains(t))||!!(null==(a=this._bfl_s)?void 0:a.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!l&&e<t.length+1;e++){let n=t.slice(0,e).join("/");if(n&&(null==(s=this._bfl_d)?void 0:s.contains(n))){l=!0;break}}}if(u||l){if(r)return!0;return W({url:(0,_.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,n,r,i){var l,c,d,I,x,S,O,A,k;let F,D;if(!(0,R.isLocalURL)(t))return W({url:t,router:this}),!1;let G=1===r._h;G||r.shallow||await this._bfl(n,void 0,r.locale);let H=G||r._shouldResolveHref||(0,w.parsePath)(t).pathname===(0,w.parsePath)(n).pathname,K={...this.state},z=!0!==this.isReady;this.isReady=!0;let Q=this.isSsr;if(G||(this.isSsr=!1),G&&this.clc)return!1;let Z=K.locale;f.ST&&performance.mark("routeChange");let{shallow:X=!1,scroll:J=!0}=r,Y={shallow:X};this._inFlightRoute&&this.clc&&(Q||V.events.emit("routeChangeError",j(),this._inFlightRoute,Y),this.clc(),this.clc=null),n=(0,_.addBasePath)((0,b.addLocale)((0,C.hasBasePath)(n)?(0,E.removeBasePath)(n):n,r.locale,this.defaultLocale));let $=(0,P.removeLocale)((0,C.hasBasePath)(n)?(0,E.removeBasePath)(n):n,K.locale);this._inFlightRoute=n;let ee=Z!==K.locale;if(!G&&this.onlyAHashChange($)&&!ee){K.asPath=$,V.events.emit("hashChangeStart",n,Y),this.changeState(e,t,n,{...r,scroll:!1}),J&&this.scrollToHash($);try{await this.set(K,this.components[K.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,$,Y),e}return V.events.emit("hashChangeComplete",n,Y),!0}let et=(0,p.parseRelativeUrl)(t),{pathname:en,query:er}=et;try{[F,{__rewrites:D}]=await Promise.all([this.pageLoader.getPageList(),(0,a.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return W({url:n,router:this}),!1}this.urlIsNew($)||ee||(e="replaceState");let ei=n;en=en?(0,o.removeTrailingSlash)((0,E.removeBasePath)(en)):en;let eo=(0,o.removeTrailingSlash)(en),ea=n.startsWith("/")&&(0,p.parseRelativeUrl)(n).pathname;if(null==(l=this.components[en])?void 0:l.__appRouter)return W({url:n,router:this}),new Promise(()=>{});let es=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,y.getRouteRegex)(eo))(ea))),eu=!r.shallow&&await q({asPath:n,locale:K.locale,router:this});if(G&&eu&&(H=!1),H&&"/_error"!==en&&(r._shouldResolveHref=!0,et.pathname=L(en,F),et.pathname===en||(en=et.pathname,et.pathname=(0,_.addBasePath)(en),eu||(t=(0,g.formatWithValidation)(et)))),!(0,R.isLocalURL)(n))return W({url:n,router:this}),!1;ei=(0,P.removeLocale)((0,E.removeBasePath)(ei),K.locale),eo=(0,o.removeTrailingSlash)(en);let el=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(ei),r=e.pathname,i=(0,y.getRouteRegex)(eo);el=(0,m.getRouteMatcher)(i)(r);let o=eo===r,a=o?(0,N.interpolateAs)(eo,r,er):{};if(el&&(!o||a.result))o?n=(0,g.formatWithValidation)(Object.assign({},e,{pathname:a.result,query:(0,B.omit)(er,a.params)})):Object.assign(er,el);else{let e=Object.keys(i.groups).filter(e=>!er[e]&&!i.groups[e].optional);if(e.length>0&&!eu)throw Error((o?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(o?"href-interpolation-failed":"incompatible-href-as"))}}G||V.events.emit("routeChangeStart",n,Y);let ec="/404"===this.pathname||"/_error"===this.pathname;try{let o=await this.getRouteInfo({route:eo,pathname:en,query:er,as:n,resolvedAs:ei,routeProps:Y,locale:K.locale,isPreview:K.isPreview,hasMiddleware:eu,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:G&&!this.isFallback,isMiddlewareRewrite:es});if(G||r.shallow||await this._bfl(n,"resolvedAs"in o?o.resolvedAs:void 0,K.locale),"route"in o&&eu){eo=en=o.route||eo,Y.shallow||(er=Object.assign({},o.query||{},er));let e=(0,C.hasBasePath)(et.pathname)?(0,E.removeBasePath)(et.pathname):et.pathname;
21if(el&&en!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,h.isDynamicRoute)(en)){let e=!Y.shallow&&o.resolvedAs?o.resolvedAs:(0,_.addBasePath)((0,b.addLocale)(new URL(n,location.href).pathname,K.locale),!0);(0,C.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,y.getRouteRegex)(en),r=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);r&&Object.assign(er,r)}}if("type"in o){if("redirect-internal"===o.type)return this.change(e,o.newUrl,o.newAs,r);return W({url:o.destination,router:this}),new Promise(()=>{})}let a=o.Component;if(a&&a.unstable_scriptLoader&&[].concat(a.unstable_scriptLoader()).forEach(e=>{(0,s.handleClientScriptLoad)(e.props)}),(o.__N_SSG||o.__N_SSP)&&o.props){if(o.props.pageProps&&o.props.pageProps.__N_REDIRECT){r.locale=!1;let t=o.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==o.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,p.parseRelativeUrl)(t);n.pathname=L(n.pathname,F);let{url:i,as:o}=M(this,t,t);return this.change(e,i,o,r)}return W({url:t,router:this}),new Promise(()=>{})}if(K.isPreview=!!o.props.__N_PREVIEW,o.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(o=await this.getRouteInfo({route:e,pathname:e,query:er,as:n,resolvedAs:ei,routeProps:{shallow:!1},locale:K.locale,isPreview:K.isPreview,isNotFound:!0}),"type"in o)throw Error("Unexpected middleware effect on /404")}}G&&"/_error"===this.pathname&&(null==(d=self.__NEXT_DATA__.props)?void 0:null==(c=d.pageProps)?void 0:c.statusCode)===500&&(null==(I=o.props)?void 0:I.pageProps)&&(o.props.pageProps.statusCode=500);let l=r.shallow&&K.route===(null!=(x=o.route)?x:eo),f=null!=(S=r.scroll)?S:!G&&!l,g=null!=i?i:f?{x:0,y:0}:null,w={...K,route:eo,pathname:en,query:er,asPath:$,isFallback:!1};if(G&&ec){if(o=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:n,resolvedAs:ei,routeProps:{shallow:!1},locale:K.locale,isPreview:K.isPreview,isQueryUpdating:G&&!this.isFallback}),"type"in o)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(A=self.__NEXT_DATA__.props)?void 0:null==(O=A.pageProps)?void 0:O.statusCode)===500&&(null==(k=o.props)?void 0:k.pageProps)&&(o.props.pageProps.statusCode=500);try{await this.set(w,o,g)}catch(e){throw(0,u.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,$,Y),e}return!0}if(V.events.emit("beforeHistoryChange",n,Y),this.changeState(e,t,n,r),!(G&&!g&&!z&&!ee&&(0,T.compareRouterStates)(w,this.state))){try{await this.set(w,o,g)}catch(e){if(e.cancelled)o.error=o.error||e;else throw e}if(o.error)throw G||V.events.emit("routeChangeError",o.error,$,Y),o.error;G||V.events.emit("routeChangeComplete",n,Y),f&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r){void 0===r&&(r={}),("pushState"!==e||(0,f.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:K()},"",n))}async handleRouteInfoError(e,t,n,r,i,o){if(console.error(e),e.cancelled)throw e;if((0,a.isAssetError)(e)||o)throw V.events.emit("routeChangeError",e,r,i),W({url:r,router:this}),j();try{let r;let{page:i,styleSheets:o}=await this.fetchComponent("/_error"),a={props:r,Component:i,styleSheets:o,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(i,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Error(e+""),t,n,r,i,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:i,resolvedAs:a,routeProps:s,locale:l,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:y}=e,w=t;try{var b,P,_,C;let e=z({route:w,router:this}),t=this.components[w];if(s.shallow&&t&&this.route===w)return t;d&&(t=void 0);let u=!t||"initial"in t?void 0:t,I={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:y?"/404":a,locale:l}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persist
21Cache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},S=p&&!m?null:await D({fetchData:()=>H(I),asPath:y?"/404":a,locale:l,router:this}).catch(e=>{if(p)return null;throw e});if(S&&("/_error"===n||"/404"===n)&&(S.effect=void 0),p&&(S?S.json=self.__NEXT_DATA__.props:S={json:self.__NEXT_DATA__.props}),e(),(null==S?void 0:null==(b=S.effect)?void 0:b.type)==="redirect-internal"||(null==S?void 0:null==(P=S.effect)?void 0:P.type)==="redirect-external")return S.effect;if((null==S?void 0:null==(_=S.effect)?void 0:_.type)==="rewrite"){let e=(0,o.removeTrailingSlash)(S.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!p||i.includes(e))&&(w=e,n=S.effect.resolvedHref,r={...r,...S.effect.parsedAs.query},a=(0,E.removeBasePath)((0,c.normalizeLocalePath)(S.effect.parsedAs.pathname,this.locales).pathname),t=this.components[w],s.shallow&&t&&this.route===w&&!d))return{...t,route:w}}if((0,x.isAPIRoute)(w))return W({url:i,router:this}),new Promise(()=>{});let O=u||await this.fetchComponent(w).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==S?void 0:null==(C=S.response)?void 0:C.headers.get("x-middleware-skip"),R=O.__N_SSG||O.__N_SSP;T&&(null==S?void 0:S.dataHref)&&delete this.sdc[S.dataHref];let{props:A,cacheKey:B}=await this._getData(async()=>{if(R){if((null==S?void 0:S.json)&&!T)return{cacheKey:S.cacheKey,props:S.json};let e=(null==S?void 0:S.dataHref)?S.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:n,query:r}),asPath:a,locale:l}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(O.Component,{pathname:n,query:r,asPath:i,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})}});return O.__N_SSP&&I.dataHref&&B&&delete this.sdc[B],this.isPreview||!O.__N_SSG||p||H(Object.assign({},I,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),A.pageProps=Object.assign({},A.pageProps),O.props=A,O.route=w,O.query=r,O.resolvedAs=a,this.components[w]=O,O}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),n,r,i,s)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#",2),[r,i]=e.split("#",2);return!!i&&t===r&&n===i||t===r&&n!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,k.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),n=document.getElementById(e);if(n){n.scrollIntoView();return}let r=document.getElementsByName(e)[0];r&&r.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),"undefined"!=typeof window&&(0,A.isBot)(window.navigator.userAgent))return;let r=(0,p.parseRelativeUrl)(e),i=r.pathname,{pathname:a,query:s}=r,u=a,l=await this.pageLoader.getPageList(),c=t,d=void 0!==n.locale?n.locale||void 0:this.locale,f=await q({asPath:t,locale:d,router:this});r.pathname=L(r.pathname,l),(0,h.isDynamicRoute)(r.pathname)&&(a=r.pathname,r.pathname=a,Object.assign(s,(0,m.getRouteMatcher)((0,y.getRouteRegex)(r.pathname))((0,w.parsePath)(t).pathname)||{}),f||(e=(0,g.formatWithValidation)(r)));let b=await D({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:u,query:s}),skipInterpolation:!0,asPath:c,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(r.pathname=b.effect.resolvedHref,a=b.effect.resolvedHref,s={...s,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(r)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,o.removeTrailingSlash)(a);await this._bfl(t,c,n.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&H({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:d}
21),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=z({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return H({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,f.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:i,pageLoader:a,App:s,wrapApp:u,Component:l,err:c,subscription:d,isFallback:m,locale:y,locales:w,defaultLocale:b,domainLocales:P,isPreview:E}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=K(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,_.addBasePath)(e),query:t}),(0,f.getURL)());return}if(r.__NA){window.location.reload();return}if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:i,as:o,options:a,key:s}=r;this._key=s;let{pathname:u}=(0,p.parseRelativeUrl)(i);(!this.isSsr||o!==(0,_.addBasePath)(this.asPath)||u!==(0,_.addBasePath)(this.pathname))&&(!this._bps||this._bps(r))&&this.change("replaceState",i,o,Object.assign({},a,{shallow:a.shallow&&this._shallow,locale:a.locale||this.defaultLocale,_h:0}),t)};let C=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[C]={Component:l,initial:!0,props:i,err:c,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP}),this.components["/_app"]={Component:s,styleSheets:[]};{let{BloomFilter:e}=n(16207),t={numItems:84,errorRate:1e-4,numBits:1611,numHashes:14,bitArray:[1,1,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,0,0,1,1,0,1,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,1,1,1,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,1,0,0,0,1,0,0,1,0,1,0,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,1,0,0,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,0,0,0,0,1,0,0,0,1,1,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,1,1,1,0,0,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,0,1,0,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,1,0,0,1,1,1,1,0,0,0,0,1,0,0,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,1,1,1,1,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,0,1,0,1,1,0,1,0,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,1,1,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,1,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,1,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,1,0,1,0,0,0,1,1,1,0,0,0,1,1,0,0,1,1,0,0,0,0,1,1,1,0,1,1,0,1,1,1,0,0,0,1,0,0,0,0,1,0,1,0,1,0,1,0,0,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,1,1,0,1,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,1,1,1,1,0,0,0,0,0,0,1,0,0,1,1,0,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,1,1,1,0,1,0,1,0,1,1,0,0,0,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,1,1,0,1,0,0,1,1,0,0,1,1,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,1,0,1,1,1,1,1,0,0,0,1,1,1,0,1,0,0,0,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1,0,1,1,1,1,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,0,1,0,0,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,1,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,0,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,1,1,0,1,0,1,0,0,1,0,0,0,0,0,1,1,0,1,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,1,0,1,1,1,1,0,0,1,0,0,1,0,0,0,1,1,1,0,0,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,1,0,1,1,0,0,0,0,1,1,1,0,1,0,1,0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,1,0,0,1,0,0,0,0,1,1,0,0,1,1,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,1,1,1,1,1,0,0,0,1,1,1,1,0,0,0,0,0,1,0,1,1,1,1,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,1,0,0,0,0,1,0,1,1,0,0,0,1,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,1,0,1,1,0,1,1,0,0,1,1,0,0,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,0,1,0,1,0,0,0,1,0,1,1,1,1,0,0,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,1,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,0,1,0,1,1,1,1,0,0,0,1,1,1,1,0,0,1,0,0,0,0,1,0,1,1,0,0,0,1,1,0,0,0,0,1,0,1,0,1,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,1,0,1,1,1,1,0,1,0,0,1,0,1,1,0,0,1,0,1,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,0,1,1,1,1,1,1,1,0,0,0,1,1,0,0,0,1,1,1,0,1,0,1,0,1,0,0,0,0]},r={numItems:17,errorRate:1e-4,numBits:326,numHashes:14,bitArray:[0,0,1,1,0,1,1,1,1,1,0,1,0,0,0,1,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,1,1,1,0,1,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0,0,1,1,1,0,1,1,0,1,1,0,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,1,1,1,0,0,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,1,1,0,0,1,1,0,0,1,1]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==r?void 0:r.numHashes)&&(this._bfl_d=new e(r.numItems,r.errorRate),this._bfl_d.import(r))}this.events=V.events,this.pageLoader=a;let I=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!I&&!self.location.search),this.state={route:C,pathname:e,query:t,asPath:I?e:r,isPreview:!!E,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"undefined"!=typeof window){if(!r.startsWith("//")){let n={locale:y},i=(0,f.getURL)();this._initialMatchesMiddlewarePromise=q({router:this,locale:y,asPath:i}).then(o=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",o?i:(0,g.formatWithValidation)({pathname:(0,_.addBasePath)(e),query:t}),i,n),o))}window.addEventListener("popstate",this.onPopState)}}}V.events=(0,d.default)()},88311:function(e,t,n){"use strict";
21Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let r=n(12265),i=n(27302);function o(e,t,n,o){if(!t||t===n)return e;let a=e.toLowerCase();return!o&&((0,i.pathHasPrefix)(a,"/api")||(0,i.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},30634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let r=n(53465);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:i,hash:o}=(0,r.parsePath)(e);return""+n+t+i+o}},25083:function(e,t){"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let i=n[r];if("query"===i){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let i=n[r];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},30607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let r=n(80969),i=n(12265),o=n(30634),a=n(88311);function s(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},5343:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},9403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let r=n(60762),i=n(20859),o=n(27302);function a(e,t){var n,a;let{basePath:s,i18n:u,trailingSlash:l}=null!=(n=t.nextConfig)?n:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):l};s&&(0,o.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,s),c.basePath=s);let d=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),n=e[0];c.buildId=n,d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=d)}if(u){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,r.normalizeLocalePath)(c.pathname,u.locales);c.locale=e.detectedLocale,c.pathname=null!=(a=e.pathname)?a:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,r.normalizeLocalePath)(d,u.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},7445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let r=n(35551),i=n(50881);function o(e,t){let n=new URL("undefined"==typeof window?"http://n":(0,r.getLocationOrigin)()),o=t?new URL(t,n):e.startsWith(".")?new URL("undefined"==typeof window?"http://n":window.location.href):n,{pathname:a,searchParams:s,search:u,hash:l,href:c,origin:d}=new URL(e,o);if(d!==n.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:a,query:(0,i.searchParamsToUrlQuery)(s),search:u,hash:l,href:c.slice(n.origin.length)}}},20859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let r=n(27302);function i(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},34449:function(e,t,n){"use strict";n.d(t,{U0:function(){return s},zf:function(){return a}});var r=n(79703),i=n(7653),o=(0,i.createContext)({client:r.ZP});function a(e){var t=e.children,n=e.client,a=e.apiKey,s=e.options,u=(0,i.useMemo)(function(){return(n&&a&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&s&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n)?n:(a&&(r.ZP.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),r.ZP.init(a,s)),r.ZP)},[n,a]);return i.createElement(o.Provider,{value:{client:u}},t)}var s=function(){return(0,i.useContext)(o).client}},26679:function(e,t,n){"use strict";/**
22 * @license React
23 * use-sync-external-store-shim.production.min.js
24 *
25 * Copyright (c) Facebook, Inc. and its affiliates.
26 *
27 * This source code is licensed under the MIT license found in the
28 * LICENSE file in the root directory of this source tree.
29 */var r=n(7653),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})},[e,n,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},30182:function(e,t,n){"use strict";/**
30 * @license React
31 * use-sync-external-store-shim/with-selector.production.min.js
32 *
33 * Copyright (c) Facebook, Inc. and its affiliates.
34 *
35 * This source code is licensed under the MIT license found in the
36 * LICENSE file in the root directory of this source tree.
37 */var r=n(7653),i=n(40479),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},40479:function(e,t,n){"use strict";e.exports=n(26679)},36247:function(e,t,n){"use strict";e.exports=n(30182)},60808:function(){},63016:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},7418:function(e){e.exports={style:{fontFamily:"'__Lora_c1a059', '__Lora_Fallback_c1a059'",fontStyle:"normal"},className:"__className_c1a059",variable:"__variable_c1a059"}},7953:function(e){e.exports={style:{fontFamily:"'__Square_Peg_d95274', '__Square_Peg_Fallback_d95274'",fontWeight:400,fontStyle:"normal"},className:"__className_d95274",variable:"__variable_d95274"}},47730:function(e,t,n){"use strict";n.d(t,{S:function(){return h}});var r=n(7653);
37function i(e){return e.state.isPaused}function o(e){return"success"===e.state.status}var a=["added","removed","updated"];function s(e){return a.includes(e)}async function u(e){let{queryClient:t,persister:n,maxAge:r=864e5,buster:i="",hydrateOptions:o}=e;try{let e=await n.restoreClient();if(e){if(e.timestamp){let a=Date.now()-e.timestamp>r,s=e.buster!==i;a||s?n.removeClient():function(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach(t=>{var i;let{state:o,...a}=t;r.build(e,{...null==n?void 0:null===(i=n.defaultOptions)||void 0===i?void 0:i.mutations,...a},o)}),a.forEach(t=>{var r;let{queryKey:o,state:a,queryHash:s,meta:u}=t,l=i.get(s);if(l){if(l.state.dataUpdatedAt<a.dataUpdatedAt){let{fetchStatus:e,...t}=a;l.setState(t)}return}i.build(e,{...null==n?void 0:null===(r=n.defaultOptions)||void 0===r?void 0:r.queries,queryKey:o,queryHash:s,meta:u},{...a,fetchStatus:"idle"})})}(t,e.clientState,o)}else n.removeClient()}}catch(e){n.removeClient()}}async function l(e){let{queryClient:t,persister:n,buster:r="",dehydrateOptions:a}=e,s={buster:r,timestamp:Date.now(),clientState:function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!==(t=r.shouldDehydrateMutation)&&void 0!==t?t:i,s=e.getMutationCache().getAll().flatMap(e=>a(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),u=null!==(n=r.shouldDehydrateQuery)&&void 0!==n?n:o;return{mutations:s,queries:e.getQueryCache().getAll().flatMap(e=>u(e)?[{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash,...e.meta&&{meta:e.meta}}]:[])}}(t,a)};await n.persistClient(s)}var c=n(79823),d=n(77688),f=n(27573),h=e=>{let{client:t,children:n,persistOptions:i,onSuccess:o,...a}=e,[h,p]=r.useState(!0),m=r.useRef({persistOptions:i,onSuccess:o}),y=r.useRef(!1);return r.useEffect(()=>{m.current={persistOptions:i,onSuccess:o}}),r.useEffect(()=>{let e={...m.current.persistOptions,queryClient:t};return y.current||(y.current=!0,p(!0),u(e).then(async()=>{try{var e,t;await (null===(e=(t=m.current).onSuccess)||void 0===e?void 0:e.call(t))}finally{p(!1)}})),h?void 0:function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{s(t.type)&&l(e)}),n=e.queryClient.getMutationCache().subscribe(t=>{s(t.type)&&l(e)});return()=>{t(),n()}}(e)},[t,h]),(0,f.jsx)(c.QueryClientProvider,{client:t,...a,children:(0,f.jsx)(d.IsRestoringProvider,{value:h,children:n})})}},56142:function(e,t,n){"use strict";n.d(t,{J:function(){return f}});var r=n(16588),i=n(2954);class o extends i.kb{update(e){(0,r.Gg)(this);let{view:t,buffer:n,blockLen:o}=this,a=(e=(0,i.O0)(e)).length;for(let r=0;r<a;){let s=Math.min(o-this.pos,a-r);if(s===o){let t=(0,i.GL)(e);for(;o<=a-r;r+=o)this.process(t,r);continue}n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.Gg)(this),(0,r.J8)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:o,isLE:a}=this,{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(n,0),s=0);for(let e=s;e<o;e++)t[e]=0;(function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),o=BigInt(4294967295),a=Number(n>>i&o),s=Number(n&o),u=r?4:0,l=r?0:4;e.setUint32(t+u,a,r),e.setUint32(t+l,s,r)})(n,o-8,BigInt(8*this.length),a),this.process(n,0);let u=(0,i.GL)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=l/4,d=this.get();if(c>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)u.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:a}=this;return e.length=r,e.pos=a,e.finished=i,e.destroyed=o,r%t&&e.buffer.set(n),e}constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}}let a=(e,t,n)=>e&t^~e&n,s=(e,t,n)=>e&t^e&n^t&n,u=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
37734187,3204031479,3329325298]),l=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class d extends o{get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:a,H:s}=this;return[e,t,n,r,i,o,a,s]}set(e,t,n,r,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],n=c[e-2],r=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,o=(0,i.np)(n,17)^(0,i.np)(n,19)^n>>>10;c[e]=o+c[e-7]+r+c[e-16]|0}let{A:n,B:r,C:o,D:l,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+a(d,f,h)+u[e]+c[e]|0,m=((0,i.np)(n,2)^(0,i.np)(n,13)^(0,i.np)(n,22))+s(n,r,o)|0;p=h,h=f,f=d,d=l+t|0,l=o,o=r,r=n,n=t+m|0}n=n+this.A|0,r=r+this.B|0,o=o+this.C|0,l=l+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(n,r,o,l,d,f,h,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}constructor(){super(64,32,8,!1),this.A=0|l[0],this.B=0|l[1],this.C=0|l[2],this.D=0|l[3],this.E=0|l[4],this.F=0|l[5],this.G=0|l[6],this.H=0|l[7]}}let f=(0,i.hE)(()=>new d)},82721:function(e,t,n){"use strict";n.d(t,{aU:function(){return ec},x8:function(){return ed},dk:function(){return el},zt:function(){return eo},fC:function(){return es},Dx:function(){return eu},l_:function(){return ea}});var r,i,o=n(7653),a=n(3458);function s(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}(...t),t)}var l=n(27573);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=(null==n?void 0:n[e])||t;return o.useMemo(()=>({["__scope".concat(e)]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),a=n.length;function s(t){let{scope:n,children:r,...s}=t,u=(null==n?void 0:n[e][a])||i,c=o.useMemo(()=>s,Object.values(s));return(0,l.jsx)(u.Provider,{value:c,children:r})}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){let u=(null==s?void 0:s[e][a])||i,l=o.useContext(u);if(l)return l;if(void 0!==r)return r;throw Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t[0];if(1===t.length)return r;let i=()=>{let e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let n=e.reduce((e,n)=>{let{useScope:r,scopeName:i}=n,o=r(t)["__scope".concat(i)];return{...e,...o}},{});return o.useMemo(()=>({["__scope".concat(r.scopeName)]:n}),[n])}};return i.scopeName=r.scopeName,i}(r,...t)]}var d=n(38365),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?d.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,{...i,ref:n})});return n.displayName="Primitive.".concat(t),{...e,[t]:n}},{});function h(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}function p(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}var m="dismissableLayer.update",y=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=o.forwardRef((e,t)=>{var n,i;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:g,onDismiss:w,...E}=e,_=o.useContext(y),[C,I]=o.useState(null),x=null!==(i=null==C?void 0:C.ownerDocument)&&void 0!==i?i:null===(n=globalThis)||void 0===n?void 0:n.document,[,S]=o.useState({}),O=u(t,e=>
37I(e)),T=Array.from(_.layers),[R]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),A=T.indexOf(R),B=C?T.indexOf(C):-1,N=_.layersWithOutsidePointerEventsDisabled.size>0,k=B>=A,j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=p(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){P("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[..._.branches].some(e=>e.contains(t));!k||n||(null==d||d(e),null==g||g(e),e.defaultPrevented||null==w||w())},x),q=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=p(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&P("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[..._.branches].some(e=>e.contains(t))||(null==h||h(e),null==g||g(e),e.defaultPrevented||null==w||w())},x);return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=p(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{B!==_.layers.size-1||(null==c||c(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},x),o.useEffect(()=>{if(C)return a&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(C)),_.layers.add(C),b(),()=>{a&&1===_.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[C,x,a,_]),o.useEffect(()=>()=>{C&&(_.layers.delete(C),_.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,_]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,l.jsx)(f.div,{...E,ref:O,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,q.onFocusCapture),onBlurCapture:s(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,j.onPointerDownCapture)})});g.displayName="DismissableLayer";var w=o.forwardRef((e,t)=>{let n=o.useContext(y),r=o.useRef(null),i=u(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(f.div,{...e,ref:i})});function b(){let e=new CustomEvent(m);document.dispatchEvent(e)}function P(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?h(o,a):o.dispatchEvent(a)}w.displayName="DismissableLayerBranch";var E=(null===(i=globalThis)||void 0===i?void 0:i.document)?o.useLayoutEffect:()=>{},_=o.forwardRef((e,t)=>{var n,r;let{container:i,...s}=e,[u,c]=o.useState(!1);E(()=>c(!0),[]);let d=i||u&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return d?a.createPortal((0,l.jsx)(f.div,{...s,ref:t}),d):null});_.displayName="Portal";var C=e=>{var t,n;let r,i;let{present:s,children:l}=e,c=function(e){var t,n;let[r,i]=o.useState(),s=o.useRef({}),u=o.useRef(e),l=o.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=I(s.current);l.current="mounted"===c?e:"none"},[c]),E(()=>{let t=s.current,n=u.current;if(n!==e){let r=l.current,i=I(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),E(()=>
37{if(r){let e=e=>{let t=I(s.current).includes(e.animationName);e.target===r&&t&&a.flushSync(()=>d("ANIMATION_END"))},t=e=>{e.target===r&&(l.current=I(s.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(s),d="function"==typeof l?l({present:c.isPresent}):o.Children.only(l),f=u(c.ref,(r=null===(t=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?d.ref:(r=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof l||c.isPresent?o.cloneElement(d,{ref:f}):null};function I(e){return(null==e?void 0:e.animationName)||"none"}C.displayName="Presence";var x=o.forwardRef((e,t)=>(0,l.jsx)(f.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));x.displayName="VisuallyHidden";var S="ToastProvider",[O,T,R]=function(e){let t=e+"CollectionProvider",[n,r]=c(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return(0,l.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let f=e+"CollectionSlot",h=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=u(t,a(f,n).collectionRef);return(0,l.jsx)(d.g7,{ref:i,children:r})});h.displayName=f;let p=e+"CollectionItemSlot",m="data-radix-collection-item",y=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=o.useRef(null),c=u(t,s),f=a(p,n);return o.useEffect(()=>(f.itemMap.set(s,{ref:s,...i}),()=>void f.itemMap.delete(s))),(0,l.jsx)(d.g7,{[m]:"",ref:c,children:r})});return y.displayName=p,[{Provider:s,Slot:h,ItemSlot:y},function(t){let n=a(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}("Toast"),[A,B]=c("Toast",[R]),[N,k]=A(S),j=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[u,c]=o.useState(null),[d,f]=o.useState(0),h=o.useRef(!1),p=o.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(S,"`. Expected non-empty `string`.")),(0,l.jsx)(O.Provider,{scope:t,children:(0,l.jsx)(N,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:d,viewport:u,onViewportChange:c,onToastAdd:o.useCallback(()=>f(e=>e+1),[]),onToastRemove:o.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:s})})};j.displayName=S;var q="ToastViewport",F=["F8"],M="toast.viewportPause",L="toast.viewportResume",D=o.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=F,label:i="Notifications ({hotkey})",...a}=e,s=k(q,n),c=T(n),d=o.useRef(null),h=o.useRef(null),p=o.useRef(null),m=o.useRef(null),y=u(t,m,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;o.useEffect(()=>{let e=e=>{var t;r.every(t=>e[t]||e.code===t)&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),o.useEffect(()=>{let e=d.current,t=m.current;if(b&&e&&t){let n=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(M);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},o=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",o),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[b,s.isClosePausedRef]);let P=o.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return o.useEffect(()=>{let e=m.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,i,o;let n=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(r=h.current)||void 0===r||r.focus();return}let s=P({tabbingDirection:a?"backwards":"forwards"}),u=s.findIndex(e=>e===n);ei(s.slice(u+1))?t.preventDefault():a?null===(i=h.current)||void 0===i||i.focus():null===(o=p.current)||void 0===o||o.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,P]),(0,l.jsxs)(w,{ref:d,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&(0,l.jsx)(G,{ref:h,onFocusFromOutsideViewport:()=>{ei(P({tabbingDirection:"forwards"}))}}),(0,l.jsx)(O.Slot,{scope:n,children:(0,l.jsx)(f.ol,{tabIndex:-1,...a,ref:y})}),b&&(0,l.jsx)(G,{ref:p,onFocusFromOutsideViewport:()=>{ei(P({tabbingDirection:"backwards"}))}})]})});D.displayName=q;var U="ToastFocusProxy",G=o.forwardRef((e,t)=>
37{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=k(U,n);return(0,l.jsx)(x,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=o.viewport)||void 0===t?void 0:t.contains(n))||r()}})});G.displayName=U;var H="Toast",K=o.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...u}=e,[c=!0,d]=function(e){let{prop:t,defaultProp:n,onChange:r=()=>{}}=e,[i,a]=function(e){let{defaultProp:t,onChange:n}=e,r=o.useState(t),[i]=r,a=o.useRef(i),s=p(n);return o.useEffect(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,u=s?t:i,l=p(r);return[u,o.useCallback(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&l(n)}else a(e)},[s,t,a,l])]}({prop:r,defaultProp:i,onChange:a});return(0,l.jsx)(C,{present:n||c,children:(0,l.jsx)(V,{open:c,...u,ref:t,onClose:()=>d(!1),onPause:p(e.onPause),onResume:p(e.onResume),onSwipeStart:s(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:s(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:s(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:s(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),d(!1)})})})});K.displayName=H;var[W,z]=A(H,{onClose(){}}),V=o.forwardRef((e,t)=>{let{__scopeToast:n,type:r="foreground",duration:i,open:c,onClose:d,onEscapeKeyDown:h,onPause:m,onResume:y,onSwipeStart:w,onSwipeMove:b,onSwipeCancel:P,onSwipeEnd:E,..._}=e,C=k(H,n),[I,x]=o.useState(null),S=u(t,e=>x(e)),T=o.useRef(null),R=o.useRef(null),A=i||C.duration,B=o.useRef(0),N=o.useRef(A),j=o.useRef(0),{onToastAdd:q,onToastRemove:F}=C,D=p(()=>{var e;(null==I?void 0:I.contains(document.activeElement))&&(null===(e=C.viewport)||void 0===e||e.focus()),d()}),U=o.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(j.current),B.current=new Date().getTime(),j.current=window.setTimeout(D,e))},[D]);o.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{U(N.current),null==y||y()},n=()=>{let e=new Date().getTime()-B.current;N.current=N.current-e,window.clearTimeout(j.current),null==m||m()};return e.addEventListener(M,n),e.addEventListener(L,t),()=>{e.removeEventListener(M,n),e.removeEventListener(L,t)}}},[C.viewport,A,m,y,U]),o.useEffect(()=>{c&&!C.isClosePausedRef.current&&U(A)},[c,A,C.isClosePausedRef,U]),o.useEffect(()=>(q(),()=>F()),[q,F]);let G=o.useMemo(()=>I?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r){if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(I):null,[I]);return C.viewport?(0,l.jsxs)(l.Fragment,{children:[G&&(0,l.jsx)(Q,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:G}),(0,l.jsx)(W,{scope:n,onClose:D,children:a.createPortal((0,l.jsx)(O.ItemSlot,{scope:n,children:(0,l.jsx)(g,{asChild:!0,onEscapeKeyDown:s(h,()=>{C.isFocusedToastEscapeKeyDownRef.current||D(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,l.jsx)(f.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":C.swipeDirection,..._,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:s(e.onKeyDown,e=>{"Escape"!==e.key||(null==h||h(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:s(e.onPointerDown,e=>{0===e.button&&(T.current={x:e.clientX,y:e.clientY})}),onPointerMove:s(e.onPointerMove,e=>{if(!T.current)return;let t=e.clientX-T.current.x,n=e.clientY-T.current.y,r=!!R.current,i=["left","right"].includes(C.swipeDirection),o=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,a=i?o(0,t):0,s=i?0:o(0,n),u="touch"===e.pointerType?10:2,l={x:a,y:s},c={originalEvent:e,delta:l};r?(R.current=l,en("toast.swipeMove",b,c,{discrete:!1})):er(l,C.swipeDirection,u)?(R.current=l,en("toast.swipeStart",w,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(T.current=null)}),onPointerUp:s(e.onPointerUp,e=>{let t=R.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),R.current=null,T.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};er(t,C.swipeDirection,C.swipeThreshold)?en("toast.swipeEnd",E,r,{discrete:!0}):en("toast.swipeCancel",P,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),Q=e=>{let{__scopeToast:t,children:n,...r}=e,i=k(H,t),[a,s]=o.useState(!1),[u,c]=o.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=p(e);E(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>s(!0)),o.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,l.jsx)(_,{asChild:!0,children:(0,l.jsx)(x,{...r,children:a&&(0,l.jsxs)(l.Fragment,{children:[i.label," ",n]})})})},Z=o.forwardRef((e,t)=>
37{let{__scopeToast:n,...r}=e;return(0,l.jsx)(f.div,{...r,ref:t})});Z.displayName="ToastTitle";var X=o.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,l.jsx)(f.div,{...r,ref:t})});X.displayName="ToastDescription";var J="ToastAction",Y=o.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,l.jsx)(et,{altText:n,asChild:!0,children:(0,l.jsx)(ee,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(J,"`. Expected non-empty `string`.")),null)});Y.displayName=J;var $="ToastClose",ee=o.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=z($,n);return(0,l.jsx)(et,{asChild:!0,children:(0,l.jsx)(f.button,{type:"button",...r,ref:t,onClick:s(e.onClick,i.onClose)})})});ee.displayName=$;var et=o.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,l.jsx)(f.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function en(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?h(o,a):o.dispatchEvent(a)}var er=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function ei(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var eo=j,ea=D,es=K,eu=Z,el=X,ec=Y,ed=ee},707:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(68444),i=n(5504),o=n(5504);function a(e){let t="object"==typeof e.client?e.client:{},n="object"==typeof e.server?e.server:{},a=e.shared,s=e.runtimeEnv?e.runtimeEnv:{...o.env,...e.experimental__runtimeEnv};return function(e){var t,n,o,a,s,u,l;let c=null!==(n=null!==(t=e.runtimeEnvStrict)&&void 0!==t?t:e.runtimeEnv)&&void 0!==n?n:i.env;if(null!==(o=e.emptyStringAsUndefined)&&void 0!==o&&o)for(let[e,t]of Object.entries(c))""===t&&delete c[e];if(e.skipValidation)return c;let d="object"==typeof e.client?e.client:{},f="object"==typeof e.server?e.server:{},h="object"==typeof e.shared?e.shared:{},p=(0,r.Ry)(d),m=(0,r.Ry)(f),y=(0,r.Ry)(h),g=null!==(a=e.isServer)&&void 0!==a?a:"undefined"==typeof window||"Deno"in window,w=p.merge(y),b=m.merge(y).merge(p),P=g?b.safeParse(c):w.safeParse(c),E=null!==(s=e.onValidationError)&&void 0!==s?s:e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")},_=null!==(u=e.onInvalidAccess)&&void 0!==u?u:e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")};if(!1===P.success)return E(P.error);let C=t=>!e.clientPrefix||!t.startsWith(e.clientPrefix)&&!(t in y.shape),I=e=>g||!C(e),x=e=>"__esModule"===e||"$$typeof"===e,S=(null!==(l=e.extends)&&void 0!==l?l:[]).reduce((e,t)=>Object.assign(e,t),{}),O=Object.assign(P.data,S);return new Proxy(O,{get(e,t){if("string"==typeof t&&!x(t))return I(t)?Reflect.get(e,t):_(t)}})}({...e,shared:a,client:t,server:n,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:s})}},83539:function(e,t,n){"use strict";function r(){}function i(e){let{storage:t,key:n="REACT_QUERY_OFFLINE_CACHE",throttleTime:i=1e3,serialize:o=JSON.stringify,deserialize:a=JSON.parse,retry:s}=e;if(t){let e=e=>{try{t.setItem(n,o(e));return}catch(e){return e}};return{persistClient:function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];t=o,null===r&&(r=setTimeout(()=>{e(...t),r=null},n))}}(t=>{let n=t,r=e(n),i=0;for(;r&&n;)i++,(n=null==s?void 0:s({persistedClient:n,error:r,errorCount:i}))&&(r=e(n))},i),restoreClient:()=>{let e=t.getItem(n);if(e)return a(e)},removeClient:()=>{t.removeItem(n)}}}return{persistClient:r,restoreClient:()=>void 0,removeClient:r}}n.d(t,{K:function(){return i}})},23042:function(e,t,n){"use strict";n.d(t,{S:function(){return A}});var r,i,o,a,s,u,l,c,d,f,h,p=n(180),m=n(75122),y=n(1135),g=n(60116);function w(e,t){var n=(0,g.J)(e,t,"update");return function(e,t){if(t.set){if(!t.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in t||(t.__destrWrapper={set value(v){t.set.call(e,v)},get value(){return t.get.call(e)}}),t.__destrWrapper}if(!t.writable)throw TypeError("attempted to set read only private field");return t}(e,n)}var b=n(61287),P=n(76915),E=n(5677),_=n(3662),C=(r=new WeakMap,class extends _.l{build(e,t,n){var r;let i=t.queryKey,o=null!==(r=t.queryHash)&&void 0!==r?r:(0,b.Rm)(i,t),a=this.get(o);return a||(a=new P.A({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){(0,p._)(this,r).has(e.queryHash)||((0,p._)(this,r).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=(0,p._)(this,r).get(e.queryHash);t&&(e.destroy(),t===e&&(0,p._)(this,r).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){E.V.batch(()=>
37{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return(0,p._)(this,r).get(e)}getAll(){return[...(0,p._)(this,r).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,b._x)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,b._x)(e,t)):t}notify(e){E.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){E.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){E.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}constructor(e={}){super(),(0,m._)(this,r,{writable:!0,value:void 0}),this.config=e,(0,y._)(this,r,new Map)}}),I=n(13542),x=(i=new WeakMap,o=new WeakMap,class extends _.l{build(e,t,n){let r=new I.m({mutationCache:this,mutationId:++w(this,o).value,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){var t;let n=S(e),r=null!==(t=(0,p._)(this,i).get(n))&&void 0!==t?t:[];r.push(e),(0,p._)(this,i).set(n,r),this.notify({type:"added",mutation:e})}remove(e){let t=S(e);if((0,p._)(this,i).has(t)){var n;let r=null===(n=(0,p._)(this,i).get(t))||void 0===n?void 0:n.filter(t=>t!==e);r&&(0===r.length?(0,p._)(this,i).delete(t):(0,p._)(this,i).set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;let n=null===(t=(0,p._)(this,i).get(S(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;let r=null===(t=(0,p._)(this,i).get(S(e)))||void 0===t?void 0:t.find(t=>
37t!==e&&t.state.isPaused);return null!==(n=null==r?void 0:r.continue())&&void 0!==n?n:Promise.resolve()}clear(){E.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...(0,p._)(this,i).values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,b.X7)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>(0,b.X7)(e,t))}notify(e){E.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return E.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(b.ZT))))}constructor(e={}){super(),(0,m._)(this,i,{writable:!0,value:void 0}),(0,m._)(this,o,{writable:!0,value:void 0}),this.config=e,(0,y._)(this,i,new Map),(0,y._)(this,o,Date.now())}});function S(e){var t,n;return null!==(n=null===(t=e.options.scope)||void 0===t?void 0:t.id)&&void 0!==n?n:String(e.mutationId)}var O=n(5126),T=n(67040),R=n(91916),A=(a=new WeakMap,s=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,class{mount(){w(this,d).value++,1===(0,p._)(this,d)&&((0,y._)(this,f,O.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,p._)(this,a).onFocus())})),(0,y._)(this,h,T.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,p._)(this,a).onOnline())})))}unmount(){var e,t;w(this,d).value--,0===(0,p._)(this,d)&&(null===(e=(0,p._)(this,f))||void 0===e||e.call(this),(0,y._)(this,f,void 0),null===(t=(0,p._)(this,h))||void 0===t||t.call(this),(0,y._)(this,h,void 0))}isFetching(e){return(0,p._)(this,a).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return(0,p._)(this,s).findAll({...e,status:"pending"}).length}getQueryData(e){var t;let n=this.defaultQueryOptions({queryKey:e});return null===(t=(0,p._)(this,a).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),r=(0,p._)(this,a).build(this,n);return e.revalidateIfStale&&r.isStaleByTime((0,b.KC)(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return(0,p._)(this,a).findAll(e).map(e=>{let{queryKey:t,state:n}=e;return[t,n.data]})}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=(0,p._)(this,a).get(r.queryHash),o=null==i?void 0:i.state.data,s=(0,b.SE)(t,o);if(void 0!==s)return(0,p._)(this,a).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return E.V.batch(()=>(0,p._)(this,a).findAll(e).map(e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))}getQueryState(e){var t;let n=this.defaultQueryOptions({queryKey:e});return null===(t=(0,p._)(this,a).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){let t=(0,p._)(this,a);E.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=(0,p._)(this,a),r={type:"active",...e};return E.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={revert:!0,...t};return Promise.all(E.V.batch(()=>(0,p._)(this,a).findAll(e).map(e=>e.cancel(n)))).then(b.ZT).catch(b.ZT)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E.V.batch(()=>{var n,r;if((0,p._)(this,a).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let i={...e,type:null!==(r=null!==(n=e.refetchType)&&void 0!==n?n:e.type)&&void 0!==r?r:"active"};return this.refetchQueries(i,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r={...n,cancelRefetch:null===(e=null==n?void 0:n.cancelRefetch)||void 0===e||e};return Promise.all(E.V.batch(()=>(0,p._)(this,a).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(b.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(b.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=(0,p._)(this,a).build(this,t);return n.isStaleByTime((0,b.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b.ZT).catch(b.ZT)}
37fetchInfiniteQuery(e){return e.behavior=(0,R.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b.ZT).catch(b.ZT)}ensureInfiniteQueryData(e){return e.behavior=(0,R.Gm)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return T.N.isOnline()?(0,p._)(this,s).resumePausedMutations():Promise.resolve()}getQueryCache(){return(0,p._)(this,a)}getMutationCache(){return(0,p._)(this,s)}getDefaultOptions(){return(0,p._)(this,u)}setDefaultOptions(e){(0,y._)(this,u,e)}setQueryDefaults(e,t){(0,p._)(this,l).set((0,b.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...(0,p._)(this,l).values()],n={};return t.forEach(t=>{(0,b.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){(0,p._)(this,c).set((0,b.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...(0,p._)(this,c).values()],n={};return t.forEach(t=>{(0,b.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...(0,p._)(this,u).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,b.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===b.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...(0,p._)(this,u).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){(0,p._)(this,a).clear(),(0,p._)(this,s).clear()}constructor(e={}){(0,m._)(this,a,{writable:!0,value:void 0}),(0,m._)(this,s,{writable:!0,value:void 0}),(0,m._)(this,u,{writable:!0,value:void 0}),(0,m._)(this,l,{writable:!0,value:void 0}),(0,m._)(this,c,{writable:!0,value:void 0}),(0,m._)(this,d,{writable:!0,value:void 0}),(0,m._)(this,f,{writable:!0,value:void 0}),(0,m._)(this,h,{writable:!0,value:void 0}),(0,y._)(this,a,e.queryCache||new C),(0,y._)(this,s,e.mutationCache||new x),(0,y._)(this,u,e.defaultOptions||{}),(0,y._)(this,l,new Map),(0,y._)(this,c,new Map),(0,y._)(this,d,0)}})},92679:function(e,t,n){"use strict";function r(e){let t=e.state.current,n=e.state.connections.get(t),r=null==n?void 0:n.accounts,i=null==r?void 0:r[0],o=e.chains.find(e=>e.id===(null==n?void 0:n.chainId)),a=e.state.status;switch(a){case"connected":return{address:i,addresses:r,chain:o,chainId:null==n?void 0:n.chainId,connector:null==n?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case"reconnecting":return{address:i,addresses:r,chain:o,chainId:null==n?void 0:n.chainId,connector:null==n?void 0:n.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case"connecting":return{address:i,addresses:r,chain:o,chainId:null==n?void 0:n.chainId,connector:null==n?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}n.d(t,{D:function(){return r}})},9212:function(e,t,n){"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=e.getClient(n)}catch(e){}return t}n.d(t,{s:function(){return r}})},33235:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(5302),i=n(33231),o=n(81182),a=n(65586),s=n(43806);async function u(e){var t,n;let u,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l.connector){let{connector:e}=l,[t,n]=await Promise.all([e.getAccounts(),e.getChainId()]);u={accounts:t,chainId:n,connector:e}}else u=e.state.connections.get(e.state.current);if(!u)throw new s.aH;let c=null!==(t=l.chainId)&&void 0!==t?t:u.chainId,d=u.connector;if(d.getClient)return d.getClient({chainId:c});let f=(0,o.T)(null!==(n=l.account)&&void 0!==n?n:u.accounts[0]);f.address=(0,a.K)(f.address);let h=e.chains.find(e=>e.id===c),p=await u.connector.getProvider({chainId:c});if(l.account&&!u.accounts.some(e=>e.toLowerCase()===f.address.toLowerCase()))throw new s.JK({address:f.address,connector:d});return(0,r.e)({account:f,chain:h,name:"Connector Client",transport:e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
37,{key:n="custom",name:r="Custom Provider",retryDelay:o}=t;return a=>{var s;let{retryCount:u}=a;return(0,i.q)({key:n,name:r,request:e.request.bind(e),retryCount:null!==(s=t.retryCount)&&void 0!==s?s:u,retryDelay:o,type:"custom"})}})(p)({...e,retryCount:0})})}},87789:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(18338),i=n(56366),o=n(33235);async function a(e,t){let n;let{abi:a,chainId:s,connector:u,...l}=t;n=t.account?t.account:(await (0,o.e)(e,{chainId:s,connector:u})).account;let c=e.getClient({chainId:s}),d=(0,i.s)(c,r.a,"simulateContract"),{result:f,request:h}=await d({...l,abi:a,account:n});return{chainId:c.chain.id,result:f,request:{__mode:"prepared",...h,chainId:s}}}},8154:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(79074),i=n(92679);function o(e,t){let{onChange:n}=t;return e.subscribe(()=>(0,i.D)(e),n,{equalityFn(e,t){let{connector:n,...i}=e,{connector:o,...a}=t;return(0,r.v)(i,a)&&(null==n?void 0:n.id)===(null==o?void 0:o.id)&&(null==n?void 0:n.uid)===(null==o?void 0:o.uid)}})}},47481:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return T}});var i=n(5302);let o=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,a=e(r.getState());o=n=>{let r=e(n);if(!i(a,r)){let e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)},e(t,n,r)},a=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>a(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},s=(e,t)=>(n,r,i)=>{let o,s,u={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=new Set,d=new Set;try{o=u.getStorage()}catch(e){}if(!o)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 '".concat(u.name,"', the given storage is currently unavailable.")),n(...t)},r,i);let f=a(u.serialize),h=()=>{let e;let t=f({state:u.partialize({...r()}),version:u.version}).then(e=>o.setItem(u.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=i.setState;i.setState=(e,t)=>{p(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()},r,i),y=()=>{var e;if(!o)return;l=!1,c.forEach(e=>e(r()));let t=(null==(e=u.onRehydrateStorage)?void 0:e.call(u,r()))||void 0;return a(o.getItem.bind(o))(u.name).then(e=>{if(e)return u.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===u.version)return e.state;if(u.migrate)return u.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(s=u.merge(e,null!=(t=r())?t:m),!0),h()}).then(()=>{null==t||t(s,void 0),l=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{u={...u,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>y(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},y(),s||m},u=(e,t)=>(n,r,i)=>{let o,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(r=n.getItem(e))?r:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,l=new Set,c=new Set,d=s.storage;if(!d)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 '".concat(s.name,"', the given storage is currently unavailable.")),n(...t)},r,i);let f=()=>{let e=s.partialize({...r()});return d.setItem(s.name,{state:e,version:s.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];n(...t),f()},r,i),m=()=>{var e,t;if(!d)return;
37u=!1,l.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:p))||void 0;return a(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(o=s.merge(e,null!=(t=r())?t:p),!0),f()}).then(()=>{null==i||i(o,void 0),o=r(),u=!0,c.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},s.skipHydration||m(),o||p},l=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),s(e,t)):u(e,t),c=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)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,o),o},d=e=>e?c(e):c;var f=n(65586),h=n(94123),p=n(29934),m=n(50340),y=n(30951),g=n(43806),w=n(96678);let b=/(rabby|trustwallet)/,P={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>(null==e?void 0:e.coinbaseWalletExtension)?e.coinbaseWalletExtension:_(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>_(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","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(null==e?void 0:null===(t=e.phantom)||void 0===t?void 0:t.ethereum)?null===(n=e.phantom)||void 0===n?void 0:n.ethereum:_(e,"isPhantom")}}};function E(){let e,t,n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{shimDisconnect:o=!0,unstable_shimAsyncInject:a}=i;function s(){var e;let t=i.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...null!==(e=P[t])&&void 0!==e?e:{id:t,name:"".concat(t[0].toUpperCase()).concat(t.slice(1)),provider:"is".concat(t[0].toUpperCase()).concat(t.slice(1))}}:{id:"injected",name:"Injected",provider:e=>null==e?void 0:e.ethereum}}return u=>({get icon(){return s().icon},get id(){return s().id},get name(){return s().name},get supportsSimulation(){return b.test(this.id.toLowerCase())},type:E.type,async setup(){let t=await this.getProvider();t&&i.target&&(n||(n=this.onConnect.bind(this),t.on("connect",n)),e||(e=this.onAccountsChanged.bind(this),t.on("accountsChanged",e)))},async connect(){var a,s,l,c,d,p,m;let{chainId:y,isReconnecting:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=await this.getProvider();if(!b)throw new w.M;let P=[];if(g)P=await this.getAccounts().catch(()=>[]);else if(o)try{let e=await b.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});P=null===(c=e[0])||void 0===c?void 0:null===(l=c.caveats)||void 0===l?void 0:null===(s=l[0])||void 0===s?void 0:null===(a=s.value)||void 0===a?void 0:a.map(e=>(0,f.K)(e))}catch(e){if(e.code===h.ab.code)throw new h.ab(e);if(e.code===h.pT.code)throw e}try{(null==P?void 0:P.length)||g||(P=(await b.request({method:"eth_requestAccounts"})).map(e=>(0,f.K)(e))),n&&(b.removeListener("connect",n),n=void 0),e||(e=this.onAccountsChanged.bind(this),b.on("accountsChanged",e)),t||(t=this.onChainChanged.bind(this),b.on("chainChanged",t)),r||(r=this.onDisconnect.bind(this),b.on("disconnect",r));let a=await this.getChainId();if(y&&a!==y){let e=await this.switchChain({chainId:y}).catch(e=>{if(e.code===h.ab.code)throw e;return{id:a}});a=null!==(m=null==e?void 0:e.id)&&void 0!==m?m:a}return o&&await (null===(d=u.storage)||void 0===d?void 0:d.removeItem("".concat(this.id,".disconnected"))),i.target||await (null===(p=u.storage)||void 0===p?void 0:p.setItem("injected.connected",!0)),{accounts:P,chainId:a}}catch(e){if(e.code===h.ab.code)throw new h.ab(e);if(e.code===h.pT.code)throw new h.pT(e);throw e}},async disconnect(){var e,a;let s=await this.getProvider();if(!s)throw new w.M;t&&(s.removeListener("chainChanged",t),t=void 0),r&&(s.removeListener("disconnect",r),r=void 0),n||(n=this.onConnect.bind(this),s.on("connect",n));try{await s.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]})}catch(e){}o&&await (null===(a=u.storage)||void 0===a?void 0:a.setItem("".concat(this.id,".disconnected"),!0)),i.target||await (null===(e=u.storage)||void 0===e?void 0:e.removeItem("injected.connected"))},async getAccounts(){let e=await this.getProvider();if(!e)throw new w.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,f.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new w.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=s();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?_(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
37,async isAuthorized(){try{var e,t;if(o&&await (null===(e=u.storage)||void 0===e?void 0:e.getItem("".concat(this.id,".disconnected")))||!i.target&&!await (null===(t=u.storage)||void 0===t?void 0:t.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(void 0!==a&&!1!==a){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof a?a: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 w.M}return!!(await (0,p.J)(()=>(0,m.F)(()=>this.getAccounts(),{timeout:100}))).length}catch(e){return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e,r=await this.getProvider();if(!r)throw new w.M;let i=u.chains.find(e=>e.id===n);if(!i)throw new h.x3(new g.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,y.eC)(n)}]}).then(async()=>{await this.getChainId()===n&&u.emitter.emit("change",{chainId:n})}),new Promise(e=>u.emitter.once("change",t=>{let{chainId:r}=t;r===n&&e()}))]),i}catch(e){var o,a,s,l,c,d,f,p;if(4902===e.code||(null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(o=a.originalError)||void 0===o?void 0:o.code)===4902)try{let e,o;let{default:a,...u}=null!==(c=i.blockExplorers)&&void 0!==c?c:{};(null==t?void 0:t.blockExplorerUrls)?e=t.blockExplorerUrls:a&&(e=[a.url,...Object.values(u).map(e=>e.url)]),o=(null==t?void 0:null===(s=t.rpcUrls)||void 0===s?void 0:s.length)?t.rpcUrls:[null!==(d=null===(l=i.rpcUrls.default)||void 0===l?void 0:l.http[0])&&void 0!==d?d:""];let m={blockExplorerUrls:e,chainId:(0,y.eC)(n),chainName:null!==(f=null==t?void 0:t.chainName)&&void 0!==f?f:i.name,iconUrls:null==t?void 0:t.iconUrls,nativeCurrency:null!==(p=null==t?void 0:t.nativeCurrency)&&void 0!==p?p:i.nativeCurrency,rpcUrls:o};if(await r.request({method:"wallet_addEthereumChain",params:[m]}),await this.getChainId()!==n)throw new h.ab(Error("User rejected switch after adding network."));return i}catch(e){throw new h.ab(e)}if(e.code===h.ab.code)throw new h.ab(e);throw new h.x3(e)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(u.emitter.listenerCount("connect")){var t;let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),o&&await (null===(t=u.storage)||void 0===t?void 0:t.removeItem("".concat(this.id,".disconnected")))}else u.emitter.emit("change",{accounts:e.map(e=>(0,f.K)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(i){let o=await this.getAccounts();if(0===o.length)return;let a=Number(i.chainId);u.emitter.emit("connect",{accounts:o,chainId:a});let s=await this.getProvider();s&&(n&&(s.removeListener("connect",n),n=void 0),e||(e=this.onAccountsChanged.bind(this),s.on("accountsChanged",e)),t||(t=this.onChainChanged.bind(this),s.on("chainChanged",t)),r||(r=this.onDisconnect.bind(this),s.on("disconnect",r)))},async onDisconnect(e){let i=await this.getProvider();e&&1013===e.code&&i&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),i&&(t&&(i.removeListener("chainChanged",t),t=void 0),r&&(i.removeListener("disconnect",r),r=void 0),n||(n=this.onConnect.bind(this),i.on("connect",n))))}})}function _(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return(null==r?void 0:r.providers)?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}E.type="injected";var C=n(43170);class I{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,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=n[0];this._emitter.emit(e,{uid:this.uid,...i})}listenerCount(e){return this._emitter.listenerCount(e)}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})}}var x=n(24139);let S=256;var O=n(94031);function T(e){var t;let n;let{multiInjectedProviderDiscovery:a=!0,storage:s=(0,x.o)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:x.w}),syncConnectedChain:u=!0,ssr:c,...f}=e,h="undefined"!=typeof window&&a?function(){let e=new Set,t=[],n=()=>(function(e){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(e=>{let{info:t}=e;return t.uuid===n.info.uuid}
37)||(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(e){let{rdns:n}=e;return t.find(e=>e.info.rdns===n)},getProviders:()=>t,reset(){this.clear(),r(),r=n()},subscribe(n){let{emitImmediately:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.add(n),r&&n(t,{added:t}),()=>e.delete(n)}}}():void 0,p=d(()=>f.chains),m=d(()=>{var e,t;return[...null!==(e=f.connectors)&&void 0!==e?e:[],...c?[]:null!==(t=null==h?void 0:h.getProviders().map(w))&&void 0!==t?t:[]].map(y)});function y(e){var t;let n=new I(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!r||S+e>512){r="",S=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(S,S+++e)}()),i={...e({emitter:n,chains:p.getState(),storage:s}),emitter:n,uid:n.uid};return n.on("connect",R),null===(t=i.setup)||void 0===t||t.call(i),i}function w(e){let{info:t}=e,n=e.provider;return E({target:{...t,id:t.rdns,provider:n}})}let b=new Map;function P(){return{chainId:p.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let _="0.0.0-canary-";n=O.i.startsWith(_)?Number.parseInt(O.i.replace(_,"")):Number.parseInt(null!==(t=O.i.split(".")[0])&&void 0!==t?t:"0");let C=d(o(s?l(P,{migrate(e,t){if(t===n)return e;let r=P(),i=e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId?e.chainId:r.chainId;return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(e=>{let[t,n]=e,{id:r,name:i,type:o,uid:a}=n.connector;return[t,{...n,connector:{id:r,name:i,type:o,uid:a}}]})},chainId:e.chainId,current:e.current}),skipHydration:c,storage:s,version:n}):P));function T(e){C.setState(t=>{var n,r;let i=t.connections.get(e.uid);return i?{...t,connections:new Map(t.connections).set(e.uid,{accounts:null!==(n=e.accounts)&&void 0!==n?n:i.accounts,chainId:null!==(r=e.chainId)&&void 0!==r?r:i.chainId,connector:i.connector})}:t})}function R(e){"connecting"!==C.getState().status&&"reconnecting"!==C.getState().status&&C.setState(t=>{let n=m.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",T),n.emitter.listenerCount("change")||n.emitter.on("change",T),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",A),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function A(e){C.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",T),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",A),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",R)}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 u&&C.subscribe(e=>{var t;let{connections:n,current:r}=e;return r?null===(t=n.get(r))||void 0===t?void 0:t.chainId:void 0},e=>{if(p.getState().some(t=>t.id===e))return C.setState(t=>({...t,chainId:null!=e?e:t.chainId}))}),null==h||h.subscribe(e=>{let t=new Map;for(let e of m.getState())t.set(e.id,!0);let n=[];for(let r of e){let e=y(w(r));t.has(e.id)||n.push(e)}(!s||C.persist.hasHydrated())&&m.setState(e=>[...e,...n],!0)}),{get chains(){return p.getState()},get connectors(){return m.getState()},storage:s,getClient:function(){var e,t;let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=null!==(e=r.chainId)&&void 0!==e?e:C.getState().chainId,a=p.getState().find(e=>e.id===o);if(r.chainId&&!a)throw new g.X4;{let e=b.get(C.getState().chainId);if(e&&!a)return e;if(!a)throw new g.X4}{let e=b.get(o);if(e)return e}if(f.client)n=f.client({chain:a});else{let e=a.id,r=p.getState().map(e=>e.id),o={};for(let[t,n]of Object.entries(f))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof n){if(e in n)o[t]=n[e];else{if(r.some(e=>e in n))continue;o[t]=n}}else o[t]=n}n=(0,i.e)({...o,chain:a,batch:null!==(t=o.batch)&&void 0!==t?t:{multicall:!0},transport:t=>f.transports[e]({...t,connectors:m})})}return b.set(o,n),n},get state(){return C.getState()},setState(e){let t;t="function"==typeof e?e(C.getState()):e;let n=P();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),C.setState(t,!0)}
37,subscribe:(e,t,n)=>C.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:h,store:C,ssr:!!c,syncConnectedChain:u,transports:f.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)},connectors:{providerDetailToConnector:w,setup:y,setState:e=>m.setState("function"==typeof e?e(m.getState()):e,!0),subscribe:e=>m.subscribe(e)},events:{change:T,connect:R,disconnect:A}}}}},24139:function(e,t,n){"use strict";n.d(t,{o:function(){return o},w:function(){return a}});var r=n(77744),i=n(53028);function o(e){let{deserialize:t=r.v,key:n="wagmi",serialize:o=i.q,storage:s=a}=e;function u(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...s,key:n,async getItem(e,r){var i;let o=s.getItem("".concat(n,".").concat(e)),a=await u(o);return a?null!==(i=t(a))&&void 0!==i?i:null:null!=r?r:null},async setItem(e,t){let r="".concat(n,".").concat(e);null===t?await u(s.removeItem(r)):await u(s.setItem(r,o(t)))},async removeItem(e){await u(s.removeItem("".concat(n,".").concat(e)))}}}let a={getItem:()=>null,setItem:()=>{},removeItem:()=>{}}},43806:function(e,t,n){"use strict";n.d(t,{JK:function(){return s},X4:function(){return i},aH:function(){return a},wi:function(){return o}});var r=n(64426);class i extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor({address:e,connector:t}){super('Account "'.concat(e,'" not found for connector "').concat(t.name,'".')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}},96678:function(e,t,n){"use strict";n.d(t,{M:function(){return i},O:function(){return o}});var r=n(64426);class i extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class o extends r.G{constructor({connector:e}){super('"'.concat(e.name,'" does not support programmatic chain switching.')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},61992:function(e,t,n){"use strict";n.d(t,{Dr:function(){return r}});let r={getItem(e){if("undefined"==typeof window)return null;let t=function(e,t){let n=e.split("; ").find(e=>e.startsWith("".concat(t,"=")));if(n)return n.substring(t.length+1)}(document.cookie,e);return null!=t?t:null},setItem(e,t){"undefined"!=typeof window&&(document.cookie="".concat(e,"=").concat(t,";path=/"))},removeItem(e){"undefined"!=typeof window&&(document.cookie="".concat(e,"=;max-age=-1"))}}},77744:function(e,t,n){"use strict";function r(e,t){return JSON.parse(e,(e,n)=>{var r;let i=n;return(null==i?void 0:i.__type)==="bigint"&&(i=BigInt(i.value)),(null==i?void 0:i.__type)==="Map"&&(i=new Map(i.value)),null!==(r=null==t?void 0:t(e,i))&&void 0!==r?r:i})}n.d(t,{v:function(){return r}})},53028:function(e,t,n){"use strict";function r(e,t){return e.slice(0,t).join(".")||"."}function i(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,o){return JSON.stringify(e,function(e,t){let n="function"==typeof e,o="function"==typeof t,a=[],s=[];return function(u,l){if("object"==typeof l){if(a.length){let e=i(a,this);0===e?a[a.length]=this:(a.splice(e),s.splice(e)),s[s.length]=u;let n=i(a,l);if(0!==n)return o?t.call(this,u,l,r(s,n)):"[ref=".concat(r(s,n),"]")}else a[0]=l,s[0]=u}return n?e.call(this,u,l):l}}((e,n)=>{var r;let i=n;return"bigint"==typeof i&&(i={__type:"bigint",value:n.toString()}),i instanceof Map&&(i={__type:"Map",value:Array.from(n.entries())}),null!==(r=null==t?void 0:t(e,i))&&void 0!==r?r:i},o),null!=n?n:void 0)}n.d(t,{q:function(){return o}})},7521:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r},o=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,u=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),l=n&&Object.entries(n).reduce((e,t)=>
37{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...l}[t]):({...s,...l})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},53167:function(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:function(){return j},__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return I},__asyncValues:function(){return S},__await:function(){return C},__awaiter:function(){return p},__classPrivateFieldGet:function(){return B},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return N},__createBinding:function(){return y},__decorate:function(){return s},__disposeResources:function(){return F},__esDecorate:function(){return l},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return A},__importStar:function(){return R}
vendor: 9,655 bytes, line 37
37,__makeTemplateObject:function(){return O},__metadata:function(){return h},__param:function(){return u},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return c},__setFunctionName:function(){return f},__spread:function(){return P},__spreadArray:function(){return _},__spreadArrays:function(){return E},__values:function(){return w}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,h=n.length-1;h>=0;h--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,n[h])("accessor"===u?{get:d.get,set:d.set}:d[l],p);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(d.get=s),(s=a(y.set))&&(d.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===u?i.unshift(s):d[l]=s)}c&&Object.defineProperty(c,r.name,d),f=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var y=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function w(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function P(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function _(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof C?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=w(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&y(t,e,n);return T(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function B(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function N(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function k(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,n){if(null!=t){var r;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var q="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function F(e){function t(t){e.error=e.hasError?new q(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:h,__awaiter:p,__generator:m,__createBinding:y,__exportStar:g,__values:w,__read:b,__spread:P,__spreadArrays:E,__spreadArray:_,__await:C,__asyncGenerator:I,__asyncDelegator:x,__asyncValues:S,__makeTemplateOb
37ject:O,__importStar:R,__importDefault:A,__classPrivateFieldGet:B,__classPrivateFieldSet:N,__classPrivateFieldIn:k,__addDisposableResource:j,__disposeResources:F}},79114:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(70054),i=n(61085),o=n(79820),a=n(34816),s=n(82866),u=n(30951),l=n(46041),c=n(80578),d=n(20279),f=n(66387),h=n(85055);async function p(e,t){let{blockNumber:n,blockTag:p,coinType:m,name:y,gatewayUrls:g,strict:w,universalResolverAddress:b}=t,P=b;if(!P){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");P=(0,a.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{let t=(0,o.R)({abi:r.X$,functionName:"addr",...null!=m?{args:[(0,c.V)(y),BigInt(m)]}:{args:[(0,c.V)(y)]}}),a={address:P,abi:r.k3,functionName:"resolve",args:[(0,u.NC)((0,d.T)(y)),t],blockNumber:n,blockTag:p},l=(0,f.s)(e,h.L,"readContract"),w=g?await l({...a,args:[...a.args,g]}):await l(a);if("0x"===w[0])return null;let b=(0,i.k)({abi:r.X$,args:null!=m?[(0,c.V)(y),BigInt(m)]:void 0,functionName:"addr",data:w[0]});if("0x"===b||"0x00"===(0,s.f)(b))return null;return b}catch(e){if(w)throw e;if((0,l.c)(e,"resolve"))return null;throw e}}},88768:function(e,t,n){"use strict";n.d(t,{r:function(){return I}});var r=n(85055),i=n(68871);class o extends i.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","","Provided data: ".concat(JSON.stringify(e))]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class a extends i.G{constructor({reason:e}){super("ENS NFT avatar URI is invalid. ".concat(e)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class s extends i.G{constructor({uri:e}){super('Unable to resolve ENS avatar URI "'.concat(e,'". The URI may be malformed, invalid, or does not respond with a valid image.')),Ob
37ject.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class u extends i.G{constructor({namespace:e}){super('ENS NFT avatar namespace "'.concat(e,'" is not supported. Must be "erc721" or "erc1155".')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let l=RegExp("(?<protocol>https?:\\/\\/[^\\/]*|ipfs:\\/|ipns:\\/|ar:\\/)?(?<root>\\/)?(?<subpath>ipfs\\/|ipns\\/)?(?<target>[\\w\\-.]+)(?<subtarget>\\/.*)?"),c=RegExp("^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\/(?<target>[\\w\\-.]+))?(?<subtarget>\\/.*)?$"),d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function h(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return null==e?void 0:e.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m(e){let{uri:t,gatewayUrls:n}=e,r=d.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};let i=p(null==n?void 0:n.ipfs,"https://ipfs.io"),o=p(null==n?void 0:n.arweave,"https://arweave.net"),a=t.match(l),{protocol:u,subpath:h,target:m,subtarget:y=""}=(null==a?void 0:a.groups)||{},g="ipns:/"===u||"ipns/"===h,w="ipfs:/"===u||"ipfs/"===h||c.test(t);if(t.startsWith("http")&&!g&&!w){let e=t;return(null==n?void 0:n.arweave)&&(e=t.replace(/https:\/\/arweave.net/g,null==n?void 0:n.arweave)),{uri:e,isOnChain:!1,isEncoded:!1}}if((g||w)&&m)return{uri:"".concat(i,"/").concat(g?"ipns":"ipfs","/").concat(m).concat(y),isOnChain:!1,isEncoded:!1};if("ar:/"===u&&m)return{uri:"".concat(o,"/").concat(m).concat(y||""),isOnChain:!1,isEncoded:!1};let b=t.replace(f,"");if(b.startsWith("<svg")&&(b="data:image/svg+xml;base64,".concat(btoa(b))),b.startsWith("data:")||b.startsWith("{"))return{uri:b,isOnChain:!0,isEncoded:!1};throw new s({uri:t})}function y(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o({data:e});return e.image||e.image_url||e.image_data}async function g(e){let{gatewayUrls:t,uri:n}=e;try{let e=await fetch(n).then(e=>e.json());return await w({gatewayUrls:t,uri:y(e)})}catch(e){throw new s({uri:n})}}async function w(e){let{gatewayUrls:t,uri:n}=e,{uri:r,isOnChain:i}=m({uri:n,gatewayUrls:t});if(i||await h(r))return r;throw new s({uri:n})}async function b(e,t){let{nft:n}=t;if("erc721"===n.namespace)return(0,r.L)(e,{address:n.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(n.tokenID)]});if("erc1155"===n.namespace)return(0,r.L)(e,{address:n.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(n.tokenID)]});throw new u({namespace:n.namespace})}async function P(e,t){let{gatewayUrls:n,record:r}=t;return/eip155:/i.test(r)?E(e,{gatewayUrls:n,record:r}):w({uri:r,gatewayUrls:n})}async function E(e,t){let{gatewayUrls:n,record:r}=t,i=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,i]=t.split("/"),[o,s]=n.split(":"),[u,l]=r.split(":");if(!o||"eip155"!==o.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!l)throw new a({reason:"Contract address not found"});if(!i)throw new a({reason:"Token ID not found"});if(!u)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:u.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:o,isOnChain:s,isEncoded:u}=m({uri:await b(e,{nft:i}),gatewayUrls:n});if(s&&(o.includes("data:application/json;base64,")||o.startsWith("{")))return w({uri:y(JSON.parse(u?atob(o.replace("data:application/json;base64,","")):o)),gatewayUrls:n});let l=i.tokenID;return"erc1155"===i.namespace&&(l=l.replace("0x","").padStart(64,"0")),g({gatewayUrls:n,uri:o.replace(/(?:0x)?{id}/,l)})}var _=n(66387),C=n(24454);async function I(e,t){let{blockNumber:n,blockTag:r,assetGatewayUrls:i,name:o,gatewayUrls:a,strict:s,universalResolverAddress:u}=t,l=await (0,_.s)(e,C.g,"getEnsText")({blockNumber:n,blockTag:r,key:"avatar",name:o,universalResolverAddress:u,gatewayUrls:a,strict:s});if(!l)return null;try{return await P(e,{record:l,gatewayUrls:i})}catch(e){return null}}},18254:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var r=n(70054),i=n(34816),o=n(30951),a=n(46041),s=n(20279),u=n(66387),l=n(85055);async function c(e,t){let{address:n,blockNumber:c,blockTag:d,gatewayUrls:f,strict:h,universalResolverAddress:p}=t,m=p;if(!m){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");m=(0,i.L)({blockNumber:c,chain:e.chain,contract:"ensUniversalResolver"})}let y="".concat(n.toLowerCase().substring(2),".addr.reverse");try{let t={address:m,abi:r.du,functionName:"reverse",args:[(0,o.NC)((0,s.T)(y))],blockNumber:c,blockTag:d},i=(0,u.s)(e,l.L,"readContract"),[a,h]=f?await i({...t,args:[...t.args,f]}):await i(t);if(n.toLowerCase()!==h.toLowerCase())return null;return a}catch(e){if(h)throw e;if((0,a.c)(e,"reverse"))return null;throw e}}},85456:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(34816),i=n(30951),o=n(20279),a=n(66387),s=n(85055);async function u(e,t){let{blockNumber:n,blockTag:u,name:l,universalResolverAddress:c}=t,d=c;if(!d){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");d=(0,r.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let[f]=await (0,a.s)(e,s.L,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,i.NC)((0,o.T)(l))],blockNumber:n,blockTag:u});return f}},24454:function(e,t,n){"use strict";n.d(t,{g:function(){return h}});var r=n(70054),i=n(61085),o=n(79820),a=n(34816),s=n(30951),u=n(46041),l=n(80578),c=n(20279),d=n(66387),f=n(85055);async function h(e,t){let{blockNumber:n,blockTag:h,name:p,key:m,gatewayUrls:y,strict:g,universalResolverAddress:w}=t,b=w;if(!b){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");b=(0,a.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{let t={address:b,abi:r.k3,functionName:"resolve",args:[(0,s.NC)((0,c.T)(p)),(0,o.R)({abi:r.nZ,functionName:"text",args:[(0,l.V)(p),m]})],blockNumber:n,blockTag:h},a=(0,d.s)(e,f.L,"readContract"),u=y?await a({...t,args:[...t.args,y]}):await a(t);if("0x"===u[0])return null;let g=(0,i.k)({abi:r.nZ,functionName:"text",data:u[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,u.c)(e,"resolve"))return null;throw e}}},43708:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(80889),i=n(30951),o=n(12203);async function a(e,t){let{address:n,abi:a,args:s,eventName:u,fromBlock:l,strict:c,toBlock:d}=t,f=(0,o.g)(e,{method:"eth_newFilter"}),h=u?(0,r.O)({abi:a,args:s,eventName:u}):void 0,p=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof l?(0,i.eC)(l):l,toBlock:"bigint"==typeof d?(0,i.eC)(d):d,topics:h}]});return{abi:a,args:s,eventName:u,id:p,request:f(p),strict:!!c,type:"event"}}},36443:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(12203);async function i(e){let t=(0,r.g)(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}},67897:function(e,t,n){"use strict";n.d(t,{C:function(){return l},X:function(){return u}});var r=n(31323),i=n(66387),o=n(62487),a=n(46534),s=n(11631);async function u(e,t){return l(e,t)}async function l(e,t){var n,u,l,c,d;let{block:f,chain:h=e.chain,request:p,type:m="eip1559"}=t||{},y=await (async()=>{var t,n,r;return"function"==typeof(null==h?void 0:null===(t=h.fees)||void 0===t?void 0:t.baseFeeMultiplier)?h.fees.baseFeeMultiplier({block:f,client:e,request:p}):null!==(r=null==h?void 0:null===(n=h.fees)||void 0===n?void 0:n.baseFeeMultiplier)&&void 0!==r?r:1.2})();if(y<1)throw new r.Fz;let g=10**(null!==(l=null===(n=y.toString().split(".")[1])||void 0===n?void 0:n.length)&&void 0!==l?l:0),w=e=>e*BigInt(Math.ceil(y*g))/BigInt(g),b=f||await (0,i.s)(e,a.Q,"getBlock")({});if("function"==typeof(null==h?void 0:null===(u=h.fees)||void 0===u?void 0:u.estimateFeesPerGas)){let t=await h.fees.estimateFeesPerGas({block:f,client:e,multiply:w,request:p,type:m});if(null!==t)return t}if("eip1559"===m){if("bigint"!=typeof b.baseFeePerGas)throw new r.e5;let t="bigint"==typeof(null==p?void 0:p.maxPriorityFeePerGas)?p.maxPriorityFeePerGas:await (0,o.h)(e,{block:b,chain:h,request:p}),n=w(b.baseFeePerGas);return{maxFeePerGas:null!==(c=null==p?void 0:p.maxFeePerGas)&&void 0!==c?c:n+t,maxPriorityFeePerGas:t}}return{gasPrice:null!==(d=null==p?void 0:p.gasPrice)&&void 0!==d?d:w(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},63922:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(81182),i=n(30951),o=n(68990),a=n(83429),s=n(68871),u=n(22712);class l extends s.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){var m;super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.xr)({from:null==t?void 0:t.address,to:h,value:void 0!==p&&"".concat((0,o.d)(p)," ").concat((null==r?void 0:null===(m=r.nativeCurrency)||void 0===m?void 0:m.symbol)||"ETH"),data:i,gas:s,gasPrice:void 0!==l&&"".concat((0,a.o)(l)," gwei"),maxFeePerGas:void 0!==c&&"".concat((0,a.o)(c)," gwei"),maxPriorityFeePerGas:void 0!==d&&"".concat((0,a.o)(d)," gwei"),nonce:f}
37)].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var c=n(47322),d=n(14902),f=n(80193),h=n(42431),p=n(73032),m=n(29891),y=n(89705);async function g(e,t){var n,o,a,s;let u=null!==(n=t.account)&&void 0!==n?n:e.account,g=u?(0,r.T)(u):void 0;try{let{accessList:n,blobs:r,blobVersionedHashes:u,blockNumber:l,blockTag:c,data:d,gas:w,gasPrice:b,maxFeePerBlobGas:P,maxFeePerGas:E,maxPriorityFeePerGas:_,nonce:C,to:I,value:x,stateOverride:S,...O}=await (0,y.Z)(e,{...t,parameters:(null==g?void 0:g.type)==="local"?void 0:["blobVersionedHashes"]}),T=(l?(0,i.eC)(l):void 0)||c,R=(0,p.mF)(S);(0,m.F)(t);let A=null===(s=e.chain)||void 0===s?void 0:null===(a=s.formatters)||void 0===a?void 0:null===(o=a.transactionRequest)||void 0===o?void 0:o.format,B=(A||h.tG)({...(0,f.K)(O,{format:A}),from:null==g?void 0:g.address,accessList:n,blobs:r,blobVersionedHashes:u,data:d,gas:w,gasPrice:b,maxFeePerBlobGas:P,maxFeePerGas:E,maxPriorityFeePerGas:_,nonce:C,to:I,value:x}),N=await e.request({method:"eth_estimateGas",params:R?[B,null!=T?T:"latest",R]:T?[B,T]:[B]});return BigInt(N)}catch(n){throw function(e,t){let{docsPath:n,...r}=t;return new l((()=>{let t=(0,d.k)(e,r);return t instanceof c.cj?e:t})(),{docsPath:n,...r})}(n,{...t,account:g,chain:e.chain})}}},62487:function(e,t,n){"use strict";n.d(t,{_:function(){return u},h:function(){return l}});var r=n(31323),i=n(24844),o=n(66387),a=n(46534),s=n(11631);async function u(e,t){return l(e,t)}async function l(e,t){var n,u,l;let{block:c,chain:d=e.chain,request:f}=t||{};if("function"==typeof(null==d?void 0:null===(n=d.fees)||void 0===n?void 0:n.defaultPriorityFee)){let t=c||await (0,o.s)(e,a.Q,"getBlock")({});return d.fees.defaultPriorityFee({block:t,client:e,request:f})}if(void 0!==(null==d?void 0:null===(u=d.fees)||void 0===u?void 0:u.defaultPriorityFee))return null==d?void 0:null===(l=d.fees)||void 0===l?void 0:l.defaultPriorityFee;try{let t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(t)}catch(u){let[t,n]=await Promise.all([c?Promise.resolve(c):(0,o.s)(e,a.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let i=n-t.baseFeePerGas;if(i<0n)return 0n;return i}}},46534:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(49936),i=n(30951),o=n(3349);async function a(e){var t,n,a;let{blockHash:s,blockNumber:u,blockTag:l,includeTransactions:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=null!=c&&c,f=void 0!==u?(0,i.eC)(u):void 0,h=null;if(!(h=s?await e.request({method:"eth_getBlockByHash",params:[s,d]}):await e.request({method:"eth_getBlockByNumber",params:[f||(null!=l?l:"latest"),d]})))throw new r.f({blockHash:s,blockNumber:u});return((null===(a=e.chain)||void 0===a?void 0:null===(n=a.formatters)||void 0===n?void 0:null===(t=n.block)||void 0===t?void 0:t.format)||o.Z)(h)}},45087:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});let r=new Map,i=new Map;async function o(e,t){let{cacheKey:n,cacheTime:o=Number.POSITIVE_INFINITY}=t,a=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),o=t(e,i);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}(n),s=a.response.get();if(s&&o>0&&new Date().getTime()-s.created.getTime()<o)return s.data;let u=a.promise.get();u||(u=e(),a.promise.set(u));try{let e=await u;return a.response.set({created:new Date,data:e}),e}finally{a.promise.clear()}}let a=e=>"blockNumber.".concat(e);async function s(e){let{cacheTime:t=e.cacheTime}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return BigInt(await o(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},73820:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(24844),i=n(30951);async function o(e){let t,{blockHash:n,blockNumber:o,blockTag:a="latest"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=void 0!==o?(0,i.eC)(o):void 0;return t=n?await e.request({method:"eth_getBlockTransactionCountByHash",params:[n]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||a]}),(0,r.ly)(t)}},67304:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(24844);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,r.ly)(t)}},81599:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(30951);async function i(e,t){let{address:n,blockNumber:i,blockTag:o="latest"}=t,a=void 0!==i?(0,r.eC)(i):void 0,s=await e.request({method:"eth_getCode",params:[n,a||o]});if("0x"!==s)return s}},26152:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(53404),i=n(66387),o=n(30399);async function a(e,t){let{abi:n,address:a,args:s,blockHash:u,eventName:l,fromBlock:c,toBlock:d,strict:f}=t,h=l?(0,r.mE)({abi:n,name:l}):void 0,p=h?void 0:n.filter(e=>"event"===e.type);return(0,i.s)(e,o.y,"getLogs")({address:a,args:s,blockHash:u,event:h,events:p,fromBlock:c,toBlock:d,strict:f})}},44662:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30951);async function i(e,t){var n,i;let{blockCount:o,blockNumber:a,blockTag:s="latest",rewardPercentiles:u}=t,l=a?(0,r.eC)(a):void 0;return{baseFeePerGas:(n=await e.request({method:"eth_feeHistory",params:[(0,r.eC)(o),l||s,u]})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:n.gasUsedRatio,oldestBlock:BigInt(n.oldestBlock),reward:null===(i=n.reward)||void 0===i?void 0:i.map(e=>e.map(e=>BigInt(e)))}}},83250:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(80013),i=n(10561);async function o(e,t){let{filter:n}=t,o="strict"in n&&n.strict,a=await n.request({method:"eth_getFilterChanges",params:[n.id]});if("string"==typeof a[0])return a;let s=a.map(e=>(0,i.U)(e));return"abi"in n&&n.abi?(0,r.h)({abi:n.abi,logs:s,strict:o}):s}},11631:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},30399:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(80889),i=n(80013),o=n(30951),a=n(10561);async function s(e){let{address:t,blockHash:n,fromBlock:s,toBlock:u,event:l,events:c,args:d,strict:f}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=null!=c?c:l?[l]:void 0,p=[];h&&(p=[h.flatMap(e=>(0,r.O)({abi:[e],eventName:e.name,args:d}))],l&&(p=p[0]));let m=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:p,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:p,fromBlock:"bigint"==typeof s?(0,o.eC)(s):s,toBlock:"bigint"==typeof u?(0,o.eC)(u):u}]})).map(e=>(0,a.U)(e));return h?(0,i.h)({abi:h,logs:m,strict:null!=f&&f}):m}},55341:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(30951),i=n(24844);async function o(e,t){var n;let{address:o,blockNumber:a,blockTag:s,storageKeys:u}=t,l=void 0!==a?(0,r.eC)(a):void 0;return{...n=await e.request({method:"eth_getProof",params:[o,u,l||(null!=s?s:"latest")]}),balance:n.balance?BigInt(n.balance):void 0,nonce:n.nonce?(0,i.ly)(n.nonce):void 0,storageProof:n.storageProof?n.storageProof.map(e=>
37({...e,value:BigInt(e.value)})):void 0}}},19647:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(30951);async function i(e,t){let{address:n,blockNumber:i,blockTag:o="latest",slot:a}=t,s=void 0!==i?(0,r.eC)(i):void 0;return await e.request({method:"eth_getStorageAt",params:[n,a,s||o]})}},33683:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(22712),i=n(30951),o=n(63235);async function a(e,t){var n,a,s;let{blockHash:u,blockNumber:l,blockTag:c,hash:d,index:f}=t,h=c||"latest",p=void 0!==l?(0,i.eC)(l):void 0,m=null;if(d?m=await e.request({method:"eth_getTransactionByHash",params:[d]}):u?m=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[u,(0,i.eC)(f)]}):(p||h)&&(m=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[p||h,(0,i.eC)(f)]})),!m)throw new r.Bh({blockHash:u,blockNumber:l,blockTag:h,hash:d,index:f});return((null===(s=e.chain)||void 0===s?void 0:null===(a=s.formatters)||void 0===a?void 0:null===(n=a.transaction)||void 0===n?void 0:n.format)||o.Tr)(m)}},78604:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(66387),i=n(45087),o=n(33683);async function a(e,t){let{hash:n,transactionReceipt:a}=t,[s,u]=await Promise.all([(0,r.s)(e,i.z,"getBlockNumber")({}),n?(0,r.s)(e,o.f,"getBlockNumber")({hash:n}):void 0]),l=(null==a?void 0:a.blockNumber)||(null==u?void 0:u.blockNumber);return l?s-l+1n:0n}},67197:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(24844),i=n(30951);async function o(e,t){let{address:n,blockTag:o="latest",blockNumber:a}=t,s=await e.request({method:"eth_getTransactionCount",params:[n,a?(0,i.eC)(a):o]});return(0,r.ly)(s)}},8870:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(22712),i=n(24844),o=n(10561),a=n(63235);let s={"0x0":"reverted","0x1":"success"};async function u(e,t){var n,u,l;let{hash:c}=t,d=await e.request({method:"eth_getTransactionReceipt",params:[c]});if(!d)throw new r.Yb({hash:c});return((null===(l=e.chain)||void 0===l?void 0:null===(u=l.formatters)||void 0===u?void 0:null===(n=u.transactionReceipt)||void 0===n?void 0:n.format)||function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(d)}},18338:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(81182),i=n(61085),o=n(79820),a=n(39134),s=n(66387),u=n(74201);async function l(e,t){let{abi:n,address:l,args:c,dataSuffix:d,functionName:f,...h}=t,p=h.account?(0,r.T)(h.account):e.account,m=(0,o.R)({abi:n,args:c,functionName:f});try{let{data:r}=await (0,s.s)(e,u.R,"call")({batch:!1,data:"".concat(m).concat(d?d.replace("0x",""):""),to:l,...h,account:p}),o=(0,i.k)({abi:n,args:c,functionName:f,data:r||"0x"}),a=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:o,request:{abi:a,address:l,args:c,dataSuffix:d,functionName:f,...h,account:p}}}catch(e){throw(0,a.S)(e,{abi:n,address:l,args:c,docsPath:"/docs/contract/simulateContract",functionName:f,sender:null==p?void 0:p.address})}}},55960:function(e,t,n){"use strict";async function r(e,t){let{filter:n}=t;return n.request({method:"eth_uninstallFilter",params:[n.id]})}n.d(t,{W:function(){return r}})},52710:function(e,t,n){"use strict";n.d(t,{Z:function(){return em}});var r={};n.r(r),n.d(r,{dQ:function(){return _},ci:function(){return f},bytesToNumberBE:function(){return m},ty:function(){return y},eV:function(){return P},n$:function(){return x},ql:function(){return b},Wd:function(){return E},hexToBytes:function(){return p},tL:function(){return g},S5:function(){return w},FF:function(){return O}});var i=n(70054),o=n(89859),a=n(54261),s=n(79725);BigInt(0);let u=BigInt(1),l=BigInt(2),c=e=>e instanceof Uint8Array,d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){if(!c(e))throw Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=d[e[n]];return t}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":"0x".concat(e))}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(t/2);for(let t=0;t<n.length;t++){let r=2*t,i=Number.parseInt(e.slice(r,r+2),16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");n[t]=i}return n}function m(e){return h(f(e))}function y(e){if(!c(e))throw Error("Uint8Array expected");return h(f(Uint8Array.from(e).reverse()))}function g(e,t){return p(e.toString(16).padStart(2*t,"0"))}function w(e,t){return g(e,t).reverse()}function b(e,t,n){let r;if("string"==typeof t)try{r=p(t)}catch(n){throw Error("".concat(e,' must be valid hex string, got "').concat(t,'". Cause: ').concat(n))}else if(c(t))r=Uint8Array.from(t);else throw Error("".concat(e," must be hex string or Uint8Array"));let i=r.length;if("number"==typeof n&&i!==n)throw Error("".concat(e," expected ").concat(n," bytes, got ").concat(i));return r}function P(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=new Uint8Array(t.reduce((e,t)=>
37e+t.length,0)),i=0;return t.forEach(e=>{if(!c(e))throw Error("Uint8Array expected");r.set(e,i),i+=e.length}),r}function E(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let _=e=>(l<<BigInt(e-1))-u,C=e=>new Uint8Array(e),I=e=>Uint8Array.from(e);function x(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=C(e),i=C(e),o=0,a=()=>{r.fill(1),i.fill(0),o=0},s=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return n(i,r,...t)},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C();i=s(I([0]),e),r=s(),0!==e.length&&(i=s(I([1]),e),r=s())},l=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return P(...n)};return(e,t)=>{let n;for(a(),u(e);!(n=t(l()));)u();return a(),n}}let S={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(t,n,r)=>{let i=S[n];if("function"!=typeof i)throw Error('Invalid validator "'.concat(n,'", expected function'));let o=e[t];if((!r||void 0!==o)&&!i(o,e))throw Error("Invalid param ".concat(String(t),"=").concat(o," (").concat(typeof o,"), expected ").concat(n))};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}var T=n(19973),R=n(17360),A=n(30951),B=n(66387),N=n(56142);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let k=BigInt(0),j=BigInt(1),q=BigInt(2),F=BigInt(3),M=BigInt(4),L=BigInt(5),D=BigInt(8);function U(e,t){let n=e%t;return n>=k?n:t+n}function G(e,t,n){let r=e;for(;t-- >k;)r*=r,r%=n;return r}function H(e,t){if(e===k||t<=k)throw Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));let n=U(e,t),r=t,i=k,o=j,a=j,s=k;for(;n!==k;){let e=r/n,t=r%n,u=i-a*e,l=o-s*e;r=n,n=t,i=a,o=s,a=u,s=l}if(r!==j)throw Error("invert: does not exist");return U(i,t)}BigInt(9),BigInt(16);let K=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function W(e,t){let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function z(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function V(e){let t=z(e);return t+Math.ceil(t/2)}var Q=n(16588),Z=n(2954);class X extends Z.kb{update(e){return(0,Q.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,Q.Gg)(this),(0,Q.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,Q.vp)(e);let n=(0,Z.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}}let J=(e,t,n)=>new X(e,t).update(n).digest();J.create=(e,t)=>new X(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let Y=BigInt(0),$=BigInt(1);function ee(e){return O(e.Fp,K.reduce((e,t)=>
37(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),O(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...W(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}let{bytesToNumberBE:et,hexToBytes:en}=r,er={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=er;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:et(r),l:e.subarray(n+2)}},toSig(e){let{Err:t}=er,n="string"==typeof e?en(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");let{d:i,l:o}=er._parseInt(n.subarray(2)),{d:a,l:s}=er._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{let t=e.toString(16);return 1&t.length?"0".concat(t):t},r=t(n(e.s)),i=t(n(e.r)),o=r.length/2,a=i.length/2,s=n(o),u=n(a);return"30".concat(n(a+o+4),"02").concat(u).concat(i,"02").concat(s).concat(r)}},ei=BigInt(0),eo=BigInt(1),ea=(BigInt(2),BigInt(3));BigInt(4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let es=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),eu=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),el=BigInt(1),ec=BigInt(2),ed=(e,t)=>(e+t/ec)/t,ef=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=k)throw Error("Expected Field ORDER > 0, got ".concat(e));let{nBitLength:i,nByteLength:o}=W(e,t);if(o>2048)throw Error("Field lengths over 2048 bytes are not supported");let a=function(e){if(e%M===F){let t=(e+j)/M;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}if(e%D===L){let t=(e-L)/D;return function(e,n){let r=e.mul(n,q),i=e.pow(r,t),o=e.mul(n,i),a=e.mul(e.mul(o,q),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),n))throw Error("Cannot find square root");return s}}return function(e){let t,n,r;let i=(e-j)/q;for(t=e-j,n=0;t%q===k;t/=q,n++);for(r=q;r<e&&function(e,t,n){if(n<=k||t<k)throw Error("Expected power/modulo > 0");if(n===j)return k;let r=j;for(;t>k;)t&j&&(r=r*e%n),e=e*e%n,t>>=j;return r}(r,i,e)!==e-j;r++);if(1===n){let t=(e+j)/M;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error("Cannot find square root");return r}}let o=(t+j)/q;return function(e,a){if(e.pow(a,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=n,u=e.pow(e.mul(e.ONE,r),t),l=e.pow(a,o),c=e.pow(a,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(c);t<s&&!e.eql(n,e.ONE);t++)n=e.sqr(n);let n=e.pow(u,j<<BigInt(s-t-1));u=e.sqr(n),l=e.mul(l,n),c=e.mul(c,u),s=t}return l}}(e)}(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:_(i),ZERO:k,ONE:j,create:t=>U(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("Invalid field element: expected bigint, got ".concat(typeof t));return k<=t&&t<e},is0:e=>e===k,isOdd:e=>(e&j)===j,neg:t=>U(-t,e),eql:(e,t)=>e===t,sqr:t=>U(t*t,e),add:(t,n)=>U(t+n,e),sub:(t,n)=>U(t-n,e),mul:(t,n)=>U(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<k)throw Error("Expected power > 0");if(n===k)return e.ONE;if(n===j)return t;let r=e.ONE,i=t;for(;n>k;)n&j&&(r=e.mul(r,i)),i=e.sqr(i),n>>=j;return r})(s,e,t),div:(t,n)=>U(t*H(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>H(t,e),sqrt:r.sqrt||(e=>a(s,e)),invertBatch:e=>(function(e,t){let n=Array(t.length),r=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),i=e.inv(r);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),i),n})(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?w(e,o):g(e,o),fromBytes:e=>{if(e.length!==o)throw Error("Fp.fromBytes: expected ".concat(o,", got ").concat(e.length));return n?y(e):m(e)}});return Object.freeze(s)}(es,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),u=e*e*e%es,l=u*u*e%es,c=G(l,t,es)*l%es,d=G(c,t,es)*l%es,f=G(d,ec,es)*u%es,h=G(f,r,es)*f%es,p=G(h,i,es)*h%es,m=G(p,a,es)*p%es,y=G(m,s,es)*m%es,g=G(y,a,es)*p%es,w=G(g,t,es)*l%es,b=G(w,o,es)*h%es,P=G(b,n,es)*u%es,E=G(P,ec,es);if(!ef.eql(ef.sqr(E),e))throw Error("Cannot find square root");return E}}),eh=function(e,t){let n=t=>(function(e){let t=function(e){let t=ee(e);return O(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,i=n.BYTES+1,o=2*n.BYTES+1;function a(e){return U(e,r)}let{ProjectivePoint:s,normPrivateKeyToScalar:u,weierstrassEquation:l,isWithinCurveOrder:c}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=ee(e);O(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});
37let{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{let i=t.toAffine();return P(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=t.fromBytes||(e=>{let t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function o(e){let{a:r,b:i}=t,o=n.sqr(e),a=n.mul(o,e);return n.add(n.add(a,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&ei<e&&e<t.n}function s(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function u(e){let n;let{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:o,n:a}=t;if(r&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=f(e)),"string"!=typeof e||!r.includes(e.length))throw Error("Invalid key");e=e.padStart(2*i,"0")}try{n="bigint"==typeof e?e:m(b("private key",e,i))}catch(t){throw Error("private key must be ".concat(i," bytes, hex or bigint, not ").concat(typeof e))}return o&&(n=U(n,a)),s(n),n}let l=new Map;function c(e){if(!(e instanceof d))throw Error("ProjectivePoint expected")}class d{static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error("invalid affine point");if(e instanceof d)throw Error("projective point not allowed");let i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?d.ZERO:new d(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=n.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(d.fromAffine)}static fromHex(e){let t=d.fromAffine(i(b("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(u(e))}_setWindowSize(e){this._WINDOW_SIZE=e,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw Error("bad point: x or y not FE");let i=n.sqr(r),a=o(e);if(!n.eql(i,a))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){c(e);let{px:t,py:r,pz:i}=this,{px:o,py:a,pz:s}=e,u=n.eql(n.mul(t,s),n.mul(o,i)),l=n.eql(n.mul(r,s),n.mul(a,i));return u&&l}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){let{a:e,b:r}=t,i=n.mul(r,ea),{px:o,py:a,pz:s}=this,u=n.ZERO,l=n.ZERO,c=n.ZERO,f=n.mul(o,o),h=n.mul(a,a),p=n.mul(s,s),m=n.mul(o,a);return m=n.add(m,m),c=n.mul(o,s),c=n.add(c,c),u=n.mul(e,c),l=n.mul(i,p),l=n.add(u,l),u=n.sub(h,l),l=n.add(h,l),l=n.mul(u,l),u=n.mul(m,u),c=n.mul(i,c),p=n.mul(e,p),m=n.sub(f,p),m=n.mul(e,m),m=n.add(m,c),c=n.add(f,f),f=n.add(c,f),f=n.add(f,p),f=n.mul(f,m),l=n.add(l,f),p=n.mul(a,s),p=n.add(p,p),f=n.mul(p,m),u=n.sub(u,f),c=n.mul(p,h),c=n.add(c,c),new d(u,l,c=n.add(c,c))}add(e){c(e);let{px:r,py:i,pz:o}=this,{px:a,py:s,pz:u}=e,l=n.ZERO,f=n.ZERO,h=n.ZERO,p=t.a,m=n.mul(t.b,ea),y=n.mul(r,a),g=n.mul(i,s),w=n.mul(o,u),b=n.add(r,i),P=n.add(a,s);b=n.mul(b,P),P=n.add(y,g),b=n.sub(b,P),P=n.add(r,o);let E=n.add(a,u);return P=n.mul(P,E),E=n.add(y,w),P=n.sub(P,E),E=n.add(i,o),l=n.add(s,u),E=n.mul(E,l),l=n.add(g,w),E=n.sub(E,l),h=n.mul(p,P),l=n.mul(m,w),h=n.add(l,h),l=n.sub(g,h),h=n.add(g,h),f=n.mul(l,h),g=n.add(y,y),g=n.add(g,y),w=n.mul(p,w),P=n.mul(m,P),g=n.add(g,w),w=n.sub(y,w),w=n.mul(p,w),P=n.add(P,w),y=n.mul(g,P),f=n.add(f,y),y=n.mul(E,P),l=n.mul(b,l),l=n.sub(l,y),y=n.mul(b,g),h=n.mul(E,h),new d(l,f,h=n.add(h,y))}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return p.wNAFCached(this,l,e,e=>{let t=n.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(d.fromAffine)})}multiplyUnsafe(e){let r=d.ZERO;if(e===ei)return r;if(s(e),e===eo)return this;let{endo:i}=t;if(!i)return p.unsafeLadder(this,e);
37let{k1neg:o,k1:a,k2neg:u,k2:l}=i.splitScalar(e),c=r,f=r,h=this;for(;a>ei||l>ei;)a&eo&&(c=c.add(h)),l&eo&&(f=f.add(h)),h=h.double(),a>>=eo,l>>=eo;return o&&(c=c.negate()),u&&(f=f.negate()),f=new d(n.mul(f.px,i.beta),f.py,f.pz),c.add(f)}multiply(e){let r,i;s(e);let{endo:o}=t;if(o){let{k1neg:t,k1:a,k2neg:s,k2:u}=o.splitScalar(e),{p:l,f:c}=this.wNAF(a),{p:f,f:h}=this.wNAF(u);l=p.constTimeNegate(t,l),f=p.constTimeNegate(s,f),f=new d(n.mul(f.px,o.beta),f.py,f.pz),r=l.add(f),i=c.add(h)}else{let{p:t,f:n}=this.wNAF(e);r=t,i=n}return d.normalizeZ([r,i])[0]}multiplyAndAddUnsafe(e,t,n){let r=d.BASE,i=(e,t)=>t!==ei&&t!==eo&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,n));return o.is0()?void 0:o}toAffine(e){let{px:t,py:r,pz:i}=this,o=this.is0();null==e&&(e=o?n.ONE:n.inv(i));let a=n.mul(t,e),s=n.mul(r,e),u=n.mul(i,e);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:n}=t;if(e===eo)return!0;if(n)return n(d,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:n}=t;return e===eo?this:n?n(d,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.assertValidity(),r(d,this,e)}toHex(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return f(this.toRawBytes(e))}constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw Error("x required");if(null==t||!n.isValid(t))throw Error("y required");if(null==r||!n.isValid(r))throw Error("z required")}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);let h=t.nBitLength,p=function(e,t){let n=(e,t)=>{let n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,i=t;for(;n>Y;)n&$&&(r=r.add(i)),i=i.double(),n>>=$;return r},precomputeWindow(e,t){let{windows:n,windowSize:i}=r(t),o=[],a=e,s=a;for(let e=0;e<n;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=r(t),u=e.ZERO,l=e.BASE,c=BigInt(2**t-1),d=2**t,f=BigInt(t);for(let e=0;e<a;e++){let t=e*s,r=Number(o&c);o>>=f,r>s&&(r-=d,o+=$);let a=t+Math.abs(r)-1,h=e%2!=0,p=r<0;0===r?l=l.add(n(h,i[t])):u=u.add(n(p,i[a]))}return{p:u,f:l}},wNAFCached(e,t,n,r){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,r(o))),this.wNAF(i,o,n)}}}(d,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}({...t,toBytes(e,t,r){let i=t.toAffine(),o=n.toBytes(i.x),a=P;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,n.toBytes(i.y))},fromBytes(e){let t=e.length,r=e[0],a=e.subarray(1);if(t===i&&(2===r||3===r)){let e=m(a);if(!(ei<e&&e<n.ORDER))throw Error("Point is not on curve");let t=l(e),i=n.sqrt(t);return(1&r)==1!=((i&eo)===eo)&&(i=n.neg(i)),{x:e,y:i}}if(t===o&&4===r)return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))};throw Error("Point of length ".concat(t," was invalid. Expected ").concat(i," compressed bytes or ").concat(o," uncompressed bytes"))}}),d=e=>f(g(e,t.nByteLength)),h=(e,t,n)=>m(e.slice(t,n));class E{static fromCompact(e){let n=t.nByteLength;return new E(h(e=b("compactSignature",e,2*n),0,n),h(e,n,2*n))}static fromDER(e){let{r:t,s:n}=er.toSig(b("DER",e));return new E(t,n)}assertValidity(){if(!c(this.r))throw Error("r must be 0 < r < CURVE.n");if(!c(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:o,recovery:u}=this,l=S(b("msgHash",e));if(null==u||![0,1,2,3].includes(u))throw Error("recovery id invalid");let c=2===u||3===u?i+t.n:i;if(c>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&u)==0?"02":"03",h=s.fromHex(f+d(c)),p=H(c,r),m=a(-l*p),y=a(o*p),g=s.BASE.multiplyAndAddUnsafe(h,m,y);if(!g)throw Error("point at infinify");return g.assertValidity(),g}hasHighS(){return this.s>r>>eo}normalizeS(){return this.hasHighS()?new E(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return p(this.toDERHex())}toDERHex(){return er.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return p(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}}function C(e){let t=e instanceof Uint8Array,n="string"==typeof e,r=(t||n)&&e.length;return t?r===i||r===o:n?r===2*i||r===2*o:e instanceof s}let I=t.bits2int||function(e){let n=m(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},S=t.bits2int_modN||function(e){return a(I(e))},T=_(t.nBitLength);function R(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(ei<=e&&e<T))throw Error("bigint expected < 2^".concat(t.nBitLength));return g(e,t.nByteLength)}let A={lowS:t.lowS,prehash:!1},B={lowS:t.lowS,prehash:!1};return s.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return s.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(C(e))throw Error("first arg must be private key");if(!C(t))throw Error("second arg must be public key");return s.fromHex(t).multiply(u(e)).toRawBytes(n)},sign:function(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,{seed:l,k2sig:d}=function(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:l,randomBytes:d}=t,{lowS:f,prehash:h,extraEntropy:p}=o;null==f&&(f=!0),e=b("msgHash",e),h&&(e=b("prehashed msgHash",l(e)));let m=S(e),y=u(i),g=[R(y),R(m)];if(null!=p){let e=!0===p?d(n.BYTES):p;g.push(b("extraEntropy",e))}return{seed:P(...g),k2sig:function(e){let t=I(e);if(!c(t))return;let n=H(t,r),i=s.BASE.multiply(t).toAffine(),o=a(i.x);if(o===ei)return;let u=a(n*a(m+o*y));if(u===ei)return;let l=(i.x===o?0:2)|Number(i.y&eo),d=u;if(f&&u>r>>eo)d=u>r>>eo?a(-u):u,l^=1;return new E(o,d,l)}}}(e,i,o);return x(t.hash.outputLen,t.nByteLength,t.hmac)(l,d)},verify:function(e,n,i){var o;let u;let l,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B;if(n=b("msgHash",n),i=b("publicKey",i),"strict"in c)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:f}=c;try{if("string"==typeof e||e instanceof Uint8Array)try{u=E.fromDER(e)}catch(t){if(!(t instanceof er.Err))throw t;u=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:n}=e;u=new E(t,n)}else throw Error("PARSE");l=s.fromHex(i)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&u.hasHighS())return!1;f&&(n=t.hash(n));
37let{r:h,s:p}=u,m=S(n),y=H(p,r),g=a(m*y),w=a(h*y),P=null===(o=s.BASE.multiplyAndAddUnsafe(l,g,w))||void 0===o?void 0:o.toAffine();return!!P&&a(P.x)===h},ProjectivePoint:s,Signature:E,utils:{isValidPrivateKey(e){try{return u(e),!0}catch(e){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{let e=V(t.n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.length,i=z(t),o=V(t);if(r<16||r<o||r>1024)throw Error("expected ".concat(o,"-1024 bytes of input, got ").concat(r));let a=U(n?m(e):y(e),t-j)+j;return n?w(a,i):g(a,i)}(t.randomBytes(e),t.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}}}})({...e,hash:t,hmac:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return J(t,e,(0,Z.eV)(...r))},randomBytes:Z.O6});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:ef,n:eu,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-el*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=ed(t*e,eu),a=ed(-n*e,eu),s=U(e-o*t-a*r,eu),u=U(-o*n-a*t,eu),l=s>i,c=u>i;if(l&&(s=eu-s),c&&(u=eu-u),s>i||u>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:s,k2neg:c,k2:u}}}},N.J);BigInt(0),eh.ProjectivePoint;var ev=n(24844),ep=n(74201);async function em(e,t){let{address:n,hash:r,signature:u,...l}=t,c=(0,R.v)(u)?u:"object"==typeof u&&"r"in u&&"s"in u?function(e){let{r:t,s:n,v:r,yParity:i}=e,o=(()=>{if(0===i||1===i)return i;if(r&&(27n===r||28n===r||r>=35n))return r%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})();return"0x".concat(new eh.Signature((0,ev.y_)(t),(0,ev.y_)(n)).toCompactHex()).concat(0===o?"1b":"1c")}(u):(0,A.ci)(u);try{let{data:t}=await (0,B.s)(e,ep.R,"call")({data:(0,s.w)({abi:i.$o,args:[n,r,c],bytecode:o.ST}),...l});return function(e,t){let n=(0,R.v)(e)?(0,T.O0)(e):e;return E(n,(0,R.v)(t)?(0,T.O0)(t):t)}(null!=t?t:"0x0","0x1")}catch(e){if(e instanceof a.cg)return!1;throw e}}},95251:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(71901),i=n(52710);async function o(e,t){let{address:n,message:o,signature:a,...s}=t,u=(0,r.r)(o);return(0,i.Z)(e,{address:n,hash:u,signature:a,...s})}},11198:function(e,t,n){"use strict";n.d(t,{B:function(){return c}});var r=n(85491),i=n(41708),o=n(30951),a=n(72374),s=n(34118);function u(e){let{data:t,primaryType:n,types:i}=e,s=function e(t){let{data:n,primaryType:i,types:s}=t,u=[{type:"bytes32"}],l=[function(e){let{primaryType:t,types:n}=e,r=(0,o.NC)(function(e){let{primaryType:t,types:n}=e,r="",i=function e(t){let{primaryType:n,types:r}=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,o=n.match(/^\w*/u),a=null==o?void 0:o[0];if(i.has(a)||void 0===r[a])return i;for(let t of(i.add(a),r[a]))e({primaryType:t.type,types:r},i);return i}({primaryType:t,types:n});for(let e of(i.delete(t),[t,...Array.from(i).sort()]))r+="".concat(e,"(").concat(n[e].map(e=>{let{name:t,type:n}=e;return"".concat(n," ").concat(t)}).join(","),")");return r}({primaryType:t,types:n}));return(0,a.w)(r)}({primaryType:i,types:s})];for(let t of s[i]){let[i,c]=function t(n){let{types:i,name:s,type:u,value:l}=n;if(void 0!==i[u])return[{type:"bytes32"},(0,a.w)(e({data:l,primaryType:u,types:i}))];if("bytes"===u){let e=l.length%2?"0":"";return l="0x".concat(e+l.slice(2)),[{type:"bytes32"},(0,a.w)(l)]}if("string"===u)return[{type:"bytes32"},(0,a.w)((0,o.NC)(l))];if(u.lastIndexOf("]")===u.length-1){let e=u.slice(0,u.lastIndexOf("[")),n=l.map(n=>t({name:s,type:e,types:i,value:n}));return[{type:"bytes32"},(0,a.w)((0,r.E)(n.map(e=>{let[t]=e;return t}),n.map(e=>{let[,t]=e;return t})))]}return[{type:u},l]}({types:s,name:t.name,type:t.type,value:n[t.name]});u.push(i),l.push(c)}return(0,r.E)(u,l)}({data:t,primaryType:n,types:i});return(0,a.w)(s)}var l=n(52710);async function c(e,t){let{address:n,signature:r,message:o,primaryType:c,types:d,domain:f,...h}=t,p=function(e){let{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:(0,s.cj)({domain:t}),...e.types};(0,s.iC)({domain:t,message:n,primaryType:r,types:o});let l=["0x1901"];return t&&l.push(function(e){let{domain:t,types:n}=e;return u({data:t,primaryType:"EIP712Domain",types:n})}({domain:t,types:o})),"EIP712Domain"!==r&&l.push(u({data:n,primaryType:r,types:o})),(0,a.w)((0,i.zo)(l))}({message:o,primaryType:c,types:d,domain:f});return(0,l.Z)(e,{address:n,hash:p,signature:r,...h})}},80454:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});
37var r=n(49936),i=n(22712),o=n(66387),a=n(51541),s=n(29934),u=n(64133),l=n(46534),c=n(33683),d=n(8870),f=n(4947);async function h(e,t){let n,h,p,{confirmations:m=1,hash:y,onReplaced:g,pollingInterval:w=e.pollingInterval,retryCount:b=6,retryDelay:P=e=>{let{count:t}=e;return 200*~~(1<<t)},timeout:E}=t,_=(0,u.P)(["waitForTransactionReceipt",e.uid,y]),C=0,I=!1;return new Promise((t,u)=>{E&&setTimeout(()=>u(new i.mc({hash:y})),E);let x=(0,a.N7)(_,{onReplaced:g,resolve:t,reject:u},t=>{let a=(0,o.s)(e,f.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:w,async onBlockNumber(u){let f=e=>{a(),e(),x()},g=u;if(!I){C>b&&f(()=>t.reject(new i.mc({hash:y})));try{if(p){if(m>1&&(!p.blockNumber||g-p.blockNumber+1n<m))return;f(()=>t.resolve(p));return}if(n||(I=!0,await (0,s.J)(async()=>{(n=await (0,o.s)(e,c.f,"getTransaction")({hash:y})).blockNumber&&(g=n.blockNumber)},{delay:P,retryCount:b}),I=!1),p=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:y}),m>1&&(!p.blockNumber||g-p.blockNumber+1n<m))return;f(()=>t.resolve(p))}catch(a){if(a instanceof i.Bh||a instanceof i.Yb){if(!n){I=!1;return}try{h=n,I=!0;let i=await (0,s.J)(()=>(0,o.s)(e,l.Q,"getBlock")({blockNumber:g,includeTransactions:!0}),{delay:P,retryCount:b,shouldRetry:e=>{let{error:t}=e;return t instanceof r.f}});I=!1;let a=i.transactions.find(e=>{let{from:t,nonce:n}=e;return t===h.from&&n===h.nonce});if(!a||(p=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:a.hash}),m>1&&(!p.blockNumber||g-p.blockNumber+1n<m)))return;let u="replaced";a.to===h.to&&a.value===h.value?u="repriced":a.from===a.to&&0n===a.value&&(u="cancelled"),f(()=>{var e;null===(e=t.onReplaced)||void 0===e||e.call(t,{reason:u,replacedTransaction:h,transaction:a,transactionReceipt:p}),t.resolve(p)})}catch(e){f(()=>t.reject(e))}}else f(()=>t.reject(a))}finally{C++}}}})})})}},4947:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(24844),i=n(66387),o=n(51541),a=n(58856),s=n(64133),u=n(45087);function l(e,t){let n,{emitOnBegin:l=!1,emitMissed:c=!1,onBlockNumber:d,onError:f,poll:h,pollingInterval:p=e.pollingInterval}=t;return(void 0!==h?h:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
37onfig.type))?(()=>{let t=(0,s.P)(["watchBlockNumber",e.uid,l,c,p]);return(0,o.N7)(t,{onBlockNumber:d,onError:f},t=>(0,a.$)(async()=>{try{let r=await (0,i.s)(e,u.z,"getBlockNumber")({cacheTime:0});if(n){if(r===n)return;if(r-n>1&&c)for(let e=n+1n;e<r;e++)t.onBlockNumber(e,n),n=e}(!n||r>n)&&(t.onBlockNumber(r,n),n=r)}catch(e){var r;null===(r=t.onError)||void 0===r||r.call(t,e)}},{emitOnBegin:l,interval:p}))})():(()=>{let t=(0,s.P)(["watchBlockNumber",e.uid,l,c]);return(0,o.N7)(t,{onBlockNumber:d,onError:f},t=>{let i=!0,o=()=>i=!1;return(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await a.subscribe({params:["newHeads"],onData(e){var o;if(!i)return;let a=(0,r.y_)(null===(o=e.result)||void 0===o?void 0:o.number);t.onBlockNumber(a,n),n=a},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});o=s,i||o()}catch(e){null==f||f(e)}})(),()=>o()})})()}},32427:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(3349),i=n(66387),o=n(51541),a=n(58856),s=n(64133),u=n(46534);function l(e,t){let n,l,c,{blockTag:d="latest",emitMissed:f=!1,emitOnBegin:h=!1,onBlock:p,onError:m,includeTransactions:y,poll:g,pollingInterval:w=e.pollingInterval}=t,b=void 0!==g?g:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
37onfig.type),P=null!=y&&y;return b?(()=>{let t=(0,s.P)(["watchBlocks",e.uid,d,f,h,P,w]);return(0,o.N7)(t,{onBlock:p,onError:m},t=>(0,a.$)(async()=>{try{let n=await (0,i.s)(e,u.Q,"getBlock")({blockTag:d,includeTransactions:P});if(n.number&&(null==c?void 0:c.number)){if(n.number===c.number)return;if(n.number-c.number>1&&f)for(let r=(null==c?void 0:c.number)+1n;r<n.number;r++){let n=await (0,i.s)(e,u.Q,"getBlock")({blockNumber:r,includeTransactions:P});t.onBlock(n,c),c=n}}(null==c?void 0:c.number)&&("pending"!==d||(null==n?void 0:n.number))&&(!n.number||!(n.number>c.number))||(t.onBlock(n,c),c=n)}catch(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}},{emitOnBegin:h,interval:w}))})():(n=!0,l=()=>n=!1,(async()=>{try{let t=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await t.subscribe({params:["newHeads"],onData(t){var i,o,a;if(!n)return;let s=((null===(a=e.chain)||void 0===a?void 0:null===(o=a.formatters)||void 0===o?void 0:null===(i=o.block)||void 0===i?void 0:i.format)||r.Z)(t.result);p(s,c),c=s},onError(e){null==m||m(e)}});l=i,n||l()}catch(e){null==m||m(e)}})(),()=>l())}},90122:function(e,t,n){"use strict";n.d(t,{Y:function(){return g}});var r=n(89059),i=n(94123),o=n(78796),a=n(80889),s=n(10561),u=n(66387),l=n(51541),c=n(58856),d=n(64133),f=n(43708),h=n(45087),p=n(26152),m=n(83250),y=n(55960);function g(e,t){let{abi:n,address:g,args:w,batch:b=!0,eventName:P,fromBlock:E,onError:_,onLogs:C,poll:I,pollingInterval:x=e.pollingInterval,strict:S}=t;return(void 0!==I?I:"bigint"==typeof E||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
37onfig.type))?(()=>{let t=null!=S&&S,r=(0,d.P)(["watchContractEvent",g,w,b,e.uid,P,x,t,E]);return(0,l.N7)(r,{onLogs:C,onError:_},r=>{let o,a;void 0!==E&&(o=E-1n);let s=!1,l=(0,c.$)(async()=>{if(!s){try{a=await (0,u.s)(e,f.A,"createContractEventFilter")({abi:n,address:g,args:w,eventName:P,strict:t,fromBlock:E})}catch(e){}s=!0;return}try{let i;if(a)i=await (0,u.s)(e,m.K,"getFilterChanges")({filter:a});else{let r=await (0,u.s)(e,h.z,"getBlockNumber")({});i=o&&o!==r?await (0,u.s)(e,p.m,"getContractEvents")({abi:n,address:g,args:w,eventName:P,fromBlock:o+1n,toBlock:r,strict:t}):[],o=r}if(0===i.length)return;if(b)r.onLogs(i);else for(let e of i)r.onLogs([e])}catch(e){var l;a&&e instanceof i.yR&&(s=!1),null===(l=r.onError)||void 0===l||l.call(r,e)}},{emitOnBegin:!0,interval:x});return async()=>{a&&await (0,u.s)(e,y.W,"uninstallFilter")({filter:a}),l()}})})():(()=>{let t=(0,d.P)(["watchContractEvent",g,w,b,e.uid,P,x,null!=S&&S]),i=!0,u=()=>i=!1;return(0,l.N7)(t,{onLogs:C,onError:_},t=>((async()=>{try{let l=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),c=P?(0,a.O)({abi:n,eventName:P,args:w}):[],{unsubscribe:d}=await l.subscribe({params:["logs",{address:g,topics:c}],onData(e){if(!i)return;let a=e.result;try{let{eventName:e,args:r}=(0,o.F)({abi:n,data:a.data,topics:a.topics,strict:S}),i=(0,s.U)(a,{args:r,eventName:e});t.onLogs([i])}catch(o){let e,n;if(o instanceof r.SM||o instanceof r.Gy){var u;if(S)return;e=o.abiItem.name,n=null===(u=o.abiItem.inputs)||void 0===u?void 0:u.some(e=>!("name"in e&&e.name))}let i=(0,s.U)(a,{args:n?[]:{},eventName:e});t.onLogs([i])}},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});u=d,i||u()}catch(e){null==_||_(e)}})(),()=>u()))})()}},61161:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(66387),i=n(51541),o=n(58856),a=n(64133),s=n(36443),u=n(83250),l=n(55960);function c(e,t){let n,c,{batch:d=!0,onError:f,onTransactions:h,poll:p,pollingInterval:m=e.pollingInterval}=t;return(void 0!==p?p:"webSocket"!==e.transport.type)?(()=>{let t=(0,a.P)(["watchPendingTransactions",e.uid,d,m]);return(0,i.N7)(t,{onTransactions:h,onError:f},t=>{let n;let i=(0,o.$)(async()=>{try{if(!n)try{n=await (0,r.s)(e,s.W,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let o=await (0,r.s)(e,u.K,"getFilterChanges")({filter:n});if(0===o.length)return;if(d)t.onTransactions(o);else for(let e of o)t.onTransactions([e])}catch(e){var o;null===(o=t.onError)||void 0===o||o.call(t,e)}},{emitOnBegin:!0,interval:m});return async()=>{n&&await (0,r.s)(e,l.W,"uninstallFilter")({filter:n}),i()}})})():(n=!0,c=()=>n=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!n)return;let t=e.result;h([t])},onError(e){null==f||f(e)}});c=t,n||c()}catch(e){null==f||f(e)}})(),()=>c())}},89705:function(e,t,n){"use strict";n.d(t,{Q:function(){return I},Z:function(){return x}});var r=n(81182),i=n(67897),o=n(63922),a=n(46534),s=n(67197),u=n(31323),l=n(19973),c=n(30951);function d(e){var t;let{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"==typeof e.blobs[0]?"hex":"bytes",i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.nr)(e)):e.blobs,o=[];for(let e of i)o.push(Uint8Array.from(n.blobToKzgCommitment(e)));return"bytes"===r?o:o.map(e=>(0,c.ci)(e))}function f(e){var t;let{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"==typeof e.blobs[0]?"hex":"bytes",i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,l.nr)(e)):e.commitments,a=[];for(let e=0;e<i.length;e++){let t=i[e],r=o[e];a.push(Uint8Array.from(n.computeBlobKzgProof(t,r)))}return"bytes"===r?a:a.map(e=>(0,c.ci)(e))}var h=n(56142),p=n(17360),m=n(68871);class y extends m.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:["Max: ".concat(e," bytes"),"Given: ".concat(t," bytes")]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class g extends m.G{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}var w=n(91398),b=n(55765),P=n(66387),E=n(29891),_=n(22712),C=n(67304);let I=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function x(e,t){let n;let{account:m=e.account,blobs:x,chain:S,chainId:O,gas:T,kzg:R,nonce:A,parameters:B=I,type:N}=t,k=m?(0,r.T)(m):void 0,j={...t,...k?{from:null==k?void 0:k.address}:{}};async function q(){return n||(n=await (0,P.s)(e,a.Q,"getBlock")({blockTag:"latest"}))}if((B.includes("blobVersionedHashes")||B.includes("sidecars"))&&x&&R){let e=d({blobs:x,kzg:R});if(B.includes("blobVersionedHashes")){let t=function(e){var t;let{commitments:n,version:r}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"==typeof n[0]?"hex":"bytes",o=[];for(let e of n)o.push(function(e){var t;let{commitment:n,version:r=1}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"==typeof n?"hex":"bytes",o=function(e,t){let n=(0,h.J)((0,p.v)(e,{strict:!1})?(0,l.O0)(e):e);return"bytes"===(t||"hex")?n:(0,c.NC)(n)}(n,"bytes");return o.set([r],0),"bytes"===i?o:(0,c.ci)(o)}({commitment:e,to:i,version:r}));return o}({commitments:e,to:"hex"});j.blobVersionedHashes=t}if(B.includes("sidecars")){let t=f({blobs:x,commitments:e,kzg:R}),n=function(e){var t,n,r;let{data:i,kzg:o,to:a}=e,s=null!==(t=e.blobs)&&void 0!==t?t:function(e){var t;let n=null!==(t=e.to)&&void 0!==t?t:"string"==typeof e.data?"hex":"bytes",r="string"==typeof e.data?(0,l.nr)(e.data):e.data,i=(0,b.d)(r);if(!i)throw new g;if(i>761855)throw new y({maxSize:761855,size:i});let o=[],a=!0,s=0;for(;a;){let e=(0,w.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(s,s+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),a=!1;break}t++,s+=31}o.push(e)}return"bytes"===n?o.map(e=>e.bytes):o.map(e=>(0,c.ci)(e.bytes))}({data:i,to:a}),u=null!==(n=e.commitments)&&void 0!==n?n:d({blobs:s,kzg:o,to:a}),h=null!==(r=e.proofs)&&void 0!==r?r:f({blobs:s,commitments:u,kzg:o,to:a}),p=[];for(let e=0;e<s.length;e++)p.push({blob:s[e],commitment:u[e],proof:h[e]});return p}({blobs:x,commitments:e,proofs:t,to:"hex"});j.sidecars=n}}if(B.includes("chainId")&&(S?j.chainId=S.id:void 0!==O?j.chainId=O:j.chainId=await (0,P.s)(e,C.L,"getChainId")({})),B.includes("nonce")&&void 0===A&&k&&(j.nonce=await (0,P.s)(e,s.K,"getTransactionCount")({address:k.address,blockTag:"pending"})),(B.includes("fees")||B.includes("type"))&&void 0===N)try{j.type=function(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new _.j3({transaction:e})}(j)}catch(t){let e=await q();j.type="bigint"==typeof(null==e?void 0:e.baseFeePerGas)?"eip1559":"legacy"}if(B.includes("fees")){if("legacy"!==j.type&&"eip2930"!==j.type){if(void 0===j.maxFeePerGas||void 0===j.maxPriorityFeePerGas){let n=await q(),{maxFeePerGas:r,maxPriorityFeePerGas:o}=await (0,i.C)(e,{block:n,chain:S,request:j});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new u.ld({maxPriorityFeePerGas:o});j.maxPriorityFeePerGas=o,j.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new u.e5;let n=await q(),{gasPrice:r}=await (0,i.C)(e,{block:n,chain:S,request:j,type:"legacy"});j.gasPrice=r}}return B.includes("gas")&&void 0===T&&(j.gas=await (0,P.s)(e,o.Q,"estimateGas")({...j,account:k?{address:k.address,type:"json-rpc"}:void 0})),(0,E.F)(j),delete j.parameters,j}},85334:function(e,t,n){"use strict";async function r(e,t){let{serializedTransaction:n}=t;return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}n.d(t,{p:function(){return r}})},86924:function(e,t,n){"use strict";n.d(t,{T:function(){return y}});var r=n(81182),i=n(8773),o=n(30481),a=n(47322),s=n(22712),u=n(14902),l=n(80193),c=n(42431),d=n(66387),f=n(29891),h=n(67304),p=n(89705),m=n(85334);async function y(e,t){let{account:n=e.account,chain:y=e.chain,accessList:g,blobs:w,data:b,gas:P,gasPrice:E,maxFeePerBlobGas:_,maxFeePerGas:C,maxPriorityFeePerGas:I,nonce:x,to:S,value:O,...T}=t;if(!n)throw new i.o({docsPath:"/docs/actions/wallet/sendTransaction"});let R=(0,r.T)(n);try{var A,B,N,k;let n;if((0,f.F)(t),null!==y&&(n=await (0,d.s)(e,h.L,"getChainId")({}),(0,o.q)({currentChainId:n,chain:y})),"local"===R.type){let t=await (0,d.s)(e,p.Z,"prepareTransactionRequest")({account:R,accessList:g,blobs:w,chain:y,chainId:n,data:b,gas:P,gasPrice:E,maxFeePerBlobGas:_,maxFeePerGas:C,maxPriorityFeePerGas:I,nonce:x,parameters:[...p.Q,"sidecars"],to:S,value:O,...T}),r=null==y?void 0:null===(k=y.serializers)||void 0===k?void 0:k.transaction,i=await R.signTransaction(t,{serializer:r});return await (0,d.s)(e,m.p,"sendRawTransaction")({serializedTransaction:i})}let r=null===(N=e.chain)||void 0===N?void 0:null===(B=N.formatters)||void 0===B?void 0:null===(A=B.transactionRequest)||void 0===A?void 0:A.format,i=(r||c.tG)({...(0,l.K)(T,{format:r}),accessList:g,blobs:w,data:b,from:R.address,gas:P,gasPrice:E,maxFeePerBlobGas:_,maxFeePerGas:C,maxPriorityFeePerGas:I,nonce:x,to:S,value:O});return await e.request({method:"eth_sendTransaction",params:[i]},{retryCount:0})}catch(e){throw function(e,t){let{docsPath:n,...r}=t,i=(()=>{let t=(0,u.k)(e,r);return t instanceof a.cj?e:t})();return new s.mk(i,{docsPath:n,...r})}(e,{...t,account:R,chain:t.chain||void 0})}}},83980:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(81182),i=n(8773),o=n(30951);async function a(e,t){let{account:n=e.account,message:a}=t;if(!n)throw new i.o({docsPath:"/docs/actions/wallet/signMessage"});let s=(0,r.T)(n);if("local"===s.type)return s.signMessage({message:a});let u="string"==typeof a?(0,o.$G)(a):a.raw instanceof Uint8Array?(0,o.NC)(a.raw):a.raw;return e.request({method:"personal_sign",params:[u,s.address]},{retryCount:0})}},78906:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(81182),i=n(8773),o=n(34118);async function a(e,t){let{account:n=e.account,domain:a,message:s,primaryType:u}=t;if(!n)throw new i.o({docsPath:"/docs/actions/wallet/signTypedData"});let l=(0,r.T)(n),c={EIP712Domain:(0,o.cj)({domain:a}),...t.types};if((0,o.iC)({domain:a,message:s,primaryType:u,types:c}),"local"===l.type)return l.signTypedData({domain:a,message:s,primaryType:u,types:c});let d=(0,o.H6)({domain:a,message:s,primaryType:u,types:c});return e.request({method:"eth_signTypedData_v4",params:[l.address,d]},{retryCount:0})}},17298:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(79820),i=n(66387),o=n(86924);async function a(e,t){let{abi:n,address:a,args:s,dataSuffix:u,functionName:l,...c}=t,d=(0,r.R)({abi:n,args:s,functionName:l});return(0,i.s)(e,o.T,"sendTransaction")({data:"".concat(d).concat(u?u.replace("0x",""):""),to:a,...c})}},71558:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});let r=(0,n(62752).a)({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol
37:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}})},70425:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r=(0,n(62752).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},50353:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});let r=(0,n(62752).a)({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0})},5302:function(e,t,n){"use strict";let r;n.d(t,{e:function(){return a}});var i=n(81182);let o=256;function a(e){var t;let{batch:n,cacheTime:a=null!==(t=e.pollingInterval)&&void 0!==t?t:4e3,ccipRead:s,key:u="base",name:l="Base Client",pollingInterval:c=4e3,type:d="base"}=e,f=e.chain,h=e.account?(0,i.T)(e.account):void 0,{config:p,request:m,value:y}=e.transport({chain:f,pollingInterval:c}),g={account:h,batch:n,cacheTime:a,ccipRead:s,chain:f,key:u,name:l,pollingInterval:c,request:m,transport:{...p,...y},type:d,uid:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!r||o+e>512){r="",o=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(o,o+++e)}()};return Object.assign(g,{extend:function e(t){return n=>{let r=n(t);for(let e in g)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(g)})}},33231:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(68871),i=n(66268),o=n(94123),a=n(29934);function s(e,t){let{key:n,name:s,request:u,retryCount:l=3,retryDelay:c=150,timeout:d,type:f}=e;return{config:{key:n,name:s,request:u,retryCount:l,retryDelay:c,timeout:d,type:f},request:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{retryDelay:u=150,retryCount:l=3}={...t,...s};return(0,a.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e);case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e);case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case 5e3:throw new o.ab(e);default:if(e instanceof r.G)throw e;throw new o.ir(e)}}},{delay:e=>{let{count:t,error:n}=e;if(n&&n instanceof i.Gg){var r;let e=null==n?void 0:null===(r=n.headers)||void 0===r?void 0:r.get("Retry-After");if(null==e?void 0:e.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<t)*u},retryCount:l,shouldRetry:e=>{let{error:t}=e;return"code"in t&&"number"==typeof t.code?-1===t.code||t.code===o.Pv.code||t.code===o.XS.code:!(t instanceof i.Gg)||!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}})}}(u,{retryCount:l,retryDelay:c}),value:t}}},71273:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var r=n(66268),i=n(68871);class o extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var a=n(7855),s=n(50340),u=n(64133);let l={current:0,take(){return this.current++},reset(){this.current=0}};var c=n(33231);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{batch:n,fetchOptions:i,key:d="http",name:f="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:p,retryDelay:m}=t;return y=>{var g,w;let{chain:b,retryCount:P,timeout:E}=y,{batchSize:_=1e3,wait:C=0}="object"==typeof n?n:{},I=null!==(g=t.retryCount)&&void 0!==g?g:P,x=null!==(w=null!=E?E:t.timeout)&&void 0!==w?w:1e4,S=e||(null==b?void 0:b.rpcUrls.default.http[0]);if(!S)throw new o;let O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async request(n){var i,o,a,c;let{body:d,onRequest:f=t.onRequest,onResponse:h=t.onResponse,timeout:p=null!==(i=t.timeout)&&void 0!==i?i:1e4}=n,m={...null!==(o=t.fetchOptions)&&void 0!==o?o:{},...null!==(a=n.fetchOptions)&&void 0!==a?a:{}},{headers:y,method:g,signal:w}=m;try{let t;let n=await (0,s.F)(async t=>{var n;let{signal:r}=t,i={...m,body:Array.isArray(d)?(0,u.P)(d.map(e=>{var t;return{jsonrpc:"2.0",id:null!==(t=e.id)&&void 0!==t?t:l.take(),...e}})):(0,u.P)({jsonrpc:"2.0",id:null!==(n=d.id)&&void 0!==n?n:l.take(),...d}),headers:{...y,"Content-Type":"application/json"},method:g||"POST",signal:w||(p>0?r:null)}
37,o=new Request(e,i);return f&&await f(o),await fetch(e,i)},{errorInstance:new r.W5({body:d,url:e}),timeout:p,signal:!0});if(h&&await h(n),(null===(c=n.headers.get("Content-Type"))||void 0===c?void 0:c.startsWith("application/json"))?t=await n.json():(t=await n.text(),t=JSON.parse(t||"{}")),!n.ok)throw new r.Gg({body:d,details:(0,u.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:d,details:t.message,url:e})}}}}(S,{fetchOptions:i,onRequest:h,onResponse:p,timeout:x});return(0,c.q)({key:d,name:f,async request(e){let{method:t,params:i}=e,o={method:t,params:i},{schedule:s}=(0,a.S)({id:S,wait:C,shouldSplitBatch:e=>e.length>_,fn:e=>O.request({body:e}),sort:(e,t)=>e.id-t.id}),u=async e=>n?s(e):[await O.request({body:e})],[{error:l,result:c}]=await u(o);if(l)throw new r.bs({body:o,error:l,url:S});return c},retryCount:I,retryDelay:m,timeout:x,type:"http"},{fetchOptions:i,url:S})}}},8773:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(68871);class i extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},49936:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(68871);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n='Block at hash "'.concat(e,'"')),t&&(n='Block at number "'.concat(t,'"')),super("".concat(n," could not be found.")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},31323:function(e,t,n){"use strict";n.d(t,{Fz:function(){return o},e5:function(){return a},ld:function(){return s}});var r=n(83429),i=n(68871);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class a extends i.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super("`maxFeePerGas` cannot be less than the `maxPriorityFeePerGas` (".concat((0,r.o)(e)," gwei).")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},78796:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(89059),i=n(55765),o=n(75382),a=n(43331),s=n(92468),u=n(31662);let l="/docs/contract/decodeEventLog";function c(e){let{abi:t,data:n,strict:c,topics:d}=e,f=null==c||c,[h,...p]=d;if(!h)throw new r.FM({docsPath:l});let m=t.find(e=>"event"===e.type&&h===(0,o.n)((0,u.t)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new r.lC(h,{docsPath:l});let{name:y,inputs:g}=m,w=null==g?void 0:g.some(e=>!("name"in e&&e.name)),b=w?[]:{},P=g.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<P.length;e++){let t=P[e],n=p[e];if(!n)throw new r.Gy({abiItem:m,param:t});b[w?e:t.name||e]=function(e){let{param:t,value:n}=e;return"string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/)?n:((0,s.r)([t],n)||[])[0]}({param:t,value:n})}let E=g.filter(e=>!("indexed"in e&&e.indexed));if(E.length>0){if(n&&"0x"!==n)try{let e=(0,s.r)(E,n);if(e){if(w)b=[...b,...e];else for(let t=0;t<E.length;t++)b[E[t].name]=e[t]}}catch(e){if(f){if(e instanceof r.xB||e instanceof a.lQ)throw new r.SM({abiItem:m,data:n,params:E,size:(0,i.d)(n)});throw e}}else if(f)throw new r.SM({abiItem:m,data:"0x",params:E,size:0})}return{eventName:y,args:Object.values(b).length>0?b:void 0}}},80889:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(89059),i=n(68871);class o extends i.G{constructor(e){super('Filter type "'.concat(e,'" is not supported.')),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var a=n(19973),s=n(72374),u=n(75382),l=n(85491),c=n(31662),d=n(53404);let f="/docs/contract/encodeEventTopics";function h(e){let{abi:t,eventName:n,args:i}=e,o=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new r.mv(n,{docsPath:f});o=e}if("event"!==o.type)throw new r.mv(void 0,{docsPath:f});let a=(0,c.t)(o),s=(0,u.n)(a),l=[];
37if(i&&"inputs"in o){var h,m,y;let e=null===(h=o.inputs)||void 0===h?void 0:h.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(i)?i:Object.values(i).length>0&&null!==(m=null==e?void 0:e.map(e=>i[e.name]))&&void 0!==m?m:[];t.length>0&&(l=null!==(y=null==e?void 0:e.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>p({param:e,value:t[n][i]})):t[n]?p({param:e,value:t[n]}):null))&&void 0!==y?y:[])}return[s,...l]}function p(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type)return(0,s.w)((0,a.O0)(n));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new o(t.type);return(0,l.E)([t],[n])}},80013:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(89059),i=n(78796);function o(e){let{abi:t,eventName:n,logs:o,strict:a=!0}=e;return o.map(e=>{try{let r=(0,i.F)({...e,abi:t,strict:a});if(n&&!n.includes(r.eventName))return null;return{...r,...e}}catch(i){let t,n;if(i instanceof r.lC)return null;if(i instanceof r.SM||i instanceof r.Gy){var o;if(a)return null;t=i.abiItem.name,n=null===(o=i.abiItem.inputs)||void 0===o?void 0:o.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}).filter(Boolean)}},65282:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(4285),i=n(80589);function o(e,t){if(!(0,i.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},30481:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(79080);function i(e){let{chain:t,currentChainId:n}=e;if(!t)throw new r.Bk;if(n!==t.id)throw new r.Yl({chain:t,currentChainId:n})}},62752:function(e,t,n){"use strict";function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}n.d(t,{a:function(){return r}})},35275:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(17360);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t="0x".concat(e.slice(1,65));return(0,r.v)(t)?t:null}},46041:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(93310),i=n(68871),o=n(54261);function a(e,t){var n,a,s,u,l,c;if(!(e instanceof i.G))return!1;let d=e.walk(e=>e instanceof o.Lu);return d instanceof o.Lu&&(!!((null===(n=d.data)||void 0===n?void 0:n.errorName)==="ResolverNotFound"||(null===(a=d.data)||void 0===a?void 0:a.errorName)==="ResolverWildcardNotSupported"||(null===(s=d.data)||void 0===s?void 0:s.errorName)==="ResolverNotContract"||(null===(u=d.data)||void 0===u?void 0:u.errorName)==="ResolverError"||(null===(l=d.data)||void 0===l?void 0:l.errorName)==="HttpError"||(null===(c=d.reason)||void 0===c?void 0:c.includes("Wildcard on non-extended resolvers is not supported")))||"reverse"===t&&d.reason===r.$[50])}},80578:function(e,t,n){"use strict";n.d(t,{V:function(){return u}});var r=n(41708),i=n(19973),o=n(30951),a=n(72374),s=n(35275);function u(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let o=(0,s.i)(n[e]),u=o?(0,i.O0)(o):(0,a.w)((0,i.qX)(n[e]),"bytes");t=(0,a.w)((0,r.zo)([t,u]),"bytes")}return(0,o.ci)(t)}},20279:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(19973),i=n(30951),o=n(72374),a=n(35275);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.qX)(t).byteLength+2),s=0,u=t.split(".");for(let e=0;e<u.length;e++){let t=(0,r.qX)(u[e]);if(t.byteLength>255){var l;t=(0,r.qX)((l=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,o.w)((0,r.qX)(e)):(0,i.ci)(t)}(u[e]),"[".concat(l.slice(2),"]")))}n[s]=t.length,n.set(t,s+1),s+=t.length+1}return n.byteLength!==s+1?n.slice(0,s+1):n}},12203:function(e,t,n){"use strict";function r(e,t){var n,r;let{method:i}=t,o={};return"fallback"===e.transport.type&&(null===(n=(r=e.transport).onResponse)||void 0===n||n.call(r,e=>{let{method:t,response:n,status:r,transport:a}=e;"success"===r&&i===t&&(o[n]=a.request)})),t=>o[t]||e.request}n.d(t,{g:function(){return r}})},3349:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63235);function i(e){var t;let n=null===(t=e.transactions)||void 0===t?void 0:t.map(e=>"string"==typeof e?e:(0,r.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLim
37it?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}},10561:function(e,t,n){"use strict";function r(e){let{args:t,eventName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},63235:function(e,t,n){"use strict";n.d(t,{Tr:function(){return o},c8:function(){return i}});var r=n(24844);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?i[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},51541:function(e,t,n){"use strict";n.d(t,{N7:function(){return a}});let r=new Map,i=new Map,o=0;function a(e,t,n){let a=++o,s=()=>r.get(e)||[],u=()=>{let t=s();r.set(e,t.filter(e=>e.id!==a))},l=()=>{let t=i.get(e);1===s().length&&t&&t(),u()},c=s();if(r.set(e,[...c,{id:a,fns:t}]),c&&c.length>0)return l;let d={};for(let e in t)d[e]=function(){for(var t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];let a=s();if(0!==a.length)for(let r of a)null===(t=(n=r.fns)[e])||void 0===t||t.call(n,...i)};let f=n(d);return"function"==typeof f&&i.set(e,f),l}},58856:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(8245);function i(e,t){let{emitOnBegin:n,initialWaitTime:i,interval:o}=t,a=!0,s=()=>a=!1;return(async()=>{var t;let u;n&&(u=await e({unpoll:s}));let l=null!==(t=await (null==i?void 0:i(u)))&&void 0!==t?t:o;await (0,r.D)(l);let c=async()=>{a&&(await e({unpoll:s}),await (0,r.D)(o),c())};c()})(),s}},29934:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(8245);function i(e){let{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((o,a)=>{let s=async function(){let{count:u=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=async e=>{let{error:n}=e,i="function"==typeof t?t({count:u,error:n}):t;i&&await (0,r.D)(i),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(u<n&&await i({count:u,error:e}))return l({error:e});a(e)}};s()})}},50340:function(e,t,n){"use strict";function r(e,t){let{errorInstance:n=Error("timed out"),timeout:r,signal:i}=t;return new Promise((t,o)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{i?s.abort():o(n)},r)),t(await e({signal:(null==s?void 0:s.signal)||null}))}catch(e){(null==e?void 0:e.name)==="AbortError"&&o(n),o(e)}finally{clearTimeout(a)}})()})}n.d(t,{F:function(){return r}})},71901:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(41708),i=n(19973),o=n(72374);function a(e,t){let n="string"==typeof e?(0,i.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,i.O0)(e.raw),a=(0,i.qX)("".concat("\x19Ethereum Signed Message:\n").concat(n.length));return(0,o.w)((0,r.zo)([a,n]),t)}},34118:function(e,t,n){"use strict";n.d(t,{cj:function(){return h},H6:function(){return d},iC:function(){return f}});var r=n(89059),i=n(4285),o=n(80589),a=n(55765),s=n(30951);
37let u=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,l=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;var c=n(64133);function d(e){let{domain:t,message:n,primaryType:r,types:i}=e,o=(e,t)=>{let n={...t};for(let t of e){let{name:e,type:r}=t;"address"===r&&(n[e]=n[e].toLowerCase())}return n},a=i.EIP712Domain&&t?o(i.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==r)return o(i[r],n)})();return(0,c.P)({domain:a,message:s,primaryType:r,types:i})}function f(e){let{domain:t,message:n,primaryType:c,types:d}=e,f=(e,t)=>{for(let n of e){let{name:e,type:c}=n,h=t[e],p=c.match(l);if(p&&("number"==typeof h||"bigint"==typeof h)){let[e,t,n]=p;(0,s.eC)(h,{signed:"int"===t,size:Number.parseInt(n)/8})}if("address"===c&&"string"==typeof h&&!(0,o.U)(h))throw new i.b({address:h});let m=c.match(u);if(m){let[e,t]=m;if(t&&(0,a.d)(h)!==Number.parseInt(t))throw new r.KY({expectedSize:Number.parseInt(t),givenSize:(0,a.d)(h)})}let y=d[c];y&&f(y,h)}};d.EIP712Domain&&t&&f(d.EIP712Domain,t),"EIP712Domain"!==c&&f(d[c],n)}function h(e){let{domain:t}=e;return["string"==typeof(null==t?void 0:t.name)&&{name:"name",type:"string"},(null==t?void 0:t.version)&&{name:"version",type:"string"},"number"==typeof(null==t?void 0:t.chainId)&&{name:"chainId",type:"uint256"},(null==t?void 0:t.verifyingContract)&&{name:"verifyingContract",type:"address"},(null==t?void 0:t.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}},8245:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},1872:function(e,t,n){"use strict";n.r(t),n.d(t,{useAccount:function(){return c}});var r=n(8154),i=n(92679),o=n(81494),a=n(79074),s=n(7653),u=n(36247);let l=e=>"object"==typeof e&&!Array.isArray(e);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.useConfig)(e);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.v,i=(0,s.useRef)([]),o=(0,u.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(l(e)&&l(t)&&i.current.length){for(let n of i.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)});if(l(o)){let e={...o},t={};
37for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(n)||i.current.push(n),r)}};return Object.defineProperties(e,t),e}return o}(e=>(0,r.u)(t,{onChange:e}),()=>(0,i.D)(t))}},29868:function(e,t,n){"use strict";n.r(t),n.d(t,{useAccountEffect:function(){return a}});var r=n(8154),i=n(7653),o=n(81494);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:n}=e,a=(0,o.useConfig)(e);(0,i.useEffect)(()=>(0,r.u)(a,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:i,chain:o,chainId:a,connector:s}=e,u="reconnecting"===r.status||void 0===r.status;null==t||t({address:n,addresses:i,chain:o,chainId:a,connector:s,isReconnected:u})}else"connected"===r.status&&"disconnected"===e.status&&(null==n||n())}}),[a,t,n])}},14292:function(e,t,n){"use strict";n.r(t),n.d(t,{useBlock:function(){return f}});var r=n(79823),i=n(46534),o=n(56366);async function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n,...r}=t,a=e.getClient({chainId:n}),s=(0,o.s)(a,i.Q,"getBlock");return{...await s(r),chainId:a.chain.id}}var s=n(60560),u=n(64524),l=n(16251),c=n(81494),d=n(2573);function f(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:i={},watch:o}=n,f=(0,c.useConfig)(n),h=(0,r.useQueryClient)(),p=(0,l.useChainId)({config:f}),m=null!==(e=n.chainId)&&void 0!==e?e:p,y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:r,...i}=n[1],o=await a(e,i);return null!=o?o:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["block",(0,s.OP)(e)]}(t)}}(f,{...n,chainId:m}),g=!!(null===(t=i.enabled)||void 0===t||t);return(0,d.useWatchBlocks)({...{config:n.config,chainId:n.chainId,..."object"==typeof o?o:{}},enabled:!!(g&&("object"==typeof o?o.enabled:o)),onBlock(e){h.setQueryData(y.queryKey,e)}}),(0,u.aM)({...i,...y,enabled:g})}},55938:function(e,t,n){"use strict";n.r(t),n.d(t,{useBlockNumber:function(){return d}});var r=n(79823),i=n(45087),o=n(56366),a=n(60560),s=n(64524),u=n(16251),l=n(81494),c=n(45455);function d(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:d={},watch:f}=n,h=(0,l.useConfig)(n),p=(0,r.useQueryClient)(),m=(0,u.useChainId)({config:h}),y=null!==(e=n.chainId)&&void 0!==e?e:m,g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{gcTime:0,async queryFn(t){let{queryKey:n}=t,{scopeKey:r,...a}=n[1],s=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,o.s)(a,i.z,"getBlockNumber")(r)}(e,a);return null!=s?s:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["blockNumber",(0,a.OP)(e)]}(t)}}(h,{...n,chainId:y});return(0,c.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){p.setQueryData(g.queryKey,e)}}),(0,s.aM)({...d,...g})}},49301:function(e,t,n){"use strict";n.r(t),n.d(t,{useBlockTransactionCount:function(){return l}});var r=n(73820),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,l=(0,u.useConfig)(t),c=(0,s.useChainId)({config:l}),d=null!==(e=t.chainId)&&void 0!==e?e:c,f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:o,...a}=n[1],s=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.c,"getBlockTransactionCount")(o)}(e,a);return null!=s?s:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["blockTransactionCount",(0,o.OP)(e)]}(t)}}(l,{...t,chainId:d});return(0,a.aM)({...n,...f})}},42693:function(e,t,n){"use strict";n.r(t),n.d(t,{useBytecode:function(){return c}});var r=n(81599),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.C,"getBytecode")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,c=(0,l.useConfig)(n),d=(0,u.useChainId)({config:c}
37),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,scopeKey:i,...a}=n[1];if(!r)throw Error("address is required");let s=await o(e,{...a,address:r});return null!=s?s:null},queryKey:["getBytecode",(0,a.OP)(t)]}}(c,{...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})}},42037:function(e,t,n){"use strict";n.r(t),n.d(t,{useCall:function(){return c}});var r=n(74201),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.R,"call")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,r=(0,l.useConfig)(t),i=(0,u.useChainId)({config:r}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:r,...i}=n[1],a=await o(e,{...i});return null!=a?a:null},queryKey:["call",(0,a.OP)(t)]}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,s.aM)({...n,...c})}},71598:function(e,t,n){"use strict";n.r(t),n.d(t,{useChains:function(){return u}});var r=n(79074);let i=[];function o(e){let t=e.chains;return(0,r.v)(i,t)?i:(i=t,t)}var a=n(7653),s=n(81494);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useConfig)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>o(t),()=>o(t))}},90683:function(e,t,n){"use strict";n.r(t),n.d(t,{useClient:function(){return a}});var r=n(9212),i=n(36247),o=n(81494);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.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)=>(null==e?void 0:e.uid)===(null==t?void 0: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))}},15347:function(e,t,n){"use strict";n.r(t),n.d(t,{useConnect:function(){return l}});var r=n(10461),i=n(43806);async function o(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new i.wi;try{var r;e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let i=await n.connect({chainId:t.chainId}),o=i.accounts;return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await (null===(r=e.storage)||void 0===r?void 0:r.setItem("recentConnectorId",n.id)),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:o,chainId:i.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:o,chainId:i.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var a=n(7653),s=n(81494),u=n(17398);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,s.useConfig)(e),{mutate:i,mutateAsync:l,...c}=(0,r.useMutation)({...t,mutationFn:e=>o(n,e),mutationKey:["connect"]});return(0,a.useEffect)(()=>n.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&c.reset()}),[n,c.reset]),{...c,connect:i,connectAsync:l,connectors:(0,u.useConnectors)({config:n})}}},59106:function(e,t,n){"use strict";n.r(t),n.d(t,{useConnections:function(){return u}});var r=n(79074);let i=[];function o(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,r.v)(i,t)?i:(i=t,t)}var a=n(7653),s=n(81494);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useConfig)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>o(e),n,{equalityFn:r.v})})(t,{onChange:e}),()=>o(t),()=>o(t))}},8403:function(e,t,n){"use strict";n.r(t),n.d(t,{useConnectorClient:function(){return d}});var r=n(79823),i=n(33235),o=n(60560),a=n(7653),s=n(64524),u=n(1872),l=n(16251),c=n(81494);function d(){var e,t,n;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:f={},...h}=d,p=(0,c.useConfig)(h),m=(0,r.useQueryClient)(),{address:y,connector:g,status:w}=(0,u.useAccount)({config:p}),b=(0,l.useChainId)({config:p}),{queryKey:P,...E}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{gcTime:0,async queryFn(n){let{queryKey:r}=n,{connector:o}=t,{connectorUid:a,scopeKey:s,...u}=r[1];return(0,i.e)(e,{...u,connector:o})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:t,...n}=e;return["connectorClient",{...(0,o.OP)(n),connectorUid:null==t?void 0:t.uid}]}(t)}}(p,{...d,chainId:null!==(e=d.chainId)&&void 0!==e?e:b,connector:null!==(t=d.connector)&&void 0!==t?t:g}),_=!!("disconnected"!==w&&(null===(n=f.enabled)||void 0===n||n)),C=(0,a.useRef)(y);return(0,a.useEffect)(()=>{let e=C.current;!y&&e?(m.removeQueries({queryKey:P}),C.current=void 0):y!==e&&(m.invalidateQueries({queryKey:P}),C.current=y)},[y,m]),(0,s.aM)({...f,...E,queryKey:P,enabled:_,staleTime:Number.POSITIVE_INFINITY})}},17398:function(e,t,n){"use strict";n.r(t),n.d(t,{useConnectors:function(){return u}});var r=n(79074);let i=[];function o(e){let t=e.connectors;return(0,r.v)(i,t)?i:(i=t,t)}var a=n(7653),s=n(81494);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useConfig)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>o(t),()=>o(t))}},89608:function(e,t,n){"use strict";n.r(t),n.d(t,{useDisconnect:function(){return s}});var r=n(10461);async function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.connector)t=n.connector;else{let{connections:n,current:r}=e.state,i=n.get(r);t=null==i?void 0:i.connector}let r=e.state.connections;t&&(await t.disconnect(),t.emitter.off("change",e._internal.events.change),t.emitter.off("disconnect",e._internal.events.disconnect),t.emitter.on("connect",e._internal.events.connect),r.delete(t.uid)),e.setState(e=>
37{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{var i,o;let t=e.state.current;if(!t)return;let n=null===(i=e.state.connections.get(t))||void 0===i?void 0:i.connector;if(!n)return;await (null===(o=e.storage)||void 0===o?void 0:o.setItem("recentConnectorId",n.id))}}var o=n(81494),a=n(59106);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,o.useConfig)(e),{mutate:s,mutateAsync:u,...l}=(0,r.useMutation)({...t,mutationFn:e=>i(n,e),mutationKey:["disconnect"]});return{...l,connectors:(0,a.useConnections)({config:n}).map(e=>e.connector),disconnect:s,disconnectAsync:u}}},240:function(e,t,n){"use strict";n.r(t),n.d(t,{useEnsAddress:function(){return l}});var r=n(79114),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:l,query:c={}}=n,d=(0,u.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{name:o,scopeKey:a,...s}=n[1];if(!o)throw Error("name is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.O,"getEnsAddress")(o)}(e,{...s,name:o})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensAddress",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.aM)({...c,...h,enabled:p})}},38682:function(e,t,n){"use strict";n.r(t),n.d(t,{useEnsAvatar:function(){return l}});var r=n(88768),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:l,query:c={}}=n,d=(0,u.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{name:o,scopeKey:a,...s}=n[1];if(!o)throw Error("name is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.r,"getEnsAvatar")(o)}(e,{...s,name:o})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensAvatar",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.aM)({...c,...h,enabled:p})}},91359:function(e,t,n){"use strict";n.r(t),n.d(t,{useEnsName:function(){return l}});var r=n(18254),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:l,query:c={}}=n,d=(0,u.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:o,scopeKey:a,...s}=n[1];if(!o)throw Error("address is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.w,"getEnsName")(o)}(e,{...s,address:o})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensName",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.aM)({...c,...h,enabled:p})}},94316:function(e,t,n){"use strict";n.r(t),n.d(t,{useEnsResolver:function(){return l}});var r=n(85456),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:l,query:c={}}=n,d=(0,u.useConfig)(n),f=(0,s.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{name:o,scopeKey:a,...s}=n[1];if(!o)throw Error("name is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.S,"getEnsResolver")(o)}(e,{...s,name:o})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensResolver",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.aM)({...c,...h,enabled:p})}},97555:function(e,t,n){"use strict";n.r(t),n.d(t,{useEnsText:function(){return l}});var r=n(24454),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{key:l,name:c,query:d={}}=n,f=(0,u.useConfig)(n),h=(0,s.useChainId)({config:f}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{key:o,name:a,scopeKey:s,...u}=n[1];if(!o||!a)throw Error("key and name are required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.g,"getEnsText")(o)}(e,{...u,key:o,name:a})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensText",(0,o.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),m=!!(l&&c&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:m})}},46537:function(e,t,n){"use strict";n.r(t),n.d(t,{useEstimateFeesPerGas:function(){return f}});var r=n(92140),i=n(67897),o=n(56366),a=n(38055);async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n,formatUnits:s="gwei",...u}=t,l=e.getClient({chainId:n}),c=(0,o.s)(l,i.X,"estimateFeesPerGas"),{gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:h}=await c({...u,chain:l.chain}),p=(0,a.W)(s);return{formatted:{gasPrice:d?(0,r.b)(d,p):void 0,maxFeePerGas:f?(0,r.b)(f,p):void 0,maxPriorityFeePerGas:h?(0,r.b)(h,p):void 0},gasPrice:d,maxFeePerGas:f,maxPriorityFeePerGas:h}}var u=n(60560),l=n(64524),c=n(16251),d=n(81494);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,c.useChainId)({config:r}),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:r,...i}=n[1];return s(e,i)},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["estimateFeesPerGas",(0,u.OP)(e)]}(t)}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,l.aM)({...n,...o})}},69785:function(e,t,n){"use strict";n.r(t),n.d(t,{useEstimateGas:function(){return f}});var r=n(63922),i=n(56366),o=n(33235);async function a(e,t){let n;let{chainId:a,connector:s,...u}=t;n=t.account?t.account:(await (0,o.e)(e,{account:t.account,chainId:a,connector:s})).account;let l=e.getClient({chainId:a});return(0,i.s)(l,r.Q,"estimateGas")({...u,account:n})}var s=n(60560),u=n(64524),l=n(16251),c=n(81494),d=n(8403);function f(){var e,t,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:i,query:o={}}=r,f=(0,c.useConfig)(r),{data:h}=(0,d.useConnectorClient)({connector:i,query:{enabled:void 0===r.account}}),p=null!==(e=r.account)&&void 0!==e?e:null==h?void 0:h.account,m=(0,l.useChainId)({config:f}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(n){let{queryKey:r}=n,{connector:i}=t,{account:o,scopeKey:s,...u}=r[1];if(!o&&!i)throw Error("account or connector is required");return a(e,{account:o,connector:i,...u})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:t,...n}=e;return["estimateGas",(0,s.OP)(n)]}(t)}}(f,{...r,account:p,chainId:null!==(t=r.chainId)&&void 0!==t?t:m,connector:i}),g=!!((p||i)&&(null===(n=o.enabled)||void 0===n||n));return(0,u.aM)({...o,...y,enabled:g})}},36636:function(e,t,n){"use strict";n.r(t),n.d(t,{useEstimateMaxPriorityFeePerGas:function(){return c}});var r=n(62487),i=n(56366);async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r._,"estimateMaxPriorityFeePerGas")({chain:o.chain})}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,r=(0,l.useConfig)(t),i=(0,u.useChainId)({config:r}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:r,...i}=n[1];return o(e,i)},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["estimateMaxPriorityFeePerGas",(0,a.OP)(e)]}(t)}}(r,{...t,chainId:null!==(e=t.chainId)&&void 0!==e?e:i});return(0,s.aM)({...n,...c})}},53162:function(e,t,n){"use strict";n.r(t),n.d(t,{useFeeHistory:function(){return l}});var r=n(44662),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockCount:l,rewardPercentiles:c,query:d={}}=n,f=(0,u.useConfig)(n),h=(0,s.useChainId)({config:f}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{blockCount:o,rewardPercentiles:a,scopeKey:s,...u}=n[1];if(!o)throw Error("blockCount is required");if(!a)throw Error("rewardPercentiles is required");let l=await function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.Z,"getFeeHistory")(o)}(e,{...u,blockCount:o,rewardPercentiles:a});return null!=l?l:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["feeHistory",(0,o.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),m=!!(l&&c&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:m})}},19149:function(e,t,n){"use strict";n.r(t),n.d(t,{useGasPrice:function(){return l}});var r=n(11631),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={}}=t,l=(0,u.useConfig)(t),c=(0,s.useChainId)({config:l}),d=null!==(e=t.chainId)&&void 0!==e?e:c,f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{scopeKey:o,...a}=n[1],s=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{chainId:n}=t,o=e.getClient({chainId:n});return(0,i.s)(o,r.o,"getGasPrice")({})}(e,a);return null!=s?s:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["gasPrice",(0,o.OP)(e)]}(t)}}(l,{...t,chainId:d});return(0,a.aM)({...n,...f})}},74316:function(e,t,n){"use strict";n.r(t),n.d(t,{useInfiniteReadContracts:function(){return u}});var r=n(19996),i=n(60560),o=n(64524),a=n(16251),s=n(81494);function u(e){var t,n;let{contracts:u=[],query:l}=e,c=(0,s.useConfig)(e),d=(0,a.useChainId)({config:c}
37),f={...(n={...e,chainId:d,contracts:u,query:l}).query,async queryFn(e){let{pageParam:t,queryKey:i}=e,{contracts:o}=n,{cacheKey:a,scopeKey:s,...u}=i[1];return await (0,r.J)(c,{...u,contracts:o(t)})},queryKey:function(e){let{contracts:t,query:n,...r}=e;return["infiniteReadContracts",(0,i.OP)(r)]}(n)};return(0,o.NS)({...l,...f,initialPageParam:f.initialPageParam,structuralSharing:null!==(t=l.structuralSharing)&&void 0!==t?t:i.if})}},19831:function(e,t,n){"use strict";n.r(t),n.d(t,{usePrepareTransactionRequest:function(){return d}});var r=n(89705),i=n(56366),o=n(92679);async function a(e,t){let{account:n,chainId:a,...s}=t,u=null!=n?n:(0,o.D)(e).address,l=e.getClient({chainId:a});return(0,i.s)(l,r.Z,"prepareTransactionRequest")({...s,...u?{account:u}:{}})}var s=n(60560),u=n(64524),l=n(16251),c=n(81494);function d(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{to:r,query:i={}}=n,o=(0,c.useConfig)(n),d=(0,l.useChainId)({config:o}),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{queryFn(t){let{queryKey:n}=t,{scopeKey:r,to:i,...o}=n[1];if(!i)throw Error("to is required");return a(e,{to:i,...o})},queryKey:["prepareTransactionRequest",(0,s.OP)(t)]}}(o,{...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})}},15648:function(e,t,n){"use strict";n.r(t),n.d(t,{useProof:function(){return c}});var r=n(55341),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.S,"getProof")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,storageKeys:i,query:c={}}=n,d=(0,l.useConfig)(n),f=(0,u.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,scopeKey:i,storageKeys:a,...s}=n[1];if(!r||!a)throw Error("address and storageKeys are required");return o(e,{...s,address:r,storageKeys:a})},queryKey:["getProof",(0,a.OP)(t)]}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(r&&i&&(null===(t=c.enabled)||void 0===t||t));return(0,s.aM)({...c,...h,enabled:p})}},50082:function(e,t,n){"use strict";n.r(t),n.d(t,{usePublicClient:function(){return ex}});var r=n(79114),i=n(88768),o=n(18254),a=n(85456),s=n(24454),u=n(74201),l=n(12203);async function c(e){let t=(0,l.g)(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var d=n(43708),f=n(80889),h=n(30951);async function p(e){let{address:t,args:n,event:r,events:i,fromBlock:o,strict:a,toBlock:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!=i?i:r?[r]:void 0,c=(0,l.g)(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>(0,f.O)({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,h.eC)(o):o,toBlock:"bigint"==typeof s?(0,h.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:o,id:p,request:c(p),strict:!!a,toBlock:s,type:"event"}}var m=n(36443),y=n(81182),g=n(79820),w=n(39134),b=n(66387),P=n(63922);async function E(e,t){let{abi:n,address:r,args:i,functionName:o,...a}=t,s=(0,g.R)({abi:n,args:i,functionName:o});try{return await (0,b.s)(e,P.Q,"estimateGas")({data:s,to:r,...a})}catch(t){let e=a.account?(0,y.T)(a.account):void 0;throw(0,w.S)(t,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:null==e?void 0:e.address})}}var _=n(67897),C=n(62487),I=n(68002);async function x(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var S=n(46534),O=n(45087),T=n(73820),R=n(67304),A=n(81599),B=n(26152),N=n(68871);class k extends N.G{constructor({address:e}){super('No EIP-712 domain found on contract "'.concat(e,'".'),{metaMessages:["Ensure that:",'- The contract is deployed at the address "'.concat(e,'".'),"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip712DomainNotFoundError"})}}var j=n(85055);async function q(e,t){let{address:n,factory:r,factoryData:i}=t;try{let[t,o,a,s,u,l,c]=await (0,b.s)(e,j.L,"readContract")({abi:F,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:o,version:a,chainId:Number(s),verifyingContract:u,salt:l},extensions:c,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new k({address:n});throw e}}let F=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];var M=n(44662),L=n(83250),D=n(80013),U=n(10561);async function G(e,t){var n;let{filter:r}=t,i=null!==(n=r.strict)&&void 0!==n&&n,o=(await r.request({method:"eth_getFilterLogs",params:[r.id]})).map(e=>(0,U.U)(e));return r.abi?(0,D.h)({abi:r.abi,logs:o,strict:i}):o}var H=n(11631),K=n(30399),W=n(55341),z=n(19647),V=n(33683),Q=n(78604),Z=n(67197),X=n(8870),J=n(76070),Y=n(18338),$=n(55960),ee=n(95251),et=n(11198),en=n(80454),er=n(4947),ei=n(32427),eo=n(90122),ea=n(51541
37),es=n(58856),eu=n(64133),el=n(89059),ec=n(94123),ed=n(78796),ef=n(61161),eh=n(71901);let ev=RegExp("^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\/\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\n)(?<address>0x[a-fA-F0-9]{40})\\n\\n(?:(?<statement>.*)\\n\\n)?"),ep=RegExp("(?:URI: (?<uri>.+))\\n(?:Version: (?<version>.+))\\n(?:Chain ID: (?<chainId>\\d+))\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\n(?:Issued At: (?<issuedAt>.+))(?:\\nExpiration Time: (?<expirationTime>.+))?(?:\\nNot Before: (?<notBefore>.+))?(?:\\nRequest ID: (?<requestId>.+))?");var em=n(65282),ey=n(52710);async function eg(e,t){let{address:n,domain:r,message:i,nonce:o,scheme:a,signature:s,time:u=new Date,...l}=t,c=function(e){var t,n,r,i,o;let{scheme:a,statement:s,...u}=null!==(i=null===(t=e.match(ev))||void 0===t?void 0:t.groups)&&void 0!==i?i:{},{chainId:l,expirationTime:c,issuedAt:d,notBefore:f,requestId:h,...p}=null!==(o=null===(n=e.match(ep))||void 0===n?void 0:n.groups)&&void 0!==o?o:{},m=null===(r=e.split("Resources:")[1])||void 0===r?void 0:r.split("\n- ").slice(1);return{...u,...p,...l?{chainId:Number(l)}:{},...c?{expirationTime:new Date(c)}:{},...d?{issuedAt:new Date(d)}:{},...f?{notBefore:new Date(f)}:{},...h?{requestId:h}:{},...m?{resources:m}:{},...a?{scheme:a}:{},...s?{statement:s}:{}}}(i);if(!c.address||!function(e){let{address:t,domain:n,message:r,nonce:i,scheme:o,time:a=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||o&&r.scheme!==o||r.expirationTime&&a>=r.expirationTime||r.notBefore&&a<r.notBefore)return!1;try{if(!r.address||t&&!(0,em.E)(r.address,t))return!1}catch(e){return!1}return!0}({address:n,domain:r,message:c,nonce:o,scheme:a,time:u}))return!1;let d=(0,eh.r)(i);return(0,ey.Z)(e,{address:c.address,hash:d,signature:s,...l})}var ew=n(89705),eb=n(85334);function eP(e){return{call:t=>(0,u.R)(e,t),createBlockFilter:()=>c(e),createContractEventFilter:t=>(0,d.A)(e,t),createEventFilter:t=>p(e,t),createPendingTransactionFilter:()=>(0,m.W)(e),estimateContractGas:t=>E(e,t),estimateGas:t=>(0,P.Q)(e,t),getBalance:t=>(0,I.s)(e,t),getBlobBaseFee:()=>x(e),getBlock:t=>(0,S.Q)(e,t),getBlockNumber:t=>(0,O.z)(e,t),getBlockTransactionCount:t=>(0,T.c)(e,t),getBytecode:t=>(0,A.C)(e,t),getChainId:()=>(0,R.L)(e),getCode:t=>(0,A.C)(e,t),getContractEvents:t=>(0,B.m)(e,t),getEip712Domain:t=>q(e,t),getEnsAddress:t=>(0,r.O)(e,t),getEnsAvatar:t=>(0,i.r)(e,t),getEnsName:t=>(0,o.w)(e,t),getEnsResolver:t=>(0,a.S)(e,t),getEnsText:t=>(0,s.g)(e,t),getFeeHistory:t=>(0,M.Z)(e,t),estimateFeesPerGas:t=>(0,_.X)(e,t),getFilterChanges:t=>(0,L.K)(e,t),getFilterLogs:t=>G(e,t),getGasPrice:()=>(0,H.o)(e),getLogs:t=>(0,K.y)(e,t),getProof:t=>(0,W.S)(e,t),estimateMaxPriorityFeePerGas:t=>(0,C._)(e,t),getStorageAt:t=>(0,z.Y)(e,t),getTransaction:t=>(0,V.f)(e,t),getTransactionConfirmations:t=>(0,Q.a)(e,t),getTransactionCount:t=>(0,Z.K)(e,t),getTransactionReceipt:t=>(0,X.a)(e,t),multicall:t=>(0,J.A)(e,t),prepareTransactionRequest:t=>(0,ew.Z)(e,t),readContract:t=>(0,j.L)(e,t),sendRawTransaction:t=>(0,eb.p)(e,t),simulateContract:t=>(0,Y.a)(e,t),verifyMessage:t=>(0,ee.n)(e,t),verifySiweMessage:t=>eg(e,t),verifyTypedData:t=>(0,et.B)(e,t),uninstallFilter:t=>(0,$.W)(e,t),waitForTransactionReceipt:t=>(0,en.e)(e,t),watchBlocks:t=>(0,ei.p)(e,t),watchBlockNumber:t=>(0,er.q)(e,t),watchContractEvent:t=>(0,eo.Y)(e,t),watchEvent:t=>(function(e,t){let n,r,{address:i,args:o,batch:a=!0,event:s,events:u,fromBlock:l,onError:c,onLogs:d,poll:h,pollingInterval:m=e.pollingInterval,strict:y}=t,g=void 0!==h?h:"bigint"==typeof l||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
37onfig.type),w=null!=y&&y;return g?(()=>{let t=(0,eu.P)(["watchEvent",i,o,a,e.uid,s,m,l]);return(0,ea.N7)(t,{onLogs:d,onError:c},t=>{let n,r;void 0!==l&&(n=l-1n);let c=!1,d=(0,es.$)(async()=>{if(!c){try{r=await (0,b.s)(e,p,"createEventFilter")({address:i,args:o,event:s,events:u,strict:w,fromBlock:l})}catch(e){}c=!0;return}try{let l;if(r)l=await (0,b.s)(e,L.K,"getFilterChanges")({filter:r});else{let t=await (0,b.s)(e,O.z,"getBlockNumber")({});l=n&&n!==t?await (0,b.s)(e,K.y,"getLogs")({address:i,args:o,event:s,events:u,fromBlock:n+1n,toBlock:t}):[],n=t}if(0===l.length)return;if(a)t.onLogs(l);else for(let e of l)t.onLogs([e])}catch(e){var d;r&&e instanceof ec.yR&&(c=!1),null===(d=t.onError)||void 0===d||d.call(t,e)}},{emitOnBegin:!0,interval:m});return async()=>{r&&await (0,b.s)(e,$.W,"uninstallFilter")({filter:r}),d()}})})():(n=!0,r=()=>n=!1,(async()=>{try{let t=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=null!=u?u:s?[s]:void 0,l=[];a&&(l=[a.flatMap(e=>(0,f.O)({abi:[e],eventName:e.name,args:o}))],s&&(l=l[0]));let{unsubscribe:h}=await t.subscribe({params:["logs",{address:i,topics:l}],onData(e){if(!n)return;let t=e.result;try{let{eventName:e,args:n}=(0,ed.F)({abi:null!=a?a:[],data:t.data,topics:t.topics,strict:w}),r=(0,U.U)(t,{args:n,eventName:e});d([r])}catch(o){let e,n;if(o instanceof el.SM||o instanceof el.Gy){var r;if(y)return;e=o.abiItem.name,n=null===(r=o.abiItem.inputs)||void 0===r?void 0:r.some(e=>!("name"in e&&e.name))}let i=(0,U.U)(t,{args:n?[]:{},eventName:e});d([i])}},onError(e){null==c||c(e)}});r=h,n||r()}catch(e){null==c||c(e)}})(),()=>r())})(e,t),watchPendingTransactions:t=>(0,ef.O)(e,t)}}var eE=n(9212);function e_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,eE.s)(e,t);return null==n?void 0:n.extend(eP)}var eC=n(36247),eI=n(81494);function ex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,eI.useConfig)(e);return(0,eC.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>e_(e),n,{equalityFn:(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid)})})(t,{onChange:e}),()=>e_(t,e),()=>e_(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},6448:function(e,t,n){"use strict";n.r(t),n.d(t,{useReadContracts:function(){return l}});var r=n(19996),i=n(60560),o=n(7653),a=n(64524),s=n(16251),u=n(81494);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{contracts:n=[],query:l={}}=t,c=(0,u.useConfig)(t),d=(0,s.useChainId)({config:c}),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(n){let{queryKey:i}=n,o=[],a=i[1].contracts.length;for(let e=0;e<a;e++){var s;let n=i[1].contracts[e],r=(null===(s=t.contracts)||void 0===s?void 0:s[e]).abi;o.push({...n,abi:r})}let{scopeKey:u,...l}=i[1];return(0,r.J)(e,{...l,contracts:o})},queryKey:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];for(let i of null!==(e=n.contracts)&&void 0!==e?e:[]){let{abi:e,...o}=i;r.push({...o,chainId:null!==(t=o.chainId)&&void 0!==t?t:n.chainId})}return["readContracts",(0,i.OP)({...n,contracts:r})]}(t)}}(c,{...t,chainId:d}),h=(0,o.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=l.enabled)||void 0===e||e))},[n,l.enabled]);return(0,a.aM)({...f,...l,enabled:h,structuralSharing:null!==(e=l.structuralSharing)&&void 0!==e?e:i.if})}},57e3:function(e,t,n){"use strict";n.r(t),n.d(t,{useReconnect:function(){return a}});var r=n(10461),i=n(35246),o=n(81494);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,o.useConfig)(e),{mutate:a,mutateAsync:s,...u}=(0,r.useMutation)({...t,mutationFn:e=>(0,i.G)(n,e),mutationKey:["reconnect"]});return{...u,connectors:n.connectors,reconnect:a,reconnectAsync:s}}},38823:function(e,t,n){"use strict";n.r(t),n.d(t,{useSendTransaction:function(){return d}});var r=n(10461),i=n(63922),o=n(86924),a=n(56366),s=n(92679),u=n(33235);async function l(e,t){let n;let{account:r,chainId:l,connector:c,gas:d,...f}=t;n="object"==typeof r&&"local"===r.type?e.getClient({chainId:l}):await (0,u.e)(e,{account:r,chainId:l,connector:c});let{connector:h}=(0,s.D)(e),p=await (async()=>{var e;if("data"in t&&t.data&&(null===(e=null!=c?c:h)||void 0===e||!e.supportsSimulation)&&null!==d)return void 0===d?(0,a.s)(n,i.Q,"estimateGas")({...f,account:r,chain:l?{id:l}:null}):d})(),m=(0,a.s)(n,o.T,"sendTransaction");return await m({...f,...r?{account:r}:{},gas:p,chain:l?{id:l}:null})}var c=n(81494);function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,c.useConfig)(t),{mutationFn:t=>l(e,t),mutationKey:["sendTransaction"]}),{mutate:o,mutateAsync:a,...s}=(0,r.useMutation)({...n,...i});return{...s,sendTransaction:o,sendTransactionAsync:a}}},51049:function(e,t,n){"use strict";n.r(t),n.d(t,{useSignMessage:function(){return l}});var r=n(10461),i=n(83980),o=n(56366),a=n(33235);async function s(e,t){let n;let{account:r,connector:s,...u}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,a.e)(e,{account:r,connector:s}),(0,o.s)(n,i.l,"signMessage")({...u,...r?{account:r}:{}})}var u=n(81494);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,u.useConfig)(t),{mutationFn:t=>s(e,t),mutationKey:["signMessage"]}),{mutate:o,mutateAsync:a,...l}=(0,r.useMutation)({...n,...i});return{...l,signMessage:o,signMessageAsync:a}}},63530:function(e,t,n){"use strict";n.r(t),n.d(t,{useSignTypedData:function(){return l}});var r=n(10461),i=n(78906),o=n(56366),a=n(33235);async function s(e,t){let n;let{account:r,connector:s,...u}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,a.e)(e,{account:r,connector:s}),(0,o.s)(n,i.x,"signTypedData")({...u,...r?{account:r}:{}})}var u=n(81494);function l(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,u.useConfig)(t),{mutationFn:t=>s(e,t),mutationKey:["signTypedData"]}),{mutate:o,mutateAsync:a,...l}=(0,r.useMutation)({...n,...i});return{...l,signTypedData:o,signTypedDataAsync:a}}},35857:function(e,t,n){"use strict";n.r(t),n.d(t,{useSimulateContract:function(){return l}});var r=n(87789),i=n(60560),o=n(64524),a=n(16251),s=n(81494),u=n(8403);function l(){var e,t,n;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:c,address:d,connector:f,functionName:h,query:p={}}=l,m=(0,s.useConfig)(l),{data:y}=(0,u.useConnectorClient)({connector:f,query:{enabled:void 0===l.account}}),g=(0,a.useChainId)({config:m}),w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(n){let{queryKey:i}=n,{abi:o,connector:a}=t;if(!o)throw Error("abi is required");let{scopeKey:s,...u}=i[1],{address:l,functionName:c}=u;if(!l)throw Error("address is required");if(!c)throw Error("functionName is required");return(0,r.a)(e,{abi:o,connector:a,...u})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{abi:t,connector:n,...r}=e;return["simulateContract",(0,i.OP)(r)]}(t)}}(m,{...l,account:null!==(e=l.account)&&void 0!==e?e:null==y?void 0:y.account,chainId:null!==(t=l.chainId)&&void 0!==t?t:g}),b=!!(c&&d&&h&&(null===(n=p.enabled)||void 0===n||n));return(0,o.aM)({...p,...w,enabled:b})}},59763:function(e,t,n){"use strict";n.r(t),n.d(t,{useStorageAt:function(){return c}});var r=n(19647),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.Y,"getStorageAt")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,slot:i,query:c={}}=n,d=(0,l.useConfig)(n),f=(0,u.useChainId)({config:d}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{queryFn(t){let{queryKey:n}=t,{address:r,slot:i,scopeKey:a,...s}=n[1];if(!r||!i)throw Error("address and slot are required");return o(e,{...s,address:r,slot:i})},queryKey:["getStorageAt",(0,a.OP)(t)]}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(r&&i&&(null===(t=c.enabled)||void 0===t||t));return(0,s.aM)({...c,...h,enabled:p})}},8896:function(e,t,n){"use strict";n.r(t),n.d(t,{useSwitchAccount:function(){return u}});var r=n(10461),i=n(43806);async function o(e,t){var n;
37let{connector:r}=t,o=e.state.connections.get(r.uid);if(!o)throw new i.aH;return await (null===(n=e.storage)||void 0===n?void 0:n.setItem("recentConnectorId",r.id)),e.setState(e=>({...e,current:r.uid})),{accounts:o.accounts,chainId:o.chainId}}var a=n(81494),s=n(59106);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,a.useConfig)(e),{mutate:i,mutateAsync:u,...l}=(0,r.useMutation)({...t,mutationFn:e=>o(n,e),mutationKey:["switchAccount"]});return{...l,connectors:(0,s.useConnections)({config:n}).map(e=>e.connector),switchAccount:i,switchAccountAsync:u}}},66261:function(e,t,n){"use strict";n.r(t),n.d(t,{useSwitchChain:function(){return l}});var r=n(10461),i=n(43806),o=n(96678);async function a(e,t){var n,r;let{addEthereumChainParameter:a,chainId:s}=t,u=e.state.connections.get(null!==(r=null===(n=t.connector)||void 0===n?void 0:n.uid)&&void 0!==r?r:e.state.current);if(u){let e=u.connector;if(!e.switchChain)throw new o.O({connector:e});return await e.switchChain({addEthereumChainParameter:a,chainId:s})}let l=e.chains.find(e=>e.id===s);if(!l)throw new i.X4;return e.setState(e=>({...e,chainId:s})),l}var s=n(71598),u=n(81494);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,u.useConfig)(e),{mutate:i,mutateAsync:o,...l}=(0,r.useMutation)({...t,mutationFn:e=>a(n,e),mutationKey:["switchChain"]});return{...l,chains:(0,s.useChains)({config:n}),switchChain:i,switchChainAsync:o}}},72427:function(e,t,n){"use strict";n.r(t),n.d(t,{useToken:function(){return p}});var r=n(54261),i=n(92140),o=n(24844),a=n(82866),s=n(38055),u=n(19996);async function l(e,t){let{address:n,chainId:l,formatUnits:c=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"),o={address:n,abi:t,chainId:l},[a,f,h,p]=await (0,u.J)(e,{allowFailure:!0,contracts:[{...o,functionName:"decimals"},{...o,functionName:"name"},{...o,functionName:"symbol"},{...o,functionName:"totalSupply"}]});if(f.error instanceof r.uq)throw f.error;if(h.error instanceof r.uq)throw h.error;if(a.error)throw a.error;if(p.error)throw p.error;return{address:n,decimals:a.result,name:f.result,symbol:h.result,totalSupply:{formatted:(0,i.b)(p.result,(0,s.W)(c)),value:p.result}}}catch(t){if(t instanceof r.uq){let t={address:n,abi:d("bytes32"),chainId:l},[r,f,h,p]=await (0,u.J)(e,{allowFailure:!1,contracts:[{...t,functionName:"decimals"},{...t,functionName:"name"},{...t,functionName:"symbol"},{...t,functionName:"totalSupply"}]});return{address:n,decimals:r,name:(0,o.rR)((0,a.f)(f,{dir:"right"})),symbol:(0,o.rR)((0,a.f)(h,{dir:"right"})),totalSupply:{formatted:(0,i.b)(p,(0,s.W)(c)),value:p}}}throw t}}var c=n(60560),d=n(64524),f=n(16251),h=n(81494);function p(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,o=(0,h.useConfig)(n),a=(0,f.useChainId)({config:o}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,scopeKey:i,...o}=n[1];if(!r)throw Error("address is required");return l(e,{...o,address:r})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["token",(0,c.OP)(e)]}(t)}}(o,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:a}),u=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,d.aM)({...i,...s,enabled:u})}},25611:function(e,t,n){"use strict";n.r(t),n.d(t,{useTransaction:function(){return l}});var r=n(33683),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{blockHash:l,blockNumber:c,blockTag:d,hash:f,query:h={}}=n,p=(0,u.useConfig)(n),m=(0,s.useChainId)({config:p}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{blockHash:o,blockNumber:a,blockTag:s,hash:u,index:l}=n[1];if(!o&&!a&&!s&&!u)throw Error("blockHash, blockNumber, blockTag, or hash is required");if(!u&&!l)throw Error("index is required for blockHash, blockNumber, or blockTag");let{scopeKey:c,...d}=n[1];return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.f,"getTransaction")(o)}(e,d)},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["transaction",(0,o.OP)(e)]}(t)}}(p,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:m}),g=!!(!(l&&c&&d&&f)&&(null===(t=h.enabled)||void 0===t||t));return(0,a.aM)({...h,...y,enabled:g})}},62908:function(e,t,n){"use strict";n.r(t),n.d(t,{useTransactionConfirmations:function(){return l}});var r=n(78604),i=n(56366),o=n(60560),a=n(64524),s=n(16251),u=n(81494);function l(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:l,transactionReceipt:c,query:d={}}=n,f=(0,u.useConfig)(n),h=(0,s.useChainId)({config:f}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{hash:o,transactionReceipt:a,scopeKey:s,...u}=n[1];if(!o&&!a)throw Error("hash or transactionReceipt is required");let l=await function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.a,"getTransactionConfirmations")(o)}(e,{hash:o,transactionReceipt:a,...u});return null!=l?l:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["transactionConfirmations",(0,o.OP)(e)]}(t)}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),m=!!(!(l&&c)&&(l||c)&&(null===(t=d.enabled)||void 0===t||t));return(0,a.aM)({...d,...p,enabled:m})}},83990:function(e,t,n){"use strict";n.r(t),n.d(t,{useTransactionCount:function(){return c}});var r=n(67197),i=n(56366);async function o(e,t){let{address:n,blockNumber:o,blockTag:a,chainId:s}=t,u=e.getClient({chainId:s});return(0,i.s)(u,r.K,"getTransactionCount")(o?{address:n,blockNumber:o}:{address:n,blockTag:a})}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,c=(0,l.useConfig)(n),d=(0,u.useChainId)({config:c}
37),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,scopeKey:i,...a}=n[1];if(!r)throw Error("address is required");let s=await o(e,{...a,address:r});return null!=s?s:null},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["transactionCount",(0,a.OP)(e)]}(t)}}(c,{...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})}},5371:function(e,t,n){"use strict";n.r(t),n.d(t,{useTransactionReceipt:function(){return c}});var r=n(8870),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.a,"getTransactionReceipt")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:r,query:i={}}=n,c=(0,l.useConfig)(n),d=(0,u.useChainId)({config:c}),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{queryFn(t){let{queryKey:n}=t,{hash:r,scopeKey:i,...a}=n[1];if(!r)throw Error("hash is required");return o(e,{...a,hash:r})},queryKey:["getTransactionReceipt",(0,a.OP)(t)]}}(c,{...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})}},37637:function(e,t,n){"use strict";n.r(t),n.d(t,{useVerifyMessage:function(){return c}});var r=n(95251),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.n,"verifyMessage")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,message:i,signature:c,query:d={}}=n,f=(0,l.useConfig)(n),h=(0,u.useChainId)({config:f}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,message:i,signature:a}=n[1];if(!r||!i||!a)throw Error("address, message, and signature are required");let{scopeKey:s,...u}=n[1],l=await o(e,u);return null!=l?l:null},queryKey:["verifyMessage",(0,a.OP)(t)]}}(f,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:h}),m=!!(r&&i&&c&&(null===(t=d.enabled)||void 0===t||t));return(0,s.aM)({...d,...p,enabled:m})}},38719:function(e,t,n){"use strict";n.r(t),n.d(t,{useVerifyTypedData:function(){return c}});var r=n(11198),i=n(56366);async function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.B,"verifyTypedData")(o)}var a=n(60560),s=n(64524),u=n(16251),l=n(81494);function c(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,message:i,primaryType:c,signature:d,types:f,query:h={}}=n,p=(0,l.useConfig)(n),m=(0,u.useChainId)({config:p}),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(t){let{queryKey:n}=t,{address:r,message:i,primaryType:a,signature:s,types:u,scopeKey:l,...c}=n[1];if(!r)throw Error("address is required");if(!i)throw Error("message is required");if(!a)throw Error("primaryType is required");if(!s)throw Error("signature is required");if(!u)throw Error("types is required");let d=await o(e,{...c,address:r,message:i,primaryType:a,signature:s,types:u});return null!=d?d:null},queryKey:["verifyTypedData",(0,a.OP)(t)]}}(p,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:m}),g=!!(r&&i&&c&&d&&f&&(null===(t=h.enabled)||void 0===t||t));return(0,s.aM)({...h,...y,enabled:g})}},35651:function(e,t,n){"use strict";n.r(t),n.d(t,{useWaitForTransactionReceipt:function(){return h}});var r=n(24844),i=n(80454),o=n(33683),a=n(74201),s=n(56366);async function u(e,t){let{chainId:n,timeout:u=0,...l}=t,c=e.getClient({chainId:n}),d=(0,s.s)(c,i.e,"waitForTransactionReceipt"),f=await d({...l,timeout:u});if("reverted"===f.status){let e=(0,s.s)(c,o.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(c,a.R,"call"),i=await n({...t,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((null==i?void 0:i.data)?(0,r.rR)("0x".concat(i.data.substring(138))):"unknown reason")}return{...f,chainId:c.chain.id}}var l=n(60560),c=n(64524),d=n(16251),f=n(81494);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{hash:r,query:i={}}=n,o=(0,f.useConfig)(n),a=(0,d.useChainId)({config:o}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async queryFn(n){let{queryKey:r}=n,{hash:i,...o}=r[1];if(!i)throw Error("hash is required");return u(e,{...o,onReplaced:t.onReplaced,hash:i})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onReplaced:t,...n}=e;return["waitForTransactionReceipt",(0,l.OP)(n)]}(t)}}(o,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:a}),h=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,c.aM)({...i,...s,enabled:h})}},24340:function(e,t,n){"use strict";n.r(t),n.d(t,{useWalletClient:function(){return M}});var r=n(79823),i=n(67304),o=n(30951);async function a(e,t){let{chain:n}=t,{id:r,name:i,nativeCurrency:a,rpcUrls:s,blockExplorers:u}=n;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,o.eC)(r),chainName:i,nativeCurrency:a,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(e=>{let{url:t}=e;return t}):void 0}]},{retryCount:0})}var s=n(79725),u=n(86924),l=n(65586);async function c(e){var t;return(null===(t=e.account)||void 0===t?void 0:t.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"})).map(e=>(0,l.x)(e))}async function d(e){return await e.request({method:"wallet_getPermissions"})}var f=n(89705);async function h(e){return(await e.request({method:"eth_requestAccounts"},{retryCount:0})).map(e=>(0,l.K)(e))}async function p(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var m=n(85334),y=n(83980),g=n(81182),w=n(8773),b=n(30481),P=n(42431),E=n(66387),_=n(29891);async function C(e,t){var n,r,a,s;let{account:u=e.account,chain:l=e.chain,...c}=t;if(!u)throw new w.o({docsPath:"/docs/actions/wallet/signTransaction"});let d=(0,g.T)(u);(0,_.F)({account:d,...t});let f=await (0,E.s)(e,i.L,"getChainId")({});null!==l&&(0,b.q)({currentChainId:f,chain:l});let h=(null==l?void 0:l.formatters)||(null===(n=e.chain)||void 0===n?void 0:n.formatters),p=(null==h?void 0:null===(r=h.transactionRequest)||void 0===r?void 0:r.format)||P.tG;return"local"===d.type?d.signTransaction({...c,chainId:f}
37,{serializer:null===(s=e.chain)||void 0===s?void 0:null===(a=s.serializers)||void 0===a?void 0:a.transaction}):await e.request({method:"eth_signTransaction",params:[{...p(c),chainId:(0,o.eC)(f),from:d.address}]},{retryCount:0})}var I=n(78906);async function x(e,t){let{id:n}=t;await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(n)}]},{retryCount:0})}async function S(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}var O=n(17298);function T(e){return{addChain:t=>a(e,t),deployContract:t=>(function(e,t){let{abi:n,args:r,bytecode:i,...o}=t,a=(0,s.w)({abi:n,args:r,bytecode:i});return(0,u.T)(e,{...o,data:a})})(e,t),getAddresses:()=>c(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>d(e),prepareTransactionRequest:t=>(0,f.Z)(e,t),requestAddresses:()=>h(e),requestPermissions:t=>p(e,t),sendRawTransaction:t=>(0,m.p)(e,t),sendTransaction:t=>(0,u.T)(e,t),signMessage:t=>(0,y.l)(e,t),signTransaction:t=>C(e,t),signTypedData:t=>(0,I.x)(e,t),switchChain:t=>x(e,t),watchAsset:t=>S(e,t),writeContract:t=>(0,O.n)(e,t)}}var R=n(33235);async function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=await (0,R.e)(e,t);return n.extend(T),n.extend(T)}var B=n(60560),N=n(7653),k=n(64524),j=n(1872),q=n(16251),F=n(81494);function M(){var e,t,n;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:o={},...a}=i,s=(0,F.useConfig)(a),u=(0,r.useQueryClient)(),{address:l,connector:c,status:d}=(0,j.useAccount)({config:s}),f=(0,q.useChainId)({config:s}),{queryKey:h,...p}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{gcTime:0,async queryFn(n){let{queryKey:r}=n,{connector:i}=t,{connectorUid:o,scopeKey:a,...s}=r[1];return A(e,{...s,connector:i})},queryKey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{connector:t,...n}=e;return["walletClient",{...(0,B.OP)(n),connectorUid:null==t?void 0:t.uid}]}(t)}}(s,{...i,chainId:null!==(e=i.chainId)&&void 0!==e?e:f,connector:null!==(t=i.connector)&&void 0!==t?t:c}),m=!!("disconnected"!==d&&(null===(n=o.enabled)||void 0===n||n)),y=(0,N.useRef)(l);return(0,N.useEffect)(()=>{let e=y.current;!l&&e?(u.removeQueries({queryKey:h}),y.current=void 0):l!==e&&(u.invalidateQueries({queryKey:h}),y.current=l)},[l,u]),(0,k.aM)({...o,...p,queryKey:h,enabled:m,staleTime:Number.POSITIVE_INFINITY})}},45455:function(e,t,n){"use strict";n.r(t),n.d(t,{useWatchBlockNumber:function(){return u}});var r=n(4947),i=n(56366),o=n(7653),a=n(16251),s=n(81494);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:u,config:l,...c}=t,d=(0,s.useConfig)(t),f=(0,a.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,o.useEffect)(()=>{if(n&&u)return function(e,t){let n,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,u=t=>{n&&n();let o=e.getClient({chainId:t});return n=(0,i.s)(o,r.q,"watchBlockNumber")(s)},l=u(t.chainId);return a&&!t.chainId&&(o=e.subscribe(e=>{let{chainId:t}=e;return t},async e=>u(e))),()=>{null==l||l(),null==o||o()}}(d,{...c,chainId:h,onBlockNumber:u})},[h,d,n,u,c.onError,c.emitMissed,c.emitOnBegin,c.poll,c.pollingInterval,c.syncConnectedChain])}},2573:function(e,t,n){"use strict";n.r(t),n.d(t,{useWatchBlocks:function(){return u}});var r=n(32427),i=n(56366),o=n(7653),a=n(16251),s=n(81494);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:u,config:l,...c}=t,d=(0,s.useConfig)(t),f=(0,a.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,o.useEffect)(()=>{if(n&&u)return function(e,t){let n,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,u=t=>{n&&n();let o=e.getClient({chainId:t});return n=(0,i.s)(o,r.p,"watchBlocks")(s)},l=u(t.chainId);return a&&!t.chainId&&(o=e.subscribe(e=>{let{chainId:t}=e;return t},async e=>u(e))),()=>{null==l||l(),null==o||o()}}(d,{...c,chainId:h,onBlock:u})},[h,d,n,u,c.blockTag,c.emitMissed,c.emitOnBegin,c.includeTransactions,c.onError,c.poll,c.pollingInterval,c.syncConnectedChain])}},9:function(e,t,n){"use strict";n.r(t),n.d(t,{useWatchContractEvent:function(){return u}});var r=n(90122),i=n(56366),o=n(7653),a=n(16251),s=n(81494);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onLogs:u,config:l,...c}=t,d=(0,s.useConfig)(t),f=(0,a.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,o.useEffect)(()=>
37{if(n&&u)return function(e,t){let n,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,u=t=>{n&&n();let o=e.getClient({chainId:t});return n=(0,i.s)(o,r.Y,"watchContractEvent")(s)},l=u(t.chainId);return a&&!t.chainId&&(o=e.subscribe(e=>{let{chainId:t}=e;return t},async e=>u(e))),()=>{null==l||l(),null==o||o()}}(d,{...c,chainId:h,onLogs:u})},[h,d,n,u,c.abi,c.address,c.args,c.batch,c.eventName,c.fromBlock,c.onError,c.poll,c.pollingInterval,c.strict,c.syncConnectedChain])}},21833:function(e,t,n){"use strict";n.r(t),n.d(t,{useWatchPendingTransactions:function(){return u}});var r=n(61161),i=n(56366),o=n(7653),a=n(16251),s=n(81494);function u(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onTransactions:u,config:l,...c}=t,d=(0,s.useConfig)(t),f=(0,a.useChainId)({config:d}),h=null!==(e=t.chainId)&&void 0!==e?e:f;(0,o.useEffect)(()=>{if(n&&u)return function(e,t){let n,o;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,u=t=>{n&&n();let o=e.getClient({chainId:t});return n=(0,i.s)(o,r.O,"watchPendingTransactions")(s)},l=u(t.chainId);return a&&!t.chainId&&(o=e.subscribe(e=>{let{chainId:t}=e;return t},async e=>u(e))),()=>{null==l||l(),null==o||o()}}(d,{...c,chainId:h,onTransactions:u})},[h,d,n,u,c.batch,c.onError,c.poll,c.pollingInterval,c.syncConnectedChain])}},65225:function(e,t,n){"use strict";n.r(t),n.d(t,{useWriteContract:function(){return d}});var r=n(10461),i=n(17298),o=n(56366),a=n(92679),s=n(33235),u=n(87789);async function l(e,t){let n,r;let{account:l,chainId:c,connector:d,__mode:f,...h}=t;n="object"==typeof l&&"local"===l.type?e.getClient({chainId:c}):await (0,s.e)(e,{account:l,chainId:c,connector:d});let{connector:p}=(0,a.D)(e);if("prepared"===f||(null==p?void 0:p.supportsSimulation))r=h;else{let{request:t}=await (0,u.a)(e,{...h,account:l,chainId:c});r=t}let m=(0,o.s)(n,i.n,"writeContract");return await m({...r,...l?{account:l}:{},chain:c?{id:c}:null})}var c=n(81494);function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,c.useConfig)(t),{mutationFn:t=>l(e,t),mutationKey:["writeContract"]}),{mutate:o,mutateAsync:a,...s}=(0,r.useMutation)({...n,...i});return{...s,writeContract:o,writeContractAsync:a}}}}]);

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.