@dcl/explore-site 0.0.1-24138829632.commit-0946e16

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.
Files changed (158) hide show
  1. package/assets/HomePage-CbNrtXMa.js +3 -0
  2. package/assets/QueryClientProvider-DUSjZ_J_.js +2 -0
  3. package/assets/RoobertPRO-Bold-DDyOqNrI.woff2 +0 -0
  4. package/assets/RoobertPRO-Bold-zQ2qeH97.ttf +0 -0
  5. package/assets/SensorsRounded-Ci-z6t1A.js +15 -0
  6. package/assets/___vite-browser-external_commonjs-proxy-BqV5D26a.js +1 -0
  7. package/assets/__federation_expose_App-BckrSixU.js +1 -0
  8. package/assets/__federation_fn_import-WDa0gv1I.js +1 -0
  9. package/assets/__federation_shared_@dcl/hooks-BmGk-LAU.js +535 -0
  10. package/assets/__federation_shared_@dcl/schemas-FcJQcJ28.js +1 -0
  11. package/assets/__federation_shared_@emotion/react-oi_M7gMJ.js +1 -0
  12. package/assets/__federation_shared_@emotion/styled-YrTPT9q1.js +1 -0
  13. package/assets/__federation_shared_@reduxjs/toolkit-R1Ell7gI.js +1 -0
  14. package/assets/__federation_shared_decentraland-ui2-D5N7yacO.js +357 -0
  15. package/assets/__federation_shared_react-B3tlNTLg.js +1 -0
  16. package/assets/__federation_shared_react-dom-Dsn5WX9N.js +1 -0
  17. package/assets/__federation_shared_react-redux-DMak3BVq.js +13 -0
  18. package/assets/__federation_shared_react-router-dom-CSW28ZSI.js +49 -0
  19. package/assets/__federation_shared_viem-DsDw7lUr.js +2 -0
  20. package/assets/__federation_shared_wagmi-h3zhLZbR.js +17 -0
  21. package/assets/__vite-optional-peer-dep_lottie-react_decentraland-ui2-BIHI7g3E.js +1 -0
  22. package/assets/_commonjsHelpers-C4iS2aBk.js +1 -0
  23. package/assets/add-Ccyt7YRh.js +15 -0
  24. package/assets/all-wallets-BIOtzF11.js +6 -0
  25. package/assets/app-store-BqACXnTM.js +17 -0
  26. package/assets/apple-zIEkvR7h.js +18 -0
  27. package/assets/arrow-bottom-CxQ54WH1.js +8 -0
  28. package/assets/arrow-bottom-circle-BjCA11Rn.js +11 -0
  29. package/assets/arrow-left-CsFQBdFD.js +8 -0
  30. package/assets/arrow-right-jT5LSgqq.js +8 -0
  31. package/assets/arrow-top-CA_1oaHw.js +8 -0
  32. package/assets/auto-track-UOggKKzv.js +1 -0
  33. package/assets/bank-81NjtLlm.js +14 -0
  34. package/assets/basic-CvR9b359.js +2128 -0
  35. package/assets/brotli_wasm_bg-NfWIZley.wasm +0 -0
  36. package/assets/browser-BjIqaPVu.js +14 -0
  37. package/assets/card-BJomEEgV.js +14 -0
  38. package/assets/ccip-DotuofV0.js +1 -0
  39. package/assets/checkmark-Cz0VZAkr.js +11 -0
  40. package/assets/checkmark-bold-blkVLUov.js +8 -0
  41. package/assets/chevron-bottom-ClawczSo.js +8 -0
  42. package/assets/chevron-left-DfJ9r4mv.js +8 -0
  43. package/assets/chevron-right-CrxmyW0K.js +8 -0
  44. package/assets/chevron-top-BVIfb-H3.js +8 -0
  45. package/assets/chrome-store-Cb5xVI0B.js +61 -0
  46. package/assets/clock-Bx-Kyhh-.js +8 -0
  47. package/assets/close-DOjpWTZi.js +8 -0
  48. package/assets/coinPlaceholder-BqONZM6Q.js +8 -0
  49. package/assets/compass-ByyIpxD6.js +8 -0
  50. package/assets/copy-BOu2-Xgv.js +15 -0
  51. package/assets/core-BGxUaCGc.js +907 -0
  52. package/assets/create-submenu-Bu20F8-Z.webp +0 -0
  53. package/assets/createClient-CSnZgvsb.js +1 -0
  54. package/assets/cursor-BqYz2L6D.js +3 -0
  55. package/assets/cursor-transparent-CWCRGDtx.js +12 -0
  56. package/assets/custom-welcome-background-BxlFQma9.webp +0 -0
  57. package/assets/defineChain-7I0Ce1VT.js +1 -0
  58. package/assets/desktop-Cd_vx0kT.js +9 -0
  59. package/assets/disconnect-D5AICJhj.js +8 -0
  60. package/assets/discord-26Vqbq7c.js +17 -0
  61. package/assets/emotion-react.browser.esm-5OnyV0Sh.js +8 -0
  62. package/assets/emotion-use-insertion-effect-with-fallbacks.browser.esm-B75LdcJS.js +1 -0
  63. package/assets/etherscan--DKVcYrP.js +6 -0
  64. package/assets/exclamation-triangle-DOsYf3fQ.js +4 -0
  65. package/assets/explore-submenu-BFVuYMi9.webp +0 -0
  66. package/assets/extension-DEaO3Zvk.js +8 -0
  67. package/assets/external-link-DcpG6wpM.js +8 -0
  68. package/assets/facebook-ByV0OclL.js +26 -0
  69. package/assets/farcaster-DI6fsEyh.js +12 -0
  70. package/assets/filters-Djn1aDVs.js +8 -0
  71. package/assets/github-B3p0LLP5.js +18 -0
  72. package/assets/google-ae7qga4R.js +18 -0
  73. package/assets/governance-submenu-VTIKvCIL.webp +0 -0
  74. package/assets/help-circle-BmzUA_Be.js +12 -0
  75. package/assets/hooks.module-Dz_XB4AG.js +1 -0
  76. package/assets/id-2hYEZqNH.js +12 -0
  77. package/assets/image-mDqi4ffo.js +4 -0
  78. package/assets/index-9zCVakoE.js +1 -0
  79. package/assets/index-BKLT1eit.js +2 -0
  80. package/assets/index-Biwg5bHN.js +1 -0
  81. package/assets/index-BzXoRVC1.js +1 -0
  82. package/assets/index-C05H8NDX.js +1 -0
  83. package/assets/index-CGCGB-at.js +1 -0
  84. package/assets/index-CNMKbeE1.js +5 -0
  85. package/assets/index-CVdhIPEJ.js +1 -0
  86. package/assets/index-CdOcIHYV.js +395 -0
  87. package/assets/index-CdrMQoR6.js +1 -0
  88. package/assets/index-Ctl4brHr.js +2 -0
  89. package/assets/index-D6O4pjzC.js +12 -0
  90. package/assets/index-D6ZMQedT.js +1 -0
  91. package/assets/index-DGVKdsht.js +1 -0
  92. package/assets/index-D_fJMF1A.js +1 -0
  93. package/assets/index-Dy0yjznp.js +1 -0
  94. package/assets/index-Dy0yjznp__bundled.js +9 -0
  95. package/assets/index-JFBsW0Hp.js +1 -0
  96. package/assets/index-OQ3TYt4p.js +7 -0
  97. package/assets/index-VfkM29PH.js +1 -0
  98. package/assets/index-VfkM29PH__bundled.js +24 -0
  99. package/assets/index-nibyPLVP.js +1 -0
  100. package/assets/index-pEp_vRda.js +8 -0
  101. package/assets/index.es-D_4_VpXc.js +38 -0
  102. package/assets/index.umd-6zndRFhB.js +1 -0
  103. package/assets/info-Bhf5PLdi.js +3 -0
  104. package/assets/info-circle-CZ5iih32.js +12 -0
  105. package/assets/inherits_browser-BlmhoU4v.js +1 -0
  106. package/assets/is-plan-event-enabled-DeNtQvA5.js +1 -0
  107. package/assets/jsx-runtime-B1l0k91v.js +1 -0
  108. package/assets/jsx-runtime-B1l0k91v__bundled.js +9 -0
  109. package/assets/learn-submenu-sfxVP5Db.webp +0 -0
  110. package/assets/lightbulb-CA3e26a0.js +3 -0
  111. package/assets/localBatchGatewayRequest-vExM5jac.js +1 -0
  112. package/assets/logo-pattern-D4X-bvlg.webp +0 -0
  113. package/assets/mail-BktjMbEk.js +8 -0
  114. package/assets/man-default1-BEO13leF.png +0 -0
  115. package/assets/marketplace-submenu-CixWTv8_.webp +0 -0
  116. package/assets/mobile-zfEM0JzU.js +9 -0
  117. package/assets/more-Dg45xuT9.js +11 -0
  118. package/assets/native-CJ5et6AR.js +1 -0
  119. package/assets/network-placeholder-duQhExzj.js +14 -0
  120. package/assets/nftPlaceholder-C3kMYu-p.js +8 -0
  121. package/assets/off-Cz636L92.js +8 -0
  122. package/assets/play-store-Cch0eiCp.js +32 -0
  123. package/assets/plus-orAhHwVf.js +13 -0
  124. package/assets/preload-helper-BrYcp76J.js +1 -0
  125. package/assets/qr-code-7plug-hj.js +6 -0
  126. package/assets/recycle-horizontal-B6ivY9Sz.js +9 -0
  127. package/assets/refresh-CqfvjhXq.js +8 -0
  128. package/assets/remoteEntry.js +1 -0
  129. package/assets/reown-logo-DGoAljI9.js +12 -0
  130. package/assets/reselect-BfUrOuXx.js +1 -0
  131. package/assets/rich-text-react-renderer_decentraland-ui2-BIHI7g3E.js +1 -0
  132. package/assets/search-nNK2K8mD.js +8 -0
  133. package/assets/secp256k1-D6s48BOl.js +1 -0
  134. package/assets/send-BPz2SBvc.js +15 -0
  135. package/assets/swapHorizontal-TvVHlgjl.js +8 -0
  136. package/assets/swapHorizontalBold-BTw_LG1-.js +8 -0
  137. package/assets/swapHorizontalMedium-C3jJnFs_.js +16 -0
  138. package/assets/swapHorizontalRoundedBold-nTFwdVeT.js +8 -0
  139. package/assets/swapVertical-CHKvPR_7.js +8 -0
  140. package/assets/telegram-C552IoSr.js +16 -0
  141. package/assets/three-dots-Nyfa4nYF.js +5 -0
  142. package/assets/top_background-Bnd2vX_F.webp +0 -0
  143. package/assets/tslib.es6-DbvBTznf.js +1 -0
  144. package/assets/twitch-7SJKGXSa.js +18 -0
  145. package/assets/twitterIcon-BBg9ypIU.js +6 -0
  146. package/assets/uid-CX4a_w4r.js +44 -0
  147. package/assets/verify-BwQ9FKM1.js +8 -0
  148. package/assets/verify-filled-BAdDAZxZ.js +8 -0
  149. package/assets/w3m-modal-BqXXR9rX.js +642 -0
  150. package/assets/wallet-DJsa1d3M.js +8 -0
  151. package/assets/wallet-placeholder-DPIkQ5vM.js +14 -0
  152. package/assets/walletconnect-osdnzzVU.js +30 -0
  153. package/assets/warning-circle-BQ9uHGTL.js +12 -0
  154. package/assets/webSocket-CIn5Ftst.js +3 -0
  155. package/assets/x-5oycQ-0v.js +12 -0
  156. package/dcl-logo.svg +1 -0
  157. package/index.html +41 -0
  158. package/package.json +21 -0
