PageSourceSearch

https://hedgex.io/_next/static/chunks/pages/_app-7bf5822907faf452.js

js hedgex.io collected 2026-10-07 16:47:32 UTC 677,586 bytes, 216 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{845:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(1855),i=r(58547);async function a(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.uL)(r)}},1162:(e,t,r)=>{"use strict";r.d(t,{UG:()=>s,xo:()=>i,zz:()=>a});var n=r(94817);class i extends n.C{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class a extends n.C{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class s extends n.C{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},1379:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(74517),i=r(58798),a=r(38047),s=r(81645);function o(e,t){return(0,n.S)(function(e){let t="string"==typeof e?(0,s.i3)(e):"string"==typeof e.raw?e.raw:(0,s.My)(e.raw),r=(0,s.i3)(`\x19Ethereum Signed Message:
2${(0,a.E)(t)}`);return(0,i.xW)([r,t])}(e),t)}},1647:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{default:()=>tb,metadata:()=>ty});var i=r(37876),a=r(39858),s=r(37149),o=r(58444),l=r(60388),u=r(90089),c=class extends u.Q{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let n=t.queryKey,i=t.queryHash??(0,s.F$)(n,t),a=this.get(i);return a||(a=new o.X({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){l.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,s.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,s.MK)(e,t)):t}notify(e){l.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){l.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){l.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},d=r(21407),f=class extends u.Q{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#n=0}#t;#r;#n;build(e,t,r){let n=new d.s({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);let t=h(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=h(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=h(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=h(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){l.jG.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,s.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,s.nJ)(e,t))}notify(e){l.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return l.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(s.lQ))))}};function h(e){return e.options.scope?.id}var p=r(98275),m=r(18070);function y(e){return{onFetch:(t,r)=>{let n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let r=!1,c=(0,s.ZM)(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),o=await c(a),{maxPages:l}=t.options,u=i?s.ZZ:s.y9;return{pages:u(e.pages,o,l),pageParams:u(e.pageParams,n,l)}};if(i&&a.length){let e="backward"===i,t={pages:a,pageParams:o},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:b)(n,t);l=await d(t,r,e)}else{let t=e??a.length;do{let e=0===u?o[0]??n.initialPageParam:b(n,l);if(u>0&&null==e)break;l=await d(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function b(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var g=class{#i;#a;#s;#o;#l;#u;#c;#d;constructor(e={}){this.#i=e.queryCache||new c,this.#a=e.mutationCache||new f,this.#s=e.defaultOptions||{},this.#o=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=p.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#d=m.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#i.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#i.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,s.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#i.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#i.get(n.queryHash),a=i?.state.data,o=(0,s.Zw)(t,a);if(void 0!==o)return this.#i.build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return l.jG.batch(()=>this.#i.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state}removeQueries(e){let t=this.#i;l.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#i;return l.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(l.jG.batch(()=>this.#i.findAll(e).map(e=>e.cancel(r)))).then(s.lQ).catch(s.lQ)}invalidateQueries(e,t={}){return l.jG.batch(()=>(this.#i.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(l.jG.batch(()=>this.#i.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(s.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}
2))).then(s.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#i.build(this,t);return r.isStaleByTime((0,s.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s.lQ).catch(s.lQ)}fetchInfiniteQuery(e){return e.behavior=y(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s.lQ).catch(s.lQ)}ensureInfiniteQueryData(e){return e.behavior=y(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.t.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#a}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#o.set((0,s.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(t=>{(0,s.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#l.set((0,s.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],r={};return t.forEach(t=>{(0,s.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,s.F$)(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"),t.queryFn===s.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#i.clear(),this.#a.clear()}},v=r(67768),w=r(31777),E=r(83469);let P=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>P(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>P(t)(e)}}},T=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e))},s=t=e(n,i,a);return a},C=e=>e?T(e):T;var A=r(32544),S=r(18912),_=r(94254),O=r(44439),k=r(81645),I=r(16167),M=r(12932);function j(e={}){let t,r,n,i,{shimDisconnect:a=!0,unstable_shimAsyncInject:s}=e;function o(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...R[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return l=>({get icon(){return o().icon},get id(){return o().id},get name(){return o().name},get supportsSimulation(){return!0},type:j.type,async setup(){let r=await this.getProvider();r?.on&&e.target&&(n||(n=this.onConnect.bind(this),r.on("connect",n)),t||(t=this.onAccountsChanged.bind(this),r.on("accountsChanged",t)))},async connect({chainId:s,isReconnecting:o}={}){let u=await this.getProvider();if(!u)throw new M.N;let c=[];if(o)c=await this.getAccounts().catch(()=>[]);else if(a)try{let e=await u.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>(0,A.b)(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===S.vx.code)throw new S.vx(e);if(e.code===S.qZ.code)throw e}try{c?.length||o||(c=(await u.request({method:"eth_requestAccounts"})).map(e=>(0,A.b)(e))),n&&(u.removeListener("connect",n),n=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),u.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),u.on("disconnect",i));let d=await this.getChainId();if(s&&d!==s){let e=await this.switchChain({chainId:s}).catch(e=>{if(e.code===S.vx.code)throw e;return{id:d}});d=e?.id??d}return a&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem("injected.connected",!0),{accounts:c,chainId:d}}catch(e){if(e.code===S.vx.code)throw new S.vx(e);if(e.code===S.qZ.code)throw new S.qZ(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new M.N;r&&(t.removeListener("chainChanged",r),r=void 0),i&&(t.removeListener("disconnect",i),i=void 0),n||(n=this.onConnect.bind(this),t.on("connect",n));try{await (0,_.w)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}a&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new M.N;return(await e.request({method:"eth_accounts"})).map(e=>(0,A.b)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new M.N;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=o();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?B(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
2,async isAuthorized(){try{if(a&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==s&&!1!==s){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof s?s:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(r=>setTimeout(()=>r(e()),t))]))return!0}throw new M.N}return!!(await (0,O.b)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new M.N;let n=l.chains.find(e=>e.id===t);if(!n)throw new S.ch(new I.nk);let i=new Promise(e=>{let r=n=>{"chainId"in n&&n.chainId===t&&(l.emitter.off("change",r),e())};l.emitter.on("change",r)});try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.cK)(t)}]}).then(async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})}),i]),n}catch(a){if(4902===a.code||a?.data?.originalError?.code===4902)try{let a,s,{default:o,...u}=n.blockExplorers??{};e?.blockExplorerUrls?a=e.blockExplorerUrls:o&&(a=[o.url,...Object.values(u).map(e=>e.url)]),s=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let c={blockExplorerUrls:a,chainId:(0,k.cK)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:s};return await Promise.all([r.request({method:"wallet_addEthereumChain",params:[c]}).then(async()=>{if(await this.getChainId()===t)l.emitter.emit("change",{chainId:t});else throw new S.vx(Error("User rejected switch after adding network."))}),i]),n}catch(e){throw new S.vx(e)}if(a.code===S.vx.code)throw new S.vx(a);throw new S.ch(a)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),a&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit("change",{accounts:e.map(e=>(0,A.b)(e))})},onChainChanged(e){let t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){let a=await this.getAccounts();if(0===a.length)return;let s=Number(e.chainId);l.emitter.emit("connect",{accounts:a,chainId:s});let o=await this.getProvider();o&&(n&&(o.removeListener("connect",n),n=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),o.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),o.on("disconnect",i)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(r&&(t.removeListener("chainChanged",r),r=void 0),i&&(t.removeListener("disconnect",i),i=void 0),n||(n=this.onConnect.bind(this),t.on("connect",n))))}})}j.type="injected";let R={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:B(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>B(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:B(e,"isPhantom")}};function B(e,t){function r(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let n=e.ethereum;return n?.providers?n.providers.find(e=>r(e)):n&&r(n)?n:void 0}var N=r(13799);class D{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 N.b})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let r=t[0];this._emitter.emit(e,{uid:this.uid,...r})}listenerCount(e){return this._emitter.listenerCount(e)}}function $(e,t){return JSON.parse(e,(e,r)=>{let n=r;return n?.__type==="bigint"&&(n=BigInt(n.value)),n?.__type==="Map"&&(n=new Map(n.value)),t?.(e,n)??n})}function F(e,t){return e.slice(0,t).join(".")||"."}function L(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function q(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,i=[],a=[];return function(s,o){if("object"==typeof o)if(i.length){let e=L(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=s;let r=L(i,o);if(0!==r)return n?t.call(this,s,o,F(a,r)):`[ref=${F(a,r)}]`}else i[0]=o,a[0]=s;return r?e.call(this,s,o):o}}((e,r)=>{let n=r;return"bigint"==typeof n&&(n={__type:"bigint",value:r.toString()}),n instanceof Map&&(n={__type:"Map",value:Array.from(r.entries())}),t?.(e,n)??n},n),r??void 0)}let U={getItem:()=>null,setItem:()=>{},removeItem:()=>{}},z=256;var V=r(82421),G=r(67147),H=r(16006),K=r(37744),W=r(93505),Q=r(58547);let Z={block:(0,K.R)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=(0,W.uP)(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,H.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,W.gU)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,H.uU)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,Q.WB)({format:e=>({l1GasPrice:e.l1GasPrice?(0,H.uU)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,H.uU)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,H.uU)(e.l1Fee):null,l1FeeScalar:e.l
21FeeScalar?Number(e.l1FeeScalar):null})})};var Y=r(45755),X=r(57512),J=r(58798),ee=r(83894),et=r(1855),er=r(8922),en=r(39151),ei=r(9061),ea=r(20289),es=r(49154),eo=r(90153),el=r(50136),eu=r(76200),ec=r(32942),ed=r(33450),ef=r(98877),eh=r(38047),ep=r(66320);function em(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new ed.qD({chainId:t});if(i&&!(0,X.P)(i))throw new Y.M({address:i});if(n&&n>el.Ao)throw new ef.BG({maxFeePerGas:n});if(r&&n&&r>n)throw new ef.lN({maxFeePerGas:n,maxPriorityFeePerGas:r})}var ey=r(13800);function eb(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:n,storageKeys:i}=e[r];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new et.fZ({storageKey:i[e]});if(!(0,X.P)(n,{strict:!1}))throw new Y.M({address:n});t.push([n,i])}return t}function eg(e,t){let r=t??e,{v:n,yParity:i}=r;if(void 0===r.r||void 0===r.s||void 0===n&&void 0===i)return[];let a=(0,es.B)(r.r),s=(0,es.B)(r.s);return["number"==typeof i?i?(0,k.cK)(1):"0x":0n===n?"0x":1n===n?(0,k.cK)(1):27n===n?"0x":(0,k.cK)(1),"0x00"===a?"0x":a,"0x00"===s?"0x":s]}let ev={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:Z,serializers:{transaction:function(e,t){var r;if("deposit"===(r=e).type||void 0!==r.sourceHash){var n=e,i=n;let{from:t,to:r}=i;if(t&&!(0,X.P)(t))throw new Y.M({address:t});if(r&&!(0,X.P)(r))throw new Y.M({address:r});let{sourceHash:a,data:s,from:o,gas:l,isSystemTx:u,mint:c,to:d,value:f}=n,h=[a,o,d??"0x",c?(0,k.nj)(c):"0x",f?(0,k.nj)(f):"0x",l?(0,k.nj)(l):"0x",u?"0x1":"0x",s??"0x"];return(0,J.aP)(["0x7e",(0,ee.EQ)(h)])}let a=(0,ey.L)(e);return"eip1559"===a?function(e,t){let{chainId:r,gas:n,nonce:i,to:a,value:s,maxFeePerGas:o,maxPriorityFeePerGas:l,accessList:u,data:c}=e;em(e);let d=eb(u),f=[(0,k.cK)(r),i?(0,k.cK)(i):"0x",l?(0,k.cK)(l):"0x",o?(0,k.cK)(o):"0x",n?(0,k.cK)(n):"0x",a??"0x",s?(0,k.cK)(s):"0x",c??"0x",d,...eg(e,t)];return(0,J.aP)(["0x02",(0,ee.EQ)(f)])}(e,t):"eip2930"===a?function(e,t){let{chainId:r,gas:n,data:i,nonce:a,to:s,value:o,accessList:l,gasPrice:u}=e,{chainId:c,maxPriorityFeePerGas:d,gasPrice:f,maxFeePerGas:h,to:p}=e;if(c<=0)throw new ed.qD({chainId:c});if(p&&!(0,X.P)(p))throw new Y.M({address:p});if(d||h)throw new eu.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(f&&f>el.Ao)throw new ef.BG({maxFeePerGas:f});let m=eb(l),y=[(0,k.cK)(r),a?(0,k.cK)(a):"0x",u?(0,k.cK)(u):"0x",n?(0,k.cK)(n):"0x",s??"0x",o?(0,k.cK)(o):"0x",i??"0x",m,...eg(e,t)];return(0,J.aP)(["0x01",(0,ee.EQ)(y)])}(e,t):"eip4844"===a?function(e,t){let{chainId:r,gas:n,nonce:i,to:a,value:s,maxFeePerBlobGas:o,maxFeePerGas:l,maxPriorityFeePerGas:u,accessList:c,data:d}=e,{blobVersionedHashes:f}=e;if(f){if(0===f.length)throw new ec.zF;for(let e of f){let t=(0,eh.E)(e),r=(0,H.ME)((0,ep.di)(e,0,1));if(32!==t)throw new ec.uP({hash:e,size:t});if(r!==eo.E)throw new ec.PK({hash:e,version:r})}}em(e);let h=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(void 0===h||void 0===p)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,k.My)(e)),r=e.kzg,n=(0,er.S)({blobs:t,kzg:r});if(void 0===h&&(h=(0,ei.d)({commitments:n})),void 0===p){let e=(0,en.t)({blobs:t,commitments:n,kzg:r});p=(0,ea.T)({blobs:t,commitments:n,proofs:e})}}let m=eb(c),y=[(0,k.cK)(r),i?(0,k.cK)(i):"0x",u?(0,k.cK)(u):"0x",l?(0,k.cK)(l):"0x",n?(0,k.cK)(n):"0x",a??"0x",s?(0,k.cK)(s):"0x",d??"0x",m,o?(0,k.cK)(o):"0x",h??[],...eg(e,t)],b=[],g=[],v=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:r,proof:n}=p[e];b.push(t),g.push(r),v.push(n)}return(0,J.aP)(["0x03",p?(0,ee.EQ)([y,b,g,v]):(0,ee.EQ)(y)])}(e,t):"eip7702"===a?function(e,t){let{authorizationList:r,chainId:n,gas:i,nonce:a,to:s,value:o,maxFeePerGas:l,maxPriorityFeePerGas:u,accessList:c,data:d}=e,{authorizationList:f}=e;if(f)for(let e of f){let{chainId:t}=e,r=e.address;if(!(0,X.P)(r))throw new Y.M({address:r});if(t<0)throw new ed.qD({chainId:t})}em(e);let h=eb(c),p=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e){let{chainId:e,nonce:n,...i}=r,a=r.address;t.push([e?(0,k.nj)(e):"0x",a,n?(0,k.nj)(n):"0x",...eg({},i)])}return t}(r);return(0,J.aP)(["0x04",(0,ee.EQ)([(0,k.cK)(n),a?(0,k.cK)(a):"0x",u?(0,k.cK)(u):"0x",l?(0,k.cK)(l):"0x",i?(0,k.cK)(i):"0x",s??"0x",o?(0,k.cK)(o):"0x",d??"0x",h,p,...eg(e,t)])])}(e,t):function(e,t){let{chainId:r=0,gas:n,data:i,nonce:a,to:s,value:o,gasPrice:l}=e,{chainId:u,maxPriorityFeePerGas:c,gasPrice:d,maxFeePerGas:f,to:h}=e;if(h&&!(0,X.P)(h))throw new Y.M({address:h});if(void 0!==u&&u<=0)throw new ed.qD({chainId:u});if(c||f)throw new eu.C("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(d&&d>el.Ao)throw new ef.BG({maxFeePerGas:d});let p=[a?(0,k.cK)(a):"0x",l?(0,k.cK)(l):"0x",n?(0,k.cK)(n):"0x",s??"0x",o?(0,k.cK)(o):"0x",i??"0x"];if(t){let e=(()=>
2{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new et.zW({v:t.v});return e})(),n=(0,es.B)(t.r),i=(0,es.B)(t.s);p=[...p,(0,k.cK)(e),"0x00"===n?"0x":n,"0x00"===i?"0x":i]}else r>0&&(p=[...p,(0,k.cK)(r),"0x","0x"]);return(0,ee.EQ)(p)}(e,t)}}},ew=(0,r(91929).x)({...ev,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...ev.contracts,disputeGameFactory:{1:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{1:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{1:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:0x10ac19f}},l1StandardBridge:{1:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:0x10ac19f}}},sourceId:1});function ex(e){let{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];let n=e.transports?.[t.id]?.({chain:t});return(n?.value?.transports||[n]).map(({value:e})=>e?.url||r)}function eE(e={}){let t,n,i,a,s,o,l,u;return c=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:eE.type,async setup(){let e=await this.getProvider();e?.on&&(o||(o=this.onConnect.bind(this),e.on("connect",o)),a||(a=this.onAccountsChanged.bind(this),e.on("accountsChanged",a)))},async connect({chainId:r,isReconnecting:n}={}){let i=await this.getProvider();l||(l=this.onDisplayUri,i.on("display_uri",l));let c=[];n&&(c=await this.getAccounts().catch(()=>[]));try{let n,d;c?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?n=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(d=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),c=await this.getAccounts()):c=(await t.connect()).map(e=>(0,A.b)(e)));let f=await this.getChainId();if(r&&f!==r){let e=await this.switchChain({chainId:r}).catch(e=>{if(e.code===S.vx.code)throw e;return{id:f}});f=e?.id??f}return l&&(i.removeListener("display_uri",l),l=void 0),n?i.emit("connectAndSign",{accounts:c,chainId:f,signResponse:n}):d&&i.emit("connectWith",{accounts:c,chainId:f,connectWithResponse:d}),o&&(i.removeListener("connect",o),o=void 0),a||(a=this.onAccountsChanged.bind(this),i.on("accountsChanged",a)),s||(s=this.onChainChanged.bind(this),i.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),i.on("disconnect",u)),{accounts:c,chainId:f}}catch(e){if(e.code===S.vx.code)throw new S.vx(e);if(e.code===S.qZ.code)throw new S.qZ(e);throw e}},async disconnect(){let e=await this.getProvider();s&&(e.removeListener("chainChanged",s),s=void 0),u&&(e.removeListener("disconnect",u),u=void 0),o||(o=this.onConnect.bind(this),e.on("connect",o)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,A.b)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){let n=await (async()=>{let{default:e}=await Promise.all([r.e(6769),r.e(7379)]).then(r.bind(r,2230));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})(),i={};for(let e of c.chains)i[(0,k.cK)(e.id)]=ex({chain:e,transports:c.transports})?.[0];t=new n({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:i,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:"wagmi",url:e.dappMetadata?.url?e.dappMetadata?.url:"undefined"!=typeof window?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});let a=await t.init(),s=a?.activeProvider?a.activeProvider:t.getProvider();if(!s)throw new M.N;return s}return n||(i||(i=a()),n=await i),n},async isAuthorized(){try{return!!(await (0,O.b)(()=>(0,_.w)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider(),n=c.chains.find(e=>e.id===t);if(!n)throw new S.ch(new I.nk);try{return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.cK)(t)}]}),await i(),await a(t),n}catch(s){if(s.code===S.vx.code)throw new S.vx(s);
2if(4902===s.code||s?.data?.originalError?.code===4902)try{return await r.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{let{default:t,...r}=n.blockExplorers??{};return e?.blockExplorerUrls?e.blockExplorerUrls:t?[t.url,...Object.values(r).map(e=>e.url)]:void 0})(),chainId:(0,k.cK)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""]}]}),await i(),await a(t),n}catch(e){if(e.code===S.vx.code)throw new S.vx(e);throw new S.ch(e)}throw new S.ch(s)}async function i(){await (0,O.b)(async()=>{let e=(0,H.ME)(await r.request({method:"eth_chainId"}));if(e!==t)throw Error("User rejected switch after adding network.");return e},{delay:50,retryCount:20})}async function a(e){await new Promise(t=>{let r=n=>{"chainId"in n&&n.chainId===e&&(c.emitter.off("change",r),t())};c.emitter.on("change",r),c.emitter.emit("change",{chainId:e})})}},async onAccountsChanged(e){if(0===e.length)if(!t.isExtensionActive())return;else this.onDisconnect();else if(c.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else c.emitter.emit("change",{accounts:e.map(e=>(0,A.b)(e))})},onChainChanged(e){let t=Number(e);c.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let r=Number(e.chainId);c.emitter.emit("connect",{accounts:t,chainId:r});let n=await this.getProvider();o&&(n.removeListener("connect",o),o=void 0),a||(a=this.onAccountsChanged.bind(this),n.on("accountsChanged",a)),s||(s=this.onChainChanged.bind(this),n.on("chainChanged",s)),u||(u=this.onDisconnect.bind(this),n.on("disconnect",u))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),s&&(t.removeListener("chainChanged",s),s=void 0),u&&(t.removeListener("disconnect",u),u=void 0),o||(o=this.onConnect.bind(this),t.on("connect",o)))},onDisplayUri(e){c.emitter.emit("message",{type:"display_uri",data:e})}})}function eP(e={}){var t,n;let i,a,s,o,l,u,c,d,f;return"3"===e.version||e.headlessMode?(t=e,e=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:eP.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),r=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,A.b)(e));s||(s=this.onAccountsChanged.bind(this),t.on("accountsChanged",s)),o||(o=this.onChainChanged.bind(this),t.on("chainChanged",o)),l||(l=this.onDisconnect.bind(this),t.on("disconnect",l));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===S.vx.code)throw e;return{id:n}});n=t?.id??n}return{accounts:r,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new S.vx(e);throw e}},async disconnect(){let e=await this.getProvider();s&&(e.removeListener("accountsChanged",s),s=void 0),o&&(e.removeListener("chainChanged",o),o=void 0),l&&(e.removeListener("disconnect",l),l=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,A.b)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
2,async getProvider(){if(!a){i=new(await (async()=>{let{default:e}=await Promise.all([r.e(2909),r.e(4443),r.e(9466)]).then(r.t.bind(r,94443,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...t,reloadOnDisconnect:!1});let n=i.walletExtension?.getChainId(),s=e.chains.find(e=>t.chainId?e.id===t.chainId:e.id===n)||e.chains[0],o=t.chainId||s?.id,l=t.jsonRpcUrl||s?.rpcUrls.default.http[0];a=i.makeWeb3Provider(l,o)}return a},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:r}){let n=e.chains.find(e=>e.id===r);if(!n)throw new S.ch(new I.nk);let i=await this.getProvider();try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.cK)(n.id)}]}),n}catch(e){if(4902===e.code)try{let e,a;e=t?.blockExplorerUrls?t.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],a=t?.rpcUrls?.length?t.rpcUrls:[n.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:e,chainId:(0,k.cK)(r),chainName:t?.chainName??n.name,iconUrls:t?.iconUrls,nativeCurrency:t?.nativeCurrency??n.nativeCurrency,rpcUrls:a};return await i.request({method:"wallet_addEthereumChain",params:[s]}),n}catch(e){throw new S.vx(e)}throw new S.ch(e)}},onAccountsChanged(t){0===t.length?this.onDisconnect():e.emitter.emit("change",{accounts:t.map(e=>(0,A.b)(e))})},onChainChanged(t){let r=Number(t);e.emitter.emit("change",{chainId:r})},async onDisconnect(t){e.emitter.emit("disconnect");let r=await this.getProvider();s&&(r.removeListener("accountsChanged",s),s=void 0),o&&(r.removeListener("chainChanged",o),o=void 0),l&&(r.removeListener("disconnect",l),l=void 0)}})):(n=e,e=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:eP.type,async connect({chainId:e,...t}={}){try{let r=await this.getProvider(),n=(await r.request({method:"eth_requestAccounts",params:"instantOnboarding"in t&&t.instantOnboarding?[{onboarding:"instant"}]:[]})).map(e=>(0,A.b)(e));c||(c=this.onAccountsChanged.bind(this),r.on("accountsChanged",c)),d||(d=this.onChainChanged.bind(this),r.on("chainChanged",d)),f||(f=this.onDisconnect.bind(this),r.on("disconnect",f));let i=await this.getChainId();if(e&&i!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===S.vx.code)throw e;return{id:i}});i=t?.id??i}return{accounts:n,chainId:i}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new S.vx(e);throw e}},async disconnect(){let e=await this.getProvider();c&&(e.removeListener("accountsChanged",c),c=void 0),d&&(e.removeListener("chainChanged",d),d=void 0),f&&(e.removeListener("disconnect",f),f=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,A.b)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
2,async getProvider(){if(!u){let t="string"==typeof n.preference?{options:n.preference}:{...n.preference,options:n.preference?.options??"all"},{createCoinbaseWalletSDK:i}=await Promise.all([r.e(2909),r.e(7181)]).then(r.bind(r,37181));u=i({...n,appChainIds:e.chains.map(e=>e.id),preference:t}).getProvider()}return u},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:r}){let n=e.chains.find(e=>e.id===r);if(!n)throw new S.ch(new I.nk);let i=await this.getProvider();try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.cK)(n.id)}]}),n}catch(e){if(4902===e.code)try{let e,a;e=t?.blockExplorerUrls?t.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],a=t?.rpcUrls?.length?t.rpcUrls:[n.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:e,chainId:(0,k.cK)(r),chainName:t?.chainName??n.name,iconUrls:t?.iconUrls,nativeCurrency:t?.nativeCurrency??n.nativeCurrency,rpcUrls:a};return await i.request({method:"wallet_addEthereumChain",params:[s]}),n}catch(e){throw new S.vx(e)}throw new S.ch(e)}},onAccountsChanged(t){0===t.length?this.onDisconnect():e.emitter.emit("change",{accounts:t.map(e=>(0,A.b)(e))})},onChainChanged(t){let r=Number(t);e.emitter.emit("change",{chainId:r})},async onDisconnect(t){e.emitter.emit("disconnect");let r=await this.getProvider();c&&(r.removeListener("accountsChanged",c),c=void 0),d&&(r.removeListener("chainChanged",d),d=void 0),f&&(r.removeListener("disconnect",f),f=void 0)}}))}function eT(e){let t,n,i,a,s,o,l,u,c=e.isNewChainsStale??!0;return d=>({id:"walletConnect",name:"WalletConnect",type:eT.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(s||(s=this.onConnect.bind(this),e.on("connect",s)),l||(l=this.onSessionDelete.bind(this),e.on("session_delete",l)))},async connect({chainId:e,...t}={}){try{let r=await this.getProvider();if(!r)throw new M.N;o||(o=this.onDisplayUri,r.on("display_uri",o));let n=e;if(!n){let e=await d.storage?.getItem("state")??{};n=d.chains.some(t=>t.id===e.chainId)?e.chainId:d.chains[0]?.id}if(!n)throw Error("No chains found on connector.");let c=await this.isChainsStale();if(r.session&&c&&await r.disconnect(),!r.session||c){let e=d.chains.filter(e=>e.id!==n).map(e=>e.id);await r.connect({optionalChains:[n,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(d.chains.map(e=>e.id))}let f=(await r.enable()).map(e=>(0,A.b)(e)),h=await this.getChainId();if(e&&h!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===S.vx.code&&e.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw e;return{id:h}});h=t?.id??h}return o&&(r.removeListener("display_uri",o),o=void 0),s&&(r.removeListener("connect",s),s=void 0),i||(i=this.onAccountsChanged.bind(this),r.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),r.on("chainChanged",a)),u||(u=this.onDisconnect.bind(this),r.on("disconnect",u)),l||(l=this.onSessionDelete.bind(this),r.on("session_delete",l)),{accounts:f,chainId:h}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new S.vx(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{a&&(e?.removeListener("chainChanged",a),a=void 0),u&&(e?.removeListener("disconnect",u),u=void 0),s||(s=this.onConnect.bind(this),e?.on("connect",s)),i&&(e?.removeListener("accountsChanged",i),i=void 0),l&&(e?.removeListener("session_delete",l),l=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,A.b)(e))},async getProvider(){async function i(){let t=d.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:n}=await Promise.all([r.e(2909),r.e(8523)]).then(r.bind(r,58523));return await n.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(d.chains.map(e=>{let[t]=ex({chain:e,transports:d.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(n||(n=i()),t=await n,t?.events.setMaxListeners(1/0)),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new M.N;let n=d.chains.find(e=>e.id===t);if(!n)throw new S.ch(new I.nk);try{await Promise.all([new Promise(e=>{let r=({chainId:n})=>{n===t&&(d.emitter.off("change",r),e())};d.emitter.on("change",r)}),r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,k.cK)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),n}catch(i){if(/(user rejected)/i.test(i.message))throw new S.vx(i);try{let i,a;i=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],a=e?.rpcUrls?.length?e.rpcUrls:[...n.rpcUrls.default.http];let s={blockExplorerUrls:i,chainId:(0,k.cK)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:a};await r.request({method:"wallet_addEthereumChain",params:[s]});let o=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...o,t]),n}catch(e){throw new S.vx(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():d.emitter.emit("change",{accounts:e.map(e=>(0,A.b)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),r=await this.getAccounts();d.emitter.emit("connect",{accounts:r,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),d.emitter.emit("disconnect");let t=await this.getProvider();i&&(t.removeListener("accountsChanged",i),i=void 0),a&&(t.removeListener("chainChanged",a),a=void 0),u&&(t.removeListener("disconnect",u),u=void 0),l&&(t.removeListener("session_delete",l),l=void 0),s||(s=this.onConnect.bind(this),t.on("connect",s))},onDisplayUri(e){d.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await d.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!c)return!1;let e=d.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let r=await this.getRequestedChainsIds();return!e.every(e=>r.includes(e))},async setRequestedChainsIds(e){await d.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}eE.type="metaMask",eP.type="coinbaseWallet",eT.type="walletConnect";var eC=r(85927);let{PROJECT_ID:eA}=eC.A,eS=function(e){let t,r,i,{multiInjectedProviderDiscovery:a=!0,storage:s=function(e){let{deserialize:t=$,key:r="wagmi",serialize:n=q,storage:i=U}=e;function a(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:r,async getItem(e,n){let s=i.getItem(`${r}.${e}`),o=await a(s);return o?t(o)??null:n??null},async setItem(e,t){let s=`${r}.${e}`;null===t?await a(i.removeItem(s)):await a(i.setItem(s,n(t)))},async removeItem(e){await a(i.removeItem(`${r}.${e}`))}}}({storage:function(){let e="undefined"!=typeof window&&window.localStorage?window.localStorage:U;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,r){try{e.setItem(t,r)}catch{}}}}()}),syncConnectedChain:o=!0,ssr:l=!1,...u}=e,c="undefined"!=typeof window&&a?function(){let e=new Set,t=[],r=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(r=>{t.some(({info:e})=>
2e.uuid===r.info.uuid)||(t=[...t,r],e.forEach(e=>e(t,{added:[r]})))}),n=r();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),n?.(),n=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}():void 0,d=C(()=>u.chains),f=C(()=>{let e=[],t=new Set;for(let r of u.connectors??[]){let n=h(r);if(e.push(n),!l&&n.rdns)for(let e of"string"==typeof n.rdns?[n.rdns]:n.rdns)t.add(e)}if(!l&&c)for(let r of c.getProviders())t.has(r.info.rdns)||e.push(h(p(r)));return e});function h(e){let t=new D(function(e=11){if(!n||z+e>512){n="",z=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(z,z+++e)}()),r={...e({emitter:t,chains:d.getState(),storage:s,transports:u.transports}),emitter:t,uid:t.uid};return t.on("connect",T),r.setup?.(),r}function p(e){let{info:t}=e,r=e.provider;return j({target:{...t,id:t.rdns,provider:r}})}let m=new Map;function y(){return{chainId:d.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let b="0.0.0-canary-";t=V.r.startsWith(b)?Number.parseInt(V.r.replace(b,"")):Number.parseInt(V.r.split(".")[0]??"0");let g=C((i=s?(r={migrate(e,r){if(r===t)return e;let n=y(),i=v(e,n.chainId);return{...n,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:r,name:n,type:i,uid:a}=t.connector;return[e,{...t,connector:{id:r,name:n,type:i,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let r=v(e,t.chainId);return{...t,...e,chainId:r}},skipHydration:l,storage:s,version:t},(e,t,n)=>{let i,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=r.getItem(e))?t:null;return i instanceof Promise?i.then(n):n(i)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...r},s=!1,o=new Set,l=new Set,u=a.storage;if(!u)return y((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),e(...t)},t,n);let c=()=>{let e=a.partialize({...t()});return u.setItem(a.name,{state:e,version:a.version})},d=n.setState;n.setState=(e,t)=>{d(e,t),c()};let f=y((...t)=>{e(...t),c()},t,n);n.getInitialState=()=>f;let h=()=>{var r,n;if(!u)return;s=!1,o.forEach(e=>{var r;return e(null!=(r=t())?r:f)});let d=(null==(n=a.onRehydrateStorage)?void 0:n.call(a,null!=(r=t())?r:f))||void 0;return P(u.getItem.bind(u))(a.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];else{if(a.migrate)return[!0,a.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(r=>{var n;let[s,o]=r;if(e(i=a.merge(o,null!=(n=t())?n:f),!0),s)return c()}).then(()=>{null==d||d(i,void 0),i=t(),s=!0,l.forEach(e=>e(i))}).catch(e=>{null==d||d(void 0,e)})};return n.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>s,onHydrate:e=>(o.add(e),()=>{o.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),i||f}):y,(e,t,r)=>{let n=r.subscribe;return r.subscribe=(e,t,i)=>{let a=e;if(t){let n=(null==i?void 0:i.equalityFn)||Object.is,s=e(r.getState());a=r=>{let i=e(r);if(!n(s,i)){let e=s;t(s=i,e)}},(null==i?void 0:i.fireImmediately)&&t(s,s)}return n(a)},i(e,t,r)}));function v(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&d.getState().some(t=>t.id===e.chainId)?e.chainId:t}function w(e){g.setState(t=>{let r=t.connections.get(e.uid);return r?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??r.accounts,chainId:e.chainId??r.chainId,connector:r.connector})}:t})}function T(e){"connecting"!==g.getState().status&&"reconnecting"!==g.getState().status&&g.setState(t=>{let r=f.getState().find(t=>t.uid===e.uid);return r?(r.emitter.listenerCount("connect")&&r.emitter.off("connect",w),r.emitter.listenerCount("change")||r.emitter.on("change",w),r.emitter.listenerCount("disconnect")||r.emitter.on("disconnect",A),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t})}function A(e){g.setState(t=>{let r=t.connections.get(e.uid);if(r){let e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",w),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",A),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",T)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}})}return g.setState(y()),o&&g.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(d.getState().some(t=>t.id===e))return g.setState(t=>({...t,chainId:e??t.chainId}))}),c?.subscribe(e=>{let t=new Set,r=new Set;for(let e of f.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)r.add(t);let n=[];for(let i of e){if(r.has(i.info.rdns))continue;let e=h(p(i));t.has(e.id)||n.push(e)}(!s||g.persist.hasHydrated())&&f.setState(e=>[...e,...n],!0)}),{get chains(){return d.getState()},get connectors(){return f.getState()},storage:s,getClient:function(e={}){let t,r=e.chainId??g.getState().chainId,n=d.getState().find(e=>e.id===r);if(e.chainId&&!n)throw new I.nk;{let e=m.get(g.getState().chainId);if(e&&!n)return e;if(!n)throw new I.nk}{let e=m.get(r);if(e)return e}if(u.client)t=u.client({chain:n});else{let e=n.id,r=d.getState().map(e=>e.id),i={};for(let[t,n]of Object.entries(u))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t)if("object"==typeof n)if(e in n)i[t]=n[e];else{if(r.some(e=>e in n))continue;i[t]=n}else i[t]=n;t=(0,E.U)({...i,chain:n,batch:i.batch??{multicall:!0},transport:t=>u.transports[e]({...t,connectors:f})})}return m.set(r,t),t},get state(){return g.getState()},setState(e){let t;t="function"==typeof e?e(g.getState()):e;let r=y();"object"!=typeof t&&(t=r),Object.keys(r).some(e=>!(e in t))&&(t=r),g.setState(t,!0)},subscribe:(e,t,r)=>g.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0),_internal:{mipd:c,async revalidate(){let e=g.getState(),t=e.connections,r=e.current;for(let[,e]of t){let n=e.connector;n.isAuthorized&&await n.isAuthorized()||(t.delete(n.uid),r===n.uid&&(r=null))}g.setState(e=>({...e,connections:t,current:r}))},store:g,ssr:!!l,syncConnectedChain:o,transports:u.transports,chains:{setState(e){let t="function"==typeof e?e(d.getState()):e;if(0!==t.length)return d.setState(t,!0)},subscribe:e=>d.subscribe(e)}
2,connectors:{providerDetailToConnector:p,setup:h,setState:e=>f.setState("function"==typeof e?e(f.getState()):e,!0),subscribe:e=>f.subscribe(e)},events:{change:w,connect:T,disconnect:A}}}}({chains:[ew],transports:{[ew.id]:(0,G.L)()},autoConnect:!1,connectors:[j({shimDisconnect:!0}),eE({dappMetadata:{name:"Hedgex Dao",url:"https://hedgex.io"},shimDisconnect:!0}),eP({appName:"Hedgex Dao",preference:"all"}),eT({projectId:eA,showQrModal:!0,metadata:{name:"Hedgex Dao",description:"Hedgex Dao Hedging Platform",url:"https://hedgex.io",icons:["https://hedgex-dao-public-files.s3.us-east-1.amazonaws.com/Image.jpeg"]}})]});var e_=r(53088),eO=r(59834),ek=r(56118),eI=r(35013),eM=r(10245),ej=r(45921);let eR=(0,eM.xP)({reducerPath:"oneInchApi",baseQuery:ej.j,endpoints:e=>({getQuoteValue:e.query({query:e=>{let{src:t,dst:r,amount:n}=e;return{method:"GET",url:"/auth/fetchQuote?src=".concat(t,"&dst=").concat(r,"&amount=").concat(n)}}})})}),{useGetQuoteValueQuery:eB}=eR,eN=(0,e_.U1)({reducer:{[eI.Ay.reducerPath]:eI.Ay.reducer,[eR.reducerPath]:eR.reducer,global:eO.Ay},middleware:e=>e().concat(eI.Ay.middleware).concat(eR.middleware)});(0,ek.$k)(eN.dispatch);let eD=new g;function e$(e){let{children:t}=e;return(0,i.jsx)(a.x,{config:eS,children:(0,i.jsx)(v.Ht,{client:eD,children:(0,i.jsx)(w.Kq,{store:eN,children:t})})})}r(65454);var eF=r(77328),eL=r.n(eF),eq=r(80418),eU=r.n(eq),ez=r(89848);r(93754);var eV=r(14232),eG=r(34471),eH=r(94508),eK=r(30026),eW=r(98626),eQ=r(17963);let eZ=(0,eQ.A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);var eY=r(54410),eX=r(47798),eJ=r(46293),e0=r(56056),e1=r(74146);let e5=(0,eQ.A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);var e6=r(39186),e2=r(48230),e8=r.n(e2),e3=r(14e3),e4=r(18847),e9=r.n(e4),e7=r(27212),te=r(90434),tt=r(28249),tr=r(45313);let tn=function(e){let{notifications:t=[],setNotifications:r,showNotifications:n,setShowNotifications:a,markNotificationAsRead:s,markAllAsRead:o}=e,[l,u]=(0,eV.useState)(0);return(0,eV.useEffect)(()=>{u(t.filter(e=>!e.isRead).length)},[t]),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)(eG.P.button,{onClick:()=>a(!n),className:"p-3 glass-pro rounded-xl hover:bg-white/10 transition-all relative backdrop-blur-xl border border-white/10",whileHover:{scale:1.1},whileTap:{scale:.9},children:[(0,i.jsx)(eG.P.div,{animate:n?{rotate:[0,15,-15,0]}:{},transition:{duration:.6},children:(0,i.jsx)(te.A,{className:"h-5 w-5 text-gray-400"})}),l>0&&(0,i.jsx)(eG.P.div,{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-xs font-bold text-white border-2 border-gray-900",animate:{scale:[1,1.2,1]},transition:{duration:2,repeat:1/0},style:{boxShadow:"0 0 10px rgba(239, 68, 68, 0.5)"},children:l>9?"9+":l})]}),(0,i.jsx)(e7.N,{children:n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fixed inset-0 z-[100]",onClick:()=>a(!1)}),(0,i.jsxs)(eG.P.div,{className:"absolute right-0 top-full mt-2 w-80 sm:w-96 rounded-2xl p-6 border border-white/10 z-[110] shadow-2xl",style:{background:"linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%)",backdropFilter:"blur(24px)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1)"},initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,type:"spring",stiffness:300,damping:30},children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,i.jsxs)(eG.P.h3,{className:"text-lg font-bold text-white flex items-center gap-2",initial:{x:-20,opacity:0},animate:{x:0,opacity:1},transition:{delay:.1,duration:.3},children:[(0,i.jsx)(eG.P.div,{animate:{rotate:[0,360]},transition:{duration:8,repeat:1/0,ease:"linear"},children:(0,i.jsx)(te.A,{className:"h-5 w-5 text-emerald-400"})}),"Notifications",l>0&&(0,i.jsx)(eG.P.span,{className:"px-2 py-1 bg-emerald-500/20 text-emerald-400 text-xs font-bold rounded-full border border-emerald-500/30",animate:{scale:[1,1.1,1]},transition:{duration:2,repeat:1/0},children:l})]}),(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(eG.P.button,{onClick:()=>{r(t.map(e=>({...e,isRead:!0}))),null==o||o()},className:"text-sm text-emerald-400 hover:text-emerald-300 transition-colors font-medium",whileHover:{scale:1.05},whileTap:{scale:.95},initial:{x:10,opacity:0}
2,animate:{x:0,opacity:1},transition:{delay:.1,duration:.3},children:"Mark all read"}),(0,i.jsx)(eG.P.button,{onClick:()=>a(!1),className:"p-1 text-gray-400 hover:text-white transition-colors hover:bg-white/10 rounded-lg",whileHover:{scale:1.1,rotate:90},whileTap:{scale:.9},initial:{x:10,opacity:0,rotate:-90},animate:{x:0,opacity:1,rotate:0},transition:{delay:.1,duration:.3},children:(0,i.jsx)(tt.A,{className:"h-4 w-4"})})]})]}),(0,i.jsx)("div",{className:"space-y-3 max-h-80 overflow-y-auto pr-2",style:{scrollbarWidth:"thin"},children:t.length>0?t.map((e,n)=>{let a=(0,tr.By)(e.type),o=(0,tr.OP)(e.type);return(0,i.jsx)(eG.P.div,{onClick:()=>{r(t.map(t=>t._id===e._id?{...t,isRead:!0}:t)),s(e._id)},className:"p-4 rounded-xl cursor-pointer transition-all border group hover:scale-[1.02] ".concat(e.isRead?"bg-gray-900/90 border-white/10 hover:bg-gray-800/90":"bg-gray-800/90 border-white/20 hover:bg-gray-700/90"),style:{background:e.isRead?"linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(55, 65, 81, 0.9) 100%)":"linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(75, 85, 99, 0.9) 100%)",backdropFilter:"blur(8px)"},initial:{opacity:0,x:-20,scale:.9},animate:{opacity:1,x:0,scale:1},transition:{delay:.2+.05*n,duration:.3,type:"spring",stiffness:200},whileHover:{y:-2},children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)(eG.P.div,{className:"flex-shrink-0 mt-0.5 p-1.5 rounded-lg border backdrop-blur-sm",style:{background:o.bg.replace("/10","/20"),borderColor:o.bg.replace("/10","/30")},animate:{boxShadow:e.isRead?[]:["0 0 0 ".concat(o.glow.replace("0.3","0")),"0 0 8px ".concat(o.glow),"0 0 0 ".concat(o.glow.replace("0.3","0"))]},transition:{duration:2,repeat:1/0},children:(0,i.jsx)(a,{className:"h-3 w-3 ".concat(o.icon)})}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"font-medium leading-tight ".concat(e.isRead?"text-gray-300":"text-white"," group-hover:text-emerald-100 transition-colors"),children:e.title}),(0,i.jsx)("p",{className:"text-gray-400 text-sm mt-1 leading-relaxed group-hover:text-gray-300 transition-colors",children:e.message}),(0,i.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[(0,i.jsx)("p",{className:"text-gray-500 text-xs",children:e.time}),!e.isRead&&(0,i.jsx)(eG.P.div,{className:"w-2 h-2 bg-emerald-400 rounded-full flex-shrink-0",animate:{scale:[1,1.3,1],opacity:[1,.7,1]},transition:{duration:2,repeat:1/0}})]})]})]})},e._id)}):(0,i.jsxs)(eG.P.div,{className:"text-center py-12",style:{background:"linear-gradient(135deg, rgba(55, 65, 81, 0.5) 0%, rgba(75, 85, 99, 0.5) 100%)",backdropFilter:"blur(8px)",borderRadius:"1rem",border:"1px solid rgba(255, 255, 255, 0.1)"},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.2,duration:.5},children:[(0,i.jsx)(eG.P.div,{className:"w-16 h-16 bg-gray-700/50 rounded-full flex items-center justify-center mx-auto mb-4 backdrop-blur-sm",animate:{rotate:[0,10,-10,0]},transition:{duration:4,repeat:1/0},children:(0,i.jsx)(te.A,{className:"h-8 w-8 text-gray-500"})}),(0,i.jsx)("p",{className:"text-gray-300 font-medium",children:"No notifications"}),(0,i.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:"We'll notify you when something important happens"})]})}),t.length>0&&(0,i.jsx)(eG.P.div,{className:"pt-4 mt-4 border-t border-white/10",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4,duration:.3}})]})]})})]})};var ti=r(29540);let ta={bronze:{name:"Bronze",color:"orange",threshold:0,benefits:["Basic voting rights","Community access"]},silver:{name:"Silver",color:"gray",threshold:1,benefits:["Enhanced voting power","Early proposal access","Discord silver role"]},gold:{name:"Gold",color:"yellow",threshold:2,benefits:["Proposal creation rights","Treasury insights","Monthly AMAs"]},platinum:{name:"Platinum",color:"blue",threshold:15e3,benefits:["Council nomination rights","Exclusive events","Direct team access"]},diamond:{name:"Diamond",color:"purple",threshold:5e4,benefits:["Founding member status","Revenue sharing","Strategic decision input"]}};new Date(Date.now()-1728e5).toISOString(),new Date(Date.now()+432e6).toISOString(),new Date(Date.now()-864e5).toISOString(),new Date(Date.now()+5184e5).toISOString(),new Date(Date.now()-144e5).toISOString(),new Date(Date.now()+2592e5).toISOString(),new Date(Date.now()-1296e6).toISOString(),new Date(Date.now()-6912e5).toISOString(),new Date(Date.now()-6048e5).toISOString(),new Date(Date.now()-216e7).toISOString(),new Date(Date.now()-15552e5).toISOString();var ts=r(77338),to=r(97685),tl=r(12531),tu=r(49835);let{ETH_HEDGE_CONTRACT:tc,HEDGE_CONTRACT_ADDRESS:td}=eC.A,tf=e9()(()=>Promise.all([r.e(2909),r.e(5485),r.e(2522),r.e(5839),r.e(1345)]).then(r.bind(r,5
25839)),{loadableGenerated:{webpack:()=>[55839]},ssr:!1}),th=function(){let e=!!ts.A.getItem(tl.xr.TOKEN),[t,r]=(0,eV.useState)(!1),[n,a]=(0,eV.useState)(!1),[s,o]=(0,eV.useState)([]),l=(0,w.wA)(),u=(0,e3.useRouter)(),c=(0,e3.usePathname)(),{disconnect:d}=(0,eH.u)(),{address:f}=(0,eK.F)(),h=(0,eW.e)(),[p,m]=(0,eV.useState)(!1),[y,b]=(0,eV.useState)(),[g,v]=(0,eV.useState)(null),[E,P]=(0,eV.useState)(null),[T,C]=(0,eV.useState)(0),[A,S]=(0,eV.useState)(!1);(0,eV.useEffect)(()=>{S(!0)},[]);let[_,O]=(0,eV.useState)(!1);(0,eV.useEffect)(()=>{["/dex-trade","/dex","/trade","/dexTrade"].some(e=>null==c?void 0:c.startsWith(e))?O(!0):O(!1)},[c]),(0,eV.useEffect)(()=>{!_&&p&&setTimeout(()=>{k(),d()},500)},[_]);let k=()=>{b(null),m(!1)},I=async()=>{try{try{await d()}catch(e){}for(let e of[tl.xr.TOKEN,tl.xr.IS_RECONNECTED,tl.xr.SIGN_TOKEN,tl.xr.EMAIL,tl.xr.REMEMBERED_EMAIL,tl.xr.REFERRAL_CODE||"referralCode"])try{ts.A.removeItem(e)}catch(e){}try{l(eI.Ay.util.resetApiState())}catch(e){}try{document.cookie="auth-token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT",document.cookie="user-role=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}catch(e){}}catch(e){to.Ay.error("Unexpected logout issue, redirecting...")}finally{try{await new Promise(e=>setTimeout(e,100)),u.replace(tl.bw.SIGNIN)}catch(e){window.location.href=tl.bw.SIGNIN}}},{email:M}=(0,w.d4)(e=>e.global),[j]=(0,eI.Qp)(),[R]=(0,eI.Mc)(),B=async e=>{let t=M||ts.A.getItem(tl.xr.REMEMBERED_EMAIL);if(!t)return to.Ay.error("User email not found");try{await R({email:t,id:e,allMarkRead:!1}).unwrap(),o(t=>t.map(t=>t._id===e?{...t,isRead:!0}:t))}catch(e){console.error(e),to.Ay.error("Failed to mark notification as read")}},N=async()=>{let e=M||ts.A.getItem(tl.xr.REMEMBERED_EMAIL);if(!e)return to.Ay.error("User email not found");try{await R({email:e,allMarkRead:!0}).unwrap(),o(e=>e.map(e=>({...e,isRead:!0})))}catch(e){console.error(e),to.Ay.error("Failed to mark all notifications as read")}};(0,eV.useEffect)(()=>{let e=M||(null===ts.A||void 0===ts.A?void 0:ts.A.getItem(tl.xr.REMEMBERED_EMAIL));e&&(async()=>{try{let t=await j({email:e}).unwrap();(null==t?void 0:t.notifications)&&o(t.notifications)}catch(e){to.Ay.error("Notification fetch failed"),console.error(e)}})()},[M,j]),(0,eV.useEffect)(()=>{if(!A)return;if(!h||!f){v(0),P(0),C(0);return}let e=async e=>{if(!e||!(0,X.P)(e))return null;try{let t=await h.readContract({abi:tu,address:e,functionName:"userType",args:[f]});return Number(t)}catch(e){return 0}};(async()=>{let[t,r]=await Promise.all([e(tc),e(td)]);v(t),P(r),null!=r?C(r):null!=t?C(t):C(0)})()},[A,h,f,tc,td]);let D=(0,eV.useMemo)(()=>{var e,t=null==T?0:null!=(e=[0,1,2][T])?e:0;let r=[["bronze",ta.bronze],["silver",ta.silver],["gold",ta.gold],["platinum",ta.platinum],["diamond",ta.diamond]];for(let e=r.length-1;e>=0;e--){let[n,i]=r[e];if(t>=i.threshold)return{key:n,...i}}return{key:"bronze",...ta.bronze}},[T]),$=e=>{switch(e){case"Home":default:return eZ;case"Shield":return eY.A;case"Zap":return eX.A;case"Users":return eJ.A;case"Award":return e0.A}};return(0,i.jsx)(i.Fragment,{children:A&&(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"absolute inset-0",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-black via-gray-900 to-black"}),(0,i.jsx)(eG.P.div,{className:"absolute inset-0 particles-pro opacity-40",animate:{background:["radial-gradient(ellipse 80% 50% at 20% 0%, rgba(16, 185, 129, 0.05), transparent)","radial-gradient(ellipse 80% 50% at 80% 100%, rgba(20, 184, 166, 0.03), transparent)","radial-gradient(ellipse 80% 50% at 20% 0%, rgba(16, 185, 129, 0.05), transparent)"]},transition:{duration:20,repeat:1/0,ease:"linear"}}),(0,i.jsx)("div",{className:"bg-grid-pro opacity-20"})]}),(0,i.jsx)(eG.P.header,{className:"relative z-50 border-b border-white/10 backdrop-blur-xl bg-black/10",initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,type:"spring",stiffness:100},children:(0,i.jsxs)("div",{className:"container mx-auto px-4 sm:px-6",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between h-14",children:[(0,i.jsx)(eG.P.div,{initial:{x:-50,opacity:0}
2,animate:{x:0,opacity:1},transition:{delay:.2,duration:.6},className:"flex-shrink-0",children:(0,i.jsx)(e6.g,{size:"sm",showText:!0})}),(0,i.jsx)("nav",{className:"hidden lg:flex items-center justify-center flex-1",children:(0,i.jsx)("div",{className:"flex items-center gap-1 bg-black/10 rounded-xl p-1 border border-white/5",children:ti.Ij.map((e,t)=>{let r=$(e.icon),n=c===e.href||(null==c?void 0:c.startsWith(e.href+"/")),a=e.href.includes("dex")||e.href.includes("trade");return(0,i.jsx)(e8(),{href:e.href,children:(0,i.jsxs)(eG.P.button,{className:"relative flex items-center gap-2 px-3 py-2 rounded-lg font-semibold text-sm transition-all duration-300\n          ".concat(a?"text-emerald-400 border border-emerald-500/30 bg-gradient-to-r from-emerald-500/10 via-teal-500/10 to-emerald-500/10 shadow-[0_0_18px_rgba(16,185,129,0.35)]":n?"bg-emerald-500/15 text-emerald-400 border border-emerald-500/20":"text-gray-400 hover:text-white hover:bg-white/5","\n        "),initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3+.1*t,duration:.5},whileHover:{scale:a?1.1:1.05,boxShadow:a?"0 0 25px rgba(16,185,129,0.6)":"0 0 10px rgba(255,255,255,0.1)"},whileTap:{scale:.96},children:[(0,i.jsx)(r,{className:"h-4 w-4 ".concat(a?"animate-pulse text-emerald-400":"")}),(0,i.jsx)("span",{children:e.label}),a&&(0,i.jsx)(eG.P.div,{className:"absolute inset-0 rounded-lg border border-emerald-500/30",animate:{opacity:[.3,.8,.3],boxShadow:["0 0 10px rgba(16,185,129,0.3)","0 0 20px rgba(16,185,129,0.6)","0 0 10px rgba(16,185,129,0.3)"]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"}})]})},e.id)})})}),(0,i.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,i.jsxs)(eG.P.div,{initial:{scale:.8,opacity:0}
2,animate:{scale:1,opacity:1},transition:{delay:.3,duration:.6},className:"hidden md:flex items-center gap-2 px-2.5 py-1 bg-".concat(D.color,"-500/10 border border-").concat(D.color,"-500/20 rounded-lg"),title:"Tier based on ".concat(null!=g?"BTC (ETH side)":null!=E?"default contract":"fallback: 0"),children:[(0,i.jsx)(e1.A,{className:"h-3.5 w-3.5 text-".concat(D.color,"-400")}),(0,i.jsx)("span",{className:"text-".concat(D.color,"-400 text-xs font-medium"),children:D.name})]}),(0,i.jsx)("div",{className:"relative z-[60]",children:(0,i.jsx)(tn,{notifications:s,setNotifications:o,showNotifications:t,setShowNotifications:r,markNotificationAsRead:B,markAllAsRead:N})}),(0,i.jsx)("div",{className:"relative z-[60]",children:(0,i.jsx)(eG.P.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.4,duration:.6},children:e&&(0,i.jsx)(tf,{isConnected:p,connectedWallet:y,onConnect:e=>{b(e),m(!0)},onDisconnect:k,showModal:n,setShowModal:a,bypassAuthForIdo:_})})}),(0,i.jsx)("div",{onClick:I,className:"p-2 cursor-pointer bg-emerald-500/15 hover:scale-[1.1] border-emerald-500/20 rounded-sm ",children:(0,i.jsx)(e5,{className:"w-5 h-5 text-green-400"})})]})]}),(0,i.jsx)("div",{className:"lg:hidden pb-2 border-t border-white/5 pt-2",children:(0,i.jsx)("div",{className:"flex items-center justify-center",children:(0,i.jsx)("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide",children:ti.Ij.map((e,t)=>{let r=$(e.icon),n=c===e.href||(null==c?void 0:c.startsWith(e.href+"/")),a=e.href.includes("dex")||e.href.includes("trade");return(0,i.jsx)(e8(),{href:e.href,children:(0,i.jsxs)(eG.P.button,{className:"relative flex items-center gap-2 px-3 py-2 rounded-lg font-semibold text-sm transition-all duration-300\n          ".concat(a?"text-emerald-400 border border-emerald-500/30 bg-gradient-to-r from-emerald-500/10 via-teal-500/10 to-emerald-500/10 shadow-[0_0_18px_rgba(16,185,129,0.35)]":n?"bg-emerald-500/15 text-emerald-400 border border-emerald-500/20":"text-gray-400 hover:text-white hover:bg-white/5","\n        "),initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3+.1*t,duration:.5},whileHover:{scale:a?1.1:1.05,boxShadow:a?"0 0 25px rgba(16,185,129,0.6)":"0 0 10px rgba(255,255,255,0.1)"},whileTap:{scale:.96},children:[(0,i.jsx)(r,{className:"h-4 w-4 ".concat(a?"animate-pulse text-emerald-400":"")}),(0,i.jsx)("span",{children:e.label}),a&&(0,i.jsx)(eG.P.div,{className:"absolute inset-0 rounded-lg border border-emerald-500/30",animate:{opacity:[.3,.8,.3],boxShadow:["0 0 10px rgba(16,185,129,0.3)","0 0 20px rgba(16,185,129,0.6)","0 0 10px rgba(16,185,129,0.3)"]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"}})]})},e.id)})})})})]})})]})})};var tp=r(89099);let tm=function(e){let{children:t}=e,r=(0,tp.useRouter)();return(0,i.jsx)("div",{className:"min-h-screen bg-hero-dark text-white relative overflow-hidden",children:(0,i.jsx)("div",{className:"relative z-0",children:(0,i.jsxs)("div",{className:" min-h-screen max-w-[1440px] mx-auto my-auto w-full flex flex-col relative z-0 ".concat("/affiliation"===r.pathname?"bg-[#131C25]":"bg-[#1C2936]"," font-dm"),children:[(0,i.jsx)(th,{}),(0,i.jsx)("div",{className:"flex-grow font-noto relative z-0 ".concat(["/affiliation","/"].includes(r.pathname)?"smd:px-0 px-0 py-0":["/contact-us","/verification"].includes(r.pathname)?"":"smd:px-14 px-5 "),children:(0,i.jsx)(eG.P.div,{className:"relative z-10",children:(0,i.jsx)("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 py-6 sm:py-8",children:t})})})]})})})},ty={title:"Hedgex Exchange",manifest:"/manifest.json"},tb=function(e){let{Component:t,pageProps:r}=e,n=["/overview","/hedge","/dexTrade","/affiliation","/daoVote"].includes((0,tp.useRouter)().pathname),a=(0,i.jsx)(t,{...r});return(0,i.jsxs)(e$,{children:[(0,i.jsxs)(eL(),{children:[(0,i.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,i.jsx)("link",{rel:"manifest",href:"/manifest.json"})]}),(0,i.jsxs)("div",{className:"".concat(eU().variable," font-poppins"),children:[n?(0,i.jsx)(tm,{children:a}):a,(0,i.jsx)(ez.N9,{position:"top-right",autoClose:3e3,hideProgressBar:!1,theme:"dark"})]})]})}},1855:(e,t,r)=>{"use strict";r.d(t,{$s:()=>d,Kc:()=>h,Kz:()=>f,Vg:()=>u,WA:()=>p,aO:()=>s,fZ:()=>c,n3:()=>o,zW:()=>l});var n=r(12305),i=r(5639),a=r(76200);function s(e){let t=Object.entries(e).map(([e,t])=>
2void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class o extends a.C{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class l extends a.C{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class u extends a.C{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}a.C,a.C;class c extends a.C{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class d extends a.C{constructor(e,{account:t,docsPath:r,chain:a,data:o,gas:l,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",s({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.c)(p)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:l,gasPrice:void 0!==u&&`${(0,i.Q)(u)} gwei`,maxFeePerGas:void 0!==c&&`${(0,i.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.Q)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class f extends a.C{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let a="Transaction";r&&void 0!==i&&(a=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class h extends a.C{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class p extends a.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},2205:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n="undefined"!=typeof window},2589:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},2774:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n=r(83878),i=r(81645),a=r(37744);async function s(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:l}={}){let u=l??!1,c=void 0!==r?(0,i.cK)(r):void 0,d=null;if(!(d=t?await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||o,u]},{dedupe:!!c})))throw new n.l({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||a.$)(d)}},3190:(e,t,r)=>{"use strict";function n(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}r.d(t,{Y:()=>n})},3796:(e,t,r)=>{"use strict";r.d(t,{BD:()=>i,D5:()=>n,Ge:()=>a});let n=/^(.*)\[([0-9]*)\]$/,i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^(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)?$/},3866:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});let n=(0,r(14232).createContext)(null)},4972:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(81645);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let a=void 0!==r?(0,n.cK)(r):void 0,s=await e.request({method:"eth_getCode",params:[t,a||i]},{dedupe:!!a});if("0x"!==s)return s}},5003:(e,t,r)=>{"use strict";r.d(t,{sc:()=>n});let n=r(62777).sc},5048:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n=(0,r(14232).createContext)({})},5375:(e,t,r)=>{"use strict";r.d(t,{MM:()=>b,ft:()=>v});
2var n=r(57616),i=r(68324),a=r(28501),s=r(2774),o=r(53422),l=r(22859),u=r(8922),c=r(39151),d=r(9061),f=r(20289),h=r(8481),p=r(39575),m=r(13800),y=r(83607);let b=["blobVersionedHashes","chainId","fees","gas","nonce","type"],g=new Map;async function v(e,t){let r,v,{account:w=e.account,blobs:E,chain:P,gas:T,kzg:C,nonce:A,nonceManager:S,parameters:_=b,type:O}=t,k=w?(0,n.J)(w):w,I={...t,...k?{from:k?.address}:{}};async function M(){return r||(r=await (0,h.T)(e,s.g,"getBlock")({blockTag:"latest"}))}async function j(){return v||(P?P.id:void 0!==t.chainId?t.chainId:v=await (0,h.T)(e,y.T,"getChainId")({}))}if(_.includes("nonce")&&void 0===A&&k)if(S){let t=await j();I.nonce=await S.consume({address:k.address,chainId:t,client:e})}else I.nonce=await (0,h.T)(e,o.y,"getTransactionCount")({address:k.address,blockTag:"pending"});if((_.includes("blobVersionedHashes")||_.includes("sidecars"))&&E&&C){let e=(0,u.S)({blobs:E,kzg:C});if(_.includes("blobVersionedHashes")&&(I.blobVersionedHashes=(0,d.d)({commitments:e,to:"hex"})),_.includes("sidecars")){let t=(0,c.t)({blobs:E,commitments:e,kzg:C});I.sidecars=(0,f.T)({blobs:E,commitments:e,proofs:t,to:"hex"})}}if(_.includes("chainId")&&(I.chainId=await j()),(_.includes("fees")||_.includes("type"))&&void 0===O)try{I.type=(0,m.L)(I)}catch{let t=g.get(e.uid);if(void 0===t){let r=await M();t="bigint"==typeof r?.baseFeePerGas,g.set(e.uid,t)}I.type=t?"eip1559":"legacy"}if(_.includes("fees"))if("legacy"!==I.type&&"eip2930"!==I.type){if(void 0===I.maxFeePerGas||void 0===I.maxPriorityFeePerGas){let r=await M(),{maxFeePerGas:n,maxPriorityFeePerGas:a}=await (0,i.O)(e,{block:r,chain:P,request:I});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<a)throw new l.RR({maxPriorityFeePerGas:a});I.maxPriorityFeePerGas=a,I.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new l.pw;if(void 0===t.gasPrice){let t=await M(),{gasPrice:r}=await (0,i.O)(e,{block:t,chain:P,request:I,type:"legacy"});I.gasPrice=r}}return _.includes("gas")&&void 0===T&&(I.gas=await (0,h.T)(e,a.Q,"estimateGas")({...I,account:k?{address:k.address,type:"json-rpc"}:k})),(0,p.c)(I),delete I.parameters,I}},5579:(e,t,r)=>{"use strict";async function n(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}r.d(t,{L:()=>n})},5639:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(6927),i=r(32602);function a(e,t="wei"){return(0,i.J)(e,n.sz[t])}},6882:(e,t,r)=>{"use strict";r.d(t,{X4:()=>a,ai:()=>i,hs:()=>s});var n=r(12679);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},a={...i,transform:e=>(0,n.q)(0,1,e)},s={...i,default:1}},6927:(e,t,r)=>{"use strict";r.d(t,{eL:()=>n,pj:()=>a,sz:()=>i});let n={gwei:9,wei:18},i={ether:-9,wei:9},a={ether:-18,gwei:-9}},7862:(e,t,r)=>{"use strict";function n(e){let t;return()=>(void 0===t&&(t=e()),t)}r.d(t,{p:()=>n})},7877:(e,t,r)=>{"use strict";r.d(t,{e:()=>d});var n=r(65809),i=r(1162),a=r(71400),s=r(27761),o=r(94817);class l extends o.C{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=r(91497),c=r(46685);function d(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,u.WL)(r))continue;let i=(0,u.FO)(r);if(!i)throw new s.s7({signature:r,type:"struct"});let a=i.properties.split(";"),o=[],l=a.length;for(let e=0;e<l;e++){let t=a[e].trim();if(!t)continue;let r=(0,c.Pj)(t,{type:"struct"});o.push(r)}if(!o.length)throw new s.X9({signature:r});t[i.name]=o}let o={},d=Object.entries(t),h=d.length;for(let e=0;e<h;e++){let[r,s]=d[e];o[r]=function e(t,r,s=new Set){let o=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(n.wj.test(u.type))o.push(u);else{let t=(0,n.Yv)(f,u.type);if(!t?.type)throw new a.nx({abiParameter:u});let{array:d,type:h}=t;if(h in r){if(s.has(h))throw new l({type:h});o.push({...u,type:`tuple${d??""}`,components:e(r[h]??[],r,new Set([...s,h]))})}else if((0,c._o)(h))o.push(u);else throw new i.zz({type:h})}}return o}(s,t)}return o}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},7990:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(97594);function i(e){return(0,n.G)(e)&&"offsetHeight"in e}},8481:(e,t,r)=>{"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{T:()=>n})},8922:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(26715),i=r(81645);function a(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.aT)(e)):e.blobs,s=[];for(let e of a)s.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?s:s.map(e=>(0,i.My)(e))}},9061:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(81645),i=r(5003),a=r(65859),s=r(26715);
2function o(e){let{commitments:t,version:r}=e,o=e.to??("string"==typeof t[0]?"hex":"bytes"),l=[];for(let e of t)l.push(function(e){let{commitment:t,version:r=1}=e,o=e.to??("string"==typeof t?"hex":"bytes"),l=function(e,t){let r=(0,i.sc)((0,a.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?r:(0,n.nj)(r)}(t,"bytes");return l.set([r],0),"bytes"===o?l:(0,n.My)(l)}({commitment:e,to:o,version:r}));return l}},9678:(e,t,r)=>{"use strict";r.d(t,{I:()=>i,R:()=>n});let n=e=>e,i=e=>e},10245:(e,t,r)=>{"use strict";r.d(t,{xP:()=>E});var n=r(56118),i=r(31777),a=r(35881),s=r(53088),o=r(14232);function l(e){return e.replace(e[0],e[0].toUpperCase())}function u(e){return"infinitequery"===e.type}function c(e,...t){return Object.assign(e,...t)}r(65364);var d=Symbol();function f(e){let t=(0,o.useRef)(e),r=(0,o.useMemo)(()=>(0,n.$J)(t.current,e),[e]);return(0,o.useEffect)(()=>{t.current!==r&&(t.current=r)},[r]),r}function h(e){let t=(0,o.useRef)(e);return(0,o.useEffect)(()=>{(0,i.bN)(t.current,e)||(t.current=e)},[e]),(0,i.bN)(t.current,e)?t.current:e}var p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m="undefined"!=typeof navigator&&"ReactNative"===navigator.product,y=p||m?o.useLayoutEffect:o.useEffect,b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:n.RE.pending}:e;function g(e,...t){let r={};return t.forEach(t=>{r[t]=e[t]}),r}var v=["data","status","isLoading","isSuccess","isError","error"],w=Symbol(),E=(0,n.l0)((0,n.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:r=a.Mz,unstable__sideEffectsInRender:p=!1,...m}={})=>
2({name:w,init(a,{serializeQueryArgs:m},w){let{buildQueryHooks:E,buildInfiniteQueryHooks:P,buildMutationHook:T,usePrefetch:C}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:a,useStore:l},unstable__sideEffectsInRender:c,createSelector:p},serializeQueryArgs:m,context:w}){let E=c?e=>e():o.useEffect;return{buildQueryHooks:function(i){let a=(e,t={})=>{let[r]=C(i,e,t);return S(r),(0,o.useMemo)(()=>({refetch:()=>_(r)}),[r])},s=({refetchOnReconnect:n,refetchOnFocus:a,pollingInterval:s=0,skipPollingIfUnfocused:l=!1}={})=>{let{initiate:u}=e.endpoints[i],c=r(),[f,p]=(0,o.useState)(d),m=(0,o.useRef)(void 0),y=h({refetchOnReconnect:n,refetchOnFocus:a,pollingInterval:s,skipPollingIfUnfocused:l});E(()=>{y!==m.current?.subscriptionOptions&&m.current?.updateSubscriptionOptions(y)},[y]);let b=(0,o.useRef)(y);E(()=>{b.current=y},[y]);let g=(0,o.useCallback)(function(e,r=!1){let n;return t(()=>{m.current?.unsubscribe(),m.current=n=c(u(e,{subscriptionOptions:b.current,forceRefetch:!r})),p(e)}),n},[c,u]),v=(0,o.useCallback)(()=>{m.current?.queryCacheKey&&c(e.internalActions.removeQueryResult({queryCacheKey:m.current?.queryCacheKey}))},[c]);return(0,o.useEffect)(()=>()=>{m?.current?.unsubscribe()},[]),(0,o.useEffect)(()=>{f===d||m.current||g(f,!0)},[f,g]),(0,o.useMemo)(()=>[g,f,{reset:v}],[g,f,v])},l=A(i,P);return{useQueryState:l,useQuerySubscription:a,useLazyQuerySubscription:s,useLazyQuery(e){let[t,r,{reset:n}]=s(e),i=l(r,{...e,skip:r===d}),a=(0,o.useMemo)(()=>({lastArg:r}),[r]);return(0,o.useMemo)(()=>[t,{...i,reset:n},a],[t,i,n,a])},useQuery(e,t){let r=a(e,t),i=l(e,{selectFromResult:e===n.hT||t?.skip?void 0:b,...t}),s=g(i,...v);return(0,o.useDebugValue)(s),(0,o.useMemo)(()=>({...i,...r}),[i,r])}}},buildInfiniteQueryHooks:function(e){let r=(r,i={})=>{let[a,s,l,u]=C(e,r,i),c=(0,o.useRef)(u);E(()=>{c.current=u},[u]);let d=(0,o.useCallback)(function(e,r){let n;return t(()=>{a.current?.unsubscribe(),a.current=n=s(l(e,{subscriptionOptions:c.current,direction:r}))}),n},[a,s,l]);S(a);let h=f(i.skip?n.hT:r),p=(0,o.useCallback)(()=>_(a),[a]);return(0,o.useMemo)(()=>({trigger:d,refetch:p,fetchNextPage:()=>d(h,"forward"),fetchPreviousPage:()=>d(h,"backward")}),[p,d,h])},i=A(e,T);return{useInfiniteQueryState:i,useInfiniteQuerySubscription:r,useInfiniteQuery(e,t){let{refetch:a,fetchNextPage:s,fetchPreviousPage:l}=r(e,t),u=i(e,{selectFromResult:e===n.hT||t?.skip?void 0:b,...t}),c=g(u,...v,"hasNextPage","hasPreviousPage");return(0,o.useDebugValue)(c),(0,o.useMemo)(()=>({...u,fetchNextPage:s,fetchPreviousPage:l,refetch:a}),[u,s,l,a])}}},buildMutationHook:function(n){return({selectFromResult:s,fixedCacheKey:l}={})=>{let{select:u,initiate:c}=e.endpoints[n],d=r(),[f,h]=(0,o.useState)();(0,o.useEffect)(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);let m=(0,o.useCallback)(function(e){let t=d(c(e,{fixedCacheKey:l}));return h(t),t},[d,c,l]),{requestId:y}=f||{},b=(0,o.useMemo)(()=>u({fixedCacheKey:l,requestId:f?.requestId}),[l,f,u]),w=a((0,o.useMemo)(()=>s?p([b],s):b,[s,b]),i.bN),E=null==l?f?.arg.originalArgs:void 0,P=(0,o.useCallback)(()=>{t(()=>{f&&h(void 0),l&&d(e.internalActions.removeMutationResult({requestId:y,fixedCacheKey:l}))})},[d,l,f,y]),T=g(w,...v,"endpointName");(0,o.useDebugValue)(T);let C=(0,o.useMemo)(()=>({...w,originalArgs:E,reset:P}),[w,E,P]);return(0,o.useMemo)(()=>[m,C],[m,C])}},usePrefetch:function(t,n){let i=r(),a=h(n);return(0,o.useCallback)((r,n)=>i(e.util.prefetch(t,r,{...a,...n})),[t,i,a])}};function P(e,t,r){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,i=w.endpointDefinitions[e];r!==n.hT&&m({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===m({queryArgs:r,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);let a=void 0!==i,s=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&s,l=e.isSuccess||a&&(s&&!t?.isError||e.isUninitialized);return{...e,data:i,currentData:e.data,isFetching:s,isLoading:o,isSuccess:l}}function T(e,t,r){if(t?.endpointName&&e.isUninitialized){let{endpointName:e}=t,i=w.endpointDefinitions[e];r!==n.hT&&m({queryArgs:t.originalArgs,endpointDefinition:i,endpointName:e})===m({queryArgs:r,endpointDefinition:i,endpointName:e})&&(t=void 0)}let i=e.isSuccess?e.data:t?.data;void 0===i&&(i=e.data);let a=void 0!==i,s=e.isLoading,o=(!t||t.isLoading||t.isUninitialized)&&!a&&s,l=e.isSuccess||s&&a;return{...e,data:i,currentData:e.data,isFetching:s,isLoading:o,isSuccess:l}}function C(t,i,{refetchOnReconnect:a,refetchOnFocus:s,refetchOnMountOrArgChange:l,ski
2p:c=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1,...m}={}){let{initiate:y}=e.endpoints[t],b=r(),g=(0,o.useRef)(void 0);g.current||(g.current=b(e.internalActions.internal_getRTKQSubscriptions()));let v=f(c?n.hT:i),P=h({refetchOnReconnect:a,refetchOnFocus:s,pollingInterval:d,skipPollingIfUnfocused:p}),T=h(m.initialPageParam),A=(0,o.useRef)(void 0),{queryCacheKey:S,requestId:_}=A.current||{},O=!1;S&&_&&(O=g.current.isRequestSubscribed(S,_));let k=!O&&void 0!==A.current;return E(()=>{k&&(A.current=void 0)},[k]),E(()=>{let e=A.current;if(v===n.hT){e?.unsubscribe(),A.current=void 0;return}let r=A.current?.subscriptionOptions;e&&e.arg===v?P!==r&&e.updateSubscriptionOptions(P):(e?.unsubscribe(),A.current=b(y(v,{subscriptionOptions:P,forceRefetch:l,...u(w.endpointDefinitions[t])?{initialPageParam:T}:{}})))},[b,y,l,v,P,k,T,t]),[A,b,y,P]}function A(t,r){return(s,{skip:u=!1,selectFromResult:c}={})=>{let{select:d}=e.endpoints[t],h=f(u?n.hT:s),m=(0,o.useRef)(void 0),b=(0,o.useMemo)(()=>p([d(h),(e,t)=>t,e=>h],r,{memoizeOptions:{resultEqualityCheck:i.bN}}),[d,h]),g=(0,o.useMemo)(()=>c?p([b],c,{devModeChecks:{identityFunctionCheck:"never"}}):b,[b,c]),v=a(e=>g(e,m.current),i.bN),w=b(l().getState(),m.current);return y(()=>{m.current=w},[w]),v}}function S(e){(0,o.useEffect)(()=>()=>{e.current?.unsubscribe?.(),e.current=void 0},[e])}function _(e){if(!e.current)throw Error((0,s.gk)(38));return e.current.refetch()}}({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:p,createSelector:r},serializeQueryArgs:m,context:w});return c(a,{usePrefetch:C}),c(w,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){let{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:s}=E(e);c(a.endpoints[e],{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:s}),a[`use${l(e)}Query`]=t,a[`useLazy${l(e)}Query`]=r}if("mutation"===t.type){let t=T(e);c(a.endpoints[e],{useMutation:t}),a[`use${l(e)}Mutation`]=t}else if(u(t)){let{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}=P(e);c(a.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}),a[`use${l(e)}InfiniteQuery`]=t}}}}}))())},10708:(e,t,r)=>{"use strict";r.d(t,{J9:()=>a,Mc:()=>i,fD:()=>n});let n={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},10924:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(91497),i=r(7877),a=r(46685);function s(e){let t=(0,i.e)(e),r=[],s=e.length;for(let i=0;i<s;i++){let s=e[i];(0,n.WL)(s)||r.push((0,a.uT)(s,t))}return r}},11508:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},11783:(e,t,r)=>{"use strict";r.d(t,{V:()=>c,f:()=>p});var n=r(26241);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var a=r(31923),s=r(80514);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},a=[],s=0,c=t.replace(u,e=>(n.y.test(e)?(i.color.push(s),a.push(l),r.push(n.y.parse(e))):e.startsWith("var(")?(i.var.push(s),a.push("var"),r.push(e)):(i.number.push(s),a.push(o),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:c,indexes:i,types:a}}function d(e){return c(e).values}function f(e){let{split:t,types:r}=c(e),i=t.length;return e=>{let a="";for(let u=0;u<i;u++)if(a+=t[u],void 0!==e[u]){let t=r[u];t===o?a+=(0,s.a)(e[u]):t===l?a+=n.y.transform(e[u]):a+=e[u]}return a}}let h=e=>"number"==typeof e?0:n.y.test(e)?n.y.getAnimatableNone(e):e,p={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(a.S)?.length||0)+(e.match(i)?.length||0)>0},parse:d,createTransformer:f,getAnimatableNone:function(e){let t=d(e);return f(e)(t.map(h))}}},12305:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(6927),i=r(32602);function a(e,t="wei"){return(0,i.J)(e,n.eL[t])}},12355:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(60539);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.B4({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.B4({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function a(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},12392:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}
vendor: 7,037 bytes, line 2
2function a(e,t,n,a,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var o=new i(n,a||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),o.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=Array(a);i<a;i++)s[i]=n[i].fn;return s},o.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,i,a,s){var o=r?r+e:e;if(!this._events[o])return!1;var l,u,c=this._events[o],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,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,s),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(f=1,l=Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==t||i&&!o[l].once||n&&o[l].context!==n)&&u.push(o[l]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o},12531:(e,t,r)=>{"use strict";r.d(t,{FS:()=>n,Vj:()=>f,bQ:()=>s,bw:()=>i,eJ:()=>d,gD:()=>o,jd:()=>l,s6:()=>c,sy:()=>u,xr:()=>a});let n=[{code:"AF",name:"Afghanistan"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BW",name:"Botswana"},{code:"BR",name:"Brazil"},{code:"BN",name:"Brunei Darussalam"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"CV",name:"Cape Verde"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CO",name:"Colombia"},{code:"CG",name:"Congo"},{code:"CD",name:"Congo, Democratic Republic"},{code:"CR",name:"Costa Rica"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"EE",name:"Estonia"},{code:"ET",name:"Ethiopia"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GR",name:"Greece"},{code:"GT",name:"Guatemala"},{code:"GN",name:"Guinea"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MX",name:"Mexico"},{code:"MD",name:"Moldova"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar"},{code:"NA",name:"Namibia"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"NZ",name:"New Zealand"},{code:"NG",name:"Nigeria"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PA",name:"Panama"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"QA",name:"Qatar"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"RS",name:"Serbia"},{code:"SG",name:"Singapore"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"ZA",name:"South Africa"},{code:"KR",name:"South Korea"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"TW",name:"Taiwan"},{code:"TH",name:"Thailand"},{code:"TR",name:"Turkey"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],i={HOME:"/",SIGNUP:"/signup",SIGNIN:"/login",MANAGE:"/manage",SPOT:"/spot",HEDGE:"/overview",HEDGE_DETAILS:"/hedgeDetails",OTP_VERIFICATION:"/otpVerification",AFFILIATION:"/affiliation",RECORD:"/record",USER_KYC_DETAILS:"/user-kyc-detail
2s"},a={IS_RECONNECTED:"isReconnected",SIGN_TOKEN:"signToken",TOKEN:"token",CHART_LAST_USED_TIME_BASED_RESOLUTION:"chart.lastUsedTimeBasedResolution",CHART_LAST_USED_TIMEFRAME:"chart.lastUsedTimeFrame",CHART_INDICATORS:"chart.indicators",REMEMBERED_EMAIL:"rememberedEmail",GRAPH_SHOW:"graphShow",HEDGE_AMOUNT:"hedgeAmount",BITORIOORIO_COIN_STACKED:"BITORIOorioCoinsStacked",EMAIL:"email",REFERRAL:"referral",TERMS:"terms",REFERRAL_CODE:"referralCode"},s="passport_pending",o="passport_uploaded",l="selfie_pending",u="selfie_verified",c="selfie_uploaded",d="completed",f="rejected"},12679:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(e,t,r)=>r>t?t:r<e?e:r},12748:(e,t,r)=>{"use strict";r.d(t,{H2:()=>s,Ty:()=>i,u:()=>o,xO:()=>a});var n=r(76200);class i extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class a extends n.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class s extends n.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}n.C;class o extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},12932:(e,t,r)=>{"use strict";r.d(t,{N:()=>i,V:()=>a});var n=r(19342);class i extends n.C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class a extends n.C{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},13003:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(79313),i=r(58798),a=r(23414);let s="/docs/contract/encodeDeployData";function o(e){let{abi:t,args:r,bytecode:o}=e;if(!r||0===r.length)return o;let l=t.find(e=>"type"in e&&"constructor"===e.type);if(!l)throw new n.YW({docsPath:s});if(!("inputs"in l)||!l.inputs||0===l.inputs.length)throw new n.YF({docsPath:s});let u=(0,a.h)(l.inputs,r);return(0,i.aP)([o,u])}},13799:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var n=r(12392)},13800:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(1855);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.Vg({transaction:e})}},13847:(e,t,r)=>{"use strict";r.d(t,{N:()=>u,b:()=>l});var n=r(22859),i=r(16006),a=r(8481),s=r(2774),o=r(14867);async function l(e,t){return u(e,t)}async function u(e,t){let{block:r,chain:l=e.chain,request:u}=t||{};try{let t=l?.fees?.maxPriorityFeePerGas??l?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,a.T)(e,s.g,"getBlock")({}),i=await t({block:n,client:e,request:u});if(null===i)throw Error();return i}if(void 0!==t)return t;let n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.uU)(n)}catch{let[t,i]=await Promise.all([r?Promise.resolve(r):(0,a.T)(e,s.g,"getBlock")({}),(0,a.T)(e,o.L,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.pw;let l=i-t.baseFeePerGas;if(l<0n)return 0n;return l}}},13895:(e,t,r)=>{"use strict";r.d(t,{secp256k1:()=>eT});var n=r(62777),i=r(75439),a=r(23084);let s=BigInt(0),o=BigInt(1);function l(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function u(e){if(!l(e))throw Error("Uint8Array expected")}function c(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function d(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s:BigInt("0x"+e)}let h="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,p=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function m(e){if(u(e),h)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=p[e[r]];return t}let y={_0:48,_9:57,A:65,F:70,a:97,f:102};function b(e){return e>=y._0&&e<=y._9?e-y._0:e>=y.A&&e<=y.F?e-(y.A-10):e>=y.a&&e<=y.f?e-(y.a-10):void 0}function g(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(h)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;
vendor: 5,995 bytes, line 2
2t++,i+=2){let r=b(e.charCodeAt(i)),a=b(e.charCodeAt(i+1));if(void 0===r||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+a}return n}function v(e){return f(m(e))}function w(e){return u(e),f(m(Uint8Array.from(e).reverse()))}function E(e,t){return g(e.toString(16).padStart(2*t,"0"))}function P(e,t){return E(e,t).reverse()}function T(e,t,r){let n;if("string"==typeof t)try{n=g(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(l(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(e+" of length "+r+" expected, got "+i);return n}function C(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];u(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}let A=e=>"bigint"==typeof e&&s<=e;function S(e,t,r){return A(e)&&A(t)&&A(r)&&t<=e&&e<r}function _(e,t,r,n){if(!S(t,r,n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}let O=e=>(o<<BigInt(e))-o,k=e=>new Uint8Array(e),I=e=>Uint8Array.from(e),M={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||l(e),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 j(e,t,r={}){let n=(t,r,n)=>{let i=M[r];if("function"!=typeof i)throw Error("invalid validator function");let a=e[t];if((!n||void 0!==a)&&!i(a,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+a)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function R(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let a=e(r,...n);return t.set(r,a),a}}let B=BigInt(0),N=BigInt(1),D=BigInt(2),$=BigInt(3),F=BigInt(4),L=BigInt(5),q=BigInt(8);function U(e,t){let r=e%t;return r>=B?r:t+r}function z(e,t,r){let n=e;for(;t-- >B;)n*=n,n%=r;return n}function V(e,t){if(e===B)throw Error("invert: expected non-zero number");if(t<=B)throw Error("invert: expected positive modulus, got "+t);let r=U(e,t),n=t,i=B,a=N,s=N,o=B;for(;r!==B;){let e=n/r,t=n%r,l=i-s*e,u=a-o*e;n=r,r=t,i=s,a=o,s=l,o=u}if(n!==N)throw Error("invert: does not exist");return U(i,t)}function G(e,t){let r=(e.ORDER+N)/F,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw Error("Cannot find square root");return n}function H(e,t){let r=(e.ORDER-L)/q,n=e.mul(t,D),i=e.pow(n,r),a=e.mul(t,i),s=e.mul(e.mul(a,D),i),o=e.mul(a,e.sub(s,e.ONE));if(!e.eql(e.sqr(o),t))throw Error("Cannot find square root");return o}let K=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function W(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),a=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),a),n}function Q(e,t){let r=(e.ORDER-N)/D,n=e.pow(t,r),i=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),s=e.eql(n,e.neg(e.ONE));if(!i&&!a&&!s)throw Error("invalid Legendre symbol result");return i?1:a?0:-1}function Z(e,t){void 0!==t&&(0,a.Fe)(t);let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Y(e,t,r=!1,n={}){let i;if(e<=B)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:a,nByteLength:s}=Z(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let o=Object.freeze({ORDER:e,isLE:r,BITS:a,BYTES:s,MASK:O(a),ZERO:B,ONE:N,create:t=>U(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return B<=t&&t<e},is0:e=>e===B,isOdd:e=>(e&N)===N,neg:t=>U(-t,e),eql:(e,t)=>e===t,sqr:t=>U(t*t,e),add:(t,r)=>U(t+r,e),sub:(t,r)=>U(t-r,e),mul:(t,r)=>U(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<B)throw Error("invalid exponent, negatives unsupported");if(r===B)return e.ONE;if(r===N)return t;let n=e.ONE,i=t;for(;r>B;)r&N&&(n=e.mul(n,i)),i=e.sqr(i),r>>=N;return n})(o,e,t),div:(t,r)=>U(t*V(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>V(t,e),sqrt:n.sqrt||(t=>(i||(i=e%F===$?G:e%q===L?H:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-N,r=0;for(;t%D===B;)t/=D,r++;let n=D,i=Y(e);for(;1===Q(i,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return G;let a=i.pow(n,t),s=(t+N)/D;return function(e,n){if(e.is0(n))return n;if(1!==Q(e,n))throw Error("Cannot find square root");let i=r,o=e.mul(e.ONE,a),l=e.pow(n,t),u=e.pow(n,s);for(;!e.eql(l,e.ONE);){if(e.is0(l))return e.ZERO;let t=1,r=e.sqr(l);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=N<<BigInt(i-t-1),a=e.pow(o,n);i=t,o=e.sqr(a),l=e.mul(l,o),u=e.mul(u,a)}return u}}(e)),i(o,t))),toBytes:e=>r?P(e,s):E(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return r?w(e):v(e)},invertBatch:e=>W(o,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(o)}function X(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function J(e){let t=X(e);return t+Math.ceil(t/2)}let ee=BigInt(0),et=BigInt(1);function er(e,t){let r=t.negate();return e?r:t}function en(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function ei(e,t){en(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),i=2**e;return{windows:r,windowSize:n,mask:O(e),maxNumber:i,shiftBy:BigInt(e)}}function ea(e,t,r){let{windowSize:n,mask:i,maxNumber:a,shiftBy:s}=r,o=Number(e&i),l=e>>s;o>n&&(o-=a,l+=et);let u=t*n,c=u+Math.abs(o)-1,d=0===o;return{nextN:l,offset:c,isZero:d,isNeg:o<0,isNegF:t%2!=0,offsetF:u}}let es=new WeakMap,eo=new WeakMap;function el(e){return eo.get(e)||1}function eu(e){return j(e.Fp,K.reduce((e,t)=>
vendor: 17,395 bytes, line 2
2(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),j(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Z(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function ec(e){void 0!==e.lowS&&c("lowS",e.lowS),void 0!==e.prehash&&c("prehash",e.prehash)}class ed extends Error{constructor(e=""){super(e)}}let ef={Err:ed,_tlv:{encode:(e,t)=>{let{Err:r}=ef;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let n=t.length/2,i=d(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let a=n>127?d(i.length/2|128):"";return d(e)+a+i+t},decode(e,t){let{Err:r}=ef,n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");let i=t[n++],a=0;if(128&i){let e=127&i;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let s=t.subarray(n,n+e);if(s.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===s[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of s)a=a<<8|e;if(n+=e,a<128)throw new r("tlv.decode(long): not minimal encoding")}else a=i;let s=t.subarray(n,n+a);if(s.length!==a)throw new r("tlv.decode: wrong value length");return{v:s,l:t.subarray(n+a)}}},_int:{encode(e){let{Err:t}=ef;if(e<eh)throw new t("integer: negative integers are not allowed");let r=d(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=ef;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return v(e)}},toSig(e){let{Err:t,_int:r,_tlv:n}=ef,i=T("signature",e),{v:a,l:s}=n.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:o,l:l}=n.decode(2,a),{v:u,l:c}=n.decode(2,l);if(c.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(u)}},hexFromSig(e){let{_tlv:t,_int:r}=ef,n=t.encode(2,r.encode(e.r)),i=t.encode(2,r.encode(e.s));return t.encode(48,n+i)}},eh=BigInt(0),ep=BigInt(1),em=(BigInt(2),BigInt(3)),ey=BigInt(4),eb=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),eg=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ev=BigInt(0),ew=BigInt(1),ex=BigInt(2),eE=(e,t)=>(e+t/ex)/t,eP=Y(eb,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),a=BigInt(23),s=BigInt(44),o=BigInt(88),l=e*e*e%eb,u=l*l*e%eb,c=z(u,t,eb)*u%eb,d=z(c,t,eb)*u%eb,f=z(d,ex,eb)*l%eb,h=z(f,n,eb)*f%eb,p=z(h,i,eb)*h%eb,m=z(p,s,eb)*p%eb,y=z(m,o,eb)*m%eb,b=z(y,s,eb)*p%eb,g=z(b,t,eb)*u%eb,v=z(g,a,eb)*h%eb,w=z(v,r,eb)*l%eb,E=z(w,ex,eb);if(!eP.eql(eP.sqr(E),e))throw Error("Cannot find square root");return E}}),eT=function(e,t){let r=t=>(function(e){let t=function(e){let t=eu(e);return j(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n,nByteLength:i,nBitLength:a}=t,u=r.BYTES+1,d=2*r.BYTES+1;function f(e){return U(e,n)}let{ProjectivePoint:h,normPrivateKeyToScalar:p,weierstrassEquation:y,isWithinCurveOrder:b}=function(e){var t;let r=function(e){let t=eu(e);j(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:n}=r,i=Y(r.n,r.nBitLength),a=r.toBytes||((e,t,r)=>{let i=t.toAffine();return C(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),u=r.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 d(e){let{a:t,b:i}=r,a=n.sqr(e),s=n.mul(a,e);return n.add(n.add(s,n.mul(e,t)),i)}function f(e,t){let r=n.sqr(t),i=d(e);return n.eql(r,i)}if(!f(r.Gx,r.Gy))throw Error("bad curve params: generator point");let h=n.mul(n.pow(r.a,em),ey),p=n.mul(n.sqr(r.b),BigInt(27));if(n.is0(n.add(h,p)))throw Error("bad curve params: a or b");function y(e){let t,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:a,n:s}=r;if(n&&"bigint"!=typeof e){if(l(e)&&(e=m(e)),"string"!=typeof e||!n.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{t="bigint"==typeof e?e:v(T("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return a&&(t=U(t,s)),_("private key",t,ep,s),t}function b(e){if(!(e instanceof E))throw Error("ProjectivePoint expected")}let g=R((e,t)=>{let{px:r,py:i,pz:a}=e;if(n.eql(a,n.ONE))return{x:r,y:i};let s=e.is0();null==t&&(t=s?n.ONE:n.inv(a));let o=n.mul(r,t),l=n.mul(i,t),u=n.mul(a,t);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw Error("invZ was invalid");return{x:o,y:l}}),w=R(e=>{if(e.is0()){if(r.allowInfinityPoint&&!n.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:i}=e.toAffine();if(!n.isValid(t)||!n.isValid(i))throw Error("bad point: x or y not FE");if(!f(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class E{constructor(e,t,r){if(null==e||!n.isValid(e))throw Error("x required");if(null==t||!n.isValid(t)||n.is0(t))throw Error("y required");if(null==r||!n.isValid(r))throw Error("z required");this.px=e,this.py=t,this.pz=r,Object.freeze(this)}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 E)throw Error("projective point not allowed");let i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?E.ZERO:new E(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=W(n,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(E.fromAffine)}static fromHex(e){let t=E.fromAffine(u(T("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return E.BASE.multiply(y(e))}static msm(e,t){return function(e,t,r,n){if(!Array.isArray(r))throw Error("array expected");r.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)});if(!Array.isArray(n))throw Error("array of scalars expected");n.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)});let i=r.length,a=n.length;if(i!==a)throw Error("arrays of points and scalars must have equal length");let l=e.ZERO,u=function(e){let t;for(t=0;e>s;e>>=o,t+=1);return t}(BigInt(i)),c=1;u>12?c=u-3:u>4?c=u-2:u>0&&(c=2);let d=O(c),f=Array(Number(d)+1).fill(l),h=Math.floor((t.BITS-1)/c)*c,p=l;for(let e=h;e>=0;e-=c){f.fill(l);for(let t=0;t<a;t++){let i=Number(n[t]>>BigInt(e)&d);f[i]=f[i].add(r[t])}let t=l;for(let e=f.length-1,r=l;e>0;e--)r=r.add(f[e]),t=t.add(r);if(p=p.add(t),0!==e)for(let e=0;e<c;e++)p=p.double()}return p}(E,i,e,t)}_setWindowSize(e){k.setWindowSize(this,e)}assertValidity(){w(this)}hasEvenY(){let{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){b(e);let{px:t,py:r,pz:i}=this,{px:a,py:s,pz:o}=e,l=n.eql(n.mul(t,o),n.mul(a,i)),u=n.eql(n.mul(r,o),n.mul(s,i));return l&&u}negate(){return new E(this.px,n.neg(this.py),this.pz)}double(){let{a:e,b:t}=r,i=n.mul(t,em),{px:a,py:s,pz:o}=this,l=n.ZERO,u=n.ZERO,c=n.ZERO,d=n.mul(a,a),f=n.mul(s,s),h=n.mul(o,o),p=n.mul(a,s);return p=n.add(p,p),c=n.mul(a,o),c=n.add(c,c),l=n.mul(e,c),u=n.mul(i,h),u=n.add(l,u),l=n.sub(f,u),u=n.add(f,u),u=n.mul(l,u),l=n.mul(p,l),c=n.mul(i,c),h=n.mul(e,h),p=n.sub(d,h),p=n.mul(e,p),p=n.add(p,c),c=n.add(d,d),d=n.add(c,d),d=n.add(d,h),d=n.mul(d,p),u=n.add(u,d),h=n.mul(s,o),h=n.add(h,h),d=n.mul(h,p),l=n.sub(l,d),c=n.mul(h,f),c=n.add(c,c),new E(l,u,c=n.add(c,c))}add(e){b(e);let{px:t,py:i,pz:a}=this,{px:s,py:o,pz:l}=e,u=n.ZERO,c=n.ZERO,d=n.ZERO,f=r.a,h=n.mul(r.b,em),p=n.mul(t,s),m=n.mul(i,o),y=n.mul(a,l),g=n.add(t,i),v=n.add(s,o);g=n.mul(g,v),v=n.add(p,m),g=n.sub(g,v),v=n.add(t,a);let w=n.add(s,l);return v=n.mul(v,w),w=n.add(p,y),v=n.sub(v,w),w=n.add(i,a),u=n.add(o,l),w=n.mul(w,u),u=n.add(m,y),w=n.sub(w,u),d=n.mul(f,v),u=n.mul(h,y),d=n.add(u,d),u=n.sub(m,d),d=n.add(m,d),c=n.mul(u,d),m=n.add(p,p),m=n.add(m,p),y=n.mul(f,y),v=n.mul(h,v),m=n.add(m,y),y=n.sub(p,y),y=n.mul(f,y),v=n.add(v,y),p=n.mul(m,v),c=n.add(c,p),p=n.mul(w,v),u=n.mul(g,u),u=n.sub(u,p),p=n.mul(g,m),d=n.mul(w,d),new E(u,c,d=n.add(d,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(E.ZERO)}wNAF(e){return k.wNAFCached(this,e,E.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=r;_("scalar",e,eh,i);let a=E.ZERO;if(e===eh)return a;if(this.is0()||e===ep)return this;if(!t||k.hasPrecomputes(this))return k.wNAFCachedUnsafe(this,e,E.normalizeZ);let{k1neg:s,k1:o,k2neg:l,k2:u}=t.splitScalar(e),c=a,d=a,f=this;for(;o>eh||u>eh;)o&ep&&(c=c.add(f)),u&ep&&(d=d.add(f)),f=f.double(),o>>=ep,u>>=ep;return s&&(c=c.negate()),l&&(d=d.negate()),d=new E(n.mul(d.px,t.beta),d.py,d.pz),c.add(d)}multiply(e){let t,i,{endo:a,n:s}=r;if(_("scalar",e,ep,s),a){let{k1neg:r,k1:s,k2neg:o,k2:l}=a.splitScalar(e),{p:u,f:c}=this.wNAF(s),{p:d,f:f}=this.wNAF(l);u=k.constTimeNegate(r,u),d=k.constTimeNegate(o,d),d=new E(n.mul(d.px,a.beta),d.py,d.pz),t=u.add(d),i=c.add(f)}else{let{p:r,f:n}=this.wNAF(e);t=r,i=n}return E.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=E.BASE,i=(e,t)=>t!==eh&&t!==ep&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,r));return a.is0()?void 0:a}toAffine(e){return g(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=r;if(e===ep)return!0;if(t)return t(E,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=r;return e===ep?this:t?t(E,this):this.multiplyUnsafe(r.h)}toRawBytes(e=!0){return c("isCompressed",e),this.assertValidity(),a(E,this,e)}toHex(e=!0){return c("isCompressed",e),m(this.toRawBytes(e))}}E.BASE=new E(r.Gx,r.Gy,n.ONE),E.ZERO=new E(n.ZERO,n.ONE,n.ZERO);let{endo:P,nBitLength:A}=r,k=(t=P?Math.ceil(A/2):A,{constTimeNegate:er,hasPrecomputes:e=>1!==el(e),unsafeLadder(e,t,r=E.ZERO){let n=e;for(;t>ee;)t&et&&(r=r.add(n)),n=n.double(),t>>=et;return r},precomputeWindow(e,r){let{windows:n,windowSize:i}=ei(r,t),a=[],s=e,o=s;for(let e=0;e<n;e++){o=s,a.push(o);for(let e=1;e<i;e++)o=o.add(s),a.push(o);s=o.double()}return a},wNAF(e,r,n){let i=E.ZERO,a=E.BASE,s=ei(e,t);for(let e=0;e<s.windows;e++){let{nextN:t,offset:o,isZero:l,isNeg:u,isNegF:c,offsetF:d}=ea(n,e,s);n=t,l?a=a.add(er(c,r[d])):i=i.add(er(u,r[o]))}return{p:i,f:a}},wNAFUnsafe(e,r,n,i=E.ZERO){let a=ei(e,t);for(let e=0;e<a.windows&&n!==ee;e++){let{nextN:t,offset:s,isZero:o,isNeg:l}=ea(n,e,a);if(n=t,!o){let e=r[s];i=i.add(l?e.negate():e)}}return i},getPrecomputes(e,t,r){let n=es.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&es.set(t,r(n))),n},wNAFCached(e,t,r){let n=el(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let i=el(e);return 1===i?this.unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)},setWindowSize(e,r){en(r,t),eo.set(e,r),es.delete(e)}});return{CURVE:r,ProjectivePoint:E,normPrivateKeyToScalar:y,weierstrassEquation:d,isWithinCurveOrder:function(e){return S(e,ep,r.n)}}}({...t,toBytes(e,t,n){let i=t.toAffine(),a=r.toBytes(i.x);return(c("isCompressed",n),n)?C(Uint8Array.from([t.hasEvenY()?2:3]),a):C(Uint8Array.from([4]),a,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],i=e.subarray(1);if(t===u&&(2===n||3===n)){let e,t=v(i);if(!S(t,ep,r.ORDER))throw Error("Point is not on curve");let a=y(t);try{e=r.sqrt(a)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&n)==1!=((e&ep)===ep)&&(e=r.neg(e)),{x:t,y:e}}if(t===d&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw Error("invalid Point, expected length of "+u+", or uncompressed "+d+", got "+t)}}),A=(e,t,r)=>v(e.slice(t,r));class M{constructor(e,t,r){_("r",e,ep,n),_("s",t,ep,n),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){return new M(A(e=T("compactSignature",e,2*i),0,i),A(e,i,2*i))}static fromDER(e){let{r:t,s:r}=ef.toSig(T("DER",e));return new M(t,r)}assertValidity(){}addRecoveryBit(e){return new M(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:a,recovery:s}=this,o=$(T("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let l=2===s||3===s?i+t.n:i;if(l>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&s)==0?"02":"03",c=h.fromHex(u+m(E(l,r.BYTES))),d=V(l,n),p=f(-o*d),y=f(a*d),b=h.BASE.multiplyAndAddUnsafe(c,p,y);if(!b)throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return this.s>n>>ep}normalizeS(){return this.hasHighS()?new M(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return g(this.toDERHex())}toDERHex(){return ef.hexFromSig(this)}toCompactRawBytes(){return g(this.toCompactHex())}toCompactHex(){return m(E(this.r,i))+m(E(this.s,i))}}function B(e){if("bigint"==typeof e)return!1;if(e instanceof h)return!0;let n=T("key",e).length,a=r.BYTES,s=a+1;if(!t.allowedPrivateKeyLengths&&i!==s)return n===s||n===2*a+1}let D=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=v(e),r=8*e.length-a;return r>0?t>>BigInt(r):t},$=t.bits2int_modN||function(e){return f(D(e))},F=O(a);function L(e){return _("num < 2^"+a,e,eh,F),E(e,i)}let q={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};return h.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return h.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===B(e))throw Error("first arg must be private key");if(!1===B(t))throw Error("second arg must be public key");return h.fromHex(t).multiply(p(e)).toRawBytes(r)},sign:function(e,i,a=q){let{seed:s,k2sig:o}=function(e,i,a=q){if(["recovered","canonical"].some(e=>e in a))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:o}=t,{lowS:l,prehash:u,extraEntropy:c}=a;null==l&&(l=!0),e=T("msgHash",e),ec(a),u&&(e=T("prehashed msgHash",s(e)));let d=$(e),m=p(i),y=[L(m),L(d)];if(null!=c&&!1!==c){let e=!0===c?o(r.BYTES):c;y.push(T("extraEntropy",e))}return{seed:C(...y),k2sig:function(e){var t;let r=D(e);if(!b(r))return;let i=V(r,n),a=h.BASE.multiply(r).toAffine(),s=f(a.x);if(s===eh)return;let o=f(i*f(d+s*m));if(o===eh)return;let u=2*(a.x!==s)|Number(a.y&ep),c=o;return l&&o>n>>ep&&(c=(t=o)>n>>ep?f(-t):t,u^=1),new M(s,c,u)}}}(e,i,a);return(function(e,t,r){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 r)throw Error("hmacFn must be a function");let n=k(e),i=k(e),a=0,s=()=>{n.fill(1),i.fill(0),a=0},o=(...e)=>r(i,n,...e),l=(e=k(0))=>{i=o(I([0]),e),n=o(),0!==e.length&&(i=o(I([1]),e),n=o())},u=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=o()).slice();r.push(t),e+=n.length}return C(...r)};return(e,t)=>{let r;for(s(),l(e);!(r=t(u()));)l();return s(),r}})(t.hash.outputLen,t.nByteLength,t.hmac)(s,o)},verify:function(e,r,i,a=z){let s,o;r=T("msgHash",r),i=T("publicKey",i);let{lowS:u,prehash:c,format:d}=a;if(ec(a),"strict"in a)throw Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw Error("format must be compact or der");let p="string"==typeof e||l(e),m=!p&&!d&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!p&&!m)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(m&&(o=new M(e.r,e.s)),p){try{"compact"!==d&&(o=M.fromDER(e))}catch(e){if(!(e instanceof ef.Err))throw e}o||"der"===d||(o=M.fromCompact(e))}s=h.fromHex(i)}catch(e){return!1}if(!o||u&&o.hasHighS())return!1;c&&(r=t.hash(r));let{r:y,s:b}=o,g=$(r),v=V(b,n),w=f(g*v),E=f(y*v),P=h.BASE.multiplyAndAddUnsafe(s,w,E)?.toAffine();return!!P&&f(P.x)===y},ProjectivePoint:h,Signature:M,utils:{isValidPrivateKey(e){try{return p(e),!0}catch(e){return!1}},normPrivateKeyToScalar:p,randomPrivateKey:()=>{let e=J(t.n);return function(e,t,r=!1){let n=e.length,i=X(t),a=J(t);if(n<16||n<a||n>1024)throw Error("expected "+a+"-1024 bytes of input, got "+n);let s=U(r?w(e):v(e),t-N)+N;return r?P(s,i):E(s,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=h.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,...{hash:t,hmac:(e,...r)=>(0,i.w)(t,e,(0,a.Id)(...r)),randomBytes:a.po}});return{...r(t),create:r}}({a:ev,b:BigInt(7),Fp:eP,n:eg,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-ew*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=eE(t*e,eg),s=eE(-r*e,eg),o=U(e-a*t-s*n,eg),l=U(-a*r-s*t,eg),u=o>i,c=l>i;
2if(u&&(o=eg-o),c&&(l=eg-l),o>i||l>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:o,k2neg:c,k2:l}}}},n.sc)},14e3:(e,t,r)=>{e.exports=r(95092)},14159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let n=r(88365)._(r(14232)),i=n.default.createContext(null);function a(e){let t=(0,n.useContext)(i);t&&t(e)}},14237:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(58798),i=r(23414),a=r(79313),s=r(35794),o=r(52346),l=r(96019);let u="/docs/contract/encodeFunctionData";function c(e){let{args:t}=e,{abi:r,functionName:c}=(()=>{if(1===e.abi.length&&e.functionName?.startsWith("0x"))return e;let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,l.iY)({abi:t,args:r,name:n});if(!e)throw new a.Iz(n,{docsPath:u});i=e}if("function"!==i.type)throw new a.Iz(void 0,{docsPath:u});return{abi:[i],functionName:(0,s.V)((0,o.B)(i))}})(),d=r[0],f="inputs"in d&&d.inputs?(0,i.h)(d.inputs,t??[]):void 0;return(0,n.aP)([c,f??"0x"])}},14867:(e,t,r)=>{"use strict";async function n(e){return BigInt(await e.request({method:"eth_gasPrice"}))}r.d(t,{L:()=>n})},15488:(e,t,r)=>{"use strict";r.d(t,{Ez:()=>s,LX:()=>n,WN:()=>i,fT:()=>a});let n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",a
vendor: 3,374 bytes, line 2
2="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",
2s="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
2150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},16006:(e,t,r)=>{"use strict";r.d(t,{IQ:()=>d,ME:()=>c,Nx:()=>u,Sl:()=>o,uU:()=>l});var n=r(12748),i=r(38047),a=r(49154),s=r(26715);function o(e,{size:t}){if((0,i.E)(e)>t)throw new n.u({givenSize:(0,i.E)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&o(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let r=e;if(t.size&&(o(r,{size:t.size}),r=(0,a.B)(r)),"0x00"===(0,a.B)(r))return!1;if("0x01"===(0,a.B)(r))return!0;throw new n.H2(r)}function c(e,t={}){return Number(l(e,t))}function d(e,t={}){let r=(0,s.aT)(e);return t.size&&(o(r,{size:t.size}),r=(0,a.B)(r,{dir:"right"})),new TextDecoder().decode(r)}},16053:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>a,NV:()=>s,ii:()=>i});var n=r(76200);class i extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class a extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class s extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},16167:(e,t,r)=>{"use strict";r.d(t,{HF:()=>u,aj:()=>o,gC:()=>s,nM:()=>a,nk:()=>i,xU:()=>l});var n=r(19342);class i extends n.C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class a extends n.C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class s extends n.C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}n.C;class o extends n.C{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class l extends n.C{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends n.C{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},17191:(e,t,r)=>{"use strict";r.d(t,{lY:()=>w});var n=r(71090),i=r(23084);let a=BigInt(0),s=BigInt(1),o=BigInt(2),l=BigInt(7),u=BigInt(256),c=BigInt(113),d=[],f=[],h=[];for(let e=0,t=s,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),f.push((e+1)*(e+2)/2%64);let i=a;for(let e=0;e<7;e++)(t=(t<<s^(t>>l)*c)%u)&o&&(i^=s<<(s<<BigInt(e))-s);h.push(i)}let p=(0,n.lD)(h,!0),m=p[0],y=p[1],b=(e,t,r)=>r>32?(0,n.WM)(e,t,r):(0,n.P5)(e,t,r),g=(e,t,r)=>r>32?(0,n.im)(e,t,r):(0,n.B4)(e,t,r);class v extends i.Vw{constructor(e,t,r,n=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=a,(0,i.Fe)(r),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.fd)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],s=r[i+1],o=b(a,s,1)^r[n],l=g(a,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=f[r],a=b(t,i,n),s=g(t,i,n),o=d[r];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=y[n]}(0,i.uH)(r)}(this.state32,this.rounds),(0,i.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.CC)(this),e=(0,i.ZJ)(e),(0,i.DO)(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let a=Math.min(t-this.pos,n-i);for(let t=0;t<a;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,i.CC)(this,!1),(0,i.DO)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.Ht)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:a}=this;return e||(e=new v(t,r,n,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=a,e.destroyed=this.destroyed,e}}let w=(()=>(0,i.qj)(()=>new v(136,1,32)))()},17454:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={}},17595:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},17830:(e,t,r)=>{"use strict";r.d(t,{Hi:()=>i,ft:()=>a,uj:()=>o});var n=r(76200);class i extends n.C{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class a extends n.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentC
2onflictError"})}}function s(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
3`,"")}function o(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
4`;return r.nonce&&(n+=`      nonce: ${r.nonce}
5`),r.balance&&(n+=`      balance: ${r.balance}
6`),r.code&&(n+=`      code: ${r.code}
7`),r.state&&(n+="      state:\n",n+=s(r.state)),r.stateDiff&&(n+="      stateDiff:\n",n+=s(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}},17963:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14232);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};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"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:r,strokeWidth:l?24*Number(o)/Number(s):o,className:i("lucide",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:o,...l}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...l})});return r.displayName="".concat(e),r}},18070:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(90089),i=r(37149),a=new class extends n.Q{#f=!0;#h;#p;constructor(){super(),this.#p=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#h||this.setEventListener(this.#p)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#p=e,this.#h?.(),this.#h=e(this.setOnline.bind(this))}setOnline(e){this.#f!==e&&(this.#f=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#f}}},18444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(34318).unstable_rethrow;("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)},18847:(e,t,r)=>{e.exports=r(52496)},18912:(e,t,r)=>{"use strict";r.d(t,{CL:()=>l,D5:()=>c,Di:()=>f,G1:()=>I,Gi:()=>u,L5:()=>A,MI:()=>j,RV:()=>P,Sf:()=>E,WT:()=>S,XU:()=>o,YW:()=>m,ab:()=>y,bq:()=>d,cg:()=>O,ch:()=>C,hA:()=>h,hl:()=>_,jz:()=>M,qZ:()=>p,s0:()=>b,sV:()=>w,uL:()=>k,vx:()=>v,xQ:()=>g,xq:()=>T});var n=r(76200),i=r(36262);class a extends n.C{constructor(e,{code:t,docsPath:r,metaMessages:n,name:a,shortMessage:s}){super(s,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof i.J8?e.code:t??-1}}class s extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends a{constructor(e){super(e,{code:o.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends a{constructor(e){super(e,{code:l.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends a{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends a{constructor(e){super(e,{code:c.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});
7class h extends a{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends a{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends a{constructor(e,{method:t}={}){super(e,{code:y.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends a{constructor(e){super(e,{code:b.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends a{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends s{constructor(e){super(e,{code:v.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends s{constructor(e){super(e,{code:w.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends s{constructor(e,{method:t}={}){super(e,{code:E.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class P extends s{constructor(e){super(e,{code:P.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class T extends s{constructor(e){super(e,{code:T.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class C extends s{constructor(e){super(e,{code:C.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class A extends s{constructor(e){super(e,{code:A.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class S extends s{constructor(e){super(e,{code:S.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class _ extends s{constructor(e){super(e,{code:_.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class O extends s{constructor(e){super(e,{code:O.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class k extends s{constructor(e){super(e,{code:k.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class I extends s{constructor(e){super(e,{code:I.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
7);class M extends s{constructor(e){super(e,{code:M.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class j extends a{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},19031:(e,t,r)=>{"use strict";r.d(t,{W:()=>u});var n=r(10708),i=r(79313),a=r(66320),s=r(35794),o=r(42802),l=r(52346);function u(e){let{abi:t,data:r}=e,u=(0,a.di)(r,0,4);if("0x"===u)throw new i.O;let c=[...t||[],n.Mc,n.J9].find(e=>"error"===e.type&&u===(0,s.V)((0,l.B)(e)));if(!c)throw new i.Wq(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,o.n)(c.inputs,(0,a.di)(r,4)):void 0,errorName:c.name}}},19342:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n,i,a=r(82421),s=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class o extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${a.r}`}constructor(e,t={}){super(),n.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof o&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return s(this,n,"m",i).call(this,this,e)}}n=new WeakSet,i=function e(t,r){return r?.(t)?t:t.cause?s(this,n,"m",e).call(this,t.cause,r):t}},19532:(e,t,r)=>{"use strict";r.d(t,{C:()=>p});var n=r(93778),i=r(15488),a=r(79313),s=r(76200),o=r(57353),l=r(94833),u=r(14237),c=r(49048),d=r(66655),f=r(8481),h=r(75977);async function p(e,t){let{account:r,authorizationList:p,allowFailure:m=!0,blockNumber:y,blockOverrides:b,blockTag:g,stateOverride:v}=t,w=t.contracts,{batchSize:E=t.batchSize??1024,deployless:P=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},T=(()=>{if(t.multicallAddress)return t.multicallAddress;if(P)return null;if(e.chain)return(0,c.M)({blockNumber:y,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),C=[[]],A=0,S=0;for(let e=0;e<w.length;e++){let{abi:t,address:n,args:i,functionName:a}=w[e];try{let e=(0,u.p)({abi:t,args:i,functionName:a});S+=(e.length-2)/2,E>0&&S>E&&C[A].length>0&&(A++,S=(e.length-2)/2,C[A]=[]),C[A]=[...C[A],{allowFailure:!0,callData:e,target:n}]}catch(s){let e=(0,d.j)(s,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:a,sender:r});if(!m)throw e;C[A]=[...C[A],{allowFailure:!0,callData:"0x",target:n}]}}let _=await Promise.allSettled(C.map(t=>(0,f.T)(e,h.J,"readContract")({...null===T?{code:i.Ez}:{address:T},abi:n.v2,account:r,args:[t],authorizationList:p,blockNumber:y,blockOverrides:b,blockTag:g,functionName:"aggregate3",stateOverride:v}))),O=[];for(let e=0;e<_.length;e++){let t=_[e];if("rejected"===t.status){if(!m)throw t.reason;for(let r=0;r<C[e].length;r++)O.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:n,success:i}=r[t],{callData:s}=C[e][t],{abi:u,address:c,functionName:f,args:h}=w[O.length];try{if("0x"===s)throw new a.O;if(!i)throw new o.$S({data:n});let e=(0,l.e)({abi:u,args:h,data:n,functionName:f});O.push(m?{result:e,status:"success"}:e)}catch(t){let e=(0,d.j)(t,{abi:u,address:c,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!m)throw e;O.push({error:e,result:void 0,status:"failure"})}}}if(O.length!==w.length)throw new s.C("multicall results mismatch");return O}},19953:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(76200),i=r(98877);function a(e,t){let r=(e.details||"").toLowerCase(),a=e instanceof n.C?e.walk(e=>e?.code===i.A7.code):e;return a instanceof n.C?new i.A7({cause:e,message:a.details}):i.A7.nodeMessage.test(r)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(r)?new i.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.jj.nodeMessage.test(r)?new i.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.K0.nodeMessage.test(r)?new i.K0({cause:e,nonce:t?.nonce}):i.Oh.nodeMessage.test(r)?new i.Oh({cause:e,nonce:t?.nonce}):i.vW.nodeMessage.test(r)?new i.vW({cause:e,nonce:t?.nonce}):i.k5.nodeMessage.test(r)?new i.k5({cause:e}):i.lY.nodeMessage.test(r)?new i.lY({cause:e,gas:t?.gas}):i.Fo.nodeMessage.test(r)?new i.Fo({cause:e,gas:t?.gas}):i.uC.nodeMessage.test(r)?new i.uC({cause:e}):i.lN.nodeMessage.test(r)?new i.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.RM({cause:e})}},20289:(e,t,r)=>{"use strict";r.d(t,{T:()=>c});var n=r(8922),i=r(39151),a=r(32942),s=r(12355),o=r(38047),l=r(26715),u=r(81645);function c(e){let{data:t,kzg:r,to:c}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,l.aT)(e.data):e.data,n=(0,o.E)(r);if(!n)throw new a.zF;if(n>761855)throw new a.iq({maxSize:761855,size:n});let i=[],c=!0,d=0;for(;c;){let e=(0,s.l)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(d,d+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),c=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.My)(e.bytes))}({data:t,to:c}),f=e.commitments??(0,n.S)({blobs:d,kzg:r,to:c}),h=e.proofs??(0,i.t)({blobs:d,commitments:f,kzg:r,to:c}),p=[];for(let e=0;e<d.length;e++)p.push({blob:d[e],commitment:f[e],proof:h[e]});return p}},21407:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,s:()=>s});var n=r(60388),i=r(46305),a=r(48149),s=class extends i.k{#m;#a;#y;constructor(e){super(),this.mutationId=e.mutationId,this.#a=e.mutationCache,this.#m=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#m.includes(e)||(this.#m.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#m=this.#m.filter(t=>t!==e),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#m.length||("pending"===this.state.status?this.scheduleGc():this.#a.remove(this))}continue(){return this.#y?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#b({type:"continue"})};this.#y=(0,a.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#b({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#b({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});let r="pending"===this.state.status,n=!this.#y.canStart();try{if(r)t();else{this.#b({type:"pending",variables:e,isPaused:n}),await this.#a.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#b({type:"pending",context:t,variables:e,isPaused:n})}let i=await this.#y.start();return await this.#a.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#a.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#b({type:"success",data:i}),i}catch(t){try{throw await this.#a.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#a.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#b({type:"error",error:t})}}finally{this.#a.runNext(this)}}#b(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
7case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#m.forEach(t=>{t.onMutationUpdate(e)}),this.#a.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21853:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=(e,t,r)=>e+(t-e)*r},22729:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(66585);function i(e){return"function"===e.type?`function ${e.name}(${(0,n.Q)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,n.Q)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.Q)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.Q)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.Q)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},22859:(e,t,r)=>{"use strict";r.d(t,{RR:()=>o,pw:()=>s,sM:()=>a});var n=r(5639),i=r(76200);class a extends i.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class s extends i.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class o extends i.C{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.Q)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},23084:(e,t,r)=>{"use strict";r.d(t,{Vw:()=>T,DO:()=>s,CC:()=>l,sd:()=>o,Fe:()=>a,Ht:()=>u,My:()=>b,uH:()=>d,Id:()=>P,qj:()=>C,O8:()=>f,aT:()=>w,aY:()=>i,po:()=>A,Ow:()=>h,fd:()=>p,ZJ:()=>E,DH:()=>c});let n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function a(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function s(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");a(e.outputLen),a(e.blockLen)}function l(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function u(e,t){s(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}function c(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function d(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function f(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function h(e,t){return e<<32-t|e>>>t}let p=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},m="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,y=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function b(e){if(s(e),m)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=y[e[r]];return t}let g={_0:48,_9:57,A:65,F:70,a:97,f:102};function v(e){return e>=g._0&&e<=g._9?e-g._0:e>=g.A&&e<=g.F?e-(g.A-10):e>=g.a&&e<=g.f?e-(g.a-10):void 0}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(m)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=v(e.charCodeAt(i)),a=v(e.charCodeAt(i+1));if(void 0===r||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+a}return n}function E(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),s(e),e}function P(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];s(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class T{}function C(e){let t=t=>e().update(E(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function A(e=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));if(n&&"function"==typeof n.randomBytes)return Uint8Array.from(n.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},23414:(e,t,r)=>{"use strict";r.d(t,{h:()=>p,k:()=>y});
7var n=r(79313),i=r(45755),a=r(76200),s=r(12748),o=r(57512),l=r(58798),u=r(80403),c=r(38047),d=r(66320),f=r(81645),h=r(3796);function p(e,t){if(e.length!==t.length)throw new n.YE({expectedLength:e.length,givenLength:t.length});let r=m(function({params:e,values:t}){let r=[];for(let p=0;p<e.length;p++)r.push(function e({param:t,value:r}){let p=y(t.type);if(p){let[i,a]=p;return function(t,{length:r,param:i}){let a=null===r;if(!Array.isArray(t))throw new n.dm(t);if(!a&&t.length!==r)throw new n.Nc({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let s=!1,o=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(s=!0),o.push(n)}if(a||s){let e=m(o);if(a){let t=(0,f.cK)(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?(0,l.xW)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.xW)(o.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let a=0;a<r.components.length;a++){let s=r.components[a],o=Array.isArray(t)?a:s.name,l=e({param:s,value:t[o]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?m(i):(0,l.xW)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type){var b=r;if(!(0,o.P)(b))throw new i.M({address:b});return{dynamic:!1,encoded:(0,u.db)(b.toLowerCase())}}if("bool"===t.type){var g=r;if("boolean"!=typeof g)throw new a.C(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.db)((0,f.$P)(g))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=h.Ge.exec(t.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new s.Ty({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.cK)(e,{size:32,signed:t})}}(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,c.E)(e);if(!r){let t=e;return i%32!=0&&(t=(0,u.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.xW)([(0,u.db)((0,f.cK)(i,{size:32})),t])}}if(i!==Number.parseInt(r,10))throw new n.gH({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:(0,u.db)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type){var v=r;let e=(0,f.i3)(v),t=Math.ceil((0,c.E)(e)/32),n=[];for(let r=0;r<t;r++)n.push((0,u.db)((0,d.di)(e,32*r,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,l.xW)([(0,u.db)((0,f.cK)((0,c.E)(e),{size:32})),...n])}}throw new n.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[p],value:t[p]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function m(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,c.E)(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:s,encoded:o}=e[a];s?(r.push((0,f.cK)(t+i,{size:32})),n.push(o),i+=(0,c.E)(o)):r.push(o)}return(0,l.xW)([...r,...n])}function y(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},24802:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,s=n.useRef,o=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){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(!o){if(o=!0,a=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(a=e,t):(a=e,s=r)}var a,s,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return o(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},26241:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(61402),i=r(51983),a=r(81435);let s={test:e=>a.B.test(e)||n.u.test(e)||i.V.test(e),parse:e=>a.B.test(e)?a.B.parse(e):i.V.test(e)?i.V.parse(e):n.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?a.B.transform(e):i.V.transform(e),getAnimatableNone:e=>{let t=s.parse(e);return t.alpha=0,s.transform(t)}}},26715:(e,t,r)=>{"use strict";r.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>f});var n=r(76200),i=r(65859),a=r(80403),s=r(16006),o=r(81645);let l=new TextEncoder;function u(e,t={}){var r,n;return"number"==typeof e||"bigint"==typeof e?(r=e,n=t,f((0,o.cK)(r,n))):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,s.Sl)(r,{size:t.size}),(0,a.eV)(r,{size:t.size})):r}(e,t):(0,i.q)(e)?f(e,t):h(e,t)}let c={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=c.zero&&e<=c.nine?e-c.zero:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function f(e,t={}){let r=e;t.size&&((0,s.Sl)(r,{size:t.size}),r=(0,a.eV)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let o=i.length/2,l=new Uint8Array(o);for(let e=0,t=0;e<o;e++){let r=d(i.charCodeAt(t++)),a=d(i.charCodeAt(t++));if(void 0===r||void 0===a)throw new n.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*r+a}return l}function h(e,t={}){let r=l.encode(e);return"number"==typeof t.size?((0,s.Sl)(r,{size:t.size}),(0,a.eV)(r,{dir:"right",size:t.size})):r}},26949:(e,t,r)=>{"use strict";r.d(t,{b:()=>function e(t,r){if(t===r)return!0;
7if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,i;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!==r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if("function"==typeof t.valueOf&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()===r.toString();let a=Object.keys(t);if((n=a.length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.hasOwn(r,a[i]))return!1;for(i=n;0!=i--;){let n=a[i];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}})},27212:(e,t,r)=>{"use strict";r.d(t,{N:()=>g});var n=r(37876),i=r(14232),a=r(5048),s=r(91200),o=r(50181),l=r(3866),u=r(7990),c=r(39751);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,u.s)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:r,root:a}){let s=(0,i.useId)(),o=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(c.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:c,right:d}=l.current;if(t||!o.current||!e||!n)return;let f="left"===r?`left: ${c}`:`right: ${d}`;o.current.dataset.motionPopId=s;let h=document.createElement("style");u&&(h.nonce=u);let p=a??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(`
8          [data-motion-pop-id="${s}"] {
9            position: absolute !important;
10            width: ${e}px !important;
11            height: ${n}px !important;
12            ${f}px !important;
13            top: ${i}px !important;
14          }
15        `),()=>{p.contains(h)&&p.removeChild(h)}},[t]),(0,n.jsx)(d,{isPresent:t,childRef:o,sizeRef:l,children:i.cloneElement(e,{ref:o})})}let h=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:o,presenceAffectsLayout:u,mode:c,anchorX:d,root:h})=>{let m=(0,s.M)(p),y=(0,i.useId)(),b=!0,g=(0,i.useMemo)(()=>(b=!1,{id:y,initial:t,isPresent:r,custom:o,onExitComplete:e=>
15{for(let t of(m.set(e,!0),m.values()))if(!t)return;a&&a()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[r,m,a]);return u&&b&&(g={...g}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[r]),i.useEffect(()=>{r||m.size||!a||a()},[r]),"popLayout"===c&&(e=(0,n.jsx)(f,{isPresent:r,anchorX:d,root:h,children:e})),(0,n.jsx)(l.t.Provider,{value:g,children:e})};function p(){return new Map}var m=r(83885);let y=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let g=({children:e,custom:t,initial:r=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:f="left",root:p})=>{let[g,v]=(0,m.xQ)(d),w=(0,i.useMemo)(()=>b(e),[e]),E=d&&!g?[]:w.map(y),P=(0,i.useRef)(!0),T=(0,i.useRef)(w),C=(0,s.M)(()=>new Map),[A,S]=(0,i.useState)(w),[_,O]=(0,i.useState)(w);(0,o.E)(()=>{P.current=!1,T.current=w;for(let e=0;e<_.length;e++){let t=y(_[e]);E.includes(t)?C.delete(t):!0!==C.get(t)&&C.set(t,!1)}},[_,E.length,E.join("-")]);let k=[];if(w!==A){let e=[...w];for(let t=0;t<_.length;t++){let r=_[t],n=y(r);E.includes(n)||(e.splice(t,0,r),k.push(r))}return"wait"===c&&k.length&&(e=k),O(b(e)),S(w),null}let{forceRender:I}=(0,i.useContext)(a.L);return(0,n.jsx)(n.Fragment,{children:_.map(e=>{let i=y(e),a=(!d||!!g)&&(w===_||E.includes(i));return(0,n.jsx)(h,{isPresent:a,initial:(!P.current||!!r)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:p,onExitComplete:a?void 0:()=>{if(!C.has(i))return;C.set(i,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(I?.(),O(T.current),d&&v?.(),l&&l())},anchorX:f,children:e},i)})})}},27761:(e,t,r)=>{"use strict";r.d(t,{X9:()=>s,s7:()=>i,x8:()=>a});var n=r(94817);class i extends n.C{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class a extends n.C{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class s extends n.C{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},28205:(e,t,r)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>i,Kq:()=>n})},28249:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},28501:(e,t,r)=>{"use strict";r.d(t,{Q:()=>v});var n=r(57616),i=r(76200),a=r(69595),s=r(81645),o=r(12305),l=r(5639),u=r(1855);class c extends i.C{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.aO)({from:t?.address,to:h,value:void 0!==p&&`${(0,o.c)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,l.Q)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,l.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.Q)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=r(98877),f=r(19953),h=r(35884),p=r(94770),m=r(45710),y=r(39575),b=r(5375),g=r(87291);async function v(e,t){let{account:r=e.account}=t,o=r?(0,n.J)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:u,blobVersionedHashes:c,blockNumber:d,blockTag:f,data:v,gas:w,gasPrice:E,maxFeePerBlobGas:P,maxFeePerGas:T,maxPriorityFeePerGas:C,nonce:A,value:S,stateOverride:_,...O}=await (0,b.ft)(e,{...t,parameters:o?.type==="local"?void 0:["blobVersionedHashes"]}),k=("bigint"==typeof d?(0,s.cK)(d):void 0)||f,I=(0,m.yH)(_),M=await (async()=>O.to?O.to:n&&n.length>0?await (0,a.g)({authorization:n[0]}).catch(()=>{throw new i.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,y.c)(t);let j=e.chain?.formatters?.transactionRequest?.format,R=(j||p.Bv)({...(0,h.o)(O,{format:j}),from:o?.address,accessList:r,authorizationList:n,blobs:u,blobVersionedHashes:c,data:v,gas:w,gasPrice:E,maxFeePerBlobGas:P,maxFeePerGas:T,maxPriorityFeePerGas:C,nonce:A,to:M,value:S});function l(t){let{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??e.experimental_blockTag??"latest",i]:r?[n,r]:[n]})}let B=BigInt(await l({block:k,request:R,rpcStateOverride:I}));if(n){let t=await (0,g.r)(e,{address:R.from}),r=await Promise.all(n.map(async e=>{let{address:r}=e,n=await l({block:k,request:{authorizationList:void 0,data:v,from:o?.address,to:r,value:(0,s.cK)(t)},rpcStateOverride:I}).catch(()=>100000n);
15return 2n*BigInt(n)}));B+=r.reduce((e,t)=>e+t,0n)}return B}catch(r){throw function(e,{docsPath:t,...r}){return new c((()=>{let t=(0,f.l)(e,r);return t instanceof d.RM?e:t})(),{docsPath:t,...r})}(r,{...t,account:o,chain:e.chain})}}},29540:(e,t,r)=>{"use strict";r.d(t,{Ij:()=>a,Ko:()=>i,N1:()=>n,mY:()=>s});let n=[{label:"Portfolio Value",value:"$24,892.45",change:"+12.3%",positive:!0,icon:"Wallet"},{label:"Active Hedge",value:"5",change:"+2",positive:!0,icon:"Shield"},{label:"Total Earnings",value:"$3,247.89",change:"+8.7%",positive:!0,icon:"DollarSign"},{label:"Today's Rebalancing ROI",value:"94.2%",change:"+1.5%",positive:!0,icon:"Target"}],i=[{label:"Create Hedge",icon:"Shield",color:"emerald",description:"Protect your assets",section:"hedge",href:"/hedge"},{label:"DEX Trade",icon:"Zap",color:"blue",description:"Swap tokens instantly",section:"dex",href:"/dexTrade"},{label:"DAO Vote",icon:"Users",color:"purple",description:"Participate in governance",section:"dao",href:"/daoVote"},{label:"Affiliation",icon:"Award",color:"orange",description:"Earn referral rewards",section:"affiliation",href:"/affiliation"}],a=[{id:"overview",label:"Overview",icon:"Home",color:"emerald",href:"/overview"},{id:"hedge",label:"Create Hedge",icon:"Shield",color:"blue",href:"/hedge"},{id:"dex",label:"DEX Trade",icon:"Zap",color:"purple",href:"/dexTrade"},{id:"affiliation",label:"Affiliation",icon:"Award",color:"orange",href:"/affiliation"},{id:"dao",label:"DAO Vote",icon:"Users",color:"teal",href:"/daoVote"}],s=[{id:"metamask",name:"MetaMask",icon:"\uD83E\uDD8A",description:"Most popular Ethereum wallet",installed:!1,downloadLink:"https://metamask.io/download.html",shareLink:"https://metamask.io/"},{id:"walletConnect",name:"WalletConnect",icon:"\uD83D\uDD17",description:"Connect with mobile wallets",installed:!0,downloadLink:"https://walletconnect.com/downloads",shareLink:"https://walletconnect.com/"},{id:"coinbase",name:"Coinbase Wallet",icon:"\uD83D\uDFE6",description:"Coinbase official wallet",installed:!1,downloadLink:"https://www.coinbase.com/wallet/downloads",shareLink:"https://www.coinbase.com/wallet"},{id:"trust",name:"Trust Wallet",icon:"\uD83D\uDEE1️",description:"Secure multi-chain wallet",installed:!1,downloadLink:"https://trustwallet.com/download",shareLink:"https://trustwallet.com/"},{id:"phantom",name:"Phantom",icon:"\uD83D\uDC7B",description:"Solana wallet support",installed:!1,downloadLink:"https://phantom.app/download",shareLink:"https://phantom.app/"}]},30026:(e,t,r)=>{"use strict";r.d(t,{F:()=>u});var n=r(26949);function i(e){let t=e.state.current,r=e.state.connections.get(t),n=r?.accounts,i=n?.[0],a=e.chains.find(e=>e.id===r?.chainId),s=e.state.status;switch(s){case"connected":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:s};case"reconnecting":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:s};case"connecting":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:s};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:s}}}var a=r(61511),s=r(14232),o=r(80127);let l=e=>"object"==typeof e&&!Array.isArray(e);function u(e={}){let t=(0,a.U)(e);return function(e,t,r=t,i=n.b){let a=(0,s.useRef)([]),u=(0,o.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(l(e)&&l(t)&&a.current.length){for(let r of a.current)if(!i(e[r],t[r]))return!1;return!0}return i(e,t)});return(0,s.useMemo)(()=>{if(l(u)){let e={...u},t={};for(let[r,n]of Object.entries(e))t={...t,[r]:{configurable:!1,enumerable:!0,get:()=>(a.current.includes(r)||a.current.push(r),n)}};return Object.defineProperties(e,t),e}return u},[u])}(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>i(e),r,{equalityFn(e,t){let{connector:r,...i}=e,{connector:a,...s}=t;return(0,n.b)(i,s)&&r?.id===a?.id&&r?.uid===a?.uid}})})(t,{onChange:e}),()=>i(t))}},30373:(e,t,r)=>{"use strict";function n(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}r.d(t,{K:()=>n})},30734:(e,t,r)=>{"use strict";r.d(t,{Zh:()=>l});var n=r(23414),i=r(58798),a=r(81645),s=r(74517),o=r(78393);function l(e){let{domain:t={},message:r,primaryType:n}=e,a={EIP712Domain:(0,o.H4)({domain:t}),...e.types};(0,o.$$)({domain:t,message:r,primaryType:n,types:a});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:a})),"EIP712Domain"!==n&&l.push(u({data:r,primaryType:n,types:a})),(0,s.S)((0,i.xW)(l))}function u({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let o=[{type:"bytes32"}],l=[function({primaryType:e,types:t}){let r=(0,a.nj)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),a=i?.[0];if(n.has(a)||void 0===r[a])return n;for(let t of(n.add(a),r[a]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,s.S)(r)}({primaryType:r,types:i})];for(let u of i[r]){let[r,c]=function t({types:r,name:i,type:o,value:l}){if(void 0!==r[o])return[{type:"bytes32"},(0,s.S)(e({data:l,primaryType:o,types:r}))];if("bytes"===o){let e=l.length%2?"0":"";return l=`0x${e+l.slice(2)}`,[{type:"bytes32"},(0,s.S)(l)]}if("string"===o)return[{type:"bytes32"},(0,s.S)((0,a.nj)(l))];if(o.lastIndexOf("]")===o.length-1){let e=o.slice(0,o.lastIndexOf("[")),a=l.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,s.S)((0,n.h)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:o},l]}
15({types:i,name:u.name,type:u.type,value:t[u.name]});o.push(r),l.push(c)}return(0,n.h)(o,l)}({data:e,primaryType:t,types:r});return(0,s.S)(i)}},31777:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>p,Pj:()=>g,bN:()=>c,d4:()=>E,vA:()=>P,wA:()=>v});var n=r(14232),i=r(87282),a={notify(){},get:()=>[]},s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,l=s||o?n.useLayoutEffect:n.useEffect;function u(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function c(e,t){if(u(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!u(e[r[n]],t[r[n]]))return!1;return!0}Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var d=Symbol.for("react-redux-context"),f="undefined"!=typeof globalThis?globalThis:{},h=function(){if(!n.createContext)return{};let e=f[d]??=new Map,t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}(),p=function(e){let{children:t,context:r,serverState:i,store:s}=e,o=n.useMemo(()=>{let e=function(e,t){let r,n=a,i=0,s=!1;function o(){c.onStateChange&&c.onStateChange()}function l(){if(i++,!r){let t,i;r=e.subscribe(o),t=null,i=null,n={clear(){t=null,i=null},notify(){let e=t;for(;e;)e.callback(),e=e.next},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:t=n,function(){r&&null!==t&&(r=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}}function u(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=a)}let c={addNestedSub:function(e){l();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),u())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,l())},tryUnsubscribe:function(){s&&(s=!1,u())},getListeners:()=>n};return c}(s);return{store:s,subscription:e,getServerState:i?()=>i:void 0}},[s,i]),u=n.useMemo(()=>s.getState(),[s]);return l(()=>{let{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==s.get
15State()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,u]),n.createElement((r||h).Provider,{value:o},t)};function m(e=h){return function(){return n.useContext(e)}}var y=m();function b(e=h){let t=e===h?y:m(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var g=b(),v=function(e=h){let t=e===h?g:b(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),w=(e,t)=>e===t,E=function(e=h){let t=e===h?y:m(e),r=(e,r={})=>{let{equalityFn:a=w}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:o,getServerState:l}=t();n.useRef(!0);let u=n.useCallback({[e.name]:t=>e(t)}[e.name],[e]),c=(0,i.useSyncExternalStoreWithSelector)(o.addNestedSub,s.getState,l||s.getState,u,a);return n.useDebugValue(c),c};return Object.assign(r,{withTypes:()=>r}),r}(),P=function(e){e()}},31923:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},32544:(e,t,r)=>{"use strict";r.d(t,{b:()=>c,o:()=>u});var n=r(45755),i=r(26715),a=r(74517),s=r(52474),o=r(57512);let l=new s.A(8192);function u(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,a.S)((0,i.Af)(r),"bytes"),s=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&n[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());let o=`0x${s.join("")}`;return l.set(`${e}.${t}`,o),o}function c(e,t){if(!(0,o.P)(e,{strict:!1}))throw new n.M({address:e});return u(e,t)}},32549:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(97594);function i(e){return(0,n.G)(e)&&"ownerSVGElement"in e}},32602:(e,t,r)=>{"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}r.d(t,{J:()=>n})},32942:(e,t,r)=>{"use strict";r.d(t,{PK:()=>l,iq:()=>a,uP:()=>o,zF:()=>s});var n=r(90153),i=r(76200);class a extends i.C{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class s extends i.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class o extends i.C{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class l extends i.C{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.E}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},33450:(e,t,r)=>{"use strict";r.d(t,{EH:()=>a,YE:()=>o,jF:()=>s,qD:()=>l,rj:()=>i});var n=r(76200);class i extends n.C{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class a extends n.C{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class s extends n.C{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class o extends n.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class l extends n.C{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
15" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},34009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return P},useLinkStatus:function(){return E}});let n=r(88365),i=r(37876),a=n._(r(14232)),s=r(84727),o=r(1623),l=r(170),u=r(70464),c=r(20125),d=r(242),f=r(63786),h=r(34327),p=r(9094),m=r(89203);r(35785);let y=new Set;function b(e,t,r,n){if((0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let v=a.default.forwardRef(function(e,t){let r,n,{href:l,as:y,children:v,prefetch:w=null,passHref:E,replace:P,shallow:T,scroll:C,locale:A,onClick:S,onNavigate:_,onMouseEnter:O,onTouchStart:k,legacyBehavior:I=!1,...M}=e;r=v,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let j=a.default.useContext(d.RouterContext),R=!1!==w,{href:B,as:N}=a.default.useMemo(()=>{if(!j){let e=g(l);return{href:e,as:y?g(y):e}}let[e,t]=(0,s.resolveHref)(j,l,!0);return{href:e,as:y?(0,s.resolveHref)(j,y):t||e}},[j,l,y]),D=a.default.useRef(B),$=a.default.useRef(N);I&&(n=a.default.Children.only(r));let F=I?n&&"object"==typeof n&&n.ref:t,[L,q,U]=(0,f.useIntersection)({rootMargin:"200px"}),z=a.default.useCallback(e=>{($.current!==N||D.current!==B)&&(U(),$.current=N,D.current=B),L(e)},[N,B,U,L]),V=(0,m.useMergedRef)(z,F);a.default.useEffect(()=>{j&&q&&R&&b(j,B,N,{locale:A})},[N,B,q,A,R,null==j?void 0:j.locale,j]);let G={ref:V,onClick(e){I||"function"!=typeof S||S(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),j&&(e.defaultPrevented||function(e,t,r,n,i,a,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,j,B,N,P,T,C,A,_))},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),j&&b(j,B,N,{locale:A,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof k||k(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),j&&b(j,B,N,{locale:A,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(N))G.href=N;else if(!I||E||"a"===n.type&&!("href"in n.props)){let e=void 0!==A?A:null==j?void 0:j.locale;G.href=(null==j?void 0:j.isLocaleDomain)&&(0,h.getDomainLocale)(N,e,null==j?void 0:j.locales,null==j?void 0:j.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(N,e,null==j?void 0:j.defaultLocale))}return I?a.default.cloneElement(n,G):(0,i.jsx)("a",{...M,...G,children:r})}),w=(0,a.createContext)({pending:!1}),E=()=>(0,a.useContext)(w),P=v;("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)},34318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,i.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(1677),i=r(40497);("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)},34327:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}
15Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(19783),("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)},34471:(e,t,r)=>{"use strict";r.d(t,{P:()=>iI});var n=r(14232);let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(i),s=e=>180*e/Math.PI,o=e=>u(s(Math.atan2(e[1],e[0]))),l={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:o,rotateZ:o,skewX:e=>s(Math.atan(e[1])),skewY:e=>s(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},u=e=>((e%=360)<0&&(e+=360),e),c=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),d=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:d,scale:e=>(c(e)+d(e))/2,rotateX:e=>u(s(Math.atan2(e[6],e[5]))),rotateY:e=>u(s(Math.atan2(-e[2],e[0]))),rotateZ:o,rotate:o,skewX:e=>s(Math.atan(e[4])),skewY:e=>s(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function h(e){return+!!e.includes("scale")}function p(e,t){let r,n;if(!e||"none"===e)return h(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=f,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=l,n=t}if(!n)return h(t);let a=r[t],s=n[1].split(",").map(m);return"function"==typeof a?a(s):s[a]}function m(e){return parseFloat(e.trim())}var y=r(58975);function b({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}var g=r(21853);function v(e){return void 0===e||1===e}function w({scale:e,scaleX:t,scaleY:r}){return!v(e)||!v(t)||!v(r)}function E(e){return w(e)||P(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function P(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function T(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function C(e,t=0,r=1,n,i){e.min=T(e.min,t,r,n,i),e.max=T(e.max,t,r,n,i)}function A(e,{x:t,y:r}){C(e.x,t.translate,t.scale,t.originPoint),C(e.y,r.translate,r.scale,r.originPoint)}function S(e,t){e.min=e.min+t,e.max=e.max+t}function _(e,t,r,n,i=.5){let a=(0,g.k)(e.min,e.max,i);C(e,t,r,a,n)}function O(e,t){_(e.x,t.x,t.scaleX,t.scale,t.originX),_(e.y,t.y,t.scaleY,t.scale,t.originY)}function k(e,t){return b(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let I=new Set(["width","height","top","left","right","bottom",...i]);var M=r(6882),j=r(36227);let R=e=>t=>t.test(e),B=[M.ai,j.px,j.KN,j.uj,j.vw,j.vh,{test:e=>"auto"===e,parse:e=>e}],N=e=>B.find(R(e));var D=r(37605);let $=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,L=e=>e===M.ai||e===j.px,q=new Set(["x","y","z"]),U=i.filter(e=>!q.has(e)),z={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>p(t,"x"),y:(e,{transform:t})=>p(t,"y")};z.translateX=z.x,z.translateY=z.y;var V=r(90050);let G=new Set,H=!1,K=!1,W=!1;function Q(){if(K){let e=Array.from(G).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return U.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}K=!1,H=!1,G.forEach(e=>e.complete(W)),G.clear()}
15function Z(){G.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(K=!0)})}class Y{constructor(e,t,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(G.add(this),H||(H=!0,V.Gt.read(Z),V.Gt.resolveKeyframes(Q))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),G.delete(this)}cancel(){"scheduled"===this.state&&(G.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let X=e=>/^0[^.\s]+$/u.test(e);var J=r(11783),ee=r(31923);let et=new Set(["brightness","contrast","saturate","opacity"]);function er(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ee.S)||[];if(!n)return e;let i=r.replace(n,""),a=+!!et.has(t);return n!==r&&(a*=100),t+"("+a+i+")"}let en=/\b([a-z-]*)\(.*?\)/gu,ei={...J.f,getAnimatableNone:e=>{let t=e.match(en);return t?t.map(er).join(" "):e}};var ea=r(26241);let es={...M.ai,transform:Math.round},eo={rotate:j.uj,rotateX:j.uj,rotateY:j.uj,rotateZ:j.uj,scale:M.hs,scaleX:M.hs,scaleY:M.hs,scaleZ:M.hs,skew:j.uj,skewX:j.uj,skewY:j.uj,distance:j.px,translateX:j.px,translateY:j.px,translateZ:j.px,x:j.px,y:j.px,z:j.px,perspective:j.px,transformPerspective:j.px,opacity:M.X4,originX:j.gQ,originY:j.gQ,originZ:j.px},el={borderWidth:j.px,borderTopWidth:j.px,borderRightWidth:j.px,borderBottomWidth:j.px,borderLeftWidth:j.px,borderRadius:j.px,radius:j.px,borderTopLeftRadius:j.px,borderTopRightRadius:j.px,borderBottomRightRadius:j.px,borderBottomLeftRadius:j.px,width:j.px,maxWidth:j.px,height:j.px,maxHeight:j.px,top:j.px,right:j.px,bottom:j.px,left:j.px,padding:j.px,paddingTop:j.px,paddingRight:j.px,paddingBottom:j.px,paddingLeft:j.px,margin:j.px,marginTop:j.px,marginRight:j.px,marginBottom:j.px,marginLeft:j.px,backgroundPositionX:j.px,backgroundPositionY:j.px,...eo,zIndex:es,fillOpacity:M.X4,strokeOpacity:M.X4,numOctaves:es},eu={...el,color:ea.y,backgroundColor:ea.y,outlineColor:ea.y,fill:ea.y,stroke:ea.y,borderColor:ea.y,borderTopColor:ea.y,borderRightColor:ea.y,borderBottomColor:ea.y,borderLeftColor:ea.y,filter:ei,WebkitFilter:ei},ec=e=>eu[e];function ed(e,t){let r=ec(e);return r!==ei&&(r=J.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let ef=new Set(["auto","none","0"]);class eh extends Y{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),(0,y.p)(n))){let i=function e(t,r,n=1){(0,D.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,a]=function(e){let t=F.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let e=s.trim();return $(e)?parseFloat(e):e}return(0,y.p)(a)?e(a,r,n+1):a}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!I.has(r)||2!==e.length)return;let[n,i]=e,a=N(n),s=N(i);if(a!==s)if(L(a)&&L(s))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else z[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;(null===e[t]||("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||X(n)))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!ef.has(t)&&(0,J.V)(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=ed(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=z[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
15h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let ep=e=>!!(e&&e.getVelocity);var em=r(84704),ey=r(43903);let eb=[...B,ea.y,J.f],{schedule:eg}=(0,r(76845).I)(queueMicrotask,!1);var ev=r(52433);let ew={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ex={};for(let e in ew)ex[e]={isEnabled:t=>ew[e].some(e=>!!t[e])};let eE=()=>({translate:0,scale:1,origin:0,originPoint:0}),eP=()=>({x:eE(),y:eE()}),eT=()=>({min:0,max:0}),eC=()=>({x:eT(),y:eT()});var eA=r(2205);let eS={current:null},e_={current:!1},eO=new WeakMap;function ek(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function eI(e){return"string"==typeof e||Array.isArray(e)}let eM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ej=["initial",...eM];function eR(e){return ek(e.animate)||ej.some(t=>eI(e[t]))}function eB(e){return!!(eR(e)||e.variants)}function eN(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function eD(e,t,r,n){if("function"==typeof t){let[i,a]=eN(n);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=eN(n);t=t(void 0!==r?r:e.custom,i,a)}return t}let e$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eF{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Y,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=em.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.Gt.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=eR(t),this.isVariantNode=eB(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==o[e]&&ep(t)&&t.set(o[e])}}mount(e){this.current=e,eO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),e_.current||function(){if(e_.current=!0,eA.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eS.current=e.matches;e.addEventListener("change",t),t()}else eS.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eS.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,V.WG)(this.notifyUpdate),(0,V.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=a.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&V.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ex){let t=ex[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
15t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<e$.length;t++){let r=e$[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if(ep(i))e.addValue(n,i);else if(ep(a))e.addValue(n,(0,ey.OQ)(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,(0,ey.OQ)(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,ey.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&($(r)||X(r)))r=parseFloat(r);else{let n;n=r,!eb.find(R(n))&&J.f.test(t)&&(r=ed(e,t))}this.setBaseTarget(e,ep(r)?r.get():r)}return ep(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=eD(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||ep(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ev.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eg.render(this.render)}}class eL extends eF{constructor(){super(...arguments),this.KeyframeResolver=eh}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ep(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let eq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ez=i.length;function eV(e,t,r){let{style:n,vars:s,transformOrigin:o}=e,l=!1,u=!1;for(let e in t){let r=t[e];if(a.has(e)){l=!0;continue}if((0,y.j)(e)){s[e]=r;continue}{let t=eq(r,el[e]);e.startsWith("origin")?(u=!0,o[e]=t):n[e]=t}}if(!t.transform&&(l||r?n.transform=function(e,t,r){let n="",a=!0;for(let s=0;s<ez;s++){let o=i[s],l=e[o];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!o.startsWith("scale"):0===parseFloat(l))||r){let e=eq(l,el[o]);if(!u){a=!1;let t=eU[o]||o;n+=`${t}(${e}) `}r&&(t[o]=e)}}return n=n.trim(),r?n=r(t,a?"":n):a&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}function eG(e,{style:t,vars:r},n,i){let a,s=e.style;for(a in t)s[a]=t[a];for(a in i?.applyProjectionStyles(s,n),r)s.setProperty(a,r[a])}let eH={};function eK(e,{layout:t,layoutId:r}){return a.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!eH[e]||"opacity"===e)}function eW(e,t,r){let{style:n}=e,i={};for(let a in n)(ep(n[a])||t.style&&ep(t.style[a])||eK(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=n[a]);return i}class eQ extends eL{constructor(){super(...arguments),this.type="html",this.renderInstance=eG}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?h(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return p(r,t)})(e,t);{let r=window.getComputedStyle(e),n=((0,y.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return k(e,t)}build(e,t,r){eV(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return eW(e,t,r)}}let eZ=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eY={offset:"stroke-dashoffset",array:"stroke-dasharray"},eX={offset:"strokeDashoffset",array:"strokeDasharray"};function eJ(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o}
15,l,u,c){if(eV(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let a=i?eY:eX;e[a.offset]=j.px.transform(-n);let s=j.px.transform(t),o=j.px.transform(r);e[a.array]=`${s} ${o}`}(d,i,a,s,!1)}let e0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),e1=e=>"string"==typeof e&&"svg"===e.toLowerCase();function e5(e,t,r){let n=eW(e,t,r);for(let r in e)(ep(e[r])||ep(t[r]))&&(n[-1!==i.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class e6 extends eL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eC}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=ec(t);return e&&e.default||0}return t=e0.has(t)?t:eZ(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return e5(e,t,r)}build(e,t,r){eJ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in eG(e,t,void 0,n),t.attrs)e.setAttribute(e0.has(r)?r:eZ(r),t.attrs[r])}mount(e){this.isSVGTag=e1(e.tagName),super.mount(e)}}let e2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e8(e){if("string"!=typeof e||e.includes("-"));else if(e2.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var e3=r(37876),e4=r(5048);let e9=(0,n.createContext)({strict:!1});var e7=r(39751);let te=(0,n.createContext)({});function tt(e){return Array.isArray(e)?e.join(" "):e}let tr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tn(e,t,r){for(let n in t)ep(t[n])||eK(n,r)||(e[n]=t[n])}let ti=()=>({...tr(),attrs:{}}),ta=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ts(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ta.has(e)}let to=e=>!ts(e);try{!function(e){"function"==typeof e&&(to=t=>t.startsWith("on")?!ts(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var tl=r(3866),tu=r(91200);function tc(e){return ep(e)?e.get():e}let td=e=>(t,r)=>{let i=(0,n.useContext)(te),a=(0,n.useContext)(tl.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:function(e,t,r,n){let i={},a=n(e,{});for(let e in a)i[e]=tc(a[e]);let{initial:s,animate:o}=e,l=eR(e),u=eB(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===s)?o:s;if(d&&"boolean"!=typeof d&&!ek(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let n=eD(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,n,i,e),renderState:t()}})(e,t,i,a);return r?s():(0,tu.M)(s)},tf=td({scrapeMotionValuesFromProps:eW,createRenderState:tr}),th=td({scrapeMotionValuesFromProps:e5,createRenderState:ti}),tp=Symbol.for("motionComponentSymbol");function tm(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let ty="data-"+eZ("framerAppearId"),tb=(0,n.createContext)({});var tg=r(50181);function tv(e,{forwardMotionProps:t=!1}={},r,i){r&&function(e){for(let t in e)ex[t]={...ex[t],...e[t]}}(r);let a=e8(e)?th:tf;function s(r,s){var o;let l,u={...(0,n.useContext)(e7.Q),...r,layoutId:function({layoutId:e}){let t=(0,n.useContext)(e4.L).id;return t&&void 0!==e?t+"-"+e:e}(r)}
15,{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(eR(e)){let{initial:t,animate:r}=e;return{initial:!1===t||eI(t)?t:void 0,animate:eI(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(te));return(0,n.useMemo)(()=>({initial:t,animate:r}),[tt(t),tt(r)])}(r),f=a(r,c);if(!c&&eA.B){(0,n.useContext)(e9).strict;let t=function(e){let{drag:t,layout:r}=ex;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(e,t,r,i,a){let{visualElement:s}=(0,n.useContext)(te),o=(0,n.useContext)(e9),l=(0,n.useContext)(tl.t),u=(0,n.useContext)(e7.Q).reducedMotion,c=(0,n.useRef)(null);i=i||o.renderer,!c.current&&i&&(c.current=i(e,{visualState:t,parent:s,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=c.current,f=(0,n.useContext)(tb);d&&!d.projection&&a&&("html"===d.type||"svg"===d.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&tm(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,r,a,f);let h=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{d&&h.current&&d.update(r,l)});let p=r[ty],m=(0,n.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,tg.E)(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,n.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),d.enteringChildren=void 0)}),d}(e,f,u,i,t.ProjectionNode)}return(0,e3.jsxs)(te.Provider,{value:d,children:[l&&d.visualElement?(0,e3.jsx)(l,{visualElement:d.visualElement,...u}):null,function(e,t,r,{latestValues:i},a,s=!1){let o=(e8(e)?function(e,t,r,i){let a=(0,n.useMemo)(()=>{let r=ti();return eJ(r,t,e1(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};tn(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let r={},i=function(e,t){let r=e.style||{},i={};return tn(i,r,e),Object.assign(i,function({transformTemplate:e},t){return(0,n.useMemo)(()=>{let r=tr();return eV(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(t,i,a,e),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(to(i)||!0===r&&ts(i)||!t&&!ts(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,s),u=e!==n.Fragment?{...l,...o,ref:r}:{},{children:c}=t,d=(0,n.useMemo)(()=>ep(c)?c.get():c,[c]);return(0,n.createElement)(e,{...u,children:d})}(e,r,(o=d.visualElement,(0,n.useCallback)(e=>{e&&f.onMount&&f.onMount(e),o&&(e?o.mount(e):o.unmount()),s&&("function"==typeof s?s(e):tm(s)&&(s.current=e))},[o])),f,c,t)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let o=(0,n.forwardRef)(s);return o[tp]=e,o}function tw(e,t,r){let n=e.getProps();return eD(n,t,void 0!==r?r:n.custom,e)}function tx(e,t){return e?.[t]??e?.default??e}let tE=e=>Array.isArray(e);var tP=r(17454);function tT(e,t){let r=e.getValue("willChange");if(ep(r)&&r.add)return r.add(t);if(!r&&tP.W.WillChange){let r=new tP.W.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tC(e){e.duration=0,e.type}var tA=r(51784),tS=r(12679);let t_=e=>1e3*e,tO={layout:0,mainThread:0,waapi:0};var tk=r(86751);let tI=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>V.Gt.update(t,e),stop:()=>(0,V.WG)(t),now:()=>V.uv.isProcessing?V.uv.timestamp:em.k.now()}},tM=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function tj(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}var tR=r(70630);function tB(e,t,r){let n=Math.max(t-5,0);return(0,tR.f)(r-e(n),t-n)}let tN={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tD(e,t){return e*Math.sqrt(1-t*t)}let t$=["duration","bounce"],tF=["stiffness","damping","mass"];function tL(e,t){return t.some(t=>void 0!==e[t])}function tq(e=tN.visualDuration,t=tN.bounce){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:a}=n,s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:tN.velocity,stiffness:tN.stiffness,damping:tN.damping,mass:tN.mass,isResolvedFromDuration:!1,...e};if(!tL(e,tF)&&tL(e,t$))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*(0,tS.q)(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:tN.mass,stiffness:n,damping:i}}else{let r=function({duration:e=tN.duration,bounce:t=tN.bounce,velocity:r=tN.velocity,mass:n=tN.mass}){let i,a;(0,D.$)(e<=t_(tN.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=(0,tS.q)(tN.minDamping,tN.maxDamping,s),e=(0,tS.q)(tN.minDuration,tN.maxDuration,e/1e3),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/tD(t,s)*Math.exp(-i)},a=t=>{let n=t*s*e,a=Math.pow(s,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=tD(Math.pow(t,2),s);return(n*r+r-a)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let o=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e=t_(e),isNaN(o))return{stiffness:tN.stiffness,damping:tN.damping,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:tN.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),m=h||0,y=c/(2*Math.sqrt(u*d)),b=o-s,g=Math.sqrt(u/d)/1e3,v=5>Math.abs(b);
15if(i||(i=v?tN.restSpeed.granular:tN.restSpeed.default),a||(a=v?tN.restDelta.granular:tN.restDelta.default),y<1){let e=tD(g,y);r=t=>o-Math.exp(-y*g*t)*((m+y*g*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===y)r=e=>o-Math.exp(-g*e)*(b+(m+g*b)*e);else{let e=g*Math.sqrt(y*y-1);r=t=>{let r=Math.exp(-y*g*t),n=Math.min(e*t,300);return o-r*((m+y*g*b)*Math.sinh(n)+e*b*Math.cosh(n))/e}}let w={calculatedDuration:p&&f||null,next:e=>{let t=r(e);if(p)l.done=e>=f;else{let n=0===e?m:0;y<1&&(n=0===e?t_(m):tB(r,e,t));let s=Math.abs(o-t)<=a;l.done=Math.abs(n)<=i&&s}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(tj(w),2e4),t=tM(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function tU({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,f,h=e[0],p={done:!1,value:h},m=r*t,y=h+m,b=void 0===s?y:s(y);b!==y&&(m=b-h);let g=e=>-m*Math.exp(-e/n),v=e=>b+g(e),w=e=>{let t=g(e),r=v(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},E=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var r;d=e,f=tq({keyframes:[p.value,(r=p.value,void 0===o?l:void 0===l||Math.abs(o-r)<Math.abs(l-r)?o:l)],velocity:tB(v,e,p.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,w(e),E(e)),void 0!==d&&e>=d)?f.next(e-d):(t||w(e),p)}}}tq.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(tj(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:i/1e3}}(e,100,tq);return e.ease=t.ease,e.duration=t_(t.duration),e.type="keyframes",e};var tz=r(90620);let tV=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tG(e,t,r,n){return e===t&&r===n?tz.l:i=>0===i||1===i?i:tV(function(e,t,r,n,i){let a,s,o=0;do(a=tV(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s}(i,0,1,e,r),t,n)}let tH=tG(.42,0,1,1),tK=tG(0,0,.58,1),tW=tG(.42,0,.58,1),tQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tZ=e=>t=>1-e(1-t),tY=tG(.33,1.53,.69,.99),tX=tZ(tY),tJ=tQ(tX),t0=e=>(e*=2)<1?.5*tX(e):.5*(2-Math.pow(2,-10*(e-1))),t1=e=>1-Math.sin(Math.acos(e)),t5=tZ(t1),t6=tQ(t1),t2=e=>Array.isArray(e)&&"number"==typeof e[0],t8={linear:tz.l,easeIn:tH,easeInOut:tW,easeOut:tK,circIn:t1,circInOut:t6,circOut:t5,backIn:tX,backInOut:tJ,backOut:tY,anticipate:t0},t3=e=>{if(t2(e)){(0,D.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return tG(t,r,n,i)}return"string"==typeof e?((0,D.V)(void 0!==t8[e],`Invalid easing type '${e}'`,"invalid-easing-type"),t8[e]):e};var t4=r(61574),t9=r(64384);function t7({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(t3):t3(n),s={done:!1,value:t[0]},o=(i=r&&r.length===t.length?r:(0,t9.Z)(t),i.map(t=>t*e)),l=(0,t4.G)(o,t,{ease:Array.isArray(a)?a:t.map(()=>a||tW).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let re=e=>null!==e;function rt(e,{repeat:t,repeatType:r="loop"},n,i=1){let a=e.filter(re),s=i<0||t&&"loop"!==r&&t%2==1?0:a.length-1;return s&&void 0!==n?n:a[s]}let rr={decay:tU,inertia:tU,tween:t7,keyframes:t7,spring:tq};function rn(e){"string"==typeof e.type&&(e.type=rr[e.type])}class ri{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ra=e=>e/100;class rs extends ri{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==em.k.now()&&this.tick(em.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tO.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rn(e);let{type:t=t7,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:s}=e,o=t||t7;o!==t7&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,tA.F)(ra,(0,tk.j)(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s}
15);"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=tj(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:o}=this;if(null===this.startTime)return r.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:h,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let g=this.currentTime,v=r;if(c){let e=Math.min(this.currentTime,n)/s,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(r=1-r,f&&(r-=f/s)):"mirror"===d&&(v=a)),g=(0,tS.q)(0,1,r)*s}let w=b?{done:!1,value:u[0]}:v.next(g);i&&(w.value=i(w.value));let{done:E}=w;b||null===o||(E=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return P&&h!==tU&&(w.value=rt(u,this.options,m,this.speed)),p&&p(w.value),P&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=t_(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(em.k.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=tI,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(em.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tO.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var ro=r(89739),rl=r(17595),ru=r(7862);let rc={},rd=function(e,t){let r=(0,ru.p)(e);return()=>rc[t]??r()}(()=>{try{document.createElement("div").animate({opacity:0}
15,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),rf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rf([0,.65,.55,1]),circOut:rf([.55,0,1,.45]),backIn:rf([.31,.01,.66,-.59]),backOut:rf([.33,1.53,.69,.99])};function rp(e){return"function"==typeof e&&"applyToOptions"in e}class rm extends ri{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,(0,D.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return rp(e)&&rd()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?rd()?tM(t,r):"ease-out":t2(t)?rf(t):Array.isArray(t)?t.map(t=>e(t,r)||rh.easeOut):rh[t]}(o,i);Array.isArray(d)&&(c.easing=d),rl.Q.value&&tO.waapi++;let f={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};u&&(f.pseudoElement=u);let h=e.animate(c,f);return rl.Q.value&&h.finished.finally(()=>{tO.waapi--}),h}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=rt(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}(t,r,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=t_(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&(0,ro.J)())?(this.animation.timeline=e,tz.l):t(this)}}let ry={anticipate:t0,backInOut:tJ,circInOut:t6};class rb extends rm{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ry&&(e.ease=ry[e.ease])}(e),rn(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new rs({...a,autoplay:!1}),o=t_(this.finishedTime??this.time);t.setWithVelocity(s.sample(o-10).value,s.sample(o).value,10),s.stop()}}let rg=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(J.f.test(e)||"0"===e)&&!e.startsWith("url(")),rv=new Set(["opacity","clipPath","filter","transform"]),rw=(0,ru.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rx extends ri{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=em.k.now();let d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,name:o,motionValue:l,element:u,...c},f=u?.KeyframeResolver||Y;this.keyframeResolver=new f(s,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:o,isHandoff:l,onUpdate:u}=r;this.resolvedAt=em.k.now(),!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=rg(i,t),o=rg(a,t);return(0,D.$)(s===o,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||rp(r))&&n)}(e,i,a,s)&&((tP.W.instantAnimations||!o)&&u?.(rt(e,r,t)),e[0]=e[e.length-1],tC(r),r.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!l&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
15let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return rw()&&r&&rv.has(r)&&("transform"!==r||!l)&&!o&&!n&&"mirror"!==i&&0!==a&&"inertia"!==s}(c)?new rb({...c,element:c.motionValue.owner.current}):new rs(c);d.finished.then(()=>this.notifyFinished()).catch(tz.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),W=!0,Z(),Q(),W=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rE=e=>null!==e,rP={type:"spring",stiffness:500,damping:25,restSpeed:10},rT={type:"keyframes",duration:.8},rC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rA=(e,t,r,n={},i,s)=>o=>{let l=tx(n,e)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=t_(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rT:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rP:rC)(e,d)),d.duration&&(d.duration=t_(d.duration)),d.repeatDelay&&(d.repeatDelay=t_(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(tC(d),0===d.delay&&(f=!0)),(tP.W.instantAnimations||tP.W.skipAnimations)&&(f=!0,tC(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(rE),a=t&&"loop"!==r&&t%2==1?0:i.length-1;return i[a]}(d.keyframes,l);if(void 0!==e)return void V.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new rs(d):new rx(d)};function rS(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;n&&(a=n);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let n=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(u,t))continue;let s={delay:r,...tx(a||{},t)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(i)&&i===c&&!s.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let r=e.props[ty];if(r){let e=window.MotionHandoffAnimation(r,t,V.Gt);null!==e&&(s.startTime=e,d=!0)}}tT(e,t),n.start(rA(t,n,i,e.shouldReduceMotion&&I.has(t)?{type:!1}:s,e,d));let f=n.animation;f&&l.push(f)}return s&&Promise.all(l).then(()=>{V.Gt.update(()=>{s&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=tw(e,t)||{};for(let t in i={...i,...r}){var a;let r=tE(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,ey.OQ)(r))}}(e,s)})}),l}function r_(e,t,r,n=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,o=(s-1)*n;return"function"==typeof r?r(a,s):1===i?a*n:o-a*n}function rO(e,t,r={}){let n=tw(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(rS(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t,r=0,n=0,i=0,a=1,s){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rO(l,t,{...s,delay:r+("function"==typeof n?0:n)+r_(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,n,a,s,o,r)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}function rk(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let rI=ej.length,rM=[...eM].reverse(),rj=eM.length;function rR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rB(){return{animate:rR(!0),whileInView:rR(),whileHover:rR(),whileTap:rR(),whileDrag:rR(),whileFocus:rR(),exit:rR()}}class rN{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rD extends rN{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rO(e,t,r)));else if("string"==typeof t)n=rO(e,t,r);else{let i="function"==typeof t?tw(e,t,r.custom):t;n=Promise.all(rS(e,i,r))}return n.then(()=>
15{e.notify("AnimationComplete",t)})})(e,t,r))),r=rB(),n=!0,i=t=>(r,n)=>{let i=tw(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function a(a){let{props:s}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<rI;e++){let n=ej[e],i=t.props[n];(eI(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rj;t++){var f,h;let p=rM[t],m=r[p],y=void 0!==s[p]?s[p]:o[p],b=eI(y),g=p===a?m.isActive:null;!1===g&&(d=t);let v=y===o[p]&&y!==s[p]&&b;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...c},!m.isActive&&null===g||!y&&!m.prevProp||ek(y)||"boolean"==typeof y)continue;let w=(f=m.prevProp,"string"==typeof(h=y)?h!==f:!!Array.isArray(h)&&!rk(h,f)),E=w||p===a&&m.isActive&&!v&&b||t>d&&b,P=!1,T=Array.isArray(y)?y:[y],C=T.reduce(i(p),{});!1===g&&(C={});let{prevResolvedValues:A={}}=m,S={...A,...C},_=t=>{E=!0,u.has(t)&&(P=!0,u.delete(t)),m.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in S){let t=C[e],r=A[e];if(!c.hasOwnProperty(e))(tE(t)&&tE(r)?rk(t,r):t===r)?void 0!==t&&u.has(e)?_(e):m.protectedKeys[e]=!0:null!=t?_(e):u.add(e)}m.prevProp=y,m.prevResolvedValues=C,m.isActive&&(c={...c,...C}),n&&e.blockInitialAnimation&&(E=!1);let O=v&&w,k=!O||P;E&&k&&l.push(...T.map(t=>{let r={type:p};if("string"==typeof t&&n&&!O&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=tw(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=r_(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let r=tw(e,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let p=!!l.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=a(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rB(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ek(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let r$=0;class rF extends rN{constructor(){super(...arguments),this.id=r$++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rL={x:!1,y:!1};function rq(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let rU=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rz(e){return{point:{x:e.pageX,y:e.pageY}}}function rV(e,t,r,n){return rq(e,t,e=>rU(e)&&r(e,rz(e)),n)}function rG(e){return e.max-e.min}function rH(e,t,r,n=.5){e.origin=n,e.originPoint=(0,g.k)(t.min,t.max,e.origin),e.scale=rG(r)/rG(t),e.translate=(0,g.k)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rK(e,t,r,n){rH(e.x,t.x,r.x,n?n.originX:void 0),rH(e.y,t.y,r.y,n?n.originY:void 0)}function rW(e,t,r){e.min=r.min+t.min,e.max=e.min+rG(t)}function rQ(e,t,r){e.min=t.min-r.min,e.max=e.min+rG(t)}function rZ(e,t,r){rQ(e.x,t.x,r.x),rQ(e.y,t.y,r.y)}function rY(e){return[e("x"),e("y")]}let rX=({current:e})=>e?e.ownerDocument.defaultView:null,rJ=(e,t)=>
15Math.abs(e-t);class r0{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=r6(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rJ(e.x,t.x)**2+rJ(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=V.uv;this.history.push({...n,timestamp:i});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r1(t,this.transformPagePoint),V.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=r6("pointercancel"===e.type?this.lastMoveEventInfo:r1(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!rU(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;let s=r1(rz(e),this.transformPagePoint),{point:o}=s,{timestamp:l}=V.uv;this.history=[{...o,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,r6(s,this.history)),this.removeListeners=(0,tA.F)(rV(this.contextWindow,"pointermove",this.handlePointerMove),rV(this.contextWindow,"pointerup",this.handlePointerUp),rV(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,V.WG)(this.updatePoint)}}function r1(e,t){return t?{point:t(e.point)}:e}function r5(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r6({point:e},t){return{point:e,delta:r5(e,r2(t)),offset:r5(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=r2(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>t_(.1)));)r--;if(!n)return{x:0,y:0};let a=(i.timestamp-n.timestamp)/1e3;if(0===a)return{x:0,y:0};let s={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function r2(e){return e[e.length-1]}var r8=r(2589);function r3(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function r4(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function r9(e,t,r){return{min:r7(e,t),max:r7(e,r)}}function r7(e,t){return"number"==typeof e?e:e[t]||0}let ne=new WeakMap;class nt{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eC(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rz(e).point)},a=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rL[e])return null;else return rL[e]=!0,()=>{rL[e]=!1};return rL.x||rL.y?null:(rL.x=rL.y=!0,()=>{rL.x=rL.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(j.KN.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rG(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.Gt.postRender(()=>i(e,t)),tT(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rY(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new r0(e,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rX(this.visualElement)})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&V.Gt.postRender(()=>s(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nr(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,g.k)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,g.k)(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&tm(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:r3(e.x,r,i),y:r3(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r9(e,"left","right"),y:r9(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rY(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!tm(t))return!1;let n=t.current;(0,D.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=function(e,t,r){let n=k(e,r),{scroll:i}=t;return i&&(S(n.x,i.offset.x),S(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:r4(e.x,a.x),y:r4(e.y,a.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=b(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(rY(s=>{if(!nr(s,t,this.currentDirection))return;let l=o&&o[s]||{};a&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return tT(this.visualElement,e),r.start(rA(e,r,0,t,this.visualElement,!1))}stopAnimation(){rY(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rY(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rY(t=>{let{drag:r}=this.getProps();if(!nr(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t];i.set(e[t]-(0,g.k)(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!tm(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rG(e),i=rG(t);return i>n?r=(0,r8.q)(t.min,t.max-n,e.min):n>i&&(r=(0,r8.q)(e.min,e.max-i,t.min)),(0,tS.q)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rY(t=>
15{if(!nr(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set((0,g.k)(i,a,n[t]))})}addListeners(){if(!this.visualElement.current)return;ne.set(this.visualElement,this);let e=rV(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();tm(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.Gt.read(t);let i=rq(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rY(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function nr(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nn extends rN{constructor(e){super(e),this.removeGroupControls=tz.l,this.removeListeners=tz.l,this.controls=new nt(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tz.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let ni=e=>(t,r)=>{e&&V.Gt.postRender(()=>e(t,r))};class na extends rN{constructor(){super(...arguments),this.removePointerDownListener=tz.l}onPointerDown(e){this.session=new r0(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rX(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:ni(e),onStart:ni(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&V.Gt.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rV(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var ns=r(83885);let no={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nu={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!j.px.test(e))return e;else e=parseFloat(e);let r=nl(e,t.target.x),n=nl(e,t.target.y);return`${r}% ${n}%`}},nc=!1;class nd extends n.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;for(let e in nh)eH[e]=nh[e],(0,y.j)(e)&&(eH[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),nc&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),no.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,nc=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||V.Gt.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eg.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;nc=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nf(e){let[t,r]=(0,ns.xQ)(),i=(0,n.useContext)(e4.L);return(0,e3.jsx)(nd,{...e,layoutGroup:i,switchLayoutGroup:(0,n.useContext)(tb),isPresent:t,safeToRemove:r})}let nh={borderRadius:{...nu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nu,borderTopRightRadius:nu,borderBottomLeftRadius:nu,borderBottomRightRadius:nu,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=J.f.parse(e);if(n.length>5)return e;let i=J.f.createTransformer(e),a=+("number"!=typeof n[0]),s=r.x.scale*t.x,o=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=o;let l=(0,g.k)(s,o,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};var np=r(32549),nm=r(28205);let ny=(e,t)=>e.depth-t.depth;class nb{constructor(){this.children=[],this.isDirty=!1}add(e){(0,nm.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,nm.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ny),this.isDirty=!1,this.children.forEac
15h(e)}}let ng=["TopLeft","TopRight","BottomLeft","BottomRight"],nv=ng.length,nw=e=>"string"==typeof e?parseFloat(e):e,nx=e=>"number"==typeof e||j.px.test(e);function nE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nP=nC(0,.5,t5),nT=nC(.5,.95,tz.l);function nC(e,t,r){return n=>n<e?0:n>t?1:r((0,r8.q)(e,t,n))}function nA(e,t){e.min=t.min,e.max=t.max}function nS(e,t){nA(e.x,t.x),nA(e.y,t.y)}function n_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nO(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nk(e,t,[r,n,i],a,s){!function(e,t=0,r=1,n=.5,i,a=e,s=e){if(j.KN.test(t)&&(t=parseFloat(t),t=(0,g.k)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=(0,g.k)(a.min,a.max,n);e===a&&(o-=t),e.min=nO(e.min,t,r,o,i),e.max=nO(e.max,t,r,o,i)}(e,t[r],t[n],t[i],t.scale,a,s)}let nI=["x","scaleX","originX"],nM=["y","scaleY","originY"];function nj(e,t,r,n){nk(e.x,t,nI,r?r.x:void 0,n?n.x:void 0),nk(e.y,t,nM,r?r.y:void 0,n?n.y:void 0)}function nR(e){return 0===e.translate&&1===e.scale}function nB(e){return nR(e.x)&&nR(e.y)}function nN(e,t){return e.min===t.min&&e.max===t.max}function nD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n$(e,t){return nD(e.x,t.x)&&nD(e.y,t.y)}function nF(e){return rG(e.x)/rG(e.y)}function nL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nq{constructor(){this.members=[]}add(e){(0,nm.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,nm.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nU={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nz=["","X","Y","Z"],nV=0;function nG(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nH({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=nV++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rl.Q.value&&(nU.nodes=nU.calculatedTargetDeltas=nU.calculatedProjections=0),this.nodes.forEach(nQ),this.nodes.forEach(n5),this.nodes.forEach(n6),this.nodes.forEach(nZ),rl.Q.addProjectionMetrics&&rl.Q.addProjectionMetrics(nU)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nb)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ev.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,np.x)(t)&&(!(0,np.x)(t)||"svg"!==t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;V.Gt.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=em.k.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&((0,V.WG)(n),e(i-250))};return V.Gt.setup(n,!0),()=>(0,V.WG)(n)}(i,250),no.hasAnimatedSinceResize&&(no.hasAnimatedSinceResize=!1,this.nodes.forEac
15h(n1)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||n7,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!n$(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...tx(a,"layout"),onPlay:s,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||n1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,V.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n2),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[ty];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V.Gt,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nX);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(nJ);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n0),this.nodes.forEach(nK),this.nodes.forEach(nW)):this.nodes.forEach(nJ),this.clearAllSnapshots();let e=em.k.now();V.uv.delta=(0,tS.q)(0,1e3/60,e-V.uv.timestamp),V.uv.timestamp=e,V.uv.isProcessing=!0,V.PP.update.process(V.uv),V.PP.preRender.process(V.uv),V.PP.render.process(V.uv),V.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nY),this.sharedNodes.forEach(n8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rG(this.snapshot.measuredBox.x)||rG(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=eC(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nB(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||E(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),ir((t=n).x),ir(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return eC();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ia))){let{scroll:e}=this.root;e&&(S(t.x,e.offset.x),S(t.y,e.offset.y))}return t}removeElementScroll(e){let t=eC();if(nS(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&nS(t,e),S(t.x,i.offset.x),S(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let r=eC();nS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&O(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),E(n.latestValues)&&O(r,n.latestValues)}return E(this.latestValues)&&O(r,this.latestValues),r}removeTransform(e){let t=eC();nS(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!E(r.latestValues))continue;w(r.latestValues)&&r.updateSnapshot();let n=eC();nS(n,r.measurePageBox()),nj(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return E(this.latestValues)&&nj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==V.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
15isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(this.resolvedRelativeTargetAt=V.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eC(),this.relativeTargetOrigin=eC(),rZ(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=eC(),this.targetWithTransforms=eC()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,s,o;this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,o=this.relativeParent.target,rW(a.x,s.x,o.x),rW(a.y,s.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nS(this.target,this.layout.layoutBox),A(this.target,this.targetDelta)):nS(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eC(),this.relativeTargetOrigin=eC(),rZ(this.relativeTargetOrigin,this.target,e.target),nS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rl.Q.value&&nU.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||w(this.parent.latestValues)||P(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===V.uv.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;nS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,a,s=r.length;if(s){t.x=t.y=1;for(let o=0;o<s;o++){a=(i=r[o]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&O(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,A(e,a)),n&&E(i.latestValues)&&O(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eC());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(n_(this.prevProjectionDelta.x,this.projectionDelta.x),n_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rK(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nL(this.projectionDelta.x,this.prevProjectionDelta.x)&&nL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),rl.Q.value&&nU.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=eP(),this.projectionDelta=eP(),this.projectionDeltaWithTransform=eP()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},a={...this.latestValues},s=eP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=eC(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n9));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n3(s.x,e.x,n),n3(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p,m,y;rZ(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,m=o,y=n,n4(h.x,p.x,m.x,y),n4(h.y,p.y,m.y,y),r&&(u=this.relativeTarget,f=r,nN(u.x,f.x)&&nN(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=eC()),nS(r,this.relativeTarget)}l&&(this.animationValues=a,function(e,t,r,n,i,a){i?(e.opacity=(0,g.k)(0,r.opacity??1,nP(n)),e.opacityExit=(0,g.k)(t.opacity??1,0,nT(n))):a&&(e.opacity=(0,g.k)(t.opacity??1,r.opacity??1,n));for(let i=0;i<nv;i++){let a=`border${ng[i]}Radius`,s=nE(t,a),o=nE(r,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||nx(s)===nx(o)?(e[a]=Math.max((0,g.k)(nw(s),nw(o),n),0),(j.KN.test(o)||j.KN.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||r.rotate)&&(e.rotate=(0,g.k)(t.rotate||0,r.rotate||0,n))}(a,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,V.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.Gt.update(()=>{no.hasAnimatedSinceResize=!0,tO.layout++,this.motionValue||(this.motionValue=(0,ey.OQ)(0)),this.currentAnimation=function(e,t,r){let n=ep(e)?e:(0,ey.OQ)(e);return n.start(rA("",n,t,r)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{tO.layout--},onComplete:()=>{tO.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ii(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||eC();let t=rG(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rG(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}
15nS(t,r),O(t,i),rK(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nq),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&nG("z",e,n,this.animationValues);for(let t=0;t<nz.length;t++)nG(`rotate${nz[t]}`,e,n,this.animationValues),nG(`skew${nz[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tc(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tc(t?.pointerEvents)||""),this.hasProjected&&!E(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((i||a||s)&&(n=`translate3d(${i}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:s,skewY:o}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),a&&(n+=`rotateY(${a}deg) `),s&&(n+=`skewX(${s}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,eH){if(void 0===i[t])continue;let{correct:r,applyTo:s,isCSSVariable:o}=eH[t],l="none"===a?i[t]:r(i[t],n);if(s){let t=s.length;for(let r=0;r<t;r++)e[s[r]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?tc(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(nX),this.root.sharedNodes.clear()}}}function nK(e){e.updateLayout()}function nW(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;"size"===i?rY(e=>{let n=a?t.measuredBox[e]:t.layoutBox[e],i=rG(n);n.min=r[e].min,n.max=n.min+i}):ii(i,t.layoutBox,r)&&rY(n=>{let i=a?t.measuredBox[n]:t.layoutBox[n],s=rG(r[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=eP();rK(s,r,t.layoutBox);let o=eP();a?rK(o,e.applyTransform(n,!0),t.measuredBox):rK(o,r,t.layoutBox);let l=!nB(s),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;
15if(i&&a){let s=eC();rZ(s,t.layoutBox,i.layoutBox);let o=eC();rZ(o,r,a.layoutBox),n$(s,o)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nQ(e){rl.Q.value&&nU.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nY(e){e.clearSnapshot()}function nX(e){e.clearMeasurements()}function nJ(e){e.isLayoutDirty=!1}function n0(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n5(e){e.resolveTargetDelta()}function n6(e){e.calcProjection()}function n2(e){e.resetSkewAndRotation()}function n8(e){e.removeLeadSnapshot()}function n3(e,t,r){e.translate=(0,g.k)(t.translate,0,r),e.scale=(0,g.k)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n4(e,t,r,n){e.min=(0,g.k)(t.min,r.min,n),e.max=(0,g.k)(t.max,r.max,n)}function n9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n7={duration:.45,ease:[.4,0,.1,1]},ie=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),it=ie("applewebkit/")&&!ie("chrome/")?Math.round:tz.l;function ir(e){e.min=it(e.min),e.max=it(e.max)}function ii(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nF(t)-nF(r)))}function ia(e){return e!==e.root&&e.scroll?.wasRoot}let is=nH({attachResizeListener:(e,t)=>rq(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),io={current:void 0},il=nH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!io.current){let e=new is({});e.mount(window),e.setOptions({layoutScroll:!0}),io.current=e}return io.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var iu=r(30373);function ic(e,t){let r=(0,iu.K)(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function id(e){return!("touch"===e.pointerType||rL.x||rL.y)}function ih(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&V.Gt.postRender(()=>i(t,rz(t)))}class ip extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=ic(e,r),s=e=>{if(!id(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let a=e=>{id(e)&&(n(e),r.removeEventListener("pointerleave",a))};r.addEventListener("pointerleave",a,i)};return n.forEach(e=>{e.addEventListener("pointerenter",s,i)}),a}(e,(e,t)=>(ih(this.node,t,"Start"),e=>ih(this.node,e,"End"))))}unmount(){}}class im extends rN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tA.F)(rq(this.node.current,"focus",()=>this.onFocus()),rq(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var iy=r(7990);let ib=(e,t)=>!!t&&(e===t||ib(e,t.parentElement)),ig=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iv=new WeakSet;function iw(e){return t=>{"Enter"===t.key&&e(t)}}function ix(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function iE(e){return rU(e)&&!(rL.x||rL.y)}function iP(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&V.Gt.postRender(()=>i(t,rz(t)))}class iT extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=ic(e,r),s=e=>{let n=e.currentTarget;if(!iE(e))return;iv.add(n);let a=t(n,e),s=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),iv.has(n)&&iv.delete(n),iE(e)&&"function"==typeof a&&a(e,{success:t})},o=e=>{s(e,n===window||n===document||r.useGlobalTarget||ib(n,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};
15return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,iy.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=iw(()=>{if(iv.has(r))return;ix(r,"down");let e=iw(()=>{ix(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>ix(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),ig.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(iP(this.node,t,"Start"),(e,{success:t})=>iP(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iC=new WeakMap,iA=new WeakMap,iS=e=>{let t=iC.get(e.target);t&&t(e)},i_=e=>{e.forEach(iS)},iO={some:0,all:1};class ik extends rN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iO[n]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),a=t?r:n;a&&a(e)};var o=this.node.current;let l=function({root:e,...t}){let r=e||document;iA.has(r)||iA.set(r,{});let n=iA.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(i_,{root:e,...t})),n[i]}(a);return iC.set(o,s),l.observe(o),()=>{iC.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let iI=function(e,t){if("undefined"==typeof Proxy)return tv;let r=new Map,n=(r,n)=>tv(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,tv(a,void 0,e,t)),r.get(a))})}({animation:{Feature:rD},exit:{Feature:rF},inView:{Feature:ik},tap:{Feature:iT},focus:{Feature:im},hover:{Feature:ip},pan:{Feature:na},drag:{Feature:nn,ProjectionNode:il,MeasureLayout:nf},layout:{ProjectionNode:il,MeasureLayout:nf}},(e,t)=>e8(e)?new e6(t):new eQ(t,{allowProjection:e!==n.Fragment}))},34597:(e,t,r)=>{"use strict";r.d(t,{n:()=>p});var n=r(83878),i=r(1855),a=r(8481),s=r(71503),o=r(3190),l=r(44439),u=r(40474),c=r(2774),d=r(75087),f=r(845),h=r(84194);async function p(e,t){let r,p,m,y,b,{checkReplacement:g=!0,confirmations:v=1,hash:w,onReplaced:E,retryCount:P=6,retryDelay:T=({count:e})=>200*~~(1<<e),timeout:C=18e4}=t,A=(0,u.A)(["waitForTransactionReceipt",e.uid,w]),S=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,_=!1,{promise:O,resolve:k,reject:I}=(0,o.Y)(),M=C?setTimeout(()=>{b?.(),y?.(),I(new i.WA({hash:w}))},C):void 0;return y=(0,s.lB)(A,{onReplaced:E,resolve:k,reject:I},async t=>{if((m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:w}).catch(()=>void 0))&&v<=1){clearTimeout(M),t.resolve(m),y?.();return}b=(0,a.T)(e,h.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:S,async onBlockNumber(s){let o=e=>{clearTimeout(M),b?.(),e(),y?.()},u=s;if(!_)try{if(m){if(v>1&&(!m.blockNumber||u-m.blockNumber+1n<v))return;o(()=>t.resolve(m));return}if(g&&!r&&(_=!0,await (0,l.b)(async()=>{(r=await (0,a.T)(e,d.x,"getTransaction")({hash:w})).blockNumber&&(u=r.blockNumber)},{delay:T,retryCount:P}),_=!1),m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:w}),v>1&&(!m.blockNumber||u-m.blockNumber+1n<v))return;o(()=>t.resolve(m))}catch(s){if(s instanceof i.Kz||s instanceof i.Kc){if(!r){_=!1;return}try{p=r,_=!0;let i=await (0,l.b)(()=>(0,a.T)(e,c.g,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:T,retryCount:P,shouldRetry:({error:e})=>e instanceof n.l});_=!1;let s=i.transactions.find(({from:e,nonce:t})=>e===p.from&&t===p.nonce);if(!s||(m=await (0,a.T)(e,f.h,"getTransactionReceipt")({hash:s.hash}),v>1&&(!m.blockNumber||u-m.blockNumber+1n<v)))return;let d="replaced";s.to===p.to&&s.value===p.value&&s.input===p.input?d="repriced":s.from===s.to&&0n===s.value&&(d="cancelled"),o(()=>{t.onReplaced?.({reason:d,replacedTransaction:p,transaction:s,transactionReceipt:m}),t.resolve(m)})}catch(e){o(()=>t.reject(e))}}else o(()=>t.reject(s))}}})}),O}},34724:(e,t,r)=>{"use strict";r.d(t,{T:()=>P});var n=r(10924),i=r(98074),a=r(57616),s=r(93778),o=r(15488),l=r(76200),u=r(33450),c=r(57353),d=r(94833),f=r(13003),h=r(14237),p=r(49048),m=r(81645),y=r(81873),b=r(35884),g=r(94770),v=r(44050),w=r(45710),E=r(39575);async function P(e,t){let{account:s=e.account,authorizationList:d,batch:h=!!e.batch?.multicall,blockNumber:p,blockTag:v=e.experimental_blockTag??"latest",accessList:P,blobs:A,blockOverrides:S,code:_,data:O,factory:k,factoryData:I,gas:M,gasPrice:j,maxFeePerBlobGas:R,maxFeePerGas:B,maxPriorityFeePerGas:N,nonce:D,to:$,value:F,stateOverride:L,...q}=t,U=s?(0,a.J)(s):void 0;if(_&&(k||I))throw new l.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(_&&$)throw new l.C("Cannot provide both `code` & `to` as parameters.");let z=_&&O,V=k&&I&&$&&O,G=z||V,H=z?C({code:_,data:O}):V?function(e){let{data:t,factory:r,factoryData:i,to:a}=e;return(0,f.m)({abi:(0,n.U)(["constructor(address, bytes, address, bytes)"]),bytecode:o.WN,args:[a,t,r,i]})}({data:O,factory:k,factoryData:I,to:$}):O;try{(0,E.c)(t);let r=("bigint"==typeof p?(0,m.cK)(p):void 0)||v,n=S?i.J(S):void 0,a=(0,w.yH)(L),s=e.chain?.formatters?.transactionRequest?.format,o=(s||g.Bv)({...(0,b.o)(q,{format:s}),from:U?.address,accessList:P,authorizationList:d,blobs:A,data:H,gas:M,gasPrice:j,maxFeePerBlobGas:R,maxFeePerGas:B,maxPriorityFeePerGas:N,nonce:D,to:G?void 0:$,value:F});if(h&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:o})&&!a&&!n)try{return await T(e,{...o,blockNumber:p,blockTag:v})}catch(e){if(!(e instanceof u.YE)&&!(e instanceof u.rj))throw e}let l=(()=>{let e=[o,r];return a&&n?[...e,a,n]:a?[...e,a]:n?[...e,{},n]:e})(),c=await e.request({method:"eth_call",params:l});if("0x"===c)return{data:void 0};return{data:c}}catch(s){let n=function(e){if(!(e instanceof l.C))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(s),{offchainLookup:i,offchainLookupSignature:a}=await r.e(1599).then(r.bind(r,61599));if(!1!==e.ccipRead&&n?.slice(0,10)===a&&$)return{data:await i(e,{data:n,to:$})};if(G&&n?.slice(0,10)==="0x101bb98d")throw new c.Po({factory:k});throw(0,y.d)(s,{...t,account:U,chain:e.chain})}}async function T(e,t){let{batchSize:r=1024,deployless:n=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:l=e.experimental_blockTag??"latest",data:f,to:y}=t,b=(()=>
15{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,p.M)({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new u.YE})(),g=("bigint"==typeof a?(0,m.cK)(a):void 0)||l,{schedule:w}=(0,v.u)({id:`${e.uid}.${g}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,h.p)({abi:s.v2,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===b?{data:C({code:o.Ez,data:n})}:{to:b,data:n}},g]});return(0,d.e)({abi:s.v2,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:E,success:P}]=await w({data:f,to:y});if(!P)throw new c.$S({data:E});return"0x"===E?{data:void 0}:{data:E}}function C(e){let{code:t,data:r}=e;return(0,f.m)({abi:(0,n.U)(["constructor(bytes, bytes)"]),bytecode:o.LX,args:[t,r]})}},35013:(e,t,r)=>{"use strict";r.d(t,{$e:()=>eT,A2:()=>eu,AC:()=>J,Ay:()=>eS,Hu:()=>eA,Jb:()=>ec,Jd:()=>eh,L9:()=>eC,Lv:()=>ee,Mc:()=>el,N7:()=>u,P:()=>Q,Qp:()=>eo,RO:()=>er,Rk:()=>ef,Rs:()=>c,SV:()=>eb,UH:()=>en,Vm:()=>em,XK:()=>ex,Z7:()=>U,ZL:()=>ed,Zo:()=>g,a9:()=>q,bI:()=>ea,cf:()=>et,dU:()=>ey,dq:()=>k,fV:()=>ev,ff:()=>A,g:()=>eP,je:()=>es,jm:()=>eg,mj:()=>W,oB:()=>ew,tp:()=>ep,uU:()=>l,vL:()=>ei,wM:()=>eE,wT:()=>o});var n=r(10245),i=r(45921);let a=(0,n.xP)({reducerPath:"authApi",baseQuery:i.j,endpoints:e=>({KeywordInfo:e.query({query:()=>({method:"GET",url:"/objects"})}),userSignup:e.mutation({query:e=>({method:"Post",url:"/auth/send-otp/register",body:e})}),verifyEmail:e.mutation({query:e=>({method:"Post",url:"/auth/verify-otp/register",body:e})}),UserLogin:e.mutation({query:e=>{let{email:t,ipAddress:r,password:n}=e;return{method:"Post",url:"/auth/send-otp/login",body:{email:t,ipAddress:r,password:n}}}}),verifyLogin:e.mutation({query:e=>({method:"Post",url:"/auth/verify-otp/login",body:e})}),signInMessage:e.mutation({query:e=>({method:"Post",url:"/auth/sign-message",body:e})}),verifySignMessage:e.mutation({query:e=>({method:"Post",url:"/auth/verify-sign-message",body:e})}),getTokens:e.query({query:()=>({method:"GET",url:"/auth/token-list"})}),getQuoteValue:e.query({query:e=>{let{src:t,dst:r,amount:n}=e;return{method:"GET",url:"/auth/fetchQuote?src=".concat(t,"&dst=").concat(r,"&amount=").concat(n)}}}),swapData:e.mutation({query:e=>({method:"Post",url:"/auth/fetch-swap-details",body:e})}),tokenPrice:e.mutation({query:e=>({method:"Post",url:"/auth/fetchTokenPrice",body:e})}),limitOrderPost:e.mutation({query:e=>({method:"Post",url:"/auth/fetch-order-details",body:e})}),sendForgotOtp:e.mutation({query:e=>({method:"Post",url:"/auth/send-otp/reset-password",body:e})}),verifyForgotOtp:e.mutation({query:e=>({method:"Post",url:"/auth/verify-otp/forget-password",body:e})}),forgotPassword:e.mutation({query:e=>({method:"Post",url:"/auth/reset-password",body:e})}),gethedges:e.query({query:e=>{let{address:t,network:r,page:n,limit:i,status:a}=e;return{method:"GET",url:"/hedge/events?address=".concat(t,"&status=").concat(a,"&network=").concat(r,"&limit=").concat(i,"&orderby=hedgeIndex&page=").concat(n,"&order=asc")}}}),gethedgeDetail:e.query({query:e=>({method:"GET",url:"/hedge/event/".concat(e)})}),resendOtp:e.mutation({query:e=>({method:"Post",url:"/auth/resend-otp",body:e})}),getHedgeValues:e.query({query:e=>{let{address:t,network:r}=e;return{method:"GET",url:"/hedge/details/?walletAddress=".concat(t,"&network=").concat(r)}}}),getUserDetails:e.query({query:()=>({method:"GET",url:"/auth/user-details"})}),fetchLimitOrder:e.query({query:e=>({method:"GET",url:"/auth/fetch-limit-order/".concat(e)})}),fetchHedgeBITORIOorio:e.query({query:e=>({method:"GET",url:"/hedge/BITORIOorio/latest-stake?network=".concat(e)})}),pinToken:e.mutation({query:e=>({method:"Post",url:"/auth/token-pin",body:e})}),resendEmailOTP:e.mutation({query:e=>({method:"Post",url:"/auth/resend-otp",body:e})}),sendOTPAdhar:e.mutation({query:e=>({method:"Post",url:"/kyc/aadhaar/send-otp",body:e})}),verifyAdharOTP:e.mutation({query:e=>({method:"Post",url:"/kyc/aadhaar/verify-otp",body:e})}),panLinkVerification:e.mutation({query:e=>({method:"Post",url:"/kyc/aadhaar-pan/link-verification",body:e})}),fetchProof:e.query({query:e=>({method:"GET",url:"/hedge/getUserProof"})}),transactionsHistory:e.query({query:e=>({method:"GET",url:"/auth/transactions/history"})}),saveCancelOrder:e.mutation({query:e=>({method:"Post",url:"/auth/save-cancel-order",body:e})}),videoKyc:e.mutation({query:e=>({method:"Post",url:"/kyc/file/upload",body:e})}),videoUpload:e.mutation({query:e=>({method:"Post",url:"/kyc/video-upload",body:e})}),getIndirectReferral:e.query({query:e=>{let{page:t,limit:r}=e;return{method:"GET",url:"/hedge/referral/indirect?limit=".concat(r)}}}),getCancelOrdersByAddress:e.query({query:e=>({method:"GET",url:"/auth/cancel-orders/?walletAddress=".concat(e)})}),getTotalReferral:e.query({query:()=>({method:"GET",url:"/hedge/referral/total"})}),addPassport:e.mutation({query:e=>({method:"Post",url:"/kyc/file/foreign/passport",body:e})}),addUserPhoto:e.mutation({query:e=>({method:"Post",url:"/kyc/image-kyc",body:e})}),getRewardReferral:e.query({query:()=>({method:"GET",url:"/hedge/referral/reward"})}),getIndainUsers:e.query({query:e=>{let{search:t,filter:r,page:n}=e;return{method:"GET",url:"admin/kyc-status-india?status=".concat(r,"&search=").concat(t,"&page=").concat(n,"&limit=10")}}}),getUserKycDetail:e.query({query:e=>({method:"GET",url:"admin/kyc-detail?userId=".concat(e)})}),getOtherUsers:e.query({query:e=>{let{search:t,filter:r,page:n}=e;return{method:"GET",url:"admin/kyc-status-foreign?status=".concat(r,"&search=").concat(t,"&page=").concat(n,"&limit=10")}}}),rejectUser:e.mutation({query:e=>({method:"Post",url:"admin/reject-kyc",body:e})}),getRejectMessage:e.query({query:()=>({method:"GET",url:"/admin/reject-reason"})}),submitContactUs:e.mutation({query:e=>({method:"Post",url:"contact/submit",body:e})}),approveKyc:e.mutation({query:e=>({method:"Post",url:"/admin/approve-kyc",body:e})}),sentWallet:e.mutation({query:e=>{let{email:t,walletAddress:r}=e;return{url:"/auth/user/addWallets",method:"POST",body:{email:t,walletAddress:r}}}}),GetWallets:e.query({query:()=>({method:"GET",url:"/wallet/get-wallets"})}),verifyOtpReset:e.mutation({query:e=>({method:"POST",url:"/auth/verify-otp/reset",body:e})}),resetPassword:e.mutation({query:e=>({method:"POST",url:"/auth/reset-password",body:e})}),getName:e.mutation({query:e=>({method:"POST",url:"/auth/get-first-name",body:e})}),addWallet:e.mutation({query:e=>({method:"POST",url:"/auth/user/addWallets",body:e})}),getAllWallets:e.mutation({query:e=>({method:"POST",url:"/auth/get-wallet-status",body:e})}),videoUpload:e.mutation({query:e=>({method:"Post",url:"/kyc/video-upload",body:e})}),videoVerification:e.mutation({query:e=>({method:"Post",url:"/kyc/video-kyc",body:e})}),getAllProposal:e.query({query:e=>{let{page:t=1,limit:r=10}=e;return"auth/all-proposals?page=".concat(t,"&limit=").concat(r)}}),getNotification:e.mutation({query:e=>({method:"Post",url:"/auth/notification",body:e})}),readOneAndManyNotification:e.mutation({query:e=>({method:"POST",url:"/auth/notification/mark-read",body:e})}),getDirectReferrals:e.mutation({query:e=>{let{email:t,page:r,limit:n}=e;return{method:"POST",url:"/auth/direct-referrals",body:{email:t,page:r,limit:n}}}}),getInDirectReferrals:e.mutation({query:e=>{let{email:t,page:r,limit:n}=e;return{method:"POST",url:"/auth/indirect-referrals",body:{email:t,page:r,limit:n}}}}),getAllTokenPrice:e.query({query:()=>({url:"/auth/all-token-price",method:"GET"})}),getDaoPlatformMetrices:e.query({query:()=>({url:"/auth/dao-platform-metrics",method:"GET"})}),getDaoLiveStatics:e.query({query:()=>({url:"/auth/dao-live-statics",method:"GET"})}),fetchTokenPricePoints:e.query({query:e=>({url:"/auth/dex-token-price-points",method:"POST",body:e})}),getMerkleProofForDao:e.query({query:e=>{let{address:t,type:r}=e;return{url:"/merkle/proof/address/".concat(t,"?type=").concat(r),method:"GET"}}}),addUpdatePortfolio:e.mutation({query:e=>{let{walletAddress:t,portfolioValue:r,activeHedges:n,totalEarnings:i,successRate:a}=e;
15return{url:"/auth/add-update-portfolio",method:"POST",body:{walletAddress:t,portfolioValue:r,activeHedges:n,totalEarnings:i,successRate:a}}}}),getAllPortfolios:e.query({query:e=>({url:"/auth/all-portfolios",method:"POST",body:{walletAddress:e}})}),getAllRecentActivity:e.query({query:e=>{let{walletAddress:t,page:r,limit:n}=e;return{url:"/auth/all-recent-activities",method:"POST",body:{walletAddress:t,page:r,limit:n}}}}),putAllRecentActivity:e.mutation({query:e=>({url:"/auth/add-recent-activity",method:"POST",body:e})}),getRecentTrades:e.query({query:e=>{let{walletAddress:t,page:r,limit:n}=e;return{url:"/auth/recent-trades",method:"POST",body:{walletAddress:t,page:r,limit:n}}}}),getICODetails:e.query({query:()=>({url:"/auth/get-ico-details",method:"GET"})}),getPriceDailyAsset:e.query({query:e=>{let{date:t}=e;return{url:"/auth/price/daily-assest",method:"POST",body:{date:t}}}}),getFromToDailyAsset:e.query({query:e=>{let{from_date:t,to_date:r}=e;return{url:"/auth/price/daily-assest-range",method:"POST",body:{from_date:t,to_date:r}}}}),uploadAadhaarFront:e.mutation({query:e=>({url:"/kyc/aadhaar/front",method:"POST",body:e})}),uploadAadhaarBack:e.mutation({query:e=>({url:"/kyc/aadhaar/back",method:"POST",body:e})}),uploadPan:e.mutation({query:e=>({url:"/kyc/pan/upload",method:"POST",body:e})})})}),{useKeywordInfoQuery:s,useUserSignupMutation:o,useVerifyEmailMutation:l,useUserLoginMutation:u,useVerifyLoginMutation:c,useSignInMessageMutation:d,useVerifySignMessageMutation:f,useGetTokensQuery:h,useGetQuoteValueQuery:p,useSwapDataMutation:m,useTokenPriceMutation:y,useLimitOrderPostMutation:b,useSendForgotOtpMutation:g,useVerifyForgotOtpMutation:v,useForgotPasswordMutation:w,useGethedgesQuery:E,useGethedgeDetailQuery:P,useResendOtpMutation:T,useGetHedgeValuesQuery:C,useGetUserDetailsQuery:A,useFetchLimitOrderQuery:S,useFetchHedgeBITORIOorioQuery:_,usePinTokenMutation:O,useResendEmailOTPMutation:k,useVerifyAdharOTPMutation:I,useSendOTPAdharMutation:M,usePanLinkVerificationMutation:j,useFetchProofQuery:R,useTransactionsHistoryQuery:B,useSaveCancelOrderMutation:N,useVideoKycMutation:D,useGetCancelOrdersByAddressQuery:$,useGetTotalReferralQuery:F,useGetIndirectReferralQuery:L,useAddPassportMutation:q,useAddUserPhotoMutation:U,useGetRewardReferralQuery:z,useGetIndainUsersQuery:V,useGetUserKycDetailQuery:G,useGetOtherUsersQuery:H,useRejectUserMutation:K,useGetRejectMessageQuery:W,useSubmitContactUsMutation:Q,useApproveKycMutation:Z,useSentWalletMutation:Y,useGetWalletsQuery:X,useVerifyOtpResetMutation:J,useResetPasswordMutation:ee,useGetNameMutation:et,useAddWalletMutation:er,useGetAllWalletsMutation:en,useVideoUploadMutation:ei,useVideoVerificationMutation:ea,useGetAllProposalQuery:es,useGetNotificationMutation:eo,useReadOneAndManyNotificationMutation:el,useGetDirectReferralsMutation:eu,useGetInDirectReferralsMutation:ec,useGetAllTokenPriceQuery:ed,useGetDaoPlatformMetricesQuery:ef,useGetDaoLiveStaticsQuery:eh,useFetchTokenPricePointsQuery:ep,useLazyGetMerkleProofForDaoQuery:em,useAddUpdatePortfolioMutation:ey,useGetAllPortfoliosQuery:eb,useGetAllRecentActivityQuery:eg,usePutAllRecentActivityMutation:ev,useGetRecentTradesQuery:ew,useGetICODetailsQuery:ex,useGetPriceDailyAssetQuery:eE,useGetFromToDailyAssetQuery:eP,useUploadAadhaarFrontMutation:eT,useUploadAadhaarBackMutation:eC,useUploadPanMutation:eA}=a,eS=a},35785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},35794:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});var n=r(66320),i=r(48080);let a=e=>(0,n.di)((0,i.k)(e),0,4)},35881:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>w,X4:()=>v});var n=e=>Array.isArray(e)?e:[e],i=0,a=class{revision=i;_value;_lastValue;_isEqual=s;constructor(e,t=s){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++i)}};function s(e,t){return e===t}function o(e){return e instanceof a||console.warn("Not a valid cell! ",e),e.value}var l=(e,t)=>!1;function u(){return function(e,t=s){return new a(null,t)}(0,l)}var c=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=u()),o(t)};Symbol();var d=0,f=Object.getPrototypeOf({}),h=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,p);tag=u();tags={};children={};collectionTag=null;id=d++},p={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in f)return n;if("object"==typeof n&&null!==n){var i;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(i=n)?new m(i):new h(i)),r.tag&&o(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=u()).value=n),o(r),n}})(),ownKeys:e=>(c(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>
15Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},m=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],y);tag=u();tags={};children={};collectionTag=null;id=d++},y={get:([e],t)=>("length"===t&&c(e),p.get(e,t)),ownKeys:([e])=>p.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>p.getOwnPropertyDescriptor(e,t),has:([e],t)=>p.has(e,t)},b="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function g(){return{s:0,v:void 0,o:null,p:null}}function v(e,t={}){let r,n=g(),{resultEqualityCheck:i}=t,a=0;function s(){let t,s=n,{length:o}=arguments;for(let e=0;e<o;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=s.o;null===e&&(s.o=e=new WeakMap);let r=e.get(t);void 0===r?(s=g(),e.set(t,s)):s=r}else{let e=s.p;null===e&&(s.p=e=new Map);let r=e.get(t);void 0===r?(s=g(),e.set(t,s)):s=r}}let l=s;if(1===s.s)t=s.v;else if(t=e.apply(null,arguments),a++,i){let e=r?.deref?.()??r;null!=e&&i(e,t)&&(t=e,0!==a&&a--),r="object"==typeof t&&null!==t||"function"==typeof t?new b(t):t}return l.s=1,l.v=t,t}return s.clearCache=()=>{n=g(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}var w=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i=0,a=0,s={},o=e.pop();"object"==typeof o&&(s=o,o=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:l,memoizeOptions:u=[],argsMemoize:c=v,argsMemoizeOptions:d=[],devModeChecks:f={}}={...r,...s},h=n(u),p=n(d),m=function(e){let t=Array.isArray(e[0])?e[0]:e;return!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=l(function(){return i++,o.apply(null,arguments)},...h);return Object.assign(c(function(){a++;let e=function(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(m,arguments);return t=y.apply(null,e)},...p),{resultFunc:o,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:l,argsMemoize:c})};return Object.assign(i,{withTypes:()=>i}),i}(v),E=Object.assign((e,t=w)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>E})},35884:(e,t,r)=>{"use strict";function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}r.d(t,{o:()=>n})},36227:(e,t,r)=>{"use strict";r.d(t,{KN:()=>a,gQ:()=>u,px:()=>s,uj:()=>i,vh:()=>o,vw:()=>l});let n=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=n("deg"),a=n("%"),s=n("px"),o=n("vh"),l=n("vw"),u={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},36262:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>s,J8:()=>o,MU:()=>l});var n=r(40474),i=r(76200),a=r(9678);class s extends i.C{constructor({body:e,cause:t,details:r,headers:i,status:s,url:o}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,a.I)(o)}`,e&&`Request body: ${(0,n.A)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=s,this.url=o}}i.C;class o extends i.C{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.I)(r)}`,`Request body: ${(0,n.A)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}i.C;class l extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.I)(t)}`,`Request body: ${(0,n.A)(e)}`],name:"TimeoutError"})}}},37149:(e,t,r)=>{"use strict";r.d(t,{BH:()=>b,Cp:()=>m,EN:()=>p,Eh:()=>c,F$:()=>h,GU:()=>O,MK:()=>d,S$:()=>i,ZM:()=>_,ZZ:()=>A,Zw:()=>s,d2:()=>u,f8:()=>g,gn:()=>o,hT:()=>S,j3:()=>l,lQ:()=>a,nJ:()=>f,pl:()=>T,y9:()=>C,yy:()=>P});var n=r(48306),i="undefined"==typeof window||"Deno"in globalThis;function a(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function d(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(n){if(t.queryHash!==h(s,t.options))return!1}else if(!m(t.queryKey,s))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!a||!!a(t))}function f(e,t){let{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(a))return!1}else if(!m(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>m(e[r],t[r]))}var y=Object.prototype.hasOwnProperty;function b(e,t){if(e===t)return e;let r=v(e)&&v(t);if(!r&&!(w(e)&&w(t)))return t;let n=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,s=r?Array(a):{},o=0;for(let l=0;l<a;l++){let a=r?l:i[l],u=e[a],c=t[a];if(u===c){s[a]=u,(r?l<n:y.call(e,a))&&o++;continue}if(null===u||null===c||"object"!=typeof u||"object"!=typeof c){s[a]=c;continue}let d=b(u,c);s[a]=d,d===u&&o++}return n===a&&o===n?e:s}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!E(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!E(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function P(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function T(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?b(e,t):t}function C(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function A(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var S=Symbol();function _(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function O(e,t){return"function"==typeof e?e(...t):!!e}},37601:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}
15Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{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)},37605:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,V:()=>i});let n=()=>{},i=()=>{}},37744:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,R:()=>s});var n=r(65443),i=r(93505);function a(e){let t=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.uP)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let s=(0,n.q)("block",a)},37998:(e,t,r)=>{"use strict";r.d(t,{cn:()=>H,K$:()=>W,Ni:()=>K});var n=r(69241);let i=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?i(e.slice(1),n):void 0;if(a)return a;if(0===t.validators.length)return;let s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},a=/^\[(.+)\]$/,s=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:o(t,e)).classGroupId=r;return}if("function"==typeof e)return l(e)?void s(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,i])=>{s(i,o(t,e),r,n)})})},o=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},l=e=>e.isThemeGetter,u=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,c=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},d=/\s+/;function f(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=h(e))&&(n&&(n+=" "),n+=t);return n}let h=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=h(e[n]))&&(r&&(r+=" "),r+=t);return r},p=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},m=/^\[(?:([a-z-]+):)?(.+)\]$/i,y=/^\d+\/\d+$/,b=new Set(["px","full","screen"]),g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,w=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>A(e)||b.has(e)||y.test(e),C=e=>F(e,"length",L),A=e=>!!e&&!Number.isNaN(Number(e)),S=e=>F(e,"number",A),_=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&A(e.slice(0,-1)),k=e=>m.test(e),I=e=>g.test(e),M=new Set(["length","size","percentage"]),j=e=>F(e,M,q),R=e=>F(e,"position",q),B=new Set(["image","url"]),N=e=>F(e,B,z),D=e=>F(e,"",U),$=()=>!0,F=(e,t,r)=>{let n=m.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},L=e=>v.test(e)&&!w.test(e),q=()=>!1,U=e=>E.test(e),z=e=>P.test(e);Symbol.toStringTag;let V=function(e,...t){let r,n,o,l=function(c){let d;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],a=t.length,s=e=>{let r,s=[],o=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===o){if(c===i&&(n||e.slice(u,u+a)===t)){s.push(e.slice(l,u)),l=u+a;continue}if("/"===c){r=u;continue}}"["===c?o++:"]"===c&&o--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:s}):s})(d),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return u(Object.entries(e.classGroups),r).forEach(([e,r])=>{s(r,n,e,t)}),n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),i(r,t)||(e=>{if(a.test(e)){let t=a.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i}}})(d)}).cache.get,o=r.cache.set,l=h,h(c)};function h(e){let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(d),o="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{modifiers:l,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:f}=r(t),h=!!f,p=n(h?d.substring(0,f):d);if(!p){if(!h||!(p=n(d))){o=t+(o.length>0?" "+o:o);continue}h=!1}let m=c(l).join(":"),y=u?m+"!":m,b=y+p;if(a.includes(b))continue;a.push(b);let g=i(p,h);for(let e=0;e<g.length;++e){let t=g[e];a.push(y+t)}o=t+(o.length>0?" "+o:o)}return o}
vendor: 12,740 bytes, line 15
15)(e,r);return o(e,i),i}return function(){return l(f.apply(null,arguments))}}(()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),n=p("brightness"),i=p("borderColor"),a=p("borderRadius"),s=p("borderSpacing"),o=p("borderWidth"),l=p("contrast"),u=p("grayscale"),c=p("hueRotate"),d=p("invert"),f=p("gap"),h=p("gradientColorStops"),m=p("gradientColorStopPositions"),y=p("inset"),b=p("margin"),g=p("opacity"),v=p("padding"),w=p("saturate"),E=p("scale"),P=p("sepia"),M=p("skew"),B=p("space"),F=p("translate"),L=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",k,t],z=()=>[k,t],V=()=>["",T,C],G=()=>["auto",A,k],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",k],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[A,k];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[T,C],blur:["none","",I,k],brightness:X(),borderColor:[e],borderRadius:["none","","full",I,k],borderSpacing:z(),borderWidth:V(),contrast:X(),grayscale:Z(),hueRotate:X(),invert:Z(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[O,C],inset:U(),margin:U(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Z(),skew:X(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),k]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,k]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",_,k]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",_,k]},k]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[_,k]},k]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",I,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",A,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,C]}],"underline-offset":[{"underline-offset":["auto",T,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),R]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",j]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},N]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:K()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[T,k]}],"outline-w":[{outline:[T,C]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[T,C]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,D]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",I,k]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[_,k]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
15],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,C,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});var G=r(97685);function H(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return V((0,n.$)(t))}let K=e=>{let t=e;if(!t||"string"!=typeof t)return void G.Ay.error("Something went wrong. Please try again.");let r=t.toLowerCase();t=r.includes("forbidden")||r.includes("403")?"Access denied. You do not have permission to view this content.":e,G.Ay.error(t)},W=e=>{try{if("string"!=typeof e)return!1;let t=JSON.parse(e);return!!t||0===t||!1===t||""===e}catch(e){return!1}}},38047:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(65859);function i(e){return(0,n.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},39151:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(26715),i=r(81645);function a(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.aT)(e)):e.blobs,s="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.aT)(e)):e.commitments,o=[];for(let e=0;e<a.length;e++){let r=a[e],n=s[e];o.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?o:o.map(e=>(0,i.My)(e))}},39186:(e,t,r)=>{"use strict";r.d(t,{g:()=>l});var n=r(37876),i=r(34471),a=r(54410),s=r(14e3),o=r(12531);function l(e){let{size:t="md",showText:r=!0,className:l=""}=e,u={sm:{icon:"h-6 w-6",container:"w-8 h-8",text:"text-base"},md:{icon:"h-8 w-8",container:"w-10 h-10",text:"text-xl"},lg:{icon:"h-10 w-10",container:"w-12 h-12",text:"text-2xl"}}[t],c=(0,s.useRouter)();return(0,n.jsxs)(i.P.div,{className:"flex items-center gap-3 ".concat(l),whileHover:{scale:1.05},transition:{type:"spring",stiffness:400,damping:10},onClick:()=>c.push(o.bw.HEDGE),children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(i.P.div,{className:"".concat(u.container," bg-gradient-to-br from-emerald-500 via-teal-500 to-cyan-500 rounded-xl flex items-center justify-center relative overflow-hidden"),animate:{rotate:[0,360],scale:[1,1.05,1]},transition:{rotate:{duration:20,repeat:1/0,ease:"linear"},scale:{duration:4,repeat:1/0,ease:"easeInOut"}}
15,whileHover:{scale:1.1,boxShadow:"0 0 20px rgba(16, 185, 129, 0.5)"},children:[(0,n.jsx)(i.P.div,{className:"absolute inset-1 bg-white/20 rounded-lg",animate:{rotate:[-360,0]},transition:{duration:15,repeat:1/0,ease:"linear"}}),(0,n.jsx)(i.P.div,{className:"relative z-10",animate:{scale:[1,1.1,1],rotate:[0,5,-5,0]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},children:(0,n.jsx)(a.A,{className:"".concat(u.icon," text-white drop-shadow-sm")})})]}),(0,n.jsx)(i.P.div,{className:"absolute -top-1 -right-1 w-3 h-3 bg-yellow-400 rounded-full border border-white/20",animate:{scale:[1,1.3,1],rotate:[0,180,360]},transition:{duration:2,repeat:1/0}}),(0,n.jsx)(i.P.div,{className:"absolute inset-0",style:{transformOrigin:"center"},children:[void 0,void 0].map((e,t)=>(0,n.jsx)(i.P.div,{className:"absolute w-1 h-1 bg-emerald-400/60 rounded-full",style:{left:"50%",top:"50%",marginLeft:"-0.125rem",marginTop:"-0.125rem",transformOrigin:"".concat(u.container.includes("8")?"20px":u.container.includes("10")?"25px":"30px"," 0")},animate:{rotate:[0,360]},transition:{duration:4+t,repeat:1/0,ease:"linear",delay:2*t}},t))})]}),r&&(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)(i.P.h1,{className:"".concat(u.text," font-bold gradient-text"),animate:{backgroundPosition:["0% 50%","100% 50%","0% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"},children:"HedgexDAO"}),(0,n.jsx)(i.P.p,{className:"text-xs text-gray-400 -mt-1",animate:{opacity:[.7,1,.7]},transition:{duration:3,repeat:1/0},children:"DeFi Protection Protocol"})]})]})}},39267:(e,t,r)=>{"use strict";r.d(t,{Sl:()=>i,X:()=>s,eV:()=>o,kK:()=>a});var n=r(71665);function i(e,t){if(n.Ej(e)>t)throw new n.u({givenSize:n.Ej(e),maxSize:t})}function a(e,t){if("number"==typeof t&&t>0&&t>n.Ej(e)-1)throw new n.ii({offset:t,position:"start",size:n.Ej(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.Ej(e)!==r-t)throw new n.ii({offset:r,position:"end",size:n.Ej(e)})}function o(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;let a=e.replace("0x","");if(a.length>2*i)throw new n.Fl({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*i,"0")}`}},39575:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(57616),i=r(50136),a=r(45755),s=r(98877),o=r(1855),l=r(57512);function u(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:d}=e,f=t?(0,n.J)(t):void 0;if(f&&!(0,l.P)(f.address))throw new a.M({address:f.address});if(d&&!(0,l.P)(d))throw new a.M({address:d});if(void 0!==r&&(void 0!==u||void 0!==c))throw new o.n3;if(u&&u>i.Ao)throw new s.BG({maxFeePerGas:u});if(c&&u&&c>u)throw new s.lN({maxFeePerGas:u,maxPriorityFeePerGas:c})}},39751:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n=(0,r(14232).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},39858:(e,t,r)=>{"use strict";r.d(t,{R:()=>o,x:()=>l});var n=r(14232);let i=!1;async function a(e,t={}){let r;if(i)return[];i=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let n=[];if(t.connectors?.length)for(let r of t.connectors){let t;t="function"==typeof r?e._internal.connectors.setup(r):r,n.push(t)}else n.push(...e.connectors);try{r=await e.storage?.getItem("recentConnectorId")}catch{}let s={};for(let[,t]of e.state.connections)s[t.connector.id]=1;r&&(s[r]=0);let o=Object.keys(s).length>0?[...n].sort((e,t)=>(s[e.id]??10)-(s[t.id]??10)):n,l=!1,u=[],c=[];for(let t of o){let r=await t.getProvider().catch(()=>void 0);if(!r||c.some(e=>e===r)||!await t.isAuthorized())continue;let n=await t.connect({isReconnecting:!0}).catch(()=>null);n&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let r=new Map(l?e.connections:new Map).set(t.uid,{accounts:n.accounts,chainId:n.chainId,connector:t});return{...e,current:l?e.current:t.uid,connections:r}}),u.push({accounts:n.accounts,chainId:n.chainId,connector:t}),c.push(r),l=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(l?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),i=!1,u}function s(e){let{children:t,config:r,initialState:i,reconnectOnMount:s=!0}=e,{onMount:o}
15=function(e,t){let{initialState:r,reconnectOnMount:n}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(e=>e.id===r.chainId)?r.chainId:e.chains[0].id,connections:n?r.connections:new Map,status:n?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let r=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])r.add(t);let n=[];for(let t of e._internal.mipd?.getProviders()??[]){if(r.has(t.info.rdns))continue;let i=e._internal.connectors.providerDetailToConnector(t),a=e._internal.connectors.setup(i);n.push(a)}return[...t,...n]})),n?a(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(r,{initialState:i,reconnectOnMount:s});r._internal.ssr||o();let l=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{if(l.current&&r._internal.ssr)return o(),()=>{l.current=!1}},[]),t}let o=(0,n.createContext)(void 0);function l(e){let{children:t,config:r}=e;return(0,n.createElement)(s,e,(0,n.createElement)(o.Provider,{value:r},t))}},40097:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var n=r(14232),i=r(21407),a=r(60388),s=r(90089),o=r(37149),l=class extends s.Q{#g;#v=void 0;#w;#x;constructor(e,t){super(),this.#g=e,this.setOptions(t),this.bindMethods(),this.#E()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#g.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#g.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#w,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#w?.state.status==="pending"&&this.#w.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#w?.removeObserver(this)}onMutationUpdate(e){this.#E(),this.#P(e)}getCurrentResult(){return this.#v}reset(){this.#w?.removeObserver(this),this.#w=void 0,this.#E(),this.#P()}mutate(e,t){return this.#x=t,this.#w?.removeObserver(this),this.#w=this.#g.getMutationCache().build(this.#g,this.options),this.#w.addObserver(this),this.#w.execute(e)}#E(){let e=this.#w?.state??(0,i.$)();this.#v={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#P(e){a.jG.batch(()=>{if(this.#x&&this.hasListeners()){let t=this.#v.variables,r=this.#v.context;e?.type==="success"?(this.#x.onSuccess?.(e.data,t,r),this.#x.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#x.onError?.(e.error,t,r),this.#x.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#v)})})}},u=r(67768);function c(e,t){let r=(0,u.jE)(t),[i]=n.useState(()=>new l(r,e));n.useEffect(()=>{i.setOptions(e)},[i,e]);let s=n.useSyncExternalStore(n.useCallback(e=>i.subscribe(a.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=n.useCallback((e,t)=>{i.mutate(e,t).catch(o.lQ)},[i]);if(s.error&&(0,o.GU)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}},40474:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},40552:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});class n extends Error{constructor(e,t={}){let r=(()=>{if(t.cause instanceof n){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof n&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${a}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}},42802:(e,t,r)=>{"use strict";r.d(t,{n:()=>m});var n=r(79313),i=r(32544),a=r(12355),s=r(38047),o=r(66320),l=r(49154),u=r(12748),c=r(16006),d=r(81645);function f(e,t={}){void 0!==t.size&&(0,c.Sl)(e,{size:t.size});let r=(0,d.My)(e,t);return(0,c.ME)(r,t)}var h=r(26715),p=r(23414);function m(e,t){let r="string"==typeof t?(0,h.aT)(t):t,m=(0,a.l)(r);if(0===(0,s.E)(r)&&e.length>0)throw new n.O;if((0,s.E)(t)&&32>(0,s.E)(t))throw new n.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,s.E)(t)});let b=0,g=[];for(let t=0;t<e.length;++t){let r=e[t];m.setPosition(b);let[a,s]=function e(t,r,{staticPosition:a}){let s=(0,p.k)(r.type);if(s){let[n,i]=s;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+f(t.readBytes(32)),a=n+32;t.setPosition(n);let s=f(t.readBytes(32)),o=y(r),l=0,u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:l));let[i,s]=e(t,r,{staticPosition:a});l+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(y(r)){let a=i+f(t.readBytes(32)),s=[];for(let i=0;i<n;++i){t.setPosition(a+32*i);let[n]=e(t,r,{staticPosition:a});s.push(n)}return t.setPosition(i+32),[s,32]}let a=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:i+a});a+=o,s.push(n)}return[s,a]}(t,{...r,type:i},{length:n,staticPosition:a})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),a=i?[]:{},s=0;if(y(r)){let o=n+f(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(o+s);let[u,c]=e(t,l,{staticPosition:o});s+=c,a[i?n:l?.name]=u}return t.setPosition(n+32),[a,32]}for(let o=0;o<r.components.length;++o){let l=r.components[o],[u,c]=e(t,l,{staticPosition:n});a[i?o:l?.name]=u,s+=c}return[a,s]}(t,r,{staticPosition:a});if("address"===r.type){var h=t;let e=h.readBytes(32);return[(0,i.o)((0,d.My)((0,o.A1)(e,-20))),32]}if("bool"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.Sl)(r,{size:t.size}),r=(0,l.B)(r)),r.length>1||r[0]>1)throw new u.xO(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=f(e.readBytes(32));e.setPosition(r+t);let n=f(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.My)(i),32]}return[(0,d.My)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,r,{staticPosition:a});if(r.type.startsWith("uint")||r.type.startsWith("int")){var m=t,b=r;let e=b.type.startsWith("int"),n=Number.parseInt(b.type.split("int")[1]||"256",10),i=m.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,c.Sl)(e,{size:t.size});let r=(0,d.My)(e,t);return(0,c.uU)(r,t)}(i,{signed:e}):f(i,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=f(e.readBytes(32));e.setPosition(t+r);let n=f(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),a=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.Sl)(r,{size:t.size}),r=(0,l.B)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,l.B)(i));return e.setPosition(t+32),[a,32]}(t,{staticPosition:a});throw new n.j(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,r,{staticPosition:0});b+=s,g.push(a)}return g}function y(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;
15if("tuple"===t)return e.components?.some(y);let r=(0,p.k)(e.type);return!!(r&&y({...e,type:r[1]}))}},43903:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>u,bt:()=>o});var n=r(52433),i=r(70630),a=r(84704),s=r(90050);let o={current:void 0};class l{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=a.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=a.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.v);let r=this.events[e].add(t);return"change"===e?()=>{r(),s.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=a.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(e,t){return new l(e,t)}},44050:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(3190);let i=new Map;function a({fn:e,id:t,shouldSplitBatch:r,wait:a=0,sort:s}){let o=async()=>{let t=u();l();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},l=()=>i.delete(t),u=()=>i.get(t)||[],c=e=>i.set(t,[...u(),e]);return{flush:l,async schedule(e){let{promise:t,resolve:i,reject:s}=(0,n.Y)();return(r?.([...u().map(({args:e})=>e),e])&&o(),u().length>0)?c({args:e,resolve:i,reject:s}):(c({args:e,resolve:i,reject:s}),setTimeout(o,a)),t}}}},44439:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(77004);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:a=()=>!0}={}){return new Promise((i,s)=>{let o=async({count:l=0}={})=>{let u=async({error:e})=>{let r="function"==typeof t?t({count:l,error:e}):t;r&&await (0,n.u)(r),o({count:l+1})};try{let t=await e();i(t)}catch(e){if(l<r&&await a({count:l,error:e}))return u({error:e});s(e)}};o()})}},44928:(e,t,r)=>{"use strict";r.d(t,{X:()=>y,J:()=>m});var n=r(93778),i=r(10708),a=r(88440),s=r(79313),o=r(58798),l=r(35794),u=r(23414),c=r(52346),d=r(96019);let f="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:r,args:n}=e,i=t[0];if(r){let e=(0,d.iY)({abi:t,args:n,name:r});if(!e)throw new s.yy(r,{docsPath:f});i=e}if("error"!==i.type)throw new s.yy(void 0,{docsPath:f});let a=(0,c.B)(i),h=(0,l.V)(a),p="0x";if(n&&n.length>0){if(!i.inputs)throw new s.ZP(i.name,{docsPath:f});p=(0,u.h)(i.inputs,n)}return(0,o.aP)([h,p])}let p="/docs/contract/encodeFunctionResult",m="x-batch-gateway:true";async function y(e){let{data:t,ccipRequest:r}=e,{args:[o]}=(0,a.J)({abi:n.b2,data:t}),l=[],c=[];return await Promise.all(o.map(async(e,t)=>{try{c[t]=e.urls.includes(m)?await y({data:e.data,ccipRequest:r}):await r(e),l[t]=!1}catch(e){var a;l[t]=!0,c[t]="HttpRequestError"===(a=e).name&&a.status?h({abi:n.b2,errorName:"HttpError",args:[a.status,a.shortMessage]}):h({abi:[i.Mc],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}})),function(e){let{abi:t,functionName:r,result:n}=e,i=t[0];if(r){let e=(0,d.iY)({abi:t,name:r});if(!e)throw new s.Iz(r,{docsPath:p});i=e}if("function"!==i.type)throw new s.Iz(void 0,{docsPath:p});if(!i.outputs)throw new s.MR(i.name,{docsPath:p});let a=(()=>
15{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[n];if(Array.isArray(n))return n;throw new s.dm(n)})();return(0,u.h)(i.outputs,a)}({abi:n.b2,functionName:"query",result:[l,c]})}},45313:(e,t,r)=>{"use strict";r.d(t,{Tc:()=>u,I5:()=>c,By:()=>o,OP:()=>l});let n=(0,r(17963).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var i=r(11508),a=r(28249),s=r(90434);let o=e=>{switch(e){case"success":return n;case"warning":return i.A;case"error":return a.A;default:return s.A}},l=e=>{switch(e){case"success":return{bg:"bg-green-500/10 border-green-500/20",icon:"text-green-400",glow:"rgba(16, 185, 129, 0.3)"};case"warning":return{bg:"bg-yellow-500/10 border-yellow-500/20",icon:"text-yellow-400",glow:"rgba(245, 158, 11, 0.3)"};case"error":return{bg:"bg-red-500/10 border-red-500/20",icon:"text-red-400",glow:"rgba(239, 68, 68, 0.3)"};default:return{bg:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",glow:"rgba(59, 130, 246, 0.3)"}}},u=e=>({hedge:"Shield",reward:"Award",trade:"Zap",vote:"Users"})[e]||"Activity",c=e=>{let t={hedge:{bg:"bg-emerald-500/20",text:"text-emerald-400",glow:"rgba(16, 185, 129, 0.3)"},reward:{bg:"bg-yellow-500/20",text:"text-yellow-400",glow:"rgba(234, 179, 8, 0.3)"},trade:{bg:"bg-blue-500/20",text:"text-blue-400",glow:"rgba(59, 130, 246, 0.3)"},vote:{bg:"bg-purple-500/20",text:"text-purple-400",glow:"rgba(147, 51, 234, 0.3)"}};return t[e]||t.hedge}},45710:(e,t,r)=>{"use strict";r.d(t,{yH:()=>u});var n=r(45755),i=r(16053),a=r(17830),s=r(57512),o=r(81645);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.NV({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function u(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,s.P)(r,{strict:!1}))throw new n.M({address:r});if(t[r])throw new a.Hi({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:s}=e,u={};if(void 0!==s&&(u.code=s),void 0!==t&&(u.balance=(0,o.cK)(t)),void 0!==r&&(u.nonce=(0,o.cK)(r)),void 0!==n&&(u.state=l(n)),void 0!==i){if(u.state)throw new a.ft;u.stateDiff=l(i)}return u}(i)}return t}},45755:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(76200);class i extends n.C{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},45921:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(56118),i=r(85927),a=r(77338),s=r(12531);let o=(0,n.cw)({baseUrl:i.A.BASE_URL,prepareHeaders:(e,t)=>{let{getState:r}=t,n=null===a.A||void 0===a.A?void 0:a.A.getItem(s.xr.TOKEN);return n&&e.set("Authorization","Bearer ".concat(n)),e},responseHandler:async e=>{try{if(!e.ok){let t=e.headers.get("content-type");if(502===e.status)throw Error("Server is temporarily unavailable. Please try again later.");if(!t||!t.includes("application/json"))throw Error("An unexpected error occurred. Please try again later.")}return e.json()}catch(t){return e.json()}}})},46293:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},46305:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(48306),i=r(37149),a=class{#T;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#T=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.S$?1/0:3e5))}clearGcTimeout(){this.#T&&(n.zs.clearTimeout(this.#T),this.#T=void 0)}}},46685:(e,t,r)=>{"use strict";r.d(t,{_o:()=>b,Pj:()=>m,uT:()=>d,NV:()=>y});var n=r(65809),i=r(1162),a=r(71400),s=r(27761),o=r(94817);class l extends o.C{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var c=r(91497);function d(e,t={}){if((0,c.Ji)(e))return function(e,t={}){let r=(0,c.ej)(e);if(!r)throw new s.s7({signature:e,type:"function"});let n=y(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(m(n[e],{modifiers:c.v7,structs:t,type:"function"}));let o=[];if(r.returns){let e=y(r.returns),n=e.length;for(let r=0;r<n;r++)o.push(m(e[r],{modifiers:c.v7,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:o}}(e,t);if((0,c.Rv)(e))return function(e,t={}){let r=(0,c.iB)(e);if(!r)throw new s.s7({signature:e,type:"event"});let n=y(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(m(n[e],{modifiers:c.fC,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}(e,t);if((0,c.pc)(e))return function(e,t={}){let r=(0,c.kz)(e);if(!r)throw new s.s7({signature:e,type:"error"});let n=y(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(m(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if((0,c.l9)(e))return function(e,t={}){let r=(0,c.Yo)(e);if(!r)throw new s.s7({signature:e,type:"constructor"});let n=y(r.parameters),i=[],a=n.length;for(let e=0;e<a;e++)i.push(m(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,c.v8)(e)){var r=e;let t=(0,c.If)(r);if(!t)throw new s.s7({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if((0,c.sP)(e))return{type:"receive",stateMutability:"payable"};throw new s.x8({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function m(e,t){var r,s;let o,l=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(u.has(l))return u.get(l);let d=n.wj.test(e),v=(0,n.Yv)(d?h:f,e);if(!v)throw new a.dV({param:e});if(v.name&&("address"===(r=v.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||n.BD.test(r)||n.Ge.test(r)||g.test(r)))throw new a.zd({param:e,name:v.name});let w=v.name?{name:v.name}:{},E="indexed"===v.modifier?{indexed:!0}:{},P=t?.structs??{},T={};if(d){o="tuple";let e=y(v.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(m(e[n],{structs:P}));T={components:t}}else if(v.type in P)o="tuple",T={components:P[v.type]};else if(p.test(v.type))o=`${v.type}256`;else if("address payable"===v.type)o="address";else if(o=v.type,t?.type!=="struct"&&!b(o))throw new i.UG({type:o});if(v.modifier){if(!t?.modifiers?.has?.(v.modifier))throw new a.NO({param:e,type:t?.type,modifier:v.modifier});if(c.v7.has(v.modifier)&&(s=o,!v.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new a.Pj({param:e,type:t?.type,modifier:v.modifier})}let C={type:`${o}${v.array??""}`,...w,...E,...T};return u.set(l,C),C}function y(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],s=e.slice(a+1);switch(i){case",":return 0===n?y(s,[...t,r.trim()]):y(s,t,`${r}${i}`,n);case"(":return y(s,t,`${r}${i}`,n+1);case")":return y(s,t,`${r}${i}`,n-1);default:return y(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new l({current:r,depth:n});return t.push(r.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.BD.test(e)||n.Ge.test(e)}let g=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},47798:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},48080:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(26715),i=r(74517),a=r(22729),s=r(76200);function o(e){var t;return t=function(e){let t=!0,r="",n=0,i="",a=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(i))i="";else if(i+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!a)throw new s.C("Unable to normalize signature.");return i}("string"==typeof e?e:(0,a.B)(e)),(0,i.S)((0,n.ZJ)(t))}},48149:(e,t,r)=>{"use strict";r.d(t,{II:()=>c,cc:()=>u,v_:()=>l});var n=r(98275),i=r(18070),a=r(81883),s=r(37149);function o(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.t.isOnline()}
15var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let t,r=!1,c=0,d=(0,a.T)(),f=()=>n.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),h=()=>l(e.networkMode)&&e.canRun(),p=e=>{"pending"===d.status&&(t?.(),d.resolve(e))},m=e=>{"pending"===d.status&&(t?.(),d.reject(e))},y=()=>new Promise(r=>{t=e=>{("pending"!==d.status||f())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===d.status&&e.onContinue?.()}),b=()=>{let t;if("pending"!==d.status)return;let n=0===c?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if("pending"!==d.status)return;let n=e.retry??3*!s.S$,i=e.retryDelay??o,a="function"==typeof i?i(c,t):i,l=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,t);if(r||!l)return void m(t);c++,e.onFail?.(c,t),(0,s.yy)(a).then(()=>f()?void 0:y()).then(()=>{r?m(t):b()})})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);m(r),e.onCancel?.(r)}},continue:()=>(t?.(),d),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:h,start:()=>(h()?b():y().then(b),d)}}},48230:(e,t,r)=>{e.exports=r(34009)},48306:(e,t,r)=>{"use strict";r.d(t,{Zq:()=>a,zs:()=>i});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#C=n;#A=!1;setTimeoutProvider(e){this.#C=e}setTimeout(e,t){return this.#C.setTimeout(e,t)}clearTimeout(e){this.#C.clearTimeout(e)}setInterval(e,t){return this.#C.setInterval(e,t)}clearInterval(e){this.#C.clearInterval(e)}};function a(e){setTimeout(e,0)}},49048:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(33450);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.rj({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.rj({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},49154:(e,t,r)=>{"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<r.length-1;e++)if("0"===r["left"===t?e:r.length-e-1].toString())i++;else break;return(r="left"===t?r.slice(i):r.slice(0,r.length-i),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{B:()=>n})},49835:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBitorioBalance","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStake","type":"bool"},{"indexed":false,"internalType":"enum HedgexDaoContract.UserType","name":"userType","type":"uint8"}],"name":"BitorioStakeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newConfig","type":"address"}],"name":"ConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"hedgeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalHedgeEarn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hedgeBreakTaxAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"finalPayout","type":"uint256"}],"name":"HedgeBroken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}
15,{"indexed":false,"internalType":"uint256","name":"hedgeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bitorioAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hedgeStop","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"createdAtDayIndex","type":"uint256"},{"indexed":false,"internalType":"enum HedgexDaoContract.UserType","name":"userType","type":"uint8"},{"indexed":false,"internalType":"bool","name":"isIndian","type":"bool"}],"name":"HedgeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"affiliationReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalHedgeEarn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tdsAmount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASIS_POINT_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeHedgeContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEmergency","type":"bool"}],"name":"breakHedgeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"contract IHedgeContractConfig","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_hedgeAmount","type":"uint256"},{"internalType":"uint256","name":"_bitorioAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"_proofExtraReward","type":"bytes32[]"}],"name":"createHedge","outputs":[],"stateMutability":"nonpayable","type":"function"}
15,{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entryprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getHedgeContractDetailsForDao","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum HedgexDaoContract.UserType","name":"_type","type":"uint8"}],"name":"getPoolInfo","outputs":[{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint256","name":"typeRatio","type":"uint256"},{"internalType":"enum HedgexDaoContract.UserType","name":"types","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserTypeLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_defaultAdmin","type":"address"},{"internalType":"address","name":"_pauser","type":"address"},{"internalType":"address","name":"_upgrader","type":"address"},{"internalType":"address","name":"_hedgeConfig","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExtraRewardBreak","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExtraRewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUserTracked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"_pendingReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum HedgexDaoContract.UserType","name":"","type":"uint8"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint256","name":"typeRatio","type":"uint256"},{"internalType":"enum HedgexDaoContract.UserType","name":"type_","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reffInfo","outputs":[{"internalType":"address","name":"referrer","type":"address"},{"internalType":"enum HedgexDaoContract.UserType","name":"refType","type":"uint8"},{"internalType":"uint256","name":"referrerAmount","type":"uint256"},{"internalType":"uint256","name":"marketingAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"}
15,{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalHedgeContractAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"totalUserOldHedge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_isStake","type":"bool"}],"name":"updateBitorioStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newConfig","type":"address"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userHedges","outputs":[{"internalType":"uint256","name":"hedgeAmount","type":"uint256"},{"internalType":"uint256","name":"fullHedgeAmount","type":"uint256"},{"internalType":"uint256","name":"swapAmount","type":"uint256"},{"internalType":"uint256","name":"hedgeBlock","type":"uint256"},{"internalType":"uint256","name":"hedgeTime","type":"uint256"},{"internalType":"uint256","name":"hedgeStop","type":"uint256"},{"internalType":"uint256","name":"pendingClaim","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"totalHedgeEarn","type":"uint256"},{"internalType":"uint256","name":"hedgeExtraRewardAdded","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"isIndian","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userOldHedges","outputs":[{"internalType":"uint256","name":"hedgeAmount","type":"uint256"},{"internalType":"uint256","name":"fullHedgeAmount","type":"uint256"},{"internalType":"uint256","name":"swapAmount","type":"uint256"},{"internalType":"uint256","name":"hedgeBlock","type":"uint256"},{"internalType":"uint256","name":"hedgeTime","type":"uint256"},{"internalType":"uint256","name":"hedgeStop","type":"uint256"},{"internalType":"uint256","name":"pendingClaim","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"totalHedgeEarn","type":"uint256"},{"internalType":"uint256","name":"hedgeExtraRewardAdded","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"isIndian","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userTotalBitorio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userTotalHedge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}
15,{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userType","outputs":[{"internalType":"enum HedgexDaoContract.UserType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]')},50136:(e,t,r)=>{"use strict";r.d(t,{Ao:()=>n});let n=2n**256n-1n},50181:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(14232);let i=r(2205).B?n.useLayoutEffect:n.useEffect},50583:(e,t,r)=>{"use strict";r.d(t,{Xd:()=>i,m8:()=>n});let n="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",i="0x0000000000000000000000000000000000000000"},51304:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});let n=r(48080).k},51784:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},51983:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var n=r(6882),i=r(36227),a=r(80514),s=r(80879);let o={test:(0,s.$)("hsl","hue"),parse:(0,s.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,a.a)(t))+", "+i.KN.transform((0,a.a)(r))+", "+(0,a.a)(n.X4.transform(s))+")"}},52346:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,B:()=>i});var n=r(79313);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.d_(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},52433:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(28205);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.Kq)(this.subscriptions,e),()=>(0,n.Ai)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},52474:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},52496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},noSSR:function(){return s}});let n=r(64252);r(37876),r(14232);let i=n._(r(90295));function a(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let o=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=o?o().then(a):Promise.resolve(a(()=>null))}):(delete n.webpack,delete n.modules,s(r,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)},53088:(e,t,r)=>{"use strict";r.d(t,{cN:()=>f,U1:()=>m,VP:()=>l,zD:()=>O,Z0:()=>j,gk:()=>L,f$:()=>v,i0:()=>g,$S:()=>function e(...t){return 0===t.length?e=>w(e,["pending","fulfilled","rejected"]):E(t)?g(...t.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):e()(t[0])},sf:()=>function e(...t){return 0===t.length?e=>w(e,["fulfilled"]):E(t)?g(...t.map(e=>e.fulfilled)):e()(t[0])},mm:()=>function e(...t){return 0===t.length?e=>w(e,["pending"]):E(t)?g(...t.map(e=>e.pending)):e()(t[0])},TK:()=>P,WA:()=>function e(...t){let r=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===t.length||E(t)?v(P(...t),r):e()(t[0])},Ak:()=>T,aA:()=>h});var n=r(83129);function i(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var a=i(),s=r(64609),o=(r(65364),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?n.Zz:n.Zz.apply(null,arguments)});function l(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(L(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,n.ve)(t)&&t.type===e,r}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var u=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function c(e){return(0,s.a6)(e)?(0,s.jM)(e,()=>{}):e}function d(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var f="RTK_autoBatch",h=()=>e=>({payload:e,meta:{[f]:!0}}),p=e=>t=>{setTimeout(t,e)};function m(e){let t,r,s,l=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new u;return t&&("boolean"==typeof t?o.push(a):o.push(i(t.extraArgument))),o},{reducer:c,middleware:d,devTools:h=!0,duplicateMiddlewareCheck:m=!0,preloadedState:y,enhancers:b}=e||{};if("function"==typeof c)t=c;else if((0,n.Qd)(c))t=(0,n.HY)(c);else throw Error(L(1));r="function"==typeof d?d(l):l();let g=n.Zz;h&&(g=o({trace:!1,..."object"==typeof h&&h}));let v=(s=(0,n.Tw)(...r),function(e){let{autoBatch:t=!0}=e??{},r=new u(s);return t&&r.push(((e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,a=!1,s=!1,o=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:p(10):"callback"===e.type?e.queueNotification:p(e.timeout),u=()=>
15{s=!1,a&&(a=!1,o.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return o.add(e),()=>{t(),o.delete(e)}},dispatch(e){try{return(a=!(i=!e?.meta?.[f]))&&!s&&(s=!0,l(u)),n.dispatch(e)}finally{i=!0}}})})("object"==typeof t?t:void 0)),r}),w=g(..."function"==typeof b?b(v):v());return(0,n.y$)(t,y,w)}function y(e){let t,r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(L(28));if(n in r)throw Error(L(29));return r[n]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var b=(e,t)=>(e=>e&&"function"==typeof e.match)(e)?e.match(t):e(t);function g(...e){return t=>e.some(e=>b(e,t))}function v(...e){return t=>e.every(e=>b(e,t))}function w(e,t){if(!e||!e.meta)return!1;let r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function E(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function P(...e){return 0===e.length?e=>w(e,["rejected"]):E(e)?g(...e.map(e=>e.rejected)):P()(e[0])}var T=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},C=["name","message","stack","code"],A=class{constructor(e,t){this.payload=e,this.meta=t}_type},S=class{constructor(e,t){this.payload=e,this.meta=t}_type},_="External signal was aborted",O=(()=>{function e(e,t,r){let n=l(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),i=l(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),a=l(e+"/rejected",(e,t,n,i,a)=>({payload:i,error:(r&&r.serializeError||(e=>{if("object"==typeof e&&null!==e){let t={};for(let r of C)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}}))(e||"Rejected"),meta:{...a||{},arg:n,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e,{signal:s}={}){return(o,l,u)=>{let c,d,f=r?.idGenerator?r.idGenerator(e):T(),h=new AbortController;function p(e){d=e,h.abort()}s&&(s.aborted?p(_):s.addEventListener("abort",()=>p(_),{once:!0}));let m=async function(){let s;try{var m;let a=r?.condition?.(e,{getState:l,extra:u});if(m=a,null!==m&&"object"==typeof m&&"function"==typeof m.then&&(a=await a),!1===a||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let y=new Promise((e,t)=>{c=()=>{t({name:"AbortError",message:d||"Aborted"})},h.signal.addEventListener("abort",c)});o(i(f,e,r?.getPendingMeta?.({requestId:f,arg:e},{getState:l,extra:u}))),s=await Promise.race([y,Promise.resolve(t(e,{dispatch:o,getState:l,extra:u,requestId:f,signal:h.signal,abort:p,rejectWithValue:(e,t)=>new A(e,t),fulfillWithValue:(e,t)=>new S(e,t)})).then(t=>{if(t instanceof A)throw t;return t instanceof S?n(t.payload,f,e,t.meta):n(t,f,e)})])}catch(t){s=t instanceof A?a(null,f,e,t.payload,t.meta):a(t,f,e)}finally{c&&h.signal.removeEventListener("abort",c)}return r&&!r.dispatchConditionRejection&&a.match(s)&&s.meta.condition||o(s),s}();return Object.assign(m,{abort:p,requestId:f,arg:e,unwrap:()=>m.then(k)})}},{pending:i,rejected:a,fulfilled:n,settled:g(a,n),typePrefix:e})}return e.withTypes=()=>e,e})();function k(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var I=Symbol.for("rtk-slice-createasyncthunk"),M=(e=>(e.reducer="reducer",e.reducerWithPrepare="reducerWithPrepare",e.asyncThunk="asyncThunk",e))(M||{}),j=function({creators:e}={}){let t=e?.asyncThunk?.[I];return function(e){let r,{name:n,reducerPath:i=n}=e;if(!n)throw Error(L(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(a),u={},f={},h={},p=[],m={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(L(12));if(r in f)throw Error(L(13));return f[r]=t,m},addMatcher:(e,t)=>(p.push({matcher:e,reducer:t}),m),exposeAction:(e,t)=>(h[e]=t,m),exposeCaseReducer:(e,t)=>(u[e]=t,m)};function b(){let[t={},r=[],n]="function"==typeof e.extraReducers?y(e.extraReducers):[e.extraReducers],i={...t,...f};return function(e,t){let r,[n,i,a]=y(t);if("function"==typeof e)r=()=>c(e());else{let t=c(e);r=()=>t}function o(e=r(),t){let l=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===l.filter(e=>!!e).length&&(l=[a]),l.reduce((e,r)=>{if(r)if((0,s.Qx)(e)){let n=r(e,t);return void 0===n?e:n}else{if((0,s.a6)(e))return(0,s.jM)(e,e=>r(e,t));let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of p)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}
15o.forEach(r=>{let i=a[r],s={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(L(18));let{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:c}=r,d=i(e,a,c);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),o&&n.addCase(d.pending,o),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:s||R,pending:o||R,rejected:l||R,settled:u||R})}(s,i,m,t):function({type:e,reducerName:t,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(L(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?l(e,s):l(e))}(s,i,m)});let g=e=>e,v=new Map,w=new WeakMap;function E(e,t){return r||(r=b()),r(e,t)}function P(){return r||(r=b()),r.getInitialState()}function T(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=d(w,n,P)),i}function i(t=g){let n=d(v,r,()=>new WeakMap);return d(n,t,()=>{let n={};for(let[i,a]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(a,...s){let o=t(a);return void 0===o&&n&&(o=r()),e(o,...s)}return i.unwrapped=e,i}(a,t,()=>d(w,t,P),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let C={name:n,reducer:E,actions:h,caseReducers:u,getInitialState:P,...T(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:E},r),{...C,...T(n,!0)}}};return C}}();function R(){}var{assign:B}=Object,N="listenerMiddleware",D=B(e=>{let{type:t,predicate:r,effect:n}=(e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=l(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(L(21));if("function"!=typeof a)throw TypeError(L(32));return{predicate:i,type:t,effect:a}})(e);
15return{id:T(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(L(22))}}},{withTypes:()=>D}),$=B(l(`${N}/add`),{withTypes:()=>$}),F=B(l(`${N}/remove`),{withTypes:()=>F});function L(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},53422:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(16006),i=r(81645);async function a(e,{address:t,blockTag:r="latest",blockNumber:a}){let s=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof a?(0,i.cK)(a):r]},{dedupe:!!a});return(0,n.ME)(s)}},54410:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},56056:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},56118:(e,t,r)=>{"use strict";r.d(t,{RE:()=>l,l0:()=>et,$J:()=>d,m7:()=>ed,cw:()=>E,$k:()=>O,hT:()=>Q});var n=r(83129),i=r(53088),a=r(64609),s=r(35881),o=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},l=(r(65364),(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(l||{}));function u(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}var c=n.Qd;function d(e,t){if(e===t||!(c(e)&&c(t)||Array.isArray(e)&&Array.isArray(t)))return t;let r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{};for(let n of r)a[n]=d(e[n],t[n]),i&&(i=e[n]===a[n]);return i?e:a}function f(e){let t=0;for(let r in e)t++;return t}var h=e=>[].concat(...e);function p(e){return null!=e}function m(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var y=()=>new Map,b=(...e)=>fetch(...e),g=e=>e.status>=200&&e.status<=299,v=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function w(e){if(!(0,n.Qd)(e))return e;let t={...e};for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function E({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=b,paramsSerializer:i,isJsonContentType:a=v,jsonContentType:s="application/json",jsonReplacer:o,timeout:l,responseHandler:u,validateStatus:c,...d}={}){return"undefined"==typeof fetch&&r===b&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,p,m)=>{let y,b,{getState:v,extra:E,endpoint:P,forced:T,type:C}=p,{url:A,headers:S=new Headers(d.headers),params:_,responseHandler:O=u??"json",validateStatus:k=c??g,timeout:I=l,...M}="string"==typeof h?{url:h}:h,j,R=p.signal;I&&(j=new AbortController,p.signal.addEventListener("abort",j.abort),R=j.signal);let B={...d,signal:R,...M};S=new Headers(w(S)),B.headers=await t(S,{getState:v,arg:h,extra:E,endpoint:P,forced:T,type:C,extraOptions:m})||S;let N=e=>"object"==typeof e&&((0,n.Qd)(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!B.headers.has("content-type")&&N(B.body)&&B.headers.set("content-type",s),N(B.body)&&a(B.headers)&&(B.body=JSON.stringify(B.body,o)),_){let e=~A.indexOf("?")?"&":"?";A+=e+(i?i(_):new URLSearchParams(w(_)))}let D=new Request(A=function(e,t){var r;if(!e)return t;if(!t)return e;if(r=t,RegExp("(^|:)//").test(r))return t;let n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=e.replace(/\/$/,""),t=t.replace(/^\//,""),`${e}${n}${t}`}(e,A),B);y={request:new Request(A,B)};let $,F=!1,L=j&&setTimeout(()=>{F=!0,j.abort()},I);try{$=await r(D)}catch(e){return{error:{status:F?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:y}}finally{L&&clearTimeout(L),j?.signal.removeEventListener("abort",j.abort)}let q=$.clone();y.response=q;let U="";try{let e;if(await Promise.all([f($,O).then(e=>b=e,t=>e=t),q.text().then(e=>U=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:$.status,data:U,error:String(e)},meta:y}}return k($,b)?{data:b,meta:y}:{error:{status:$.status,data:b},meta:y}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var P=class{constructor(e,t){this.value=e,this.meta=t}},T=(0,i.VP)("__rtkq/focused"),C=(0,i.VP)("__rtkq/unfocused"),A=(0,i.VP)("__rtkq/online"),S=(0,i.VP)("__rtkq/offline"),_=!1;function O(e,t){return t?t(e,{onFocus:T,onFocusLost:C,onOffline:S,onOnline:A}):function(){let t=()=>e(T()),r=()=>e(A()),n=()=>e(S()),i=()=>{"visible"===window.document.visibilityState?t():e(C())};return!_&&"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),_=!0),()=>{window.removeEventListener("focus",t),window.removeEventListener("visibilitychange",i
15),window.removeEventListener("online",r),window.removeEventListener("offline",n),_=!1}}()}function k(e){return"query"===e.type}function I(e){return"infinitequery"===e.type}function M(e){return k(e)||I(e)}function j(e,t,r,n,i,a){return"function"==typeof e?e(t,r,n,i).filter(p).map(R).map(a):Array.isArray(e)?e.map(R).map(a):[]}function R(e){return"string"==typeof e?{type:e}:e}var B=Symbol("forceQueryFn"),N=e=>"function"==typeof e[B],D=class extends o{constructor(e,t,r,n){super(e),this.value=t,this.schemaName=r,this._bqMeta=n}},$=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function F(e,t,r,n){let i=await e["~standard"].validate(t);if(i.issues)throw new D(i.issues,t,r,n);return i.value}function L(e){return e}var q=(e={})=>({...e,[i.cN]:!0});function U(e,{pages:t,pageParams:r},n){let i=t.length-1;return e.getNextPageParam(t[i],t,r[i],r,n)}function z(e,{pages:t,pageParams:r},n){return e.getPreviousPageParam?.(t[0],t,r[0],r,n)}function V(e,t,r,n){return j(r[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function G(e,t,r){let n=e[t];n&&r(n)}function H(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function K(e,t,r){let n=e[H(t)];n&&r(n)}var W={},Q=Symbol.for("RTKQ/skipToken"),Z={status:"uninitialized"},Y=(0,a.jM)(Z,()=>{}),X=(0,a.jM)(Z,()=>{}),J=WeakMap?new WeakMap:void 0,ee=({endpointName:e,queryArgs:t})=>{let r="",i=J?.get(t);if("string"==typeof i)r=i;else{let e=JSON.stringify(t,(e,t)=>(t="bigint"==typeof t?{$bigint:t.toString()}:t,t=(0,n.Qd)(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t));(0,n.Qd)(t)&&J?.set(t,e),r=e}return`${e}(${r})`};function et(...e){return function(t){let r=(0,s.X4)(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=ee;if("serializeQueryArgs"in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;r=e=>{let r=t(e);return"string"==typeof r?r:ee({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:r,hasRehydrationInfo:(0,s.X4)(e=>null!=r(e))},o={injectEndpoints:function(e){for(let[t,r]of Object.entries(e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"}),infiniteQuery:e=>({...e,type:"infinitequery"})}))){if(!0!==e.overrideExisting&&t in a.endpointDefinitions){if("throw"===e.overrideExisting)throw Error((0,i.gk)(39));continue}for(let e of(a.endpointDefinitions[t]=r,l))e.injectEndpoint(t,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(let[e,r]of Object.entries(t))"function"==typeof r?r(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},r);return o}},l=e.map(e=>e.init(o,n,a));return o.injectEndpoints({endpoints:t.endpoints})}}function er(e,...t){return Object.assign(e,...t)}var en=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:a,selectors:{selectQueryEntry:s,selectConfig:o},getRunningQueryThunk:l,mwApi:u})=>{let{removeQueryResult:c,unsubscribeQueryResult:d,cacheEntriesUpserted:f}=t.internalActions,h=a.runningQueries.get(u.dispatch),p=(0,i.i0)(d.match,r.fulfilled,r.rejected,f.match);function m(e){let t=a.currentSubscriptions.get(e);if(!t)return!1;let r=t.size>0,n=h?.[e]!==void 0;return r||n}let y={};function b(e,t,r){let i=t.getState();for(let a of e){let e=s(i,a);e?.endpointName&&function(e,t,r,i){let a=n.endpointDefinitions[t],o=a?.keepUnusedDataFor??i.keepUnusedDataFor;if(o===1/0)return;let u=Math.max(0,Math.min(o,2147482.647));if(!m(e)){let t=y[e];t&&clearTimeout(t),y[e]=setTimeout(()=>{if(!m(e)){let t=s(r.getState(),e);if(t?.endpointName){let e=r.dispatch(l(t.endpointName,t.originalArgs));e?.abort()}r.dispatch(c({queryCacheKey:e}))}delete y[e]},1e3*u)}}(a,e.endpointName,t,r)}}
15return(e,r,i)=>{let a=o(r.getState());if(p(e)){let t;if(f.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:r}=d.match(e)?e.payload:e.meta.arg;t=[r]}b(t,r,a)}if(t.util.resetApiState.match(e))for(let[e,t]of Object.entries(y))t&&clearTimeout(t),delete y[e];if(n.hasRehydrationInfo(e)){let{queries:t}=n.extractRehydrationInfo(e);b(Object.keys(t),r,a)}}},ei=Error("Promise never resolved before cacheEntryRemoved."),ea=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:a,internalState:s,selectors:{selectQueryEntry:o,selectApiState:l}})=>{let u=(0,i.$S)(n),c=(0,i.$S)(a),d=(0,i.sf)(n,a),f={};function h(e,t,r){let n=f[e];n?.valueResolved&&(n.valueResolved({data:t,meta:r}),delete n.valueResolved)}function p(e){let t=f[e];t&&(delete f[e],t.cacheEntryRemoved())}function m(t,n,i,a,s){let o=r.endpointDefinitions[t],l=o?.onCacheEntryAdded;if(!l)return;let u={},c=new Promise(e=>{u.cacheEntryRemoved=e}),d=Promise.race([new Promise(e=>{u.valueResolved=e}),c.then(()=>{throw ei})]);d.catch(()=>{}),f[i]=u;let h=e.endpoints[t].select(M(o)?n:i),p=a.dispatch((e,t,r)=>r),m={...a,getCacheEntry:()=>h(a.getState()),requestId:s,extra:p,updateCachedData:M(o)?r=>a.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:d,cacheEntryRemoved:c};Promise.resolve(l(n,m)).catch(e=>{if(e!==ei)throw e})}return(r,i,s)=>{let l=function(t){return u(t)?t.meta.arg.queryCacheKey:c(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?H(t.payload):""}(r);function y(e,t,r,n){let a=o(s,t),l=o(i.getState(),t);!a&&l&&m(e,n,t,i,r)}if(n.pending.match(r))y(r.meta.arg.endpointName,l,r.meta.requestId,r.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(r))for(let{queryDescription:e,value:t}of r.payload){let{endpointName:n,originalArgs:i,queryCacheKey:a}=e;y(n,a,r.meta.requestId,i),h(a,t,{})}else if(a.pending.match(r))i.getState()[t].mutations[l]&&m(r.meta.arg.endpointName,r.meta.arg.originalArgs,l,i,r.meta.requestId);else if(d(r))h(l,r.payload,r.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r))p(l);else if(e.util.resetApiState.match(r))for(let e of Object.keys(f))p(e)}},es=({api:e,context:{apiUid:t},reducerPath:r})=>(r,n)=>{e.util.resetApiState.match(r)&&n.dispatch(e.internalActions.middlewareRegistered(t))},eo=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:a,api:s,assertTagType:o,refetchQuery:l,internalState:u})=>{let{removeQueryResult:c}=s.internalActions,d=(0,i.i0)((0,i.sf)(n),(0,i.WA)(n)),f=(0,i.i0)((0,i.sf)(n,a),(0,i.TK)(n,a)),h=[];function p(r,n){let i=n.getState(),a=i[e];if(h.push(...r),"delayed"===a.config.invalidationBehavior&&function(e){let{queries:t,mutations:r}=e;for(let e of[t,r])for(let t in e)if(e[t]?.status==="pending")return!0;return!1}(a))return;let o=h;if(h=[],0===o.length)return;let d=s.util.selectInvalidatedBy(i,o);t.batch(()=>{for(let{queryCacheKey:e}of Array.from(d.values())){let t=a.queries[e],r=m(u.currentSubscriptions,e,y);t&&(0===r.size?n.dispatch(c({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(l(t)))}})}return(e,t)=>{d(e)?p(V(e,"invalidatesTags",r,o),t):f(e)?p([],t):s.util.invalidateTags.match(e)&&p(j(e.payload,void 0,void 0,void 0,void 0,o),t)}},el=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{let{currentPolls:a,currentSubscriptions:s}=i,o=new Set,l=null;function u(t,r){o.add(t),l||(l=setTimeout(()=>{for(let t of o)!function({queryCacheKey:t},r){let n=r.getState()[e].queries[t],i=s.get(t);if(!n||"uninitialized"===n.status)return;let{lowestPollingInterval:o}=f(i);if(!Number.isFinite(o))return d(t);let l=a.get(t),u=Date.now()+o;(!l||u<l.nextPollTimestamp)&&c({queryCacheKey:t},r)}({queryCacheKey:t},r);o.clear(),l=null},0))}function c({queryCacheKey:t},r){let i=r.getState()[e],o=i.queries[t],l=s.get(t);if(!o||"uninitialized"===o.status)return;let{lowestPollingInterval:u,skipPollingIfUnfocused:d}=f(l);if(!Number.isFinite(u))return;let h=a.get(t);h?.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);let p=Date.now()+u;a.set(t,{nextPollTimestamp:p,pollingInterval:u,timeout:setTimeout(()=>{(i.config.focused||!d)&&r.dispatch(n(o)),c({queryCacheKey:t},r)},u)})}function d(e){let t=a.get(e);t?.timeout&&clearTimeout(t.timeout),a.delete(e)}function f(e=new Map){let t=!1,r=1/0;for(let n of e.values())n.pollingInterval&&(r=Math.min(n.pollingInterval,r),t=n.skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload.queryCacheKey,n),(t.pen
15ding.match(e)||t.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg.queryCacheKey,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&c(e.meta.arg,n),r.util.resetApiState.match(e)&&(function(){for(let e of a.keys())d(e)}(),l&&(clearTimeout(l),l=null),o.clear())}},eu=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{let a=(0,i.mm)(r,n),s=(0,i.TK)(r,n),o=(0,i.sf)(r,n),l={};return(r,n)=>{if(a(r)){let{requestId:i,arg:{endpointName:a,originalArgs:s}}=r.meta,o=t.endpointDefinitions[a],u=o?.onQueryStarted;if(u){let t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r});r.catch(()=>{}),l[i]=t;let c=e.endpoints[a].select(M(o)?s:i),d=n.dispatch((e,t,r)=>r),f={...n,getCacheEntry:()=>c(n.getState()),requestId:i,extra:d,updateCachedData:M(o)?t=>n.dispatch(e.util.updateQueryData(a,s,t)):void 0,queryFulfilled:r};u(s,f)}}else if(o(r)){let{requestId:e,baseQueryMeta:t}=r.meta;l[e]?.resolve({data:r.payload,meta:t}),delete l[e]}else if(s(r)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;l[e]?.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete l[e]}}},ec=Symbol(),ed=({createSelector:e=s.Mz}={})=>({name:ec,init(t,{baseQuery:r,tagTypes:s,reducerPath:o,serializeQueryArgs:l,keepUnusedDataFor:c,refetchOnMountOrArgChange:b,refetchOnFocus:g,refetchOnReconnect:v,invalidationBehavior:w,onSchemaFailure:E,catchSchemaFailure:_,skipSchemaValidation:O},M){(0,a.YT)();let Z=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:A,onOffline:S,onFocus:T,onFocusLost:C},util:{}});let J=function({serializeQueryArgs:e,reducerPath:t,createSelector:r}){let n=e=>Y,i=e=>X;return{buildQuerySelector:function(e,t){return c(e,t,a)},buildInfiniteQuerySelector:function(e,t){let{infiniteQueryOptions:r}=t;return c(e,t,function(e){var t,n,i,a,s,o;let l={...e,...u(e.status)},{isLoading:c,isError:d,direction:f}=l,h="forward"===f,p="backward"===f;return{...l,hasNextPage:(t=r,n=l.data,i=l.originalArgs,!!n&&null!=U(t,n,i)),hasPreviousPage:(a=r,s=l.data,o=l.originalArgs,!!s&&!!a.getPreviousPageParam&&null!=z(a,s,o)),isFetchingNextPage:c&&h,isFetchingPreviousPage:c&&p,isFetchNextPageError:d&&h,isFetchPreviousPageError:d&&p}})},buildMutationSelector:function(){return e=>{let n;return r((n="object"==typeof e?H(e)??Q:e)===Q?i:e=>(function(e){return e[t]})(e)?.mutations?.[n]??X,a)}},selectInvalidatedBy:function(e,r){let n=e[t],i=new Set;for(let e of r.filter(p).map(R)){let t=n.provided.tags[e.type];if(t)for(let r of(void 0!==e.id?t[e.id]:h(Object.values(t)))??[])i.add(r)}return h(Array.from(i.values()).map(e=>{let t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,t){return Object.values(o(e)).filter(e=>e?.endpointName===t&&"uninitialized"!==e.status).map(e=>e.originalArgs)},selectApiState:s,selectQueries:o,selectMutations:function(e){return function(e){return e[t]}(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return function(e){return e[t]}(e)?.config}};function a(e){return{...e,...u(e.status)}}function s(e){return e[t]}function o(e){return e[t]?.queries}function l(e,t){return o(e)?.[t]}function c(t,i,a){return s=>{if(s===Q)return r(n,a);let o=e({queryArgs:s,endpointDefinition:i,endpointName:t});return r(e=>l(e,o)??Y,a)}}}({serializeQueryArgs:l,reducerPath:o,createSelector:e}),{selectInvalidatedBy:ee,selectCachedArgsForQuery:et,buildQuerySelector:ei,buildInfiniteQuerySelector:ed,buildMutationSelector:ef}=J;er(t.util,{selectInvalidatedBy:ee,selectCachedArgsForQuery:et});let{queryThunk:eh,infiniteQueryThunk:ep,mutationThunk:em,patchQueryData:ey,updateQueryData:eb,upsertQueryData:eg,prefetch:ev,buildMatchThunkActions:ew}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:s,assertTagType:o,selectors:l,onSchemaFailure:u,catchSchemaFailure:c,skipSchemaValidation:d}){function f(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}function h(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}let p=(e,t)=>e.query&&e[t]?e[t]:L,m=async(e,{signal:n,abort:i,rejectWithValue:a,fulfillWithValue:s,dispatch:o,getState:m,extra:b})=>{let g=r[e.endpointName],{metaSchema:v,skipSchemaValidation:w=d}=g;try{let r,a=L,u={signal:n,abort:i,dispatch:o,getState:m,extra:b,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?y(e,m
15()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},c="query"===e.type?e[B]:void 0,d=async(t,r,n,i)=>{if(null==r&&t.pages.length)return Promise.resolve({data:t});let a={queryArg:e.originalArgs,pageParam:r},s=await E(a),o=i?f:h;return{data:{pages:o(t.pages,s.data,n),pageParams:o(t.pageParams,r,n)},meta:s.meta}};async function E(e){let r,{extraOptions:n,argSchema:i,rawResponseSchema:s,responseSchema:o}=g;if(i&&!$(w,"arg")&&(e=await F(i,e,"argSchema",{})),c?r=c():g.query?(a=p(g,"transformResponse"),r=await t(g.query(e),u,n)):r=await g.queryFn(e,u,n,e=>t(e,u,n)),r.error)throw new P(r.error,r.meta);let{data:l}=r;s&&!$(w,"rawResponse")&&(l=await F(s,r.data,"rawResponseSchema",r.meta));let d=await a(l,r.meta,e);return o&&!$(w,"response")&&(d=await F(o,d,"responseSchema",r.meta)),{...r,data:d}}if("query"===e.type&&"infiniteQueryOptions"in g){let t,{infiniteQueryOptions:n}=g,{maxPages:i=1/0}=n,a=l.selectQueryEntry(m(),e.queryCacheKey)?.data,s=(!y(e,m())||e.direction)&&a?a:{pages:[],pageParams:[]};if("direction"in e&&e.direction&&s.pages.length){let r="backward"===e.direction,a=(r?z:U)(n,s,e.originalArgs);t=await d(s,a,i,r)}else{let{initialPageParam:r=n.initialPageParam}=e,o=a?.pageParams??[],l=o[0]??r,u=o.length;t=await d(s,l,i),c&&(t={data:t.data.pages[0]});for(let r=1;r<u;r++){let r=U(n,t.data,e.originalArgs);t=await d(t.data,r,i)}}r=t}else r=await E(e.originalArgs);return v&&!$(w,"meta")&&r.meta&&(r.meta=await F(v,r.meta,"metaSchema",r.meta)),s(r.data,q({fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta}))}catch(r){let t=r;if(t instanceof P){let r=p(g,"transformErrorResponse"),{rawErrorResponseSchema:n,errorResponseSchema:i}=g,{value:s,meta:o}=t;try{n&&!$(w,"rawErrorResponse")&&(s=await F(n,s,"rawErrorResponseSchema",o)),v&&!$(w,"meta")&&(o=await F(v,o,"metaSchema",o));let t=await r(s,o,e.originalArgs);return i&&!$(w,"errorResponse")&&(t=await F(i,t,"errorResponseSchema",o)),a(t,q({baseQueryMeta:o}))}catch(e){t=e}}try{if(t instanceof D){let r={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0};g.onSchemaFailure?.(t,r),u?.(t,r);let{catchSchemaFailure:n=c}=g;if(n)return a(n(t,r),q({baseQueryMeta:t._bqMeta}))}}catch(e){t=e}throw console.error(t),t}};function y(e,t){let r=l.selectQueryEntry(t,e.queryCacheKey),n=l.selectConfig(t).refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=e.forceRefetch??(e.subscribe&&n);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}let b=()=>(0,i.zD)(`${e}/executeQuery`,m,{getPendingMeta({arg:e}){let t=r[e.endpointName];return q({startedTimeStamp:Date.now(),...I(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let n=t(),i=l.selectQueryEntry(n,e.queryCacheKey),a=i?.fulfilledTimeStamp,s=e.originalArgs,o=i?.originalArgs,u=r[e.endpointName],c=e.direction;return!!N(e)||i?.status!=="pending"&&(!!(y(e,n)||k(u)&&u?.forceRefetch?.({currentArg:s,previousArg:o,endpointState:i,state:n}))||!a||!!c)},dispatchConditionRejection:!0}),g=b(),v=b();function w(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:g,mutationThunk:(0,i.zD)(`${e}/executeMutation`,m,{getPendingMeta:()=>q({startedTimeStamp:Date.now()})}),infiniteQueryThunk:v,prefetch:(e,t,r)=>(n,i)=>{let a="force"in r&&r.force,o="ifOlderThan"in r&&r.ifOlderThan,l=(r=!0)=>s.endpoints[e].initiate(t,{forceRefetch:r,isPrefetch:!0}),u=s.endpoints[e].select(t)(i());if(a)n(l());else if(o){let e=u?.fulfilledTimeStamp;if(!e)return void n(l());(Number(new Date)-Number(new Date(e)))/1e3>=o&&n(l())}else n(l(!1))},updateQueryData:(e,t,r,n=!0)=>(i,o)=>{let l,u=s.endpoints[e].select(t)(o()),c={patches:[],inversePatches:[],undo:()=>i(s.util.patchQueryData(e,t,c.inversePatches,n))};if("uninitialized"===u.status)return c;if("data"in u)if((0,a.a6)(u.data)){let[e,t,n]=(0,a.vI)(u.data,r);c.patches.push(...t),c.inversePatches.push(...n),l=e}else l=r(u.data),c.patches.push({op:"replace",path:[],value:l}),c.inversePatches.push({op:"replace",path:[],value:u.data});return 0===c.patches.length||i(s.util.patchQueryData(e,t,c.patches,n)),c},upsertQueryData:(e,t,r)=>n=>n(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[B]:()=>({data:r})})),patchQueryData:(e,t,i,a)=>(l,u)=>{let c=r[e],d=n({queryArgs:t,endpointDefinition:c,endpointName:e});if(l(s.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!a)return;
15let f=s.endpoints[e].select(t)(u()),h=j(c.providesTags,f.data,void 0,t,{},o);l(s.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:h}]))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),w(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),w(t)),matchRejected:(0,i.f$)((0,i.TK)(e),w(t))}}}}({baseQuery:r,reducerPath:o,context:M,api:t,serializeQueryArgs:l,assertTagType:Z,selectors:J,onSchemaFailure:E,catchSchemaFailure:_,skipSchemaValidation:O}),{reducer:ex,actions:eE}=function({reducerPath:e,queryThunk:t,mutationThunk:r,serializeQueryArgs:s,context:{endpointDefinitions:o,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:c},assertTagType:f,config:h}){let p=(0,i.VP)(`${e}/resetApiState`);function m(e,t,r,n){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},G(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:n.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=n.startedTimeStamp,I(o[n.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function y(e,t,r,n){G(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!n)return;let{merge:i}=o[t.arg.endpointName];if(e.status="fulfilled",i)if(void 0!==e.data){let{fulfilledTimeStamp:n,arg:s,baseQueryMeta:o,requestId:l}=t,u=(0,a.jM)(e.data,e=>i(e,r,{arg:s.originalArgs,baseQueryMeta:o,fulfilledTimeStamp:n,requestId:l}));e.data=u}else e.data=r;else e.data=o[t.arg.endpointName].structuralSharing??!0?d((0,a.Qx)(e.data)?(0,a.c2)(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let b=(0,i.Z0)({name:`${e}/queries`,initialState:W,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},cacheEntriesUpserted:{reducer(e,t){for(let r of t.payload){let{queryDescription:n,value:i}=r;m(e,n,!0,{arg:n,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),y(e,{arg:n,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:r,value:n}=e,i=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:s({queryArgs:r,endpointDefinition:i,endpointName:t})},value:n}}),meta:{[i.cN]:!0,requestId:(0,i.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){G(e,t,e=>{e.data=(0,a.$i)(e.data,r.concat())})},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:r}})=>{let n=N(r);m(e,r,n,t)}).addCase(t.fulfilled,(e,{meta:t,payload:r})=>{let n=N(t.arg);y(e,t,r,n)}).addCase(t.rejected,(e,{meta:{condition:t,arg:r,requestId:n},error:i,payload:a})=>{G(e,r.queryCacheKey,e=>{if(t);else{if(e.requestId!==n)return;e.status="rejected",e.error=a??i}})}).addMatcher(c,(e,t)=>{let{queries:r}=u(t);for(let[t,n]of Object.entries(r))(n?.status==="fulfilled"||n?.status==="rejected")&&(e[t]=n)})}}),g=(0,i.Z0)({name:`${e}/mutations`,initialState:W,reducers:{removeMutationResult:{reducer(e,{payload:t}){let r=H(t);r in e&&delete e[r]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(r.pending,(e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:i}})=>{n.track&&(e[H(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:i})}).addCase(r.fulfilled,(e,{payload:t,meta:r})=>{r.arg.track&&K(e,r,e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)})}).addCase(r.rejected,(e,{payload:t,error:r,meta:n})=>{n.arg.track&&K(e,n,e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)})}).addMatcher(c,(e,t)=>{let{mutations:r}=u(t);for(let[t,n]of Object.entries(r))(n?.status==="fulfilled"||n?.status==="rejected")&&t!==n?.requestId&&(e[t]=n)})}}),v=(0,i.Z0)({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(let{queryCacheKey:r,providedTags:n}of t.payload){for(let{type:t,id:i}of(w(e,r),n)){let n=(e.tags[t]??={})[i||"__internal_without_id"]??=[];n.includes(r)||n.push(r)}e.keys[r]=n}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(b.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{w(e,t)}).addMatcher(c,(e,t)=>{let{provided:r}=u(t);for(let[t,n]of Object.entries(r.tags??{}))for(let[i,a]of Object.entries(n)){let n=(e.tags[t]??={})[i||"__internal_without_id"]??=[];for(let t of a)n.includes(t)||n.push(t),e.keys[t]=r.keys[t]}}).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),(e,t)=>{E(e,[t])}).addMatcher(b.actions.cacheEntriesUpserted.match,(e,t)=>{E(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function w(e,t){for(let r of e.keys[t]??[]){let n=r.type,i=r.id??"__internal_without_id",a=e.tags[n]?.[i];a&&(e.tags[n][i]=a.filter(e=>e!==t))}delete e.keys[t]}function E(e,t){let r=t.map(e=>{let t=V(e,"providesTags",o,f),{queryCacheKey:r}=e.meta.arg;return{queryCacheKey:r,providedTags:t}});v.caseReducers.updateProvidedBy(e,v.actions.updateProvidedBy(r))}let P=(0,i.Z0)({name:`${e}/subscriptions`,initialState:W,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),_=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:W,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,a.$i)(e,t.payload),prepare:(0,i.aA)()}}}),O=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focu
15sed:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...h},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(A,e=>{e.online=!0}).addCase(S,e=>{e.online=!1}).addCase(T,e=>{e.focused=!0}).addCase(C,e=>{e.focused=!1}).addMatcher(c,e=>({...e}))}}),k=(0,n.HY)({queries:b.reducer,mutations:g.reducer,provided:v.reducer,subscriptions:_.reducer,config:O.reducer});return{reducer:(e,t)=>k(p.match(t)?void 0:e,t),actions:{...O.actions,...b.actions,...P.actions,..._.actions,...g.actions,...v.actions,resetApiState:p}}}({context:M,queryThunk:eh,infiniteQueryThunk:ep,mutationThunk:em,serializeQueryArgs:l,reducerPath:o,assertTagType:Z,config:{refetchOnFocus:g,refetchOnReconnect:v,refetchOnMountOrArgChange:b,keepUnusedDataFor:c,reducerPath:o,invalidationBehavior:w}});er(t.util,{patchQueryData:ey,updateQueryData:eb,upsertQueryData:eg,prefetch:ev,resetApiState:eE.resetApiState,upsertQueryEntries:eE.cacheEntriesUpserted}),er(t.internalActions,eE);let eP={currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map},{buildInitiateQuery:eT,buildInitiateInfiniteQuery:eC,buildInitiateMutation:eA,getRunningMutationThunk:eS,getRunningMutationsThunk:e_,getRunningQueriesThunk:eO,getRunningQueryThunk:ek}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:r,mutationThunk:n,api:i,context:a,internalState:s}){let{runningQueries:o,runningMutations:l}=s,{unsubscribeQueryResult:u,removeMutationResult:c,updateSubscriptionOptions:d}=i.internalActions;return{buildInitiateQuery:function(e,t){return h(e,t)},buildInitiateInfiniteQuery:function(e,t){return h(e,t)},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(a,s)=>{var o,u;let d=a(n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i})),{requestId:h,abort:p,unwrap:m}=d,y=Object.assign((o=d.unwrap().then(e=>({data:e})),u=e=>({error:e}),o.catch(u)),{arg:d.arg,requestId:h,abort:p,unwrap:m,reset:()=>{a(c({requestId:h,fixedCacheKey:i}))}}),b=l.get(a)||{};return l.set(a,b),b[h]=y,y.then(()=>{delete b[h],f(b)||l.delete(a)}),i&&(b[i]=y,y.then(()=>{b[i]===y&&(delete b[i],f(b)||l.delete(a))})),y}},getRunningQueryThunk:function(t,r){return n=>{let i=e({queryArgs:r,endpointDefinition:a.endpointDefinitions[t],endpointName:t});return o.get(n)?.[i]}},getRunningMutationThunk:function(e,t){return e=>l.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(p)},getRunningMutationsThunk:function(){return e=>Object.values(l.get(e)||{}).filter(p)}};function h(n,a){let s=(l,{subscribe:c=!0,forceRefetch:h,subscriptionOptions:p,[B]:m,...y}={})=>(b,g)=>{let v,w=e({queryArgs:l,endpointDefinition:a,endpointName:n}),E={...y,type:"query",subscribe:c,forceRefetch:h,subscriptionOptions:p,endpointName:n,originalArgs:l,queryCacheKey:w,[B]:m};if(k(a))v=t(E);else{let{direction:e,initialPageParam:t}=y;v=r({...E,direction:e,initialPageParam:t})}let P=i.endpoints[n].select(l),T=b(v),C=P(g()),{requestId:A,abort:S}=T,_=C.requestId!==A,O=o.get(b)?.[w],I=()=>P(g()),M=Object.assign(m?T.then(I):_&&!O?Promise.resolve(C):Promise.all([O,T]).then(I),{arg:l,requestId:A,subscriptionOptions:p,queryCacheKey:w,abort:S,async unwrap(){let e=await M;if(e.isError)throw e.error;return e.data},refetch:()=>b(s(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&b(u({queryCacheKey:w,requestId:A}))},updateSubscriptionOptions(e){M.subscriptionOptions=e,b(d({endpointName:n,requestId:A,queryCacheKey:w,options:e}))}});if(!O&&!_&&!m){var j;let e=(j={},o.has(b)?o.get(b):o.set(b,j).get(b));e[w]=M,M.then(()=>{delete e[w],f(e)||o.delete(b)})}return M};return s}}({queryThunk:eh,mutationThunk:em,infiniteQueryThunk:ep,api:t,serializeQueryArgs:l,context:M,internalState:eP});er(t.util,{getRunningMutationThunk:eS,getRunningMutationsThunk:e_,getRunningQueryThunk:ek,getRunningQueriesThunk:eO});let{middleware:eI,actions:eM}=function(e){let{reducerPath:t,queryThunk:r,api:s,context:o,internalState:l}=e,{apiUid:u}=o,c={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},d=e=>e.type.startsWith(`${t}/`),f=[es,en,eo,el,ea,eu];return{middleware:r=>{let i=!1,c={...e,internalState:l,refetchQuery:h,isThisApiSliceAction:d,mwApi:r},p=f.map(e=>e(c)),b=(({api:e,queryThunk:t,internalState:r,mwApi:n})=>{let i=`${e.reducerPath}
15/subscriptions`,s=null,o=null,{updateSubscriptionOptions:l,unsubscribeQueryResult:u}=e.internalActions,c=()=>r.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>{let t=c().get(e);return t?.size??0},isRequestSubscribed:(e,t)=>{let r=c();return!!r?.get(e)?.get(t)}};function f(e){return JSON.parse(JSON.stringify(Object.fromEntries([...e].map(([e,t])=>[e,Object.fromEntries(t)]))))}return(n,c)=>{if(s||(s=f(r.currentSubscriptions)),e.util.resetApiState.match(n))return s={},r.currentSubscriptions.clear(),o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(n))return[!1,d];let h=((r,n)=>{if(l.match(n)){let{queryCacheKey:e,requestId:t,options:i}=n.payload,a=r.get(e);return a?.has(t)&&a.set(t,i),!0}if(u.match(n)){let{queryCacheKey:e,requestId:t}=n.payload,i=r.get(e);return i&&i.delete(t),!0}if(e.internalActions.removeQueryResult.match(n))return r.delete(n.payload.queryCacheKey),!0;if(t.pending.match(n)){let{meta:{arg:e,requestId:t}}=n,i=m(r,e.queryCacheKey,y);return e.subscribe&&i.set(t,e.subscriptionOptions??i.get(t)??{}),!0}let i=!1;if(t.rejected.match(n)){let{meta:{condition:e,arg:t,requestId:a}}=n;if(e&&t.subscribe){let e=m(r,t.queryCacheKey,y);e.set(a,t.subscriptionOptions??e.get(a)??{}),i=!0}}return i})(r.currentSubscriptions,n),p=!0;if(h){o||(o=setTimeout(()=>{let t=f(r.currentSubscriptions),[,n]=(0,a.vI)(s,()=>t);c.next(e.internalActions.subscriptionsUpdated(n)),s=t,o=null},500));let l="string"==typeof n.type&&!!n.type.startsWith(i),u=t.rejected.match(n)&&n.meta.condition&&!!n.meta.arg.subscribe;p=!l&&!u}return[p,!1]}})(c),g=(({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{let{removeQueryResult:a}=r.internalActions;function s(r,s){let o=r.getState()[e],l=o.queries,u=i.currentSubscriptions;t.batch(()=>{for(let e of u.keys()){let t=l[e],i=u.get(e);if(!i||!t)continue;let c=[...i.values()];(c.some(e=>!0===e[s])||c.every(e=>void 0===e[s])&&o.config[s])&&(0===i.size?r.dispatch(a({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t)))}})}return(e,t)=>{T.match(e)&&s(t,"refetchOnFocus"),A.match(e)&&s(t,"refetchOnReconnect")}})(c);return e=>a=>{let l;if(!(0,n.ve)(a))return e(a);
15i||(i=!0,r.dispatch(s.internalActions.middlewareRegistered(u)));let c={...r,next:e},f=r.getState(),[h,m]=b(a,c,f);if(l=h?e(a):m,r.getState()[t]&&(g(a,c,f),d(a)||o.hasRehydrationInfo(a)))for(let e of p)e(a,c,f);return l}},actions:c};function h(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}({reducerPath:o,context:M,queryThunk:eh,mutationThunk:em,infiniteQueryThunk:ep,api:t,assertTagType:Z,selectors:J,getRunningQueryThunk:ek,internalState:eP});return er(t.util,eM),er(t,{reducer:ex,middleware:eI}),{name:ec,injectEndpoint(e,r){let n=t.endpoints[e]??={};k(r)&&er(n,{name:e,select:ei(e,r),initiate:eT(e,r)},ew(eh,e)),"mutation"===r.type&&er(n,{name:e,select:ef(),initiate:eA(e)},ew(em,e)),I(r)&&er(n,{name:e,select:ed(e,r),initiate:eC(e,r)},ew(eh,e))}}}});ed()},56556:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1647)}])},57353:(e,t,r)=>{"use strict";r.d(t,{zX:()=>b,bG:()=>g,M:()=>v,rR:()=>w,Po:()=>E,$S:()=>P});var n=r(57616),i=r(10708),a=r(19031),s=r(52346),o=r(40474);function l({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,o.A)(t[r]):t[r]}`).join(", ")})`}var u=r(96019),c=r(12305),d=r(5639),f=r(79313),h=r(76200),p=r(17830),m=r(1855),y=r(9678);class b extends h.C{constructor(e,{account:t,docsPath:r,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:f,to:h,value:y,stateOverride:b}){let g=t?(0,n.J)(t):void 0,v=(0,m.aO)({from:g?.address,to:h,value:void 0!==y&&`${(0,c.c)(y)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${(0,d.Q)(o)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.Q)(l)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.Q)(u)} gwei`,nonce:f});b&&(v+=`
16${(0,p.uj)(b)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
16Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends h.C{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:o}){let c=(0,u.iY)({abi:t,args:r,name:a}),d=c?l({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=c?(0,s.B)(c,{includeName:!0}):void 0,h=(0,m.aO)({address:n&&(0,y.R)(n),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=o}}class v extends h.C{constructor({abi:e,data:t,functionName:r,message:n}){let o,u,c,d,h;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:o}=u=(0,a.W)({abi:e,data:t});if("Error"===n)d=o[0];else if("Panic"===n){let[e]=o;d=i.fD[e]}else{let e=r?(0,s.B)(r,{includeName:!0}):void 0,t=r&&o?l({abiItem:r,args:o,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){o=e}else n&&(d=n);o instanceof f.Wq&&(h=o.signature,c=[`Unable to decode signature "${h}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${h}.`]),super(d&&"execution reverted"!==d||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,d||h].join("\n"):`The contract function "${r}" reverted.`,{cause:o,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=u,this.raw=t,this.reason=d,this.signature=h}}class w extends h.C{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class E extends h.C{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class P extends h.C{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},57512:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(52474),i=r(32544);let a=/^0x[a-fA-F0-9]{40}$/,s=new n.A(8192);function o(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(s.has(n))return s.get(n);let o=!!a.test(e)&&(e.toLowerCase()===e||!r||(0,i.o)(e)===e);return s.set(n,o),o}},57616:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{J:()=>n})},58444:(e,t,r)=>{"use strict";r.d(t,{X:()=>o,k:()=>l});var n=r(37149),i=r(60388),a=r(48149),s=r(46305),o=class extends s.k{#S;#_;#O;#g;#y;#s;#k;constructor(e){super(),this.#k=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#g=e.client,this.#O=this.#g.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#S=u(this.options),this.state=e.state??this.#S,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#y?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#S=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#O.remove(this)}setData(e,t){let r=(0,n.pl)(this.state.data,e,this.options);return this.#b({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#b({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#y?.promise;return this.#y?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#S)}isActive(){return this.observers.some(e=>!1!==(0,n.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||this.state.dataUpdateCount+this.state.errorUpdate
16Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#y?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#y?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#O.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#y&&(this.#k?this.#y.cancel({revert:!0}):this.#y.cancelRetry()),this.scheduleGc()),this.#O.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#b({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#y?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#y)return this.#y.continueRetry(),this.#y.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#k=!0,r.signal)})},s=()=>{let e=(0,n.ZM)(this.options,t),r=(()=>{let e={client:this.#g,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#k=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},o=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#g,state:this.state,fetchFn:s};return i(e),e})();this.options.behavior?.onFetch(o,this),this.#_=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#b({type:"fetch",meta:o.fetchOptions?.meta}),this.#y=(0,a.II)({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof a.cc&&e.revert&&this.setState({...this.#_,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#b({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#b({type:"pause"})},onContinue:()=>{this.#b({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#y.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#O.config.onSuccess?.(e,this),this.#O.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof a.cc){if(e.silent)return this.#y.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#b({type:"error",error:e}),this.#O.config.onError?.(e,this),this.#O.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#b(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#_=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#O.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,a.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
16Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},58547:(e,t,r)=>{"use strict";r.d(t,{Lj:()=>o,WB:()=>u,uL:()=>l});var n=r(16006),i=r(65443),a=r(82367),s=r(93505);let o={"0x0":"reverted","0x1":"success"};function l(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,a.e)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ME)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s.b4[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}let u=(0,i.q)("transactionReceipt",l)},58798:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{aP:()=>i,xW:()=>n})},58975:(e,t,r)=>{"use strict";r.d(t,{j:()=>i,p:()=>s});let n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),a=n("var(--"),s=e=>!!a(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},59834:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g,Kp:()=>m,MG:()=>d,X0:()=>p,ge:()=>a,np:()=>y,xI:()=>s});let n=(0,r(53088).Z0)({name:"global",initialState:{tokenUid:"",createHedgeStep:1,email:"",countryLocked:!1,selectedTokenOne:{chainId:8453,decimals:18,eip2612:!1,address:"0x4200000000000000000000000000000000000006",isFoT:!1,logoURI:"https://tokens.1inch.io/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png",name:"Wrapped Ether",providers:["1inch","CoinGecko","Curve Token List","Kleros Tokens","Uniswap Labs Default"],symbol:"WETH",tags:["crosschain","GROUP:WETH","PEG:ETH","tokens"]},selectedTokenTwo:{chainId:8453,symbol:"DAI",name:"Dai Stablecoin",address:"0x50c5725949a6f0c72e6c4a641f24049a917db0cb",decimals:18,logoURI:"https://tokens.1inch.io/0x50c5725949a6f0c72e6c4a641f24049a917db0cb.png",providers:["1inch","Kleros Tokens","Uniswap Labs Default"],eip2612:!1,isFoT:!1,tags:["crosschain","GROUP:DAI","PEG:USD","tokens"]},hedgeDetails:{hedgeAmount:0,currency:"",BITORIOorioCoinsStacked:0},refetchState:!1,nonce:"",slippageValue:0,selectedSlippage:"Auto",countryRegion:""},reducers:{setTokenUid:(e,t)=>{e.tokenUid=t.payload},setCreateHedgeStep:(e,t)=>{e.createHedgeStep=t.payload},setEmail:(e,t)=>{e.email=t.payload},setSelectedTokenOne:(e,t)=>{e.selectedTokenOne=t.payload},setSelectedTokenTwo:(e,t)=>{e.selectedTokenTwo=t.payload},setHedgeDetails(e,t){e.hedgeDetails=t.payload},setRefetchState:(e,t)=>{e.refetchState=t.payload},setNonce:(e,t)=>{e.nonce=t.payload},setSlippageValue:(e,t)=>{e.slippageValue=t.payload},setSelectedSlippage:(e,t)=>{e.selectedSlippage=t.payload},setCountryRegion:(e,t)=>{e.countryLocked||(e.countryRegion=t.payload)},forceSetCountryRegion:(e,t)=>{e.countryRegion=t.payload},lockCountryRegion:e=>{e.countryLocked=!0},unlockCountryRegion:e=>{e.countryLocked=!1}}}),{setTokenUid:i,setCreateHedgeStep:a,setEmail:s,setSelectedTokenOne:o,setSelectedTokenTwo:l,setHedgeDetails:u,setRefetchState:c,setNonce:d,setSlippageValue:f,setSelectedSlippage:h,setCountryRegion:p,forceSetCountryRegion:m,lockCountryRegion:y,unlockCountryRegion:b}=n.actions,g=n.reducer},60388:(e,t,r)=>{"use strict";r.d(t,{jG:()=>i});var n=r(48306).Zq,i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},a=n,s=n=>{t?e.push(n):a(()=>{r(n)})};return{batch:n=>{let s;t++;try{s=n()}finally{--t||(()=>{let t=e;e=[],t.length&&a(()=>{i(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{a=e}}}()},60539:(e,t,r)=>{"use strict";r.d(t,{B4:()=>i,SK:()=>a,hX:()=>s});var n=r(76200);class i extends n.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class a extends n.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class s extends n.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},61402:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(81435);let i={test:(0,r(80879).$)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alph
16a:i?parseInt(i,16)/255:1}},transform:n.B.transform}},61511:(e,t,r)=>{"use strict";r.d(t,{U:()=>l});var n=r(14232),i=r(39858),a=r(19342);class s extends a.C{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return"[email protected]"}}class o extends s{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function l(e={}){let t=e.config??(0,n.useContext)(i.R);if(!t)throw new o;return t}},61574:(e,t,r)=>{"use strict";r.d(t,{G:()=>c});var n=r(17454),i=r(90620),a=r(51784),s=r(37605),o=r(2589),l=r(12679),u=r(86751);function c(e,t,{clamp:r=!0,ease:d,mixer:f}={}){let h=e.length;if((0,s.V)(h===t.length,"Both input and output ranges must be the same length","range-length"),1===h)return()=>t[0];if(2===h&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[h-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,r){let s=[],o=r||n.W.mix||u.j,l=e.length-1;for(let r=0;r<l;r++){let n=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||i.l:t;n=(0,a.F)(e,n)}s.push(n)}return s}(t,d,f),y=m.length,b=r=>{if(p&&r<e[0])return t[0];let n=0;if(y>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=(0,o.q)(e[n],e[n+1],r);return m[n](i)};return r?t=>b((0,l.q)(e[0],e[h-1],t)):b}},62777:(e,t,r)=>{"use strict";r.d(t,{sc:()=>v,qt:()=>E,Zf:()=>w});var n=r(23084);
vendor: 4,273 bytes, line 16
16class i extends n.Vw{constructor(e,t,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,n.O8)(this.buffer)}update(e){(0,n.CC)(this),e=(0,n.ZJ)(e),(0,n.DO)(e);let{view:t,buffer:r,blockLen:i}=this,a=e.length;for(let s=0;s<a;){let o=Math.min(i-this.pos,a-s);if(o===i){let t=(0,n.O8)(e);for(;i<=a-s;s+=i)this.process(t,s);continue}r.set(e.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.CC)(this),(0,n.Ht)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:a}=this,{pos:s}=this;t[s++]=128,(0,n.uH)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(r,0),s=0);for(let e=s;e<i;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),a=BigInt(0xffffffff),s=Number(r>>i&a),o=Number(r&a),l=4*!!n,u=4*!n;e.setUint32(t+l,s,n),e.setUint32(t+u,o,n)}(r,i-8,BigInt(8*this.length),a),this.process(r,0);let o=(0,n.O8)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,c=this.get();if(u>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)o.setUint32(4*e,c[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:a,pos:s}=this;return e.destroyed=a,e.finished=i,e.length=n,e.pos=s,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}let a=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),s=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),o=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);var l=r(71090);let u=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),c=new Uint32Array(64);class d extends i{constructor(e=32){super(64,e,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:a,G:s,H:o}=this;return[e,t,r,n,i,a,s,o]}set(e,t,r,n,i,a,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|a,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],i=(0,n.Ow)(t,7)^(0,n.Ow)(t,18)^t>>>3,a=(0,n.Ow)(r,17)^(0,n.Ow)(r,19)^r>>>10;c[e]=a+c[e-7]+i+c[e-16]|0}let{A:r,B:i,C:a,D:s,E:o,F:l,G:d,H:f}=this;for(let e=0;e<64;e++){var h,p,m,y;let t=f+((0,n.Ow)(o,6)^(0,n.Ow)(o,11)^(0,n.Ow)(o,25))+((h=o)&l^~h&d)+u[e]+c[e]|0,b=((0,n.Ow)(r,2)^(0,n.Ow)(r,13)^(0,n.Ow)(r,22))+((p=r)&(m=i)^p&(y=a)^m&y)|0;f=d,d=l,l=o,o=s+t|0,s=a,a=i,i=r,r=t+b|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,s=s+this.D|0,o=o+this.E|0,l=l+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,i,a,s,o,l,d,f)}roundClean(){(0,n.uH)(c)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,n.uH)(this.buffer)}}let f=l.lD(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
166f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),h=f[0],p=f[1],m=new Uint32Array(80),y=new Uint32Array(80);class b extends i{constructor(e=64){super(128,e,16,!1),this.Ah=0|o[0],this.Al=0|o[1],this.Bh=0|o[2],this.Bl=0|o[3],this.Ch=0|o[4],this.Cl=0|o[5],this.Dh=0|o[6],this.Dl=0|o[7],this.Eh=0|o[8],this.El=0|o[9],this.Fh=0|o[10],this.Fl=0|o[11],this.Gh=0|o[12],this.Gl=0|o[13],this.Hh=0|o[14],this.Hl=0|o[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:a,Dh:s,Dl:o,Eh:l,El:u,Fh:c,Fl:d,Gh:f,Gl:h,Hh:p,Hl:m}=this;return[e,t,r,n,i,a,s,o,l,u,c,d,f,h,p,m]}set(e,t,r,n,i,a,s,o,l,u,c,d,f,h,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|a,this.Dh=0|s,this.Dl=0|o,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t),y[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|m[e-15],r=0|y[e-15],n=l.rE(t,r,1)^l.rE(t,r,8)^l.xn(t,r,7),i=l.ry(t,r,1)^l.ry(t,r,8)^l.jm(t,r,7),a=0|m[e-2],s=0|y[e-2],o=l.rE(a,s,19)^l.qh(a,s,61)^l.xn(a,s,6),u=l.ry(a,s,19)^l.Ei(a,s,61)^l.jm(a,s,6),c=l.CW(i,u,y[e-7],y[e-16]),d=l.CQ(c,n,o,m[e-7],m[e-16]);m[e]=0|d,y[e]=0|c}let{Ah:r,Al:n,Bh:i,Bl:a,Ch:s,Cl:o,Dh:u,Dl:c,Eh:d,El:f,Fh:b,Fl:g,Gh:v,Gl:w,Hh:E,Hl:P}=this;for(let e=0;e<80;e++){let t=l.rE(d,f,14)^l.rE(d,f,18)^l.qh(d,f,41),T=l.ry(d,f,14)^l.ry(d,f,18)^l.Ei(d,f,41),C=d&b^~d&v,A=f&g^~f&w,S=l.F8(P,T,A,p[e],y[e]),_=l.TH(S,E,t,C,h[e],m[e]),O=0|S,k=l.rE(r,n,28)^l.qh(r,n,34)^l.qh(r,n,39),I=l.ry(r,n,28)^l.Ei(r,n,34)^l.Ei(r,n,39),M=r&i^r&s^i&s,j=n&a^n&o^a&o;E=0|v,P=0|w,v=0|b,w=0|g,b=0|d,g=0|f,({h:d,l:f}=l.WQ(0|u,0|c,0|_,0|O)),u=0|s,c=0|o,s=0|i,o=0|a,i=0|r,a=0|n;let R=l.Vl(O,I,j);r=l.Vr(R,_,k,M),n=0|R}({h:r,l:n}=l.WQ(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:a}=l.WQ(0|this.Bh,0|this.Bl,0|i,0|a)),({h:s,l:o}=l.WQ(0|this.Ch,0|this.Cl,0|s,0|o)),({h:u,l:c}=l.WQ(0|this.Dh,0|this.Dl,0|u,0|c)),({h:d,l:f}=l.WQ(0|this.Eh,0|this.El,0|d,0|f)),({h:b,l:g}=l.WQ(0|this.Fh,0|this.Fl,0|b,0|g)),({h:v,l:w}=l.WQ(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:P}=l.WQ(0|this.Hh,0|this.Hl,0|E,0|P)),this.set(r,n,i,a,s,o,u,c,d,f,b,g,v,w,E,P)}roundClean(){(0,n.uH)(m,y)}destroy(){(0,n.uH)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class g extends b{constructor(){super(48),this.Ah=0|s[0],this.Al=0|s[1],this.Bh=0|s[2],this.Bl=0|s[3],this.Ch=0|s[4],this.Cl=0|s[5],this.Dh=0|s[6],this.Dl=0|s[7],this.Eh=0|s[8],this.El=0|s[9],this.Fh=0|s[10],this.Fl=0|s[11],this.Gh=0|s[12],this.Gl=0|s[13],this.Hh=0|s[14],this.Hl=0|s[15]}}let v=(0,n.qj)(()=>new d),w=(0,n.qj)(()=>new b),E=(0,n.qj)(()=>new g)},63786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14232),i=r(43273),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}
16=e,u=l||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),s.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.useCallback)(()=>{d(!1)},[])]}("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)},64384:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(2589),i=r(21853);function a(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let s=(0,n.q)(0,t,a);e.push((0,i.k)(r,1,s))}}(t,e.length-1),t}},64609:(e,t,r)=>{"use strict";r.d(t,{$i:()=>Q,Qx:()=>u,YT:()=>G,a6:()=>c,c2:()=>h,jM:()=>K,vI:()=>W});var n,i=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function u(e){return!!e&&!!e[s]}function c(e){return!!e&&(f(e)||Array.isArray(e)||!!e[a]||!!e.constructor?.[a]||v(e)||w(e))}var d=Object.prototype.constructor.toString();function f(e){if(!e||"object"!=typeof e)return!1;let t=l(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===d}function h(e){return u(e)||o(15,e),e[s].base_}function p(e,t){0===m(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function m(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:v(e)?2:3*!!w(e)}function y(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){return 2===m(e)?e.get(t):e[t]}function g(e,t,r){let n=m(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function v(e){return e instanceof Map}function w(e){return e instanceof Set}function E(e){return e.copy_||e.base_}function P(e,t){if(v(e))return new Map(e);if(w(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=f(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(l(e),t)}}function T(e,t=!1){return A(e)||u(e)||!c(e)||(m(e)>1&&Object.defineProperties(e,{set:{value:C},add:{value:C},clear:{value:C},delete:{value:C}}),Object.freeze(e),t&&Object.values(e).forEach(e=>T(e,!0))),e}function C(){o(2)}function A(e){return Object.isFrozen(e)}var S={};function _(e){let t=S[e];return t||o(0,e),t}function O(e,t){t&&(_("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function k(e){I(e),e.drafts_.forEach(j),e.drafts_=null}function I(e){e===n&&(n=e.parent_)}function M(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function j(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function R(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(k(t),o(4)),c(e)&&(e=B(t,e),t.parent_||D(t,e)),t.patches_&&_("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=B(t,r,[]),k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function B(e,t,r){if(A(t))return t;let n=t[s];if(!n)return p(t,(i,a)=>N(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return D(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,a=!1;3===n.type_&&(i=new Set(t),t.clear(),a=!0),p(i,(i,s)=>N(e,n,t,i,s,r,a)),D(e,t,!1),r&&e.patches_&&_("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}
16function N(e,t,r,n,i,a,s){if(u(i)){let s=B(e,i,a&&t&&3!==t.type_&&!y(t.assigned_,n)?a.concat(n):void 0);if(g(r,n,s),!u(s))return;e.canAutoFreeze_=!1}else s&&r.add(i);if(c(i)&&!A(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;B(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(v(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&D(e,i)}}function D(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&T(t,r)}var $={get(e,t){if(t===s)return e;let r=E(e);if(!y(r,t)){var n=e,i=r,a=t;let s=q(i,a);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}let o=r[t];return e.finalized_||!c(o)?o:o===L(e.base_,t)?(z(e),e.copy_[t]=V(o,e)):o},has:(e,t)=>t in E(e),ownKeys:e=>Reflect.ownKeys(E(e)),set(e,t,r){let n=q(E(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=L(E(e),t),i=n?.[s];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||y(e.base_,t)))return!0;z(e),U(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==L(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,z(e),U(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=E(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){o(12)}},F={};
16function L(e,t){let r=e[s];return(r?E(r):e)[t]}function q(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function U(e){!e.modified_&&(e.modified_=!0,e.parent_&&U(e.parent_))}function z(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function V(e,t){let r=v(e)?_("MapSet").proxyMap_(e,t):w(e)?_("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},a=i,s=$;r&&(a=[i],s=F);let{revoke:o,proxy:l}=Proxy.revocable(a,s);return i.draft_=l,i.revoke_=o,l}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function G(){let e="replace",t="remove";function r(e){if(!c(e))return e;if(Array.isArray(e))return e.map(r);if(v(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(w(e))return new Set(Array.from(e).map(r));let t=Object.create(l(e));for(let n in e)t[n]=r(e[n]);return y(e,a)&&(t[a]=e[a]),t}function n(e){return u(e)?r(e):e}S.Patches||(S.Patches={applyPatches_:function(n,i){return i.forEach(i=>{let{path:a,op:s}=i,l=n;for(let e=0;e<a.length-1;e++){let t=m(l),r=a[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&o(19),"function"==typeof l&&"prototype"===r&&o(19),"object"!=typeof(l=b(l,r))&&o(18,a.join("/"))}let u=m(l),c=r(i.value),d=a[a.length-1];switch(s){case e:switch(u){case 2:return l.set(d,c);case 3:o(16);default:return l[d]=c}case"add":switch(u){case 1:return"-"===d?l.push(c):l.splice(d,0,c);case 2:return l.set(d,c);case 3:return l.add(c);default:return l[d]=c}case t:switch(u){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(i.value);default:return delete l[d]}default:o(17,s)}}),n},generatePatches_:function(r,i,a,s){switch(r.type_){case 0:case 2:var o=r,l=i,u=a,c=s;let{base_:d,copy_:f}=o;p(o.assigned_,(r,i)=>{let a=b(d,r),s=b(f,r),o=i?y(d,r)?e:"add":t;if(a===s&&o===e)return;let h=l.concat(r);u.push(o===t?{op:o,path:h}:{op:o,path:h,value:s}),c.push("add"===o?{op:t,path:h}:o===t?{op:"add",path:h,value:n(a)}:{op:e,path:h,value:n(a)})});return;case 1:return function(r,i,a,s){let{base_:o,assigned_:l}=r,u=r.copy_;u.length<o.length&&([o,u]=[u,o],[a,s]=[s,a]);for(let t=0;t<o.length;t++)if(l[t]&&u[t]!==o[t]){let r=i.concat([t]);a.push({op:e,path:r,value:n(u[t])}),s.push({op:e,path:r,value:n(o[t])})}for(let e=o.length;e<u.length;e++){let t=i.concat([e]);a.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;o.length<=e;--e){let r=i.concat([e]);s.push({op:t,path:r})}}(r,i,a,s);case 3:return function(e,r,n,i){let{base_:a,copy_:s}=e,o=0;a.forEach(e=>{if(!s.has(e)){let a=r.concat([o]);n.push({op:t,path:a,value:e}),i.unshift({op:"add",path:a,value:e})}o++}),o=0,s.forEach(e=>{if(!a.has(e)){let a=r.concat([o]);n.push({op:"add",path:a,value:e}),i.unshift({op:t,path:a,value:e})}o++})}(r,i,a,s)}},generateReplacementPatches_:function(t,r,n,a){n.push({op:e,path:[],value:r===i?void 0:r}),a.push({op:e,path:[],value:t})}})}p($,(e,t)=>{F[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),F.deleteProperty=function(e,t){return F.set.call(this,e,t,void 0)},F.set=function(e,t,r){return $.set.call(this,e[0],t,r,e[0])};var H=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),c(e)){let i=M(this),a=V(e,void 0),s=!0;try{n=t(a),s=!1}finally{s?k(i):I(i)}return O(i,r),R(n,i)}if(e&&"object"==typeof e)o(1,e);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&T(n,!0),r){let t=[],i=[];_("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;c(e)||o(8),u(e)&&(u(t=e)||o(10,t),e=function e(t){let r;if(!c(t)||A(t))return t;let n=t[s];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_)}else r=P(t,!0);return p(r,(t,n)=>{g(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=M(this),n=V(e,void 0);return n[s].isManual_=!0,I(r),n}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||o(9);let{scope_:n}=r;return O(n,t),R(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];
16if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=_("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}},K=H.produce,W=H.produceWithPatches.bind(H),Q=H.applyPatches.bind(H)},65443:(e,t,r)=>{"use strict";function n(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let i=t(e);if(r)for(let e of r)delete i[e];return{...i,...n(e)}},type:e})}r.d(t,{q:()=>n})},65454:()=>{},65809:(e,t,r)=>{"use strict";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{BD:()=>i,Ge:()=>a,Yv:()=>n,wj:()=>s});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^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)?$/,s=/^\(.+?\).*?$/},65859:(e,t,r)=>{"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{q:()=>n})},66320:(e,t,r)=>{"use strict";r.d(t,{A1:()=>u,di:()=>s,iN:()=>c});var n=r(16053),i=r(65859),a=r(38047);function s(e,t,r,{strict:n}={}){return(0,i.q)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.E)(e)-1)throw new n.ii({offset:t,position:"start",size:(0,a.E)(e)})}function l(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,a.E)(e)!==r-t)throw new n.ii({offset:r,position:"end",size:(0,a.E)(e)})}function u(e,t,r,{strict:n}={}){o(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}function c(e,t,r,{strict:n}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}},66585:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(65809);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function a(e){let t="",r=e.length;for(let a=0;a<r;a++)t+=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";let a=t.components.length;for(let n=0;n<a;n++)r+=e(t.components[n]),n<a-1&&(r+=", ");let s=(0,n.Yv)(i,t.type);return r+=`)${s?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
16 indexed`),t.name)?`${r} ${t.name}`:r}(e[a]),a!==r-1&&(t+=", ");return t}},66655:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var n=r(79313),i=r(76200),a=r(57353),s=r(36262),o=r(18912);function l(e,{abi:t,address:r,args:l,docsPath:u,functionName:c,sender:d}){let f=e instanceof a.$S?e:e instanceof i.C?e.walk(e=>"data"in e)||e.walk():{},{code:h,data:p,details:m,message:y,shortMessage:b}=f,g=e instanceof n.O?new a.rR({functionName:c}):[3,o.bq.code].includes(h)&&(p||m||y||b)?new a.M({abi:t,data:"object"==typeof p?p.data:p,functionName:c,message:f instanceof s.J8?m:b??y}):e;return new a.bG(g,{abi:t,args:l,contractAddress:r,docsPath:u,functionName:c,sender:d})}},67147:(e,t,r)=>{"use strict";r.d(t,{L:()=>d});var n=r(36262),i=r(76200);class a extends i.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var s=r(44050),o=r(94254),l=r(40474);let u={current:0,take(){return this.current++},reset(){this.current=0}};var c=r(90171);function d(e,t={}){let{batch:r,fetchFn:i,fetchOptions:f,key:h="http",methods:p,name:m="HTTP JSON-RPC",onFetchRequest:y,onFetchResponse:b,retryDelay:g,raw:v}=t;return({chain:d,retryCount:w,timeout:E})=>{let{batchSize:P=1e3,wait:T=0}="object"==typeof r?r:{},C=t.retryCount??w,A=E??t.timeout??1e4,S=e||d?.rpcUrls.default.http[0];if(!S)throw new a;let _=function(e,t={}){return{async request(r){let{body:i,fetchFn:a=t.fetchFn??fetch,onRequest:s=t.onRequest,onResponse:c=t.onResponse,timeout:d=t.timeout??1e4}=r,f={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:h,method:p,signal:m}=f;try{let t,r=await (0,o.w)(async({signal:t})=>{let r={...f,body:Array.isArray(i)?(0,l.A)(i.map(e=>({jsonrpc:"2.0",id:e.id??u.take(),...e}))):(0,l.A)({jsonrpc:"2.0",id:i.id??u.take(),...i}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:m||(d>0?t:null)},n=new Request(e,r),o=await s?.(n,r)??{...r,url:e};return await a(o.url??e,o)},{errorInstance:new n.MU({body:i,url:e}),timeout:d,signal:!0});if(c&&await c(r),r.headers.get("Content-Type")?.startsWith("application/json"))t=await r.json();else{t=await r.text();try{t=JSON.parse(t||"{}")}catch(e){if(r.ok)throw e;t={error:t}}}if(!r.ok)throw new n.Ci({body:i,details:(0,l.A)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Ci||t instanceof n.MU)throw t;throw new n.Ci({body:i,cause:t,url:e})}}}}(S,{fetchFn:i,fetchOptions:f,onRequest:y,onResponse:b,timeout:A});return(0,c.o)({key:h,methods:p,name:m,async request({method:e,params:t}){let i={method:e,params:t},{schedule:a}=(0,s.u)({id:S,wait:T,shouldSplitBatch:e=>e.length>P,fn:e=>_.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>r?a(e):[await _.request({body:e})],[{error:l,result:u}]=await o(i);if(v)return{error:l,result:u};if(l)throw new n.J8({body:i,error:l,url:S});return u},retryCount:C,retryDelay:g,timeout:A,type:"http"},{fetchOptions:f,url:S})}}},67768:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>o,jE:()=>s});var n=r(14232),i=r(37876),a=n.createContext(void 0),s=e=>{let t=n.useContext(a);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},o=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(a.Provider,{value:e,children:t}))},68324:(e,t,r)=>{"use strict";r.d(t,{O:()=>u,_:()=>l});var n=r(22859),i=r(8481),a=r(13847),s=r(2774),o=r(14867);async function l(e,t){return u(e,t)}async function u(e,t){let{block:r,chain:l=e.chain,request:u,type:c="eip1559"}=t||{},d=await (async()=>"function"==typeof l?.fees?.baseFeeMultiplier?l.fees.baseFeeMultiplier({block:r,client:e,request:u}):l?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.sM;let f=d.toString().split(".")[1]?.length??0,h=10**f,p=e=>e*BigInt(Math.ceil(d*h))/BigInt(h),m=r||await (0,i.T)(e,s.g,"getBlock")({});if("function"==typeof l?.fees?.estimateFeesPerGas){let t=await l.fees.estimateFeesPerGas({block:r,client:e,multiply:p,request:u,type:c});if(null!==t)return t}if("eip1559"===c){if("bigint"!=typeof m.baseFeePerGas)throw new n.pw;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,a.N)(e,{block:m,chain:l,request:u}),r=p(m.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??p(await (0,i.T)(e,o.L,"getGasPrice")({}))}}},69122:(e,t,r)=>{"use strict";
16Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return i}});let n=""+r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function i(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("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)},69241:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},69591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return i.RedirectType},forbidden:function(){return s.forbidden},notFound:function(){return a.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return o.unauthorized},unstable_isUnrecognizedActionError:function(){return d},unstable_rethrow:function(){return l.unstable_rethrow}});let n=r(75026),i=r(61481),a=r(69122),s=r(79331),o=r(90376),l=r(18444);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}function d(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("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)},69595:(e,t,r)=>{"use strict";r.d(t,{g:()=>u});var n=r(95164),i=r(58798),a=r(26715),s=r(81645),o=r(83894),l=r(74517);async function u(e){let{authorization:t,signature:r}=e;return(0,n.x)({hash:function(e){let{chainId:t,nonce:r,to:n}=e,u=e.contractAddress??e.address,c=(0,l.S)((0,i.aP)(["0x05",(0,o.EQ)([t?(0,s.cK)(t):"0x",u,r?(0,s.cK)(r):"0x"])]));return"bytes"===n?(0,a.aT)(c):c}(t),signature:r??t})}},70630:(e,t,r)=>{"use strict";function n(e,t){return t?1e3/t*e:0}r.d(t,{f:()=>n})},71090:(e,t,r)=>{"use strict";r.d(t,{B4:()=>h,CQ:()=>w,CW:()=>v,Ei:()=>d,F8:()=>E,P5:()=>f,TH:()=>P,Vl:()=>b,Vr:()=>g,WM:()=>p,WQ:()=>y,im:()=>m,jm:()=>o,lD:()=>a,qh:()=>c,rE:()=>l,ry:()=>u,xn:()=>s});let n=BigInt(0x100000000-1),i=BigInt(32);function a(e,t=!1){let r=e.length,s=new Uint32Array(r),o=new Uint32Array(r);for(let a=0;a<r;a++){let{h:r,l}=function(e,t=!1){return t?{h:Number(e&n),l:Number(e>>i&n)}:{h:0|Number(e>>i&n),l:0|Number(e&n)}}(e[a],t);[s[a],o[a]]=[r,l]}return[s,o]}let s=(e,t,r)=>e>>>r,o=(e,t,r)=>e<<32-r|t>>>r,l=(e,t,r)=>e>>>r|t<<32-r,u=(e,t,r)=>e<<32-r|t>>>r,c=(e,t,r)=>e<<64-r|t>>>r-32,d=(e,t,r)=>e>>>r-32|t<<64-r,f=(e,t,r)=>e<<r|t>>>32-r,h=(e,t,r)=>t<<r|e>>>32-r,p=(e,t,r)=>t<<r-32|e>>>64-r,m=(e,t,r)=>e<<r-32|t>>>64-r;function y(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/0x100000000|0)|0,l:0|i}}let b=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),g=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,v=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),w=(e,t,r,n,i)=>t+r+n+i+(e/0x100000000|0)|0,E=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),P=(e,t,r,n,i,a)=>t+r+n+i+a+(e/0x100000000|0)|0},71400:(e,t,r)=>{"use strict";r.d(t,{A9:()=>i,NO:()=>o,Pj:()=>l,dV:()=>a,nx:()=>u,zd:()=>s});var n=r(94817);n.C;class i extends n.C{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class a extends n.C{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class s extends n.C{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class o extends n.C{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class l extends n.C{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends n.C{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
16d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},71503:(e,t,r)=>{"use strict";r.d(t,{lB:()=>s});let n=new Map,i=new Map,a=0;function s(e,t,r){let s=++a,o=()=>n.get(e)||[],l=()=>{let t=o();if(!t.some(e=>e.id===s))return;let r=i.get(e);if(1===t.length&&r){let e=r();e instanceof Promise&&e.catch(()=>{})}let a=o();n.set(e,a.filter(e=>e.id!==s))},u=o();if(n.set(e,[...u,{id:s,fns:t}]),u&&u.length>0)return l;let c={};for(let e in t)c[e]=(...t)=>{let r=o();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let d=r(c);return"function"==typeof d&&i.set(e,d),l}},71665:(e,t,r)=>{"use strict";r.d(t,{Dg:()=>g,Ej:()=>b,Fl:()=>S,HT:()=>u,Ho:()=>p,M7:()=>m,Ro:()=>v,Ty:()=>E,di:()=>y,ii:()=>A,oB:()=>f,sH:()=>h,tf:()=>w,u:()=>C,uK:()=>d,xW:()=>l,xb:()=>c});var n=r(40552),i=r(39267),a=r(74250);let s=new TextEncoder,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function u(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e}function c(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(i.Sl(r,t.size),p(r,t.size)):r}function d(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(i.Sl(n,t.size),m(n,t.size)):n}function f(e,t={}){let r,{signed:n,size:i}=t,a=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let s="bigint"==typeof r&&n?-r-1n:0;if(r&&a>r||a<s){let t="bigint"==typeof e?"n":"";throw new E({max:r?`${r}${t}`:void 0,min:`${s}${t}`,signed:n,size:i,value:`${e}${t}`})}let o=(n&&a<0?(1n<<BigInt(8*i))+BigInt(a):a).toString(16),l=`0x${o}`;return i?p(l,i):l}function h(e,t={}){return d(s.encode(e),t)}function p(e,t){return i.eV(e,{dir:"left",size:t})}function m(e,t){return i.eV(e,{dir:"right",size:t})}function y(e,t,r,n={}){let{strict:a}=n;i.kK(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return a&&i.X(s,t,r),s}function b(e){return Math.ceil((e.length-2)/2)}function g(e,t={}){let{signed:r}=t;t.size&&i.Sl(e,t.size);let n=BigInt(e);if(!r)return n;let a=(1n<<8n*BigInt((e.length-2)/2))-1n;return n<=a>>1n?n:n-a-1n}function v(e,t={}){let{signed:r,size:n}=t;return r||n?Number(g(e,t)):Number(e)}function w(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new P(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new T(e)}(e,{strict:r}),!0}catch{return!1}}class E extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}n.C;class P extends n.C{constructor(e){super(`Value \`${"object"==typeof e?a.A(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class T extends n.C{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}n.C;class C extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class A extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class S extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},73415:(e,t,r)=>{"use strict";var n=r(14232),i=r(75761),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,o=r)}var s,o,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},74146:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},74250:(e,t,r)=>{"use strict";function n(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}r.d(t,{A:()=>n})},74517:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(17191),i=r(65859),a=r(26715),s=r(81645);function o(e,t){let r=(0,n.lY)((0,i.q)(e,{strict:!1})?(0,a.ZJ)(e):e);return"bytes"===(t||"hex")?r:(0,s.nj)(r)}},75026:(e,t,r)=>{"use strict";
16Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return s},getRedirectStatusCodeFromError:function(){return d},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return u},permanentRedirect:function(){return l},redirect:function(){return o}});let n=r(46843),i=r(61481),a=void 0;function s(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let a=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a.digest=i.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",a}function o(e,t){var r;throw null!=t||(t=(null==a||null==(r=a.getStore())?void 0:r.isAction)?i.RedirectType.push:i.RedirectType.replace),s(e,t,n.RedirectStatusCode.TemporaryRedirect)}function l(e,t){throw void 0===t&&(t=i.RedirectType.replace),s(e,t,n.RedirectStatusCode.PermanentRedirect)}function u(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function d(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("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)},75087:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n=r(1855),i=r(81645),a=r(93505);async function s(e,{blockHash:t,blockNumber:r,blockTag:s,hash:o,index:l}){let u=s||"latest",c=void 0!==r?(0,i.cK)(r):void 0,d=null;if(o?d=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.cK)(l)]},{dedupe:!0}):(c||u)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[c||u,(0,i.cK)(l)]},{dedupe:!!c})),!d)throw new n.Kz({blockHash:t,blockNumber:r,blockTag:u,hash:o,index:l});return(e.chain?.formatters?.transaction?.format||a.uP)(d)}},75439:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(23084);class i extends n.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.sd)(e);let r=(0,n.ZJ)(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 i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),(0,n.uH)(a)}update(e){return(0,n.CC)(this),this.iHash.update(e),this}digestInto(e){(0,n.CC)(this),(0,n.DO)(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:r,finished:n,destroyed:i,blockLen:a,outputLen:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=a,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let a=(e,t,r)=>new i(e,t).update(r).digest();a.create=(e,t)=>new i(e,t)},75761:(e,t,r)=>{"use strict";e.exports=r(77760)},75977:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var n=r(94833),i=r(14237),a=r(66655),s=r(8481),o=r(34724);async function l(e,t){let{abi:r,address:l,args:u,functionName:c,...d}=t,f=(0,i.p)({abi:r,args:u,functionName:c});try{let{data:t}=await (0,s.T)(e,o.T,"call")({...d,data:f,to:l});return(0,n.e)({abi:r,args:u,functionName:c,data:t||"0x"})}catch(e){throw(0,a.j)(e,{abi:r,address:l,args:u,docsPath:"/docs/contract/readContract",functionName:c})}}},76200:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});let n="2.37.5",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${n}`};
16class a extends Error{constructor(e,t={}){let r=t.cause instanceof a?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof a&&t.cause.docsPath||t.docsPath,o=i.getDocsUrl?.({...t,docsPath:s});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=s,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}},76845:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(17454);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var a=r(17595);function s(e,t){let r=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,u=i.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,i=!1,s=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function c(t){o.has(t)&&(d.schedule(t),e()),u++,t(l)}let d={schedule:(e,t=!1,a=!1)=>{let s=a&&i?r:n;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(l=e,i){s=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),t&&a.Q.value&&a.Q.value.frameloop[t].push(u),u=0,r.clear(),i=!1,s&&(s=!1,d.process(e))}};return d}(l,t?r:void 0),e),{}),{setup:c,read:d,resolveKeyframes:f,preUpdate:h,update:p,preRender:m,render:y,postRender:b}=u,g=()=>{let i=n.W.useManualTiming?o.timestamp:performance.now();r=!1,n.W.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,c.process(o),d.process(o),f.process(o),h.process(o),p.process(o),m.process(o),y.process(o),b.process(o),o.isProcessing=!1,r&&t&&(s=!1,e(g))};return{schedule:i.reduce((t,n)=>{let i=u[n];return t[n]=(t,n=!1,a=!1)=>(!r&&(r=!0,s=!0,o.isProcessing||e(g)),i.schedule(t,n,a)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)u[i[t]].cancel(e)},state:o,steps:u}}},77004:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{u:()=>n})},77328:(e,t,r)=>{e.exports=r(29269)},77338:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37998);class i{getItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=window.localStorage.getItem(e);return(0,n.K$)(r)?JSON.parse(r):t}setItem(e,t){window.localStorage.setItem(e,JSON.stringify(t))}removeItem(e){window.localStorage.removeItem(e)}}let a=Object.freeze(new i)},77434:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});let n=new Map,i=new Map;async function a(e,{cacheKey:t,cacheTime:r=1/0}){let a=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,n),a=t(e,i);return{clear:()=>{r.clear(),a.clear()},promise:r,response:a}}(t),s=a.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let o=a.promise.get();o||(o=e(),a.promise.set(o));try{let e=await o;return a.response.set({created:new Date,data:e}),e}finally{a.promise.clear()}}async function s(e,{cacheTime:t=e.cacheTime}={}){let r;return BigInt(await a(()=>e.request({method:"eth_blockNumber"}),{cacheKey:(r=e.uid,`blockNumber.${r}`),cacheTime:t}))}},77760:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}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 r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},78393:(e,t,r)=>{"use strict";r.d(t,{H4:()=>y,v8:()=>p,$$:()=>m});var n=r(79313),i=r(45755),a=r(40474),s=r(76200);class o extends s.C{constructor({domain:e}){super(`Invalid domain "${(0,a.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class l extends s.C{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class u extends s.C{constructor({type:e}){super(`Struct type "${e}
16" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var c=r(57512),d=r(38047),f=r(81645),h=r(3796);function p(e){let{domain:t,message:r,primaryType:n,types:i}=e,s=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},o=i.EIP712Domain&&t?s(i.EIP712Domain,t):{},l=(()=>{if("EIP712Domain"!==n)return s(i[n],r)})();return(0,a.A)({domain:o,message:l,primaryType:n,types:i})}function m(e){let{domain:t,message:r,primaryType:a,types:s}=e,p=(e,t)=>{for(let r of e){let{name:e,type:a}=r,o=t[e],l=a.match(h.Ge);if(l&&("number"==typeof o||"bigint"==typeof o)){let[e,t,r]=l;(0,f.cK)(o,{signed:"int"===t,size:Number.parseInt(r,10)/8})}if("address"===a&&"string"==typeof o&&!(0,c.P)(o))throw new i.M({address:o});let m=a.match(h.BD);if(m){let[e,t]=m;if(t&&(0,d.E)(o)!==Number.parseInt(t,10))throw new n.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,d.E)(o)})}let y=s[a];y&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new u({type:e})}(a),p(y,o))}};if(s.EIP712Domain&&t){if("object"!=typeof t)throw new o({domain:t});p(s.EIP712Domain,t)}if("EIP712Domain"!==a)if(s[a])p(s[a],r);else throw new l({primaryType:a,types:s})}function y({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},79313:(e,t,r)=>{"use strict";r.d(t,{BI:()=>T,EB:()=>E,Iy:()=>l,Iz:()=>v,MR:()=>w,M_:()=>g,Nc:()=>c,O:()=>u,Wl:()=>I,Wq:()=>m,YE:()=>f,YF:()=>o,YW:()=>s,ZP:()=>h,_z:()=>y,d_:()=>k,dm:()=>O,fo:()=>C,gH:()=>d,j:()=>_,kE:()=>b,l3:()=>A,nK:()=>S,nM:()=>P,yy:()=>p});var n=r(52346),i=r(38047),a=r(76200);class s extends a.C{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class o extends a.C{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}a.C;class l extends a.C{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.A)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends a.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class c extends a.C{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
17Expected length: ${e}
18Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
19Expected length (params): ${e}
20Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h extends a.C{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
21Cannot encode error result without knowing what the parameter types are.
22Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends a.C{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
23Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends a.C{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
24Make sure you are using the correct ABI and that the error exists on it.
25You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class y extends a.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends a.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
26Make sure you are using the correct ABI and that the event exists on it.
27You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends a.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
28Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends a.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
29Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class w extends a.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
30Cannot decode function result without knowing what the parameter types are.
31Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class E extends a.C{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
32Make sure you are using the correct ABI and that the function exists on it.
33You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class P extends a.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class T extends a.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class C extends a.C{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.A)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class A extends a.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class S extends a.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
34Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class _ extends a.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
35Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class O extends a.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class k extends a.C{constructor(e){super(`"${e}" is not a valid definition type.
36Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class I extends a.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},79331:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,
36configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE,("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)},80127:(e,t,r)=>{"use strict";e.exports=r(73415)},80403:(e,t,r)=>{"use strict";r.d(t,{db:()=>a,eV:()=>i});var n=r(16053);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?a(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.Fl({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let a="right"===t;i[a?n:r-n-1]=e[a?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function a(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.Fl({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},80418:e=>{e.exports={style:{fontFamily:"'Poppins', 'Poppins Fallback'",fontStyle:"normal"},className:"__className_6bee3b",variable:"__variable_6bee3b"}},80514:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>Math.round(1e5*e)/1e5},80879:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,q:()=>s});var n=r(31923);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,a=(e,t)=>r=>!!("string"==typeof r&&i.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),s=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[a,s,o,l]=i.match(n.S);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},81435:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n=r(12679),i=r(6882),a=r(80514),s=r(80879);let o={...i.ai,transform:e=>Math.round((0,n.q)(0,255,e))},l={test:(0,s.$)("rgb","red"),parse:(0,s.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+o.transform(e)+", "+o.transform(t)+", "+o.transform(r)+", "+(0,a.a)(i.X4.transform(n))+")"}},81645:(e,t,r)=>{"use strict";r.d(t,{$P:()=>l,My:()=>u,cK:()=>c,i3:()=>f,nj:()=>o});var n=r(12748),i=r(80403),a=r(16006);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?c(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?l(e,t):u(e,t)}function l(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Sl)(r,{size:t.size}),(0,i.eV)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=s[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,a.Sl)(n,{size:t.size}),(0,i.eV)(n,{dir:"right",size:t.size})):n}function c(e,t={}){let r,{signed:a,size:s}=t,o=BigInt(e);s?r=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&a?-r-1n:0;if(r&&o>r||o<l){let t="bigint"==typeof e?"n":"";throw new n.Ty({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:a,size:s,value:`${e}${t}`})}let u=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,i.eV)(u,{size:s}):u}let d=new TextEncoder;function f(e,t={}){return u(d.encode(e),t)}},81873:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(57353),i=r(98877),a=r(19953);function s(e,{docsPath:t,...r}){let s=(()=>{let t=(0,a.l)(e,r);return t instanceof i.RM?e:t})();return new n.zX(s,{docsPath:t,...r})}},81883:(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>n})},82367:(e,t,r)=>{"use strict";function n(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}r.d(t,{e:()=>n})},82421:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n="2.20.3"},83129:(e,t,r)=>{"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{HY:()=>u,Qd:()=>o,Tw:()=>d,Zz:()=>c,ve:()=>f,y$:()=>l});var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function o(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(n(1));return r(l)(e,t)}let a=e,u=t,c=new Map,d=c,f=0,h=!1;
36function p(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function m(){if(h)throw Error(n(3));return u}function y(e){if("function"!=typeof e)throw Error(n(4));if(h)throw Error(n(5));let t=!0;p();let r=f++;return d.set(r,e),function(){if(t){if(h)throw Error(n(6));t=!1,p(),d.delete(r),c=null}}}function b(e){if(!o(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if("string"!=typeof e.type)throw Error(n(17));if(h)throw Error(n(9));try{h=!0,u=a(u,e)}finally{h=!1}return(c=d).forEach(e=>{e()}),e}return b({type:s.INIT}),{dispatch:b,subscribe:y,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(n(10));a=e,b({type:s.REPLACE})},[i]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(m())}return t(),{unsubscribe:y(t)}},[i](){return this}}}}}function u(e){let t,r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof e[n]&&(i[n]=e[n])}let a=Object.keys(i);try{Object.keys(i).forEach(e=>{let t=i[e];if(void 0===t(void 0,{type:s.INIT}))throw Error(n(12));if(void 0===t(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let s=!1,o={};for(let t=0;t<a.length;t++){let l=a[t],u=i[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(n(14));o[l]=d,s=s||d!==c}return(s=s||a.length!==Object.keys(e).length)?o:e}}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(...e){return t=>(r,i)=>{let a=t(r,i),s=()=>{throw Error(n(15))},o={getState:a.getState,dispatch:(e,...t)=>s(e,...t)};return s=c(...e.map(e=>e(o)))(a.dispatch),{...a,dispatch:s}}}function f(e){return o(e)&&"type"in e&&"string"==typeof e.type}},83469:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(57616),i=r(93913);function a(e){let{batch:t,chain:r,ccipRead:a,key:s="base",name:o="Base Client",type:l="base"}=e,u=e.experimental_blockTag??("number"==typeof r?.experimental_preconfirmationTime?"pending":void 0),c=Math.min(Math.max(Math.floor((r?.blockTime??12e3)/2),500),4e3),d=e.pollingInterval??c,f=e.cacheTime??d,h=e.account?(0,n.J)(e.account):void 0,{config:p,request:m,value:y}=e.transport({chain:r,pollingInterval:d}),b={account:h,batch:t,cacheTime:f,ccipRead:a,chain:r,key:s,name:o,pollingInterval:d,request:m,transport:{...p,...y},type:l,uid:(0,i.L)(),...u?{experimental_blockTag:u}:{}};return Object.assign(b,{extend:function e(t){return r=>{let n=r(t);for(let e in b)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(b)})}},83607:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(16006);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.ME)(t)}},83817:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof 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)},83878:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(76200);class i extends n.C{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},83885:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>a});var n=r(14232),i=r(3866);function a(e=!0){let t=(0,n.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:s,register:o}=t,l=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return o(l)},[e]);let u=(0,n.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!r&&s?[!1,u]:[!0]}},83894:(e,t,r)=>{"use strict";r.d(t,{EQ:()=>o});var n=r(76200),i=r(12355),a=r(26715),s=r(81645);function o(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>
36e+t.length,0),r=l(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,a.aT)(e):e,r=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,i.l)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,s.My)(n.bytes):n.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new n.C("Length is too large.")}},84194:(e,t,r)=>{"use strict";r.d(t,{q:()=>u});var n=r(16006),i=r(8481),a=r(71503),s=r(92108),o=r(40474),l=r(77434);function u(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:c,poll:d,pollingInterval:f=e.pollingInterval}){let h;return(void 0!==d?d:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
36onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let n=(0,o.A)(["watchBlockNumber",e.uid,t,r,f]);return(0,a.lB)(n,{onBlockNumber:u,onError:c},n=>(0,s.w)(async()=>{try{let t=await (0,i.T)(e,l.G,"getBlockNumber")({cacheTime:0});if(void 0!==h){if(t===h)return;if(t-h>1&&r)for(let e=h+1n;e<t;e++)n.onBlockNumber(e,h),h=e}(void 0===h||t>h)&&(n.onBlockNumber(t,h),h=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let i=(0,o.A)(["watchBlockNumber",e.uid,t,r]);return(0,a.lB)(i,{onBlockNumber:u,onError:c},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await a.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.uU)(e.result?.number);t.onBlockNumber(i,h),h=i},onError(e){t.onError?.(e)}});i=s,r||i()}catch(e){c?.(e)}})(),()=>i()})})()}},84704:(e,t,r)=>{"use strict";let n;r.d(t,{k:()=>o});var i=r(17454),a=r(90050);function s(){n=void 0}let o={now:()=>(void 0===n&&o.set(a.uv.isProcessing||i.W.useManualTiming?a.uv.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(s)}}},85927:(e,t,r)=>{"use strict";var n,i,a,s,o,l,u,c,d,f,h,p,m,y,b,g,v,w,E,P,T,C,A,S,_;r.d(t,{A:()=>O});let O={BTC_AFFILIATION_CONTRACT:null!==(n="0x6e30dC06e288d877353A3ecFaF2D42898e1027dD".trim())&&void 0!==n?n:"",ETH_AFFILIATION_CONTRACT:null!==(i="0x6e30dC06e288d877353A3ecFaF2D42898e1027dD".trim())&&void 0!==i?i:"",BASE_URL:null!==(a="https://hedgex.io/api/v1".trim())&&void 0!==a?a:"",PROJECT_ID:null!==(s="17d8bcde8ff31d3f3cacb886f8520908".trim())&&void 0!==s?s:"",SWAP_ADDRESS:null!==(o="0x111111125421ca6dc452d289314280a0f8842a65".trim())&&void 0!==o?o:"",CHAIN_NETWORK:null!==(l="mainnet".trim())&&void 0!==l?l:"",AFFILIATION:null!==(u="0xF0a9cB8a5aE614Ceb2765979719273890D5F400E".trim())&&void 0!==u?u:"",HEDGE_CONTRACT_ADDRESS:null!==(c="0x5A06b4B797499E1F5B5879B1CF531B0a2586d109".trim())&&void 0!==c?c:"",ROUTER_CONTRACT_ADDRESS:null!==(d="0xBAA8C0Dd620f6411c9cC380140d5d312bcAf2a38".trim())&&void 0!==d?d:"",ETH_WBTC_ADDRESS:null!==(f="0x4200000000000000000000000000000000000006".trim())&&void 0!==f?f:"",WBTC_CONTRACT_ADDRESS:null!==(h="0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf".trim())&&void 0!==h?h:"",USDC_CONTRACT_ADDRESS:null!==(p="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913".trim())&&void 0!==p?p:"",TOKEN_ADDRESS:null!==(m="0x87Ba396770b0998A057897213ddFB18744dbF304".trim())&&void 0!==m?m:"",BITORIO_TOKEN_ADDRESS:null!==(y="0x832310cee2d79763faEbf559E8F7c7B32DF2A07A".trim())&&void 0!==y?y:"",PROOF:null!==(b="0x5919df1c3b1db361e22b4080a715be277b5068d605577f220268955435a2da9c".trim())&&void 0!==b?b:"",APPROVE_VALUE:null!==(g="115792089237316195423570985008687907853269984665640564039457584007913129639935".trim())&&void 0!==g?g:"",ETH_HEDGE_CONTRACT:null!==(v="0x7b03BE471441689A1636772118Be1cC71A1db46a".trim())&&void 0!==v?v:"",PRICE_QUOTER_ADDRESS:null!==(w="0xD7009ef03EEC8028ede700fC512aaFFCB022F9f2".trim())&&void 0!==w?w:"",FRONTEND_BASE:null!==(E="https://hedgex.io".trim())&&void 0!==E?E:"",ETH_HEDGE_CONFIG_CONTRACT:null!==(P="0xC2d9FeD46C0FE1D479783Fd99b0E35EaC8bfA518".trim())&&void 0!==P?P:"",HEDGE_CONFIG_CONTRACT_ADDRESS:null!==(T="0xC2d9FeD46C0FE1D479783Fd99b0E35EaC8bfA518".trim())&&void 0!==T?T:"",IDO_ADDRESS:null!==(C="0x9Fcb0825bD98c68Bb3822fA68fC6f0D9ee7b83cF".trim())&&void 0!==C?C:"",MAIN_USDC:null!==(A="0x833589fcd6edb6e08f4c7c32d4f71b54bda02913".trim())&&void 0!==A?A:"",SMART_CONTRACT_HEDGEX:null!==(S="0x5A06b4B797499E1F5B5879B1CF531B0a2586d109".trim())&&void 0!==S?S:"",SELF_DIRECT_AFFILIATION:null!==(_="0x6e30dC06e288d877353A3ecFaF2D42898e1027dD".trim())&&void 0!==_?_:""}},86581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(64252)._(r(14232)).default.createContext(null)},86751:(e,t,r)=>{"use strict";r.d(t,{j:()=>C});var n=r(51784),i=r(37605),a=r(58975),s=r(26241),o=r(11783),l=r(61402),u=r(51983);function c(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var d=r(81435);function f(e,t){return r=>r>0?t:e}var h=r(21853);let p=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},m=[l.u,d.B,u.V];function y(e){let t=m.find(t=>t.test(e));if((0,i.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===u.V&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;i=c(o,n,e+1/3),a=c(o,n,e),s=c(o,n,e-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let b=(e,t)=>{let r=y(e),n=y(t);if(!r||!n)return f(e,t);let i={...r};return e=>(i.red=p(r.red,n.red,e),i.green=p(r.green,n.green,e),i.blue=p(r.blue,n.blue,e),i.alpha=(0,h.k)(r.alpha,n.alpha,e),d.B.transform(i))},g=new Set(["none","hidden"]);function v(e,t){return r=>(0,h.k)(e,t,r)}function w(e){return"number"==typeof e?v:"string"==typeof e?(0,a.p)(e)?f:s.y.test(e)?b:T:Array.isArray(e)?E:"object"==typeof e?s.y.test(e)?b:P:f}function E(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>w(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function P(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=w(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let T=(e,t)=>
36{let r=o.f.createTransformer(t),a=(0,o.V)(e),s=(0,o.V)(t);return a.indexes.var.length===s.indexes.var.length&&a.indexes.color.length===s.indexes.color.length&&a.indexes.number.length>=s.indexes.number.length?g.has(e)&&!s.values.length||g.has(t)&&!a.values.length?function(e,t){return g.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):(0,n.F)(E(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][n[a]],o=e.values[s]??0;r[i]=o,n[a]++}return r}(a,s),s.values),r):((0,i.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),f(e,t))};function C(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?(0,h.k)(e,t,r):w(e)(e,t)}},87282:(e,t,r)=>{"use strict";e.exports=r(24802)},87291:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(81645);async function i(e,{address:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest"}){let a="bigint"==typeof r?(0,n.cK)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,a||i]}))}},88440:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var n=r(79313),i=r(66320),a=r(35794),s=r(42802),o=r(52346);function l(e){let{abi:t,data:r}=e,l=(0,i.di)(r,0,4),u=t.find(e=>"function"===e.type&&l===(0,a.V)((0,o.B)(e)));if(!u)throw new n.EB(l,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.n)(u.inputs,(0,i.di)(r,4)):void 0}}},89099:(e,t,r)=>{e.exports=r(16296)},89203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14232);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},89739:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});let n=(0,r(7862).p)(()=>void 0!==window.ScrollTimeline)},89848:(e,t,r)=>{"use strict";r.d(t,{N9:()=>j,oR:()=>C});var n=r(14232),i=r(69241);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
36-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
36.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
36}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
37`);var a=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e||"function"==typeof e?e:null,o=e=>(0,n.isValidElement)(e)||"string"==typeof e||"function"==typeof e||a(e);function l({enter:e,exit:t,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:s,position:o,preventExitTransition:l,done:u,nodeRef:c,isIn:d,playToast:f}){let h=r?`${e}--${o}`:e,p=r?`${t}--${o}`:t,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=c.current,t=h.split(" "),r=n=>{n.target===c.current&&(f(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,u,a):u()};d||(l?t():(m.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[d]),n.createElement(n.Fragment,null,s)}}function u(e,t){return{content:c(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function c(e,t,r=!1){return(0,n.isValidElement)(e)&&"string"!=typeof e.type?(0,n.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):"function"==typeof e?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function d({delay:e,isRunning:t,closeToast:r,type:a="default",hide:s,className:o,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:f}){let h=s||l&&0===u,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(p.transform=`scaleX(${u})`);let m=(0,i.A)("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":c}),y="function"==typeof o?o({rtl:c,type:a,defaultClassName:m}):(0,i.A)(m,o);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}`}),n.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:p,...{[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}}}))}var f=1,h=()=>`${f++}`,p=new Map,m=[],y=new Set,b=e=>y.forEach(t=>t(e));function g(e,t){var r;if(t)return!!(null!=(r=p.get(t))&&r.isToastActive(e));let n=!1;return p.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){o(e)&&(p.size>0||m.push({content:e,options:t}),p.forEach(r=>{r.buildToast(e,t)}))}function w(e,t){p.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function E(e,t){return v(e,t),t.toastId}function P(e,t){var r;return{...t,type:t&&t.type||e,toastId:(r=t)&&("string"==typeof r.toastId||a(r.toastId))?r.toastId:h()}}function T(e){return(t,r)=>E(t,P(e,r))}function C(e,t){return E(e,P("default",t))}C.loading=(e,t)=>
37E(e,P("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),C.promise=function(e,{pending:t,error:r,success:n},i){let a;t&&(a="string"==typeof t?C.loading(t,i):C.loading(t.render,{...i,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=(e,t,r)=>{if(null==t)return void C.dismiss(a);let n={type:e,...s,...i,data:r},o="string"==typeof t?{render:t}:t;return a?C.update(a,{...n,...o}):C(o.render,{...n,...o}),r},l="function"==typeof e?e():e;return l.then(e=>o("success",n,e)).catch(e=>o("error",r,e)),l},C.success=T("success"),C.info=T("info"),C.error=T("error"),C.warning=T("warning"),C.warn=C.warning,C.dark=(e,t)=>E(e,P("default",{theme:"dark",...t})),C.dismiss=function(e){!function(e){let t;if(!(p.size>0)){m=m.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||a(t))p.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=p.get(e.containerId);t?t.removeToast(e.id):p.forEach(t=>{t.removeToast(e.id)})}}(e)},C.clearWaitingQueue=(e={})=>{p.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},C.isActive=g,C.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=p.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:h()};a.toastId!==e&&(a.staleId=e);let s=a.render||i;delete a.render,E(s,a)}},C.done=e=>{C.update(e,{progress:1})},C.onChange=function(e){return y.add(e),()=>{y.delete(e)}},C.play=e=>w(!0,e),C.pause=e=>w(!1,e);var A="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,S=({theme:e,type:t,isLoading:r,...i})=>n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),_={info:function(e){return n.createElement(S,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(S,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(S,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(S,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},O=e=>{let{isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:s,playToast:o}=function(e){var t,r;let[i,a]=(0,n.useState)(!1),[s,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:m}=e;function y(){a(!0)}function b(){a(!1)}function g(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&b(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function v(){document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",v);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:a},null==(r=p.get(t.containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>
37{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);let w={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",g),document.addEventListener("pointerup",v);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=r&&t.clientY<=n?b():y()}};return c&&d&&(w.onMouseEnter=b,e.stacked||(w.onMouseLeave=y)),m&&(w.onClick=e=>{h&&h(e),u.canCloseOnClick&&f(!0)}),{playToast:y,pauseToast:b,isRunning:i,preventExitTransition:s,toastRef:l,eventHandlers:w}}(e),{closeButton:l,children:u,autoClose:f,onClick:h,type:m,hideProgressBar:y,closeToast:b,transition:g,position:v,className:w,style:E,progressClassName:P,updateId:T,role:C,progress:A,rtl:S,toastId:O,deleteToast:k,isIn:I,isLoading:M,closeOnClick:j,theme:R,ariaLabel:B}=e,N=(0,i.A)("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":j}),D="function"==typeof w?w({rtl:S,position:v,type:m,defaultClassName:N}):(0,i.A)(N,w),$=function({theme:e,type:t,isLoading:r,icon:i}){let a=null,s={theme:e,type:t};return!1===i||("function"==typeof i?a=i({...s,isLoading:r}):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,s):r?a=_.spinner():t in _&&(a=_[t](s))),a}(e),F=!!A||!f,L={closeToast:b,type:m,theme:R},q=null;return!1===l||(q="function"==typeof l?l(L):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,L):function({closeToast:e,theme:t,ariaLabel:r="close"}){return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),n.createElement(g,{isIn:I,done:k,position:v,preventExitTransition:r,nodeRef:a,playToast:o},n.createElement("div",{id:O,tabIndex:0,onClick:h,"data-in":I,className:D,...s,style:E,ref:a,...I&&{role:C,"aria-label":B}},null!=$&&n.createElement("div",{className:(0,i.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},$),c(u,e,!t),q,!e.customProgressBar&&n.createElement(d,{...T&&!F?{key:`p-${T}`}:{},rtl:S,theme:R,delay:f,isRunning:t,isIn:I,closeToast:b,hide:y,type:m,className:P,controlledProgress:F,progress:A||0})))},k=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),I=l(k("bounce",!0));l(k("slide",!0)),l(k("zoom")),l(k("flip"));var M={position:"top-right",transition:I,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function j(e){let t={...M,...e},r=e.stacked,[l,c]=(0,n.useState)(!0),d=(0,n.useRef)(null),{getToastToRender:f,isToastActive:h,count:y}=function(e){var t;let r,{subscribe:i,getSnapshot:l,setProps:c}=(0,n.useRef)((r=e.containerId||1,{subscribe(t){let n,i,l,c,d,f,h,y,g,w,E,P=(n=1,i=0,l=[],c=[],d=e,f=new Map,h=new Set,y=()=>{c=Array.from(f.values()),h.forEach(e=>e())},g=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},w=e=>{if(null==e)f.forEach(g);else{let t=f.get(e);t&&g(t)}y()},E=e=>{var t,r;let{toastId:n,updateId:i}=e.props,a=null==i;e.staleId&&f.delete(e.staleId),e.isActive=!0,f.set(n,e),y(),b(u(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:r,props:d,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>
37{f.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:w,toasts:f,clearQueue:()=>{i-=l.length,l=[]},buildToast:(e,t)=>{let c,h;if((({containerId:e,toastId:t,updateId:n})=>{let i=f.has(t)&&null==n;return(e?e!==r:1!==r)||i})(t))return;let{toastId:p,updateId:m,data:g,staleId:v,delay:P}=t,T=null==m;T&&i++;let C={...d,style:d.toastStyle,key:n++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:p,updateId:m,data:g,isIn:!1,className:s(t.className||d.toastClassName),progressClassName:s(t.progressClassName||d.progressClassName),autoClose:!t.isLoading&&(c=t.autoClose,h=d.autoClose,!1===c||a(c)&&c>0?c:h),closeToast(e){f.get(p).removalReason=e,w(p)},deleteToast(){let e=f.get(p);if(null!=e){if(b(u(e,"removed")),f.delete(p),--i<0&&(i=0),l.length>0)return void E(l.shift());y()}}};C.closeButton=d.closeButton,!1===t.closeButton||o(t.closeButton)?C.closeButton=t.closeButton:!0===t.closeButton&&(C.closeButton=!o(d.closeButton)||d.closeButton);let A={content:e,props:C,staleId:v};d.limit&&d.limit>0&&i>d.limit&&T?l.push(A):a(P)?setTimeout(()=>{E(A)},P):E(A)},setProps(e){d=e},setToggle:(e,t)=>{let r=f.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=f.get(e))?void 0:t.isActive},getSnapshot:()=>c});p.set(r,P);let T=P.observe(t);return m.forEach(e=>v(e.content,e.options)),m=[],()=>{T(),p.delete(r)}},setProps(e){var t;null==(t=p.get(r))||t.setProps(e)},getSnapshot(){var e;return null==(e=p.get(r))?void 0:e.getSnapshot()}})).current;c(e);let d=null==(t=(0,n.useSyncExternalStore)(i,l,l))?void 0:t.slice();return{getToastToRender:function(t){if(!d)return[];let r=new Map;return e.newestOnTop&&d.reverse(),d.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:g,count:null==d?void 0:d.length}}(t),{className:w,style:E,rtl:P,containerId:T,hotKeys:S}=t;function _(){r&&(c(!0),C.play())}return A(()=>{var e;if(r){let r=d.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,a=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${l}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(l?.2:1)+(l?0:12*t);e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(l?a:0)}`),i+=e.offsetHeight,a+=.025})}},[l,y,r]),(0,n.useEffect)(()=>{function e(e){var t;let r=d.current;S(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),c(!1),C.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(c(!0),C.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[S]),n.createElement("section",{ref:d,className:"Toastify",id:T,onMouseEnter:()=>{r&&(c(!1),C.pause())},onMouseLeave:_,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},f((e,t)=>{var a;let o,l=t.length?{...E}:{...E,pointerEvents:"none"};return n.createElement("div",{tabIndex:-1,className:(a=e,o=(0,i.A)("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":P}),"function"==typeof w?w({position:a,rtl:P,defaultClassName:o}):(0,i.A)(o,s(w))),"data-stacked":r,style:l,key:`c-${e}`},t.map(({content:e,props:t})=>n.createElement(O,{...t,stacked:r,collapseAll:_,isIn:h(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}},90050:(e,t,r)=>{"use strict";r.d(t,{Gt:()=>i,PP:()=>o,WG:()=>a,uv:()=>s});var n=r(90620);let{schedule:i,cancel:a,state:s,steps:o}=(0,r(76845).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},90089:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},90153:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});let n=1},90171:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});
37var n=r(76200),i=r(36262),a=r(18912),s=r(81645);let o=new(r(52474)).A(8192);var l=r(44439),u=r(40474),c=r(93913);function d({key:e,methods:t,name:r,request:d,retryCount:f=3,retryDelay:h=150,timeout:p,type:m},y){return{config:{key:e,methods:t,name:r,request:d,retryCount:f,retryDelay:h,timeout:p,type:m},request:function(e,t={}){return async(r,c={})=>{let{dedupe:d=!1,methods:f,retryDelay:h=150,retryCount:p=3,uid:m}={...t,...c},{method:y}=r;if(f?.exclude?.includes(y)||f?.include&&!f.include.includes(y))throw new a.ab(Error("method not supported"),{method:y});let b=d?(0,s.i3)(`${m}.${(0,u.A)(r)}`):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(o.get(r))return o.get(r);let n=e().finally(()=>o.delete(r));return o.set(r,n),n}(()=>(0,l.b)(async()=>{try{return await e(r)}catch(e){switch(e.code){case a.XU.code:throw new a.XU(e);case a.CL.code:throw new a.CL(e);case a.Gi.code:throw new a.Gi(e,{method:r.method});case a.D5.code:throw new a.D5(e);case a.bq.code:throw new a.bq(e);case a.Di.code:throw new a.Di(e);case a.hA.code:throw new a.hA(e);case a.qZ.code:throw new a.qZ(e);case a.YW.code:throw new a.YW(e);case a.ab.code:throw new a.ab(e,{method:r.method});case a.s0.code:throw new a.s0(e);case a.xQ.code:throw new a.xQ(e);case a.vx.code:throw new a.vx(e);case a.sV.code:throw new a.sV(e);case a.Sf.code:throw new a.Sf(e);case a.RV.code:throw new a.RV(e);case a.xq.code:throw new a.xq(e);case a.ch.code:throw new a.ch(e);case a.L5.code:throw new a.L5(e);case a.WT.code:throw new a.WT(e);case a.hl.code:throw new a.hl(e);case a.cg.code:throw new a.cg(e);case a.uL.code:throw new a.uL(e);case a.G1.code:throw new a.G1(e);case a.jz.code:throw new a.jz(e);case 5e3:throw new a.vx(e);default:if(e instanceof n.C)throw e;throw new a.MI(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Ci){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*h},retryCount:p,shouldRetry:({error:e})=>{var t;return"code"in(t=e)&&"number"==typeof t.code?-1===t.code||t.code===a.s0.code||t.code===a.bq.code:!(t instanceof i.Ci)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status||!1}}),{enabled:d,id:b})}}(d,{methods:t,retryCount:f,retryDelay:h,uid:(0,c.L)()}),value:y}}},90295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(64252)._(r(14232)),i=r(86581),a=[],s=[],o=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new u(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){l();let s=n.default.useContext(i.LoadableContext);
37s&&Array.isArray(r.modules)&&r.modules.forEach(e=>{s(e)});let o=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(o=!0,t());d(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},90376:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(38811).HTTP_ERROR_FALLBACK_ERROR_CODE,("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)},90434:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(17963).A)("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},90620:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});let n=e=>e},91200:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(14232);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},91497:(e,t,r)=>{"use strict";r.d(t,{Dv:()=>C,FO:()=>m,If:()=>E,Ji:()=>d,Rv:()=>l,WL:()=>p,Yo:()=>g,ej:()=>f,fC:()=>A,iB:()=>u,kz:()=>s,l9:()=>b,pc:()=>a,sP:()=>T,v7:()=>S,v8:()=>w});var n=r(65809);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function a(e){return i.test(e)}function s(e){return(0,n.Yv)(i,e)}let o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function l(e){return o.test(e)}function u(e){return(0,n.Yv)(o,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return c.test(e)}function f(e){return(0,n.Yv)(c,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return h.test(e)}function m(e){return(0,n.Yv)(h,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return y.test(e)}function g(e){return(0,n.Yv)(y,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}function E(e){return(0,n.Yv)(v,e)}let P=/^receive\(\) external payable$/;function T(e){return P.test(e)}let C=new Set(["memory","indexed","storage","calldata"]),A=new Set(["indexed"]),S=new Set(["calldata","memory","storage"])},91929:(e,t,r)=>{"use strict";function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}r.d(t,{x:()=>n})},92108:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(77004);function i(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let a=!0,s=()=>a=!1;return(async()=>{let o;t&&(o=await e({unpoll:s}));let l=await r?.(o)??i;await (0,n.u)(l);let u=async()=>{a&&(await e({unpoll:s}),await (0,n.u)(i),u())};u()})(),s}},93505:(e,t,r)=>{"use strict";r.d(t,{b4:()=>a,gU:()=>o,uP:()=>s});var n=r(16006),i=r(65443);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ME)(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,n.ME)(e.n
37once):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),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)}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let o=(0,i.q)("transaction",s)},93754:()=>{},93778:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>s,E5:()=>d,Rm:()=>u,SJ:()=>l,UW:()=>c,b2:()=>i,oX:()=>o,v2:()=>n,xw:()=>f});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],i=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],a=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],s=[...a,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...a,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],l=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],d=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}
37],f=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}]},93913:(e,t,r)=>{"use strict";let n;r.d(t,{L:()=>a});let i=256;function a(e=11){if(!n||i+e>512){n="",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}},94254:(e,t,r)=>{"use strict";function n(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((i,a)=>{(async()=>{let s;try{let o=new AbortController;r>0&&(s=setTimeout(()=>{n?o.abort():a(t)},r)),i(await e({signal:o?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(s)}})()})}r.d(t,{w:()=>n})},94508:(e,t,r)=>{"use strict";r.d(t,{u:()=>c});var n=r(40097);async function i(e,t={}){let r;if(t.connector)r=t.connector;else{let{connections:t,current:n}=e.state,i=t.get(n);r=i?.connector}let n=e.state.connections;r&&(await r.disconnect(),r.emitter.off("change",e._internal.events.change),r.emitter.off("disconnect",e._internal.events.disconnect),r.emitter.on("connect",e._internal.events.connect),n.delete(r.uid)),e.setState(e=>{if(0===n.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=n.values().next().value;return{...e,connections:new Map(n),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let r=e.state.connections.get(t)?.connector;if(!r)return;await e.storage?.setItem("recentConnectorId",r.id)}}var a=r(61511),s=r(26949);let o=[];function l(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,s.b)(o,t)?o:(o=t,t)}var u=r(14232);function c(e={}){let{mutation:t}=e,r=(0,a.U)(e),o={mutationFn:e=>i(r,e),mutationKey:["disconnect"]},{mutate:d,mutateAsync:f,...h}=(0,n.n)({...t,...o});return{...h,connectors:(function(e={}){let t=(0,a.U)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>l(e),r,{equalityFn:s.b})})(t,{onChange:e}),()=>l(t),()=>l(t))})({config:r}).map(e=>e.connector),disconnect:d,disconnectAsync:f}}},94770:(e,t,r)=>{"use strict";r.d(t,{Bv:()=>a});var n=r(81645);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,n.cK)(BigInt(e.r)):e.r,s:e.s?(0,n.cK)(BigInt(e.s)):e.s,chainId:(0,n.cK)(e.chainId),nonce:(0,n.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.cK)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.My)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.cK)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.cK)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.cK)(e.value)),t}},94817:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});
37class n extends Error{constructor(e,t={}){let r=t.cause instanceof n?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof n&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},94833:(e,t,r)=>{"use strict";r.d(t,{e:()=>o});var n=r(79313),i=r(42802),a=r(96019);let s="/docs/contract/decodeFunctionResult";function o(e){let{abi:t,args:r,functionName:o,data:l}=e,u=t[0];if(o){let e=(0,a.iY)({abi:t,args:r,name:o});if(!e)throw new n.Iz(o,{docsPath:s});u=e}if("function"!==u.type)throw new n.Iz(void 0,{docsPath:s});if(!u.outputs)throw new n.MR(u.name,{docsPath:s});let c=(0,i.n)(u.outputs,l);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},95092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},forbidden:function(){return l.forbidden},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},unauthorized:function(){return l.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return l.unstable_rethrow},useParams:function(){return m},usePathname:function(){return h},useRouter:function(){return p},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(14232),i=r(15792),a=r(88797),s=r(37601),o=r(1744),l=r(69591),u=r(14159),c=r(83817),d=void 0;function f(){let e=(0,n.useContext)(a.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function h(){return null==d||d("usePathname()"),(0,n.useContext)(a.PathnameContext)}function p(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function m(){return null==d||d("useParams()"),(0,n.useContext)(a.PathParamsContext)}function y(e){void 0===e&&(e="children"),null==d||d("useSelectedLayoutSegments()");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let a;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)a=t[1][r];else{var l;let e=t[1];a=null!=(l=e.children)?l:Object.values(e)[0]}if(!a)return i;let u=a[0],c=(0,s.getSegmentValue)(u);return!c||c.startsWith(o.PAGE_SEGMENT_KEY)?i:(i.push(c),e(a,r,!1,i))}(t.parentTree,e):null}function b(e){void 0===e&&(e="children"),null==d||d("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===o.DEFAULT_SEGMENT_KEY?null: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)},95164:(e,t,r)=>{"use strict";r.d(t,{x:()=>d});var n=r(32544),i=r(74517),a=r(65859),s=r(38047),o=r(16006),l=r(81645);async function u({hash:e,signature:t}){let n=(0,a.q)(e)?e:(0,l.nj)(e),{secp256k1:i}=await Promise.resolve().then(r.bind(r,13895)),u=(()=>
37{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:a}=t,s=c(Number(a??n));return new i.Signature((0,o.uU)(e),(0,o.uU)(r)).addRecoveryBit(s)}let e=(0,a.q)(t)?t:(0,l.nj)(t);if(65!==(0,s.E)(e))throw Error("invalid signature length");let r=c((0,o.ME)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${u}`}function c(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function d({hash:e,signature:t}){var r=await u({hash:e,signature:t});let a=(0,i.S)(`0x${r.substring(4)}`).substring(26);return(0,n.o)(`0x${a}`)}},96019:(e,t,r)=>{"use strict";r.d(t,{iY:()=>l});var n=r(79313),i=r(65859),a=r(57512),s=r(51304),o=r(35794);function l(e){let t,{abi:r,args:l=[],name:u}=e,c=(0,i.q)(u,{strict:!1}),d=r.filter(e=>c?"function"===e.type?(0,o.V)(e)===u:"event"===e.type&&(0,s.h)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){if("inputs"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return(0,a.P)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;
37if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let s=t[i],o=r[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,n[i]);let l=[s.type,o.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&(0,a.P)(n[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(r)throw new n.nM({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}}return t||d[0]}}},96268:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(45755),i=r(57512);function a(e,t){if(!(0,i.P)(e,{strict:!1}))throw new n.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new n.M({address:t});return e.toLowerCase()===t.toLowerCase()}},97594:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}r.d(t,{G:()=>n})},97685:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>W});var n,i=r(14232);let a={data:""},s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,o=/\/\*[^]*?\*\/|  +/g,l=/\n+/g,u=(e,t)=>{let r="",n="",i="";for(let a in e){let s=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+s+";":n+="f"==a[1]?u(s,a):a+"{"+u(s,"k"==a[1]?"":t)+"}":"object"==typeof s?n+=u(s,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=s&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=u.p?u.p(a,s):a+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},c={},d=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+d(e[r]);return t}return e};function f(e){let t,r,n,i=this||{},f=e.call?e(i.p):e;return((e,t,r,n,i)=>{var a,f,h,p;let m=d(e),y=c[m]||(c[m]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(m));if(!c[y]){let t=m!==e?e:(e=>{let t,r,n=[{}];for(;t=s.exec(e.replace(o,""));)t[4]?n.shift():t[3]?(r=t[3].replace(l," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(l," ").trim();return n[0]})(e);c[y]=u(i?{["@keyframes "+y]:t}:t,r?"":"."+y)}let b=r&&c.g?c.g:null;return r&&(c.g=c[y]),a=c[y],f=t,h=n,(p=b)?f.data=f.data.replace(p,a):-1===f.data.indexOf(a)&&(f.data=h?a+f.data:f.data+a),y})(f.unshift?f.raw?(t=[].slice.call(arguments,1),r=i.p,f.reduce((e,n,i)=>{let a=t[i];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":u(e,""):!1===e?"":e}return e+n+(null==a?"":a)},"")):f.reduce((e,t)=>Object.assign(e,t&&t.call?t(i.p):t),{}):f,(n=i.target,"object"==typeof window?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||a),i.g,i.o,i.k)}f.bind({g:1});let h,p,m,y=f.bind({k:1});function b(e,t){let r=this||{};return function(){let n=arguments;function i(a,s){let o=Object.assign({},a),l=o.className||i.className;r.p=Object.assign({theme:p&&p()},o),r.o=/ *go\d+/.test(l),o.className=f.apply(r,n)+(l?" "+l:""),t&&(o.ref=s);let u=e;return e[0]&&(u=o.as||e,delete o.as),m&&u[0]&&m(o),h(u,o)}return t?t(i):i}}var g=(e,t)=>"function"==typeof e?e(t):e,v=(()=>{let e=0;return()=>(++e).toString()})(),w=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),E="default",P=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return P(e,{type:+!!e.toasts.find(e=>e.id===n.id),toast:n});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},T=[],C={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},A={},S=(e,t=E)=>{A[t]=P(A[t]||C,e),T.forEach(([e,r])=>{e===t&&r(A[t])})},_=e=>Object.keys(A).forEach(t=>S(e,t)),O=(e=E)=>t=>{S(t,e)},k=e=>(t,r)=>{let n,i=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||v()}))(t,e,r);return O(i.toasterId||(n=i.id,Object.keys(A).find(e=>A[e].toasts.some(e=>e.id===n))))({type:2,toast:i}),i.id},I=(e,t)=>k("blank")(e,t);I.error=k("error"),I.success=k("success"),I.loading=k("loading"),I.custom=k("custom"),I.dismiss=(e,t)=>{let r={type:3,toastId:e};t?O(t)(r):_(r)},I.dismissAll=e=>
vendor: 4,160 bytes, lines 37-203
37I.dismiss(void 0,e),I.remove=(e,t)=>{let r={type:4,toastId:e};t?O(t)(r):_(r)},I.removeAll=e=>I.remove(void 0,e),I.promise=(e,t,r)=>{let n=I.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?g(t.success,e):void 0;return i?I.success(i,{id:n,...r,...null==r?void 0:r.success}):I.dismiss(n),e}).catch(e=>{let i=t.error?g(t.error,e):void 0;i?I.error(i,{id:n,...r,...null==r?void 0:r.error}):I.dismiss(n)}),e};var M=y`
38from {
39  transform: scale(0) rotate(45deg);
40	opacity: 0;
41}
42to {
43 transform: scale(1) rotate(45deg);
44  opacity: 1;
45}`,j=y`
46from {
47  transform: scale(0);
48  opacity: 0;
49}
50to {
51  transform: scale(1);
52  opacity: 1;
53}`,R=y`
54from {
55  transform: scale(0) rotate(90deg);
56	opacity: 0;
57}
58to {
59  transform: scale(1) rotate(90deg);
60	opacity: 1;
61}`,B=b("div")`
62  width: 20px;
63  opacity: 0;
64  height: 20px;
65  border-radius: 10px;
66  background: ${e=>e.primary||"#ff4b4b"};
67  position: relative;
68  transform: rotate(45deg);
69
70  animation: ${M} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
71    forwards;
72  animation-delay: 100ms;
73
74  &:after,
75  &:before {
76    content: '';
77    animation: ${j} 0.15s ease-out forwards;
78    animation-delay: 150ms;
79    position: absolute;
80    border-radius: 3px;
81    opacity: 0;
82    background: ${e=>e.secondary||"#fff"};
83    bottom: 9px;
84    left: 4px;
85    height: 2px;
86    width: 12px;
87  }
88
89  &:before {
90    animation: ${R} 0.15s ease-out forwards;
91    animation-delay: 180ms;
92    transform: rotate(90deg);
93  }
94`,N=y`
95  from {
96    transform: rotate(0deg);
97  }
98  to {
99    transform: rotate(360deg);
100  }
101`,D=b("div")`
102  width: 12px;
103  height: 12px;
104  box-sizing: border-box;
105  border: 2px solid;
106  border-radius: 100%;
107  border-color: ${e=>e.secondary||"#e0e0e0"};
108  border-right-color: ${e=>e.primary||"#616161"};
109  animation: ${N} 1s linear infinite;
110`,$=y`
111from {
112  transform: scale(0) rotate(45deg);
113	opacity: 0;
114}
115to {
116  transform: scale(1) rotate(45deg);
117	opacity: 1;
118}`,F=y`
1190% {
120	height: 0;
121	width: 0;
122	opacity: 0;
123}
12440% {
125  height: 0;
126	width: 6px;
127	opacity: 1;
128}
129100% {
130  opacity: 1;
131  height: 10px;
132}`,L=b("div")`
133  width: 20px;
134  opacity: 0;
135  height: 20px;
136  border-radius: 10px;
137  background: ${e=>e.primary||"#61d345"};
138  position: relative;
139  transform: rotate(45deg);
140
141  animation: ${$} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
142    forwards;
143  animation-delay: 100ms;
144  &:after {
145    content: '';
146    box-sizing: border-box;
147    animation: ${F} 0.2s ease-out forwards;
148    opacity: 0;
149    animation-delay: 200ms;
150    position: absolute;
151    border-right: 2px solid;
152    border-bottom: 2px solid;
153    border-color: ${e=>e.secondary||"#fff"};
154    bottom: 6px;
155    left: 6px;
156    height: 10px;
157    width: 6px;
158  }
159`,q=b("div")`
160  position: absolute;
161`,U=b("div")`
162  position: relative;
163  display: flex;
164  justify-content: center;
165  align-items: center;
166  min-width: 20px;
167  min-height: 20px;
168`,z=y`
169from {
170  transform: scale(0.6);
171  opacity: 0.4;
172}
173to {
174  transform: scale(1);
175  opacity: 1;
176}`,V=b("div")`
177  position: relative;
178  transform: scale(0.6);
179  opacity: 0.4;
180  min-width: 20px;
181  animation: ${z} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
182    forwards;
183`,G=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?i.createElement(V,null,t):t:"blank"===r?null:i.createElement(U,null,i.createElement(D,{...n}),"loading"!==r&&i.createElement(q,null,"error"===r?i.createElement(B,{...n}):i.createElement(L,{...n})))},H=b("div")`
184  display: flex;
185  align-items: center;
186  background: #fff;
187  color: #363636;
188  line-height: 1.3;
189  will-change: transform;
190  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
191  max-width: 350px;
192  pointer-events: auto;
193  padding: 8px 10px;
194  border-radius: 8px;
195`,K=b("div")`
196  display: flex;
197  justify-content: center;
198  margin: 4px 10px;
199  color: inherit;
200  flex: 1 1 auto;
201  white-space: pre-line;
202`;i.memo(({toast:e,position:t,style:r,children:n})=>{let a=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,i]=w()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[`
2030% {transform: translate3d(0,${-200*r}%,0) scale(.6); opacity:.5;}
204100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205`,`
2060% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207100% {transform: translate3d(0,${-150*r}%,-1px) scale(.6); opacity:0;}
208`];return{animation:t?`${y(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${y(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=i.createElement(G,{toast:e}),o=i.createElement(K,{...e.ariaProps},g(e.message,e));return i.createElement(H,{className:e.className,style:{...a,...r,...e.style}},"function"==typeof n?n({icon:s,message:o}):i.createElement(i.Fragment,null,s,o))}),n=i.createElement,u.p=void 0,h=n,p=void 0,m=void 0,f`
209  z-index: 9999;
210  > * {
211    pointer-events: auto;
212  }
213`;var W=I},98074:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(71665);function i(e){return{address:e.address,amount:n.oB(e.amount),index:n.oB(e.index),validatorIndex:n.oB(e.validatorIndex)}}function a(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.oB(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.oB(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.oB(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.oB(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.oB(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.oB(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},98275:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(90089),i=r(37149),a=new class extends n.Q{#I;#h;#p;constructor(){super(),this.#p=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#h||this.setEventListener(this.#p)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#p=e,this.#h?.(),this.#h=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#I!==e&&(this.#I=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#I?this.#I:globalThis.document?.visibilityState!=="hidden"}}},98626:(e,t,r)=>{"use strict";r.d(t,{e:()=>o});var n=r(98643);function i(e,t={}){let r=function(e,t={}){try{return e.getClient(t)}catch{return}}(e,t);return r?.extend(n.$)}var a=r(80127),s=r(61511);function o(e={}){let t=(0,s.U)(e);return(0,a.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>i(e),r,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>i(t,e),()=>i(t,e),e=>e,(e,t)=>e?.uid===t?.uid)}},98643:(e,t,r)=>{"use strict";r.d(t,{$:()=>rD});var n=r(93778),i=r(94833),a=r(14237),s=r(49048),o=r(49154),l=r(81645),u=r(76200),c=r(57353);function d(e){if(!(e instanceof u.C))return!1;let t=e.walk(e=>e instanceof c.M);return t instanceof c.M&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}var f=r(44928),h=r(58798),p=r(26715),m=r(74517),y=r(65859);function b(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,y.q)(t)?t:null}function g(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,l.My)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let n=b(r[e]),i=n?(0,p.ZJ)(n):(0,m.S)((0,p.Af)(r[e]),"bytes");t=(0,m.S)((0,h.xW)([t,i]),"bytes")}return(0,l.My)(t)}function v(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,p.Af)(t).byteLength+2),n=0,i=t.split(".");for(let e=0;e<i.length;e++){var a;let t=(0,p.Af)(i[e]);t.byteLength>255&&(t=(0,p.Af)((a=function(e){let t=new Uint8Array(32).fill(0);return e?b(e)||(0,m.S)((0,p.Af)(e)):(0,l.My)(t)}(i[e]),`[${a.slice(2)}]`))),r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var w=r(8481),E=r(75977);async function P(e,t){let{blockNumber:r,blockTag:u,coinType:c,name:h,gatewayUrls:p,strict:m}=t,{chain:y}=e,b=(()=>
vendor: 4,099 bytes, line 213
213{if(t.universalResolverAddress)return t.universalResolverAddress;if(!y)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.M)({blockNumber:r,chain:y,contract:"ensUniversalResolver"})})(),P=y?.ensTlds;if(P&&!P.some(e=>h.endsWith(e)))return null;let T=null!=c?[g(h),BigInt(c)]:[g(h)];try{let t=(0,a.p)({abi:n.Rm,functionName:"addr",args:T}),s={address:b,abi:n.Ag,functionName:"resolveWithGateways",args:[(0,l.nj)(v(h)),t,p??[f.J]],blockNumber:r,blockTag:u},c=(0,w.T)(e,E.J,"readContract"),d=await c(s);if("0x"===d[0])return null;let m=(0,i.e)({abi:n.Rm,args:T,functionName:"addr",data:d[0]});if("0x"===m||"0x00"===(0,o.B)(m))return null;return m}catch(e){if(m)throw e;if(d(e))return null;throw e}}class T extends u.C{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: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class C extends u.C{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class A extends u.C{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class S extends u.C{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}u.C;let _=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,O=/^(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>\/.*)?$/,k=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,I=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function M(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function j(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function R({uri:e,gatewayUrls:t}){let r=k.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=j(t?.ipfs,"https://ipfs.io"),i=j(t?.arweave,"https://arweave.net"),a=e.match(_),{protocol:s,subpath:o,target:l,subtarget:u=""}=a?.groups||{},c="ipns:/"===s||"ipns/"===o,d="ipfs:/"===s||"ipfs/"===o||O.test(e);if(e.startsWith("http")&&!c&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((c||d)&&l)return{uri:`${n}/${c?"ipns":"ipfs"}/${l}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&l)return{uri:`${i}/${l}${u||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(I,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new A({uri:e})}function B(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new T({data:e});return e.image||e.image_url||e.image_data}async function N({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await D({gatewayUrls:e,uri:B(r)})}catch{throw new A({uri:t})}}async function D({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=R({uri:t,gatewayUrls:e});if(n||await M(r))return r;throw new A({uri:t})}async function $(e,{nft:t}){if("erc721"===t.namespace)return(0,E.J)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,E.J)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}
vendor: 5,019 bytes, line 213
213],functionName:"uri",args:[BigInt(t.tokenID)]});throw new S({namespace:t.namespace})}async function F(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?L(e,{gatewayUrls:t,record:r}):D({uri:r,gatewayUrls:t})}async function L(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[a,s]=r.split(":"),[o,l]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new C({reason:"Only EIP-155 supported"});if(!s)throw new C({reason:"Chain ID not found"});if(!l)throw new C({reason:"Contract address not found"});if(!i)throw new C({reason:"Token ID not found"});if(!o)throw new C({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:o.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:i,isOnChain:a,isEncoded:s}=R({uri:await $(e,{nft:n}),gatewayUrls:t});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return D({uri:B(JSON.parse(s?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let o=n.tokenID;return"erc1155"===n.namespace&&(o=o.replace("0x","").padStart(64,"0")),N({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,o)})}async function q(e,t){let{blockNumber:r,blockTag:o,key:u,name:c,gatewayUrls:h,strict:p}=t,{chain:m}=e,y=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!m)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.M)({blockNumber:r,chain:m,contract:"ensUniversalResolver"})})(),b=m?.ensTlds;if(b&&!b.some(e=>c.endsWith(e)))return null;try{let t={address:y,abi:n.Ag,args:[(0,l.nj)(v(c)),(0,a.p)({abi:n.SJ,functionName:"text",args:[g(c),u]}),h??[f.J]],functionName:"resolveWithGateways",blockNumber:r,blockTag:o},s=(0,w.T)(e,E.J,"readContract"),d=await s(t);if("0x"===d[0])return null;let p=(0,i.e)({abi:n.SJ,functionName:"text",data:d[0]});return""===p?null:p}catch(e){if(p)throw e;if(d(e))return null;throw e}}async function U(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:a,strict:s,universalResolverAddress:o}){let l=await (0,w.T)(e,q,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:o,gatewayUrls:a,strict:s});if(!l)return null;try{return await F(e,{record:l,gatewayUrls:n})}catch{return null}}async function z(e,t){let{address:r,blockNumber:i,blockTag:a,coinType:o=60n,gatewayUrls:l,strict:u}=t,{chain:c}=e,h=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.M)({blockNumber:i,chain:c,contract:"ensUniversalResolver"})})();try{let t={address:h,abi:n.oX,args:[r,o,l??[f.J]],functionName:"reverseWithGateways",blockNumber:i,blockTag:a},s=(0,w.T)(e,E.J,"readContract"),[u]=await s(t);return u||null}catch(e){if(u)throw e;if(d(e))return null;throw e}}async function V(e,t){let{blockNumber:r,blockTag:n,name:i}=t,{chain:a}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw Error("client chain not configured. universalResolverAddress is required.");return(0,s.M)({blockNumber:r,chain:a,contract:"ensUniversalResolver"})})(),u=a?.ensTlds;if(u&&!u.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${u?.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);let[c]=await (0,w.T)(e,E.J,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,l.nj)(v(i))],blockNumber:r,blockTag:n});return c}var G=r(34724),H=r(57616),K=r(81873),W=r(35884),Q=r(94770),Z=r(39575);async function Y(e,t){let{account:r=e.account,blockNumber:n,blockTag:i="latest",blobs:a,data:s,gas:o,gasPrice:u,maxFeePerBlobGas:c,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p,...m}=t,y=r?(0,H.J)(r):void 0;try{(0,Z.c)(t);let r="bigint"==typeof n?(0,l.cK)(n):void 0,b=e.chain?.formatters?.transactionRequest?.format,g=(b||Q.Bv)({...(0,W.o)(m,{format:b}),from:y?.address,blobs:a,data:s,gas:o,gasPrice:u,maxFeePerBlobGas:c,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p}),v=await e.request({method:"eth_createAccessList",params:[g,r||i]});return{accessList:v.accessList,gasUsed:BigInt(v.gasUsed)}}catch(r){throw(0,K.d)(r,{...t,account:y,chain:e.chain})}}function X(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:a})=>{"success"===i&&t===e&&(r[n]=a.request)}),t=>r[t]||e.request}async function J(e){let t=X(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}var ee=r(79313);class et extends u.C{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var er=r(51304),en=r(23414),ei=r(52346),ea=r(96019);let es="/docs/contract/encodeEventTopics";function eo(e){let{abi:t,eventName:r,args:n}=e,i=t[0];if(r){let e=(0,ea.iY)({abi:t,name:r});
vendor: 4,246 bytes, line 213
213if(!e)throw new ee.M_(r,{docsPath:es});i=e}if("event"!==i.type)throw new ee.M_(void 0,{docsPath:es});let a=(0,ei.B)(i),s=(0,er.h)(a),o=[];if(n&&"inputs"in i){let e=i.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(o=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>el({param:e,value:t[r][i]})):void 0!==t[r]&&null!==t[r]?el({param:e,value:t[r]}):null)??[])}return[s,...o]}function el({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,m.S)((0,p.ZJ)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new et(e.type);return(0,en.h)([e],[t])}async function eu(e,t){let{address:r,abi:n,args:i,eventName:a,fromBlock:s,strict:o,toBlock:u}=t,c=X(e,{method:"eth_newFilter"}),d=a?eo({abi:n,args:i,eventName:a}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof s?(0,l.cK)(s):s,toBlock:"bigint"==typeof u?(0,l.cK)(u):u,topics:d}]});return{abi:n,args:i,eventName:a,id:f,request:c(f),strict:!!o,type:"event"}}async function ec(e,{address:t,args:r,event:n,events:i,fromBlock:a,strict:s,toBlock:o}={}){let u=i??(n?[n]:void 0),c=X(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>eo({abi:[e],eventName:e.name,args:r}))],n&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,l.cK)(a):a,toBlock:"bigint"==typeof o?(0,l.cK)(o):o,...d.length?{topics:d}:{}}]});return{abi:u,args:r,eventName:n?n.name:void 0,fromBlock:a,id:f,request:c(f),strict:!!s,toBlock:o,type:"event"}}async function ed(e){let t=X(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var ef=r(66655),eh=r(28501);async function ep(e,t){let{abi:r,address:n,args:i,functionName:s,dataSuffix:o,...l}=t,u=(0,a.p)({abi:r,args:i,functionName:s});try{return await (0,w.T)(e,eh.Q,"estimateGas")({data:`${u}${o?o.replace("0x",""):""}`,to:n,...l})}catch(t){let e=l.account?(0,H.J)(l.account):void 0;throw(0,ef.j)(t,{abi:r,address:n,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:e?.address})}}var em=r(68324),ey=r(13847),eb=r(87291);async function eg(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var ev=r(2774),ew=r(77434),ex=r(16006);async function eE(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){let i,a=void 0!==r?(0,l.cK)(r):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||n]},{dedupe:!!a}),(0,ex.ME)(i)}var eP=r(83607),eT=r(4972),eC=r(96268),eA=r(60539),eS=r(38047),e_=r(42802);let eO="/docs/contract/decodeEventLog";function ek(e){let{abi:t,data:r,strict:n,topics:i}=e,a=n??!0,[s,...o]=i;if(!s)throw new ee._z({docsPath:eO});let l=t.find(e=>"event"===e.type&&s===(0,er.h)((0,ei.B)(e)));if(!(l&&"name"in l)||"event"!==l.type)throw new ee.kE(s,{docsPath:eO});let{name:u,inputs:c}=l,d=c?.some(e=>!("name"in e&&e.name)),f=d?[]:{},h=c.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<h.length;e++){let[t,r]=h[e],n=o[e];if(!n)throw new ee.l3({abiItem:l,param:t});f[d?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,e_.n)([e],t)||[])[0]}({param:t,value:n})}let p=c.filter(e=>!("indexed"in e&&e.indexed));if(p.length>0){if(r&&"0x"!==r)try{let e=(0,e_.n)(p,r);if(e)if(d)for(let t=0;t<c.length;t++)f[t]=f[t]??e.shift();else for(let t=0;t<p.length;t++)f[p[t].name]=e[t]}catch(e){if(a){if(e instanceof ee.Iy||e instanceof eA.SK)throw new ee.fo({abiItem:l,data:r,params:p,size:(0,eS.E)(r)});throw e}}else if(a)throw new ee.fo({abiItem:l,data:"0x",params:p,size:0})}return{eventName:u,args:Object.values(f).length>0?f:void 0}}function eI(e){let{abi:t,args:r,logs:n,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(e=>{try{let n=t.find(t=>"event"===t.type&&e.topics[0]===(0,er.h)(t));if(!n)return null;let s=ek({...e,abi:[n],strict:i});if(a&&!a.includes(s.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;
vendor: 7,340 bytes, line 213
213if(!t)return!1;function i(e,t,r){try{if("address"===e.type)return(0,eC.h)(t,r);if("string"===e.type||"bytes"===e.type)return(0,m.S)((0,p.ZJ)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(null==e)return!0;let a=r[n];return!!a&&(Array.isArray(e)?e:[e]).some(e=>i(a,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(null==n)return!0;let a=r.find(t=>t.name===e);return!!a&&(Array.isArray(n)?n:[n]).some(r=>i(a,r,t[e]))})}({args:s.args,inputs:n.inputs,matchArgs:r}))return null;return{...s,...e}}catch(n){let t,r;if(n instanceof ee.kE)return null;if(n instanceof ee.fo||n instanceof ee.l3){if(i)return null;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}var eM=r(82367);async function ej(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:a,events:s,args:o,strict:u}={}){let c=s??(a?[a]:void 0),d=[];c&&(d=[c.flatMap(e=>eo({abi:[e],eventName:e.name,args:s?void 0:o}))],a&&(d=d[0]));let f=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?(0,l.cK)(n):n,toBlock:"bigint"==typeof i?(0,l.cK)(i):i}]})).map(e=>(0,eM.e)(e));return c?eI({abi:c,args:o,logs:f,strict:u??!1}):f}async function eR(e,t){let{abi:r,address:n,args:i,blockHash:a,eventName:s,fromBlock:o,toBlock:l,strict:u}=t,c=s?(0,ea.iY)({abi:r,name:s}):void 0,d=c?void 0:r.filter(e=>"event"===e.type);return(0,w.T)(e,ej,"getLogs")({address:n,args:i,blockHash:a,event:c,events:d,fromBlock:o,toBlock:l,strict:u})}class eB extends u.C{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function eN(e,t){let{address:r,factory:n,factoryData:i}=t;try{let[t,a,s,o,l,u,c]=await (0,w.T)(e,E.J,"readContract")({abi:eD,address:r,functionName:"eip712Domain",factory:n,factoryData:i});return{domain:{name:a,version:s,chainId:Number(o),verifyingContract:l,salt:u},extensions:c,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new eB({address:r});throw e}}let eD=[{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"}];async function e$(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){var a;let s="bigint"==typeof r?(0,l.cK)(r):void 0;return{baseFeePerGas:(a=await e.request({method:"eth_feeHistory",params:[(0,l.cK)(t),s||n,i]},{dedupe:!!s})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(e=>e.map(e=>BigInt(e)))}}async function eF(e,{filter:t}){let r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof n[0])return n;let i=n.map(e=>(0,eM.e)(e));return"abi"in t&&t.abi?eI({abi:t.abi,logs:i,strict:r}):i}async function eL(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,eM.e)(e));return t.abi?eI({abi:t.abi,logs:n,strict:r}):n}var eq=r(14867);async function eU(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){let a=void 0!==r?(0,l.cK)(r):void 0;var s=await e.request({method:"eth_getProof",params:[t,i,a||(n??"latest")]});return{...s,balance:s.balance?BigInt(s.balance):void 0,nonce:s.nonce?(0,ex.ME)(s.nonce):void 0,storageProof:s.storageProof?s.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function ez(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){let a=void 0!==r?(0,l.cK)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,a||n]})}var eV=r(75087);async function eG(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([(0,w.T)(e,ew.G,"getBlockNumber")({}),t?(0,w.T)(e,eV.x,"getTransaction")({hash:t}):void 0]),a=r?.blockNumber||i?.blockNumber;return a?n-a+1n:0n}var eH=r(53422),eK=r(845),eW=r(19532),eQ=r(98074),eZ=r(98877),eY=r(19953),eX=r(37744),eJ=r(45710);async function e0(e,t){let{blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:o,traceTransfers:u,validation:d}=t;try{let t=[];for(let e of s){let r=e.blockOverrides?eQ.J(e.blockOverrides):void 0,n=e.calls.map(e=>{let t=e.account?(0,H.J)(e.account):void 0,r=e.abi?(0,a.p)(e):e.data,n={...e,data:e.dataSuffix?(0,h.xW)([r||"0x",e.dataSuffix]):r,from:e.from??t?.address};return(0,Z.c)(n),(0,Q.Bv)(n)}),i=e.stateOverrides?(0,eJ.yH)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:n,stateOverrides:i})}let f="bigint"==typeof r?(0,l.cK)(r):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:o,traceTransfers:u,validation:d},f||n]})).map((e,t)=>({...(0,eX.$)(e),calls:e.calls.map((e,r)=>{let{abi:n,args:a,functionName:o,to:l}=s[t].calls[r],u=e.error?.data??e.returnData,d=BigInt(e.gasUsed),f=e.logs?.map(e=>(0,eM.e)(e)),h="0x1"===e.status?"success":"failure",p=n&&"success"===h&&"0x"!==u?(0,i.e)({abi:n,data:u,functionName:o}):null,m=(()=>{let t;if("success"!==h&&(e.error?.data==="0x"?t=new ee.O:e.error&&(t=new c.$S(e.error)),t))return(0,ef.j)(t,{abi:n??[],address:l??"0x",args:a,functionName:o??"<unknown>"})})();return{data:u,gasUsed:d,logs:f,status:h,..."success"===h?{result:p}:{error:m}}})}))}catch(t){let e=(0,eY.l)(t,{});if(e instanceof eZ.RM)throw t;throw e}}var e1=r(1162),e5=r(91497),e6=r(7877),e2=r(46685),e8=r(22729),e3=r(40552),e4=r(17191),e9=r(71665);function e7(e,t){if(tl(e)>t)throw new tf({givenSize:tl(e),maxSize:t})}let te={zero:48,nine:57,A:65,F:70,a:97,f:102};function tt(e){return e>=te.zero&&e<=te.nine?e-te.zero:e>=te.A&&e<=te.F?e-(te.A-10):e>=te.a&&e<=te.f?e-(te.a-10):void 0}function tr(e,t={}){let{dir:r="left"}=t,n=e,i=0;for(let e=0;e<n.length-1;e++)if("0"===n["left"===r?e:n.length-e-1].toString())i++;else break;return"left"===r?n.slice(i):n.slice(0,n.length-i)}var tn=r(39267),ti=r(74250);let ta=new TextDecoder,ts=new TextEncoder;function to(e,t={}){let{size:r}=t,n=e;r&&(tn.Sl(e,r),n=e9.M7(e,r));let i=n.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,s=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=tt(i.charCodeAt(t++)),n=tt(i.charCodeAt(t++));if(void 0===r||void 0===n)throw new e3.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);s[e]=16*r+n}return s}function tl(e){return e.length}function tu(e,t={}){let{size:r}=t;void 0!==r&&e7(e,r);let n=e9.uK(e,t);return e9.Ro(n,t)}function tc(e){return tr(e,{dir:"left"})}class td extends e3.C{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}e3.C;class tf extends e3.C{constructor({givenSize:e,maxSize:t}
213){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class th extends e3.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}}class tp extends e3.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function tm(e,t={}){var r;let{as:n="string"==typeof e?"Hex":"Bytes"}=t,i=(0,e4.lY)(e instanceof Uint8Array?e:"string"==typeof e?to(e):(r=e)instanceof Uint8Array?r:new Uint8Array(r));return"Bytes"===n?i:e9.uK(i)}class ty extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let tb={checksum:new ty(8192)}.checksum,tg=/^0x[a-fA-F0-9]{40}$/;function tv(e,t={}){let{strict:r=!0}=t;if(!tg.test(e))throw new tE({address:e,cause:new tP});if(r){if(e.toLowerCase()===e)return;if(tw(e)!==e)throw new tE({address:e,cause:new tT})}}function tw(e){if(tb.has(e))return tb.get(e);tv(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=tm(function(e,t={}){let{size:r}=t,n=ts.encode(e);return"number"==typeof r?(e7(n,r),function(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new tp({size:e.length,targetSize:n,type:"Bytes"});let i=new Uint8Array(n);for(let t=0;t<n;t++){let a="right"===r;i[a?t:n-t-1]=e[a?t:e.length-t-1]}return i}(n,{dir:"right",size:r})):n}(t),{as:"Bytes"}),n=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&n[e]&&(n[e]=n[e].toUpperCase()),(15&r[e>>1])>=8&&n[e+1]&&(n[e+1]=n[e+1].toUpperCase());let i=`0x${n.join("")}`;return tb.set(e,i),i}function tx(e,t={}){let{strict:r=!0}=t??{};try{return tv(e,{strict:r}),!0}catch{return!1}}class tE extends e3.C{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class tP extends e3.C{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class tT extends e3.C{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function tC(e){let t=!0,r="",n=0,i="",a=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function","error",""].includes(i))i="";else if(i+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!a)throw new e3.C("Unable to normalize signature.");return i}function tA(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,e2.uT)(e);else{let r=(0,e6.e)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!(0,e5.WL)(n)){t=(0,e2.uT)(n,r);break}}}if(!t)throw new e1.xo({signature:e});return t}(e):e;return{...n,...r?{hash:t_(n)}:{}}}function tS(e){return e9.di(t_(e),0,4)}function t_(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:tm(e9.sH(tC("string"==typeof e?e:e8.B(e))))}class tO extends e3.C{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${tC(e8.B(e.abiItem))}\`, and`,`\`${t.type}\` in \`${tC(e8.B(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class tk extends e3.C{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}e3.C;var tI=r(71400),tM=r(66585);let tj=/^(.*)\[([0-9]*)\]$/,tR=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tB=/^(u?int)(8|
vendor: 7,220 bytes, line 213
21316|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)?$/,tN=2n**256n-1n;function tD(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=e9.Ej(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:s,encoded:o}=e[a];s?(r.push(e9.oB(t+i,{size:32})),n.push(o),i+=e9.Ej(o)):r.push(o)}return e9.xW(...r,...n)}function t$(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function tF(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(tF);let r=t$(e.type);return!!(r&&tF({...e,type:r[1]}))}let tL={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new tz({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new tU({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new tq({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new tq({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class tq extends e3.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class tU extends e3.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class tz extends e3.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function tV(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new tY({expectedLength:e.length,givenLength:t.length});let i=tD(function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let i=0;i<t.length;i++)n.push(function e({checksumAddress:t=!1,parameter:r,value:n}){let i=t$(r.type);if(i){let[a,s]=i;return function(t,r){let{checksumAddress:n,length:i,parameter:a}=r,s=null===i;if(!Array.isArray(t))throw new tX(t);if(!s&&t.length!==i)throw new tQ({expectedLength:i,givenLength:t.length,type:`${a.type}[${i}]`});let o=!1,l=[];for(let r=0;r<t.length;r++){let i=e({checksumAddress:n,parameter:a,value:t[r]});i.dynamic&&(o=!0),l.push(i)}if(s||o){let e=tD(l);if(s){let t=e9.oB(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?e9.xW(t,e):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:e9.xW(...l.map(({encoded:e})=>e))}}(n,{checksumAddress:t,length:a,parameter:{...r,type:s}})}if("tuple"===r.type)return function(t,r){let{checksumAddress:n,parameter:i}=r,a=!1,s=[];for(let r=0;r<i.components.length;r++){let o=i.components[r],l=Array.isArray(t)?r:o.name,u=e({checksumAddress:n,parameter:o,value:t[l]});s.push(u),u.dynamic&&(a=!0)}return{dynamic:a,encoded:a?tD(s):e9.xW(...s.map(({encoded:e})=>e))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type){var a=n,s={checksum:t};let{checksum:e=!1}=s;return tv(a,{strict:e}),{dynamic:!1,encoded:e9.Ho(a.toLowerCase())}}if("bool"===r.type){var o=n;if("boolean"!=typeof o)throw new e3.C(`Invalid boolean value: "${o}" (type: ${typeof o}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:e9.Ho(e9.xb(o))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=tB.exec(r.type)??[];return function(e,{signed:t,size:r}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new e9.Ty({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:e9.oB(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{type:t}){let[,r]=t.split("bytes"),n=e9.Ej(e);if(!r){let t=e;return n%32!=0&&(t=e9.M7(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:e9.xW(e9.Ho(e9.oB(n,{size:32})),t)}}if(n!==Number.parseInt(r,10))throw new tZ({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:e9.M7(e)}}(n,{type:r.type});if("string"===r.type){var l=n;let e=e9.sH(l),t=Math.ceil(e9.Ej(e)/32),r=[];for(let n=0;n<t;n++)r.push(e9.M7(e9.di(e,32*n,(n+1)*32)));return{dynamic:!0,encoded:e9.xW(e9.M7(e9.oB(e9.Ej(e),{size:32})),...r)}}throw new tJ(r.type)}({checksumAddress:e,parameter:t[i],value:r[i]}));return n}({checksumAddress:n,parameters:e,values:t}));return 0===i.length?"0x":i}function tG(e,t){if(e.length!==t.length)throw new tY({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n];
213r.push(tG.encode(i,a))}return e9.xW(...r)}function tH(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let r=(0,e2.NV)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,e2.Pj)(r[e],{modifiers:e5.Dv}))}else{let r=(0,e6.e)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if((0,e5.WL)(n))continue;let a=(0,e2.NV)(n),s=a.length;for(let e=0;e<s;e++)t.push((0,e2.Pj)(a[e],{modifiers:e5.Dv,structs:r}))}}if(0===t.length)throw new tI.A9({params:e});return t}(e):e}(tG||(tG={})).encode=function e(t,r,n=!1){if("address"===t)return tv(r),e9.Ho(r.toLowerCase(),32*!!n);if("string"===t)return e9.sH(r);if("bytes"===t)return r;if("bool"===t)return e9.Ho(e9.xb(r),n?32:1);let i=t.match(tB);if(i){let[e,t,a="256"]=i,s=Number.parseInt(a,10)/8;return e9.oB(r,{size:n?32:s,signed:"int"===t})}let a=t.match(tR);if(a){let[e,t]=a;if(Number.parseInt(t,10)!==(r.length-2)/2)throw new tZ({expectedSize:Number.parseInt(t,10),value:r});return e9.M7(r,32*!!n)}let s=t.match(tj);if(s&&Array.isArray(r)){let[t,n]=s,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":e9.xW(...i)}throw new tJ(t)};class tK extends e3.C{constructor({data:e,parameters:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tM.Q(t)})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class tW extends e3.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class tQ extends e3.C{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class tZ extends e3.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${e9.Ej(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tY extends e3.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
214Expected length (parameters): ${e}
215Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tX extends e3.C{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tJ extends e3.C{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function t0(e,t={}){return tA(e,t)}var t1=r(50583),t5=r(15488);async function t6(e,t){let{blockNumber:r,blockTag:n,calls:i,stateOverrides:s,traceAssetChanges:o,traceTransfers:l,validation:c}=t,d=t.account?(0,H.J)(t.account):void 0;if(o&&!d)throw new u.C("`account` is required when `traceAssetChanges` is true");let f=d?function(e,t){let{bytecode:r,args:n}=t;return e9.xW(r,e.inputs?.length&&n?.length?tV(e.inputs,n):"0x")}(tA("constructor(bytes, bytes)"),{bytecode:t5.LX,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(e,...t){let{overloads:r}=e,n=r?function(e,t,r){let n=function(e,t,r){let n,{args:i=[],prepare:a=!0}=r??{},s=e9.tf(t,{strict:!1}),o=e.filter(e=>s?"function"===e.type||"error"===e.type?tS(e)===e9.di(t,0,4):"event"===e.type&&t_(e)===t:"name"in e&&e.name===t);if(0===o.length)throw new tk({name:t});if(1===o.length)return{...o[0],...a?{hash:t_(o[0])}:{}};for(let e of o){if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...a?{hash:t_(e)}:{}};continue}
vendor: 14,080 bytes, line 215
215if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return tx(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=function e(t,r,n){for(let i in t){let a=t[i],s=r[i];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return e(a.components,s.components,n[i]);let o=[a.type,s.type];if(o.includes("address")&&o.includes("bytes20")||(o.includes("address")&&o.includes("string")||o.includes("address")&&o.includes("bytes"))&&tx(n[i],{strict:!1}))return o}}(e.inputs,n.inputs,i);if(t)throw new tO({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}}let l=(()=>{if(n)return n;let[e,...t]=o;return{...e,overloads:t}})();if(!l)throw new tk({name:t});return{...l,...a?{hash:t_(l)}:{}}}(e,t,r);if("function"!==n.type)throw new tk({name:t,type:"function"});return n}([e,...r],e.name,{args:t[0]}):e,i=tS(n),a=t.length>0?tV(n.inputs,t[0]):void 0;return a?e9.xW(i,a):i}(t0("function getBalance(address)"),[d.address])]}):void 0,h=o?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:r}=await Y(e,{account:d.address,...t,data:t.abi?(0,a.p)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],p=await e0(e,{blockNumber:r,blockTag:n,blocks:[...o?[{calls:[{data:f}],stateOverrides:s},{calls:h.map((e,t)=>({abi:[t0("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[d.address],to:e,from:t1.Xd,nonce:t})),stateOverrides:[{address:t1.Xd,nonce:0}]}]:[],{calls:[...i,{}].map(e=>({...e,from:d?.address})),stateOverrides:s},...o?[{calls:[{data:f}]},{calls:h.map((e,t)=>({abi:[t0("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[d.address],to:e,from:t1.Xd,nonce:t})),stateOverrides:[{address:t1.Xd,nonce:0}]},{calls:h.map((e,t)=>({to:e,abi:[t0("function decimals() returns (uint256)")],functionName:"decimals",from:t1.Xd,nonce:t})),stateOverrides:[{address:t1.Xd,nonce:0}]},{calls:h.map((e,t)=>({to:e,abi:[t0("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t1.Xd,nonce:t})),stateOverrides:[{address:t1.Xd,nonce:0}]},{calls:h.map((e,t)=>({to:e,abi:[t0("function symbol() returns (string)")],functionName:"symbol",from:t1.Xd,nonce:t})),stateOverrides:[{address:t1.Xd,nonce:0}]}]:[]],traceTransfers:l,validation:c}),m=o?p[2]:p[0],[y,b,,g,v,w,E,P]=o?p:[],{calls:T,...C}=m,A=T.slice(0,-1)??[],S=[...y?.calls??[],...b?.calls??[]].map(e=>"success"===e.status?(0,ex.uU)(e.data):null),_=[...g?.calls??[],...v?.calls??[]].map(e=>"success"===e.status?(0,ex.uU)(e.data):null),O=(w?.calls??[]).map(e=>"success"===e.status?e.result:null),k=(P?.calls??[]).map(e=>"success"===e.status?e.result:null),I=(E?.calls??[]).map(e=>"success"===e.status?e.result:null),M=[];for(let[e,t]of _.entries()){let r=S[e];if("bigint"!=typeof t||"bigint"!=typeof r)continue;let n=O[e-1],i=k[e-1],a=I[e-1],s=0===e?{address:t1.m8,decimals:18,symbol:"ETH"}:{address:h[e-1],decimals:a||n?Number(n??1):void 0,symbol:i??void 0};M.some(e=>e.token.address===s.address)||M.push({token:s,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:M,block:C,results:A}}async function t2(e,t){let{abi:r,address:n,args:s,dataSuffix:o,functionName:l,...u}=t,c=u.account?(0,H.J)(u.account):e.account,d=(0,a.p)({abi:r,args:s,functionName:l});try{let{data:a}=await (0,w.T)(e,G.T,"call")({batch:!1,data:`${d}${o?o.replace("0x",""):""}`,to:n,...u,account:c}),f=(0,i.e)({abi:r,args:s,functionName:l,data:a||"0x"}),h=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:f,request:{abi:h,address:n,args:s,dataSuffix:o,functionName:l,...u,account:c}}}catch(e){throw(0,ef.j)(e,{abi:r,address:n,args:s,docsPath:"/docs/contract/simulateContract",functionName:l,sender:c?.address})}}async function t8(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}let t3="0x6492649264926492649264926492649264926492649264926492649264926492";class t4 extends e3.C{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function t9(e,t={}){let{recovered:r}=t;if(void 0===e.r||void 0===e.s||r&&void 0===e.yParity)throw new rr({signature:e});if(e.r<0n||e.r>tN)throw new rn({value:e.r});if(e.s<0n||e.s>tN)throw new ri({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new ra({value:e.yParity})}function t7(e){if(130!==e.length&&132!==e.length)throw new rt({signature:e});let t=BigInt(e9.di(e,0,32)),r=BigInt(e9.di(e,32,64)),n=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return re(t)}catch{throw new ra({value:t})}})();return void 0===n?{r:t,s:r}:{r:t,s:r,yParity:n}}function re(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return+(e%2==0);throw new rs({value:e})}class rt extends e3.C{constructor({signature:e}){super(`Value \`${e}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${e9.Ej(e9.HT(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class rr extends e3.C{constructor({signature:e}){super(`Signature \`${ti.A(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class rn extends e3.C{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class ri extends e3.C{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class ra extends e3.C{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class rs extends e3.C{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}let ro=tH("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function rl(e){if("string"==typeof e){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==e9.di(e,-32))throw new ru(e)}else t9(e.authorization)}class ru extends e3.C{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}var rc=r(13003),rd=r(32544),rf=r(69595);async function rh({address:e,authorization:t,signature:r}){return(0,eC.h)((0,rd.b)(e),await (0,rf.g)({authorization:t,signature:r}))}var rp=r(95164),rm=r(13895);async function ry(e,t){let{address:r,hash:n,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:a=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,s=(()=>{let e=t.signature;return(0,y.q)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?function({r:e,s:t,to:r="hex",v:n,yParity:i}){let a=(()=>{if(0===i||1===i)return i;if(n&&(27n===n||28n===n||n>=35n))return+(n%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),s=`0x${new rm.secp256k1.Signature((0,ex.uU)(e),(0,ex.uU)(t)).toCompactHex()}${0===a?"1b":"1c"}`;return"hex"===r?s:(0,p.aT)(s)}(e):(0,l.My)(e)})();try{if(function(e){try{return rl(e),!0}catch{return!1}}(s))return await rb(e,{...t,multicallAddress:a,signature:s});return await rg(e,{...t,verifierAddress:i,signature:s})}catch(e){try{if((0,eC.h)((0,rd.b)(r),await (0,rp.x)({hash:n,signature:s})))return!0}catch{}if(e instanceof rw)return!1;throw e}}async function rb(e,t){let{address:r,blockNumber:i,blockTag:s,hash:o,multicallAddress:u}=t,{authorization:c,data:d,signature:f,to:p}=function(e){rl(e);let t=e9.Ro(e9.di(e,-64,-32)),r=e9.di(e,-t-64,-64),n=e9.di(e,0,-t-64),[i,a,s]=function(e,t,r={}){let{as:n="Array",checksumAddress:i=!1}=r,a="string"==typeof t?to(t):t,s=function(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(tL);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}(a);if(0===tl(a)&&e.length>0)throw new tW;if(tl(a)&&32>tl(a))throw new tK({data:"string"==typeof t?t:e9.uK(t),parameters:e,size:tl(a)});let o=0,l="Array"===n?[]:{};for(let t=0;t<e.length;++t){let r=e[t];s.setPosition(o);let[a,u]=function e(t,r,n){let{checksumAddress:i,staticPosition:a}=n,s=t$(r.type);if(s){let[n,o]=s;return function(t,r,n){let{checksumAddress:i,length:a,staticPosition:s}=n;if(!a){let n=s+tu(t.readBytes(32)),a=n+32;t.setPosition(n);let o=tu(t.readBytes(32)),l=tF(r),u=0,c=[];for(let n=0;n<o;++n){t.setPosition(a+(l?32*n:u));let[s,o]=e(t,r,{checksumAddress:i,staticPosition:a});u+=o,c.push(s)}return t.setPosition(s+32),[c,32]}if(tF(r)){let n=s+tu(t.readBytes(32)),o=[];for(let s=0;s<a;++s){t.setPosition(n+32*s);let[a]=e(t,r,{checksumAddress:i,staticPosition:n});o.push(a)}return t.setPosition(s+32),[o,32]}let o=0,l=[];for(let n=0;n<a;++n){let[n,a]=e(t,r,{checksumAddress:i,staticPosition:s+o});o+=a,l.push(n)}return[l,o]}(t,{...r,type:o},{checksumAddress:i,length:n,staticPosition:a})}if("tuple"===r.type)return function(t,r,n){let{checksumAddress:i,staticPosition:a}=n,s=0===r.components.length||r.components.some(({name:e})=>!e),o=s?[]:{},l=0;if(tF(r)){let n=a+tu(t.readBytes(32));for(let a=0;a<r.components.length;++a){let u=r.components[a];t.setPosition(n+l);let[c,d]=e(t,u,{checksumAddress:i,staticPosition:n});l+=d,o[s?a:u?.name]=c}return t.setPosition(a+32),[o,32]}for(let n=0;n<r.components.length;++n){let u=r.components[n],[c,d]=e(t,u,{checksumAddress:i,staticPosition:a});o[s?n:u?.name]=c,l+=d}return[o,l]}(t,r,{checksumAddress:i,staticPosition:a});if("address"===r.type)return function(e,t={}){let r,{checksum:n=!1}=t,i=e.readBytes(32);return[(r=e9.uK(function(e,t,r,n={}){let{strict:i}=n;!1;let a=e.slice(-20,void 0);return i&&function(e,t,r){if("number"==typeof t&&"number"==typeof r&&tl(e)!==r-t)throw new th({offset:r,position:"end",size:tl(e)})}(a,-20,void 0),a}(i,-20)),n?tw(r):r),32]}(t,{checksum:i});if("bool"===r.type)return[function(e,t={}){let{size:r}=t,n=e;if(void 0!==r&&(e7(n,r),n=tc(n)),n.length>1||n[0]>1)throw new td(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=tu(e.readBytes(32));e.setPosition(r+t);let n=tu(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[e9.uK(i),32]}return[e9.uK(e.readBytes(Number.parseInt(i,10),32)),32]}(t,r,{staticPosition:a});if(r.type.startsWith("uint")||r.type.startsWith("int")){var o=t,l=r;let e=l.type.startsWith("int"),n=Number.parseInt(l.type.split("int")[1]||"256",10),i=o.readBytes(32);return[n>48?function(e,t={}){let{size:r}=t;void 0!==r&&e7(e,r);let n=e9.uK(e,t);return e9.Dg(n,t)}(i,{signed:e}):tu(i,{signed:e}),32]}if("string"===r.type)return function(e,{staticPosition:t}){let r=tu(e.readBytes(32));e.setPosition(t+r);let n=tu(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=function(e,t={}){let{size:r}=t,n=e;return void 0!==r&&(e7(n,r),n=tr(n,{dir:"right"})),ta.decode(n)}(tc(e.readBytes(n,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:a});throw new tJ(r.type)}(s,r,{checksumAddress:i,staticPosition:0});o+=u,"Array"===n?l.push(a):l[r.name??t]=a}return l}(ro,r);return{authorization:function(e,t={}){return"string"==typeof e.chainId?function(e){let{address:t,chainId:r,nonce:n}=e,i=function(e){if(void 0!==e.r&&void 0!==e.s){var t=e;let r=(()=>{var e;if("string"==typeof t)return t7(t);if(t instanceof Uint8Array)return t7(e9.uK(t));return"string"==typeof t.r?function(e){let t=(()=>{let t=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof r&&(r=re(t)),"number"!=typeof r)throw new ra({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}(t):t.v?{r:(e=t).r,s:e.s,yParity:re(e.v)}:{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}}})();return t9(r),r}}(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...i}}(e):{...e,...t.signature}}({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:n,...s&&"0x"!==s?{data:s,to:a}:{}}}(t.signature);if(await (0,eT.Q)(e,{address:r,blockNumber:i,blockTag:s})===(0,h.aP)(["0xef0100",c.address]))return await rv(e,{address:r,blockNumber:i,blockTag:s,hash:o,signature:f});let m={address:c.address,chainId:Number(c.chainId),nonce:Number(c.nonce),r:(0,l.cK)(c.r,{size:32}),s:(0,l.cK)(c.s,{size:32}),yParity:c.yParity};if(!await rh({address:r,authorization:m}))throw new rw;let y=await (0,w.T)(e,E.J,"readContract")({...u?{address:u}:{code:t5.Ez},authorizationList:[m],abi:n.v2,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:p??r,callData:d}
215]:[],{allowFailure:!0,target:r,callData:(0,a.p)({abi:n.UW,functionName:"isValidSignature",args:[o,f]})}]]}),b=y[y.length-1]?.returnData;if(b?.startsWith("0x1626ba7e"))return!0;throw new rw}async function rg(e,t){let{address:r,factory:i,factoryData:s,hash:o,signature:l,verifierAddress:u,...d}=t,f=await (async()=>{if(!i&&!s||function(e){try{if(e9.di(e,-32)!==t3)throw new t4(e);return!0}catch{return!1}}(l))return l;let{data:e,signature:t,to:r}={data:s,signature:l,to:i};return e9.xW(tV(tH("address, bytes, bytes"),[r,e,t]),t3)})(),h=u?{to:u,data:(0,a.p)({abi:n.E5,functionName:"isValidSig",args:[r,o,f]}),...d}:{data:(0,rc.m)({abi:n.E5,args:[r,o,f],bytecode:t5.fT}),...d},{data:p}=await (0,w.T)(e,G.T,"call")(h).catch(e=>{if(e instanceof c.zX)throw new rw;throw e});if((0,ex.Nx)(p??"0x0"))return!0;throw new rw}async function rv(e,t){let{address:r,blockNumber:i,blockTag:a,hash:s,signature:o}=t;if((await (0,w.T)(e,E.J,"readContract")({address:r,abi:n.UW,args:[s,o],blockNumber:i,blockTag:a,functionName:"isValidSignature"}).catch(e=>{if(e instanceof c.bG)throw new rw;throw e})).startsWith("0x1626ba7e"))return!0;throw new rw}class rw extends Error{}var rx=r(1379);async function rE(e,{address:t,message:r,factory:n,factoryData:i,signature:a,...s}){return ry(e,{address:t,factory:n,factoryData:i,hash:(0,rx.A)(r),signature:a,...s})}var rP=r(30734);async function rT(e,t){let{address:r,factory:n,factoryData:i,signature:a,message:s,primaryType:o,types:l,domain:u,...c}=t;return ry(e,{address:r,factory:n,factoryData:i,hash:(0,rP.Zh)({message:s,primaryType:o,types:l,domain:u}),signature:a,...c})}var rC=r(34597),rA=r(84194),rS=r(71503),r_=r(92108),rO=r(40474),rk=r(18912);let rI=/^(?:(?<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)?/,rM=/(?: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 rj=r(57512);async function rR(e,t){let{address:r,domain:n,message:i,nonce:a,scheme:s,signature:o,time:l=new Date,...u}=t,c=function(e){let{scheme:t,statement:r,...n}=e.match(rI)?.groups??{},{chainId:i,expirationTime:a,issuedAt:s,notBefore:o,requestId:l,...u}=e.match(rM)?.groups??{},c=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...n,...u,...i?{chainId:Number(i)}:{},...a?{expirationTime:new Date(a)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...l?{requestId:l}:{},...c?{resources:c}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!c.address||!function(e){let{address:t,domain:r,message:n,nonce:i,scheme:a,time:s=new Date}=e;if(r&&n.domain!==r||i&&n.nonce!==i||a&&n.scheme!==a||n.expirationTime&&s>=n.expirationTime||n.notBefore&&s<n.notBefore)return!1;try{if(!n.address||!(0,rj.P)(n.address,{strict:!1})||t&&!(0,eC.h)(n.address,t))return!1}catch{return!1}return!0}({address:r,domain:n,message:c,nonce:a,scheme:s,time:l}))return!1;let d=(0,rx.A)(i);return ry(e,{address:c.address,hash:d,signature:o,...u})}var rB=r(5375),rN=r(5579);function rD(e){return{call:t=>(0,G.T)(e,t),createAccessList:t=>Y(e,t),createBlockFilter:()=>J(e),createContractEventFilter:t=>eu(e,t),createEventFilter:t=>ec(e,t),createPendingTransactionFilter:()=>ed(e),estimateContractGas:t=>ep(e,t),estimateGas:t=>(0,eh.Q)(e,t),getBalance:t=>(0,eb.r)(e,t),getBlobBaseFee:()=>eg(e),getBlock:t=>(0,ev.g)(e,t),getBlockNumber:t=>(0,ew.G)(e,t),getBlockTransactionCount:t=>eE(e,t),getBytecode:t=>(0,eT.Q)(e,t),getChainId:()=>(0,eP.T)(e),getCode:t=>(0,eT.Q)(e,t),getContractEvents:t=>eR(e,t),getEip712Domain:t=>eN(e,t),getEnsAddress:t=>P(e,t),getEnsAvatar:t=>U(e,t),getEnsName:t=>z(e,t),getEnsResolver:t=>V(e,t),getEnsText:t=>q(e,t),getFeeHistory:t=>e$(e,t),estimateFeesPerGas:t=>(0,em._)(e,t),getFilterChanges:t=>eF(e,t),getFilterLogs:t=>eL(e,t),getGasPrice:()=>(0,eq.L)(e),getLogs:t=>ej(e,t),getProof:t=>eU(e,t),estimateMaxPriorityFeePerGas:t=>(0,ey.b)(e,t),getStorageAt:t=>ez(e,t),getTransaction:t=>(0,eV.x)(e,t),getTransactionConfirmations:t=>eG(e,t),getTransactionCount:t=>(0,eH.y)(e,t),getTransactionReceipt:t=>(0,eK.h)(e,t),multicall:t=>(0,eW.C)(e,t),prepareTransactionRequest:t=>(0,rB.ft)(e,t),readContract:t=>(0,E.J)(e,t),sendRawTransaction:t=>(0,rN.L)(e,t),simulate:t=>e0(e,t),simulateBlocks:t=>e0(e,t),simulateCalls:t=>t6(e,t),simulateContract:t=>t2(e,t),verifyHash:t=>ry(e,t),verifyMessage:t=>rE(e,t),verifySiweMessage:t=>rR(e,t),verifyTypedData:t=>rT(e,t),uninstallFilter:t=>t8(e,t),waitForTransactionReceipt:t=>(0,rC.n)(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:a,includeTransactions:s,poll:o,pollingInterval:l=e.pollingInterval}){let u,c,d,f,h=void 0!==o?o:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
215onfig.type&&"ipc"!==e.transport.transports[0].config.type),p=s??!1;return h?(()=>{let s=(0,rO.A)(["watchBlocks",e.uid,t,r,n,p,l]);return(0,rS.lB)(s,{onBlock:i,onError:a},i=>(0,r_.w)(async()=>{try{let n=await (0,w.T)(e,ev.g,"getBlock")({blockTag:t,includeTransactions:p});if(null!==n.number&&u?.number!=null){if(n.number===u.number)return;if(n.number-u.number>1&&r)for(let t=u?.number+1n;t<n.number;t++){let r=await (0,w.T)(e,ev.g,"getBlock")({blockNumber:t,includeTransactions:p});i.onBlock(r,u),u=r}}(u?.number==null||"pending"===t&&n?.number==null||null!==n.number&&n.number>u.number)&&(i.onBlock(n,u),u=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:l}))})():(c=!0,d=!0,f=()=>c=!1,(async()=>{try{n&&(0,w.T)(e,ev.g,"getBlock")({blockTag:t,includeTransactions:p}).then(e=>{c&&d&&(i(e,void 0),d=!1)}).catch(a);let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await r.subscribe({params:["newHeads"],async onData(t){if(!c)return;let r=await (0,w.T)(e,ev.g,"getBlock")({blockNumber:t.result?.number,includeTransactions:p}).catch(()=>{});c&&(i(r,u),d=!1,u=r)},onError(e){a?.(e)}});f=s,c||f()}catch(e){a?.(e)}})(),()=>f())})(e,t),watchBlockNumber:t=>(0,rA.q)(e,t),watchContractEvent:t=>(function(e,t){let{abi:r,address:n,args:i,batch:a=!0,eventName:s,fromBlock:o,onError:l,onLogs:u,poll:c,pollingInterval:d=e.pollingInterval,strict:f}=t;return(void 0!==c?c:"bigint"==typeof o||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
215onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=f??!1,c=(0,rO.A)(["watchContractEvent",n,i,a,e.uid,s,d,t,o]);return(0,rS.lB)(c,{onLogs:u,onError:l},l=>{let u,c;void 0!==o&&(u=o-1n);let f=!1,h=(0,r_.w)(async()=>{if(!f){try{c=await (0,w.T)(e,eu,"createContractEventFilter")({abi:r,address:n,args:i,eventName:s,strict:t,fromBlock:o})}catch{}f=!0;return}try{let o;if(c)o=await (0,w.T)(e,eF,"getFilterChanges")({filter:c});else{let a=await (0,w.T)(e,ew.G,"getBlockNumber")({});o=u&&u<a?await (0,w.T)(e,eR,"getContractEvents")({abi:r,address:n,args:i,eventName:s,fromBlock:u+1n,toBlock:a,strict:t}):[],u=a}if(0===o.length)return;if(a)l.onLogs(o);else for(let e of o)l.onLogs([e])}catch(e){c&&e instanceof rk.Di&&(f=!1),l.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{c&&await (0,w.T)(e,t8,"uninstallFilter")({filter:c}),h()}})})():(()=>{let t=(0,rO.A)(["watchContractEvent",n,i,a,e.uid,s,d,f??!1]),o=!0,c=()=>o=!1;return(0,rS.lB)(t,{onLogs:u,onError:l},t=>((async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=s?eo({abi:r,eventName:s,args:i}):[],{unsubscribe:u}=await a.subscribe({params:["logs",{address:n,topics:l}],onData(e){if(!o)return;let n=e.result;try{let{eventName:e,args:i}=ek({abi:r,data:n.data,topics:n.topics,strict:f}),a=(0,eM.e)(n,{args:i,eventName:e});t.onLogs([a])}catch(a){let e,r;if(a instanceof ee.fo||a instanceof ee.l3){if(f)return;e=a.abiItem.name,r=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,eM.e)(n,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});c=u,o||c()}catch(e){l?.(e)}})(),()=>c()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:a,fromBlock:s,onError:o,onLogs:l,poll:u,pollingInterval:c=e.pollingInterval,strict:d}){let f,h,p=void 0!==u?u:"bigint"==typeof s||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
215onfig.type&&"ipc"!==e.transport.transports[0].config.type),m=d??!1;return p?(()=>{let u=(0,rO.A)(["watchEvent",t,r,n,e.uid,i,c,s]);return(0,rS.lB)(u,{onLogs:l,onError:o},o=>{let l,u;void 0!==s&&(l=s-1n);let d=!1,f=(0,r_.w)(async()=>{if(!d){try{u=await (0,w.T)(e,ec,"createEventFilter")({address:t,args:r,event:i,events:a,strict:m,fromBlock:s})}catch{}d=!0;return}try{let s;if(u)s=await (0,w.T)(e,eF,"getFilterChanges")({filter:u});else{let n=await (0,w.T)(e,ew.G,"getBlockNumber")({});s=l&&l!==n?await (0,w.T)(e,ej,"getLogs")({address:t,args:r,event:i,events:a,fromBlock:l+1n,toBlock:n}):[],l=n}if(0===s.length)return;if(n)o.onLogs(s);else for(let e of s)o.onLogs([e])}catch(e){u&&e instanceof rk.Di&&(d=!1),o.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await (0,w.T)(e,t8,"uninstallFilter")({filter:u}),f()}})})():(f=!0,h=()=>f=!1,(async()=>{try{let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),s=a??(i?[i]:void 0),u=[];s&&(u=[s.flatMap(e=>eo({abi:[e],eventName:e.name,args:r}))],i&&(u=u[0]));let{unsubscribe:c}=await n.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:r}=ek({abi:s??[],data:t.data,topics:t.topics,strict:m}),n=(0,eM.e)(t,{args:r,eventName:e});l([n])}catch(i){let e,r;if(i instanceof ee.fo||i instanceof ee.l3){if(d)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,eM.e)(t,{args:r?[]:{},eventName:e});l([n])}},onError(e){o?.(e)}});h=c,f||h()}catch(e){o?.(e)}})(),()=>h())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:a=e.pollingInterval}){let s,o;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let i=(0,rO.A)(["watchPendingTransactions",e.uid,t,a]);return(0,rS.lB)(i,{onTransactions:n,onError:r},r=>{let n,i=(0,r_.w)(async()=>{try{if(!n)try{n=await (0,w.T)(e,ed,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let a=await (0,w.T)(e,eF,"getFilterChanges")({filter:n});if(0===a.length)return;if(t)r.onTransactions(a);else for(let e of a)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:a});return async()=>{n&&await (0,w.T)(e,t8,"uninstallFilter")({filter:n}),i()}})})():(s=!0,o=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;n([t])},onError(e){r?.(e)}});o=t,s||o()}catch(e){r?.(e)}})(),()=>o())})(e,t)}}},98877:(e,t,r)=>{"use strict";r.d(t,{A7:()=>a,BG:()=>s,Fo:()=>h,K0:()=>l,Oh:()=>u,RM:()=>y,jj:()=>o,k5:()=>d,lN:()=>m,lY:()=>f,uC:()=>p,vW:()=>c});var n=r(5639),i=r(76200);class a extends i.C{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class o extends i.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.Q)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
216Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends i.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.Q)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class y extends i.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(56556),t(16296))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.