@dcl/explore-site 0.0.1-24139497769.commit-1069c81 → 0.0.1-24159460470.commit-aefa845
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/ContentCopy-CCbXcoVq.js +15 -0
- package/assets/HomePage-5SGvbFJ_.js +3 -0
- package/assets/{QueryClientProvider-wu2IqrXs.js → QueryClientProvider-CBbzypZl.js} +1 -1
- package/assets/{__federation_expose_App-MOR1BmrN.js → __federation_expose_App-bGJWUhOU.js} +1 -1
- package/assets/{__federation_fn_import-DHP1HS9A.js → __federation_fn_import-CMxiPYok.js} +1 -1
- package/assets/__federation_shared_@dcl/{hooks-B6YLUjAN.js → hooks-CdmO_mj8.js} +45 -45
- package/assets/__federation_shared_@emotion/react-Ch4_ck50.js +1 -0
- package/assets/__federation_shared_@emotion/{styled-DJxepagK.js → styled-BXKWB2SL.js} +1 -1
- package/assets/__federation_shared_decentraland-ui2-CPPGLZ16.js +357 -0
- package/assets/{__federation_shared_react-redux-wunxthN_.js → __federation_shared_react-redux-CbbKlRz2.js} +1 -1
- package/assets/{__federation_shared_react-router-dom-W4djHvIn.js → __federation_shared_react-router-dom-BWsWSQhC.js} +1 -1
- package/assets/{__federation_shared_viem-DarmY_kb.js → __federation_shared_viem-DGF3gkeC.js} +1 -1
- package/assets/{__federation_shared_wagmi-DWvj6H_x.js → __federation_shared_wagmi-DEqeYx75.js} +1 -1
- package/assets/{add-BCakEKbt.js → add-BHrQDYt0.js} +1 -1
- package/assets/{all-wallets-CXkjwEqF.js → all-wallets-CTQfCXpj.js} +1 -1
- package/assets/{app-store-BFVxlsNN.js → app-store-CeiatYdn.js} +1 -1
- package/assets/{apple-DXjZC7E3.js → apple-q7tA6oqd.js} +1 -1
- package/assets/{arrow-bottom-pJS57nib.js → arrow-bottom-be6eO3Xj.js} +1 -1
- package/assets/{arrow-bottom-circle-DFJJmWcQ.js → arrow-bottom-circle-CdPGZLbW.js} +1 -1
- package/assets/{arrow-left-Cynzu9ZW.js → arrow-left-CktNwcGI.js} +1 -1
- package/assets/{arrow-right-CGX20nmV.js → arrow-right-VV-JParR.js} +1 -1
- package/assets/{arrow-top-jzt266yO.js → arrow-top-De_B4g3W.js} +1 -1
- package/assets/{auto-track-O_BrBwhe.js → auto-track-D0BwFABd.js} +1 -1
- package/assets/{bank-BMGgPrPK.js → bank-UExb7UJf.js} +1 -1
- package/assets/{basic-CM6UVWAr.js → basic-DE5WyqhO.js} +1 -1
- package/assets/{browser-DnoUbi8M.js → browser-DhoNLvlu.js} +1 -1
- package/assets/{card-CPfzdBrQ.js → card-BBiqQiLZ.js} +1 -1
- package/assets/{ccip-BIrr4QNJ.js → ccip-BIGr70jN.js} +1 -1
- package/assets/{checkmark-8BBVS9mV.js → checkmark-DJRHE00c.js} +1 -1
- package/assets/{checkmark-bold-B-hOv8nD.js → checkmark-bold-DW7PwhXr.js} +1 -1
- package/assets/{chevron-bottom-B_y3oaup.js → chevron-bottom-SQc7AwSp.js} +1 -1
- package/assets/{chevron-left-CjhHB4PY.js → chevron-left-Wd0UZlyo.js} +1 -1
- package/assets/{chevron-right-DSPiRdQp.js → chevron-right-usjeuqiy.js} +1 -1
- package/assets/{chevron-top-DzuxMZzU.js → chevron-top-BEVyPr9s.js} +1 -1
- package/assets/{chrome-store-BxqIkfMp.js → chrome-store-BMA6pwWF.js} +1 -1
- package/assets/{clock-DANY2jZR.js → clock-BmTY-nJJ.js} +1 -1
- package/assets/{close-CQGRZC4E.js → close-DAT3aNpD.js} +1 -1
- package/assets/{coinPlaceholder-Bj_cgZAp.js → coinPlaceholder-DuiBsJeH.js} +1 -1
- package/assets/{compass-C6LtdRSt.js → compass-C1fGeHAW.js} +1 -1
- package/assets/{copy-DcH6gZ_z.js → copy-DIAReipU.js} +1 -1
- package/assets/{core-CzvI5AHq.js → core-BfuuBAJ-.js} +3 -3
- package/assets/{createClient-CCWiffBP.js → createClient-C_YnitLA.js} +1 -1
- package/assets/{cursor-UwkCsJ2a.js → cursor-Ch-cAoUO.js} +1 -1
- package/assets/{cursor-transparent-BwBcOE8i.js → cursor-transparent-BtLqFPhH.js} +1 -1
- package/assets/{desktop-D-Y36QoS.js → desktop-B21852f4.js} +1 -1
- package/assets/{disconnect-Rv8z66NN.js → disconnect-DexKmUm_.js} +1 -1
- package/assets/{discord-CCWSVMiz.js → discord-BV6Hl0yo.js} +1 -1
- package/assets/{emotion-react.browser.esm-CVN2FXZ4.js → emotion-react.browser.esm-C-ukP9vl.js} +1 -1
- package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-CmaUBdeL.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-CIOzroua.js} +1 -1
- package/assets/{etherscan-DbjOsyUL.js → etherscan-DIdopb40.js} +1 -1
- package/assets/{exclamation-triangle-CpUr7g91.js → exclamation-triangle-BP8v8yAm.js} +1 -1
- package/assets/{extension-BfEjbpkB.js → extension-ByM6PcC_.js} +1 -1
- package/assets/{external-link-DkrVV6h_.js → external-link-C5EV4UrO.js} +1 -1
- package/assets/{facebook-C_vFokNe.js → facebook-koYCCW4I.js} +1 -1
- package/assets/{farcaster-N_SOvjsu.js → farcaster-C--nTUFC.js} +1 -1
- package/assets/{filters-CriWZ1X8.js → filters-B0Met1Cy.js} +1 -1
- package/assets/{github-Pf6KfVkt.js → github-BJto2yFh.js} +1 -1
- package/assets/{google-CX5egUeg.js → google-DOg4VpsW.js} +1 -1
- package/assets/{help-circle-Bg9wySiB.js → help-circle-CPcIzPL_.js} +1 -1
- package/assets/{id-CT3sHstQ.js → id-Bt_f7-IN.js} +1 -1
- package/assets/{image-BeRTCwCL.js → image-BKPkCS2A.js} +1 -1
- package/assets/{index-BwGE7VFa.js → index-7epi9X3q.js} +1 -1
- package/assets/{index-DOSLaa4d.js → index-BG8WdtUU.js} +1 -1
- package/assets/{index-DSdP4T4T.js → index-BYnuHFly.js} +1 -1
- package/assets/{index-BJlYfD1T.js → index-BtEkoqVr.js} +1 -1
- package/assets/{index-kumR_dwu.js → index-CREOXgjH.js} +3 -3
- package/assets/{index-NxahoDGS.js → index-Cqmc6sGh.js} +2 -2
- package/assets/{index-CEXIX8YP.js → index-DgYYajnS.js} +1 -1
- package/assets/index-Dy0yjznp.js +1 -1
- package/assets/{index-C5uwZBLu.js → index-RTtiQJvl.js} +1 -1
- package/assets/index-VfkM29PH.js +1 -1
- package/assets/{index.es-3vuqm7DP.js → index.es-CjtFd6oK.js} +3 -3
- package/assets/{info-CqJ_nQxF.js → info-D0_AqyJh.js} +1 -1
- package/assets/{info-circle-IwWDU6qu.js → info-circle-CXPYqN6N.js} +1 -1
- package/assets/jsx-runtime-B1l0k91v.js +1 -1
- package/assets/{lightbulb-DTyI7zwy.js → lightbulb-BQ_Y1zpy.js} +1 -1
- package/assets/{localBatchGatewayRequest-CVa1PSOH.js → localBatchGatewayRequest-D1VSvNaI.js} +1 -1
- package/assets/{mail-CoON8_yY.js → mail-CLLUU1I_.js} +1 -1
- package/assets/{mobile-hiVL2smK.js → mobile-C4LznUL7.js} +1 -1
- package/assets/{more-CEWjr51n.js → more-_PuVvjEt.js} +1 -1
- package/assets/{network-placeholder-B93dK-Wv.js → network-placeholder-Hxs89uPm.js} +1 -1
- package/assets/{nftPlaceholder-Cv1W78Cm.js → nftPlaceholder-C-baCw8D.js} +1 -1
- package/assets/{off-CfBcNJQq.js → off-CtAajRfV.js} +1 -1
- package/assets/{play-store-baeJ6QUq.js → play-store-8m7iiMf-.js} +1 -1
- package/assets/{plus-Cm_DeSMx.js → plus-Bm-HbjE2.js} +1 -1
- package/assets/{preload-helper-CIxxV7Wp.js → preload-helper-Da7MPINJ.js} +1 -1
- package/assets/{qr-code-BgEAZWNl.js → qr-code-B8Pdxa3b.js} +1 -1
- package/assets/{recycle-horizontal-JBLMwMyk.js → recycle-horizontal-Cu8n0s_E.js} +1 -1
- package/assets/{refresh-D8wfv--n.js → refresh-BYmpcLlu.js} +1 -1
- package/assets/remoteEntry.js +1 -1
- package/assets/{reown-logo-DMTh3d1z.js → reown-logo-Duqpi5rM.js} +1 -1
- package/assets/{search-BTDiU-Z-.js → search-CmHFyhBh.js} +1 -1
- package/assets/{secp256k1-D3oIaUVU.js → secp256k1-BRWZ2_wu.js} +1 -1
- package/assets/{send-CnQaiEuX.js → send-DzJX8Wqx.js} +1 -1
- package/assets/{swapHorizontal-Dv0Bg9L0.js → swapHorizontal-CqZcObcR.js} +1 -1
- package/assets/{swapHorizontalBold-CQPcpjgH.js → swapHorizontalBold-B1hnH7ZZ.js} +1 -1
- package/assets/{swapHorizontalMedium-DV4uRJLw.js → swapHorizontalMedium-Buq8MNLJ.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-Dx468EVm.js → swapHorizontalRoundedBold-CsSQpf_p.js} +1 -1
- package/assets/{swapVertical-LooYJDwN.js → swapVertical-Q8Bqe2Jt.js} +1 -1
- package/assets/{telegram-JgoU7_hj.js → telegram-C5KOovU0.js} +1 -1
- package/assets/{three-dots-BRI9-Dly.js → three-dots-DTgYfxw3.js} +1 -1
- package/assets/{twitch-D4ap364K.js → twitch-r-UFnrLV.js} +1 -1
- package/assets/{twitterIcon-Cf2xFTkU.js → twitterIcon-DMyvg7HN.js} +1 -1
- package/assets/{uid-CuZf7FK0.js → uid-BXyWhp1f.js} +3 -3
- package/assets/{verify-filled-BT2Xhbin.js → verify-filled-CrYusELO.js} +1 -1
- package/assets/{verify-qGEcCbo_.js → verify-xN1DufkA.js} +1 -1
- package/assets/{w3m-modal-73pLXDms.js → w3m-modal-DRC5zmDX.js} +1 -1
- package/assets/{wallet-CpcVYmnb.js → wallet-BXDNs6JO.js} +1 -1
- package/assets/{wallet-placeholder-CEkTf9LX.js → wallet-placeholder-BoyrmNkx.js} +1 -1
- package/assets/{walletconnect-BSErawNo.js → walletconnect-DlElMSYs.js} +1 -1
- package/assets/{warning-circle-BOABXvvE.js → warning-circle-DIKAK_TZ.js} +1 -1
- package/assets/{webSocket-BvPqYrD7.js → webSocket-2e0AZ6uy.js} +1 -1
- package/assets/{x-BRQsrMF4.js → x-Cxun-KuU.js} +1 -1
- package/index.html +14 -14
- package/package.json +3 -3
- package/assets/HomePage-CP3D4i9c.js +0 -3
- package/assets/SensorsRounded-WVFgO4_x.js +0 -15
- package/assets/__federation_shared_@emotion/react-BJqnrTYH.js +0 -1
- package/assets/__federation_shared_decentraland-ui2-ZuMMDuwr.js +0 -357
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{j as N}from"./jsx-runtime-B1l0k91v.js";import{g as M}from"./_commonjsHelpers-C4iS2aBk.js";import{importShared as $}from"./__federation_fn_import-CMxiPYok.js";import{_ as g,b as yr,s as gr}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-CIOzroua.js";import{c as br,T as vr,a as _r,k as xr}from"./emotion-react.browser.esm-C-ukP9vl.js";function Sr(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?G.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?G.STAGING:t.endsWith(".io")||t.endsWith(".zone")?G.DEVELOPMENT:null}function $r(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Dt(n))return n}return null}var ft={},G;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(G||(G={}));function Lt(){return Object.values(G)}function Dt(e){return Lt().includes(e)}function pe(e){if(Dt(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${Lt().map(t=>`"${t}"`).join(", ")}.`)}function wr(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:o}=e;if(t&&r&&t!==r)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(t&&n&&t!==n)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(t&&o&&t!==o)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&o&&r!==o)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?pe(t):r?pe(r):n?pe(n):o?pe(o):G.PRODUCTION}function Er(e){if(typeof window<"u"){const r=$r(window.location);if(r)return r;const n=Sr(window.location);if(n)return n}return wr(typeof e>"u"&&typeof process=="object"&&typeof ft=="object"?ft:e)}function ui(e,t){const r=Er(t?.systemEnvVariables),n=e[r];return{get:(o,s="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return o in n?n[o]:s},is:o=>r===o,getEnv:()=>r}}var Ft={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ft);var xe=Ft.exports,Ne={};const Bt=await $("react");function z(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zt(e){if(Bt.isValidElement(e)||!z(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zt(e[r])}),t}function j(e,t,r={clone:!0}){const n=r.clone?g({},e):e;return z(e)&&z(t)&&Object.keys(t).forEach(o=>{Bt.isValidElement(t[o])?n[o]=t[o]:z(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&z(e[o])?n[o]=j(e[o],t[o],r):r.clone?n[o]=z(t[o])?zt(t[o]):t[o]:n[o]=t[o]}),n}const Tr=Object.freeze(Object.defineProperty({__proto__:null,default:j,isPlainObject:z},Symbol.toStringTag,{value:"Module"}));function se(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Cr=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var Nt={exports:{}},y={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-is.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ze=Symbol.for("react.transitional.element"),Je=Symbol.for("react.portal"),Se=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),Te=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Or=Symbol.for("react.view_transition"),Rr=Symbol.for("react.client.reference");function P(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ze:switch(e=e.type,e){case Se:case we:case $e:case Oe:case Re:case Or:return e;default:switch(e=e&&e.$$typeof,e){case Te:case Ce:case Pe:case Ae:return e;case Ee:return e;default:return t}}case Je:return t}}}y.ContextConsumer=Ee;y.ContextProvider=Te;y.Element=Ze;y.ForwardRef=Ce;y.Fragment=Se;y.Lazy=Pe;y.Memo=Ae;y.Portal=Je;y.Profiler=we;y.StrictMode=$e;y.Suspense=Oe;y.SuspenseList=Re;y.isContextConsumer=function(e){return P(e)===Ee};y.isContextProvider=function(e){return P(e)===Te};y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ze};y.isForwardRef=function(e){return P(e)===Ce};y.isFragment=function(e){return P(e)===Se};y.isLazy=function(e){return P(e)===Pe};y.isMemo=function(e){return P(e)===Ae};y.isPortal=function(e){return P(e)===Je};y.isProfiler=function(e){return P(e)===we};y.isStrictMode=function(e){return P(e)===$e};y.isSuspense=function(e){return P(e)===Oe};y.isSuspenseList=function(e){return P(e)===Re};y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Se||e===we||e===$e||e===Oe||e===Re||typeof e=="object"&&e!==null&&(e.$$typeof===Pe||e.$$typeof===Ae||e.$$typeof===Te||e.$$typeof===Ee||e.$$typeof===Ce||e.$$typeof===Rr||e.getModuleId!==void 0)};y.typeOf=P;Nt.exports=y;var dt=Nt.exports;const Ar=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wt(e){const t=`${e}`.match(Ar);return t&&t[1]||""}function Kt(e,t=""){return e.displayName||e.name||Wt(e)||t}function mt(e,t,r){const n=Kt(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Pr(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kt(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dt.ForwardRef:return mt(e,e.render,"ForwardRef");case dt.Memo:return mt(e,e.type,"memo");default:return}}}const Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Pr,getFunctionName:Wt},Symbol.toStringTag,{value:"Module"}));function W(e){if(typeof e!="string")throw new Error(se(7));return e.charAt(0).toUpperCase()+e.slice(1)}const kr=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));function jr(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Mr(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function Lr(e,t){return()=>null}const Dr=await $("react");function Fr(e,t){var r,n;return Dr.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Ut(e){return e&&e.ownerDocument||document}function Br(e){return Ut(e).defaultView||window}function zr(e,t){return()=>null}function Gt(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const pt=await $("react"),Yt=typeof window<"u"?pt.useLayoutEffect:pt.useEffect,Ve=await $("react");let ht=0;function Nr(e){const[t,r]=Ve.useState(e),n=e||t;return Ve.useEffect(()=>{t==null&&(ht+=1,r(`mui-${ht}`))},[t]),n}const yt=Ve.useId;function Wr(e){if(yt!==void 0){const t=yt();return e??t}return Nr(e)}function Kr(e,t,r,n,o){return null}const We=await $("react");function Ur({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=We.useRef(e!==void 0),[s,i]=We.useState(t),u=o?e:s,l=We.useCallback(a=>{o||i(a)},[]);return[u,l]}const gt=await $("react");function Gr(e){const t=gt.useRef(e);return Yt(()=>{t.current=e}),gt.useRef((...r)=>(0,t.current)(...r)).current}const Yr=await $("react");function Vr(...e){return Yr.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Gt(r,t)})},e)}const qr=await $("react"),bt={};function Hr(e,t){const r=qr.useRef(bt);return r.current===bt&&(r.current=e(t)),r}const Xr=await $("react"),Qr=[];function Zr(e){Xr.useEffect(e,Qr)}class Ie{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ie}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function li(){const e=Hr(Ie.create).current;return Zr(e.disposeEffect),e}const vt=await $("react");let ke=!0,qe=!1;const Jr=new Ie,en={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function tn(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&en[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function rn(e){e.metaKey||e.altKey||e.ctrlKey||(ke=!0)}function Ke(){ke=!1}function nn(){this.visibilityState==="hidden"&&qe&&(ke=!0)}function on(e){e.addEventListener("keydown",rn,!0),e.addEventListener("mousedown",Ke,!0),e.addEventListener("pointerdown",Ke,!0),e.addEventListener("touchstart",Ke,!0),e.addEventListener("visibilitychange",nn,!0)}function sn(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ke||tn(t)}function an(){const e=vt.useCallback(o=>{o!=null&&on(o.ownerDocument)},[]),t=vt.useRef(!1);function r(){return t.current?(qe=!0,Jr.start(100,()=>{qe=!1}),t.current=!1,!0):!1}function n(o){return sn(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function He(e,t){const r=g({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=g({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=g({},s),Object.keys(o).forEach(i=>{r[n][i]=He(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function un(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const u=t(i);u!==""&&s.push(u),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const _t=e=>e,ln=()=>{let e=_t;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_t}}},Vt=ln(),cn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qt(e,t,r="Mui"){const n=cn[t];return n?`${r}-${n}`:`${Vt.generate(e)}-${t}`}function fn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=qt(e,o,r)}),n}function dn(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const mn=Object.freeze(Object.defineProperty({__proto__:null,default:dn},Symbol.toStringTag,{value:"Module"}));function K(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ht(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ht(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function pn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ht(e))&&(n&&(n+=" "),n+=t);return n}const Xt=await $("react"),Qt=Xt.createContext(void 0);function ci({value:e,children:t}){return N.jsx(Qt.Provider,{value:e,children:t})}function hn(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?He(o.defaultProps,n):!o.styleOverrides&&!o.variants?He(o,n):n}function yn({props:e,name:t}){const r=Xt.useContext(Qt);return hn({props:e,name:t,theme:{components:r}})}await $("react");function gn(e){return yn(e)}var ae={};const bn=M(yr);var Ue={exports:{}},xt;function vn(){return xt||(xt=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.indexOf(s)!==-1)continue;o[s]=r[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ue)),Ue.exports}const _n=await $("react"),{CacheProvider:xn}=await $("@emotion/react");function Sn(e,t){const r=br({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return r}const Ge=new Map;function $n(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=_n.useMemo(()=>{const s=`${t}-${r}`;if(typeof document=="object"&&Ge.has(s))return Ge.get(s);const i=Sn(t,r);return Ge.set(s,i),i},[t,r]);return t||r?N.jsx(xn,{value:o,children:n}):n}await $("react");const{Global:wn}=await $("@emotion/react");function En(e){return e==null||Object.keys(e).length===0}function Tn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(En(o)?r:o):t;return N.jsx(wn,{styles:n})}/**
|
|
10
|
+
* @mui/styled-engine v5.18.0
|
|
11
|
+
*
|
|
12
|
+
* @license MIT
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/const Cn=await $("@emotion/styled");function On(e,t){return Cn(e,t)}const Rn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},St=[];function An(e){return St[0]=e,gr(St)}const Pn=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Tn,StyledEngineProvider:$n,ThemeContext:vr,css:_r,default:On,internal_processStyles:Rn,internal_serializeStyles:An,keyframes:xr},Symbol.toStringTag,{value:"Module"})),In=M(Pn),kn=M(Tr),jn=M(kr),Mn=M(Ir),Ln=["values","unit","step"],Dn=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>g({},r,{[n.key]:n.val}),{})};function Zt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,Ln),s=Dn(t),i=Object.keys(s);function u(c){return`@media (min-width:${typeof t[c]=="number"?t[c]:c}${r})`}function l(c){return`@media (max-width:${(typeof t[c]=="number"?t[c]:c)-n/100}${r})`}function a(c,p){const h=i.indexOf(p);return`@media (min-width:${typeof t[c]=="number"?t[c]:c}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:p)-n/100}${r})`}function m(c){return i.indexOf(c)+1<i.length?a(c,i[i.indexOf(c)+1]):u(c)}function d(c){const p=i.indexOf(c);return p===0?u(i[1]):p===i.length-1?l(i[p]):a(c,i[i.indexOf(c)+1]).replace("@media","@media not all and")}return g({keys:i,values:s,up:u,down:l,between:a,only:m,not:d,unit:r},o)}const Fn={borderRadius:4};function oe(e,t){return t?j(e,t,{clone:!1}):e}const et={xs:0,sm:600,md:900,lg:1200,xl:1536},$t={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${et[e]}px)`};function B(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||$t;return t.reduce((i,u,l)=>(i[s.up(s.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const s=n.breakpoints||$t;return Object.keys(t).reduce((i,u)=>{if(Object.keys(s.values||et).indexOf(u)!==-1){const l=s.up(u);i[l]=r(t[u],u)}else{const l=u;i[l]=t[l]}return i},{})}return r(t)}function Jt(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function Xe(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function fi(e,...t){const r=Jt(e),n=[r,...t].reduce((o,s)=>j(o,s),{});return Xe(Object.keys(r),n)}function Bn(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,s)=>{s<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function di({values:e,breakpoints:t,base:r}){const n=r||Bn(e,t),o=Object.keys(n);if(o.length===0)return e;let s;return o.reduce((i,u,l)=>(Array.isArray(e)?(i[u]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(i[u]=e[u]!=null?e[u]:e[s],s=u):i[u]=e,i),{})}function je(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function be(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=je(e,r)||n,t&&(o=t(o,n,e)),o}function x(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const u=i[t],l=i.theme,a=je(l,n)||{};return B(i,u,d=>{let c=be(a,o,d);return d===c&&typeof d=="string"&&(c=be(a,o,`${t}${d==="default"?"":W(d)}`,d)),r===!1?c:{[r]:c}})};return s.propTypes={},s.filterProps=[t],s}function zn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Nn={m:"margin",p:"padding"},Wn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kn=zn(e=>{if(e.length>2)if(wt[e])e=wt[e];else return[e];const[t,r]=e.split(""),n=Nn[t],o=Wn[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),tt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...tt,...rt];function ue(e,t,r,n){var o;const s=(o=je(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function er(e){return ue(e,"spacing",8)}function le(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Un(e,t){return r=>e.reduce((n,o)=>(n[o]=le(t,r),n),{})}function Gn(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Kn(r),s=Un(o,n),i=e[r];return B(e,i,s)}function tr(e,t){const r=er(e.theme);return Object.keys(e).map(n=>Gn(e,t,n,r)).reduce(oe,{})}function v(e){return tr(e,tt)}v.propTypes={};v.filterProps=tt;function _(e){return tr(e,rt)}_.propTypes={};_.filterProps=rt;function Yn(e=8){if(e.mui)return e;const t=er({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Me(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?oe(o,t[s](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function R(e){return typeof e!="number"?e:`${e}px solid`}function I(e,t){return x({prop:e,themeKey:"borders",transform:t})}const Vn=I("border",R),qn=I("borderTop",R),Hn=I("borderRight",R),Xn=I("borderBottom",R),Qn=I("borderLeft",R),Zn=I("borderColor"),Jn=I("borderTopColor"),eo=I("borderRightColor"),to=I("borderBottomColor"),ro=I("borderLeftColor"),no=I("outline",R),oo=I("outlineColor"),Le=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ue(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:le(t,n)});return B(e,e.borderRadius,r)}return null};Le.propTypes={};Le.filterProps=["borderRadius"];Me(Vn,qn,Hn,Xn,Qn,Zn,Jn,eo,to,ro,Le,no,oo);const De=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ue(e.theme,"spacing",8),r=n=>({gap:le(t,n)});return B(e,e.gap,r)}return null};De.propTypes={};De.filterProps=["gap"];const Fe=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ue(e.theme,"spacing",8),r=n=>({columnGap:le(t,n)});return B(e,e.columnGap,r)}return null};Fe.propTypes={};Fe.filterProps=["columnGap"];const Be=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ue(e.theme,"spacing",8),r=n=>({rowGap:le(t,n)});return B(e,e.rowGap,r)}return null};Be.propTypes={};Be.filterProps=["rowGap"];const so=x({prop:"gridColumn"}),io=x({prop:"gridRow"}),ao=x({prop:"gridAutoFlow"}),uo=x({prop:"gridAutoColumns"}),lo=x({prop:"gridAutoRows"}),co=x({prop:"gridTemplateColumns"}),fo=x({prop:"gridTemplateRows"}),mo=x({prop:"gridTemplateAreas"}),po=x({prop:"gridArea"});Me(De,Fe,Be,so,io,ao,uo,lo,co,fo,mo,po);function J(e,t){return t==="grey"?t:e}const ho=x({prop:"color",themeKey:"palette",transform:J}),yo=x({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:J}),go=x({prop:"backgroundColor",themeKey:"palette",transform:J});Me(ho,yo,go);function C(e){return e<=1&&e!==0?`${e*100}%`:e}const bo=x({prop:"width",transform:C}),nt=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||et[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:C(r)}};return B(e,e.maxWidth,t)}return null};nt.filterProps=["maxWidth"];const vo=x({prop:"minWidth",transform:C}),_o=x({prop:"height",transform:C}),xo=x({prop:"maxHeight",transform:C}),So=x({prop:"minHeight",transform:C});x({prop:"size",cssProperty:"width",transform:C});x({prop:"size",cssProperty:"height",transform:C});const $o=x({prop:"boxSizing"});Me(bo,nt,vo,_o,xo,So,$o);const ce={border:{themeKey:"borders",transform:R},borderTop:{themeKey:"borders",transform:R},borderRight:{themeKey:"borders",transform:R},borderBottom:{themeKey:"borders",transform:R},borderLeft:{themeKey:"borders",transform:R},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Le},color:{themeKey:"palette",transform:J},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:J},backgroundColor:{themeKey:"palette",transform:J},p:{style:_},pt:{style:_},pr:{style:_},pb:{style:_},pl:{style:_},px:{style:_},py:{style:_},padding:{style:_},paddingTop:{style:_},paddingRight:{style:_},paddingBottom:{style:_},paddingLeft:{style:_},paddingX:{style:_},paddingY:{style:_},paddingInline:{style:_},paddingInlineStart:{style:_},paddingInlineEnd:{style:_},paddingBlock:{style:_},paddingBlockStart:{style:_},paddingBlockEnd:{style:_},m:{style:v},mt:{style:v},mr:{style:v},mb:{style:v},ml:{style:v},mx:{style:v},my:{style:v},margin:{style:v},marginTop:{style:v},marginRight:{style:v},marginBottom:{style:v},marginLeft:{style:v},marginX:{style:v},marginY:{style:v},marginInline:{style:v},marginInlineStart:{style:v},marginInlineEnd:{style:v},marginBlock:{style:v},marginBlockStart:{style:v},marginBlockEnd:{style:v},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:De},rowGap:{style:Be},columnGap:{style:Fe},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:nt},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wo(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Eo(e,t){return typeof e=="function"?e(t):e}function rr(){function e(r,n,o,s){const i={[r]:n,theme:o},u=s[r];if(!u)return{[r]:n};const{cssProperty:l=r,themeKey:a,transform:m,style:d}=u;if(n==null)return null;if(a==="typography"&&n==="inherit")return{[r]:n};const c=je(o,a)||{};return d?d(i):B(i,n,h=>{let f=be(c,m,h);return h===f&&typeof h=="string"&&(f=be(c,m,`${r}${h==="default"?"":W(h)}`,h)),l===!1?f:{[l]:f}})}function t(r){var n;const{sx:o,theme:s={},nested:i}=r||{};if(!o)return null;const u=(n=s.unstable_sxConfig)!=null?n:ce;function l(a){let m=a;if(typeof a=="function")m=a(s);else if(typeof a!="object")return a;if(!m)return null;const d=Jt(s.breakpoints),c=Object.keys(d);let p=d;return Object.keys(m).forEach(h=>{const f=Eo(m[h],s);if(f!=null)if(typeof f=="object")if(u[h])p=oe(p,e(h,f,s,u));else{const w=B({theme:s},f,E=>({[h]:E}));wo(w,f)?p[h]=t({sx:f,theme:s,nested:!0}):p=oe(p,w)}else p=oe(p,e(h,f,s,u))}),!i&&s.modularCssLayers?{"@layer sx":Xe(c,p)}:Xe(c,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const ze=rr();ze.filterProps=["sx"];function nr(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const To=["breakpoints","palette","spacing","shape"];function or(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=K(e,To),u=Zt(r),l=Yn(o);let a=j({breakpoints:u,direction:"ltr",components:{},palette:g({mode:"light"},n),spacing:l,shape:g({},Fn,s)},i);return a.applyStyles=nr,a=t.reduce((m,d)=>j(m,d),a),a.unstable_sxConfig=g({},ce,i?.unstable_sxConfig),a.unstable_sx=function(d){return ze({sx:d,theme:this})},a}const Co=Object.freeze(Object.defineProperty({__proto__:null,default:or,private_createBreakpoints:Zt,unstable_applyStyles:nr},Symbol.toStringTag,{value:"Module"})),Oo=M(Co),Ro=["sx"],Ao=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ce;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Po(e){const{sx:t}=e,r=K(e,Ro),{systemProps:n,otherProps:o}=Ao(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const u=t(...i);return z(u)?g({},n,u):n}:s=g({},n,t),g({},o,{sx:s})}const Io=Object.freeze(Object.defineProperty({__proto__:null,default:ze,extendSxProp:Po,unstable_createStyleFunctionSx:rr,unstable_defaultSxConfig:ce},Symbol.toStringTag,{value:"Module"})),ko=M(Io);var ee=xe;Object.defineProperty(ae,"__esModule",{value:!0});var jo=ae.default=Vo;ae.shouldForwardProp=ye;ae.systemDefaultTheme=void 0;var O=ee(bn),Qe=ee(vn()),ve=No(In),Mo=kn;ee(jn);ee(Mn);var Lo=ee(Oo),Do=ee(ko);const Fo=["ownerState"],Bo=["variants"],zo=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sr(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(sr=function(n){return n?r:t})(e)}function No(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=sr(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function Wo(e){return Object.keys(e).length===0}function Ko(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ye(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Et(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Uo=ae.systemDefaultTheme=(0,Lo.default)(),Go=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function he({defaultTheme:e,theme:t,themeId:r}){return Wo(t)?e:t[r]||t}function Yo(e){return e?(t,r)=>r[e]:null}function ge(e,t,r){let{ownerState:n}=t,o=(0,Qe.default)(t,Fo);const s=typeof e=="function"?e((0,O.default)({ownerState:n},o)):e;if(Array.isArray(s))return s.flatMap(i=>ge(i,(0,O.default)({ownerState:n},o),r));if(s&&typeof s=="object"&&Array.isArray(s.variants)){const{variants:i=[]}=s;let l=(0,Qe.default)(s,Bo);return i.forEach(a=>{let m=!0;if(typeof a.props=="function"?m=a.props((0,O.default)({ownerState:n},o,n)):Object.keys(a.props).forEach(d=>{n?.[d]!==a.props[d]&&o[d]!==a.props[d]&&(m=!1)}),m){Array.isArray(l)||(l=[l]);const d=typeof a.style=="function"?a.style((0,O.default)({ownerState:n},o,n)):a.style;l.push(r?Et((0,ve.internal_serializeStyles)(d),r):d)}}),l}return r?Et((0,ve.internal_serializeStyles)(s),r):s}function Vo(e={}){const{themeId:t,defaultTheme:r=Uo,rootShouldForwardProp:n=ye,slotShouldForwardProp:o=ye}=e,s=i=>(0,Do.default)((0,O.default)({},i,{theme:he((0,O.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,u={})=>{(0,ve.internal_processStyles)(i,T=>T.filter(D=>!(D!=null&&D.__mui_systemSx)));const{name:l,slot:a,skipVariantsResolver:m,skipSx:d,overridesResolver:c=Yo(Go(a))}=u,p=(0,Qe.default)(u,zo),h=l&&l.startsWith("Mui")||a?"components":"custom",f=m!==void 0?m:a&&a!=="Root"&&a!=="root"||!1,w=d||!1;let E,L=ye;a==="Root"||a==="root"?L=n:a?L=o:Ko(i)&&(L=void 0);const U=(0,ve.default)(i,(0,O.default)({shouldForwardProp:L,label:E},p)),fe=T=>typeof T=="function"&&T.__emotion_real!==T||(0,Mo.isPlainObject)(T)?D=>{const Y=he({theme:D.theme,defaultTheme:r,themeId:t});return ge(T,(0,O.default)({},D,{theme:Y}),Y.modularCssLayers?h:void 0)}:T,de=(T,...D)=>{let Y=fe(T);const re=D?D.map(fe):[];l&&c&&re.push(F=>{const k=he((0,O.default)({},F,{defaultTheme:r,themeId:t}));if(!k.components||!k.components[l]||!k.components[l].styleOverrides)return null;const V=k.components[l].styleOverrides,me={};return Object.entries(V).forEach(([pr,hr])=>{me[pr]=ge(hr,(0,O.default)({},F,{theme:k}),k.modularCssLayers?"theme":void 0)}),c(F,me)}),l&&!f&&re.push(F=>{var k;const V=he((0,O.default)({},F,{defaultTheme:r,themeId:t})),me=V==null||(k=V.components)==null||(k=k[l])==null?void 0:k.variants;return ge({variants:me},(0,O.default)({},F,{theme:V}),V.modularCssLayers?"theme":void 0)}),w||re.push(s);const lt=re.length-D.length;if(Array.isArray(T)&<>0){const F=new Array(lt).fill("");Y=[...T,...F],Y.raw=[...T.raw,...F]}const ct=U(Y,...re);return i.muiName&&(ct.muiName=i.muiName),ct};return U.withConfig&&(de.withConfig=U.withConfig),de}}function qo(e,t){return g({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var S={};const Ho=M(Cr),Xo=M(mn);var ir=xe;Object.defineProperty(S,"__esModule",{value:!0});var mi=S.alpha=cr;S.blend=cs;S.colorChannel=void 0;var Qo=S.darken=st;S.decomposeColor=A;var pi=S.emphasize=fr,Zo=S.getContrastRatio=ss;S.getLuminance=_e;S.hexToRgb=ar;var hi=S.hslToRgb=lr,Jo=S.lighten=it,yi=S.private_safeAlpha=is,es=S.private_safeColorChannel=void 0,gi=S.private_safeDarken=as,bi=S.private_safeEmphasize=ls,vi=S.private_safeLighten=us;S.recomposeColor=te;S.rgbToHex=os;var Tt=ir(Ho),ts=ir(Xo);function ot(e,t=0,r=1){return(0,ts.default)(e,t,r)}function ar(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function rs(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function A(e){if(e.type)return e;if(e.charAt(0)==="#")return A(ar(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Tt.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Tt.default)(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const ur=e=>{const t=A(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};S.colorChannel=ur;const ns=(e,t)=>{try{return ur(e)}catch{return e}};es=S.private_safeColorChannel=ns;function te(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function os(e){if(e.indexOf("#")===0)return e;const{values:t}=A(e);return`#${t.map((r,n)=>rs(n===3?Math.round(255*r):r)).join("")}`}function lr(e){e=A(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),i=(a,m=(a+r/30)%12)=>o-s*Math.max(Math.min(m-3,9-m,1),-1);let u="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(u+="a",l.push(t[3])),te({type:u,values:l})}function _e(e){e=A(e);let t=e.type==="hsl"||e.type==="hsla"?A(lr(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ss(e,t){const r=_e(e),n=_e(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function cr(e,t){return e=A(e),t=ot(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,te(e)}function is(e,t,r){try{return cr(e,t)}catch{return e}}function st(e,t){if(e=A(e),t=ot(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return te(e)}function as(e,t,r){try{return st(e,t)}catch{return e}}function it(e,t){if(e=A(e),t=ot(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return te(e)}function us(e,t,r){try{return it(e,t)}catch{return e}}function fr(e,t=.15){return _e(e)>.5?st(e,t):it(e,t)}function ls(e,t,r){try{return fr(e,t)}catch{return e}}function cs(e,t,r,n=1){const o=(l,a)=>Math.round((l**(1/n)*(1-r)+a**(1/n)*r)**n),s=A(e),i=A(t),u=[o(s.values[0],i.values[0]),o(s.values[1],i.values[1]),o(s.values[2],i.values[2])];return te({type:"rgb",values:u})}const ie={black:"#000",white:"#fff"},fs={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},q={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},H={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ne={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},X={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Q={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ds=["mode","contrastThreshold","tonalOffset"],Ct={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ie.white,default:ie.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ye={text:{primary:ie.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ie.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ot(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Jo(e.main,o):t==="dark"&&(e.dark=Qo(e.main,s)))}function ms(e="light"){return e==="dark"?{main:X[200],light:X[50],dark:X[400]}:{main:X[700],light:X[400],dark:X[800]}}function ps(e="light"){return e==="dark"?{main:q[200],light:q[50],dark:q[400]}:{main:q[500],light:q[300],dark:q[700]}}function hs(e="light"){return e==="dark"?{main:H[500],light:H[300],dark:H[700]}:{main:H[700],light:H[400],dark:H[800]}}function ys(e="light"){return e==="dark"?{main:Q[400],light:Q[300],dark:Q[700]}:{main:Q[700],light:Q[500],dark:Q[900]}}function gs(e="light"){return e==="dark"?{main:Z[400],light:Z[300],dark:Z[700]}:{main:Z[800],light:Z[500],dark:Z[900]}}function bs(e="light"){return e==="dark"?{main:ne[400],light:ne[300],dark:ne[700]}:{main:"#ed6c02",light:ne[500],dark:ne[900]}}function vs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=K(e,ds),s=e.primary||ms(t),i=e.secondary||ps(t),u=e.error||hs(t),l=e.info||ys(t),a=e.success||gs(t),m=e.warning||bs(t);function d(f){return Zo(f,Ye.text.primary)>=r?Ye.text.primary:Ct.text.primary}const c=({color:f,name:w,mainShade:E=500,lightShade:L=300,darkShade:U=700})=>{if(f=g({},f),!f.main&&f[E]&&(f.main=f[E]),!f.hasOwnProperty("main"))throw new Error(se(11,w?` (${w})`:"",E));if(typeof f.main!="string")throw new Error(se(12,w?` (${w})`:"",JSON.stringify(f.main)));return Ot(f,"light",L,n),Ot(f,"dark",U,n),f.contrastText||(f.contrastText=d(f.main)),f},p={dark:Ye,light:Ct};return j(g({common:g({},ie),mode:t,primary:c({color:s,name:"primary"}),secondary:c({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:c({color:u,name:"error"}),warning:c({color:m,name:"warning"}),info:c({color:l,name:"info"}),success:c({color:a,name:"success"}),grey:fs,contrastThreshold:r,getContrastText:d,augmentColor:c,tonalOffset:n},p[t]),o)}const _s=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function xs(e){return Math.round(e*1e5)/1e5}const Rt={textTransform:"uppercase"},At='"Roboto", "Helvetica", "Arial", sans-serif';function Ss(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=At,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:l=700,htmlFontSize:a=16,allVariants:m,pxToRem:d}=r,c=K(r,_s),p=o/14,h=d||(E=>`${E/a*p}rem`),f=(E,L,U,fe,de)=>g({fontFamily:n,fontWeight:E,fontSize:h(L),lineHeight:U},n===At?{letterSpacing:`${xs(fe/L)}em`}:{},de,m),w={h1:f(s,96,1.167,-1.5),h2:f(s,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(u,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(u,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(u,14,1.75,.4,Rt),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Rt),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return j(g({htmlFontSize:a,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:l},w),c,{clone:!1})}const $s=.2,ws=.14,Es=.12;function b(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$s})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ws})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Es})`].join(",")}const Ts=["none",b(0,2,1,-1,0,1,1,0,0,1,3,0),b(0,3,1,-2,0,2,2,0,0,1,5,0),b(0,3,3,-2,0,3,4,0,0,1,8,0),b(0,2,4,-1,0,4,5,0,0,1,10,0),b(0,3,5,-1,0,5,8,0,0,1,14,0),b(0,3,5,-1,0,6,10,0,0,1,18,0),b(0,4,5,-2,0,7,10,1,0,2,16,1),b(0,5,5,-3,0,8,10,1,0,3,14,2),b(0,5,6,-3,0,9,12,1,0,3,16,2),b(0,6,6,-3,0,10,14,1,0,4,18,3),b(0,6,7,-4,0,11,15,1,0,4,20,3),b(0,7,8,-4,0,12,17,2,0,5,22,4),b(0,7,8,-4,0,13,19,2,0,5,24,4),b(0,7,9,-4,0,14,21,2,0,5,26,4),b(0,8,9,-5,0,15,22,2,0,6,28,5),b(0,8,10,-5,0,16,24,2,0,6,30,5),b(0,8,11,-5,0,17,26,2,0,6,32,5),b(0,9,11,-5,0,18,28,2,0,7,34,6),b(0,9,12,-6,0,19,29,2,0,7,36,6),b(0,10,13,-6,0,20,31,3,0,8,38,7),b(0,10,13,-6,0,21,33,3,0,8,40,7),b(0,10,14,-6,0,22,35,3,0,8,42,7),b(0,11,14,-7,0,23,36,3,0,9,44,8),b(0,11,15,-7,0,24,38,3,0,9,46,8)],Cs=["duration","easing","delay"],Os={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Rs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pt(e){return`${Math.round(e)}ms`}function As(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ps(e){const t=g({},Os,e.easing),r=g({},Rs,e.duration);return g({getAutoHeightDuration:As,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:l=0}=s;return K(s,Cs),(Array.isArray(o)?o:[o]).map(a=>`${a} ${typeof i=="string"?i:Pt(i)} ${u} ${typeof l=="string"?l:Pt(l)}`).join(",")}},e,{easing:t,duration:r})}const Is={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ks=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function js(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=K(e,ks);if(e.vars)throw new Error(se(18));const u=vs(n),l=or(e);let a=j(l,{mixins:qo(l.breakpoints,r),palette:u,shadows:Ts.slice(),typography:Ss(u,s),transitions:Ps(o),zIndex:g({},Is)});return a=j(a,i),a=t.reduce((m,d)=>j(m,d),a),a.unstable_sxConfig=g({},ce,i?.unstable_sxConfig),a.unstable_sx=function(d){return ze({sx:d,theme:this})},a}const Ms=js(),Ls="$$material";function Ds(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fs=e=>Ds(e)&&e!=="classes",Bs=jo({themeId:Ls,defaultTheme:Ms,rootShouldForwardProp:Fs}),zs=Bs;function Ns(e){return qt("MuiSvgIcon",e)}fn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ws=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],It=await $("react"),Ks=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${W(t)}`,`fontSize${W(r)}`]};return un(o,Ns,n)},Us=zs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${W(r.color)}`],t[`fontSize${W(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,u,l,a,m,d,c,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((a=e.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,35))||"2.1875rem"}[t.fontSize],color:(d=(c=(e.vars||e).palette)==null||(c=c[t.color])==null?void 0:c.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),dr=It.forwardRef(function(t,r){const n=gn({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:u="svg",fontSize:l="medium",htmlColor:a,inheritViewBox:m=!1,titleAccess:d,viewBox:c="0 0 24 24"}=n,p=K(n,Ws),h=It.isValidElement(o)&&o.type==="svg",f=g({},n,{color:i,component:u,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:c,hasSvgAsChild:h}),w={};m||(w.viewBox=c);const E=Ks(f);return N.jsxs(Us,g({as:u,className:pn(E.root,s),focusable:"false",color:a,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},w,p,h&&o.props,{ownerState:f,children:[h?o.props.children:o,d?N.jsx("title",{children:d}):null]}))});dr.muiName="SvgIcon";const kt=dr,jt=await $("react");function Gs(e,t){function r(n,o){return N.jsx(kt,g({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=kt.muiName,jt.memo(jt.forwardRef(r))}const Ys={configure:e=>{Vt.configure(e)}},Vs=Object.freeze(Object.defineProperty({__proto__:null,capitalize:W,createChainedFunction:jr,createSvgIcon:Gs,debounce:Mr,deprecatedPropType:Lr,isMuiElement:Fr,ownerDocument:Ut,ownerWindow:Br,requirePropFactory:zr,setRef:Gt,unstable_ClassNameGenerator:Ys,unstable_useEnhancedEffect:Yt,unstable_useId:Wr,unsupportedProp:Kr,useControlled:Ur,useEventCallback:Gr,useForkRef:Vr,useIsFocusVisible:an},Symbol.toStringTag,{value:"Module"})),qs=M(Vs);var Mt;function mr(){return Mt||(Mt=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qs}(Ne)),Ne}var at={},Hs=xe;Object.defineProperty(at,"__esModule",{value:!0});var Xs=at.default=void 0,Qs=Hs(mr()),Zs=N;Xs=at.default=(0,Qs.default)((0,Zs.jsx)("path",{d:"M8.54 8.54c.35.35.37.88.1 1.29C8.24 10.45 8 11.2 8 12c0 .8.24 1.55.64 2.17.27.41.24.95-.11 1.29-.43.43-1.17.4-1.51-.11C6.38 14.4 6 13.24 6 12c0-1.21.36-2.33.97-3.28.36-.54 1.11-.64 1.57-.18m6.92 6.92c.43.43 1.17.4 1.51-.11C17.62 14.4 18 13.24 18 12c0-1.24-.38-2.4-1.03-3.36-.34-.5-1.08-.54-1.51-.11-.35.35-.37.88-.11 1.29.41.63.65 1.38.65 2.18 0 .8-.24 1.55-.64 2.17-.27.41-.24.95.1 1.29M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6.32 8.32c.42.42 1.12.39 1.5-.08C21.18 16.53 22 14.36 22 12s-.82-4.53-2.18-6.24c-.37-.47-1.07-.5-1.5-.08-.36.36-.4.92-.08 1.32 1.1 1.37 1.76 3.11 1.76 5s-.66 3.63-1.76 5c-.32.39-.28.96.08 1.32M5.68 5.68c-.42-.42-1.12-.39-1.5.08C2.82 7.47 2 9.64 2 12s.82 4.53 2.18 6.24c.37.47 1.07.5 1.5.08.36-.36.4-.92.08-1.32C4.66 15.63 4 13.89 4 12s.66-3.63 1.76-5c.32-.39.28-.96-.08-1.32"}),"SensorsRounded");var ut={},Js=xe;Object.defineProperty(ut,"__esModule",{value:!0});var ei=ut.default=void 0,ti=Js(mr()),ri=N;ei=ut.default=(0,ti.default)((0,ri.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");export{Gs as $,fi as A,le as B,Ms as C,ci as D,G as E,js as F,Tn as G,gi as H,vi as I,bi as J,yi as K,es as L,ce as M,hi as N,Ss as O,fn as P,zs as Q,gn as R,li as S,Ls as T,Vr as U,Rs as V,mi as W,Ur as X,an as Y,Gr as Z,K as _,ei as a,Qo as a0,Jo as a1,cn as a2,Ut as a3,Gt as a4,Br as a5,jr as a6,Mr as a7,In as a8,Vt as a9,pi as aa,Fs as ab,je as ac,Ds as ad,Ie as ae,kt as af,vs as ag,Is as ah,or as b,ui as c,Xs as d,An as e,ze as f,Po as g,pn as h,xe as i,Rn as j,z as k,He as l,se as m,dn as n,Wr as o,j as p,W as q,mr as r,On as s,un as t,Yt as u,qt as v,Fr as w,B as x,di as y,er as z};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__fileDeps=["assets/index-CVdhIPEJ.js","assets/index-CNMKbeE1.js","assets/index-CGCGB-at.js","assets/index-BG8WdtUU.js","assets/__federation_fn_import-CMxiPYok.js","assets/hooks.module-Dz_XB4AG.js","assets/index-CdrMQoR6.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/createClient-C_YnitLA.js","assets/uid-BXyWhp1f.js","assets/preload-helper-Da7MPINJ.js","assets/index-nibyPLVP.js","assets/index-D6O4pjzC.js","assets/___vite-browser-external_commonjs-proxy-BqV5D26a.js","assets/inherits_browser-BlmhoU4v.js","assets/index-JFBsW0Hp.js","assets/tslib.es6-DbvBTznf.js","assets/index.es-CjtFd6oK.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{importShared as k}from"./__federation_fn_import-CMxiPYok.js";import{j as N}from"./jsx-runtime-B1l0k91v.js";import{c as Nr,E as ct,r as Dt,i as Lt,d as qr,a as Ur}from"./ContentCopy-CCbXcoVq.js";import{w as cn,e as jr,g as un,b as Qr,h as sr,i as $r,o as Fr,d as Wr}from"./reselect-BfUrOuXx.js";import{d as tt}from"./defineChain-7I0Ce1VT.js";import{_ as Me}from"./preload-helper-Da7MPINJ.js";import{c as Nt,C as qt,P as ln,i as Hr,S as or,M as Br,n as J,m as dn,a as ie,h as ar,Q as zr,b as fn,f as Gr,o as hn,r as pn,d as Kr,e as gn,g as mn,p as yn,s as Vr,j as Yr}from"./QueryClientProvider-CBbzypZl.js";import{c as Ue}from"./_commonjsHelpers-C4iS2aBk.js";const Jr=tt({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Xr=tt({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),Zr=tt({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),ei=tt({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});await k("@dcl/schemas");const ti=[Jr,Xr],ni=[ei,Zr],Ut=[...ti,...ni];function ri(e){return Ut.some(t=>t.id===e)}const{createConnector:ii}=await k("wagmi"),{ChainId:Te}=await k("@dcl/schemas"),vn={[Te.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet?project=magic",[Te.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia?project=magic",[Te.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon?project=magic",[Te.MATIC_AMOY]:"https://rpc.decentraland.org/amoy?project=magic"};function Oc(e){const{apiKey:t}=e;let n=null,r=null;async function s(i){const{Magic:c}=await Me(async()=>{const{Magic:a}=await import("./index-CVdhIPEJ.js");return{Magic:a}},__vite__mapDeps([0,1])),{OAuthExtension:l}=await Me(async()=>{const{OAuthExtension:a}=await import("./index-CGCGB-at.js");return{OAuthExtension:a}},__vite__mapDeps([2,1])),u=vn[i]||vn[Te.ETHEREUM_MAINNET];return new c(t,{extensions:[new l],network:{rpcUrl:u,chainId:i}})}return ii(i=>{async function c(){return r?await r.request({method:"eth_accounts"}):[]}async function l(u){r=await n.wallet.getProvider();const a=await c();return a.length===0?null:(await i.storage?.setItem("magicChainId",u),{accounts:a,chainId:u})}return{id:"magic",name:"Magic",type:"magic",async setup(){let u=!1;try{u=!!localStorage.getItem("dcl_magic_user_email")}catch{}const a=await i.storage?.getItem("magicChainId"),v=a??i.chains[0]?.id;if(!(!v||!a&&!u))try{if(n=await s(v),await n.user.isLoggedIn()){const d=await l(v);d&&i.emitter.emit("connect",d)}}catch{}},async connect({chainId:u}={}){const a=u??i.chains[0].id;if(n||(n=await s(a)),!await n.user.isLoggedIn())throw new Error("Magic: User is not logged in. Please authenticate via the auth dapp first.");const g=await l(a);if(!g)throw new Error("Magic: No accounts found");return g},async disconnect(){n&&await n.user.logout(),n=null,r=null,await i.storage?.removeItem("magicChainId")},async getAccounts(){return c()},async getChainId(){return await i.storage?.getItem("magicChainId")??i.chains[0].id},async getProvider(){return!r&&n&&(r=await n.wallet.getProvider()),r},async isAuthorized(){try{if(!n){const u=await i.storage?.getItem("magicChainId");if(!u)return!1;n=await s(u)}return await n.user.isLoggedIn()}catch{return!1}},async switchChain({chainId:u}){const a=i.chains.find(g=>g.id===u);if(!a)throw new Error(`Chain ${u} not configured`);if(n=await s(u),!await n.user.isLoggedIn())throw new Error("Magic: User is not logged in");return r=await n.wallet.getProvider(),await i.storage?.setItem("magicChainId",u),i.emitter.emit("change",{chainId:u}),a},onAccountsChanged(u){u.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:u})},onChainChanged(u){const a=u.startsWith("0x")?parseInt(u,16):Number(u);i.emitter.emit("change",{chainId:a})},onDisconnect(){i.emitter.emit("disconnect"),n=null,r=null}}})}await k("wagmi");await k("@dcl/schemas");function si(e){const{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];const r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:i})=>i?.url||n)}const{getAddress:Se,numberToHex:Ge,SwitchChainError:Ke,UserRejectedRequestError:Ce}=await k("viem");nt.type="coinbaseWallet";function nt(e={}){return e.version==="3"||e.headlessMode?ai(e):oi(e)}function oi(e){let t,n,r,s;return Nt(i=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:nt.type,async connect({chainId:c,withCapabilities:l,...u}={}){try{const a=await this.getProvider(),v=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in u&&u.instantOnboarding?[{onboarding:"instant"}]:[]})).map(d=>Se(d));n||(n=this.onAccountsChanged.bind(this),a.on("accountsChanged",n)),r||(r=this.onChainChanged.bind(this),a.on("chainChanged",r)),s||(s=this.onDisconnect.bind(this),a.on("disconnect",s));let g=await this.getChainId();return c&&g!==c&&(g=(await this.switchChain({chainId:c}).catch(y=>{if(y.code===Ce.code)throw y;return{id:g}}))?.id??g),{accounts:l?v.map(d=>({address:d,capabilities:{}})):v,chainId:g}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new Ce(a):a}},async disconnect(){const c=await this.getProvider();n&&(c.removeListener("accountsChanged",n),n=void 0),r&&(c.removeListener("chainChanged",r),r=void 0),s&&(c.removeListener("disconnect",s),s=void 0),c.disconnect(),c.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(l=>Se(l))},async getChainId(){const l=await(await this.getProvider()).request({method:"eth_chainId"});return Number(l)},async getProvider(){if(!t){const c=typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:l}=await Me(async()=>{const{createCoinbaseWalletSDK:a}=await import("./index-BG8WdtUU.js");return{createCoinbaseWalletSDK:a}},__vite__mapDeps([3,4,5,6,7,8,9,10,11]));t=l({...e,appChainIds:i.chains.map(a=>a.id),preference:c}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:c,chainId:l}){const u=i.chains.find(v=>v.id===l);if(!u)throw new Ke(new qt);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:Ge(u.id)}]}),u}catch(v){if(v.code===4902)try{let g;c?.blockExplorerUrls?g=c.blockExplorerUrls:g=u.blockExplorers?.default.url?[u.blockExplorers?.default.url]:[];let d;c?.rpcUrls?.length?d=c.rpcUrls:d=[u.rpcUrls.default?.http[0]??""];const y={blockExplorerUrls:g,chainId:Ge(l),chainName:c?.chainName??u.name,iconUrls:c?.iconUrls,nativeCurrency:c?.nativeCurrency??u.nativeCurrency,rpcUrls:d};return await a.request({method:"wallet_addEthereumChain",params:[y]}),u}catch(g){throw new Ce(g)}throw new Ke(v)}},onAccountsChanged(c){c.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:c.map(l=>Se(l))})},onChainChanged(c){const l=Number(c);i.emitter.emit("change",{chainId:l})},async onDisconnect(c){i.emitter.emit("disconnect");const l=await this.getProvider();n&&(l.removeListener("accountsChanged",n),n=void 0),r&&(l.removeListener("chainChanged",r),r=void 0),s&&(l.removeListener("disconnect",s),s=void 0)}}))}function ai(e){let n,r,s,i,c;return Nt(l=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:nt.type,async connect({chainId:u,withCapabilities:a}={}){try{const v=await this.getProvider(),g=(await v.request({method:"eth_requestAccounts"})).map(y=>Se(y));s||(s=this.onAccountsChanged.bind(this),v.on("accountsChanged",s)),i||(i=this.onChainChanged.bind(this),v.on("chainChanged",i)),c||(c=this.onDisconnect.bind(this),v.on("disconnect",c));let d=await this.getChainId();return u&&d!==u&&(d=(await this.switchChain({chainId:u}).catch(x=>{if(x.code===Ce.code)throw x;return{id:d}}))?.id??d),{accounts:a?g.map(y=>({address:y,capabilities:{}})):g,chainId:d}}catch(v){throw/(user closed modal|accounts received is empty|user denied account)/i.test(v.message)?new Ce(v):v}},async disconnect(){const u=await this.getProvider();s&&(u.removeListener("accountsChanged",s),s=void 0),i&&(u.removeListener("chainChanged",i),i=void 0),c&&(u.removeListener("disconnect",c),c=void 0),u.disconnect(),u.close()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(a=>Se(a))},async getChainId(){const a=await(await this.getProvider()).request({method:"eth_chainId"});return Number(a)},async getProvider(){if(!r){const u=await(async()=>{const{default:y}=await Me(async()=>{const{default:x}=await import("./index-D6O4pjzC.js").then(A=>A.i);return{default:x}},__vite__mapDeps([12,7,13,6,14,15,5,16]));return typeof y!="function"&&typeof y.default=="function"?y.default:y})();n=new u({...e,reloadOnDisconnect:!1});const a=n.walletExtension?.getChainId(),v=l.chains.find(y=>e.chainId?y.id===e.chainId:y.id===a)||l.chains[0],g=e.chainId||v?.id,d=e.jsonRpcUrl||v?.rpcUrls.default.http[0];r=n.makeWeb3Provider(d,g)}return r},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:a}){const v=l.chains.find(d=>d.id===a);if(!v)throw new Ke(new qt);const g=await this.getProvider();try{return await g.request({method:"wallet_switchEthereumChain",params:[{chainId:Ge(v.id)}]}),v}catch(d){if(d.code===4902)try{let y;u?.blockExplorerUrls?y=u.blockExplorerUrls:y=v.blockExplorers?.default.url?[v.blockExplorers?.default.url]:[];let x;u?.rpcUrls?.length?x=u.rpcUrls:x=[v.rpcUrls.default?.http[0]??""];const A={blockExplorerUrls:y,chainId:Ge(a),chainName:u?.chainName??v.name,iconUrls:u?.iconUrls,nativeCurrency:u?.nativeCurrency??v.nativeCurrency,rpcUrls:x};return await g.request({method:"wallet_addEthereumChain",params:[A]}),v}catch(y){throw new Ce(y)}throw new Ke(d)}},onAccountsChanged(u){u.length===0?this.onDisconnect():l.emitter.emit("change",{accounts:u.map(a=>Se(a))})},onChainChanged(u){const a=Number(u);l.emitter.emit("change",{chainId:a})},async onDisconnect(u){l.emitter.emit("disconnect");const a=await this.getProvider();s&&(a.removeListener("accountsChanged",s),s=void 0),i&&(a.removeListener("chainChanged",i),i=void 0),c&&(a.removeListener("disconnect",c),c=void 0)}}))}const{getAddress:ut,numberToHex:wn,SwitchChainError:ci,UserRejectedRequestError:je}=await k("viem");jt.type="walletConnect";function jt(e){const t=e.isNewChainsStale??!0;let n,r;const s="eip155";let i,c,l,u,a,v;return Nt(g=>({id:"walletConnect",name:"WalletConnect",type:jt.type,async setup(){const d=await this.getProvider().catch(()=>null);d&&(l||(l=this.onConnect.bind(this),d.on("connect",l)),a||(a=this.onSessionDelete.bind(this),d.on("session_delete",a)))},async connect({chainId:d,withCapabilities:y,...x}={}){try{const A=await this.getProvider();if(!A)throw new ln;u||(u=this.onDisplayUri,A.on("display_uri",u));let I=d;if(!I){const o=await g.storage?.getItem("state")??{};g.chains.some(C=>C.id===o.chainId)?I=o.chainId:I=g.chains[0]?.id}if(!I)throw new Error("No chains found on connector.");const P=await this.isChainsStale();if(A.session&&P&&await A.disconnect(),!A.session||P){const o=g.chains.filter(w=>w.id!==I).map(w=>w.id);await A.connect({optionalChains:[I,...o],..."pairingTopic"in x?{pairingTopic:x.pairingTopic}:{}}),this.setRequestedChainsIds(g.chains.map(w=>w.id))}const b=(await A.enable()).map(o=>ut(o));let h=await this.getChainId();return d&&h!==d&&(h=(await this.switchChain({chainId:d}).catch(w=>{if(w.code===je.code&&w.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw w;return{id:h}}))?.id??h),u&&(A.removeListener("display_uri",u),u=void 0),l&&(A.removeListener("connect",l),l=void 0),i||(i=this.onAccountsChanged.bind(this),A.on("accountsChanged",i)),c||(c=this.onChainChanged.bind(this),A.on("chainChanged",c)),v||(v=this.onDisconnect.bind(this),A.on("disconnect",v)),a||(a=this.onSessionDelete.bind(this),A.on("session_delete",a)),{accounts:y?b.map(o=>({address:o,capabilities:{}})):b,chainId:h}}catch(A){throw/(user rejected|connection request reset)/i.test(A?.message)?new je(A):A}},async disconnect(){const d=await this.getProvider();try{await d?.disconnect()}catch(y){if(!/No matching key/i.test(y.message))throw y}finally{c&&(d?.removeListener("chainChanged",c),c=void 0),v&&(d?.removeListener("disconnect",v),v=void 0),l||(l=this.onConnect.bind(this),d?.on("connect",l)),i&&(d?.removeListener("accountsChanged",i),i=void 0),a&&(d?.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(y=>ut(y))},async getProvider({chainId:d}={}){async function y(){const x=g.chains.map(I=>I.id);if(!x.length)return;const{EthereumProvider:A}=await Me(async()=>{const{EthereumProvider:I}=await import("./index.es-CjtFd6oK.js").then(P=>P.G);return{EthereumProvider:I}},__vite__mapDeps([17,10,7,4,11]));return await A.init({...e,disableProviderPing:!0,optionalChains:x,projectId:e.projectId,rpcMap:Object.fromEntries(g.chains.map(I=>{const[P]=si({chain:I,transports:g.transports});return[I.id,P]})),showQrModal:e.showQrModal??!0})}return n||(r||(r=y()),n=await r,n?.events.setMaxListeners(Number.POSITIVE_INFINITY)),d&&await this.switchChain?.({chainId:d}),n},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[d,y]=await Promise.all([this.getAccounts(),this.getProvider()]);return d.length?await this.isChainsStale()&&y.session?(await y.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:d,chainId:y}){const x=await this.getProvider();if(!x)throw new ln;const A=g.chains.find(I=>I.id===y);if(!A)throw new ci(new qt);try{await Promise.all([new Promise(P=>{const b=({chainId:h})=>{h===y&&(g.emitter.off("change",b),P())};g.emitter.on("change",b)}),x.request({method:"wallet_switchEthereumChain",params:[{chainId:wn(y)}]})]);const I=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...I,y]),A}catch(I){const P=I;if(/(user rejected)/i.test(P.message))throw new je(P);try{let b;d?.blockExplorerUrls?b=d.blockExplorerUrls:b=A.blockExplorers?.default.url?[A.blockExplorers?.default.url]:[];let h;d?.rpcUrls?.length?h=d.rpcUrls:h=[...A.rpcUrls.default.http];const o={blockExplorerUrls:b,chainId:wn(y),chainName:d?.chainName??A.name,iconUrls:d?.iconUrls,nativeCurrency:d?.nativeCurrency??A.nativeCurrency,rpcUrls:h};await x.request({method:"wallet_addEthereumChain",params:[o]});const w=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...w,y]),A}catch(b){throw new je(b)}}},onAccountsChanged(d){d.length===0?this.onDisconnect():g.emitter.emit("change",{accounts:d.map(y=>ut(y))})},onChainChanged(d){const y=Number(d);g.emitter.emit("change",{chainId:y})},async onConnect(d){const y=Number(d.chainId),x=await this.getAccounts();g.emitter.emit("connect",{accounts:x,chainId:y})},async onDisconnect(d){this.setRequestedChainsIds([]),g.emitter.emit("disconnect");const y=await this.getProvider();i&&(y.removeListener("accountsChanged",i),i=void 0),c&&(y.removeListener("chainChanged",c),c=void 0),v&&(y.removeListener("disconnect",v),v=void 0),a&&(y.removeListener("session_delete",a),a=void 0),l||(l=this.onConnect.bind(this),y.on("connect",l))},onDisplayUri(d){g.emitter.emit("message",{type:"display_uri",data:d})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){return n?n.session?.namespaces[s]?.accounts?.map(y=>Number.parseInt(y.split(":")[1]||"",10))??[]:[]},async getRequestedChainsIds(){return await g.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!t)return!1;const d=g.chains.map(A=>A.id),y=this.getNamespaceChainsIds();if(y.length&&!y.some(A=>d.includes(A)))return!1;const x=await this.getRequestedChainsIds();return!d.every(A=>x.includes(A))},async setRequestedChainsIds(d){await g.storage?.setItem(this.requestedChainsStorageKey,d)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}const{createConfig:ui,http:St}=await k("wagmi"),{ChainId:Qe}=await k("@dcl/schemas"),ye={name:"Decentraland",description:"Decentraland dApp",url:"https://decentraland.org",icons:["https://cdn.decentraland.org/@dcl/marketplace-site/6.41.1/favicon.ico"]},li={[Qe.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[Qe.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[Qe.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[Qe.MATIC_AMOY]:"https://rpc.decentraland.org/amoy"},di=Ut.reduce((e,t)=>{const n=li[t.id];return e[t.id]=n?St(n):St(),e},{});function fi(e,t){const n=t.trim();if(!n)return e;const r=e.replace(/\/+$/,""),s=n.startsWith("/")?n:`/${n}`;return`${r}${s}`}function hi(e){if(!e)return ye;const t=e.url??(e.urlPath?fi(ye.url,e.urlPath):ye.url);return{name:e.name??ye.name,description:e.description??ye.description,url:t,icons:e.icons??ye.icons}}function Dc(e={}){const{walletConnectProjectId:t,appMetadata:n,chains:r=Ut,transports:s,connectors:i={},additionalConnectors:c=[]}=e,l=hi(n),{injected:u=!0,walletConnect:a=!0,coinbaseWallet:v=!0}=i,g=r.reduce((y,x)=>(y[x.id]=s?.[x.id]??di[x.id]??St(),y),{}),d=[];return u&&d.push(Hr()),a&&t&&d.push(jt({projectId:t,metadata:{name:l.name,description:l.description??"",url:l.url??"",icons:l.icons??[]}})),v&&d.push(nt({appName:l.name})),d.push(...c),ui({chains:r,transports:g,connectors:d})}function pi(){if(typeof window>"u"||!window.localStorage)return;const e=[],{localStorage:t}=window;for(let n=0;n<t.length;n++){const r=t.key(n);r?.startsWith("wagmi.")&&e.push(r)}e.forEach(n=>t.removeItem(n))}function gi(){typeof window>"u"||!window.localStorage||window.localStorage.removeItem("decentraland-connect-storage-key")}var cr={},te={},Ct={exports:{}},_t={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r==null)throw new TypeError("Expected a string but received a ".concat(r));if(r.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(r.constructor.name))}e.exports=t.default,e.exports.default=t.default})(_t,_t.exports);var Qt=_t.exports,Et={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(s){return Object.prototype.toString.call(s)==="[object RegExp]"}function r(s,i){for(var c=0;c<i.length;c++){var l=i[c];if(s===l||n(l)&&l.test(s))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(Et,Et.exports);var mi=Et.exports,It={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,i){return s.indexOf(i)!==-1};t.default=n,e.exports=t.default,e.exports.default=t.default})(It,It.exports);var yi=It.exports,Pt={exports:{}},At={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;for(var i in s)typeof r[i]>"u"&&(r[i]=s[i]);return r}e.exports=t.default,e.exports.default=t.default})(At,At.exports);var ur=At.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=s(Qt),r=s(ur);function s(l){return l&&l.__esModule?l:{default:l}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function c(l,u){(0,n.default)(l),u=(0,r.default)(u,i),u.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),u.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var a=l.split("."),v=a[a.length-1];return u.require_tld&&(a.length<2||!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(v)||/\s/.test(v))||!u.allow_numeric_tld&&/^\d+$/.test(v)?!1:a.every(function(g){return!(g.length>63&&!u.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(g)||/[\uff01-\uff5e]/.test(g)||/^-|-$/.test(g)||!u.allow_underscores&&/_/.test(g))})}e.exports=t.default,e.exports.default=t.default})(Pt,Pt.exports);var vi=Pt.exports,Rt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n=r(Qt);function r(g){return g&&g.__esModule?g:{default:g}}function s(g){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},s(g)}var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",c="(".concat(i,"[.]){3}").concat(i),l=new RegExp("^".concat(c,"$")),u="(?:[0-9a-fA-F]{1,4})",a=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(c,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(c,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(c,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(c,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(c,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(c,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(c,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function v(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(g);var y=(s(d)==="object"?d.version:arguments[1])||"";return y?y.toString()==="4"?l.test(g):y.toString()==="6"?a.test(g):!1:v(g,{version:4})||v(g,{version:6})}e.exports=t.default,e.exports.default=t.default})(Rt,Rt.exports);var wi=Rt.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=P;var n=u(Qt),r=u(mi),s=u(yi),i=u(vi),c=u(wi),l=u(ur);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,h){return x(b)||y(b,h)||g(b,h)||v()}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(b,h){if(b){if(typeof b=="string")return d(b,h);var o={}.toString.call(b).slice(8,-1);return o==="Object"&&b.constructor&&(o=b.constructor.name),o==="Map"||o==="Set"?Array.from(b):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?d(b,h):void 0}}function d(b,h){(h==null||h>b.length)&&(h=b.length);for(var o=0,w=Array(h);o<h;o++)w[o]=b[o];return w}function y(b,h){var o=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(o!=null){var w,C,S,R,E=[],p=!0,f=!1;try{if(S=(o=o.call(b)).next,h!==0)for(;!(p=(w=S.call(o)).done)&&(E.push(w.value),E.length!==h);p=!0);}catch(m){f=!0,C=m}finally{try{if(!p&&o.return!=null&&(R=o.return(),Object(R)!==R))return}finally{if(f)throw C}}return E}}function x(b){if(Array.isArray(b))return b}var A={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},I=/^\[([^\]]+)\](?::([0-9]+))?$/;function P(b,h){if((0,n.default)(b),!b||/[\s<>]/.test(b)||b.indexOf("mailto:")===0||(h=(0,l.default)(h,A),h.validate_length&&b.length>h.max_allowed_length)||!h.allow_fragments&&(0,s.default)(b,"#")||!h.allow_query_components&&((0,s.default)(b,"?")||(0,s.default)(b,"&")))return!1;var o,w,C,S,R,E,p,f;p=b.split("#"),b=p.shift(),p=b.split("?"),b=p.shift();var m=b.match(/^([a-z][a-z0-9+\-.]*):/i),_=!1,T=function(Z){return _=!0,o=Z.toLowerCase(),h.require_valid_protocol&&h.protocols.indexOf(o)===-1?!1:b.substring(m[0].length)};if(m){var M=m[1],O=b.substring(m[0].length),q=O.slice(0,2)==="//";if(q){if(b=T(M),b===!1)return!1}else{var L=O.indexOf("/"),D=L===-1?O:O.substring(0,L),U=D.indexOf("@");if(U!==-1){var F=D.substring(0,U),z=/^[a-zA-Z0-9\-_.%:]*$/,H=z.test(F),W=/%[0-9a-fA-F]{2}/.test(F);if(H&&!W){if(h.require_protocol)return!1}else if(b=T(M),b===!1)return!1}else{var Q=/^[0-9]/.test(O);if(Q){if(h.require_protocol)return!1}else if(b=T(M),b===!1)return!1}}}else if(h.require_protocol)return!1;if(b.slice(0,2)==="//"){if(!_&&!h.allow_protocol_relative_urls)return!1;b=b.slice(2)}if(b==="")return!1;if(p=b.split("/"),b=p.shift(),b===""&&!h.require_host)return!0;if(p=b.split("@"),p.length>1){if(h.disallow_auth||p[0]===""||(w=p.shift(),w.indexOf(":")>=0&&w.split(":").length>2))return!1;var K=w.split(":"),j=a(K,2),$=j[0],B=j[1];if($===""&&B==="")return!1}S=p.join("@"),E=null,f=null;var G=S.match(I);if(G?(C="",f=G[1],E=G[2]||null):(p=S.split(":"),C=p.shift(),p.length&&(E=p.join(":"))),E!==null&&E.length>0){if(R=parseInt(E,10),!/^[0-9]+$/.test(E)||R<=0||R>65535)return!1}else if(h.require_port)return!1;return h.host_whitelist?(0,r.default)(C,h.host_whitelist):C===""&&!h.require_host?!0:!(!(0,c.default)(C)&&!(0,i.default)(C,h)&&(!f||!(0,c.default)(f,6))||(C=C||f,h.host_blacklist&&(0,r.default)(C,h.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(Ct,Ct.exports);var bi=Ct.exports,$t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.localStorageClearIdentity=e.localStorageStoreIdentity=e.localStorageGetIdentity=e.createMessage=e.SINGLE_SIGN_ON_TARGET=e.Action=void 0;var t;(function(l){l.GET="get",l.STORE="store",l.CLEAR="clear",l.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function n(l){return{target:e.SINGLE_SIGN_ON_TARGET,...l}}e.createMessage=n;function r(l){const u=localStorage.getItem(c(l));if(!u)return null;let a;try{a=JSON.parse(u)}catch{return i(l),null}return a.expiration=new Date(a.expiration),a.expiration.getTime()<=Date.now()?(i(l),null):a}e.localStorageGetIdentity=r;function s(l,u){new Date(u.expiration).getTime()>Date.now()&&localStorage.setItem(c(l),JSON.stringify(u))}e.localStorageStoreIdentity=s;function i(l){localStorage.removeItem(c(l))}e.localStorageClearIdentity=i;function c(l){if(!/^0x[a-fA-F0-9]{40}$/.test(l))throw new Error("User must be a valid ethereum address");return`single-sign-on-${l.toLowerCase()}`}})($t);Object.defineProperty(te,"__esModule",{value:!0});te.clearIdentity=te.storeIdentity=te.getIdentity=te.init=void 0;const Si=bi,ne=$t,lr=ne.SINGLE_SIGN_ON_TARGET,bn=500,Ci=5;let Sn=0,Ve="";const _i={protocols:["https"],require_protocol:!0};function Ei(e,t={}){if(!(0,Si.default)(e,{..._i,...t}))throw new Error(`Invalid url: ${e}`);if(Ve)throw new Error("Already initialized");const n=document.createElement("iframe");n.id=lr,n.src=e,n.style.width="0",n.style.height="0",n.style.border="none",n.style.position="absolute",document.body.appendChild(n),Ve=e}te.init=Ei;async function Ii(e){let t;try{t=(await rt(await Ft(),ne.Action.GET,{user:e})).identity??null}catch(n){Wt(n),t=(0,ne.localStorageGetIdentity)(e)}return t}te.getIdentity=Ii;async function Pi(e,t){try{await rt(await Ft(),ne.Action.STORE,{user:e,identity:t})}catch(n){Wt(n),(0,ne.localStorageStoreIdentity)(e,t)}}te.storeIdentity=Pi;async function Ai(e){try{await rt(await Ft(),ne.Action.CLEAR,{user:e})}catch(t){Wt(t),(0,ne.localStorageClearIdentity)(e)}}te.clearIdentity=Ai;async function Ft(){if(!Ve)throw new Error("Not initialized");for(let e=0;e<Ci;e++){const n=document.getElementById(lr)?.contentWindow;if(!n){await Ri(bn);continue}try{await rt(n,ne.Action.PING,{},bn)}catch{continue}return n}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function rt(e,t,n,r=0){Sn++;const s=Sn;let i=null;const c=new Promise((l,u)=>{i=({data:a})=>{!a||a.target!==ne.SINGLE_SIGN_ON_TARGET||a.id!==s||(a.error?u(new Error(a.error)):l(a))},window.addEventListener("message",i)});e.postMessage((0,ne.createMessage)({id:s,action:t,...n}),Ve);try{return await(r?Promise.race([c,new Promise((l,u)=>setTimeout(()=>u(new Error("Did not receive a response in time")),r))]):c)}catch(l){throw l}finally{i&&window.removeEventListener("message",i)}}function Ri(e){return new Promise(t=>setTimeout(t,e))}function Wt(e){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",e.message)}(function(e){var t=Ue&&Ue.__createBinding||(Object.create?function(r,s,i,c){c===void 0&&(c=i);var l=Object.getOwnPropertyDescriptor(s,i);(!l||("get"in l?!s.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(r,c,l)}:function(r,s,i,c){c===void 0&&(c=i),r[c]=s[i]}),n=Ue&&Ue.__exportStar||function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&t(s,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(te,e),n($t,e)})(cr);const Le=e=>e.wallet,Ti=e=>Le(e).address,xi=e=>Le(e).isConnected,Mi=e=>Le(e).isConnecting,ki=e=>Le(e).isDisconnecting,Oi=e=>Le(e).error,{useCallback:Cn}=await k("react"),{useSelector:Ee}=await k("react-redux"),{useConnect:Di,useDisconnect:Li}=await k("wagmi");function dr(){const e=Ee(Ti),t=Ee(xi),n=Ee(Mi),r=Ee(ki),s=Ee(Oi),{connect:i,connectors:c,isPending:l}=Di(),{disconnect:u,isPending:a}=Li(),v=Cn(d=>{i({connector:d})},[i]),g=Cn(()=>{u(),gi()},[u]);return{address:e,isConnected:t,isConnecting:n||l,isDisconnecting:r||a,error:s,connectors:c,connect:v,disconnect:g}}await k("react");await k("react");await k("react-redux");await k("wagmi");await k("react-redux");await k("wagmi");var Ni=class extends or{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new Br({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=$e(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=$e(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=$e(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=$e(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>dn(t,n))}findAll(e={}){return this.getAll().filter(t=>dn(e,t))}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return J.batch(()=>Promise.all(e.map(t=>t.continue().catch(ie))))}};function $e(e){return e.options.scope?.id}var qi=class extends or{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,s=t.queryHash??ar(r,t);let i=this.get(s);return i||(i=new zr({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){J.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>fn(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>fn(e,n)):t}notify(e){J.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){J.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ui=class{#e;#t;#n;#i;#s;#r;#o;#a;constructor(e={}){this.#e=e.queryCache||new qi,this.#t=e.mutationCache||new Ni,this.#n=e.defaultOptions||{},this.#i=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Gr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=hn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,c=Kr(t,i);if(c!==void 0)return this.#e.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return J.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;J.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return J.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=J.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ie).catch(ie)}invalidateQueries(e,t={}){return J.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ie)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ie)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(pn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ie).catch(ie)}fetchInfiniteQuery(e){return e.behavior=gn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ie).catch(ie)}ensureInfiniteQueryData(e){return e.behavior=gn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hn.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(mn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{yn(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(mn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{yn(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ar(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};const{useMemo:ji}=await k("react"),{WagmiProvider:Qi}=await k("wagmi");function $i(){return new Ui({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}})}function Lc({config:e,queryClient:t,children:n}){const r=ji(()=>t??$i(),[t]);return N.jsx(Qi,{config:e,children:N.jsx(Yr,{client:r,children:n})})}const{createSlice:Fi}=await k("@reduxjs/toolkit"),_n={chainId:null,isSupportedNetwork:!1,isNetworkSwitching:!1,error:null},Wi=Fi({name:"network",initialState:_n,reducers:{setChain(e,t){e.chainId=t.payload,e.isSupportedNetwork=t.payload!==null&&ri(t.payload),e.isNetworkSwitching=!1,e.error=null},setSwitching(e,t){e.isNetworkSwitching=t.payload,t.payload&&(e.error=null)},setError(e,t){e.error=t.payload,e.isNetworkSwitching=!1},reset(){return _n}}}),{actions:En,reducer:Hi}=Wi,{createSlice:Bi}=await k("@reduxjs/toolkit"),In={address:null,isConnected:!1,isConnecting:!1,isDisconnecting:!1,error:null},zi=Bi({name:"wallet",initialState:In,reducers:{setAccount(e,t){e.address=t.payload,e.isConnected=t.payload!==null,e.isConnecting=!1,e.error=null},setConnecting(e,t){e.isConnecting=t.payload,t.payload&&(e.error=null)},setDisconnecting(e,t){e.isDisconnecting=t.payload},setError(e,t){e.error=t.payload,e.isConnecting=!1,e.isDisconnecting=!1},reset(){return In}}}),{actions:lt,reducer:Gi}=zi,{useEffect:Pn}=await k("react"),{useDispatch:Ki}=await k("react-redux"),{useAccount:Vi,useChainId:Yi}=await k("wagmi");function Nc({children:e}){const t=Ki(),{address:n,isConnecting:r,isConnected:s,isReconnecting:i}=Vi(),c=Yi();return Pn(()=>{s&&n?(t(lt.setAccount(n)),t(En.setChain(c))):!s&&!r&&!i&&(t(lt.reset()),t(En.setChain(null)))},[t,n,s,r,i,c]),Pn(()=>{t(lt.setConnecting(r||i))},[t,r,i]),N.jsx(N.Fragment,{children:e})}const{createSlice:Ji}=await k("@reduxjs/toolkit"),An={transactions:{},pending:[]},Xi=Ji({name:"transactions",initialState:An,reducers:{addTransaction(e,t){const n=t.payload;e.transactions[n.hash]=n,n.status==="pending"&&!e.pending.includes(n.hash)&&e.pending.push(n.hash)},updateTransaction(e,t){const{hash:n,status:r,error:s}=t.payload,i=e.transactions[n];i&&(i.status=r,i.error=s,r!=="pending"&&(e.pending=e.pending.filter(c=>c!==n)))},removeTransaction(e,t){const n=t.payload;delete e.transactions[n],e.pending=e.pending.filter(r=>r!==n)},reset(){return An}}}),{actions:qc,reducer:Zi}=Xi;var es=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},fr=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(fr||{});function Rn(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}const{createAction:_e,createSlice:ve,createSelector:ts,createAsyncThunk:Tn,combineReducers:ns,createNextState:Ht,isAnyOf:Ye,isAllOf:dt,isAction:rs,isPending:hr,isRejected:Bt,isFulfilled:he,isRejectedWithValue:zt,isAsyncThunkAction:xn,prepareAutoBatched:Ie,SHOULD_AUTOBATCH:pr,isPlainObject:ke,nanoid:gr}=await k("@reduxjs/toolkit");var Mn=ke;function Gt(e,t){if(e===t||!(Mn(e)&&Mn(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let s=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const c of n)i[c]=Gt(e[c],t[c]),s&&(s=e[c]===i[c]);return s?e:i}var kn=e=>[].concat(...e);function is(e){return new RegExp("(^|:)//").test(e)}function ss(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function Kt(e){return e!=null}function On(e){return[...e?.values()??[]].filter(Kt)}function os(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var as=e=>e.replace(/\/$/,""),cs=e=>e.replace(/^\//,"");function us(e,t){if(!e)return t;if(!t)return e;if(is(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=as(e),t=cs(t),`${e}${n}${t}`}function Je(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var Tt=()=>new Map,Dn=(...e)=>fetch(...e),ls=e=>e.status>=200&&e.status<=299,ds=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Ln(e){if(!ke(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var fs=e=>typeof e=="object"&&(ke(e)||Array.isArray(e)||typeof e.toJSON=="function");function hs({baseUrl:e,prepareHeaders:t=g=>g,fetchFn:n=Dn,paramsSerializer:r,isJsonContentType:s=ds,jsonContentType:i="application/json",jsonReplacer:c,timeout:l,responseHandler:u,validateStatus:a,...v}={}){return typeof fetch>"u"&&n===Dn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,y,x)=>{const{getState:A,extra:I,endpoint:P,forced:b,type:h}=y;let o,{url:w,headers:C=new Headers(v.headers),params:S=void 0,responseHandler:R=u??"json",validateStatus:E=a??ls,timeout:p=l,...f}=typeof d=="string"?{url:d}:d,m,_=y.signal;p&&(m=new AbortController,y.signal.addEventListener("abort",m.abort),_=m.signal);let T={...v,signal:_,...f};C=new Headers(Ln(C)),T.headers=await t(C,{getState:A,arg:d,extra:I,endpoint:P,forced:b,type:h,extraOptions:x})||C;const M=fs(T.body);if(T.body!=null&&!M&&typeof T.body!="string"&&T.headers.delete("content-type"),!T.headers.has("content-type")&&M&&T.headers.set("content-type",i),M&&s(T.headers)&&(T.body=JSON.stringify(T.body,c)),T.headers.has("accept")||(R==="json"?T.headers.set("accept","application/json"):R==="text"&&T.headers.set("accept","text/plain, text/html, */*")),S){const W=~w.indexOf("?")?"&":"?",Q=r?r(S):new URLSearchParams(Ln(S));w+=W+Q}w=us(e,w);const O=new Request(w,T);o={request:new Request(w,T)};let L,D=!1,U=m&&setTimeout(()=>{D=!0,m.abort()},p);try{L=await n(O)}catch(W){return{error:{status:D?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(W)},meta:o}}finally{U&&clearTimeout(U),m?.signal.removeEventListener("abort",m.abort)}const F=L.clone();o.response=F;let z,H="";try{let W;if(await Promise.all([g(L,R).then(Q=>z=Q,Q=>W=Q),F.text().then(Q=>H=Q,()=>{})]),W)throw W}catch(W){return{error:{status:"PARSING_ERROR",originalStatus:L.status,data:H,error:String(W)},meta:o}}return E(L,z)?{data:z,meta:o}:{error:{status:L.status,data:z},meta:o}};async function g(d,y){if(typeof y=="function")return y(d);if(y==="content-type"&&(y=s(d.headers)?"json":"text"),y==="json"){const x=await d.text();return x.length?JSON.parse(x):null}return d.text()}}var Nn=class{constructor(e,t=void 0){this.value=e,this.meta=t}},it=_e("__rtkq/focused"),Vt=_e("__rtkq/unfocused"),st=_e("__rtkq/online"),Yt=_e("__rtkq/offline"),ft=!1;function ps(e,t){function n(){const r=()=>e(it()),s=()=>e(Vt()),i=()=>e(st()),c=()=>e(Yt()),l=()=>{window.document.visibilityState==="visible"?r():s()};return ft||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",l,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",i,!1),window.addEventListener("offline",c,!1),ft=!0),()=>{window.removeEventListener("focus",r),window.removeEventListener("visibilitychange",l),window.removeEventListener("online",i),window.removeEventListener("offline",c),ft=!1}}return n()}function ot(e){return e.type==="query"}function gs(e){return e.type==="mutation"}function at(e){return e.type==="infinitequery"}function Xe(e){return ot(e)||at(e)}function Jt(e,t,n,r,s,i){return ms(e)?e(t,n,r,s).filter(Kt).map(xt).map(i):Array.isArray(e)?e.map(xt).map(i):[]}function ms(e){return typeof e=="function"}function xt(e){return typeof e=="string"?{type:e}:e}await k("@reduxjs/toolkit");function ys(e,t){return e.catch(t)}var Oe=Symbol("forceQueryFn"),Mt=e=>typeof e[Oe]=="function";function vs({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:s,context:i,getInternalState:c}){const l=o=>c(o)?.runningQueries,u=o=>c(o)?.runningMutations,{unsubscribeQueryResult:a,removeMutationResult:v,updateSubscriptionOptions:g}=s.internalActions;return{buildInitiateQuery:P,buildInitiateInfiniteQuery:b,buildInitiateMutation:h,getRunningQueryThunk:d,getRunningMutationThunk:y,getRunningQueriesThunk:x,getRunningMutationsThunk:A};function d(o,w){return C=>{const S=i.endpointDefinitions[o],R=e({queryArgs:w,endpointDefinition:S,endpointName:o});return l(C)?.get(R)}}function y(o,w){return C=>u(C)?.get(w)}function x(){return o=>On(l(o))}function A(){return o=>On(u(o))}function I(o,w){const C=(S,{subscribe:R=!0,forceRefetch:E,subscriptionOptions:p,[Oe]:f,...m}={})=>(_,T)=>{const M=e({queryArgs:S,endpointDefinition:w,endpointName:o});let O;const q={...m,type:"query",subscribe:R,forceRefetch:E,subscriptionOptions:p,endpointName:o,originalArgs:S,queryCacheKey:M,[Oe]:f};if(ot(w))O=t(q);else{const{direction:j,initialPageParam:$}=m;O=n({...q,direction:j,initialPageParam:$})}const L=s.endpoints[o].select(S),D=_(O),U=L(T()),{requestId:F,abort:z}=D,H=U.requestId!==F,W=l(_)?.get(M),Q=()=>L(T()),K=Object.assign(f?D.then(Q):H&&!W?Promise.resolve(U):Promise.all([W,D]).then(Q),{arg:S,requestId:F,subscriptionOptions:p,queryCacheKey:M,abort:z,async unwrap(){const j=await K;if(j.isError)throw j.error;return j.data},refetch:()=>_(C(S,{subscribe:!1,forceRefetch:!0})),unsubscribe(){R&&_(a({queryCacheKey:M,requestId:F}))},updateSubscriptionOptions(j){K.subscriptionOptions=j,_(g({endpointName:o,requestId:F,queryCacheKey:M,options:j}))}});if(!W&&!H&&!f){const j=l(_);j.set(M,K),K.then(()=>{j.delete(M)})}return K};return C}function P(o,w){return I(o,w)}function b(o,w){return I(o,w)}function h(o){return(w,{track:C=!0,fixedCacheKey:S}={})=>(R,E)=>{const p=r({type:"mutation",endpointName:o,originalArgs:w,track:C,fixedCacheKey:S}),f=R(p),{requestId:m,abort:_,unwrap:T}=f,M=ys(f.unwrap().then(D=>({data:D})),D=>({error:D})),O=()=>{R(v({requestId:m,fixedCacheKey:S}))},q=Object.assign(M,{arg:f.arg,requestId:m,abort:_,unwrap:T,reset:O}),L=u(R);return L.set(m,q),q.then(()=>{L.delete(m)}),S&&(L.set(S,q),q.then(()=>{L.get(S)===q&&L.delete(S)})),q}}}var mr=class extends es{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},ce=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function ue(e,t,n,r){const s=await e["~standard"].validate(t);if(s.issues)throw new mr(s.issues,t,n,r);return s.value}function qn(e){return e}var Pe=(e={})=>({...e,[pr]:!0});function ws({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:s,assertTagType:i,selectors:c,onSchemaFailure:l,catchSchemaFailure:u,skipSchemaValidation:a}){const v=(f,m,_,T)=>(M,O)=>{const q=n[f],L=r({queryArgs:m,endpointDefinition:q,endpointName:f});if(M(s.internalActions.queryResultPatched({queryCacheKey:L,patches:_})),!T)return;const D=s.endpoints[f].select(m)(O()),U=Jt(q.providesTags,D.data,void 0,m,{},i);M(s.internalActions.updateProvidedBy([{queryCacheKey:L,providedTags:U}]))};function g(f,m,_=0){const T=[m,...f];return _&&T.length>_?T.slice(0,-1):T}function d(f,m,_=0){const T=[...f,m];return _&&T.length>_?T.slice(1):T}const y=(f,m,_,T=!0)=>(M,O)=>{const L=s.endpoints[f].select(m)(O()),D={patches:[],inversePatches:[],undo:()=>M(s.util.patchQueryData(f,m,D.inversePatches,T))};if(L.status==="uninitialized")return D;let U;if("data"in L)if(Qr(L.data)){const[F,z,H]=sr(L.data,_);D.patches.push(...z),D.inversePatches.push(...H),U=F}else U=_(L.data),D.patches.push({op:"replace",path:[],value:U}),D.inversePatches.push({op:"replace",path:[],value:L.data});return D.patches.length===0||M(s.util.patchQueryData(f,m,D.patches,T)),D},x=(f,m,_)=>T=>T(s.endpoints[f].initiate(m,{subscribe:!1,forceRefetch:!0,[Oe]:()=>({data:_})})),A=(f,m)=>f.query&&f[m]?f[m]:qn,I=async(f,{signal:m,abort:_,rejectWithValue:T,fulfillWithValue:M,dispatch:O,getState:q,extra:L})=>{const D=n[f.endpointName],{metaSchema:U,skipSchemaValidation:F=a}=D;try{let z=qn;const H={signal:m,abort:_,dispatch:O,getState:q,extra:L,endpoint:f.endpointName,type:f.type,forced:f.type==="query"?P(f,q()):void 0,queryCacheKey:f.type==="query"?f.queryCacheKey:void 0},W=f.type==="query"?f[Oe]:void 0;let Q;const K=async($,B,G,ae)=>{if(B==null&&$.pages.length)return Promise.resolve({data:$});const Z={queryArg:f.originalArgs,pageParam:B},ge=await j(Z),ee=ae?g:d;return{data:{pages:ee($.pages,ge.data,G),pageParams:ee($.pageParams,B,G)},meta:ge.meta}};async function j($){let B;const{extraOptions:G,argSchema:ae,rawResponseSchema:Z,responseSchema:ge}=D;if(ae&&!ce(F,"arg")&&($=await ue(ae,$,"argSchema",{})),W?B=W():D.query?(z=A(D,"transformResponse"),B=await t(D.query($),H,G)):B=await D.queryFn($,H,G,me=>t(me,H,G)),typeof process<"u",B.error)throw new Nn(B.error,B.meta);let{data:ee}=B;Z&&!ce(F,"rawResponse")&&(ee=await ue(Z,B.data,"rawResponseSchema",B.meta));let se=await z(ee,B.meta,$);return ge&&!ce(F,"response")&&(se=await ue(ge,se,"responseSchema",B.meta)),{...B,data:se}}if(f.type==="query"&&"infiniteQueryOptions"in D){const{infiniteQueryOptions:$}=D,{maxPages:B=1/0}=$;let G;const ae={pages:[],pageParams:[]},Z=c.selectQueryEntry(q(),f.queryCacheKey)?.data,ee=P(f,q())&&!f.direction||!Z?ae:Z;if("direction"in f&&f.direction&&ee.pages.length){const se=f.direction==="backward",qe=(se?yr:kt)($,ee,f.originalArgs);G=await K(ee,qe,B,se)}else{const{initialPageParam:se=$.initialPageParam}=f,me=Z?.pageParams??[],qe=me[0]??se,on=me.length;G=await K(ee,qe,B),W&&(G={data:G.data.pages[0]});for(let an=1;an<on;an++){const Lr=kt($,G.data,f.originalArgs);G=await K(G.data,Lr,B)}}Q=G}else Q=await j(f.originalArgs);return U&&!ce(F,"meta")&&Q.meta&&(Q.meta=await ue(U,Q.meta,"metaSchema",Q.meta)),M(Q.data,Pe({fulfilledTimeStamp:Date.now(),baseQueryMeta:Q.meta}))}catch(z){let H=z;if(H instanceof Nn){let W=A(D,"transformErrorResponse");const{rawErrorResponseSchema:Q,errorResponseSchema:K}=D;let{value:j,meta:$}=H;try{Q&&!ce(F,"rawErrorResponse")&&(j=await ue(Q,j,"rawErrorResponseSchema",$)),U&&!ce(F,"meta")&&($=await ue(U,$,"metaSchema",$));let B=await W(j,$,f.originalArgs);return K&&!ce(F,"errorResponse")&&(B=await ue(K,B,"errorResponseSchema",$)),T(B,Pe({baseQueryMeta:$}))}catch(B){H=B}}try{if(H instanceof mr){const W={endpoint:f.endpointName,arg:f.originalArgs,type:f.type,queryCacheKey:f.type==="query"?f.queryCacheKey:void 0};D.onSchemaFailure?.(H,W),l?.(H,W);const{catchSchemaFailure:Q=u}=D;if(Q)return T(Q(H,W),Pe({baseQueryMeta:H._bqMeta}))}}catch(W){H=W}throw typeof process<"u",console.error(H),H}};function P(f,m){const _=c.selectQueryEntry(m,f.queryCacheKey),T=c.selectConfig(m).refetchOnMountOrArgChange,M=_?.fulfilledTimeStamp,O=f.forceRefetch??(f.subscribe&&T);return O?O===!0||(Number(new Date)-Number(M))/1e3>=O:!1}const b=()=>Tn(`${e}/executeQuery`,I,{getPendingMeta({arg:m}){const _=n[m.endpointName];return Pe({startedTimeStamp:Date.now(),...at(_)?{direction:m.direction}:{}})},condition(m,{getState:_}){const T=_(),M=c.selectQueryEntry(T,m.queryCacheKey),O=M?.fulfilledTimeStamp,q=m.originalArgs,L=M?.originalArgs,D=n[m.endpointName],U=m.direction;return Mt(m)?!0:M?.status==="pending"?!1:P(m,T)||ot(D)&&D?.forceRefetch?.({currentArg:q,previousArg:L,endpointState:M,state:T})?!0:!(O&&!U)},dispatchConditionRejection:!0}),h=b(),o=b(),w=Tn(`${e}/executeMutation`,I,{getPendingMeta(){return Pe({startedTimeStamp:Date.now()})}}),C=f=>"force"in f,S=f=>"ifOlderThan"in f,R=(f,m,_={})=>(T,M)=>{const O=C(_)&&_.force,q=S(_)&&_.ifOlderThan,L=(U=!0)=>{const F={forceRefetch:U,subscribe:!1};return s.endpoints[f].initiate(m,F)},D=s.endpoints[f].select(m)(M());if(O)T(L());else if(q){const U=D?.fulfilledTimeStamp;if(!U){T(L());return}(Number(new Date)-Number(new Date(U)))/1e3>=q&&T(L())}else T(L(!1))};function E(f){return m=>m?.meta?.arg?.endpointName===f}function p(f,m){return{matchPending:dt(hr(f),E(m)),matchFulfilled:dt(he(f),E(m)),matchRejected:dt(Bt(f),E(m))}}return{queryThunk:h,mutationThunk:w,infiniteQueryThunk:o,prefetch:R,updateQueryData:y,upsertQueryData:x,patchQueryData:v,buildMatchThunkActions:p}}function kt(e,{pages:t,pageParams:n},r){const s=t.length-1;return e.getNextPageParam(t[s],t,n[s],n,r)}function yr(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function vr(e,t,n,r){return Jt(n[e.meta.arg.endpointName][t],he(e)?e.payload:void 0,zt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Fe(e,t,n){const r=e[t];r&&n(r)}function De(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Un(e,t,n){const r=e[De(t)];r&&n(r)}var We={};function bs({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:s,apiUid:i,extractRehydrationInfo:c,hasRehydrationInfo:l},assertTagType:u,config:a}){const v=_e(`${e}/resetApiState`);function g(E,p,f,m){E[p.queryCacheKey]??={status:"uninitialized",endpointName:p.endpointName},Fe(E,p.queryCacheKey,_=>{_.status="pending",_.requestId=f&&_.requestId?_.requestId:m.requestId,p.originalArgs!==void 0&&(_.originalArgs=p.originalArgs),_.startedTimeStamp=m.startedTimeStamp;const T=s[m.arg.endpointName];at(T)&&"direction"in p&&(_.direction=p.direction)})}function d(E,p,f,m){Fe(E,p.arg.queryCacheKey,_=>{if(_.requestId!==p.requestId&&!m)return;const{merge:T}=s[p.arg.endpointName];if(_.status="fulfilled",T)if(_.data!==void 0){const{fulfilledTimeStamp:M,arg:O,baseQueryMeta:q,requestId:L}=p;let D=Ht(_.data,U=>T(U,f,{arg:O.originalArgs,baseQueryMeta:q,fulfilledTimeStamp:M,requestId:L}));_.data=D}else _.data=f;else _.data=s[p.arg.endpointName].structuralSharing??!0?Gt($r(_.data)?Fr(_.data):_.data,f):f;delete _.error,_.fulfilledTimeStamp=p.fulfilledTimeStamp})}const y=ve({name:`${e}/queries`,initialState:We,reducers:{removeQueryResult:{reducer(E,{payload:{queryCacheKey:p}}){delete E[p]},prepare:Ie()},cacheEntriesUpserted:{reducer(E,p){for(const f of p.payload){const{queryDescription:m,value:_}=f;g(E,m,!0,{arg:m,requestId:p.meta.requestId,startedTimeStamp:p.meta.timestamp}),d(E,{arg:m,requestId:p.meta.requestId,fulfilledTimeStamp:p.meta.timestamp,baseQueryMeta:{}},_,!0)}},prepare:E=>({payload:E.map(m=>{const{endpointName:_,arg:T,value:M}=m,O=s[_];return{queryDescription:{type:"query",endpointName:_,originalArgs:m.arg,queryCacheKey:r({queryArgs:T,endpointDefinition:O,endpointName:_})},value:M}}),meta:{[pr]:!0,requestId:gr(),timestamp:Date.now()}})},queryResultPatched:{reducer(E,{payload:{queryCacheKey:p,patches:f}}){Fe(E,p,m=>{m.data=un(m.data,f.concat())})},prepare:Ie()}},extraReducers(E){E.addCase(t.pending,(p,{meta:f,meta:{arg:m}})=>{const _=Mt(m);g(p,m,_,f)}).addCase(t.fulfilled,(p,{meta:f,payload:m})=>{const _=Mt(f.arg);d(p,f,m,_)}).addCase(t.rejected,(p,{meta:{condition:f,arg:m,requestId:_},error:T,payload:M})=>{Fe(p,m.queryCacheKey,O=>{if(!f){if(O.requestId!==_)return;O.status="rejected",O.error=M??T}})}).addMatcher(l,(p,f)=>{const{queries:m}=c(f);for(const[_,T]of Object.entries(m))(T?.status==="fulfilled"||T?.status==="rejected")&&(p[_]=T)})}}),x=ve({name:`${e}/mutations`,initialState:We,reducers:{removeMutationResult:{reducer(E,{payload:p}){const f=De(p);f in E&&delete E[f]},prepare:Ie()}},extraReducers(E){E.addCase(n.pending,(p,{meta:f,meta:{requestId:m,arg:_,startedTimeStamp:T}})=>{_.track&&(p[De(f)]={requestId:m,status:"pending",endpointName:_.endpointName,startedTimeStamp:T})}).addCase(n.fulfilled,(p,{payload:f,meta:m})=>{m.arg.track&&Un(p,m,_=>{_.requestId===m.requestId&&(_.status="fulfilled",_.data=f,_.fulfilledTimeStamp=m.fulfilledTimeStamp)})}).addCase(n.rejected,(p,{payload:f,error:m,meta:_})=>{_.arg.track&&Un(p,_,T=>{T.requestId===_.requestId&&(T.status="rejected",T.error=f??m)})}).addMatcher(l,(p,f)=>{const{mutations:m}=c(f);for(const[_,T]of Object.entries(m))(T?.status==="fulfilled"||T?.status==="rejected")&&_!==T?.requestId&&(p[_]=T)})}}),A={tags:{},keys:{}},I=ve({name:`${e}/invalidation`,initialState:A,reducers:{updateProvidedBy:{reducer(E,p){for(const{queryCacheKey:f,providedTags:m}of p.payload){P(E,f);for(const{type:_,id:T}of m){const M=(E.tags[_]??={})[T||"__internal_without_id"]??=[];M.includes(f)||M.push(f)}E.keys[f]=m}},prepare:Ie()}},extraReducers(E){E.addCase(y.actions.removeQueryResult,(p,{payload:{queryCacheKey:f}})=>{P(p,f)}).addMatcher(l,(p,f)=>{const{provided:m}=c(f);for(const[_,T]of Object.entries(m.tags??{}))for(const[M,O]of Object.entries(T)){const q=(p.tags[_]??={})[M||"__internal_without_id"]??=[];for(const L of O)q.includes(L)||q.push(L),p.keys[L]=m.keys[L]}}).addMatcher(Ye(he(t),zt(t)),(p,f)=>{b(p,[f])}).addMatcher(y.actions.cacheEntriesUpserted.match,(p,f)=>{const m=f.payload.map(({queryDescription:_,value:T})=>({type:"UNKNOWN",payload:T,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:_}}));b(p,m)})}});function P(E,p){const f=E.keys[p]??[];for(const m of f){const _=m.type,T=m.id??"__internal_without_id",M=E.tags[_]?.[T];M&&(E.tags[_][T]=M.filter(O=>O!==p))}delete E.keys[p]}function b(E,p){const f=p.map(m=>{const _=vr(m,"providesTags",s,u),{queryCacheKey:T}=m.meta.arg;return{queryCacheKey:T,providedTags:_}});I.caseReducers.updateProvidedBy(E,I.actions.updateProvidedBy(f))}const h=ve({name:`${e}/subscriptions`,initialState:We,reducers:{updateSubscriptionOptions(E,p){},unsubscribeQueryResult(E,p){},internal_getRTKQSubscriptions(){}}}),o=ve({name:`${e}/internalSubscriptions`,initialState:We,reducers:{subscriptionsUpdated:{reducer(E,p){return un(E,p.payload)},prepare:Ie()}}}),w=ve({name:`${e}/config`,initialState:{online:os(),focused:ss(),middlewareRegistered:!1,...a},reducers:{middlewareRegistered(E,{payload:p}){E.middlewareRegistered=E.middlewareRegistered==="conflict"||i!==p?"conflict":!0}},extraReducers:E=>{E.addCase(st,p=>{p.online=!0}).addCase(Yt,p=>{p.online=!1}).addCase(it,p=>{p.focused=!0}).addCase(Vt,p=>{p.focused=!1}).addMatcher(l,p=>({...p}))}}),C=ns({queries:y.reducer,mutations:x.reducer,provided:I.reducer,subscriptions:o.reducer,config:w.reducer}),S=(E,p)=>C(v.match(p)?void 0:E,p),R={...w.actions,...y.actions,...h.actions,...o.actions,...x.actions,...I.actions,resetApiState:v};return{reducer:S,actions:R}}var X=Symbol.for("RTKQ/skipToken"),wr={status:"uninitialized"},jn=Ht(wr,()=>{}),Qn=Ht(wr,()=>{});function Ss({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=h=>jn,s=h=>Qn;return{buildQuerySelector:d,buildInfiniteQuerySelector:y,buildMutationSelector:x,selectInvalidatedBy:A,selectCachedArgsForQuery:I,selectApiState:c,selectQueries:l,selectMutations:a,selectQueryEntry:u,selectConfig:v};function i(h){return{...h,...Rn(h.status)}}function c(h){return h[t]}function l(h){return c(h)?.queries}function u(h,o){return l(h)?.[o]}function a(h){return c(h)?.mutations}function v(h){return c(h)?.config}function g(h,o,w){return C=>{if(C===X)return n(r,w);const S=e({queryArgs:C,endpointDefinition:o,endpointName:h});return n(E=>u(E,S)??jn,w)}}function d(h,o){return g(h,o,i)}function y(h,o){const{infiniteQueryOptions:w}=o;function C(S){const R={...S,...Rn(S.status)},{isLoading:E,isError:p,direction:f}=R,m=f==="forward",_=f==="backward";return{...R,hasNextPage:P(w,R.data,R.originalArgs),hasPreviousPage:b(w,R.data,R.originalArgs),isFetchingNextPage:E&&m,isFetchingPreviousPage:E&&_,isFetchNextPageError:p&&m,isFetchPreviousPageError:p&&_}}return g(h,o,C)}function x(){return h=>{let o;return typeof h=="object"?o=De(h)??X:o=h,n(o===X?s:S=>c(S)?.mutations?.[o]??Qn,i)}}function A(h,o){const w=h[t],C=new Set;for(const S of o.filter(Kt).map(xt)){const R=w.provided.tags[S.type];if(!R)continue;let E=(S.id!==void 0?R[S.id]:kn(Object.values(R)))??[];for(const p of E)C.add(p)}return kn(Array.from(C.values()).map(S=>{const R=w.queries[S];return R?[{queryCacheKey:S,endpointName:R.endpointName,originalArgs:R.originalArgs}]:[]}))}function I(h,o){return Object.values(l(h)).filter(w=>w?.endpointName===o&&w.status!=="uninitialized").map(w=>w.originalArgs)}function P(h,o,w){return o?kt(h,o,w)!=null:!1}function b(h,o,w){return!o||!h.getPreviousPageParam?!1:yr(h,o,w)!=null}}const{formatProdErrorMessage:Cs,formatProdErrorMessage:Uc,formatProdErrorMessage:jc}=await k("@reduxjs/toolkit");var $n=WeakMap?new WeakMap:void 0,Fn=({endpointName:e,queryArgs:t})=>{let n="";const r=$n?.get(t);if(typeof r=="string")n=r;else{const s=JSON.stringify(t,(i,c)=>(c=typeof c=="bigint"?{$bigint:c.toString()}:c,c=ke(c)?Object.keys(c).sort().reduce((l,u)=>(l[u]=c[u],l),{}):c,c));ke(t)&&$n?.set(t,s),n=s}return`${e}(${n})`};function _s(...e){return function(n){const r=cn(a=>n.extractRehydrationInfo?.(a,{reducerPath:n.reducerPath??"api"})),s={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(a){let v=Fn;if("serializeQueryArgs"in a.endpointDefinition){const g=a.endpointDefinition.serializeQueryArgs;v=d=>{const y=g(d);return typeof y=="string"?y:Fn({...d,queryArgs:y})}}else n.serializeQueryArgs&&(v=n.serializeQueryArgs);return v(a)},tagTypes:[...n.tagTypes||[]]},i={endpointDefinitions:{},batch(a){a()},apiUid:gr(),extractRehydrationInfo:r,hasRehydrationInfo:cn(a=>r(a)!=null)},c={injectEndpoints:u,enhanceEndpoints({addTagTypes:a,endpoints:v}){if(a)for(const g of a)s.tagTypes.includes(g)||s.tagTypes.push(g);if(v)for(const[g,d]of Object.entries(v))typeof d=="function"?d(i.endpointDefinitions[g]):Object.assign(i.endpointDefinitions[g]||{},d);return c}},l=e.map(a=>a.init(c,s,i));function u(a){const v=a.endpoints({query:g=>({...g,type:"query"}),mutation:g=>({...g,type:"mutation"}),infiniteQuery:g=>({...g,type:"infinitequery"})});for(const[g,d]of Object.entries(v)){if(a.overrideExisting!==!0&&g in i.endpointDefinitions){if(a.overrideExisting==="throw")throw new Error(Cs(39));typeof process<"u";continue}typeof process<"u",i.endpointDefinitions[g]=d;for(const y of l)y.injectEndpoint(g,d)}return c}return c.injectEndpoints({endpoints:n.endpoints})}}const{formatProdErrorMessage:Es}=await k("@reduxjs/toolkit");function Is(){return function(){throw new Error(Es(33))}}function re(e,...t){return Object.assign(e,...t)}var Ps=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const s=`${e.reducerPath}/subscriptions`;let i=null,c=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:u}=e.internalActions,a=(A,I)=>{if(l.match(I)){const{queryCacheKey:b,requestId:h,options:o}=I.payload,w=A.get(b);return w?.has(h)&&w.set(h,o),!0}if(u.match(I)){const{queryCacheKey:b,requestId:h}=I.payload,o=A.get(b);return o&&o.delete(h),!0}if(e.internalActions.removeQueryResult.match(I))return A.delete(I.payload.queryCacheKey),!0;if(t.pending.match(I)){const{meta:{arg:b,requestId:h}}=I,o=Je(A,b.queryCacheKey,Tt);return b.subscribe&&o.set(h,b.subscriptionOptions??o.get(h)??{}),!0}let P=!1;if(t.rejected.match(I)){const{meta:{condition:b,arg:h,requestId:o}}=I;if(b&&h.subscribe){const w=Je(A,h.queryCacheKey,Tt);w.set(o,h.subscriptionOptions??w.get(o)??{}),P=!0}}return P},v=()=>n.currentSubscriptions,y={getSubscriptions:v,getSubscriptionCount:A=>v().get(A)?.size??0,isRequestSubscribed:(A,I)=>!!v()?.get(A)?.get(I)};function x(A){return JSON.parse(JSON.stringify(Object.fromEntries([...A].map(([I,P])=>[I,Object.fromEntries(P)]))))}return(A,I)=>{if(i||(i=x(n.currentSubscriptions)),e.util.resetApiState.match(A))return i={},n.currentSubscriptions.clear(),c=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(A))return[!1,y];const P=a(n.currentSubscriptions,A);let b=!0;if(P){c||(c=setTimeout(()=>{const w=x(n.currentSubscriptions),[,C]=sr(i,()=>w);I.next(e.internalActions.subscriptionsUpdated(C)),i=w,c=null},500));const h=typeof A.type=="string"&&!!A.type.startsWith(s),o=t.rejected.match(A)&&A.meta.condition&&!!A.meta.arg.subscribe;b=!h&&!o}return[b,!1]}},As=2147483647/1e3-1,Rs=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:s,selectors:{selectQueryEntry:i,selectConfig:c},getRunningQueryThunk:l,mwApi:u})=>{const{removeQueryResult:a,unsubscribeQueryResult:v,cacheEntriesUpserted:g}=t.internalActions,d=Ye(v.match,n.fulfilled,n.rejected,g.match);function y(h){const o=s.currentSubscriptions.get(h);return o?o.size>0:!1}const x={};function A(h){for(const o of h.values())o?.abort?.()}const I=(h,o)=>{const w=o.getState(),C=c(w);if(d(h)){let S;if(g.match(h))S=h.payload.map(R=>R.queryDescription.queryCacheKey);else{const{queryCacheKey:R}=v.match(h)?h.payload:h.meta.arg;S=[R]}P(S,o,C)}if(t.util.resetApiState.match(h)){for(const[S,R]of Object.entries(x))R&&clearTimeout(R),delete x[S];A(s.runningQueries),A(s.runningMutations)}if(r.hasRehydrationInfo(h)){const{queries:S}=r.extractRehydrationInfo(h);P(Object.keys(S),o,C)}};function P(h,o,w){const C=o.getState();for(const S of h){const R=i(C,S);R?.endpointName&&b(S,R.endpointName,o,w)}}function b(h,o,w,C){const R=r.endpointDefinitions[o]?.keepUnusedDataFor??C.keepUnusedDataFor;if(R===1/0)return;const E=Math.max(0,Math.min(R,As));if(!y(h)){const p=x[h];p&&clearTimeout(p),x[h]=setTimeout(()=>{if(!y(h)){const f=i(w.getState(),h);f?.endpointName&&w.dispatch(l(f.endpointName,f.originalArgs))?.abort(),w.dispatch(a({queryCacheKey:h}))}delete x[h]},E*1e3)}}return I},Wn=new Error("Promise never resolved before cacheEntryRemoved."),Ts=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:s,internalState:i,selectors:{selectQueryEntry:c,selectApiState:l}})=>{const u=xn(r),a=xn(s),v=he(r,s),g={};function d(P,b,h){const o=g[P];o?.valueResolved&&(o.valueResolved({data:b,meta:h}),delete o.valueResolved)}function y(P){const b=g[P];b&&(delete g[P],b.cacheEntryRemoved())}const x=(P,b,h)=>{const o=A(P);function w(C,S,R,E){const p=c(h,S),f=c(b.getState(),S);!p&&f&&I(C,E,S,b,R)}if(r.pending.match(P))w(P.meta.arg.endpointName,o,P.meta.requestId,P.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(P))for(const{queryDescription:C,value:S}of P.payload){const{endpointName:R,originalArgs:E,queryCacheKey:p}=C;w(R,p,P.meta.requestId,E),d(p,S,{})}else if(s.pending.match(P))b.getState()[t].mutations[o]&&I(P.meta.arg.endpointName,P.meta.arg.originalArgs,o,b,P.meta.requestId);else if(v(P))d(o,P.payload,P.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(P)||e.internalActions.removeMutationResult.match(P))y(o);else if(e.util.resetApiState.match(P))for(const C of Object.keys(g))y(C)};function A(P){return u(P)?P.meta.arg.queryCacheKey:a(P)?P.meta.arg.fixedCacheKey??P.meta.requestId:e.internalActions.removeQueryResult.match(P)?P.payload.queryCacheKey:e.internalActions.removeMutationResult.match(P)?De(P.payload):""}function I(P,b,h,o,w){const C=n.endpointDefinitions[P],S=C?.onCacheEntryAdded;if(!S)return;const R={},E=new Promise(M=>{R.cacheEntryRemoved=M}),p=Promise.race([new Promise(M=>{R.valueResolved=M}),E.then(()=>{throw Wn})]);p.catch(()=>{}),g[h]=R;const f=e.endpoints[P].select(Xe(C)?b:h),m=o.dispatch((M,O,q)=>q),_={...o,getCacheEntry:()=>f(o.getState()),requestId:w,extra:m,updateCachedData:Xe(C)?M=>o.dispatch(e.util.updateQueryData(P,b,M)):void 0,cacheDataLoaded:p,cacheEntryRemoved:E},T=S(b,_);Promise.resolve(T).catch(M=>{if(M!==Wn)throw M})}return x},xs=({api:e,context:{apiUid:t},reducerPath:n})=>(r,s)=>{e.util.resetApiState.match(r)&&s.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Ms=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:s,api:i,assertTagType:c,refetchQuery:l,internalState:u})=>{const{removeQueryResult:a}=i.internalActions,v=Ye(he(r),zt(r)),g=Ye(he(r,s),Bt(r,s));let d=[];const y=(I,P)=>{v(I)?A(vr(I,"invalidatesTags",n,c),P):g(I)?A([],P):i.util.invalidateTags.match(I)&&A(Jt(I.payload,void 0,void 0,void 0,void 0,c),P)};function x(I){const{queries:P,mutations:b}=I;for(const h of[P,b])for(const o in h)if(h[o]?.status==="pending")return!0;return!1}function A(I,P){const b=P.getState(),h=b[e];if(d.push(...I),h.config.invalidationBehavior==="delayed"&&x(h))return;const o=d;if(d=[],o.length===0)return;const w=i.util.selectInvalidatedBy(b,o);t.batch(()=>{const C=Array.from(w.values());for(const{queryCacheKey:S}of C){const R=h.queries[S],E=Je(u.currentSubscriptions,S,Tt);R&&(E.size===0?P.dispatch(a({queryCacheKey:S})):R.status!=="uninitialized"&&P.dispatch(l(R)))}})}return y},ks=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:s})=>{const{currentPolls:i,currentSubscriptions:c}=s,l=new Set;let u=null;const a=(I,P)=>{(n.internalActions.updateSubscriptionOptions.match(I)||n.internalActions.unsubscribeQueryResult.match(I))&&v(I.payload.queryCacheKey,P),(t.pending.match(I)||t.rejected.match(I)&&I.meta.condition)&&v(I.meta.arg.queryCacheKey,P),(t.fulfilled.match(I)||t.rejected.match(I)&&!I.meta.condition)&&g(I.meta.arg,P),n.util.resetApiState.match(I)&&(x(),u&&(clearTimeout(u),u=null),l.clear())};function v(I,P){l.add(I),u||(u=setTimeout(()=>{for(const b of l)d({queryCacheKey:b},P);l.clear(),u=null},0))}function g({queryCacheKey:I},P){const b=P.getState()[e],h=b.queries[I],o=c.get(I);if(!h||h.status==="uninitialized")return;const{lowestPollingInterval:w,skipPollingIfUnfocused:C}=A(o);if(!Number.isFinite(w))return;const S=i.get(I);S?.timeout&&(clearTimeout(S.timeout),S.timeout=void 0);const R=Date.now()+w;i.set(I,{nextPollTimestamp:R,pollingInterval:w,timeout:setTimeout(()=>{(b.config.focused||!C)&&P.dispatch(r(h)),g({queryCacheKey:I},P)},w)})}function d({queryCacheKey:I},P){const h=P.getState()[e].queries[I],o=c.get(I);if(!h||h.status==="uninitialized")return;const{lowestPollingInterval:w}=A(o);if(!Number.isFinite(w)){y(I);return}const C=i.get(I),S=Date.now()+w;(!C||S<C.nextPollTimestamp)&&g({queryCacheKey:I},P)}function y(I){const P=i.get(I);P?.timeout&&clearTimeout(P.timeout),i.delete(I)}function x(){for(const I of i.keys())y(I)}function A(I=new Map){let P=!1,b=Number.POSITIVE_INFINITY;for(const h of I.values())h.pollingInterval&&(b=Math.min(h.pollingInterval,b),P=h.skipPollingIfUnfocused||P);return{lowestPollingInterval:b,skipPollingIfUnfocused:P}}return a},Os=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const s=hr(n,r),i=Bt(n,r),c=he(n,r),l={};return(a,v)=>{if(s(a)){const{requestId:g,arg:{endpointName:d,originalArgs:y}}=a.meta,x=t.endpointDefinitions[d],A=x?.onQueryStarted;if(A){const I={},P=new Promise((w,C)=>{I.resolve=w,I.reject=C});P.catch(()=>{}),l[g]=I;const b=e.endpoints[d].select(Xe(x)?y:g),h=v.dispatch((w,C,S)=>S),o={...v,getCacheEntry:()=>b(v.getState()),requestId:g,extra:h,updateCachedData:Xe(x)?w=>v.dispatch(e.util.updateQueryData(d,y,w)):void 0,queryFulfilled:P};A(y,o)}}else if(c(a)){const{requestId:g,baseQueryMeta:d}=a.meta;l[g]?.resolve({data:a.payload,meta:d}),delete l[g]}else if(i(a)){const{requestId:g,rejectedWithValue:d,baseQueryMeta:y}=a.meta;l[g]?.reject({error:a.payload??a.error,isUnhandledError:!d,meta:y}),delete l[g]}}},Ds=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:s})=>{const{removeQueryResult:i}=n.internalActions,c=(u,a)=>{it.match(u)&&l(a,"refetchOnFocus"),st.match(u)&&l(a,"refetchOnReconnect")};function l(u,a){const v=u.getState()[e],g=v.queries,d=s.currentSubscriptions;t.batch(()=>{for(const y of d.keys()){const x=g[y],A=d.get(y);if(!A||!x)continue;const I=[...A.values()];(I.some(b=>b[a]===!0)||I.every(b=>b[a]===void 0)&&v.config[a])&&(A.size===0?u.dispatch(i({queryCacheKey:y})):x.status!=="uninitialized"&&u.dispatch(r(x)))}})}return c};function Ls(e){const{reducerPath:t,queryThunk:n,api:r,context:s,getInternalState:i}=e,{apiUid:c}=s,l={invalidateTags:_e(`${t}/invalidateTags`)},u=d=>d.type.startsWith(`${t}/`),a=[xs,Rs,Ms,ks,Ts,Os];return{middleware:d=>{let y=!1;const x=i(d.dispatch),A={...e,internalState:x,refetchQuery:g,isThisApiSliceAction:u,mwApi:d},I=a.map(h=>h(A)),P=Ps(A),b=Ds(A);return h=>o=>{if(!rs(o))return h(o);y||(y=!0,d.dispatch(r.internalActions.middlewareRegistered(c)));const w={...d,next:h},C=d.getState(),[S,R]=P(o,w,C);let E;if(S?E=h(o):E=R,d.getState()[t]&&(b(o,w,C),u(o)||s.hasRehydrationInfo(o)))for(const p of I)p(o,w,C);return E}},actions:l};function g(d){return e.api.endpoints[d.endpointName].initiate(d.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Hn=Symbol(),Ns=({createSelector:e=ts}={})=>({name:Hn,init(t,{baseQuery:n,tagTypes:r,reducerPath:s,serializeQueryArgs:i,keepUnusedDataFor:c,refetchOnMountOrArgChange:l,refetchOnFocus:u,refetchOnReconnect:a,invalidationBehavior:v,onSchemaFailure:g,catchSchemaFailure:d,skipSchemaValidation:y},x){jr();const A=j=>(typeof process<"u",j);Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:st,onOffline:Yt,onFocus:it,onFocusLost:Vt},util:{}});const I=Ss({serializeQueryArgs:i,reducerPath:s,createSelector:e}),{selectInvalidatedBy:P,selectCachedArgsForQuery:b,buildQuerySelector:h,buildInfiniteQuerySelector:o,buildMutationSelector:w}=I;re(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:b});const{queryThunk:C,infiniteQueryThunk:S,mutationThunk:R,patchQueryData:E,updateQueryData:p,upsertQueryData:f,prefetch:m,buildMatchThunkActions:_}=ws({baseQuery:n,reducerPath:s,context:x,api:t,serializeQueryArgs:i,assertTagType:A,selectors:I,onSchemaFailure:g,catchSchemaFailure:d,skipSchemaValidation:y}),{reducer:T,actions:M}=bs({context:x,queryThunk:C,infiniteQueryThunk:S,mutationThunk:R,serializeQueryArgs:i,reducerPath:s,assertTagType:A,config:{refetchOnFocus:u,refetchOnReconnect:a,refetchOnMountOrArgChange:l,keepUnusedDataFor:c,reducerPath:s,invalidationBehavior:v}});re(t.util,{patchQueryData:E,updateQueryData:p,upsertQueryData:f,prefetch:m,resetApiState:M.resetApiState,upsertQueryEntries:M.cacheEntriesUpserted}),re(t.internalActions,M);const O=new WeakMap,q=j=>Je(O,j,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:L,buildInitiateInfiniteQuery:D,buildInitiateMutation:U,getRunningMutationThunk:F,getRunningMutationsThunk:z,getRunningQueriesThunk:H,getRunningQueryThunk:W}=vs({queryThunk:C,mutationThunk:R,infiniteQueryThunk:S,api:t,serializeQueryArgs:i,context:x,getInternalState:q});re(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:z,getRunningQueryThunk:W,getRunningQueriesThunk:H});const{middleware:Q,actions:K}=Ls({reducerPath:s,context:x,queryThunk:C,mutationThunk:R,infiniteQueryThunk:S,api:t,assertTagType:A,selectors:I,getRunningQueryThunk:W,getInternalState:q});return re(t.util,K),re(t,{reducer:T,middleware:Q}),{name:Hn,injectEndpoint(j,$){const B=t,G=B.endpoints[j]??={};ot($)&&re(G,{name:j,select:h(j,$),initiate:L(j,$)},_(C,j)),gs($)&&re(G,{name:j,select:w(),initiate:U(j)},_(R,j)),at($)&&re(G,{name:j,select:o(j,$),initiate:D(j,$)},_(C,j))}}}});await k("@reduxjs/toolkit");const{batch:qs,useDispatch:Us,useSelector:js,useStore:Qs}=await k("react-redux");function He(e){return e.replace(e[0],e[0].toUpperCase())}function $s(e){return e.type==="query"}function Fs(e){return e.type==="mutation"}function br(e){return e.type==="infinitequery"}function Ae(e,...t){return Object.assign(e,...t)}const{formatProdErrorMessage:Qc,formatProdErrorMessage:Ws}=await k("@reduxjs/toolkit"),{useCallback:le,useDebugValue:ht,useEffect:be,useLayoutEffect:Hs,useMemo:Y,useRef:we,useState:Bn}=await k("react"),{shallowEqual:pt}=await k("react-redux");var gt=Symbol();const{useEffect:Bs,useRef:zs,useMemo:Gs}=await k("react");function mt(e){const t=zs(e),n=Gs(()=>Gt(t.current,e),[e]);return Bs(()=>{t.current!==n&&(t.current=n)},[n]),n}const{useEffect:Ks,useRef:Vs}=await k("react"),{shallowEqual:zn}=await k("react-redux");function Be(e){const t=Vs(e);return Ks(()=>{zn(t.current,e)||(t.current=e)},[e]),zn(t.current,e)?t.current:e}var Ys=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Js=Ys(),Xs=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zs=Xs(),eo=()=>Js||Zs?Hs:be,to=eo(),Gn=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:fr.pending}:e;function yt(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var vt=["data","status","isLoading","isSuccess","isError","error"];function no({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:s},unstable__sideEffectsInRender:i,createSelector:c},serializeQueryArgs:l,context:u}){const a=i?o=>o():be;return{buildQueryHooks:P,buildInfiniteQueryHooks:b,buildMutationHook:h,usePrefetch:d};function v(o,w,C){if(w?.endpointName&&o.isUninitialized){const{endpointName:m}=w,_=u.endpointDefinitions[m];C!==X&&l({queryArgs:w.originalArgs,endpointDefinition:_,endpointName:m})===l({queryArgs:C,endpointDefinition:_,endpointName:m})&&(w=void 0)}let S=o.isSuccess?o.data:w?.data;S===void 0&&(S=o.data);const R=S!==void 0,E=o.isLoading,p=(!w||w.isLoading||w.isUninitialized)&&!R&&E,f=o.isSuccess||R&&(E&&!w?.isError||o.isUninitialized);return{...o,data:S,currentData:o.data,isFetching:E,isLoading:p,isSuccess:f}}function g(o,w,C){if(w?.endpointName&&o.isUninitialized){const{endpointName:m}=w,_=u.endpointDefinitions[m];C!==X&&l({queryArgs:w.originalArgs,endpointDefinition:_,endpointName:m})===l({queryArgs:C,endpointDefinition:_,endpointName:m})&&(w=void 0)}let S=o.isSuccess?o.data:w?.data;S===void 0&&(S=o.data);const R=S!==void 0,E=o.isLoading,p=(!w||w.isLoading||w.isUninitialized)&&!R&&E,f=o.isSuccess||E&&R;return{...o,data:S,currentData:o.data,isFetching:E,isLoading:p,isSuccess:f}}function d(o,w){const C=n(),S=Be(w);return le((R,E)=>C(e.util.prefetch(o,R,{...S,...E})),[o,C,S])}function y(o,w,{refetchOnReconnect:C,refetchOnFocus:S,refetchOnMountOrArgChange:R,skip:E=!1,pollingInterval:p=0,skipPollingIfUnfocused:f=!1,...m}={}){const{initiate:_}=e.endpoints[o],T=n(),M=we(void 0);if(!M.current){const Q=T(e.internalActions.internal_getRTKQSubscriptions());M.current=Q}const O=mt(E?X:w),q=Be({refetchOnReconnect:C,refetchOnFocus:S,pollingInterval:p,skipPollingIfUnfocused:f}),L=m.initialPageParam,D=Be(L),U=we(void 0);let{queryCacheKey:F,requestId:z}=U.current||{},H=!1;F&&z&&(H=M.current.isRequestSubscribed(F,z));const W=!H&&U.current!==void 0;return a(()=>{W&&(U.current=void 0)},[W]),a(()=>{const Q=U.current;if(typeof process<"u",O===X){Q?.unsubscribe(),U.current=void 0;return}const K=U.current?.subscriptionOptions;if(!Q||Q.arg!==O){Q?.unsubscribe();const j=T(_(O,{subscriptionOptions:q,forceRefetch:R,...br(u.endpointDefinitions[o])?{initialPageParam:D}:{}}));U.current=j}else q!==K&&Q.updateSubscriptionOptions(q)},[T,_,R,O,q,W,D,o]),[U,T,_,q]}function x(o,w){return(S,{skip:R=!1,selectFromResult:E}={})=>{const{select:p}=e.endpoints[o],f=mt(R?X:S),m=we(void 0),_=Y(()=>c([p(f),(L,D)=>D,L=>f],w,{memoizeOptions:{resultEqualityCheck:pt}}),[p,f]),T=Y(()=>E?c([_],E,{devModeChecks:{identityFunctionCheck:"never"}}):_,[_,E]),M=r(L=>T(L,m.current),pt),O=s(),q=_(O.getState(),m.current);return to(()=>{m.current=q},[q]),M}}function A(o){be(()=>()=>{o.current?.unsubscribe?.(),o.current=void 0},[o])}function I(o){if(!o.current)throw new Error(Ws(38));return o.current.refetch()}function P(o){const w=(R,E={})=>{const[p]=y(o,R,E);return A(p),Y(()=>({refetch:()=>I(p)}),[p])},C=({refetchOnReconnect:R,refetchOnFocus:E,pollingInterval:p=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:m}=e.endpoints[o],_=n(),[T,M]=Bn(gt),O=we(void 0),q=Be({refetchOnReconnect:R,refetchOnFocus:E,pollingInterval:p,skipPollingIfUnfocused:f});a(()=>{const F=O.current?.subscriptionOptions;q!==F&&O.current?.updateSubscriptionOptions(q)},[q]);const L=we(q);a(()=>{L.current=q},[q]);const D=le(function(F,z=!1){let H;return t(()=>{O.current?.unsubscribe(),O.current=H=_(m(F,{subscriptionOptions:L.current,forceRefetch:!z})),M(F)}),H},[_,m]),U=le(()=>{O.current?.queryCacheKey&&_(e.internalActions.removeQueryResult({queryCacheKey:O.current?.queryCacheKey}))},[_]);return be(()=>()=>{O?.current?.unsubscribe()},[]),be(()=>{T!==gt&&!O.current&&D(T,!0)},[T,D]),Y(()=>[D,T,{reset:U}],[D,T,U])},S=x(o,v);return{useQueryState:S,useQuerySubscription:w,useLazyQuerySubscription:C,useLazyQuery(R){const[E,p,{reset:f}]=C(R),m=S(p,{...R,skip:p===gt}),_=Y(()=>({lastArg:p}),[p]);return Y(()=>[E,{...m,reset:f},_],[E,m,f,_])},useQuery(R,E){const p=w(R,E),f=S(R,{selectFromResult:R===X||E?.skip?void 0:Gn,...E}),m=yt(f,...vt);return ht(m),Y(()=>({...f,...p}),[f,p])}}}function b(o){const w=(S,R={})=>{const[E,p,f,m]=y(o,S,R),_=we(m);a(()=>{_.current=m},[m]);const T=le(function(q,L){let D;return t(()=>{E.current?.unsubscribe(),E.current=D=p(f(q,{subscriptionOptions:_.current,direction:L}))}),D},[E,p,f]);A(E);const M=mt(R.skip?X:S),O=le(()=>I(E),[E]);return Y(()=>({trigger:T,refetch:O,fetchNextPage:()=>T(M,"forward"),fetchPreviousPage:()=>T(M,"backward")}),[O,T,M])},C=x(o,g);return{useInfiniteQueryState:C,useInfiniteQuerySubscription:w,useInfiniteQuery(S,R){const{refetch:E,fetchNextPage:p,fetchPreviousPage:f}=w(S,R),m=C(S,{selectFromResult:S===X||R?.skip?void 0:Gn,...R}),_=yt(m,...vt,"hasNextPage","hasPreviousPage");return ht(_),Y(()=>({...m,fetchNextPage:p,fetchPreviousPage:f,refetch:E}),[m,p,f,E])}}}function h(o){return({selectFromResult:w,fixedCacheKey:C}={})=>{const{select:S,initiate:R}=e.endpoints[o],E=n(),[p,f]=Bn();be(()=>()=>{p?.arg.fixedCacheKey||p?.reset()},[p]);const m=le(function(F){const z=E(R(F,{fixedCacheKey:C}));return f(z),z},[E,R,C]),{requestId:_}=p||{},T=Y(()=>S({fixedCacheKey:C,requestId:p?.requestId}),[C,p,S]),M=Y(()=>w?c([T],w):T,[w,T]),O=r(M,pt),q=C==null?p?.arg.originalArgs:void 0,L=le(()=>{t(()=>{p&&f(void 0),C&&E(e.internalActions.removeMutationResult({requestId:_,fixedCacheKey:C}))})},[E,C,p,_]),D=yt(O,...vt,"endpointName");ht(D);const U=Y(()=>({...O,originalArgs:q,reset:L}),[O,q,L]);return Y(()=>[m,U],[m,U])}}}var ro=Symbol(),io=({batch:e=qs,hooks:t={useDispatch:Us,useSelector:js,useStore:Qs},createSelector:n=Wr,unstable__sideEffectsInRender:r=!1,...s}={})=>({name:ro,init(i,{serializeQueryArgs:c},l){const u=i,{buildQueryHooks:a,buildInfiniteQueryHooks:v,buildMutationHook:g,usePrefetch:d}=no({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:c,context:l});return Ae(u,{usePrefetch:d}),Ae(l,{batch:e}),{injectEndpoint(y,x){if($s(x)){const{useQuery:A,useLazyQuery:I,useLazyQuerySubscription:P,useQueryState:b,useQuerySubscription:h}=a(y);Ae(u.endpoints[y],{useQuery:A,useLazyQuery:I,useLazyQuerySubscription:P,useQueryState:b,useQuerySubscription:h}),i[`use${He(y)}Query`]=A,i[`useLazy${He(y)}Query`]=I}if(Fs(x)){const A=g(y);Ae(u.endpoints[y],{useMutation:A}),i[`use${He(y)}Mutation`]=A}else if(br(x)){const{useInfiniteQuery:A,useInfiniteQuerySubscription:I,useInfiniteQueryState:P}=v(y);Ae(u.endpoints[y],{useInfiniteQuery:A,useInfiniteQuerySubscription:I,useInfiniteQueryState:P}),i[`use${He(y)}InfiniteQuery`]=A}}}}});await k("@reduxjs/toolkit");await k("react");await k("react");await k("react");await k("react-redux");var Sr=_s(Ns(),io());const so="/auth",oo="pk_live_CE856A4938B36648",ao="https://notifications.decentraland.zone",co="https://peer.decentraland.zone",uo="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",lo="https://events.decentraland.zone/api",fo="https://realm-provider-ea.decentraland.org/hot-scenes",ho="61570c542c2d66c659492e5b24a41522",po={AUTH_URL:so,MAGIC_API_KEY:oo,NOTIFICATIONS_API_URL:ao,PEER_URL:co,SEGMENT_API_KEY:uo,EVENTS_API_URL:lo,HOT_SCENES_URL:fo,WALLET_CONNECT_PROJECT_ID:ho},go="/auth",mo="pk_live_212568025B158355",yo="https://notifications.decentraland.org",vo="https://peer.decentraland.org",wo="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",bo="https://events.decentraland.org/api",So="https://realm-provider-ea.decentraland.org/hot-scenes",Co="61570c542c2d66c659492e5b24a41522",_o={AUTH_URL:go,MAGIC_API_KEY:mo,NOTIFICATIONS_API_URL:yo,PEER_URL:vo,SEGMENT_API_KEY:wo,EVENTS_API_URL:bo,HOT_SCENES_URL:So,WALLET_CONNECT_PROJECT_ID:Co},Eo="/auth",Io="pk_live_CE856A4938B36648",Po="https://notifications.decentraland.org",Ao="https://peer.decentraland.org",Ro="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",To="https://events.decentraland.org/api",xo="https://realm-provider-ea.decentraland.org/hot-scenes",Mo="61570c542c2d66c659492e5b24a41522",ko={AUTH_URL:Eo,MAGIC_API_KEY:Io,NOTIFICATIONS_API_URL:Po,PEER_URL:Ao,SEGMENT_API_KEY:Ro,EVENTS_API_URL:To,HOT_SCENES_URL:xo,WALLET_CONNECT_PROJECT_ID:Mo};var Oo={VITE_REACT_APP_WEBSITE_VERSION:"0.0.1-24159460470.commit-aefa845",VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24159460470.commit-aefa845",BASE_URL:"https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24159460470.commit-aefa845",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Do=Nr({[ct.DEVELOPMENT]:po,[ct.STAGING]:ko,[ct.PRODUCTION]:_o},{systemEnvVariables:{REACT_APP_DCL_DEFAULT_ENV:Oo.VITE_REACT_APP_DCL_DEFAULT_ENV??"dev"}}),fe=e=>Do.get(e),Lo=5;function xe(e,t){return`${e},${t}`}function No(e,t){for(const[n,r]of t){const s=e.get(xe(n,r));if(s)return s}}function Cr(e){return e.toLowerCase().includes("genesis plaza")}function qo(e){const t=e.find(r=>Cr(r.name)),n=t?xe(t.baseCoords[0],t.baseCoords[1]):"0,0";return{id:t?.id??"genesis-plaza",type:"place",title:t?.name??"Genesis Plaza",image:t?.thumbnail??"",users:t?.usersTotalCount??0,coordinates:n,creatorName:"Decentraland Foundation",isGenesisPlaza:!0}}function Uo(e,t,n=Lo){const r=t.filter(a=>a.usersTotalCount>=n),s=new Map(e.map(a=>[xe(a.x,a.y),a])),i=[],c=new Set,l=new Set;for(const a of r){const v=No(s,a.parcels);v&&!l.has(v.id)&&(i.push({id:v.id,type:"event",title:v.name,image:v.image||"",users:a.usersTotalCount,coordinates:xe(v.x,v.y),creatorAddress:v.user,creatorName:v.user_name||void 0,isGenesisPlaza:!1}),c.add(a.id),l.add(v.id))}i.sort((a,v)=>v.users-a.users);const u=r.filter(a=>!c.has(a.id)).sort((a,v)=>v.usersTotalCount-a.usersTotalCount);for(const a of u){const v=Cr(a.name);i.push({id:a.id,type:"place",title:a.name,image:a.thumbnail,users:a.usersTotalCount,coordinates:xe(a.baseCoords[0],a.baseCoords[1]),...v&&{creatorName:"Decentraland Foundation"},isGenesisPlaza:v})}return i.length===0&&i.push(qo(t)),i}function Kn(e){const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&t.set(n,String(r));return t.toString()}const Ze=Sr({reducerPath:"eventsClient",baseQuery:hs({baseUrl:"/"}),tagTypes:["Events","LiveNow"],keepUnusedDataFor:60,endpoints:e=>({getEvents:e.query({queryFn:async t=>{try{const n=fe("EVENTS_API_URL"),r=Kn(t),s=await fetch(`${n}/events?${r}`);if(!s.ok)throw new Error(`Events API error: ${s.status}`);return{data:(await s.json()).data??[]}}catch(n){return{error:{status:"FETCH_ERROR",error:n instanceof Error?n.message:"Unknown error"}}}},providesTags:["Events"]}),getLiveNowCards:e.query({queryFn:async t=>{try{const n=fe("EVENTS_API_URL"),r=fe("HOT_SCENES_URL"),[s,i]=await Promise.all([fetch(`${n}/events?list=live&limit=20&order=asc&world=false`),fetch(r)]);if(!s.ok||!i.ok)throw new Error("Failed to fetch live events or hot scenes");const[c,l]=await Promise.all([s.json(),i.json()]),u=t&&"minUsers"in t?t.minUsers:void 0;return{data:Uo(c.data??[],l,u)}}catch(n){return{error:{status:"FETCH_ERROR",error:n instanceof Error?n.message:"Unknown error"}}}},providesTags:["LiveNow"]}),getUpcomingEvents:e.query({queryFn:async()=>{try{const t=fe("EVENTS_API_URL"),n=new Date,r=new Date(n.getTime()+24*60*60*1e3),s=Kn({list:"upcoming",limit:10,order:"asc",world:!1,from:n.toISOString(),to:r.toISOString()}),i=await fetch(`${t}/events?${s}`);if(!i.ok)throw new Error(`Events API error: ${i.status}`);return{data:(await i.json()).data??[]}}catch(t){return{error:{status:"FETCH_ERROR",error:t instanceof Error?t.message:"Unknown error"}}}},providesTags:["Events"]})})}),{useGetEventsQuery:$c,useGetLiveNowCardsQuery:jo,useGetUpcomingEventsQuery:Qo}=Ze;async function $o(e){try{const t=fe("PEER_URL"),n=await fetch(`${t}/lambdas/profiles/${e.toLowerCase()}`);return n.ok?await n.json()??null:null}catch{return null}}const et=Sr({reducerPath:"profileClient",baseQuery:Is(),tagTypes:["Profile"],keepUnusedDataFor:300,refetchOnFocus:!1,refetchOnReconnect:!1,endpoints:e=>({getProfile:e.query({queryFn:async t=>{if(!t)return{data:null};try{return{data:await $o(t)}}catch{return{data:null}}},providesTags:(t,n,r)=>r?[{type:"Profile",id:r}]:[]})})}),{useGetProfileQuery:Xt}=et,{combineReducers:Fo,configureStore:Wo}=await k("@reduxjs/toolkit"),Ho=Fo({network:Hi,transactions:Zi,wallet:Gi,[et.reducerPath]:et.reducer,[Ze.reducerPath]:Ze.reducer}),Bo=Wo({reducer:Ho,middleware:e=>e().concat(et.middleware,Ze.middleware),devTools:!1});ps(Bo.dispatch);const Fc={"live_now.title":"Live Now","upcoming.title":"Upcoming","upcoming.starts_in_mins":"Starts in {count} mins","upcoming.starts_in_hours":"Starts in {count} {count, plural, one {hour} other {hours}}","upcoming.by_prefix":"By ","upcoming.unknown_creator":"Unknown","upcoming.copy_link":"Copy link","upcoming.copied":"Copied!","pagination.go_to_page":"Go to page {page}"};var Zt={},zo=Lt;Object.defineProperty(Zt,"__esModule",{value:!0});var _r=Zt.default=void 0,Go=zo(Dt()),Ko=N;_r=Zt.default=(0,Go.default)((0,Ko.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var en={},Vo=Lt;Object.defineProperty(en,"__esModule",{value:!0});var Er=en.default=void 0,Yo=Vo(Dt()),Jo=N;Er=en.default=(0,Yo.default)((0,Jo.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const{Box:Xo,styled:Ir}=await k("decentraland-ui2"),Pr=Ir(Xo)(({theme:e})=>({display:"flex",justifyContent:"center",gap:e.spacing(.75),marginTop:e.spacing(2)})),Ar=Ir("button")(({theme:e,active:t})=>({width:8,height:8,borderRadius:"50%",border:"none",padding:0,cursor:"pointer",backgroundColor:t?e.palette.common.white:"rgba(255, 255, 255, 0.3)",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short})}));function Rr(e,t){return`https://play.decentraland.org/?position=${e},${t}`}function Zo(e){const[t,n]=e.split(",").map(Number);return Number.isNaN(t)||Number.isNaN(n)?[0,0]:[t,n]}const{memo:ea}=await k("react"),{BadgeGroup:ta,EventCard:na,LiveBadge:ra,UserCountBadge:ia}=await k("decentraland-ui2"),sa=`${window.location.origin}/dcl-logo.svg`.replace(/^http:\/\//,"https://"),Tr=ea(({card:e})=>{const t=e.title.toLowerCase().includes("genesis plaza"),{data:n}=Xt(e.creatorAddress,{skip:!e.creatorAddress}),r=n?.avatars?.[0];let s=r?{name:r.name??"",ethAddress:r.ethAddress??"",avatar:r.avatar}:void 0;!s&&e.creatorName&&(s={name:e.creatorName,ethAddress:"",...t&&{avatar:{snapshots:{face256:sa,body:""}}}});const i=()=>{const[c,l]=Zo(e.coordinates);window.open(Rr(c,l),"_blank","noopener,noreferrer")};return N.jsx(na,{image:e.image,sceneName:e.title,coordinates:e.coordinates,avatar:s,onClick:i,leftBadge:N.jsxs(ta,{children:[e.type==="event"&&N.jsx(ra,{}),N.jsx(ia,{count:e.users})]}),leftBadgeTransparent:!0,hideLocation:!0})});Tr.displayName="LiveNowCardItem";const{Box:tn,IconButton:oa,Typography:aa,styled:pe}=await k("decentraland-ui2"),ca=pe("section")(({theme:e})=>({position:"relative",zIndex:10,marginTop:e.spacing(4),padding:e.spacing(4,3),background:"radial-gradient(63.39% 112.69% at 49.33% 50.11%, #A042CD 0%, #32134C 100%)",borderRadius:e.spacing(2),boxShadow:"0px 4px 25px 0px rgba(255, 255, 255, 0.25)",[e.breakpoints.down("sm")]:{padding:e.spacing(3,2)}})),ua=pe(tn)({display:"flex",alignItems:"center",gap:8,marginBottom:24}),la=pe(aa)({fontWeight:600}),Vn=62,Yn=60,da=pe(tn)({position:"relative"}),Jn=pe(oa)(({theme:e,side:t})=>({position:"absolute",top:"50%",transform:"translateY(-50%)",[t]:e.spacing(1),zIndex:2,backgroundColor:"rgba(0, 0, 0, 0.5)",color:e.palette.common.white,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.7)"},[e.breakpoints.down("sm")]:{display:"none"}})),fa=pe(tn)(({theme:e,fadeLeft:t,fadeRight:n})=>{const r=[];return t&&r.push(`linear-gradient(to right, transparent, black ${Yn}px)`),n&&r.push(`linear-gradient(to left, transparent, black ${Yn}px)`),{display:"flex",gap:e.spacing(2),justifyContent:"safe center",alignItems:"stretch",overflowX:"auto",scrollSnapType:"x mandatory",scrollBehavior:"smooth",scrollbarWidth:"none",...r.length>0&&{maskImage:r.join(", "),WebkitMaskImage:r.join(", ")},...r.length>1&&{maskComposite:"intersect",WebkitMaskComposite:"source-in"},"&::-webkit-scrollbar":{display:"none"},"& .MuiCard-root":{minWidth:280,maxWidth:850,maxHeight:420,flex:"1 1 0",containerType:"inline-size",scrollSnapAlign:"start",overflow:"hidden"},"& .MuiCardActionArea-root":{height:"100%"},"&& .MuiCardMedia-root":{height:"min(62.5cqw, 297px)"},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:"min(62.5cqw, 297px)"},"&& .MuiCardActionArea-root:hover .MuiCardContent-root > div:first-of-type > div:last-child":{marginBottom:0},"& .MuiCardContent-root .MuiTypography-h6":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",WebkitLineClamp:"unset",WebkitBoxOrient:"unset"},"& .MuiCardContent-root .MuiBox-root .MuiBox-root:has(.MuiAvatar-root)":{maxWidth:"100%"},[e.breakpoints.down("sm")]:{maskImage:"none",WebkitMaskImage:"none","& .MuiCard-root":{minWidth:"unset",maxWidth:"unset",maxHeight:"none",flex:"0 0 100%"},"&& .MuiCardMedia-root":{height:`calc(62.5cqw - ${Vn}px)`},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:`calc(62.5cqw - ${Vn}px)`},"&& .MuiCardActionArea-root:hover .MuiCardContent-root > div:first-of-type > div:last-child":{marginBottom:0},"&& .MuiCardContent-root > .MuiBox-root:last-child":{display:"flex",opacity:1,transform:"translateY(0)"}}}}),ha=pe(qr)({color:"#E00000"}),{useCallback:de,useEffect:pa,useMemo:ga,useRef:Xn,useState:Re}=await k("react"),{useTranslation:ma}=await k("@dcl/hooks"),Zn=300;function ya(){const{t:e}=ma(),t=ga(()=>{const S=new URLSearchParams(window.location.search).get("minUsers");if(S!==null&&!Number.isNaN(Number(S)))return{minUsers:Number(S)}},[]),{data:n=[]}=jo(t,{pollingInterval:6e4}),[r,s]=Re(0),[i,c]=Re(!1),[l,u]=Re(!1),[a,v]=Re(1),[g,d]=Re(!1),y=Xn(null),x=Xn({isDown:!1,startX:0,scrollLeft:0}),A=de(()=>{const C=y.current;if(!C)return;const S=C.scrollWidth>C.clientWidth,R=S?Math.ceil(C.scrollWidth/C.clientWidth):1;c(C.scrollLeft>0),u(S&&C.scrollLeft+C.clientWidth<C.scrollWidth-1),v(R);const E=C.scrollWidth-C.clientWidth;if(E<=0)s(0);else{const p=C.scrollLeft/E;s(Math.round(p*(R-1)))}},[]);pa(()=>{const C=y.current;if(!C)return;A();const S=new ResizeObserver(A);return S.observe(C),()=>S.disconnect()},[n.length,A]);const I=de(C=>{const S=y.current;if(!S)return;const R=C==="left"?-Zn:Zn;S.scrollBy({left:R,behavior:"smooth"})},[]),P=de(C=>{const S=y.current;S&&(x.current={isDown:!0,startX:C.pageX-S.offsetLeft,scrollLeft:S.scrollLeft},d(!1))},[]),b=de(C=>{if(!x.current.isDown)return;const S=y.current;if(!S)return;C.preventDefault();const E=C.pageX-S.offsetLeft-x.current.startX;Math.abs(E)>5&&d(!0),S.scrollLeft=x.current.scrollLeft-E},[]),h=de(()=>{x.current.isDown=!1},[]),o=de(C=>{g&&C.stopPropagation()},[g]),w=de(C=>{const S=y.current;if(!S)return;const R=S.scrollWidth-S.clientWidth,E=a<=1?0:R*C/(a-1);S.scrollTo({left:E,behavior:"smooth"})},[a]);return n.length===0?null:N.jsxs(ca,{children:[N.jsxs(ua,{children:[N.jsx(ha,{}),N.jsx(la,{variant:"h5",children:e("live_now.title")})]}),N.jsxs(da,{children:[i&&N.jsx(Jn,{side:"left",onClick:()=>I("left"),children:N.jsx(_r,{})}),l&&N.jsx(Jn,{side:"right",onClick:()=>I("right"),children:N.jsx(Er,{})}),N.jsx(fa,{ref:y,onScroll:A,fadeLeft:i,fadeRight:l,onMouseDown:P,onMouseMove:b,onMouseUp:h,onMouseLeave:h,onClickCapture:o,sx:{cursor:g?"grabbing":"grab"},children:n.map(C=>N.jsx(Tr,{card:C},C.id))})]}),a>1&&N.jsx(Pr,{children:Array.from({length:a},(C,S)=>N.jsx(Ar,{active:S===r,onClick:()=>w(S),"aria-label":e("pagination.go_to_page",{page:S+1})},S))})]})}const{useCallback:wt,useEffect:va,useMemo:wa,useState:ba}=await k("react"),{useNotifications:Sa}=await k("@dcl/hooks"),{NotificationActiveTab:Ca}=await k("decentraland-ui2");function _a(e){const{identity:t,isConnected:n,locale:r="en"}=e,s=!!(t&&n),[i,c]=ba(!0),l=fe("NOTIFICATIONS_API_URL")??"https://notifications.decentraland.org";va(()=>{s||c(!0)},[s]);const u=wt(()=>{s&&c(o=>o&&!1)},[s]),{notifications:a,isLoading:v,isModalOpen:g,isNotificationsOnboarding:d,modalActiveTab:y,handleNotificationsOpen:x,handleOnBegin:A,handleOnChangeModalTab:I}=Sa({identity:t??void 0,isNotificationsEnabled:s&&i,initialActiveTab:Ca.NEWEST,notificationsUrl:l,onError:u}),P=wt(()=>{i||c(!0),x()},[x,i]),b=wt((o,w)=>{I(w)},[I]);return{notificationProps:wa(()=>{if(s)return{locale:r,isLoading:v,isOnboarding:d,isOpen:g,items:a,activeTab:y,onClick:P,onClose:P,onBegin:A,onChangeTab:b}},[s,r,v,d,g,a,y,P,A,b])}}const{useEffect:Ea,useState:Ia}=await k("react");function Pa(){const{address:e}=dr(),t=e||void 0,[n,r]=Ia(void 0);return Ea(()=>{if(!t){r(void 0);return}try{const s=cr.localStorageGetIdentity(t.toLowerCase());r(s??void 0)}catch(s){console.error("[useAuthIdentity] Failed to get identity:",s),r(void 0)}},[t]),{identity:n,hasValidIdentity:!!n,address:t}}function Aa(){const e=fe("AUTH_URL")??"/auth";return e.startsWith("http")||window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?e:`${window.location.origin}${e.startsWith("/")?"":"/"}${e}`}function Ra(){const e=window.location.pathname,t=window.location.search;return new URLSearchParams(t).get("redirectTo")??`${e}${t}`}function Ta(e){const t=Ra(),n=Aa();pi(),window.location.replace(`${n}/login?redirectTo=${encodeURIComponent(t)}`)}const{Box:xr,styled:Mr}=await k("decentraland-ui2"),xa=Mr(xr)(()=>({minHeight:"100vh",display:"flex",flexDirection:"column",background:"linear-gradient(180deg, #1A0A2E 0%, #0D0116 100%)"})),Ma=Mr(xr)({flex:1,width:"100%"}),{useCallback:er,useMemo:ka}=await k("react"),{useLocation:Oa}=await k("react-router-dom"),{usePageTracking:Da}=await k("@dcl/hooks"),{Footer:La,FooterLanding:Na,Navbar:qa,NavbarPages:Ua,SupportedLanguage:ja}=await k("decentraland-ui2");function Qa(e){const{children:t}=e,n=Oa(),{address:r,isConnected:s,isConnecting:i,isDisconnecting:c,disconnect:l}=dr();Da(n.pathname);const{identity:u}=Pa(),{notificationProps:a}=_a({identity:u,isConnected:s,locale:"en"}),{data:v}=Xt(r??void 0,{skip:!r}),g=v?.avatars?.[0],d=er(()=>{Ta()},[]),y=er(()=>{l()},[l]),x=ka(()=>({activePage:Ua.EXPLORE,isSignedIn:s,isSigningIn:i,isDisconnecting:c,isActivity:!1,address:r||void 0,avatar:g,notifications:a,onClickSignIn:d,onClickSignOut:y,onClickNavbarItem:A=>{const I=A.currentTarget;I?.href&&(window.location.href=I.href)}}),[s,i,c,r,g,a,d,y]);return N.jsxs(xa,{children:[N.jsx(qa,{...x}),N.jsx(Ma,{children:t}),N.jsx(Na,{}),N.jsx(La,{languages:[{code:ja.EN,name:"English",flag:"🇺🇸"}],hideSocialNetworks:!0})]})}function $a(e,t){const n=Date.now(),s=new Date(e).getTime()-n;if(s<=0)return tr(e);const i=Math.round(s/6e4);if(i<60)return t("upcoming.starts_in_mins",{count:i});const c=Math.round(i/60);return c<24?t("upcoming.starts_in_hours",{count:c}):tr(e)}function tr(e){return new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit",hour12:!0})}var nn={},Fa=Lt;Object.defineProperty(nn,"__esModule",{value:!0});var kr=nn.default=void 0,Wa=Fa(Dt()),nr=N;kr=nn.default=(0,Wa.default)([(0,nr.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,nr.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");const{Box:oe,Typography:rn,styled:V}=await k("decentraland-ui2"),Ha=V(oe)({position:"absolute",bottom:0,left:0,right:0,padding:12,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:4,opacity:0,transform:"translateY(8px)",transition:"opacity 0.2s ease, transform 0.2s ease",flexWrap:"nowrap"}),Ba=V(oe)({display:"flex",alignItems:"center",gap:8,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:6,padding:"2px 8px 2px 4px",height:24,width:"fit-content",maxWidth:"100%",transition:"opacity 0.2s ease"}),za=V(oe)({display:"flex",flexDirection:"row",borderRadius:16,overflow:"hidden",cursor:"pointer",height:140,minWidth:340,backgroundColor:"#7338A073",transition:"transform 0.2s ease, box-shadow 0.2s ease","&:hover":{transform:"translateY(-4px)",boxShadow:"0px 2px 12px 12px rgba(255, 255, 255, 0.3)"},'&:hover [data-role="hover-actions"]':{opacity:1,transform:"translateY(0)"},'&:hover [data-role="time-pill"]':{opacity:0}}),Ga=V(oe)({width:180,height:140,flexShrink:0,overflow:"hidden"}),Ka=V("img")({width:"100%",height:"100%",objectFit:"cover",display:"block"}),Va=V(oe)({display:"flex",flexDirection:"column",justifyContent:"space-between",flex:1,minWidth:0,padding:12,position:"relative"}),Ya=V(oe)({display:"flex",flexDirection:"column",gap:4,overflow:"hidden"}),Ja=V(rn)({fontWeight:600,fontSize:16,lineHeight:1.5,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}),Xa=V(oe)({display:"flex",alignItems:"center",gap:8}),Za=V("img")({width:19,height:19,borderRadius:"50%",border:"1.4px solid rgba(255, 255, 255, 0.5)",flexShrink:0,objectFit:"cover"}),ec=V(oe)({width:19,height:19,borderRadius:"50%",backgroundColor:"#00B453",border:"1.4px solid rgba(255, 255, 255, 0.5)",flexShrink:0}),tc=V(rn)({fontSize:12,lineHeight:1,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),nc=V("span")({color:"#FF2D55"}),rc=V(kr)({fontSize:20,color:"#FCFCFC"}),ic=V(rn)({fontSize:16,fontWeight:600,lineHeight:1.5,color:"#FCFCFC",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),sc=V("button")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ECEBED",border:"none",borderRadius:8,padding:6,flexShrink:0,color:"#161518",cursor:"pointer",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:"#D9D8DB"}})),oc=V(Ur)({fontSize:18,color:"#161518"}),{useCallback:rr,useState:ac}=await k("react"),{useTranslation:cc}=await k("@dcl/hooks"),{Tooltip:uc}=await k("decentraland-ui2");function Ot({event:e}){const{t}=cc(),{data:n}=Xt(e.user,{skip:!e.user}),r=n?.avatars?.[0],s=r?.avatar?.snapshots?.face256,i=r?.name||e.user_name||t("upcoming.unknown_creator"),c=Rr(e.x,e.y),[l,u]=ac(!1),a=rr(()=>{window.open(c,"_blank","noopener,noreferrer")},[c]),v=rr(g=>{g.stopPropagation(),navigator.clipboard?.writeText(c)?.then(()=>{u(!0),setTimeout(()=>u(!1),2e3)}).catch(d=>console.warn("[UpcomingCard] Failed to copy:",d))},[c]);return N.jsxs(za,{onClick:a,children:[e.image&&N.jsx(Ga,{children:N.jsx(Ka,{src:e.image,alt:e.name,loading:"lazy"})}),N.jsxs(Va,{children:[N.jsxs(Ya,{children:[N.jsx(Ja,{children:e.name}),N.jsxs(Xa,{children:[s?N.jsx(Za,{src:s,alt:i}):N.jsx(ec,{}),N.jsxs(tc,{children:[t("upcoming.by_prefix"),N.jsx(nc,{children:i})]})]})]}),N.jsxs(Ba,{"data-role":"time-pill",children:[N.jsx(rc,{}),N.jsx(ic,{children:$a(e.start_at,t)})]}),N.jsx(Ha,{"data-role":"hover-actions",children:N.jsx(uc,{title:t(l?"upcoming.copied":"upcoming.copy_link"),placement:"top",arrow:!0,children:N.jsx(sc,{onClick:v,children:N.jsx(oc,{})})})})]})]})}Ot.displayName="UpcomingCard";const{Box:sn,Typography:lc,styled:Ne}=await k("decentraland-ui2"),dc=Ne("section")(({theme:e})=>({position:"relative",zIndex:9,marginTop:e.spacing(4),marginLeft:e.spacing(-8),marginRight:e.spacing(-8),background:"radial-gradient(63.39% 112.69% at 49.33% 50.11%, #6B2A8A 0%, #1E0A2E 100%)",padding:e.spacing(4,8),[e.breakpoints.down("lg")]:{marginLeft:e.spacing(-4),marginRight:e.spacing(-4),padding:e.spacing(4,4)},[e.breakpoints.down("md")]:{marginLeft:e.spacing(-3),marginRight:e.spacing(-3),padding:e.spacing(4,3)},[e.breakpoints.down("sm")]:{marginLeft:e.spacing(-2),marginRight:e.spacing(-2),padding:e.spacing(3,2)}})),fc=Ne(lc)(({theme:e})=>({fontWeight:500,fontSize:32,lineHeight:1.235,marginBottom:32,[e.breakpoints.down("md")]:{textAlign:"center"}})),hc=Ne(sn)(({theme:e})=>({display:"none",[e.breakpoints.down("md")]:{display:"flex",flexDirection:"column",gap:16}})),pc=Ne(sn)({display:"flex",flexDirection:"column",gap:16,touchAction:"pan-y"}),gc=Ne(sn)(({theme:e})=>({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:24,[e.breakpoints.down("md")]:{display:"none"}})),{useCallback:bt,useEffect:mc,useMemo:ir,useRef:yc,useState:vc}=await k("react"),{useTranslation:wc}=await k("@dcl/hooks"),ze=2,bc=50;function Sc(){const{t:e}=wc(),{data:t=[]}=Qo(),[n,r]=vc(0),s=yc(0),i=ir(()=>Math.ceil(t.length/ze),[t.length]);mc(()=>{n>=i&&r(Math.max(0,i-1))},[n,i]);const c=ir(()=>t.slice(n*ze,n*ze+ze),[t,n]),l=bt(v=>{r(v)},[]),u=bt(v=>{s.current=v.touches[0].clientX},[]),a=bt(v=>{const g=s.current-v.changedTouches[0].clientX;Math.abs(g)<bc||(g>0&&n<i-1?r(d=>d+1):g<0&&n>0&&r(d=>d-1))},[n,i]);return t.length===0?null:N.jsxs(dc,{children:[N.jsx(fc,{variant:"h5",children:e("upcoming.title")}),N.jsx(gc,{children:t.map(v=>N.jsx(Ot,{event:v},v.id))}),N.jsxs(hc,{children:[N.jsx(pc,{onTouchStart:u,onTouchEnd:a,children:c.map(v=>N.jsx(Ot,{event:v},v.id))}),i>1&&N.jsx(Pr,{children:Array.from({length:i},(v,g)=>N.jsx(Ar,{active:g===n,onClick:()=>l(g),"aria-label":e("pagination.go_to_page",{page:g+1})},g))})]})]})}const Cc="https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24159460470.commit-aefa845/assets/top_background-Bnd2vX_F.webp",{Box:Or,styled:Dr}=await k("decentraland-ui2"),_c=Dr(Or)(({standalone:e,theme:t})=>({position:"relative",background:`url(${Cc}) no-repeat top center, radial-gradient(61.64% 109.58% at 50% 54.49%, #A042CD 0%, #270537 100%)`,backgroundSize:"100% auto, 100% auto","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%)",pointerEvents:"none"},overflow:"hidden",padding:t.spacing(5,8,0,8),[t.breakpoints.down("lg")]:{padding:t.spacing(5,4,0,4)},[t.breakpoints.down("md")]:{padding:t.spacing(5,3,0,3)},[t.breakpoints.down("sm")]:{padding:t.spacing(3,2,0,2)},...!e&&{paddingTop:0}})),Ec=Dr(Or)(({standalone:e,theme:t})=>({position:"relative",zIndex:1,display:"flex",flexDirection:"column",gap:t.spacing(4),paddingTop:e?"66px":"96px"}));function Wc({standalone:e=!0}){const t=N.jsxs(_c,{component:"main",standalone:e,children:[N.jsx(Ec,{standalone:e,children:N.jsx(ya,{})}),N.jsx(Sc,{})]});return e?N.jsx(Qa,{children:t}):t}export{Wc as H,Lc as W,Nc as a,Dc as c,Fc as e,fe as g,Oc as m,Bo as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{importShared as Q}from"./__federation_fn_import-
|
|
1
|
+
import{importShared as Q}from"./__federation_fn_import-CMxiPYok.js";import{j as oe}from"./jsx-runtime-B1l0k91v.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var B=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},O,z;let C=class x extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,r={}){super(),O.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const n=r.cause instanceof x?r.cause.details:r.cause?.message?r.cause.message:r.details,a=r.cause instanceof x&&r.cause.docsPath||r.docsPath;this.message=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${this.docsBaseUrl}${a}.html${r.docsSlug?`#${r.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`
|
|
2
2
|
`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=a,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return B(this,O,"m",z).call(this,this,t)}};O=new WeakSet,z=function e(t,r){return r?.(t)?t:t.cause?B(this,O,"m",e).call(this,t.cause,r):t};class he extends C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class $e extends C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class Ke extends C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class _e extends C{constructor(){super("Connector not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotFoundError"})}}class We extends C{constructor({address:t,connector:r}){super(`Account "${t}" not found for connector "${r.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class Ge extends C{constructor({connectionChainId:t,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Qe extends C{constructor({connector:t}){super(`Connector "${t.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."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}class F extends C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Be extends C{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}function ze(e){return e}const{getAddress:E,numberToHex:L,ResourceUnavailableRpcError:A,SwitchChainError:N,UserRejectedRequestError:b,withRetry:le,withTimeout:de}=await Q("viem");H.type="injected";function H(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function n(){const c=e.target;if(typeof c=="function"){const i=c();if(i)return i}return typeof c=="object"?c:typeof c=="string"?{...fe[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(i){return i?.ethereum}}}let a,o,l,s;return c=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},get supportsSimulation(){return!0},type:H.type,async setup(){const i=await this.getProvider();i?.on&&e.target&&(l||(l=this.onConnect.bind(this),i.on("connect",l)),a||(a=this.onAccountsChanged.bind(this),i.on("accountsChanged",a)))},async connect({chainId:i,isReconnecting:h,withCapabilities:y}={}){const d=await this.getProvider();if(!d)throw new F;let m=[];if(h)m=await this.getAccounts().catch(()=>[]);else if(t)try{m=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(u=>E(u)),m.length>0&&(m=await this.getAccounts())}catch(f){const u=f;if(u.code===b.code)throw new b(u);if(u.code===A.code)throw u}try{!m?.length&&!h&&(m=(await d.request({method:"eth_requestAccounts"})).map(p=>E(p))),l&&(d.removeListener("connect",l),l=void 0),a||(a=this.onAccountsChanged.bind(this),d.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),s||(s=this.onDisconnect.bind(this),d.on("disconnect",s));let f=await this.getChainId();return i&&f!==i&&(f=(await this.switchChain({chainId:i}).catch(p=>{if(p.code===b.code)throw p;return{id:f}}))?.id??f),t&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:y?m.map(u=>({address:u,capabilities:{}})):m,chainId:f}}catch(f){const u=f;throw u.code===b.code?new b(u):u.code===A.code?new A(u):u}},async disconnect(){const i=await this.getProvider();if(!i)throw new F;o&&(i.removeListener("chainChanged",o),o=void 0),s&&(i.removeListener("disconnect",s),s=void 0),l||(l=this.onConnect.bind(this),i.on("connect",l));try{await de(()=>i.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){const i=await this.getProvider();if(!i)throw new F;return(await i.request({method:"eth_accounts"})).map(y=>E(y))},async getChainId(){const i=await this.getProvider();if(!i)throw new F;const h=await i.request({method:"eth_chainId"});return Number(h)},async getProvider(){if(typeof window>"u")return;let i;const h=n();return typeof h.provider=="function"?i=h.provider(window):typeof h.provider=="string"?i=j(window,h.provider):i=h.provider,i&&!i.removeListener&&("off"in i&&typeof i.off=="function"?i.removeListener=i.off:i.removeListener=()=>{}),i},async isAuthorized(){try{if(t&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){const d=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",d),!!await this.getProvider()),m=typeof r=="number"?r:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(u=>window.addEventListener("ethereum#initialized",()=>u(d()),{once:!0}))]:[],new Promise(u=>setTimeout(()=>u(d()),m))]))return!0}throw new F}return!!(await le(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:i,chainId:h}){const y=await this.getProvider();if(!y)throw new F;const d=c.chains.find(f=>f.id===h);if(!d)throw new N(new he);const m=new Promise(f=>{const u=p=>{"chainId"in p&&p.chainId===h&&(c.emitter.off("change",u),f())};c.emitter.on("change",u)});try{return await Promise.all([y.request({method:"wallet_switchEthereumChain",params:[{chainId:L(h)}]}).then(async()=>{await this.getChainId()===h&&c.emitter.emit("change",{chainId:h})}),m]),d}catch(f){const u=f;if(u.code===4902||u?.data?.originalError?.code===4902)try{const{default:p,...v}=d.blockExplorers??{};let g;i?.blockExplorerUrls?g=i.blockExplorerUrls:p&&(g=[p.url,...Object.values(v).map(P=>P.url)]);let w;i?.rpcUrls?.length?w=i.rpcUrls:w=[d.rpcUrls.default?.http[0]??""];const S={blockExplorerUrls:g,chainId:L(h),chainName:i?.chainName??d.name,iconUrls:i?.iconUrls,nativeCurrency:i?.nativeCurrency??d.nativeCurrency,rpcUrls:w};return await Promise.all([y.request({method:"wallet_addEthereumChain",params:[S]}).then(async()=>{if(await this.getChainId()===h)c.emitter.emit("change",{chainId:h});else throw new b(new Error("User rejected switch after adding network."))}),m]),d}catch(p){throw new b(p)}throw u.code===b.code?new b(u):new N(u)}},async onAccountsChanged(i){if(i.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const h=(await this.getChainId()).toString();this.onConnect({chainId:h}),t&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:i.map(h=>E(h))})},onChainChanged(i){const h=Number(i);c.emitter.emit("change",{chainId:h})},async onConnect(i){const h=await this.getAccounts();if(h.length===0)return;const y=Number(i.chainId);c.emitter.emit("connect",{accounts:h,chainId:y});const d=await this.getProvider();d&&(l&&(d.removeListener("connect",l),l=void 0),a||(a=this.onAccountsChanged.bind(this),d.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),s||(s=this.onDisconnect.bind(this),d.on("disconnect",s)))},async onDisconnect(i){const h=await this.getProvider();i&&i.code===1013&&h&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),h&&(o&&(h.removeListener("chainChanged",o),o=void 0),s&&(h.removeListener("disconnect",s),s=void 0),l||(l=this.onConnect.bind(this),h.on("connect",l))))}})}const fe={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:j(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return j(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const r=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const n of r)if(t[n])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:j(e,"isPhantom")}}};function j(e,t){function r(a){return typeof t=="function"?t(a):typeof t=="string"?a[t]:!0}const n=e.ethereum;if(n?.providers)return n.providers.find(a=>r(a));if(n&&r(n))return n}var V=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(){}},me=class extends V{#t;#r;#e;constructor(){super(),this.#e=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#e=e,this.#r?.(),this.#r=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},pe=new me,ye={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ve=class{#t=ye;#r=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},I=new ve;function ge(e){setTimeout(e,0)}var we=typeof window>"u"||"Deno"in globalThis;function $(){}function He(e,t){return typeof e=="function"?e(t):e}function be(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ce(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pe(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Ve(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:l,stale:s}=e;if(l){if(n){if(t.queryHash!==Fe(l,t.options))return!1}else if(!R(t.queryKey,l))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function Je(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(T(t.options.mutationKey)!==T(o))return!1}else if(!R(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function Fe(e,t){return(t?.queryKeyHashFn||T)(e)}function T(e){return JSON.stringify(e,(t,r)=>M(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function R(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>R(e[r],t[r])):!1}var Ee=Object.prototype.hasOwnProperty;function J(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=K(e)&&K(t);if(!n&&!(M(e)&&M(t)))return t;const o=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),s=l.length,c=n?new Array(s):{};let i=0;for(let h=0;h<s;h++){const y=n?h:l[h],d=e[y],m=t[y];if(d===m){c[y]=d,(n?h<o:Ee.call(e,y))&&i++;continue}if(d===null||m===null||typeof d!="object"||typeof m!="object"){c[y]=m;continue}const f=J(d,m,r+1);c[y]=f,f===d&&i++}return o===s&&i===o?e:c}function Ze(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function K(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M(e){if(!_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!_(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _(e){return Object.prototype.toString.call(e)==="[object Object]"}function je(e){return new Promise(t=>{I.setTimeout(t,e)})}function Oe(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?J(e,t):t}function Ae(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function xe(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Z=Symbol();function X(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Z?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xe(e,t){return typeof e=="function"?e(...t):!!e}function Ie(e,t,r){let n=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),n||(n=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var Y=(()=>{let e=()=>we;return{isServer(){return e()},setIsServer(t){e=t}}})();function Te(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}var Me=ge;function qe(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=Me;const o=s=>{t?e.push(s):a(()=>{r(s)})},l=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(c=>{r(c)})})})};return{batch:s=>{let c;t++;try{c=s()}finally{t--,t||l()}return c},batchCalls:s=>(...c)=>{o(()=>{s(...c)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var ee=qe(),Ue=class extends V{#t=!0;#r;#e;constructor(){super(),this.#e=e=>{if(typeof window<"u"&&window.addEventListener){const 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.#r||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#e=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},te=new Ue;function Re(e){return Math.min(1e3*2**e,3e4)}function re(e){return(e??"online")==="online"?te.isOnline():!0}var q=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t=!1,r=0,n;const a=Te(),o=()=>a.status!=="pending",l=u=>{if(!o()){const p=new q(u);d(p),e.onCancel?.(p)}},s=()=>{t=!0},c=()=>{t=!1},i=()=>pe.isFocused()&&(e.networkMode==="always"||te.isOnline())&&e.canRun(),h=()=>re(e.networkMode)&&e.canRun(),y=u=>{o()||(n?.(),a.resolve(u))},d=u=>{o()||(n?.(),a.reject(u))},m=()=>new Promise(u=>{n=p=>{(o()||i())&&u(p)},e.onPause?.()}).then(()=>{n=void 0,o()||e.onContinue?.()}),f=()=>{if(o())return;let u;const p=r===0?e.initialPromise:void 0;try{u=p??e.fn()}catch(v){u=Promise.reject(v)}Promise.resolve(u).then(y).catch(v=>{if(o())return;const g=e.retry??(Y.isServer()?0:3),w=e.retryDelay??Re,S=typeof w=="function"?w(r,v):w,P=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!P){d(v);return}r++,e.onFail?.(r,v),je(S).then(()=>i()?void 0:m()).then(()=>{t?d(v):f()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(n?.(),a),cancelRetry:s,continueRetry:c,canStart:h,start:()=>(h()?f():m().then(f),a)}}var se=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),be(this.gcTime)&&(this.#t=I.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Y.isServer()?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(I.clearTimeout(this.#t),this.#t=void 0)}},Ye=class extends se{#t;#r;#e;#s;#n;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#e=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=G(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=G(this.options);t.data!==void 0&&(this.setState(W(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(e,t){const r=Oe(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then($).catch($):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Se(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pe(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ce(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#e.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.#n&&(this.#a||this.#c()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const s=this.observers.find(c=>c.options.queryFn);s&&this.setOptions(s.options)}const r=new AbortController,n=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},a=()=>{const s=X(this.options,t),i=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(h),h})();return this.#a=!1,this.options.persister?this.options.persister(s,i,this):s(i)},l=(()=>{const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return n(s),s})();this.options.behavior?.onFetch(l,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#n=ne({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:s=>{s instanceof q&&s.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(s,c)=>{this.#i({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const s=await this.#n.start();if(s===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#e.config.onSuccess?.(s,this),this.#e.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof q){if(s.silent)return this.#n.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#i({type:"error",error:s}),this.#e.config.onError?.(s,this),this.#e.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...De(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...W(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?n:void 0,n;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:e})})}};function De(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:re(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function W(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function G(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function et(e){return{onFetch:(t,r)=>{const n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},c=0;const i=async()=>{let h=!1;const y=f=>{Ie(f,()=>t.signal,()=>h=!0)},d=X(t.options,t.fetchOptions),m=async(f,u,p)=>{if(h)return Promise.reject();if(u==null&&f.pages.length)return Promise.resolve(f);const g=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:u,direction:p?"backward":"forward",meta:t.options.meta};return y(k),k})(),w=await d(g),{maxPages:S}=t.options,P=p?xe:Ae;return{pages:P(f.pages,w,S),pageParams:P(f.pageParams,u,S)}};if(a&&o.length){const f=a==="backward",u=f?ie:U,p={pages:o,pageParams:l},v=u(n,p);s=await m(p,v,f)}else{const f=e??o.length;do{const u=c===0?l[0]??n.initialPageParam:U(n,s);if(c>0&&u==null)break;s=await m(s,u),c++}while(c<f)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=i}}}function U(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function ie(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function tt(e,t){return t?U(e,t)!=null:!1}function rt(e,t){return!t||!e.getPreviousPageParam?!1:ie(e,t)!=null}var nt=class extends se{#t;#r;#e;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#r=[],this.state=e.state||ke(),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.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#n({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",a=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:a}),this.#e.config.onMutate&&await this.#e.config.onMutate(e,this,r);const l=await this.options.onMutate?.(e,r);l!==this.state.context&&this.#n({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#s.start();return await this.#e.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#n({type:"success",data:o}),o}catch(o){try{await this.#e.config.onError?.(o,e,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onError?.(o,e,this.state.context,r)}catch(l){Promise.reject(l)}try{await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,r)}catch(l){Promise.reject(l)}throw this.#n({type:"error",error:o}),o}finally{this.#e.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ee.batch(()=>{this.#r.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function ke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}const D=await Q("react");var ae=D.createContext(void 0),st=e=>{const t=D.useContext(ae);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},it=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),oe.jsx(ae.Provider,{value:e,children:t}));export{Y as A,be as B,he as C,Ce as D,I as E,De as F,Oe as G,tt as H,rt as I,ke as J,Xe as K,st as L,nt as M,C as N,J as O,F as P,Ye as Q,_e as R,V as S,$ as a,Ve as b,ze as c,He as d,et as e,pe as f,T as g,Fe as h,H as i,it as j,$e as k,Qe as l,Je as m,ee as n,te as o,R as p,Ke as q,Pe as r,Z as s,Ge as t,We as u,Be as v,ce as w,Te as x,Se as y,Ze as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as o}from"./__federation_fn_import-
|
|
1
|
+
import{importShared as o}from"./__federation_fn_import-CMxiPYok.js";import{j as e}from"./jsx-runtime-B1l0k91v.js";import{s as t,e as a,H as r}from"./HomePage-5SGvbFJ_.js";const{Provider:s}=await o("react-redux"),{Route:n,Routes:i}=await o("react-router-dom"),{TranslationProvider:l}=await o("@dcl/hooks");function x(){return e.jsx(s,{store:t,children:e.jsx(l,{locale:"en",translations:{en:a},fallbackLocale:"en",children:e.jsx(i,{children:e.jsx(n,{path:"/",element:e.jsx(r,{standalone:!1})})})})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const O="[0-9A-Za-z-]+",b=`(?:\\+(${O}(?:\\.${O})*))`,h="0|[1-9]\\d*",w="[0-9]+",F="\\d*[a-zA-Z-][a-zA-Z0-9-]*",k=`(?:${w}|${F})`,M=`(?:-?(${k}(?:\\.${k})*))`,E=`(?:${h}|${F})`,K=`(?:-(${E}(?:\\.${E})*))`,v=`${h}|x|X|\\*`,_=`[v=\\s]*(${v})(?:\\.(${v})(?:\\.(${v})(?:${K})?${b}?)?)?`,N=`^\\s*(${_})\\s+-\\s+(${_})\\s*$`,m=`(${w})\\.(${w})\\.(${w})`,Q=`[v=\\s]*${m}${M}?${b}?`,C="((?:<|>)?=?)",W=`(\\s*)${C}\\s*(${Q}|${_})`,Z="(?:~>?)",Y=`(\\s*)${Z}\\s+`,B="(?:\\^)",j=`(\\s*)${B}\\s+`,A="(<|>)?=?\\s*\\*",ee=`^${B}${_}$`,re=`(${h})\\.(${h})\\.(${h})`,te=`v?${re}${K}?${b}?`,ne=`^${Z}${_}$`,ie=`^${C}\\s*${_}$`,se=`^${C}\\s*(${te})$|^$`,ue="^\\s*>=\\s*0.0.0\\s*$";function d(e){return new RegExp(e)}function o(e){return!e||e.toLowerCase()==="x"||e==="*"}function G(...e){return n=>e.reduce((i,r)=>r(i),n)}function S(e){return e.match(d(se))}function X(e,n,i,r){const t=`${e}.${n}.${i}`;return r?`${t}-${r}`:t}function ae(e){return e.replace(d(N),(n,i,r,t,s,u,a,c,$,l,R,p)=>(o(r)?i="":o(t)?i=`>=${r}.0.0`:o(s)?i=`>=${r}.${t}.0`:i=`>=${i}`,o($)?c="":o(l)?c=`<${+$+1}.0.0-0`:o(R)?c=`<${$}.${+l+1}.0-0`:p?c=`<=${$}.${l}.${R}-${p}`:c=`<=${c}`,`${i} ${c}`.trim()))}function oe(e){return e.replace(d(W),"$1$2$3")}function ce(e){return e.replace(d(Y),"$1~")}function $e(e){return e.replace(d(j),"$1^")}function fe(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ee),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?r==="0"?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:`>=${r}.${t}.0 <${+r+1}.0.0-0`:u?r==="0"?t==="0"?`>=${r}.${t}.${s}-${u} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s}-${u} <${+r+1}.0.0-0`:r==="0"?t==="0"?`>=${r}.${t}.${s} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${+r+1}.0.0-0`)).join(" ")}function le(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ne),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:u?`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`)).join(" ")}function de(e){return e.split(/\s+/).map(n=>n.trim().replace(d(ie),(i,r,t,s,u,a)=>{const c=o(t),$=c||o(s),l=$||o(u);return r==="="&&l&&(r=""),a="",c?r===">"||r==="<"?"<0.0.0-0":"*":r&&l?($&&(s=0),u=0,r===">"?(r=">=",$?(t=+t+1,s=0,u=0):(s=+s+1,u=0)):r==="<="&&(r="<",$?t=+t+1:s=+s+1),r==="<"&&(a="-0"),`${r+t}.${s}.${u}${a}`):$?`>=${t}.0.0${a} <${+t+1}.0.0-0`:l?`>=${t}.${s}.0${a} <${t}.${+s+1}.0-0`:i})).join(" ")}function pe(e){return e.trim().replace(d(A),"")}function _e(e){return e.trim().replace(d(ue),"")}function g(e,n){return e=+e||e,n=+n||n,e>n?1:e===n?0:-1}function he(e,n){const{preRelease:i}=e,{preRelease:r}=n;if(i===void 0&&r)return 1;if(i&&r===void 0)return-1;if(i===void 0&&r===void 0)return 0;for(let t=0,s=i.length;t<=s;t++){const u=i[t],a=r[t];if(u!==a)return u===void 0&&a===void 0?0:u?a?g(u,a):-1:1}return 0}function V(e,n){return g(e.major,n.major)||g(e.minor,n.minor)||g(e.patch,n.patch)||he(e,n)}function x(e,n){return e.version===n.version}function Re(e,n){switch(e.operator){case"":case"=":return x(e,n);case">":return V(e,n)<0;case">=":return x(e,n)||V(e,n)<0;case"<":return V(e,n)>0;case"<=":return x(e,n)||V(e,n)>0;case void 0:return!0;default:return!1}}function Ve(e){return G(fe,le,de,pe)(e)}function we(e){return G(ae,oe,ce,$e)(e.trim()).split(/\s+/).join(" ")}function ge(e,n){if(!e)return!1;const t=we(n).split(" ").map(p=>Ve(p)).join(" ").split(/\s+/).map(p=>_e(p)),s=S(e);if(!s)return!1;const[,u,,a,c,$,l]=s,R={operator:u,version:X(a,c,$,l),major:a,minor:c,patch:$,preRelease:l?.split(".")};for(const p of t){const T=S(p);if(!T)return!1;const[,D,,U,P,I,L]=T,J={operator:D,version:X(U,P,I,L),major:U,minor:P,patch:I,preRelease:L?.split(".")};if(!Re(J,R))return!1}return!0}const z={},y={react:{get:()=>()=>f(new URL("__federation_shared_react-B3tlNTLg.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-dom":{get:()=>()=>f(new URL("__federation_shared_react-dom-Dsn5WX9N.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-router-dom":{get:()=>()=>f(new URL("__federation_shared_react-router-dom-
|
|
1
|
+
const O="[0-9A-Za-z-]+",b=`(?:\\+(${O}(?:\\.${O})*))`,h="0|[1-9]\\d*",w="[0-9]+",F="\\d*[a-zA-Z-][a-zA-Z0-9-]*",k=`(?:${w}|${F})`,M=`(?:-?(${k}(?:\\.${k})*))`,E=`(?:${h}|${F})`,K=`(?:-(${E}(?:\\.${E})*))`,v=`${h}|x|X|\\*`,_=`[v=\\s]*(${v})(?:\\.(${v})(?:\\.(${v})(?:${K})?${b}?)?)?`,N=`^\\s*(${_})\\s+-\\s+(${_})\\s*$`,m=`(${w})\\.(${w})\\.(${w})`,Q=`[v=\\s]*${m}${M}?${b}?`,C="((?:<|>)?=?)",W=`(\\s*)${C}\\s*(${Q}|${_})`,Z="(?:~>?)",Y=`(\\s*)${Z}\\s+`,B="(?:\\^)",j=`(\\s*)${B}\\s+`,A="(<|>)?=?\\s*\\*",ee=`^${B}${_}$`,re=`(${h})\\.(${h})\\.(${h})`,te=`v?${re}${K}?${b}?`,ne=`^${Z}${_}$`,ie=`^${C}\\s*${_}$`,se=`^${C}\\s*(${te})$|^$`,ue="^\\s*>=\\s*0.0.0\\s*$";function d(e){return new RegExp(e)}function o(e){return!e||e.toLowerCase()==="x"||e==="*"}function G(...e){return n=>e.reduce((i,r)=>r(i),n)}function S(e){return e.match(d(se))}function X(e,n,i,r){const t=`${e}.${n}.${i}`;return r?`${t}-${r}`:t}function ae(e){return e.replace(d(N),(n,i,r,t,s,u,a,c,$,l,R,p)=>(o(r)?i="":o(t)?i=`>=${r}.0.0`:o(s)?i=`>=${r}.${t}.0`:i=`>=${i}`,o($)?c="":o(l)?c=`<${+$+1}.0.0-0`:o(R)?c=`<${$}.${+l+1}.0-0`:p?c=`<=${$}.${l}.${R}-${p}`:c=`<=${c}`,`${i} ${c}`.trim()))}function oe(e){return e.replace(d(W),"$1$2$3")}function ce(e){return e.replace(d(Y),"$1~")}function $e(e){return e.replace(d(j),"$1^")}function fe(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ee),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?r==="0"?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:`>=${r}.${t}.0 <${+r+1}.0.0-0`:u?r==="0"?t==="0"?`>=${r}.${t}.${s}-${u} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s}-${u} <${+r+1}.0.0-0`:r==="0"?t==="0"?`>=${r}.${t}.${s} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${+r+1}.0.0-0`)).join(" ")}function le(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ne),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:u?`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`)).join(" ")}function de(e){return e.split(/\s+/).map(n=>n.trim().replace(d(ie),(i,r,t,s,u,a)=>{const c=o(t),$=c||o(s),l=$||o(u);return r==="="&&l&&(r=""),a="",c?r===">"||r==="<"?"<0.0.0-0":"*":r&&l?($&&(s=0),u=0,r===">"?(r=">=",$?(t=+t+1,s=0,u=0):(s=+s+1,u=0)):r==="<="&&(r="<",$?t=+t+1:s=+s+1),r==="<"&&(a="-0"),`${r+t}.${s}.${u}${a}`):$?`>=${t}.0.0${a} <${+t+1}.0.0-0`:l?`>=${t}.${s}.0${a} <${t}.${+s+1}.0-0`:i})).join(" ")}function pe(e){return e.trim().replace(d(A),"")}function _e(e){return e.trim().replace(d(ue),"")}function g(e,n){return e=+e||e,n=+n||n,e>n?1:e===n?0:-1}function he(e,n){const{preRelease:i}=e,{preRelease:r}=n;if(i===void 0&&r)return 1;if(i&&r===void 0)return-1;if(i===void 0&&r===void 0)return 0;for(let t=0,s=i.length;t<=s;t++){const u=i[t],a=r[t];if(u!==a)return u===void 0&&a===void 0?0:u?a?g(u,a):-1:1}return 0}function V(e,n){return g(e.major,n.major)||g(e.minor,n.minor)||g(e.patch,n.patch)||he(e,n)}function x(e,n){return e.version===n.version}function Re(e,n){switch(e.operator){case"":case"=":return x(e,n);case">":return V(e,n)<0;case">=":return x(e,n)||V(e,n)<0;case"<":return V(e,n)>0;case"<=":return x(e,n)||V(e,n)>0;case void 0:return!0;default:return!1}}function Ve(e){return G(fe,le,de,pe)(e)}function we(e){return G(ae,oe,ce,$e)(e.trim()).split(/\s+/).join(" ")}function ge(e,n){if(!e)return!1;const t=we(n).split(" ").map(p=>Ve(p)).join(" ").split(/\s+/).map(p=>_e(p)),s=S(e);if(!s)return!1;const[,u,,a,c,$,l]=s,R={operator:u,version:X(a,c,$,l),major:a,minor:c,patch:$,preRelease:l?.split(".")};for(const p of t){const T=S(p);if(!T)return!1;const[,D,,U,P,I,L]=T,J={operator:D,version:X(U,P,I,L),major:U,minor:P,patch:I,preRelease:L?.split(".")};if(!Re(J,R))return!1}return!0}const z={},y={react:{get:()=>()=>f(new URL("__federation_shared_react-B3tlNTLg.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-dom":{get:()=>()=>f(new URL("__federation_shared_react-dom-Dsn5WX9N.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-router-dom":{get:()=>()=>f(new URL("__federation_shared_react-router-dom-BWsWSQhC.js",import.meta.url).href),import:!0,requiredVersion:"^7.9.0"},"@emotion/react":{get:()=>()=>f(new URL("__federation_shared_@emotion/react-Ch4_ck50.js",import.meta.url).href),import:!0,requiredVersion:"^11.14.0"},"@emotion/styled":{get:()=>()=>f(new URL("__federation_shared_@emotion/styled-BXKWB2SL.js",import.meta.url).href),import:!0,requiredVersion:"^11.14.0"},"@reduxjs/toolkit":{get:()=>()=>f(new URL("__federation_shared_@reduxjs/toolkit-R1Ell7gI.js",import.meta.url).href),import:!0,requiredVersion:"^2.9.0"},"react-redux":{get:()=>()=>f(new URL("__federation_shared_react-redux-CbbKlRz2.js",import.meta.url).href),import:!0,requiredVersion:"^9.2.0"},wagmi:{get:()=>()=>f(new URL("__federation_shared_wagmi-DEqeYx75.js",import.meta.url).href),import:!0,requiredVersion:"^2.19.0"},viem:{get:()=>()=>f(new URL("__federation_shared_viem-DGF3gkeC.js",import.meta.url).href),import:!0,requiredVersion:"^2.44.0"},"@dcl/hooks":{get:()=>()=>f(new URL("__federation_shared_@dcl/hooks-CdmO_mj8.js",import.meta.url).href),import:!0,requiredVersion:"^1.2.0"},"decentraland-ui2":{get:()=>()=>f(new URL("__federation_shared_decentraland-ui2-CPPGLZ16.js",import.meta.url).href),import:!0,requiredVersion:"^2.0.0"},"@dcl/schemas":{get:()=>()=>f(new URL("__federation_shared_@dcl/schemas-FcJQcJ28.js",import.meta.url).href),import:!0,requiredVersion:"^25.2.0"}},q=Object.create(null);async function ve(e,n="default"){return q[e]?new Promise(i=>i(q[e])):await qe(e,n)||Le(e)}async function f(e){return z[e]??=import(e),z[e]}async function qe(e,n){let i=null;if(globalThis?.__federation_shared__?.[n]?.[e]){const r=globalThis.__federation_shared__[n][e],t=y[e]?.requiredVersion;if(!!t){const u=Object.keys(r).find(a=>ge(a,t));u?i=await(await r[u].get())():console.log(`provider support ${e}(${u}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`)}else{const u=Object.keys(r)[0];i=await(await r[u].get())()}}if(i)return H(i,e)}async function Le(e){if(y[e]?.import){let n=await(await y[e].get())();return H(n,e)}else console.error("consumer config import=false,so cant use callback shared module")}function H(e,n){return typeof e.default=="function"?(Object.keys(e).forEach(i=>{i!=="default"&&(e.default[i]=e[i])}),q[n]=e.default,e.default):(e.default&&(e=Object.assign({},e.default,e)),q[n]=e,e)}export{ve as importShared,Le as importSharedLocal,qe as importSharedRuntime};
|