@@ -0,0 +1,3 @@
1
+ const __vite__fileDeps=["assets/index-CVdhIPEJ.js","assets/index-CNMKbeE1.js","assets/index-CGCGB-at.js","assets/index-OQ3TYt4p.js","assets/__federation_fn_import-WDa0gv1I.js","assets/hooks.module-Dz_XB4AG.js","assets/index-CdrMQoR6.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/createClient-CSnZgvsb.js","assets/uid-CX4a_w4r.js","assets/preload-helper-BrYcp76J.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-D_4_VpXc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{importShared as N}from"./__federation_fn_import-WDa0gv1I.js";import{j as H}from"./jsx-runtime-B1l0k91v.js";import{c as mr,E as at,r as $n,i as Fn,d as yr}from"./SensorsRounded-Ci-z6t1A.js";import{w as Yt,e as vr,g as Jt,b as wr,h as Wn,i as br,o as Sr,d as Er}from"./reselect-BfUrOuXx.js";import{d as Xe}from"./defineChain-7I0Ce1VT.js";import{_ as Te}from"./preload-helper-BrYcp76J.js";import{c as Mt,C as Ot,P as Xt,i as Cr,S as Hn,M as _r,n as Y,m as Zt,a as re,h as Bn,Q as Ir,b as en,f as Pr,o as tn,r as nn,d as Ar,e as rn,g as sn,p as an,s as Rr,j as Tr}from"./QueryClientProvider-DUSjZ_J_.js";import{c as Le}from"./_commonjsHelpers-C4iS2aBk.js";const Mr=Xe({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}}}),Or=Xe({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}}}),Dr=Xe({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}),xr=Xe({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 N("@dcl/schemas");const kr=[Mr,Or],Lr=[xr,Dr],Dt=[...kr,...Lr];function Nr(e){return Dt.some(t=>t.id===e)}const{createConnector:qr}=await N("wagmi"),{ChainId:Ae}=await N("@dcl/schemas"),on={[Ae.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet?project=magic",[Ae.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia?project=magic",[Ae.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon?project=magic",[Ae.MATIC_AMOY]:"https://rpc.decentraland.org/amoy?project=magic"};function Do(e){const{apiKey:t}=e;let n=null,r=null;async function i(o){const{Magic:u}=await Te(async()=>{const{Magic:a}=await import("./index-CVdhIPEJ.js");return{Magic:a}},__vite__mapDeps([0,1])),{OAuthExtension:l}=await Te(async()=>{const{OAuthExtension:a}=await import("./index-CGCGB-at.js");return{OAuthExtension:a}},__vite__mapDeps([2,1])),c=on[o]||on[Ae.ETHEREUM_MAINNET];return new u(t,{extensions:[new l],network:{rpcUrl:c,chainId:o}})}return qr(o=>{async function u(){return r?await r.request({method:"eth_accounts"}):[]}async function l(c){r=await n.wallet.getProvider();const a=await u();return a.length===0?null:(await o.storage?.setItem("magicChainId",c),{accounts:a,chainId:c})}return{id:"magic",name:"Magic",type:"magic",async setup(){const a=await o.storage?.getItem("magicChainId")??o.chains[0]?.id;if(a)try{if(n=await i(a),await n.user.isLoggedIn()){const y=await l(a);y&&o.emitter.emit("connect",y)}}catch{}},async connect({chainId:c}={}){const a=c??o.chains[0].id;if(n||(n=await i(a)),!await n.user.isLoggedIn())throw new Error("Magic: User is not logged in. Please authenticate via the auth dapp first.");const y=await l(a);if(!y)throw new Error("Magic: No accounts found");return y},async disconnect(){n&&await n.user.logout(),n=null,r=null,await o.storage?.removeItem("magicChainId")},async getAccounts(){return u()},async getChainId(){return await o.storage?.getItem("magicChainId")??o.chains[0].id},async getProvider(){return!r&&n&&(r=await n.wallet.getProvider()),r},async isAuthorized(){try{if(!n){const a=await o.storage?.getItem("magicChainId")??o.chains[0]?.id;if(!a)return!1;n=await i(a)}return await n.user.isLoggedIn()}catch{return!1}},async switchChain({chainId:c}){const a=o.chains.find(y=>y.id===c);if(!a)throw new Error(`Chain ${c} not configured`);if(n=await i(c),!await n.user.isLoggedIn())throw new Error("Magic: User is not logged in");return r=await n.wallet.getProvider(),await o.storage?.setItem("magicChainId",c),o.emitter.emit("change",{chainId:c}),a},onAccountsChanged(c){c.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:c})},onChainChanged(c){const a=Number(c);o.emitter.emit("change",{chainId:a})},onDisconnect(){o.emitter.emit("disconnect"),n=null,r=null}}})}await N("wagmi");await N("@dcl/schemas");function Ur(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:o})=>o?.url||n)}const{getAddress:we,numberToHex:He,SwitchChainError:Be,UserRejectedRequestError:be}=await N("viem");Ze.type="coinbaseWallet";function Ze(e={}){return e.version==="3"||e.headlessMode?jr(e):Qr(e)}function Qr(e){let t,n,r,i;return Mt(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:Ze.type,async connect({chainId:u,withCapabilities:l,...c}={}){try{const a=await this.getProvider(),I=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(p=>we(p));n||(n=this.onAccountsChanged.bind(this),a.on("accountsChanged",n)),r||(r=this.onChainChanged.bind(this),a.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),a.on("disconnect",i));let y=await this.getChainId();return u&&y!==u&&(y=(await this.switchChain({chainId:u}).catch(m=>{if(m.code===be.code)throw m;return{id:y}}))?.id??y),{accounts:l?I.map(p=>({address:p,capabilities:{}})):I,chainId:y}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new be(a):a}},async disconnect(){const u=await this.getProvider();n&&(u.removeListener("accountsChanged",n),n=void 0),r&&(u.removeListener("chainChanged",r),r=void 0),i&&(u.removeListener("disconnect",i),i=void 0),u.disconnect(),u.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(l=>we(l))},async getChainId(){const l=await(await this.getProvider()).request({method:"eth_chainId"});return Number(l)},async getProvider(){if(!t){const u=typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:l}=await Te(async()=>{const{createCoinbaseWalletSDK:a}=await import("./index-OQ3TYt4p.js");return{createCoinbaseWalletSDK:a}},__vite__mapDeps([3,4,5,6,7,8,9,10,11]));t=l({...e,appChainIds:o.chains.map(a=>a.id),preference:u}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:l}){const c=o.chains.find(I=>I.id===l);if(!c)throw new Be(new Ot);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:He(c.id)}]}),c}catch(I){if(I.code===4902)try{let y;u?.blockExplorerUrls?y=u.blockExplorerUrls:y=c.blockExplorers?.default.url?[c.blockExplorers?.default.url]:[];let p;u?.rpcUrls?.length?p=u.rpcUrls:p=[c.rpcUrls.default?.http[0]??""];const m={blockExplorerUrls:y,chainId:He(l),chainName:u?.chainName??c.name,iconUrls:u?.iconUrls,nativeCurrency:u?.nativeCurrency??c.nativeCurrency,rpcUrls:p};return await a.request({method:"wallet_addEthereumChain",params:[m]}),c}catch(y){throw new be(y)}throw new Be(I)}},onAccountsChanged(u){u.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:u.map(l=>we(l))})},onChainChanged(u){const l=Number(u);o.emitter.emit("change",{chainId:l})},async onDisconnect(u){o.emitter.emit("disconnect");const l=await this.getProvider();n&&(l.removeListener("accountsChanged",n),n=void 0),r&&(l.removeListener("chainChanged",r),r=void 0),i&&(l.removeListener("disconnect",i),i=void 0)}}))}function jr(e){let n,r,i,o,u;return Mt(l=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:Ze.type,async connect({chainId:c,withCapabilities:a}={}){try{const I=await this.getProvider(),y=(await I.request({method:"eth_requestAccounts"})).map(m=>we(m));i||(i=this.onAccountsChanged.bind(this),I.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),I.on("chainChanged",o)),u||(u=this.onDisconnect.bind(this),I.on("disconnect",u));let p=await this.getChainId();return c&&p!==c&&(p=(await this.switchChain({chainId:c}).catch(M=>{if(M.code===be.code)throw M;return{id:p}}))?.id??p),{accounts:a?y.map(m=>({address:m,capabilities:{}})):y,chainId:p}}catch(I){throw/(user closed modal|accounts received is empty|user denied account)/i.test(I.message)?new be(I):I}},async disconnect(){const c=await this.getProvider();i&&(c.removeListener("accountsChanged",i),i=void 0),o&&(c.removeListener("chainChanged",o),o=void 0),u&&(c.removeListener("disconnect",u),u=void 0),c.disconnect(),c.close()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(a=>we(a))},async getChainId(){const a=await(await this.getProvider()).request({method:"eth_chainId"});return Number(a)},async getProvider(){if(!r){const c=await(async()=>{const{default:m}=await Te(async()=>{const{default:M}=await import("./index-D6O4pjzC.js").then(A=>A.i);return{default:M}},__vite__mapDeps([12,7,13,6,14,15,5,16]));return typeof m!="function"&&typeof m.default=="function"?m.default:m})();n=new c({...e,reloadOnDisconnect:!1});const a=n.walletExtension?.getChainId(),I=l.chains.find(m=>e.chainId?m.id===e.chainId:m.id===a)||l.chains[0],y=e.chainId||I?.id,p=e.jsonRpcUrl||I?.rpcUrls.default.http[0];r=n.makeWeb3Provider(p,y)}return r},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:c,chainId:a}){const I=l.chains.find(p=>p.id===a);if(!I)throw new Be(new Ot);const y=await this.getProvider();try{return await y.request({method:"wallet_switchEthereumChain",params:[{chainId:He(I.id)}]}),I}catch(p){if(p.code===4902)try{let m;c?.blockExplorerUrls?m=c.blockExplorerUrls:m=I.blockExplorers?.default.url?[I.blockExplorers?.default.url]:[];let M;c?.rpcUrls?.length?M=c.rpcUrls:M=[I.rpcUrls.default?.http[0]??""];const A={blockExplorerUrls:m,chainId:He(a),chainName:c?.chainName??I.name,iconUrls:c?.iconUrls,nativeCurrency:c?.nativeCurrency??I.nativeCurrency,rpcUrls:M};return await y.request({method:"wallet_addEthereumChain",params:[A]}),I}catch(m){throw new be(m)}throw new Be(p)}},onAccountsChanged(c){c.length===0?this.onDisconnect():l.emitter.emit("change",{accounts:c.map(a=>we(a))})},onChainChanged(c){const a=Number(c);l.emitter.emit("change",{chainId:a})},async onDisconnect(c){l.emitter.emit("disconnect");const a=await this.getProvider();i&&(a.removeListener("accountsChanged",i),i=void 0),o&&(a.removeListener("chainChanged",o),o=void 0),u&&(a.removeListener("disconnect",u),u=void 0)}}))}const{getAddress:ot,numberToHex:cn,SwitchChainError:$r,UserRejectedRequestError:Ne}=await N("viem");xt.type="walletConnect";function xt(e){const t=e.isNewChainsStale??!0;let n,r;const i="eip155";let o,u,l,c,a,I;return Mt(y=>({id:"walletConnect",name:"WalletConnect",type:xt.type,async setup(){const p=await this.getProvider().catch(()=>null);p&&(l||(l=this.onConnect.bind(this),p.on("connect",l)),a||(a=this.onSessionDelete.bind(this),p.on("session_delete",a)))},async connect({chainId:p,withCapabilities:m,...M}={}){try{const A=await this.getProvider();if(!A)throw new Xt;c||(c=this.onDisplayUri,A.on("display_uri",c));let _=p;if(!_){const s=await y.storage?.getItem("state")??{};y.chains.some(S=>S.id===s.chainId)?_=s.chainId:_=y.chains[0]?.id}if(!_)throw new Error("No chains found on connector.");const P=await this.isChainsStale();if(A.session&&P&&await A.disconnect(),!A.session||P){const s=y.chains.filter(v=>v.id!==_).map(v=>v.id);await A.connect({optionalChains:[_,...s],..."pairingTopic"in M?{pairingTopic:M.pairingTopic}:{}}),this.setRequestedChainsIds(y.chains.map(v=>v.id))}const w=(await A.enable()).map(s=>ot(s));let f=await this.getChainId();return p&&f!==p&&(f=(await this.switchChain({chainId:p}).catch(v=>{if(v.code===Ne.code&&v.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw v;return{id:f}}))?.id??f),c&&(A.removeListener("display_uri",c),c=void 0),l&&(A.removeListener("connect",l),l=void 0),o||(o=this.onAccountsChanged.bind(this),A.on("accountsChanged",o)),u||(u=this.onChainChanged.bind(this),A.on("chainChanged",u)),I||(I=this.onDisconnect.bind(this),A.on("disconnect",I)),a||(a=this.onSessionDelete.bind(this),A.on("session_delete",a)),{accounts:m?w.map(s=>({address:s,capabilities:{}})):w,chainId:f}}catch(A){throw/(user rejected|connection request reset)/i.test(A?.message)?new Ne(A):A}},async disconnect(){const p=await this.getProvider();try{await p?.disconnect()}catch(m){if(!/No matching key/i.test(m.message))throw m}finally{u&&(p?.removeListener("chainChanged",u),u=void 0),I&&(p?.removeListener("disconnect",I),I=void 0),l||(l=this.onConnect.bind(this),p?.on("connect",l)),o&&(p?.removeListener("accountsChanged",o),o=void 0),a&&(p?.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(m=>ot(m))},async getProvider({chainId:p}={}){async function m(){const M=y.chains.map(_=>_.id);if(!M.length)return;const{EthereumProvider:A}=await Te(async()=>{const{EthereumProvider:_}=await import("./index.es-D_4_VpXc.js").then(P=>P.G);return{EthereumProvider:_}},__vite__mapDeps([17,10,7,4,11]));return await A.init({...e,disableProviderPing:!0,optionalChains:M,projectId:e.projectId,rpcMap:Object.fromEntries(y.chains.map(_=>{const[P]=Ur({chain:_,transports:y.transports});return[_.id,P]})),showQrModal:e.showQrModal??!0})}return n||(r||(r=m()),n=await r,n?.events.setMaxListeners(Number.POSITIVE_INFINITY)),p&&await this.switchChain?.({chainId:p}),n},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[p,m]=await Promise.all([this.getAccounts(),this.getProvider()]);return p.length?await this.isChainsStale()&&m.session?(await m.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:m}){const M=await this.getProvider();if(!M)throw new Xt;const A=y.chains.find(_=>_.id===m);if(!A)throw new $r(new Ot);try{await Promise.all([new Promise(P=>{const w=({chainId:f})=>{f===m&&(y.emitter.off("change",w),P())};y.emitter.on("change",w)}),M.request({method:"wallet_switchEthereumChain",params:[{chainId:cn(m)}]})]);const _=await this.getRequestedChainsIds();return this.setRequestedChainsIds([..._,m]),A}catch(_){const P=_;if(/(user rejected)/i.test(P.message))throw new Ne(P);try{let w;p?.blockExplorerUrls?w=p.blockExplorerUrls:w=A.blockExplorers?.default.url?[A.blockExplorers?.default.url]:[];let f;p?.rpcUrls?.length?f=p.rpcUrls:f=[...A.rpcUrls.default.http];const s={blockExplorerUrls:w,chainId:cn(m),chainName:p?.chainName??A.name,iconUrls:p?.iconUrls,nativeCurrency:p?.nativeCurrency??A.nativeCurrency,rpcUrls:f};await M.request({method:"wallet_addEthereumChain",params:[s]});const v=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...v,m]),A}catch(w){throw new Ne(w)}}},onAccountsChanged(p){p.length===0?this.onDisconnect():y.emitter.emit("change",{accounts:p.map(m=>ot(m))})},onChainChanged(p){const m=Number(p);y.emitter.emit("change",{chainId:m})},async onConnect(p){const m=Number(p.chainId),M=await this.getAccounts();y.emitter.emit("connect",{accounts:M,chainId:m})},async onDisconnect(p){this.setRequestedChainsIds([]),y.emitter.emit("disconnect");const m=await this.getProvider();o&&(m.removeListener("accountsChanged",o),o=void 0),u&&(m.removeListener("chainChanged",u),u=void 0),I&&(m.removeListener("disconnect",I),I=void 0),a&&(m.removeListener("session_delete",a),a=void 0),l||(l=this.onConnect.bind(this),m.on("connect",l))},onDisplayUri(p){y.emitter.emit("message",{type:"display_uri",data:p})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){return n?n.session?.namespaces[i]?.accounts?.map(m=>Number.parseInt(m.split(":")[1]||"",10))??[]:[]},async getRequestedChainsIds(){return await y.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!t)return!1;const p=y.chains.map(A=>A.id),m=this.getNamespaceChainsIds();if(m.length&&!m.some(A=>p.includes(A)))return!1;const M=await this.getRequestedChainsIds();return!p.every(A=>M.includes(A))},async setRequestedChainsIds(p){await y.storage?.setItem(this.requestedChainsStorageKey,p)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}const{createConfig:Fr,http:vt}=await N("wagmi"),{ChainId:qe}=await N("@dcl/schemas"),ge={name:"Decentraland",description:"Decentraland dApp",url:"https://decentraland.org",icons:["https://cdn.decentraland.org/@dcl/marketplace-site/6.41.1/favicon.ico"]},Wr={[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"},Hr=Dt.reduce((e,t)=>{const n=Wr[t.id];return e[t.id]=n?vt(n):vt(),e},{});function Br(e,t){const n=t.trim();if(!n)return e;const r=e.replace(/\/+$/,""),i=n.startsWith("/")?n:`/${n}`;return`${r}${i}`}function zr(e){if(!e)return ge;const t=e.url??(e.urlPath?Br(ge.url,e.urlPath):ge.url);return{name:e.name??ge.name,description:e.description??ge.description,url:t,icons:e.icons??ge.icons}}function xo(e={}){const{walletConnectProjectId:t,appMetadata:n,chains:r=Dt,transports:i,connectors:o={},additionalConnectors:u=[]}=e,l=zr(n),{injected:c=!0,walletConnect:a=!0,coinbaseWallet:I=!0}=o,y=r.reduce((m,M)=>(m[M.id]=i?.[M.id]??Hr[M.id]??vt(),m),{}),p=[];return c&&p.push(Cr()),a&&t&&p.push(xt({projectId:t,metadata:{name:l.name,description:l.description??"",url:l.url??"",icons:l.icons??[]}})),I&&p.push(Ze({appName:l.name})),p.push(...u),Fr({chains:r,transports:y,connectors:p})}function Gr(){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))}await N("react");await N("react-redux");await N("wagmi");const xe=e=>e.wallet,Kr=e=>xe(e).address,Vr=e=>xe(e).isConnected,Yr=e=>xe(e).isConnecting,Jr=e=>xe(e).isDisconnecting,Xr=e=>xe(e).error;await N("react-redux");await N("wagmi");const{useCallback:un}=await N("react"),{useSelector:Ee}=await N("react-redux"),{useConnect:Zr,useDisconnect:ei}=await N("wagmi");function zn(){const e=Ee(Kr),t=Ee(Vr),n=Ee(Yr),r=Ee(Jr),i=Ee(Xr),{connect:o,connectors:u,isPending:l}=Zr(),{disconnect:c,isPending:a}=ei(),I=un(p=>{o({connector:p})},[o]),y=un(()=>{c()},[c]);return{address:e,isConnected:t,isConnecting:n||l,isDisconnecting:r||a,error:i,connectors:u,connect:I,disconnect:y}}var ti=class extends Hn{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 _r({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=Ue(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=Ue(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=Ue(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ue(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Y.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=>Zt(t,n))}findAll(e={}){return this.getAll().filter(t=>Zt(e,t))}notify(e){Y.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Y.batch(()=>Promise.all(e.map(t=>t.continue().catch(re))))}};function Ue(e){return e.options.scope?.id}var ni=class extends Hn{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??Bn(r,t);let o=this.get(i);return o||(o=new Ir({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}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(){Y.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=>en(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>en(e,n)):t}notify(e){Y.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Y.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Y.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ri=class{#e;#t;#n;#i;#s;#r;#a;#o;constructor(e={}){this.#e=e.queryCache||new ni,this.#t=e.mutationCache||new ti,this.#n=e.defaultOptions||{},this.#i=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#a=Pr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=tn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=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(nn(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}),o=this.#e.get(r.queryHash)?.state.data,u=Ar(t,o);if(u!==void 0)return this.#e.build(this,r).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return Y.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;Y.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Y.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Y.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(re).catch(re)}invalidateQueries(e,t={}){return Y.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=Y.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(re)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(re)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(re).catch(re)}fetchInfiniteQuery(e){return e.behavior=rn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(re).catch(re)}ensureInfiniteQueryData(e){return e.behavior=rn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tn.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(sn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{an(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(sn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{an(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=Bn(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===Rr&&(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:ii}=await N("react"),{WagmiProvider:si}=await N("wagmi");function ai(){return new ri({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}})}function ko({config:e,queryClient:t,children:n}){const r=ii(()=>t??ai(),[t]);return H.jsx(si,{config:e,children:H.jsx(Tr,{client:r,children:n})})}const{createSlice:oi}=await N("@reduxjs/toolkit"),ln={chainId:null,isSupportedNetwork:!1,isNetworkSwitching:!1,error:null},ci=oi({name:"network",initialState:ln,reducers:{setChain(e,t){e.chainId=t.payload,e.isSupportedNetwork=t.payload!==null&&Nr(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 ln}}}),{actions:ui,reducer:li}=ci,{createSlice:di}=await N("@reduxjs/toolkit"),dn={address:null,isConnected:!1,isConnecting:!1,isDisconnecting:!1,error:null},fi=di({name:"wallet",initialState:dn,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 dn}}}),{actions:ct,reducer:hi}=fi,{useEffect:Qe}=await N("react"),{useDispatch:pi}=await N("react-redux"),{useAccount:gi,useChainId:mi}=await N("wagmi");function Lo({children:e}){const t=pi(),{address:n,isConnecting:r,isConnected:i,isReconnecting:o}=gi(),u=mi();return Qe(()=>{t(ct.setAccount(n??null))},[t,n]),Qe(()=>{t(ct.setConnecting(r||o))},[t,r,o]),Qe(()=>{i||t(ct.reset())},[t,i]),Qe(()=>{t(ui.setChain(i?u:null))},[t,u,i]),H.jsx(H.Fragment,{children:e})}const{createSlice:yi}=await N("@reduxjs/toolkit"),fn={transactions:{},pending:[]},vi=yi({name:"transactions",initialState:fn,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:i}=t.payload,o=e.transactions[n];o&&(o.status=r,o.error=i,r!=="pending"&&(e.pending=e.pending.filter(u=>u!==n)))},removeTransaction(e,t){const n=t.payload;delete e.transactions[n],e.pending=e.pending.filter(r=>r!==n)},reset(){return fn}}}),{actions:No,reducer:wi}=vi;var bi=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},Gn=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Gn||{});function hn(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}const{createAction:Se,createSlice:me,createSelector:Si,createAsyncThunk:pn,combineReducers:Ei,createNextState:kt,isAnyOf:ze,isAllOf:ut,isAction:Ci,isPending:Kn,isRejected:Lt,isFulfilled:fe,isRejectedWithValue:Nt,isAsyncThunkAction:gn,prepareAutoBatched:Ce,SHOULD_AUTOBATCH:Vn,isPlainObject:Me,nanoid:Yn}=await N("@reduxjs/toolkit");var mn=Me;function qt(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 i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const u of n)o[u]=qt(e[u],t[u]),i&&(i=e[u]===o[u]);return i?e:o}var yn=e=>[].concat(...e);function _i(e){return new RegExp("(^|:)//").test(e)}function Ii(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function Ut(e){return e!=null}function vn(e){return[...e?.values()??[]].filter(Ut)}function Pi(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var Ai=e=>e.replace(/\/$/,""),Ri=e=>e.replace(/^\//,"");function Ti(e,t){if(!e)return t;if(!t)return e;if(_i(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Ai(e),t=Ri(t),`${e}${n}${t}`}function Ge(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var wt=()=>new Map,wn=(...e)=>fetch(...e),Mi=e=>e.status>=200&&e.status<=299,Oi=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function bn(e){if(!Me(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var Di=e=>typeof e=="object"&&(Me(e)||Array.isArray(e)||typeof e.toJSON=="function");function xi({baseUrl:e,prepareHeaders:t=y=>y,fetchFn:n=wn,paramsSerializer:r,isJsonContentType:i=Oi,jsonContentType:o="application/json",jsonReplacer:u,timeout:l,responseHandler:c,validateStatus:a,...I}={}){return typeof fetch>"u"&&n===wn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,m,M)=>{const{getState:A,extra:_,endpoint:P,forced:w,type:f}=m;let s,{url:v,headers:S=new Headers(I.headers),params:b=void 0,responseHandler:R=c??"json",validateStatus:C=a??Mi,timeout:h=l,...d}=typeof p=="string"?{url:p}:p,g,E=m.signal;h&&(g=new AbortController,m.signal.addEventListener("abort",g.abort),E=g.signal);let T={...I,signal:E,...d};S=new Headers(bn(S)),T.headers=await t(S,{getState:A,arg:p,extra:_,endpoint:P,forced:w,type:f,extraOptions:M})||S;const O=Di(T.body);if(T.body!=null&&!O&&typeof T.body!="string"&&T.headers.delete("content-type"),!T.headers.has("content-type")&&O&&T.headers.set("content-type",o),O&&i(T.headers)&&(T.body=JSON.stringify(T.body,u)),T.headers.has("accept")||(R==="json"?T.headers.set("accept","application/json"):R==="text"&&T.headers.set("accept","text/plain, text/html, */*")),b){const F=~v.indexOf("?")?"&":"?",Q=r?r(b):new URLSearchParams(bn(b));v+=F+Q}v=Ti(e,v);const D=new Request(v,T);s={request:new Request(v,T)};let k,x=!1,q=g&&setTimeout(()=>{x=!0,g.abort()},h);try{k=await n(D)}catch(F){return{error:{status:x?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(F)},meta:s}}finally{q&&clearTimeout(q),g?.signal.removeEventListener("abort",g.abort)}const $=k.clone();s.response=$;let z,W="";try{let F;if(await Promise.all([y(k,R).then(Q=>z=Q,Q=>F=Q),$.text().then(Q=>W=Q,()=>{})]),F)throw F}catch(F){return{error:{status:"PARSING_ERROR",originalStatus:k.status,data:W,error:String(F)},meta:s}}return C(k,z)?{data:z,meta:s}:{error:{status:k.status,data:z},meta:s}};async function y(p,m){if(typeof m=="function")return m(p);if(m==="content-type"&&(m=i(p.headers)?"json":"text"),m==="json"){const M=await p.text();return M.length?JSON.parse(M):null}return p.text()}}var Sn=class{constructor(e,t=void 0){this.value=e,this.meta=t}},et=Se("__rtkq/focused"),Qt=Se("__rtkq/unfocused"),tt=Se("__rtkq/online"),jt=Se("__rtkq/offline"),lt=!1;function ki(e,t){function n(){const r=()=>e(et()),i=()=>e(Qt()),o=()=>e(tt()),u=()=>e(jt()),l=()=>{window.document.visibilityState==="visible"?r():i()};return lt||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",l,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",o,!1),window.addEventListener("offline",u,!1),lt=!0),()=>{window.removeEventListener("focus",r),window.removeEventListener("visibilitychange",l),window.removeEventListener("online",o),window.removeEventListener("offline",u),lt=!1}}return n()}function nt(e){return e.type==="query"}function Li(e){return e.type==="mutation"}function rt(e){return e.type==="infinitequery"}function Ke(e){return nt(e)||rt(e)}function $t(e,t,n,r,i,o){return Ni(e)?e(t,n,r,i).filter(Ut).map(bt).map(o):Array.isArray(e)?e.map(bt).map(o):[]}function Ni(e){return typeof e=="function"}function bt(e){return typeof e=="string"?{type:e}:e}await N("@reduxjs/toolkit");function qi(e,t){return e.catch(t)}var Oe=Symbol("forceQueryFn"),St=e=>typeof e[Oe]=="function";function Ui({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:o,getInternalState:u}){const l=s=>u(s)?.runningQueries,c=s=>u(s)?.runningMutations,{unsubscribeQueryResult:a,removeMutationResult:I,updateSubscriptionOptions:y}=i.internalActions;return{buildInitiateQuery:P,buildInitiateInfiniteQuery:w,buildInitiateMutation:f,getRunningQueryThunk:p,getRunningMutationThunk:m,getRunningQueriesThunk:M,getRunningMutationsThunk:A};function p(s,v){return S=>{const b=o.endpointDefinitions[s],R=e({queryArgs:v,endpointDefinition:b,endpointName:s});return l(S)?.get(R)}}function m(s,v){return S=>c(S)?.get(v)}function M(){return s=>vn(l(s))}function A(){return s=>vn(c(s))}function _(s,v){const S=(b,{subscribe:R=!0,forceRefetch:C,subscriptionOptions:h,[Oe]:d,...g}={})=>(E,T)=>{const O=e({queryArgs:b,endpointDefinition:v,endpointName:s});let D;const L={...g,type:"query",subscribe:R,forceRefetch:C,subscriptionOptions:h,endpointName:s,originalArgs:b,queryCacheKey:O,[Oe]:d};if(nt(v))D=t(L);else{const{direction:U,initialPageParam:j}=g;D=n({...L,direction:U,initialPageParam:j})}const k=i.endpoints[s].select(b),x=E(D),q=k(T()),{requestId:$,abort:z}=x,W=q.requestId!==$,F=l(E)?.get(O),Q=()=>k(T()),K=Object.assign(d?x.then(Q):W&&!F?Promise.resolve(q):Promise.all([F,x]).then(Q),{arg:b,requestId:$,subscriptionOptions:h,queryCacheKey:O,abort:z,async unwrap(){const U=await K;if(U.isError)throw U.error;return U.data},refetch:()=>E(S(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){R&&E(a({queryCacheKey:O,requestId:$}))},updateSubscriptionOptions(U){K.subscriptionOptions=U,E(y({endpointName:s,requestId:$,queryCacheKey:O,options:U}))}});if(!F&&!W&&!d){const U=l(E);U.set(O,K),K.then(()=>{U.delete(O)})}return K};return S}function P(s,v){return _(s,v)}function w(s,v){return _(s,v)}function f(s){return(v,{track:S=!0,fixedCacheKey:b}={})=>(R,C)=>{const h=r({type:"mutation",endpointName:s,originalArgs:v,track:S,fixedCacheKey:b}),d=R(h),{requestId:g,abort:E,unwrap:T}=d,O=qi(d.unwrap().then(x=>({data:x})),x=>({error:x})),D=()=>{R(I({requestId:g,fixedCacheKey:b}))},L=Object.assign(O,{arg:d.arg,requestId:g,abort:E,unwrap:T,reset:D}),k=c(R);return k.set(g,L),L.then(()=>{k.delete(g)}),b&&(k.set(b,L),L.then(()=>{k.get(b)===L&&k.delete(b)})),L}}}var Jn=class extends bi{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 i=await e["~standard"].validate(t);if(i.issues)throw new Jn(i.issues,t,n,r);return i.value}function En(e){return e}var _e=(e={})=>({...e,[Vn]:!0});function Qi({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:o,selectors:u,onSchemaFailure:l,catchSchemaFailure:c,skipSchemaValidation:a}){const I=(d,g,E,T)=>(O,D)=>{const L=n[d],k=r({queryArgs:g,endpointDefinition:L,endpointName:d});if(O(i.internalActions.queryResultPatched({queryCacheKey:k,patches:E})),!T)return;const x=i.endpoints[d].select(g)(D()),q=$t(L.providesTags,x.data,void 0,g,{},o);O(i.internalActions.updateProvidedBy([{queryCacheKey:k,providedTags:q}]))};function y(d,g,E=0){const T=[g,...d];return E&&T.length>E?T.slice(0,-1):T}function p(d,g,E=0){const T=[...d,g];return E&&T.length>E?T.slice(1):T}const m=(d,g,E,T=!0)=>(O,D)=>{const k=i.endpoints[d].select(g)(D()),x={patches:[],inversePatches:[],undo:()=>O(i.util.patchQueryData(d,g,x.inversePatches,T))};if(k.status==="uninitialized")return x;let q;if("data"in k)if(wr(k.data)){const[$,z,W]=Wn(k.data,E);x.patches.push(...z),x.inversePatches.push(...W),q=$}else q=E(k.data),x.patches.push({op:"replace",path:[],value:q}),x.inversePatches.push({op:"replace",path:[],value:k.data});return x.patches.length===0||O(i.util.patchQueryData(d,g,x.patches,T)),x},M=(d,g,E)=>T=>T(i.endpoints[d].initiate(g,{subscribe:!1,forceRefetch:!0,[Oe]:()=>({data:E})})),A=(d,g)=>d.query&&d[g]?d[g]:En,_=async(d,{signal:g,abort:E,rejectWithValue:T,fulfillWithValue:O,dispatch:D,getState:L,extra:k})=>{const x=n[d.endpointName],{metaSchema:q,skipSchemaValidation:$=a}=x;try{let z=En;const W={signal:g,abort:E,dispatch:D,getState:L,extra:k,endpoint:d.endpointName,type:d.type,forced:d.type==="query"?P(d,L()):void 0,queryCacheKey:d.type==="query"?d.queryCacheKey:void 0},F=d.type==="query"?d[Oe]:void 0;let Q;const K=async(j,B,G,oe)=>{if(B==null&&j.pages.length)return Promise.resolve({data:j});const X={queryArg:d.originalArgs,pageParam:B},he=await U(X),Z=oe?y:p;return{data:{pages:Z(j.pages,he.data,G),pageParams:Z(j.pageParams,B,G)},meta:he.meta}};async function U(j){let B;const{extraOptions:G,argSchema:oe,rawResponseSchema:X,responseSchema:he}=x;if(oe&&!ce($,"arg")&&(j=await ue(oe,j,"argSchema",{})),F?B=F():x.query?(z=A(x,"transformResponse"),B=await t(x.query(j),W,G)):B=await x.queryFn(j,W,G,pe=>t(pe,W,G)),typeof process<"u",B.error)throw new Sn(B.error,B.meta);let{data:Z}=B;X&&!ce($,"rawResponse")&&(Z=await ue(X,B.data,"rawResponseSchema",B.meta));let se=await z(Z,B.meta,j);return he&&!ce($,"response")&&(se=await ue(he,se,"responseSchema",B.meta)),{...B,data:se}}if(d.type==="query"&&"infiniteQueryOptions"in x){const{infiniteQueryOptions:j}=x,{maxPages:B=1/0}=j;let G;const oe={pages:[],pageParams:[]},X=u.selectQueryEntry(L(),d.queryCacheKey)?.data,Z=P(d,L())&&!d.direction||!X?oe:X;if("direction"in d&&d.direction&&Z.pages.length){const se=d.direction==="backward",ke=(se?Xn:Et)(j,Z,d.originalArgs);G=await K(Z,ke,B,se)}else{const{initialPageParam:se=j.initialPageParam}=d,pe=X?.pageParams??[],ke=pe[0]??se,Kt=pe.length;G=await K(Z,ke,B),F&&(G={data:G.data.pages[0]});for(let Vt=1;Vt<Kt;Vt++){const gr=Et(j,G.data,d.originalArgs);G=await K(G.data,gr,B)}}Q=G}else Q=await U(d.originalArgs);return q&&!ce($,"meta")&&Q.meta&&(Q.meta=await ue(q,Q.meta,"metaSchema",Q.meta)),O(Q.data,_e({fulfilledTimeStamp:Date.now(),baseQueryMeta:Q.meta}))}catch(z){let W=z;if(W instanceof Sn){let F=A(x,"transformErrorResponse");const{rawErrorResponseSchema:Q,errorResponseSchema:K}=x;let{value:U,meta:j}=W;try{Q&&!ce($,"rawErrorResponse")&&(U=await ue(Q,U,"rawErrorResponseSchema",j)),q&&!ce($,"meta")&&(j=await ue(q,j,"metaSchema",j));let B=await F(U,j,d.originalArgs);return K&&!ce($,"errorResponse")&&(B=await ue(K,B,"errorResponseSchema",j)),T(B,_e({baseQueryMeta:j}))}catch(B){W=B}}try{if(W instanceof Jn){const F={endpoint:d.endpointName,arg:d.originalArgs,type:d.type,queryCacheKey:d.type==="query"?d.queryCacheKey:void 0};x.onSchemaFailure?.(W,F),l?.(W,F);const{catchSchemaFailure:Q=c}=x;if(Q)return T(Q(W,F),_e({baseQueryMeta:W._bqMeta}))}}catch(F){W=F}throw typeof process<"u",console.error(W),W}};function P(d,g){const E=u.selectQueryEntry(g,d.queryCacheKey),T=u.selectConfig(g).refetchOnMountOrArgChange,O=E?.fulfilledTimeStamp,D=d.forceRefetch??(d.subscribe&&T);return D?D===!0||(Number(new Date)-Number(O))/1e3>=D:!1}const w=()=>pn(`${e}/executeQuery`,_,{getPendingMeta({arg:g}){const E=n[g.endpointName];return _e({startedTimeStamp:Date.now(),...rt(E)?{direction:g.direction}:{}})},condition(g,{getState:E}){const T=E(),O=u.selectQueryEntry(T,g.queryCacheKey),D=O?.fulfilledTimeStamp,L=g.originalArgs,k=O?.originalArgs,x=n[g.endpointName],q=g.direction;return St(g)?!0:O?.status==="pending"?!1:P(g,T)||nt(x)&&x?.forceRefetch?.({currentArg:L,previousArg:k,endpointState:O,state:T})?!0:!(D&&!q)},dispatchConditionRejection:!0}),f=w(),s=w(),v=pn(`${e}/executeMutation`,_,{getPendingMeta(){return _e({startedTimeStamp:Date.now()})}}),S=d=>"force"in d,b=d=>"ifOlderThan"in d,R=(d,g,E={})=>(T,O)=>{const D=S(E)&&E.force,L=b(E)&&E.ifOlderThan,k=(q=!0)=>{const $={forceRefetch:q,subscribe:!1};return i.endpoints[d].initiate(g,$)},x=i.endpoints[d].select(g)(O());if(D)T(k());else if(L){const q=x?.fulfilledTimeStamp;if(!q){T(k());return}(Number(new Date)-Number(new Date(q)))/1e3>=L&&T(k())}else T(k(!1))};function C(d){return g=>g?.meta?.arg?.endpointName===d}function h(d,g){return{matchPending:ut(Kn(d),C(g)),matchFulfilled:ut(fe(d),C(g)),matchRejected:ut(Lt(d),C(g))}}return{queryThunk:f,mutationThunk:v,infiniteQueryThunk:s,prefetch:R,updateQueryData:m,upsertQueryData:M,patchQueryData:I,buildMatchThunkActions:h}}function Et(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function Xn(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function Zn(e,t,n,r){return $t(n[e.meta.arg.endpointName][t],fe(e)?e.payload:void 0,Nt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function je(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 Cn(e,t,n){const r=e[De(t)];r&&n(r)}var $e={};function ji({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:o,extractRehydrationInfo:u,hasRehydrationInfo:l},assertTagType:c,config:a}){const I=Se(`${e}/resetApiState`);function y(C,h,d,g){C[h.queryCacheKey]??={status:"uninitialized",endpointName:h.endpointName},je(C,h.queryCacheKey,E=>{E.status="pending",E.requestId=d&&E.requestId?E.requestId:g.requestId,h.originalArgs!==void 0&&(E.originalArgs=h.originalArgs),E.startedTimeStamp=g.startedTimeStamp;const T=i[g.arg.endpointName];rt(T)&&"direction"in h&&(E.direction=h.direction)})}function p(C,h,d,g){je(C,h.arg.queryCacheKey,E=>{if(E.requestId!==h.requestId&&!g)return;const{merge:T}=i[h.arg.endpointName];if(E.status="fulfilled",T)if(E.data!==void 0){const{fulfilledTimeStamp:O,arg:D,baseQueryMeta:L,requestId:k}=h;let x=kt(E.data,q=>T(q,d,{arg:D.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:O,requestId:k}));E.data=x}else E.data=d;else E.data=i[h.arg.endpointName].structuralSharing??!0?qt(br(E.data)?Sr(E.data):E.data,d):d;delete E.error,E.fulfilledTimeStamp=h.fulfilledTimeStamp})}const m=me({name:`${e}/queries`,initialState:$e,reducers:{removeQueryResult:{reducer(C,{payload:{queryCacheKey:h}}){delete C[h]},prepare:Ce()},cacheEntriesUpserted:{reducer(C,h){for(const d of h.payload){const{queryDescription:g,value:E}=d;y(C,g,!0,{arg:g,requestId:h.meta.requestId,startedTimeStamp:h.meta.timestamp}),p(C,{arg:g,requestId:h.meta.requestId,fulfilledTimeStamp:h.meta.timestamp,baseQueryMeta:{}},E,!0)}},prepare:C=>({payload:C.map(g=>{const{endpointName:E,arg:T,value:O}=g,D=i[E];return{queryDescription:{type:"query",endpointName:E,originalArgs:g.arg,queryCacheKey:r({queryArgs:T,endpointDefinition:D,endpointName:E})},value:O}}),meta:{[Vn]:!0,requestId:Yn(),timestamp:Date.now()}})},queryResultPatched:{reducer(C,{payload:{queryCacheKey:h,patches:d}}){je(C,h,g=>{g.data=Jt(g.data,d.concat())})},prepare:Ce()}},extraReducers(C){C.addCase(t.pending,(h,{meta:d,meta:{arg:g}})=>{const E=St(g);y(h,g,E,d)}).addCase(t.fulfilled,(h,{meta:d,payload:g})=>{const E=St(d.arg);p(h,d,g,E)}).addCase(t.rejected,(h,{meta:{condition:d,arg:g,requestId:E},error:T,payload:O})=>{je(h,g.queryCacheKey,D=>{if(!d){if(D.requestId!==E)return;D.status="rejected",D.error=O??T}})}).addMatcher(l,(h,d)=>{const{queries:g}=u(d);for(const[E,T]of Object.entries(g))(T?.status==="fulfilled"||T?.status==="rejected")&&(h[E]=T)})}}),M=me({name:`${e}/mutations`,initialState:$e,reducers:{removeMutationResult:{reducer(C,{payload:h}){const d=De(h);d in C&&delete C[d]},prepare:Ce()}},extraReducers(C){C.addCase(n.pending,(h,{meta:d,meta:{requestId:g,arg:E,startedTimeStamp:T}})=>{E.track&&(h[De(d)]={requestId:g,status:"pending",endpointName:E.endpointName,startedTimeStamp:T})}).addCase(n.fulfilled,(h,{payload:d,meta:g})=>{g.arg.track&&Cn(h,g,E=>{E.requestId===g.requestId&&(E.status="fulfilled",E.data=d,E.fulfilledTimeStamp=g.fulfilledTimeStamp)})}).addCase(n.rejected,(h,{payload:d,error:g,meta:E})=>{E.arg.track&&Cn(h,E,T=>{T.requestId===E.requestId&&(T.status="rejected",T.error=d??g)})}).addMatcher(l,(h,d)=>{const{mutations:g}=u(d);for(const[E,T]of Object.entries(g))(T?.status==="fulfilled"||T?.status==="rejected")&&E!==T?.requestId&&(h[E]=T)})}}),A={tags:{},keys:{}},_=me({name:`${e}/invalidation`,initialState:A,reducers:{updateProvidedBy:{reducer(C,h){for(const{queryCacheKey:d,providedTags:g}of h.payload){P(C,d);for(const{type:E,id:T}of g){const O=(C.tags[E]??={})[T||"__internal_without_id"]??=[];O.includes(d)||O.push(d)}C.keys[d]=g}},prepare:Ce()}},extraReducers(C){C.addCase(m.actions.removeQueryResult,(h,{payload:{queryCacheKey:d}})=>{P(h,d)}).addMatcher(l,(h,d)=>{const{provided:g}=u(d);for(const[E,T]of Object.entries(g.tags??{}))for(const[O,D]of Object.entries(T)){const L=(h.tags[E]??={})[O||"__internal_without_id"]??=[];for(const k of D)L.includes(k)||L.push(k),h.keys[k]=g.keys[k]}}).addMatcher(ze(fe(t),Nt(t)),(h,d)=>{w(h,[d])}).addMatcher(m.actions.cacheEntriesUpserted.match,(h,d)=>{const g=d.payload.map(({queryDescription:E,value:T})=>({type:"UNKNOWN",payload:T,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:E}}));w(h,g)})}});function P(C,h){const d=C.keys[h]??[];for(const g of d){const E=g.type,T=g.id??"__internal_without_id",O=C.tags[E]?.[T];O&&(C.tags[E][T]=O.filter(D=>D!==h))}delete C.keys[h]}function w(C,h){const d=h.map(g=>{const E=Zn(g,"providesTags",i,c),{queryCacheKey:T}=g.meta.arg;return{queryCacheKey:T,providedTags:E}});_.caseReducers.updateProvidedBy(C,_.actions.updateProvidedBy(d))}const f=me({name:`${e}/subscriptions`,initialState:$e,reducers:{updateSubscriptionOptions(C,h){},unsubscribeQueryResult(C,h){},internal_getRTKQSubscriptions(){}}}),s=me({name:`${e}/internalSubscriptions`,initialState:$e,reducers:{subscriptionsUpdated:{reducer(C,h){return Jt(C,h.payload)},prepare:Ce()}}}),v=me({name:`${e}/config`,initialState:{online:Pi(),focused:Ii(),middlewareRegistered:!1,...a},reducers:{middlewareRegistered(C,{payload:h}){C.middlewareRegistered=C.middlewareRegistered==="conflict"||o!==h?"conflict":!0}},extraReducers:C=>{C.addCase(tt,h=>{h.online=!0}).addCase(jt,h=>{h.online=!1}).addCase(et,h=>{h.focused=!0}).addCase(Qt,h=>{h.focused=!1}).addMatcher(l,h=>({...h}))}}),S=Ei({queries:m.reducer,mutations:M.reducer,provided:_.reducer,subscriptions:s.reducer,config:v.reducer}),b=(C,h)=>S(I.match(h)?void 0:C,h),R={...v.actions,...m.actions,...f.actions,...s.actions,...M.actions,..._.actions,resetApiState:I};return{reducer:b,actions:R}}var J=Symbol.for("RTKQ/skipToken"),er={status:"uninitialized"},_n=kt(er,()=>{}),In=kt(er,()=>{});function $i({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=f=>_n,i=f=>In;return{buildQuerySelector:p,buildInfiniteQuerySelector:m,buildMutationSelector:M,selectInvalidatedBy:A,selectCachedArgsForQuery:_,selectApiState:u,selectQueries:l,selectMutations:a,selectQueryEntry:c,selectConfig:I};function o(f){return{...f,...hn(f.status)}}function u(f){return f[t]}function l(f){return u(f)?.queries}function c(f,s){return l(f)?.[s]}function a(f){return u(f)?.mutations}function I(f){return u(f)?.config}function y(f,s,v){return S=>{if(S===J)return n(r,v);const b=e({queryArgs:S,endpointDefinition:s,endpointName:f});return n(C=>c(C,b)??_n,v)}}function p(f,s){return y(f,s,o)}function m(f,s){const{infiniteQueryOptions:v}=s;function S(b){const R={...b,...hn(b.status)},{isLoading:C,isError:h,direction:d}=R,g=d==="forward",E=d==="backward";return{...R,hasNextPage:P(v,R.data,R.originalArgs),hasPreviousPage:w(v,R.data,R.originalArgs),isFetchingNextPage:C&&g,isFetchingPreviousPage:C&&E,isFetchNextPageError:h&&g,isFetchPreviousPageError:h&&E}}return y(f,s,S)}function M(){return f=>{let s;return typeof f=="object"?s=De(f)??J:s=f,n(s===J?i:b=>u(b)?.mutations?.[s]??In,o)}}function A(f,s){const v=f[t],S=new Set;for(const b of s.filter(Ut).map(bt)){const R=v.provided.tags[b.type];if(!R)continue;let C=(b.id!==void 0?R[b.id]:yn(Object.values(R)))??[];for(const h of C)S.add(h)}return yn(Array.from(S.values()).map(b=>{const R=v.queries[b];return R?[{queryCacheKey:b,endpointName:R.endpointName,originalArgs:R.originalArgs}]:[]}))}function _(f,s){return Object.values(l(f)).filter(v=>v?.endpointName===s&&v.status!=="uninitialized").map(v=>v.originalArgs)}function P(f,s,v){return s?Et(f,s,v)!=null:!1}function w(f,s,v){return!s||!f.getPreviousPageParam?!1:Xn(f,s,v)!=null}}const{formatProdErrorMessage:Fi,formatProdErrorMessage:qo,formatProdErrorMessage:Uo}=await N("@reduxjs/toolkit");var Pn=WeakMap?new WeakMap:void 0,An=({endpointName:e,queryArgs:t})=>{let n="";const r=Pn?.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(o,u)=>(u=typeof u=="bigint"?{$bigint:u.toString()}:u,u=Me(u)?Object.keys(u).sort().reduce((l,c)=>(l[c]=u[c],l),{}):u,u));Me(t)&&Pn?.set(t,i),n=i}return`${e}(${n})`};function Wi(...e){return function(n){const r=Yt(a=>n.extractRehydrationInfo?.(a,{reducerPath:n.reducerPath??"api"})),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(a){let I=An;if("serializeQueryArgs"in a.endpointDefinition){const y=a.endpointDefinition.serializeQueryArgs;I=p=>{const m=y(p);return typeof m=="string"?m:An({...p,queryArgs:m})}}else n.serializeQueryArgs&&(I=n.serializeQueryArgs);return I(a)},tagTypes:[...n.tagTypes||[]]},o={endpointDefinitions:{},batch(a){a()},apiUid:Yn(),extractRehydrationInfo:r,hasRehydrationInfo:Yt(a=>r(a)!=null)},u={injectEndpoints:c,enhanceEndpoints({addTagTypes:a,endpoints:I}){if(a)for(const y of a)i.tagTypes.includes(y)||i.tagTypes.push(y);if(I)for(const[y,p]of Object.entries(I))typeof p=="function"?p(o.endpointDefinitions[y]):Object.assign(o.endpointDefinitions[y]||{},p);return u}},l=e.map(a=>a.init(u,i,o));function c(a){const I=a.endpoints({query:y=>({...y,type:"query"}),mutation:y=>({...y,type:"mutation"}),infiniteQuery:y=>({...y,type:"infinitequery"})});for(const[y,p]of Object.entries(I)){if(a.overrideExisting!==!0&&y in o.endpointDefinitions){if(a.overrideExisting==="throw")throw new Error(Fi(39));typeof process<"u";continue}typeof process<"u",o.endpointDefinitions[y]=p;for(const m of l)m.injectEndpoint(y,p)}return u}return u.injectEndpoints({endpoints:n.endpoints})}}const{formatProdErrorMessage:Hi}=await N("@reduxjs/toolkit");function Bi(){return function(){throw new Error(Hi(33))}}function ne(e,...t){return Object.assign(e,...t)}var zi=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let o=null,u=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:c}=e.internalActions,a=(A,_)=>{if(l.match(_)){const{queryCacheKey:w,requestId:f,options:s}=_.payload,v=A.get(w);return v?.has(f)&&v.set(f,s),!0}if(c.match(_)){const{queryCacheKey:w,requestId:f}=_.payload,s=A.get(w);return s&&s.delete(f),!0}if(e.internalActions.removeQueryResult.match(_))return A.delete(_.payload.queryCacheKey),!0;if(t.pending.match(_)){const{meta:{arg:w,requestId:f}}=_,s=Ge(A,w.queryCacheKey,wt);return w.subscribe&&s.set(f,w.subscriptionOptions??s.get(f)??{}),!0}let P=!1;if(t.rejected.match(_)){const{meta:{condition:w,arg:f,requestId:s}}=_;if(w&&f.subscribe){const v=Ge(A,f.queryCacheKey,wt);v.set(s,f.subscriptionOptions??v.get(s)??{}),P=!0}}return P},I=()=>n.currentSubscriptions,m={getSubscriptions:I,getSubscriptionCount:A=>I().get(A)?.size??0,isRequestSubscribed:(A,_)=>!!I()?.get(A)?.get(_)};function M(A){return JSON.parse(JSON.stringify(Object.fromEntries([...A].map(([_,P])=>[_,Object.fromEntries(P)]))))}return(A,_)=>{if(o||(o=M(n.currentSubscriptions)),e.util.resetApiState.match(A))return o={},n.currentSubscriptions.clear(),u=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(A))return[!1,m];const P=a(n.currentSubscriptions,A);let w=!0;if(P){u||(u=setTimeout(()=>{const v=M(n.currentSubscriptions),[,S]=Wn(o,()=>v);_.next(e.internalActions.subscriptionsUpdated(S)),o=v,u=null},500));const f=typeof A.type=="string"&&!!A.type.startsWith(i),s=t.rejected.match(A)&&A.meta.condition&&!!A.meta.arg.subscribe;w=!f&&!s}return[w,!1]}},Gi=2147483647/1e3-1,Ki=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:o,selectConfig:u},getRunningQueryThunk:l,mwApi:c})=>{const{removeQueryResult:a,unsubscribeQueryResult:I,cacheEntriesUpserted:y}=t.internalActions,p=ze(I.match,n.fulfilled,n.rejected,y.match);function m(f){const s=i.currentSubscriptions.get(f);return s?s.size>0:!1}const M={};function A(f){for(const s of f.values())s?.abort?.()}const _=(f,s)=>{const v=s.getState(),S=u(v);if(p(f)){let b;if(y.match(f))b=f.payload.map(R=>R.queryDescription.queryCacheKey);else{const{queryCacheKey:R}=I.match(f)?f.payload:f.meta.arg;b=[R]}P(b,s,S)}if(t.util.resetApiState.match(f)){for(const[b,R]of Object.entries(M))R&&clearTimeout(R),delete M[b];A(i.runningQueries),A(i.runningMutations)}if(r.hasRehydrationInfo(f)){const{queries:b}=r.extractRehydrationInfo(f);P(Object.keys(b),s,S)}};function P(f,s,v){const S=s.getState();for(const b of f){const R=o(S,b);R?.endpointName&&w(b,R.endpointName,s,v)}}function w(f,s,v,S){const R=r.endpointDefinitions[s]?.keepUnusedDataFor??S.keepUnusedDataFor;if(R===1/0)return;const C=Math.max(0,Math.min(R,Gi));if(!m(f)){const h=M[f];h&&clearTimeout(h),M[f]=setTimeout(()=>{if(!m(f)){const d=o(v.getState(),f);d?.endpointName&&v.dispatch(l(d.endpointName,d.originalArgs))?.abort(),v.dispatch(a({queryCacheKey:f}))}delete M[f]},C*1e3)}}return _},Rn=new Error("Promise never resolved before cacheEntryRemoved."),Vi=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:o,selectors:{selectQueryEntry:u,selectApiState:l}})=>{const c=gn(r),a=gn(i),I=fe(r,i),y={};function p(P,w,f){const s=y[P];s?.valueResolved&&(s.valueResolved({data:w,meta:f}),delete s.valueResolved)}function m(P){const w=y[P];w&&(delete y[P],w.cacheEntryRemoved())}const M=(P,w,f)=>{const s=A(P);function v(S,b,R,C){const h=u(f,b),d=u(w.getState(),b);!h&&d&&_(S,C,b,w,R)}if(r.pending.match(P))v(P.meta.arg.endpointName,s,P.meta.requestId,P.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(P))for(const{queryDescription:S,value:b}of P.payload){const{endpointName:R,originalArgs:C,queryCacheKey:h}=S;v(R,h,P.meta.requestId,C),p(h,b,{})}else if(i.pending.match(P))w.getState()[t].mutations[s]&&_(P.meta.arg.endpointName,P.meta.arg.originalArgs,s,w,P.meta.requestId);else if(I(P))p(s,P.payload,P.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(P)||e.internalActions.removeMutationResult.match(P))m(s);else if(e.util.resetApiState.match(P))for(const S of Object.keys(y))m(S)};function A(P){return c(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 _(P,w,f,s,v){const S=n.endpointDefinitions[P],b=S?.onCacheEntryAdded;if(!b)return;const R={},C=new Promise(O=>{R.cacheEntryRemoved=O}),h=Promise.race([new Promise(O=>{R.valueResolved=O}),C.then(()=>{throw Rn})]);h.catch(()=>{}),y[f]=R;const d=e.endpoints[P].select(Ke(S)?w:f),g=s.dispatch((O,D,L)=>L),E={...s,getCacheEntry:()=>d(s.getState()),requestId:v,extra:g,updateCachedData:Ke(S)?O=>s.dispatch(e.util.updateQueryData(P,w,O)):void 0,cacheDataLoaded:h,cacheEntryRemoved:C},T=b(w,E);Promise.resolve(T).catch(O=>{if(O!==Rn)throw O})}return M},Yi=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Ji=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:o,assertTagType:u,refetchQuery:l,internalState:c})=>{const{removeQueryResult:a}=o.internalActions,I=ze(fe(r),Nt(r)),y=ze(fe(r,i),Lt(r,i));let p=[];const m=(_,P)=>{I(_)?A(Zn(_,"invalidatesTags",n,u),P):y(_)?A([],P):o.util.invalidateTags.match(_)&&A($t(_.payload,void 0,void 0,void 0,void 0,u),P)};function M(_){const{queries:P,mutations:w}=_;for(const f of[P,w])for(const s in f)if(f[s]?.status==="pending")return!0;return!1}function A(_,P){const w=P.getState(),f=w[e];if(p.push(..._),f.config.invalidationBehavior==="delayed"&&M(f))return;const s=p;if(p=[],s.length===0)return;const v=o.util.selectInvalidatedBy(w,s);t.batch(()=>{const S=Array.from(v.values());for(const{queryCacheKey:b}of S){const R=f.queries[b],C=Ge(c.currentSubscriptions,b,wt);R&&(C.size===0?P.dispatch(a({queryCacheKey:b})):R.status!=="uninitialized"&&P.dispatch(l(R)))}})}return m},Xi=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:o,currentSubscriptions:u}=i,l=new Set;let c=null;const a=(_,P)=>{(n.internalActions.updateSubscriptionOptions.match(_)||n.internalActions.unsubscribeQueryResult.match(_))&&I(_.payload.queryCacheKey,P),(t.pending.match(_)||t.rejected.match(_)&&_.meta.condition)&&I(_.meta.arg.queryCacheKey,P),(t.fulfilled.match(_)||t.rejected.match(_)&&!_.meta.condition)&&y(_.meta.arg,P),n.util.resetApiState.match(_)&&(M(),c&&(clearTimeout(c),c=null),l.clear())};function I(_,P){l.add(_),c||(c=setTimeout(()=>{for(const w of l)p({queryCacheKey:w},P);l.clear(),c=null},0))}function y({queryCacheKey:_},P){const w=P.getState()[e],f=w.queries[_],s=u.get(_);if(!f||f.status==="uninitialized")return;const{lowestPollingInterval:v,skipPollingIfUnfocused:S}=A(s);if(!Number.isFinite(v))return;const b=o.get(_);b?.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const R=Date.now()+v;o.set(_,{nextPollTimestamp:R,pollingInterval:v,timeout:setTimeout(()=>{(w.config.focused||!S)&&P.dispatch(r(f)),y({queryCacheKey:_},P)},v)})}function p({queryCacheKey:_},P){const f=P.getState()[e].queries[_],s=u.get(_);if(!f||f.status==="uninitialized")return;const{lowestPollingInterval:v}=A(s);if(!Number.isFinite(v)){m(_);return}const S=o.get(_),b=Date.now()+v;(!S||b<S.nextPollTimestamp)&&y({queryCacheKey:_},P)}function m(_){const P=o.get(_);P?.timeout&&clearTimeout(P.timeout),o.delete(_)}function M(){for(const _ of o.keys())m(_)}function A(_=new Map){let P=!1,w=Number.POSITIVE_INFINITY;for(const f of _.values())f.pollingInterval&&(w=Math.min(f.pollingInterval,w),P=f.skipPollingIfUnfocused||P);return{lowestPollingInterval:w,skipPollingIfUnfocused:P}}return a},Zi=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=Kn(n,r),o=Lt(n,r),u=fe(n,r),l={};return(a,I)=>{if(i(a)){const{requestId:y,arg:{endpointName:p,originalArgs:m}}=a.meta,M=t.endpointDefinitions[p],A=M?.onQueryStarted;if(A){const _={},P=new Promise((v,S)=>{_.resolve=v,_.reject=S});P.catch(()=>{}),l[y]=_;const w=e.endpoints[p].select(Ke(M)?m:y),f=I.dispatch((v,S,b)=>b),s={...I,getCacheEntry:()=>w(I.getState()),requestId:y,extra:f,updateCachedData:Ke(M)?v=>I.dispatch(e.util.updateQueryData(p,m,v)):void 0,queryFulfilled:P};A(m,s)}}else if(u(a)){const{requestId:y,baseQueryMeta:p}=a.meta;l[y]?.resolve({data:a.payload,meta:p}),delete l[y]}else if(o(a)){const{requestId:y,rejectedWithValue:p,baseQueryMeta:m}=a.meta;l[y]?.reject({error:a.payload??a.error,isUnhandledError:!p,meta:m}),delete l[y]}}},es=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions,u=(c,a)=>{et.match(c)&&l(a,"refetchOnFocus"),tt.match(c)&&l(a,"refetchOnReconnect")};function l(c,a){const I=c.getState()[e],y=I.queries,p=i.currentSubscriptions;t.batch(()=>{for(const m of p.keys()){const M=y[m],A=p.get(m);if(!A||!M)continue;const _=[...A.values()];(_.some(w=>w[a]===!0)||_.every(w=>w[a]===void 0)&&I.config[a])&&(A.size===0?c.dispatch(o({queryCacheKey:m})):M.status!=="uninitialized"&&c.dispatch(r(M)))}})}return u};function ts(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:o}=e,{apiUid:u}=i,l={invalidateTags:Se(`${t}/invalidateTags`)},c=p=>p.type.startsWith(`${t}/`),a=[Yi,Ki,Ji,Xi,Vi,Zi];return{middleware:p=>{let m=!1;const M=o(p.dispatch),A={...e,internalState:M,refetchQuery:y,isThisApiSliceAction:c,mwApi:p},_=a.map(f=>f(A)),P=zi(A),w=es(A);return f=>s=>{if(!Ci(s))return f(s);m||(m=!0,p.dispatch(r.internalActions.middlewareRegistered(u)));const v={...p,next:f},S=p.getState(),[b,R]=P(s,v,S);let C;if(b?C=f(s):C=R,p.getState()[t]&&(w(s,v,S),c(s)||i.hasRehydrationInfo(s)))for(const h of _)h(s,v,S);return C}},actions:l};function y(p){return e.api.endpoints[p.endpointName].initiate(p.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Tn=Symbol(),ns=({createSelector:e=Si}={})=>({name:Tn,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:u,refetchOnMountOrArgChange:l,refetchOnFocus:c,refetchOnReconnect:a,invalidationBehavior:I,onSchemaFailure:y,catchSchemaFailure:p,skipSchemaValidation:m},M){vr();const A=U=>(typeof process<"u",U);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:tt,onOffline:jt,onFocus:et,onFocusLost:Qt},util:{}});const _=$i({serializeQueryArgs:o,reducerPath:i,createSelector:e}),{selectInvalidatedBy:P,selectCachedArgsForQuery:w,buildQuerySelector:f,buildInfiniteQuerySelector:s,buildMutationSelector:v}=_;ne(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:w});const{queryThunk:S,infiniteQueryThunk:b,mutationThunk:R,patchQueryData:C,updateQueryData:h,upsertQueryData:d,prefetch:g,buildMatchThunkActions:E}=Qi({baseQuery:n,reducerPath:i,context:M,api:t,serializeQueryArgs:o,assertTagType:A,selectors:_,onSchemaFailure:y,catchSchemaFailure:p,skipSchemaValidation:m}),{reducer:T,actions:O}=ji({context:M,queryThunk:S,infiniteQueryThunk:b,mutationThunk:R,serializeQueryArgs:o,reducerPath:i,assertTagType:A,config:{refetchOnFocus:c,refetchOnReconnect:a,refetchOnMountOrArgChange:l,keepUnusedDataFor:u,reducerPath:i,invalidationBehavior:I}});ne(t.util,{patchQueryData:C,updateQueryData:h,upsertQueryData:d,prefetch:g,resetApiState:O.resetApiState,upsertQueryEntries:O.cacheEntriesUpserted}),ne(t.internalActions,O);const D=new WeakMap,L=U=>Ge(D,U,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:k,buildInitiateInfiniteQuery:x,buildInitiateMutation:q,getRunningMutationThunk:$,getRunningMutationsThunk:z,getRunningQueriesThunk:W,getRunningQueryThunk:F}=Ui({queryThunk:S,mutationThunk:R,infiniteQueryThunk:b,api:t,serializeQueryArgs:o,context:M,getInternalState:L});ne(t.util,{getRunningMutationThunk:$,getRunningMutationsThunk:z,getRunningQueryThunk:F,getRunningQueriesThunk:W});const{middleware:Q,actions:K}=ts({reducerPath:i,context:M,queryThunk:S,mutationThunk:R,infiniteQueryThunk:b,api:t,assertTagType:A,selectors:_,getRunningQueryThunk:F,getInternalState:L});return ne(t.util,K),ne(t,{reducer:T,middleware:Q}),{name:Tn,injectEndpoint(U,j){const B=t,G=B.endpoints[U]??={};nt(j)&&ne(G,{name:U,select:f(U,j),initiate:k(U,j)},E(S,U)),Li(j)&&ne(G,{name:U,select:v(),initiate:q(U)},E(R,U)),rt(j)&&ne(G,{name:U,select:s(U,j),initiate:x(U,j)},E(S,U))}}}});await N("@reduxjs/toolkit");const{batch:rs,useDispatch:is,useSelector:ss,useStore:as}=await N("react-redux");function Fe(e){return e.replace(e[0],e[0].toUpperCase())}function os(e){return e.type==="query"}function cs(e){return e.type==="mutation"}function tr(e){return e.type==="infinitequery"}function Ie(e,...t){return Object.assign(e,...t)}const{formatProdErrorMessage:Qo,formatProdErrorMessage:us}=await N("@reduxjs/toolkit"),{useCallback:le,useDebugValue:dt,useEffect:ve,useLayoutEffect:ls,useMemo:V,useRef:ye,useState:Mn}=await N("react"),{shallowEqual:ft}=await N("react-redux");var ht=Symbol();const{useEffect:ds,useRef:fs,useMemo:hs}=await N("react");function pt(e){const t=fs(e),n=hs(()=>qt(t.current,e),[e]);return ds(()=>{t.current!==n&&(t.current=n)},[n]),n}const{useEffect:ps,useRef:gs}=await N("react"),{shallowEqual:On}=await N("react-redux");function We(e){const t=gs(e);return ps(()=>{On(t.current,e)||(t.current=e)},[e]),On(t.current,e)?t.current:e}var ms=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ys=ms(),vs=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ws=vs(),bs=()=>ys||ws?ls:ve,Ss=bs(),Dn=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Gn.pending}:e;function gt(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var mt=["data","status","isLoading","isSuccess","isError","error"];function Es({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:o,createSelector:u},serializeQueryArgs:l,context:c}){const a=o?s=>s():ve;return{buildQueryHooks:P,buildInfiniteQueryHooks:w,buildMutationHook:f,usePrefetch:p};function I(s,v,S){if(v?.endpointName&&s.isUninitialized){const{endpointName:g}=v,E=c.endpointDefinitions[g];S!==J&&l({queryArgs:v.originalArgs,endpointDefinition:E,endpointName:g})===l({queryArgs:S,endpointDefinition:E,endpointName:g})&&(v=void 0)}let b=s.isSuccess?s.data:v?.data;b===void 0&&(b=s.data);const R=b!==void 0,C=s.isLoading,h=(!v||v.isLoading||v.isUninitialized)&&!R&&C,d=s.isSuccess||R&&(C&&!v?.isError||s.isUninitialized);return{...s,data:b,currentData:s.data,isFetching:C,isLoading:h,isSuccess:d}}function y(s,v,S){if(v?.endpointName&&s.isUninitialized){const{endpointName:g}=v,E=c.endpointDefinitions[g];S!==J&&l({queryArgs:v.originalArgs,endpointDefinition:E,endpointName:g})===l({queryArgs:S,endpointDefinition:E,endpointName:g})&&(v=void 0)}let b=s.isSuccess?s.data:v?.data;b===void 0&&(b=s.data);const R=b!==void 0,C=s.isLoading,h=(!v||v.isLoading||v.isUninitialized)&&!R&&C,d=s.isSuccess||C&&R;return{...s,data:b,currentData:s.data,isFetching:C,isLoading:h,isSuccess:d}}function p(s,v){const S=n(),b=We(v);return le((R,C)=>S(e.util.prefetch(s,R,{...b,...C})),[s,S,b])}function m(s,v,{refetchOnReconnect:S,refetchOnFocus:b,refetchOnMountOrArgChange:R,skip:C=!1,pollingInterval:h=0,skipPollingIfUnfocused:d=!1,...g}={}){const{initiate:E}=e.endpoints[s],T=n(),O=ye(void 0);if(!O.current){const Q=T(e.internalActions.internal_getRTKQSubscriptions());O.current=Q}const D=pt(C?J:v),L=We({refetchOnReconnect:S,refetchOnFocus:b,pollingInterval:h,skipPollingIfUnfocused:d}),k=g.initialPageParam,x=We(k),q=ye(void 0);let{queryCacheKey:$,requestId:z}=q.current||{},W=!1;$&&z&&(W=O.current.isRequestSubscribed($,z));const F=!W&&q.current!==void 0;return a(()=>{F&&(q.current=void 0)},[F]),a(()=>{const Q=q.current;if(typeof process<"u",D===J){Q?.unsubscribe(),q.current=void 0;return}const K=q.current?.subscriptionOptions;if(!Q||Q.arg!==D){Q?.unsubscribe();const U=T(E(D,{subscriptionOptions:L,forceRefetch:R,...tr(c.endpointDefinitions[s])?{initialPageParam:x}:{}}));q.current=U}else L!==K&&Q.updateSubscriptionOptions(L)},[T,E,R,D,L,F,x,s]),[q,T,E,L]}function M(s,v){return(b,{skip:R=!1,selectFromResult:C}={})=>{const{select:h}=e.endpoints[s],d=pt(R?J:b),g=ye(void 0),E=V(()=>u([h(d),(k,x)=>x,k=>d],v,{memoizeOptions:{resultEqualityCheck:ft}}),[h,d]),T=V(()=>C?u([E],C,{devModeChecks:{identityFunctionCheck:"never"}}):E,[E,C]),O=r(k=>T(k,g.current),ft),D=i(),L=E(D.getState(),g.current);return Ss(()=>{g.current=L},[L]),O}}function A(s){ve(()=>()=>{s.current?.unsubscribe?.(),s.current=void 0},[s])}function _(s){if(!s.current)throw new Error(us(38));return s.current.refetch()}function P(s){const v=(R,C={})=>{const[h]=m(s,R,C);return A(h),V(()=>({refetch:()=>_(h)}),[h])},S=({refetchOnReconnect:R,refetchOnFocus:C,pollingInterval:h=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:g}=e.endpoints[s],E=n(),[T,O]=Mn(ht),D=ye(void 0),L=We({refetchOnReconnect:R,refetchOnFocus:C,pollingInterval:h,skipPollingIfUnfocused:d});a(()=>{const $=D.current?.subscriptionOptions;L!==$&&D.current?.updateSubscriptionOptions(L)},[L]);const k=ye(L);a(()=>{k.current=L},[L]);const x=le(function($,z=!1){let W;return t(()=>{D.current?.unsubscribe(),D.current=W=E(g($,{subscriptionOptions:k.current,forceRefetch:!z})),O($)}),W},[E,g]),q=le(()=>{D.current?.queryCacheKey&&E(e.internalActions.removeQueryResult({queryCacheKey:D.current?.queryCacheKey}))},[E]);return ve(()=>()=>{D?.current?.unsubscribe()},[]),ve(()=>{T!==ht&&!D.current&&x(T,!0)},[T,x]),V(()=>[x,T,{reset:q}],[x,T,q])},b=M(s,I);return{useQueryState:b,useQuerySubscription:v,useLazyQuerySubscription:S,useLazyQuery(R){const[C,h,{reset:d}]=S(R),g=b(h,{...R,skip:h===ht}),E=V(()=>({lastArg:h}),[h]);return V(()=>[C,{...g,reset:d},E],[C,g,d,E])},useQuery(R,C){const h=v(R,C),d=b(R,{selectFromResult:R===J||C?.skip?void 0:Dn,...C}),g=gt(d,...mt);return dt(g),V(()=>({...d,...h}),[d,h])}}}function w(s){const v=(b,R={})=>{const[C,h,d,g]=m(s,b,R),E=ye(g);a(()=>{E.current=g},[g]);const T=le(function(L,k){let x;return t(()=>{C.current?.unsubscribe(),C.current=x=h(d(L,{subscriptionOptions:E.current,direction:k}))}),x},[C,h,d]);A(C);const O=pt(R.skip?J:b),D=le(()=>_(C),[C]);return V(()=>({trigger:T,refetch:D,fetchNextPage:()=>T(O,"forward"),fetchPreviousPage:()=>T(O,"backward")}),[D,T,O])},S=M(s,y);return{useInfiniteQueryState:S,useInfiniteQuerySubscription:v,useInfiniteQuery(b,R){const{refetch:C,fetchNextPage:h,fetchPreviousPage:d}=v(b,R),g=S(b,{selectFromResult:b===J||R?.skip?void 0:Dn,...R}),E=gt(g,...mt,"hasNextPage","hasPreviousPage");return dt(E),V(()=>({...g,fetchNextPage:h,fetchPreviousPage:d,refetch:C}),[g,h,d,C])}}}function f(s){return({selectFromResult:v,fixedCacheKey:S}={})=>{const{select:b,initiate:R}=e.endpoints[s],C=n(),[h,d]=Mn();ve(()=>()=>{h?.arg.fixedCacheKey||h?.reset()},[h]);const g=le(function($){const z=C(R($,{fixedCacheKey:S}));return d(z),z},[C,R,S]),{requestId:E}=h||{},T=V(()=>b({fixedCacheKey:S,requestId:h?.requestId}),[S,h,b]),O=V(()=>v?u([T],v):T,[v,T]),D=r(O,ft),L=S==null?h?.arg.originalArgs:void 0,k=le(()=>{t(()=>{h&&d(void 0),S&&C(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:S}))})},[C,S,h,E]),x=gt(D,...mt,"endpointName");dt(x);const q=V(()=>({...D,originalArgs:L,reset:k}),[D,L,k]);return V(()=>[g,q],[g,q])}}}var Cs=Symbol(),_s=({batch:e=rs,hooks:t={useDispatch:is,useSelector:ss,useStore:as},createSelector:n=Er,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:Cs,init(o,{serializeQueryArgs:u},l){const c=o,{buildQueryHooks:a,buildInfiniteQueryHooks:I,buildMutationHook:y,usePrefetch:p}=Es({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:u,context:l});return Ie(c,{usePrefetch:p}),Ie(l,{batch:e}),{injectEndpoint(m,M){if(os(M)){const{useQuery:A,useLazyQuery:_,useLazyQuerySubscription:P,useQueryState:w,useQuerySubscription:f}=a(m);Ie(c.endpoints[m],{useQuery:A,useLazyQuery:_,useLazyQuerySubscription:P,useQueryState:w,useQuerySubscription:f}),o[`use${Fe(m)}Query`]=A,o[`useLazy${Fe(m)}Query`]=_}if(cs(M)){const A=y(m);Ie(c.endpoints[m],{useMutation:A}),o[`use${Fe(m)}Mutation`]=A}else if(tr(M)){const{useInfiniteQuery:A,useInfiniteQuerySubscription:_,useInfiniteQueryState:P}=I(m);Ie(c.endpoints[m],{useInfiniteQuery:A,useInfiniteQuerySubscription:_,useInfiniteQueryState:P}),o[`use${Fe(m)}InfiniteQuery`]=A}}}}});await N("@reduxjs/toolkit");await N("react");await N("react");await N("react");await N("react-redux");var nr=Wi(ns(),_s());const Is="/auth",Ps="pk_live_CE856A4938B36648",As="https://notifications.decentraland.zone",Rs="https://peer.decentraland.zone",Ts="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",Ms="https://events.decentraland.zone/api",Os="https://realm-provider-ea.decentraland.org/hot-scenes",Ds="61570c542c2d66c659492e5b24a41522",xs={AUTH_URL:Is,MAGIC_API_KEY:Ps,NOTIFICATIONS_API_URL:As,PEER_URL:Rs,SEGMENT_API_KEY:Ts,EVENTS_API_URL:Ms,HOT_SCENES_URL:Os,WALLET_CONNECT_PROJECT_ID:Ds},ks="/auth",Ls="pk_live_212568025B158355",Ns="https://notifications.decentraland.org",qs="https://peer.decentraland.org",Us="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",Qs="https://events.decentraland.org/api",js="https://realm-provider-ea.decentraland.org/hot-scenes",$s="61570c542c2d66c659492e5b24a41522",Fs={AUTH_URL:ks,MAGIC_API_KEY:Ls,NOTIFICATIONS_API_URL:Ns,PEER_URL:qs,SEGMENT_API_KEY:Us,EVENTS_API_URL:Qs,HOT_SCENES_URL:js,WALLET_CONNECT_PROJECT_ID:$s},Ws="/auth",Hs="pk_live_CE856A4938B36648",Bs="https://notifications.decentraland.org",zs="https://peer.decentraland.org",Gs="f0S2L1sWumT8BPjBmIBDTN5gIWjhrRHG",Ks="https://events.decentraland.org/api",Vs="https://realm-provider-ea.decentraland.org/hot-scenes",Ys="61570c542c2d66c659492e5b24a41522",Js={AUTH_URL:Ws,MAGIC_API_KEY:Hs,NOTIFICATIONS_API_URL:Bs,PEER_URL:zs,SEGMENT_API_KEY:Gs,EVENTS_API_URL:Ks,HOT_SCENES_URL:Vs,WALLET_CONNECT_PROJECT_ID:Ys};var Xs={VITE_REACT_APP_WEBSITE_VERSION:"0.0.1-24138829632.commit-0946e16",VITE_BASE_URL:"https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24138829632.commit-0946e16",BASE_URL:"https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24138829632.commit-0946e16",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Zs=mr({[at.DEVELOPMENT]:xs,[at.STAGING]:Js,[at.PRODUCTION]:Fs},{systemEnvVariables:{REACT_APP_DCL_DEFAULT_ENV:Xs.VITE_REACT_APP_DCL_DEFAULT_ENV??"dev"}}),ae=e=>Zs.get(e),ea=5;function Re(e,t){return`${e},${t}`}function ta(e,t){for(const[n,r]of t){const i=e.get(Re(n,r));if(i)return i}}function rr(e){return e.toLowerCase().includes("genesis plaza")}function na(e){const t=e.find(r=>rr(r.name)),n=t?Re(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 ra(e,t,n=ea){const r=t.filter(a=>a.usersTotalCount>=n),i=new Map(e.map(a=>[Re(a.x,a.y),a])),o=[],u=new Set,l=new Set;for(const a of r){const I=ta(i,a.parcels);I&&!l.has(I.id)&&(o.push({id:I.id,type:"event",title:I.name,image:I.image||"",users:a.usersTotalCount,coordinates:Re(I.x,I.y),creatorAddress:I.user,creatorName:I.user_name||void 0,isGenesisPlaza:!1}),u.add(a.id),l.add(I.id))}o.sort((a,I)=>I.users-a.users);const c=r.filter(a=>!u.has(a.id)).sort((a,I)=>I.usersTotalCount-a.usersTotalCount);for(const a of c){const I=rr(a.name);o.push({id:a.id,type:"place",title:a.name,image:a.thumbnail,users:a.usersTotalCount,coordinates:Re(a.baseCoords[0],a.baseCoords[1]),...I&&{creatorName:"Decentraland Foundation"},isGenesisPlaza:I})}return o.length===0&&o.push(na(t)),o}function ia(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 Ve=nr({reducerPath:"eventsClient",baseQuery:xi({baseUrl:"/"}),tagTypes:["Events","LiveNow"],keepUnusedDataFor:60,endpoints:e=>({getEvents:e.query({queryFn:async t=>{try{const n=ae("EVENTS_API_URL"),r=ia(t),i=await fetch(`${n}/events?${r}`);if(!i.ok)throw new Error(`Events API error: ${i.status}`);return{data:(await i.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=ae("EVENTS_API_URL"),r=ae("HOT_SCENES_URL"),[i,o]=await Promise.all([fetch(`${n}/events?list=live&limit=20&order=asc&world=false`),fetch(r)]);if(!i.ok||!o.ok)throw new Error("Failed to fetch live events or hot scenes");const[u,l]=await Promise.all([i.json(),o.json()]),c=t&&"minUsers"in t?t.minUsers:void 0;return{data:ra(u.data??[],l,c)}}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=ae("EVENTS_API_URL"),n=new Date,r=new Date(n.getTime()+24*60*60*1e3),i=await fetch(`${t}/events?list=upcoming&limit=10&order=asc&world=false&from=${n.toISOString()}&to=${r.toISOString()}`);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"]}),getEventsByDateRange:e.query({queryFn:async({from:t,to:n})=>{try{const r=ae("EVENTS_API_URL"),i=await fetch(`${r}/events?list=all&from=${t}&to=${n}&limit=100&order=asc&world=false`);if(!i.ok)throw new Error(`Events API error: ${i.status}`);return{data:(await i.json()).data??[]}}catch(r){return{error:{status:"FETCH_ERROR",error:r instanceof Error?r.message:"Unknown error"}}}},providesTags:["Events"]})})}),{useGetEventsQuery:jo,useGetLiveNowCardsQuery:sa,useGetUpcomingEventsQuery:$o,useGetEventsByDateRangeQuery:Fo}=Ve;async function aa(e){try{const t=ae("PEER_URL"),n=await fetch(`${t}/lambdas/profiles/${e.toLowerCase()}`);return n.ok?await n.json()??null:null}catch{return null}}const Ye=nr({reducerPath:"profileClient",baseQuery:Bi(),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 aa(t)}}catch{return{data:null}}},providesTags:(t,n,r)=>r?[{type:"Profile",id:r}]:[]})})}),{useGetProfileQuery:ir}=Ye,{combineReducers:oa,configureStore:ca}=await N("@reduxjs/toolkit"),ua=oa({network:li,transactions:wi,wallet:hi,[Ye.reducerPath]:Ye.reducer,[Ve.reducerPath]:Ve.reducer}),la=ca({reducer:ua,middleware:e=>e().concat(Ye.middleware,Ve.middleware),devTools:!1});ki(la.dispatch);const Wo={"live_now.title":"Live Now"};var Ft={},da=Fn;Object.defineProperty(Ft,"__esModule",{value:!0});var sr=Ft.default=void 0,fa=da($n()),ha=H;sr=Ft.default=(0,fa.default)((0,ha.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Wt={},pa=Fn;Object.defineProperty(Wt,"__esModule",{value:!0});var ar=Wt.default=void 0,ga=pa($n()),ma=H;ar=Wt.default=(0,ga.default)((0,ma.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const{memo:ya}=await N("react"),{BadgeGroup:va,EventCard:wa,LiveBadge:ba,UserCountBadge:Sa}=await N("decentraland-ui2"),Ea=`${window.location.origin}/dcl-logo.svg`.replace(/^http:\/\//,"https://");function Ca(e){return`https://play.decentraland.org/?position=${e}`}const or=ya(({card:e})=>{const{data:t}=ir(e.creatorAddress,{skip:!e.creatorAddress||e.isGenesisPlaza}),n=t?.avatars?.[0];let i=n?{name:n.name??"",ethAddress:n.ethAddress??"",avatar:n.avatar}:void 0;return!i&&e.creatorName&&(i={name:e.creatorName,ethAddress:"",...e.isGenesisPlaza&&{avatar:{snapshots:{face256:Ea,body:""}}}}),H.jsx(wa,{image:e.image,sceneName:e.title,coordinates:e.coordinates,avatar:i,onClick:()=>window.open(Ca(e.coordinates),"_blank","noopener,noreferrer"),leftBadge:H.jsxs(va,{children:[e.type==="event"&&H.jsx(ba,{}),H.jsx(Sa,{count:e.users})]}),leftBadgeTransparent:!0,hideLocation:!0})});or.displayName="LiveNowCardItem";const{Box:it,IconButton:_a,Typography:Ia,styled:ie}=await N("decentraland-ui2"),Pa=ie("section")(({theme:e})=>({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),[e.breakpoints.down("sm")]:{padding:e.spacing(3,2)}})),Aa=ie(it)({display:"flex",alignItems:"center",gap:8,marginBottom:24}),Ra=ie(Ia)({fontWeight:600}),xn=62,kn=60,Ta=ie(it)({position:"relative"}),Ln=ie(_a)(({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"}})),Ma=ie(it)(({theme:e,fadeLeft:t,fadeRight:n})=>{const r=[];return t&&r.push(`linear-gradient(to right, transparent, black ${kn}px)`),n&&r.push(`linear-gradient(to left, transparent, black ${kn}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 - ${xn}px)`},"&& .MuiCardActionArea-root:hover .MuiCardMedia-root":{height:`calc(62.5cqw - ${xn}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)"}}}}),Oa=ie(yr)({color:"#E00000"}),Da=ie(it)(({theme:e})=>({display:"flex",justifyContent:"center",gap:e.spacing(.75),marginTop:e.spacing(2)})),xa=ie("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})})),{useCallback:de,useEffect:ka,useMemo:La,useRef:Nn,useState:Pe}=await N("react"),{useTranslation:Na}=await N("@dcl/hooks"),qn=300;function qa(){const{t:e}=Na(),t=La(()=>{const b=new URLSearchParams(window.location.search).get("minUsers");if(b!==null&&!Number.isNaN(Number(b)))return{minUsers:Number(b)}},[]),{data:n=[]}=sa(t,{pollingInterval:6e4}),[r,i]=Pe(0),[o,u]=Pe(!1),[l,c]=Pe(!1),[a,I]=Pe(1),[y,p]=Pe(!1),m=Nn(null),M=Nn({isDown:!1,startX:0,scrollLeft:0}),A=de(()=>{const S=m.current;if(!S)return;const b=S.scrollWidth>S.clientWidth,R=b?Math.ceil(S.scrollWidth/S.clientWidth):1;u(S.scrollLeft>0),c(b&&S.scrollLeft+S.clientWidth<S.scrollWidth-1),I(R);const C=S.scrollWidth-S.clientWidth;if(C<=0)i(0);else{const h=S.scrollLeft/C;i(Math.round(h*(R-1)))}},[]);ka(()=>{const S=m.current;if(!S)return;A();const b=new ResizeObserver(A);return b.observe(S),()=>b.disconnect()},[n.length,A]);const _=de(S=>{const b=m.current;if(!b)return;const R=S==="left"?-qn:qn;b.scrollBy({left:R,behavior:"smooth"})},[]),P=de(S=>{const b=m.current;b&&(M.current={isDown:!0,startX:S.pageX-b.offsetLeft,scrollLeft:b.scrollLeft},p(!1))},[]),w=de(S=>{if(!M.current.isDown)return;const b=m.current;if(!b)return;S.preventDefault();const C=S.pageX-b.offsetLeft-M.current.startX;Math.abs(C)>5&&p(!0),b.scrollLeft=M.current.scrollLeft-C},[]),f=de(()=>{M.current.isDown=!1},[]),s=de(S=>{y&&S.stopPropagation()},[y]),v=de(S=>{const b=m.current;if(!b)return;const R=b.scrollWidth-b.clientWidth,C=a<=1?0:R*S/(a-1);b.scrollTo({left:C,behavior:"smooth"})},[a]);return n.length===0?null:H.jsxs(Pa,{children:[H.jsxs(Aa,{children:[H.jsx(Oa,{}),H.jsx(Ra,{variant:"h5",children:e("live_now.title")})]}),H.jsxs(Ta,{children:[o&&H.jsx(Ln,{side:"left",onClick:()=>_("left"),children:H.jsx(sr,{})}),l&&H.jsx(Ln,{side:"right",onClick:()=>_("right"),children:H.jsx(ar,{})}),H.jsx(Ma,{ref:m,onScroll:A,fadeLeft:o,fadeRight:l,onMouseDown:P,onMouseMove:w,onMouseUp:f,onMouseLeave:f,onClickCapture:s,sx:{cursor:y?"grabbing":"grab"},children:n.map(S=>H.jsx(or,{card:S},S.id))})]}),a>1&&H.jsx(Da,{children:Array.from({length:a},(S,b)=>H.jsx(xa,{active:b===r,onClick:()=>v(b),"aria-label":`Go to page ${b+1}`},b))})]})}const{useCallback:yt,useEffect:Ua,useMemo:Qa,useState:ja}=await N("react"),{useNotifications:$a}=await N("@dcl/hooks"),{NotificationActiveTab:Fa}=await N("decentraland-ui2");function Wa(e){const{identity:t,isConnected:n,locale:r="en"}=e,i=!!(t&&n),[o,u]=ja(!0),l=ae("NOTIFICATIONS_API_URL")??"https://notifications.decentraland.org";Ua(()=>{i||u(!0)},[i]);const c=yt(()=>{i&&u(s=>s&&!1)},[i]),{notifications:a,isLoading:I,isModalOpen:y,isNotificationsOnboarding:p,modalActiveTab:m,handleNotificationsOpen:M,handleOnBegin:A,handleOnChangeModalTab:_}=$a({identity:t??void 0,isNotificationsEnabled:i&&o,initialActiveTab:Fa.NEWEST,notificationsUrl:l,onError:c}),P=yt(()=>{o||u(!0),M()},[M,o]),w=yt((s,v)=>{_(v)},[_]);return{notificationProps:Qa(()=>{if(i)return{locale:r,isLoading:I,isOnboarding:p,isOpen:y,items:a,activeTab:m,onClick:P,onClose:P,onBegin:A,onChangeTab:w}},[i,r,I,p,y,a,m,P,A,w])}}var cr={},ee={},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 Ht=_t.exports,It={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function r(i,o){for(var u=0;u<o.length;u++){var l=o[u];if(i===l||n(l)&&l.test(i))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(It,It.exports);var Ha=It.exports,Pt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(i,o){return i.indexOf(o)!==-1};t.default=n,e.exports=t.default,e.exports.default=t.default})(Pt,Pt.exports);var Ba=Pt.exports,At={exports:{}},Rt={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]:{},i=arguments.length>1?arguments[1]:void 0;for(var o in i)typeof r[o]>"u"&&(r[o]=i[o]);return r}e.exports=t.default,e.exports.default=t.default})(Rt,Rt.exports);var ur=Rt.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=i(Ht),r=i(ur);function i(l){return l&&l.__esModule?l:{default:l}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function u(l,c){(0,n.default)(l),c=(0,r.default)(c,o),c.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),c.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var a=l.split("."),I=a[a.length-1];return c.require_tld&&(a.length<2||!c.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(I)||/\s/.test(I))||!c.allow_numeric_tld&&/^\d+$/.test(I)?!1:a.every(function(y){return!(y.length>63&&!c.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(y)||/[\uff01-\uff5e]/.test(y)||/^-|-$/.test(y)||!c.allow_underscores&&/_/.test(y))})}e.exports=t.default,e.exports.default=t.default})(At,At.exports);var za=At.exports,Tt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=I;var n=r(Ht);function r(y){return y&&y.__esModule?y:{default:y}}function i(y){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(y)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",u="(".concat(o,"[.]){3}").concat(o),l=new RegExp("^".concat(u,"$")),c="(?:[0-9a-fA-F]{1,4})",a=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(u,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(u,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(u,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(u,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(u,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(u,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(u,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function I(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(y);var m=(i(p)==="object"?p.version:arguments[1])||"";return m?m.toString()==="4"?l.test(y):m.toString()==="6"?a.test(y):!1:I(y,{version:4})||I(y,{version:6})}e.exports=t.default,e.exports.default=t.default})(Tt,Tt.exports);var Ga=Tt.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=P;var n=c(Ht),r=c(Ha),i=c(Ba),o=c(za),u=c(Ga),l=c(ur);function c(w){return w&&w.__esModule?w:{default:w}}function a(w,f){return M(w)||m(w,f)||y(w,f)||I()}function I(){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 y(w,f){if(w){if(typeof w=="string")return p(w,f);var s={}.toString.call(w).slice(8,-1);return s==="Object"&&w.constructor&&(s=w.constructor.name),s==="Map"||s==="Set"?Array.from(w):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?p(w,f):void 0}}function p(w,f){(f==null||f>w.length)&&(f=w.length);for(var s=0,v=Array(f);s<f;s++)v[s]=w[s];return v}function m(w,f){var s=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(s!=null){var v,S,b,R,C=[],h=!0,d=!1;try{if(b=(s=s.call(w)).next,f!==0)for(;!(h=(v=b.call(s)).done)&&(C.push(v.value),C.length!==f);h=!0);}catch(g){d=!0,S=g}finally{try{if(!h&&s.return!=null&&(R=s.return(),Object(R)!==R))return}finally{if(d)throw S}}return C}}function M(w){if(Array.isArray(w))return w}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},_=/^\[([^\]]+)\](?::([0-9]+))?$/;function P(w,f){if((0,n.default)(w),!w||/[\s<>]/.test(w)||w.indexOf("mailto:")===0||(f=(0,l.default)(f,A),f.validate_length&&w.length>f.max_allowed_length)||!f.allow_fragments&&(0,i.default)(w,"#")||!f.allow_query_components&&((0,i.default)(w,"?")||(0,i.default)(w,"&")))return!1;var s,v,S,b,R,C,h,d;h=w.split("#"),w=h.shift(),h=w.split("?"),w=h.shift();var g=w.match(/^([a-z][a-z0-9+\-.]*):/i),E=!1,T=function(X){return E=!0,s=X.toLowerCase(),f.require_valid_protocol&&f.protocols.indexOf(s)===-1?!1:w.substring(g[0].length)};if(g){var O=g[1],D=w.substring(g[0].length),L=D.slice(0,2)==="//";if(L){if(w=T(O),w===!1)return!1}else{var k=D.indexOf("/"),x=k===-1?D:D.substring(0,k),q=x.indexOf("@");if(q!==-1){var $=x.substring(0,q),z=/^[a-zA-Z0-9\-_.%:]*$/,W=z.test($),F=/%[0-9a-fA-F]{2}/.test($);if(W&&!F){if(f.require_protocol)return!1}else if(w=T(O),w===!1)return!1}else{var Q=/^[0-9]/.test(D);if(Q){if(f.require_protocol)return!1}else if(w=T(O),w===!1)return!1}}}else if(f.require_protocol)return!1;if(w.slice(0,2)==="//"){if(!E&&!f.allow_protocol_relative_urls)return!1;w=w.slice(2)}if(w==="")return!1;if(h=w.split("/"),w=h.shift(),w===""&&!f.require_host)return!0;if(h=w.split("@"),h.length>1){if(f.disallow_auth||h[0]===""||(v=h.shift(),v.indexOf(":")>=0&&v.split(":").length>2))return!1;var K=v.split(":"),U=a(K,2),j=U[0],B=U[1];if(j===""&&B==="")return!1}b=h.join("@"),C=null,d=null;var G=b.match(_);if(G?(S="",d=G[1],C=G[2]||null):(h=b.split(":"),S=h.shift(),h.length&&(C=h.join(":"))),C!==null&&C.length>0){if(R=parseInt(C,10),!/^[0-9]+$/.test(C)||R<=0||R>65535)return!1}else if(f.require_port)return!1;return f.host_whitelist?(0,r.default)(S,f.host_whitelist):S===""&&!f.require_host?!0:!(!(0,u.default)(S)&&!(0,o.default)(S,f)&&(!d||!(0,u.default)(d,6))||(S=S||d,f.host_blacklist&&(0,r.default)(S,f.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(Ct,Ct.exports);var Ka=Ct.exports,Bt={};(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 c=localStorage.getItem(u(l));if(!c)return null;let a;try{a=JSON.parse(c)}catch{return o(l),null}return a.expiration=new Date(a.expiration),a.expiration.getTime()<=Date.now()?(o(l),null):a}e.localStorageGetIdentity=r;function i(l,c){new Date(c.expiration).getTime()>Date.now()&&localStorage.setItem(u(l),JSON.stringify(c))}e.localStorageStoreIdentity=i;function o(l){localStorage.removeItem(u(l))}e.localStorageClearIdentity=o;function u(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()}`}})(Bt);Object.defineProperty(ee,"__esModule",{value:!0});ee.clearIdentity=ee.storeIdentity=ee.getIdentity=ee.init=void 0;const Va=Ka,te=Bt,lr=te.SINGLE_SIGN_ON_TARGET,Un=500,Ya=5;let Qn=0,Je="";const Ja={protocols:["https"],require_protocol:!0};function Xa(e,t={}){if(!(0,Va.default)(e,{...Ja,...t}))throw new Error(`Invalid url: ${e}`);if(Je)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),Je=e}ee.init=Xa;async function Za(e){let t;try{t=(await st(await zt(),te.Action.GET,{user:e})).identity??null}catch(n){Gt(n),t=(0,te.localStorageGetIdentity)(e)}return t}ee.getIdentity=Za;async function eo(e,t){try{await st(await zt(),te.Action.STORE,{user:e,identity:t})}catch(n){Gt(n),(0,te.localStorageStoreIdentity)(e,t)}}ee.storeIdentity=eo;async function to(e){try{await st(await zt(),te.Action.CLEAR,{user:e})}catch(t){Gt(t),(0,te.localStorageClearIdentity)(e)}}ee.clearIdentity=to;async function zt(){if(!Je)throw new Error("Not initialized");for(let e=0;e<Ya;e++){const n=document.getElementById(lr)?.contentWindow;if(!n){await no(Un);continue}try{await st(n,te.Action.PING,{},Un)}catch{continue}return n}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function st(e,t,n,r=0){Qn++;const i=Qn;let o=null;const u=new Promise((l,c)=>{o=({data:a})=>{!a||a.target!==te.SINGLE_SIGN_ON_TARGET||a.id!==i||(a.error?c(new Error(a.error)):l(a))},window.addEventListener("message",o)});e.postMessage((0,te.createMessage)({id:i,action:t,...n}),Je);try{return await(r?Promise.race([u,new Promise((l,c)=>setTimeout(()=>c(new Error("Did not receive a response in time")),r))]):u)}catch(l){throw l}finally{o&&window.removeEventListener("message",o)}}function no(e){return new Promise(t=>setTimeout(t,e))}function Gt(e){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",e.message)}(function(e){var t=Le&&Le.__createBinding||(Object.create?function(r,i,o,u){u===void 0&&(u=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,u,l)}:function(r,i,o,u){u===void 0&&(u=o),r[u]=i[o]}),n=Le&&Le.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(ee,e),n(Bt,e)})(cr);const{useEffect:ro,useState:io}=await N("react");function so(){const{address:e}=zn(),t=e||void 0,[n,r]=io(void 0);return ro(()=>{if(!t){r(void 0);return}try{const i=cr.localStorageGetIdentity(t.toLowerCase());r(i??void 0)}catch(i){console.error("[useAuthIdentity] Failed to get identity:",i),r(void 0)}},[t]),{identity:n,hasValidIdentity:!!n,address:t}}function ao(){const e=ae("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 oo(){const e=window.location.pathname,t=window.location.search;return new URLSearchParams(t).get("redirectTo")??`${e}${t}`}function co(e){const t=oo(),n=ao();Gr(),window.location.replace(`${n}/login?redirectTo=${encodeURIComponent(t)}`)}const{Box:dr,styled:fr}=await N("decentraland-ui2"),uo=fr(dr)(()=>({minHeight:"100vh",display:"flex",flexDirection:"column",background:"linear-gradient(180deg, #1A0A2E 0%, #0D0116 100%)"})),lo=fr(dr)({flex:1,width:"100%"}),{useCallback:jn,useMemo:fo}=await N("react"),{useLocation:ho}=await N("react-router-dom"),{usePageTracking:po}=await N("@dcl/hooks"),{Footer:go,FooterLanding:mo,Navbar:yo,NavbarPages:vo,SupportedLanguage:wo}=await N("decentraland-ui2");function bo(e){const{children:t}=e,n=ho(),{address:r,isConnected:i,isConnecting:o,isDisconnecting:u,disconnect:l}=zn();po(n.pathname);const{identity:c}=so(),{notificationProps:a}=Wa({identity:c,isConnected:i,locale:"en"}),{data:I}=ir(r??void 0,{skip:!r}),y=I?.avatars?.[0],p=jn(()=>{co()},[]),m=jn(()=>{l()},[l]),M=fo(()=>({activePage:vo.EXPLORE,isSignedIn:i,isSigningIn:o,isDisconnecting:u,isActivity:!1,address:r||void 0,avatar:y,notifications:a,onClickSignIn:p,onClickSignOut:m,onClickNavbarItem:A=>{const _=A.currentTarget;_?.href&&(window.location.href=_.href)}}),[i,o,u,r,y,a,p,m]);return H.jsxs(uo,{children:[H.jsx(yo,{...M}),H.jsx(lo,{children:t}),H.jsx(mo,{}),H.jsx(go,{languages:[{code:wo.EN,name:"English",flag:"🇺🇸"}],hideSocialNetworks:!0})]})}const So="https://cdn.decentraland.org/@dcl/explore-site/0.0.1-24138829632.commit-0946e16/assets/top_background-Bnd2vX_F.webp",{Box:hr,styled:pr}=await N("decentraland-ui2"),Eo=pr(hr)(({standalone:e,theme:t})=>({position:"relative",background:`url(${So}) 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"},padding:t.spacing(5,8,2,8),[t.breakpoints.down("lg")]:{padding:t.spacing(5,4,2,4)},[t.breakpoints.down("md")]:{padding:t.spacing(5,3,2,3)},[t.breakpoints.down("sm")]:{padding:t.spacing(3,2,2,2)},...!e&&{paddingTop:0}})),Co=pr(hr)(({standalone:e,theme:t})=>({position:"relative",zIndex:1,display:"flex",flexDirection:"column",gap:t.spacing(4),paddingTop:e?"66px":"96px"}));function Ho({standalone:e=!0}){const t=H.jsx(Eo,{component:"main",standalone:e,children:H.jsx(Co,{standalone:e,children:H.jsx(qa,{})})});return e?H.jsx(bo,{children:t}):t}export{Ho as H,ko as W,Lo as a,xo as c,Wo as e,ae as g,Do as m,la as s};
@@ -0,0 +1,2 @@
1
+ import{importShared as Q}from"./__federation_fn_import-WDa0gv1I.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
+ `),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};
@@ -0,0 +1,15 @@
1
+ import{g as L}from"./_commonjsHelpers-C4iS2aBk.js";import{importShared as w}from"./__federation_fn_import-WDa0gv1I.js";import{_ as g,b as pr,s as hr}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-B75LdcJS.js";import{j as G}from"./jsx-runtime-B1l0k91v.js";import{c as yr,T as gr,a as br,k as vr}from"./emotion-react.browser.esm-5OnyV0Sh.js";function _r(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?U.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?U.STAGING:t.endsWith(".io")||t.endsWith(".zone")?U.DEVELOPMENT:null}function Sr(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Mt(n))return n}return null}var ct={},U;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(U||(U={}));function Lt(){return Object.values(U)}function Mt(e){return Lt().includes(e)}function pe(e){if(Mt(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${Lt().map(t=>`"${t}"`).join(", ")}.`)}function xr(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):U.PRODUCTION}function wr(e){if(typeof window<"u"){const r=Sr(window.location);if(r)return r;const n=_r(window.location);if(n)return n}return xr(typeof e>"u"&&typeof process=="object"&&typeof ct=="object"?ct:e)}function ni(e,t){const r=wr(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 Dt={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})(Dt);var Qe=Dt.exports,ze={};const Ft=await w("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 Bt(e){if(Ft.isValidElement(e)||!z(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Bt(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=>{Ft.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])?Bt(t[o]):t[o]:n[o]=t[o]}),n}const $r=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 Er=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var zt={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"),xe=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),$e=Symbol.for("react.consumer"),Ee=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),Tr=Symbol.for("react.view_transition"),Cr=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 xe:case Ce:case Oe:case Tr:return e;default:switch(e=e&&e.$$typeof,e){case Ee:case Te:case Ae:case Re:return e;case $e:return e;default:return t}}case Je:return t}}}y.ContextConsumer=$e;y.ContextProvider=Ee;y.Element=Ze;y.ForwardRef=Te;y.Fragment=Se;y.Lazy=Ae;y.Memo=Re;y.Portal=Je;y.Profiler=we;y.StrictMode=xe;y.Suspense=Ce;y.SuspenseList=Oe;y.isContextConsumer=function(e){return P(e)===$e};y.isContextProvider=function(e){return P(e)===Ee};y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ze};y.isForwardRef=function(e){return P(e)===Te};y.isFragment=function(e){return P(e)===Se};y.isLazy=function(e){return P(e)===Ae};y.isMemo=function(e){return P(e)===Re};y.isPortal=function(e){return P(e)===Je};y.isProfiler=function(e){return P(e)===we};y.isStrictMode=function(e){return P(e)===xe};y.isSuspense=function(e){return P(e)===Ce};y.isSuspenseList=function(e){return P(e)===Oe};y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Se||e===we||e===xe||e===Ce||e===Oe||typeof e=="object"&&e!==null&&(e.$$typeof===Ae||e.$$typeof===Re||e.$$typeof===Ee||e.$$typeof===$e||e.$$typeof===Te||e.$$typeof===Cr||e.getModuleId!==void 0)};y.typeOf=P;zt.exports=y;var ft=zt.exports;const Or=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Nt(e){const t=`${e}`.match(Or);return t&&t[1]||""}function Wt(e,t=""){return e.displayName||e.name||Nt(e)||t}function dt(e,t,r){const n=Wt(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Rr(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wt(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ft.ForwardRef:return dt(e,e.render,"ForwardRef");case ft.Memo:return dt(e,e.type,"memo");default:return}}}const Ar=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,getFunctionName:Nt},Symbol.toStringTag,{value:"Module"}));function N(e){if(typeof e!="string")throw new Error(se(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Pr=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));function Ir(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function kr(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 jr(e,t){return()=>null}const Lr=await w("react");function Mr(e,t){var r,n;return Lr.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 Kt(e){return e&&e.ownerDocument||document}function Dr(e){return Kt(e).defaultView||window}function Fr(e,t){return()=>null}function Ut(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const mt=await w("react"),Gt=typeof window<"u"?mt.useLayoutEffect:mt.useEffect,Ye=await w("react");let pt=0;function Br(e){const[t,r]=Ye.useState(e),n=e||t;return Ye.useEffect(()=>{t==null&&(pt+=1,r(`mui-${pt}`))},[t]),n}const ht=Ye.useId;function zr(e){if(ht!==void 0){const t=ht();return e??t}return Br(e)}function Nr(e,t,r,n,o){return null}const Ne=await w("react");function Wr({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=Ne.useRef(e!==void 0),[s,i]=Ne.useState(t),u=o?e:s,l=Ne.useCallback(a=>{o||i(a)},[]);return[u,l]}const yt=await w("react");function Kr(e){const t=yt.useRef(e);return Gt(()=>{t.current=e}),yt.useRef((...r)=>(0,t.current)(...r)).current}const Ur=await w("react");function Gr(...e){return Ur.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ut(r,t)})},e)}const Yr=await w("react"),gt={};function qr(e,t){const r=Yr.useRef(gt);return r.current===gt&&(r.current=e(t)),r}const Vr=await w("react"),Hr=[];function Xr(e){Vr.useEffect(e,Hr)}class Pe{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Pe}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function oi(){const e=qr(Pe.create).current;return Xr(e.disposeEffect),e}const bt=await w("react");let Ie=!0,qe=!1;const Qr=new Pe,Zr={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 Jr(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Zr[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function en(e){e.metaKey||e.altKey||e.ctrlKey||(Ie=!0)}function We(){Ie=!1}function tn(){this.visibilityState==="hidden"&&qe&&(Ie=!0)}function rn(e){e.addEventListener("keydown",en,!0),e.addEventListener("mousedown",We,!0),e.addEventListener("pointerdown",We,!0),e.addEventListener("touchstart",We,!0),e.addEventListener("visibilitychange",tn,!0)}function nn(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ie||Jr(t)}function on(){const e=bt.useCallback(o=>{o!=null&&rn(o.ownerDocument)},[]),t=bt.useRef(!1);function r(){return t.current?(qe=!0,Qr.start(100,()=>{qe=!1}),t.current=!1,!0):!1}function n(o){return nn(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Ve(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]=Ve(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function sn(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 vt=e=>e,an=()=>{let e=vt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vt}}},Yt=an(),un={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=un[t];return n?`${r}-${n}`:`${Yt.generate(e)}-${t}`}function ln(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=qt(e,o,r)}),n}function cn(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const fn=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));function W(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 Vt(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=Vt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Vt(e))&&(n&&(n+=" "),n+=t);return n}const Ht=await w("react"),Xt=Ht.createContext(void 0);function si({value:e,children:t}){return G.jsx(Xt.Provider,{value:e,children:t})}function mn(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?Ve(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ve(o,n):n}function pn({props:e,name:t}){const r=Ht.useContext(Xt);return mn({props:e,name:t,theme:{components:r}})}await w("react");function hn(e){return pn(e)}var ae={};const yn=L(pr);var Ke={exports:{}},_t;function gn(){return _t||(_t=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}(Ke)),Ke.exports}const bn=await w("react"),{CacheProvider:vn}=await w("@emotion/react");function _n(e,t){const r=yr({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 Ue=new Map;function Sn(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=bn.useMemo(()=>{const s=`${t}-${r}`;if(typeof document=="object"&&Ue.has(s))return Ue.get(s);const i=_n(t,r);return Ue.set(s,i),i},[t,r]);return t||r?G.jsx(vn,{value:o,children:n}):n}await w("react");const{Global:xn}=await w("@emotion/react");function wn(e){return e==null||Object.keys(e).length===0}function $n(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(wn(o)?r:o):t;return G.jsx(xn,{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 En=await w("@emotion/styled");function Tn(e,t){return En(e,t)}const Cn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},St=[];function On(e){return St[0]=e,hr(St)}const Rn=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:$n,StyledEngineProvider:Sn,ThemeContext:gr,css:br,default:Tn,internal_processStyles:Cn,internal_serializeStyles:On,keyframes:vr},Symbol.toStringTag,{value:"Module"})),An=L(Rn),Pn=L($r),In=L(Pr),kn=L(Ar),jn=["values","unit","step"],Ln=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 Qt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=W(e,jn),s=Ln(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 Mn={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},xt={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||xt;return t.reduce((i,u,l)=>(i[s.up(s.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const s=n.breakpoints||xt;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 Zt(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function He(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ii(e,...t){const r=Zt(e),n=[r,...t].reduce((o,s)=>j(o,s),{});return He(Object.keys(r),n)}function Dn(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 ai({values:e,breakpoints:t,base:r}){const n=r||Dn(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 ke(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=ke(e,r)||n,t&&(o=t(o,n,e)),o}function S(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=ke(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"?"":N(d)}`,d)),r===!1?c:{[r]:c}})};return s.propTypes={},s.filterProps=[t],s}function Fn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Bn={m:"margin",p:"padding"},zn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nn=Fn(e=>{if(e.length>2)if(wt[e])e=wt[e];else return[e];const[t,r]=e.split(""),n=Bn[t],o=zn[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=ke(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 Jt(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 Wn(e,t){return r=>e.reduce((n,o)=>(n[o]=le(t,r),n),{})}function Kn(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Nn(r),s=Wn(o,n),i=e[r];return B(e,i,s)}function er(e,t){const r=Jt(e.theme);return Object.keys(e).map(n=>Kn(e,t,n,r)).reduce(oe,{})}function v(e){return er(e,tt)}v.propTypes={};v.filterProps=tt;function _(e){return er(e,rt)}_.propTypes={};_.filterProps=rt;function Un(e=8){if(e.mui)return e;const t=Jt({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 je(...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 S({prop:e,themeKey:"borders",transform:t})}const Gn=I("border",R),Yn=I("borderTop",R),qn=I("borderRight",R),Vn=I("borderBottom",R),Hn=I("borderLeft",R),Xn=I("borderColor"),Qn=I("borderTopColor"),Zn=I("borderRightColor"),Jn=I("borderBottomColor"),eo=I("borderLeftColor"),to=I("outline",R),ro=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"];je(Gn,Yn,qn,Vn,Hn,Xn,Qn,Zn,Jn,eo,Le,to,ro);const Me=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};Me.propTypes={};Me.filterProps=["gap"];const De=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};De.propTypes={};De.filterProps=["columnGap"];const Fe=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};Fe.propTypes={};Fe.filterProps=["rowGap"];const no=S({prop:"gridColumn"}),oo=S({prop:"gridRow"}),so=S({prop:"gridAutoFlow"}),io=S({prop:"gridAutoColumns"}),ao=S({prop:"gridAutoRows"}),uo=S({prop:"gridTemplateColumns"}),lo=S({prop:"gridTemplateRows"}),co=S({prop:"gridTemplateAreas"}),fo=S({prop:"gridArea"});je(Me,De,Fe,no,oo,so,io,ao,uo,lo,co,fo);function J(e,t){return t==="grey"?t:e}const mo=S({prop:"color",themeKey:"palette",transform:J}),po=S({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:J}),ho=S({prop:"backgroundColor",themeKey:"palette",transform:J});je(mo,po,ho);function C(e){return e<=1&&e!==0?`${e*100}%`:e}const yo=S({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 go=S({prop:"minWidth",transform:C}),bo=S({prop:"height",transform:C}),vo=S({prop:"maxHeight",transform:C}),_o=S({prop:"minHeight",transform:C});S({prop:"size",cssProperty:"width",transform:C});S({prop:"size",cssProperty:"height",transform:C});const So=S({prop:"boxSizing"});je(yo,nt,go,bo,vo,_o,So);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:Me},rowGap:{style:Fe},columnGap:{style:De},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 xo(...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 wo(e,t){return typeof e=="function"?e(t):e}function tr(){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=ke(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"?"":N(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=Zt(s.breakpoints),c=Object.keys(d);let p=d;return Object.keys(m).forEach(h=>{const f=wo(m[h],s);if(f!=null)if(typeof f=="object")if(u[h])p=oe(p,e(h,f,s,u));else{const $=B({theme:s},f,E=>({[h]:E}));xo($,f)?p[h]=t({sx:f,theme:s,nested:!0}):p=oe(p,$)}else p=oe(p,e(h,f,s,u))}),!i&&s.modularCssLayers?{"@layer sx":He(c,p)}:He(c,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const Be=tr();Be.filterProps=["sx"];function rr(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 $o=["breakpoints","palette","spacing","shape"];function nr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=W(e,$o),u=Qt(r),l=Un(o);let a=j({breakpoints:u,direction:"ltr",components:{},palette:g({mode:"light"},n),spacing:l,shape:g({},Mn,s)},i);return a.applyStyles=rr,a=t.reduce((m,d)=>j(m,d),a),a.unstable_sxConfig=g({},ce,i?.unstable_sxConfig),a.unstable_sx=function(d){return Be({sx:d,theme:this})},a}const Eo=Object.freeze(Object.defineProperty({__proto__:null,default:nr,private_createBreakpoints:Qt,unstable_applyStyles:rr},Symbol.toStringTag,{value:"Module"})),To=L(Eo),Co=["sx"],Oo=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 Ro(e){const{sx:t}=e,r=W(e,Co),{systemProps:n,otherProps:o}=Oo(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 Ao=Object.freeze(Object.defineProperty({__proto__:null,default:Be,extendSxProp:Ro,unstable_createStyleFunctionSx:tr,unstable_defaultSxConfig:ce},Symbol.toStringTag,{value:"Module"})),Po=L(Ao);var ee=Qe;Object.defineProperty(ae,"__esModule",{value:!0});var Io=ae.default=Go;ae.shouldForwardProp=ye;ae.systemDefaultTheme=void 0;var O=ee(yn),Xe=ee(gn()),ve=Bo(An),ko=Pn;ee(In);ee(kn);var jo=ee(To),Lo=ee(Po);const Mo=["ownerState"],Do=["variants"],Fo=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function or(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(or=function(n){return n?r:t})(e)}function Bo(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=or(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 zo(e){return Object.keys(e).length===0}function No(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ye(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $t(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Wo=ae.systemDefaultTheme=(0,jo.default)(),Ko=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function he({defaultTheme:e,theme:t,themeId:r}){return zo(t)?e:t[r]||t}function Uo(e){return e?(t,r)=>r[e]:null}function ge(e,t,r){let{ownerState:n}=t,o=(0,Xe.default)(t,Mo);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,Xe.default)(s,Do);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?$t((0,ve.internal_serializeStyles)(d),r):d)}}),l}return r?$t((0,ve.internal_serializeStyles)(s),r):s}function Go(e={}){const{themeId:t,defaultTheme:r=Wo,rootShouldForwardProp:n=ye,slotShouldForwardProp:o=ye}=e,s=i=>(0,Lo.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=Uo(Ko(a))}=u,p=(0,Xe.default)(u,Fo),h=l&&l.startsWith("Mui")||a?"components":"custom",f=m!==void 0?m:a&&a!=="Root"&&a!=="root"||!1,$=d||!1;let E,M=ye;a==="Root"||a==="root"?M=n:a?M=o:No(i)&&(M=void 0);const K=(0,ve.default)(i,(0,O.default)({shouldForwardProp:M,label:E},p)),fe=T=>typeof T=="function"&&T.__emotion_real!==T||(0,ko.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 q=k.components[l].styleOverrides,me={};return Object.entries(q).forEach(([dr,mr])=>{me[dr]=ge(mr,(0,O.default)({},F,{theme:k}),k.modularCssLayers?"theme":void 0)}),c(F,me)}),l&&!f&&re.push(F=>{var k;const q=he((0,O.default)({},F,{defaultTheme:r,themeId:t})),me=q==null||(k=q.components)==null||(k=k[l])==null?void 0:k.variants;return ge({variants:me},(0,O.default)({},F,{theme:q}),q.modularCssLayers?"theme":void 0)}),$||re.push(s);const ut=re.length-D.length;if(Array.isArray(T)&&ut>0){const F=new Array(ut).fill("");Y=[...T,...F],Y.raw=[...T.raw,...F]}const lt=K(Y,...re);return i.muiName&&(lt.muiName=i.muiName),lt};return K.withConfig&&(de.withConfig=K.withConfig),de}}function Yo(e,t){return g({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var x={};const qo=L(Er),Vo=L(fn);var sr=Qe;Object.defineProperty(x,"__esModule",{value:!0});var ui=x.alpha=lr;x.blend=us;x.colorChannel=void 0;var Ho=x.darken=st;x.decomposeColor=A;var li=x.emphasize=cr,Xo=x.getContrastRatio=ns;x.getLuminance=_e;x.hexToRgb=ir;var ci=x.hslToRgb=ur,Qo=x.lighten=it,fi=x.private_safeAlpha=os,Zo=x.private_safeColorChannel=void 0,di=x.private_safeDarken=ss,mi=x.private_safeEmphasize=as,pi=x.private_safeLighten=is;x.recomposeColor=te;x.rgbToHex=rs;var Et=sr(qo),Jo=sr(Vo);function ot(e,t=0,r=1){return(0,Jo.default)(e,t,r)}function ir(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 es(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(ir(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,Et.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,Et.default)(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const ar=e=>{const t=A(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};x.colorChannel=ar;const ts=(e,t)=>{try{return ar(e)}catch{return e}};Zo=x.private_safeColorChannel=ts;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 rs(e){if(e.indexOf("#")===0)return e;const{values:t}=A(e);return`#${t.map((r,n)=>es(n===3?Math.round(255*r):r)).join("")}`}function ur(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(ur(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 ns(e,t){const r=_e(e),n=_e(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function lr(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 os(e,t,r){try{return lr(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 ss(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 is(e,t,r){try{return it(e,t)}catch{return e}}function cr(e,t=.15){return _e(e)>.5?st(e,t):it(e,t)}function as(e,t,r){try{return cr(e,t)}catch{return e}}function us(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"},ls={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"},V={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"},cs=["mode","contrastThreshold","tonalOffset"],Tt={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}},Ge={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 Ct(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=Qo(e.main,o):t==="dark"&&(e.dark=Ho(e.main,s)))}function fs(e="light"){return e==="dark"?{main:X[200],light:X[50],dark:X[400]}:{main:X[700],light:X[400],dark:X[800]}}function ds(e="light"){return e==="dark"?{main:V[200],light:V[50],dark:V[400]}:{main:V[500],light:V[300],dark:V[700]}}function ms(e="light"){return e==="dark"?{main:H[500],light:H[300],dark:H[700]}:{main:H[700],light:H[400],dark:H[800]}}function ps(e="light"){return e==="dark"?{main:Q[400],light:Q[300],dark:Q[700]}:{main:Q[700],light:Q[500],dark:Q[900]}}function hs(e="light"){return e==="dark"?{main:Z[400],light:Z[300],dark:Z[700]}:{main:Z[800],light:Z[500],dark:Z[900]}}function ys(e="light"){return e==="dark"?{main:ne[400],light:ne[300],dark:ne[700]}:{main:"#ed6c02",light:ne[500],dark:ne[900]}}function gs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=W(e,cs),s=e.primary||fs(t),i=e.secondary||ds(t),u=e.error||ms(t),l=e.info||ps(t),a=e.success||hs(t),m=e.warning||ys(t);function d(f){return Xo(f,Ge.text.primary)>=r?Ge.text.primary:Tt.text.primary}const c=({color:f,name:$,mainShade:E=500,lightShade:M=300,darkShade:K=700})=>{if(f=g({},f),!f.main&&f[E]&&(f.main=f[E]),!f.hasOwnProperty("main"))throw new Error(se(11,$?` (${$})`:"",E));if(typeof f.main!="string")throw new Error(se(12,$?` (${$})`:"",JSON.stringify(f.main)));return Ct(f,"light",M,n),Ct(f,"dark",K,n),f.contrastText||(f.contrastText=d(f.main)),f},p={dark:Ge,light:Tt};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:ls,contrastThreshold:r,getContrastText:d,augmentColor:c,tonalOffset:n},p[t]),o)}const bs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vs(e){return Math.round(e*1e5)/1e5}const Ot={textTransform:"uppercase"},Rt='"Roboto", "Helvetica", "Arial", sans-serif';function _s(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Rt,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:l=700,htmlFontSize:a=16,allVariants:m,pxToRem:d}=r,c=W(r,bs),p=o/14,h=d||(E=>`${E/a*p}rem`),f=(E,M,K,fe,de)=>g({fontFamily:n,fontWeight:E,fontSize:h(M),lineHeight:K},n===Rt?{letterSpacing:`${vs(fe/M)}em`}:{},de,m),$={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,Ot),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Ot),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},$),c,{clone:!1})}const Ss=.2,xs=.14,ws=.12;function b(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ss})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ws})`].join(",")}const $s=["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)],Es=["duration","easing","delay"],Ts={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)"},Cs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function At(e){return`${Math.round(e)}ms`}function Os(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Rs(e){const t=g({},Ts,e.easing),r=g({},Cs,e.duration);return g({getAutoHeightDuration:Os,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:l=0}=s;return W(s,Es),(Array.isArray(o)?o:[o]).map(a=>`${a} ${typeof i=="string"?i:At(i)} ${u} ${typeof l=="string"?l:At(l)}`).join(",")}},e,{easing:t,duration:r})}const As={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ps=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Is(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=W(e,Ps);if(e.vars)throw new Error(se(18));const u=gs(n),l=nr(e);let a=j(l,{mixins:Yo(l.breakpoints,r),palette:u,shadows:$s.slice(),typography:_s(u,s),transitions:Rs(o),zIndex:g({},As)});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 Be({sx:d,theme:this})},a}const ks=Is(),js="$$material";function Ls(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ms=e=>Ls(e)&&e!=="classes",Ds=Io({themeId:js,defaultTheme:ks,rootShouldForwardProp:Ms}),Fs=Ds;function Bs(e){return qt("MuiSvgIcon",e)}ln("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zs=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Pt=await w("react"),Ns=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${N(t)}`,`fontSize${N(r)}`]};return sn(o,Bs,n)},Ws=Fs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${N(r.color)}`],t[`fontSize${N(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]}}),fr=Pt.forwardRef(function(t,r){const n=hn({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=W(n,zs),h=Pt.isValidElement(o)&&o.type==="svg",f=g({},n,{color:i,component:u,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:c,hasSvgAsChild:h}),$={};m||($.viewBox=c);const E=Ns(f);return G.jsxs(Ws,g({as:u,className:dn(E.root,s),focusable:"false",color:a,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},$,p,h&&o.props,{ownerState:f,children:[h?o.props.children:o,d?G.jsx("title",{children:d}):null]}))});fr.muiName="SvgIcon";const It=fr,kt=await w("react");function Ks(e,t){function r(n,o){return G.jsx(It,g({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=It.muiName,kt.memo(kt.forwardRef(r))}const Us={configure:e=>{Yt.configure(e)}},Gs=Object.freeze(Object.defineProperty({__proto__:null,capitalize:N,createChainedFunction:Ir,createSvgIcon:Ks,debounce:kr,deprecatedPropType:jr,isMuiElement:Mr,ownerDocument:Kt,ownerWindow:Dr,requirePropFactory:Fr,setRef:Ut,unstable_ClassNameGenerator:Us,unstable_useEnhancedEffect:Gt,unstable_useId:zr,unsupportedProp:Nr,useControlled:Wr,useEventCallback:Kr,useForkRef:Gr,useIsFocusVisible:on},Symbol.toStringTag,{value:"Module"})),Ys=L(Gs);var jt;function qs(){return jt||(jt=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ys}(ze)),ze}var at={},Vs=Qe;Object.defineProperty(at,"__esModule",{value:!0});var Hs=at.default=void 0,Xs=Vs(qs()),Qs=G;Hs=at.default=(0,Xs.default)((0,Qs.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");export{Ho as $,le as A,ks as B,Is as C,si as D,U as E,di as F,$n as G,pi as H,mi as I,fi as J,Zo as K,ce as L,ci as M,_s as N,ln as O,Fs as P,hn as Q,oi as R,Gr as S,js as T,Cs as U,ui as V,Wr as W,on as X,Kr as Y,Ks as Z,W as _,nr as a,Qo as a0,un as a1,Kt as a2,Ut as a3,Dr as a4,Ir as a5,kr as a6,An as a7,Yt as a8,li as a9,Ms as aa,ke as ab,Ls as ac,Pe as ad,It as ae,gs as af,As as ag,On as b,ni as c,Hs as d,Be as e,Ro as f,dn as g,Cn as h,Qe as i,z as j,Ve as k,se as l,cn as m,zr as n,j as o,N as p,sn as q,qs as r,Tn as s,qt as t,Gt as u,Mr as v,B as w,ai as x,Jt as y,ii as z};
@@ -0,0 +1 @@
1
+ import{g as e}from"./_commonjsHelpers-C4iS2aBk.js";const t={},r=Object.freeze(Object.defineProperty({__proto__:null,default:t},Symbol.toStringTag,{value:"Module"})),a=e(r);export{a as r};
@@ -0,0 +1 @@
1
+ import{importShared as o}from"./__federation_fn_import-WDa0gv1I.js";import{j as e}from"./jsx-runtime-B1l0k91v.js";import{s as t,e as a,H as r}from"./HomePage-CbNrtXMa.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};
@@ -0,0 +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-CSW28ZSI.js",import.meta.url).href),import:!0,requiredVersion:"^7.9.0"},"@emotion/react":{get:()=>()=>f(new URL("__federation_shared_@emotion/react-oi_M7gMJ.js",import.meta.url).href),import:!0,requiredVersion:"^11.14.0"},"@emotion/styled":{get:()=>()=>f(new URL("__federation_shared_@emotion/styled-YrTPT9q1.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-DMak3BVq.js",import.meta.url).href),import:!0,requiredVersion:"^9.2.0"},wagmi:{get:()=>()=>f(new URL("__federation_shared_wagmi-h3zhLZbR.js",import.meta.url).href),import:!0,requiredVersion:"^2.19.0"},viem:{get:()=>()=>f(new URL("__federation_shared_viem-DsDw7lUr.js",import.meta.url).href),import:!0,requiredVersion:"^2.44.0"},"@dcl/hooks":{get:()=>()=>f(new URL("__federation_shared_@dcl/hooks-BmGk-LAU.js",import.meta.url).href),import:!0,requiredVersion:"^1.2.0"},"decentraland-ui2":{get:()=>()=>f(new URL("__federation_shared_decentraland-ui2-D5N7yacO.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};