@dcl/shop 0.1.0-30015679616.commit-6ed38d1 → 0.1.0-30027061548.commit-0bc806a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{Activity-CU84JTL9.js → Activity-BCuWHO91.js} +1 -1
- package/assets/{AnimatedBackground-C1yb3yRx.js → AnimatedBackground-DC0qsES6.js} +3 -3
- package/assets/{Assets-w-8PFxJU.js → Assets-pZ95iGr4.js} +1 -1
- package/assets/{Assets.styles-C1Y1ZCen.js → Assets.styles-sDGY0dtk.js} +1 -1
- package/assets/{Authorizations-DPyL4Pwf.js → Authorizations-D6SkMmO6.js} +1 -1
- package/assets/{Cart-DIv_5vjj.js → Cart-bD6xEAcM.js} +2 -2
- package/assets/{CircularProgress-OD5gaSs9.js → CircularProgress-DOGiHaMT.js} +1 -1
- package/assets/{Collection-4eeGGy6p.js → Collection-DDSnUzQQ.js} +1 -1
- package/assets/{CollectionCarousel-BK5-UOoa.js → CollectionCarousel-DzxyaCUo.js} +1 -1
- package/assets/{Creator-BxxKbkrm.js → Creator-D7vQevDn.js} +1 -1
- package/assets/{CssVarsProvider-DwDwaiXl.js → CssVarsProvider-CADqtr6A.js} +1 -1
- package/assets/{ExchangeController-Ce-YvKrg.js → ExchangeController-Bv8csw6N.js} +1 -1
- package/assets/{GetCredits-HKQGRif3.js → GetCredits-Bb1FBUnx.js} +1 -1
- package/assets/{HelpersUtil-Cl7yYI0y.js → HelpersUtil-DV71mRBd.js} +1 -1
- package/assets/{ImportListings-CZ7e-nyf.js → ImportListings-6wte21rD.js} +1 -1
- package/assets/ItemDetail-evlg6cKI.js +78 -0
- package/assets/{LoadMore-PZOUHqu7.js → LoadMore-CYDgHq9T.js} +1 -1
- package/assets/{MarketCheckout-BpXa_hJ1.js → MarketCheckout-BAEx1EJy.js} +1 -1
- package/assets/{MyAssets-Byt4OJv8.js → MyAssets-CJ2H2U_U.js} +1 -1
- package/assets/{MyFavorites-LDc-9tMy.js → MyFavorites-k4qOTRob.js} +1 -1
- package/assets/{NotFound-DzROMpLI.js → NotFound-aR1LWKr4.js} +1 -1
- package/assets/{PrimaryListModal-NLcDjuqy.js → PrimaryListModal-CU6tMA9w.js} +1 -1
- package/assets/{StoreSettings-DcFPCGuf.js → StoreSettings-6hNLQCtE.js} +1 -1
- package/assets/{Success-BurccWK5.js → Success-Bry0ia79.js} +1 -1
- package/assets/{SwapController-U7Srei6G.js → SwapController-DydmZAYL.js} +1 -1
- package/assets/{Tooltip-D7WpGA4F.js → Tooltip-BQaA68Ov.js} +1 -1
- package/assets/{TradeService-jQrSo7Nw.js → TradeService-Cfj8wGt2.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-Cng56IwM.js → W3MFrameProviderSingleton-Dr_zn2DE.js} +3 -3
- package/assets/{WebCryptoP256-BoWVFm46.js → WebCryptoP256-BMUdEkV-.js} +1 -1
- package/assets/{authorizations-HljWnE0x.js → authorizations-hpO8fum7.js} +1 -1
- package/assets/{basic-BjeDXEjz.js → basic-C_Wg1mVs.js} +1 -1
- package/assets/{biconomy-D8Q7ZlMy.js → biconomy-DmK7CFsI.js} +1 -1
- package/assets/{buy-VyechqN8.js → buy-U8LmIfWZ.js} +1 -1
- package/assets/{buy-gasless-jDmWcdID.js → buy-gasless-B42KlhKm.js} +1 -1
- package/assets/{cart-checkout-BfdGJfeX.js → cart-checkout-dGSJDcok.js} +1 -1
- package/assets/{categories-DPdI3Qkz.js → categories-DYBZdOix.js} +1 -1
- package/assets/{ccip-BjFDGWLb.js → ccip-BWCHUagC.js} +1 -1
- package/assets/{ccip-DeFaq1d_.js → ccip-z11itrqC.js} +1 -1
- package/assets/collection-BwaksfBA.js +1 -0
- package/assets/{controller-IuRb2Llw.js → controller-CXLN2aGp.js} +2 -2
- package/assets/{core-DeIGPMkJ.js → core-Ce5Cv-b6.js} +4 -4
- package/assets/{custom-BbPMc21n.js → custom-BCRtfLyJ.js} +1 -1
- package/assets/{data-capture-CvSJT0zp.js → data-capture-BeQAS4k1.js} +1 -1
- package/assets/{email-DxXvAA1i.js → email-C8h6eN4d.js} +1 -1
- package/assets/{embedded-wallet-B3Hc_iPo.js → embedded-wallet-CEhxSKK2.js} +1 -1
- package/assets/{emotion-styled.browser.esm-C93imo1O.js → emotion-styled.browser.esm-Cv8bwtal.js} +1 -1
- package/assets/{engine-SdToqEAN.js → engine-C2jGP36P.js} +1 -1
- package/assets/{errors-CVrT6Ui5.js → errors-mn3Jxf9K.js} +1 -1
- package/assets/{estimate-l1-fee-3aQWsG16.js → estimate-l1-fee-DjKIEdlm.js} +1 -1
- package/assets/{execute-DcrE0vfx.js → execute-hmQGMl_0.js} +2 -2
- package/assets/{features-JhzProDi.js → features-BqKMRUjh.js} +1 -1
- package/assets/{fetchTokenMetadata-DMoMWhi-.js → fetchTokenMetadata-CN6a-XR3.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-CtRDRJhT.js → get-ecosystem-wallet-info-D5Ve2RAN.js} +1 -1
- package/assets/{getBalance-BAFGwIUh.js → getBalance-CIHv6Ou3.js} +1 -1
- package/assets/{getNFT-Df4hxDd_.js → getNFT-BMvLAFAo.js} +1 -1
- package/assets/{getNFT-DLXTo20b.js → getNFT-vEpMPd9f.js} +1 -1
- package/assets/{getOverlayAlpha-RimUmqv9.js → getOverlayAlpha-BErwje5c.js} +1 -1
- package/assets/{hashTypedData-DsKWnNMi.js → hashTypedData-Bl2zyfR4.js} +1 -1
- package/assets/{hashTypedData-mds2ITqz.js → hashTypedData-CK9AJY67.js} +1 -1
- package/assets/{import-DFiOfmYU.js → import-C0RJ-3QV.js} +1 -1
- package/assets/{in-app-B0l0x1SK.js → in-app-CrTDVNmP.js} +1 -1
- package/assets/{in-app-wallet-calls-DP53s3Js.js → in-app-wallet-calls-CJL2Yhit.js} +1 -1
- package/assets/{index-Cueh9fW3.js → index-8Qfr_JFg.js} +1 -1
- package/assets/{index-Dpt4Xrxi.js → index-B4Ydy88m.js} +1 -1
- package/assets/{index-B9UnuYAA.js → index-B6-POQP9.js} +2 -2
- package/assets/{index-HaWgKZPK.js → index-B9np2brO.js} +1 -1
- package/assets/{index-Cbc4iV38.js → index-BEEx-7Cb.js} +3 -3
- package/assets/{index-BZHy0WxG.js → index-BJdAzUAS.js} +1 -1
- package/assets/{index-DLuioJ0v.js → index-BJzkeBev.js} +1 -1
- package/assets/{index-CCAGracH.js → index-BOJsU4RS.js} +1 -1
- package/assets/{index-DrmkRk7f.js → index-BPOntItp.js} +1 -1
- package/assets/index-BRRXsajB.css +1 -0
- package/assets/{index-DSEo43OW.js → index-BWptpE7W.js} +1 -1
- package/assets/{index-DURbEdp2.js → index-BZ1eBgTi.js} +1 -1
- package/assets/{index-rd6QWbVV.js → index-Bm6LbtsY.js} +1 -1
- package/assets/index-Bo4JK0SO.js +289 -0
- package/assets/{index-BAl_lO4N.js → index-BuU78HZX.js} +1 -1
- package/assets/{index-Ec6QJ8nX.js → index-BvBucB_1.js} +1 -1
- package/assets/{index-ieNrDYUU.js → index-BxjlshOa.js} +1 -1
- package/assets/{index-DgvHzZWg.js → index-C0gqts19.js} +1 -1
- package/assets/{index-DhmFzzvM.js → index-C9prV18i.js} +1 -1
- package/assets/{index-C8Sk2VHs.js → index-CDnDtRVW.js} +1 -1
- package/assets/{index-UmAjwwfj.js → index-CHm5r9FR.js} +1 -1
- package/assets/{index-Nvov0ym2.js → index-CHx84JG-.js} +1 -1
- package/assets/{index-CvIarX8s.js → index-CI4oaJQ1.js} +1 -1
- package/assets/{index-BX4iAmCi.js → index-CIj608oA.js} +3 -3
- package/assets/{index-BHC5C2Me.js → index-CNDhuv5u.js} +1 -1
- package/assets/{index-DUcqJFnf.js → index-CNt31eC4.js} +1 -1
- package/assets/{index-CHGDme3B.js → index-C_9tsDV6.js} +1 -1
- package/assets/{index-CbipyjF-.js → index-CgO8zkp_.js} +1 -1
- package/assets/{index-JEnLANQt.js → index-CtHx80Dm.js} +1 -1
- package/assets/{index-BtwaECRG.js → index-D0QaZmVm.js} +1 -1
- package/assets/{index-CNafSlrJ.js → index-D3cPEHHs.js} +1 -1
- package/assets/{index-BiczzCHY.js → index-D4BBgkBj.js} +1 -1
- package/assets/{index-B6EwdMxc.js → index-D4BoTG2q.js} +1 -1
- package/assets/{index-S5h4LrtX.js → index-D4V_6GDr.js} +1 -1
- package/assets/{index-DxCmy4WK.js → index-D9_mfIWw.js} +1 -1
- package/assets/{index-DXNJ6Lvt.js → index-DD1DsnNQ.js} +1 -1
- package/assets/{index-DQviEuA1.js → index-DLupDBmN.js} +1 -1
- package/assets/{index-geEoQpgi.js → index-DNR5viu3.js} +1 -1
- package/assets/{index-BX1E93lF.js → index-DS6U_hzC.js} +1 -1
- package/assets/{index-Bueku0qx.js → index-DSZZP3M1.js} +1 -1
- package/assets/{index-DI9vAn9A.js → index-DgRGh3Se.js} +1 -1
- package/assets/{index-D1z7Ji2h.js → index-DhNpGvQj.js} +1 -1
- package/assets/{index-CgLGJfZ9.js → index-DiJPgqc6.js} +1 -1
- package/assets/{index-Blr-MypE.js → index-DqCsDhcz.js} +2 -2
- package/assets/{index-Bi9_1Wvz.js → index-DqJHvdZG.js} +1 -1
- package/assets/{index-CoZrrGVN.js → index-DrFNHDAY.js} +1 -1
- package/assets/{index-kNoFdXF9.js → index-DvyuSmvc.js} +3 -3
- package/assets/{index-BxKobL0r.js → index-Jidvms5_.js} +1 -1
- package/assets/{index-CpwxIWZx.js → index-WvBe1s5D.js} +1 -1
- package/assets/{index-DSXjbhmx.js → index-_0Gh2fQd.js} +1 -1
- package/assets/{index-RUgsr-vT.js → index-ecR6a0PC.js} +1 -1
- package/assets/{index-B8Ud1Gn4.js → index-gYboUjkz.js} +2 -2
- package/assets/{index-D0FPEIJ3.js → index-wkOOo2N2.js} +1 -1
- package/assets/{index.es-BBZwypFh.js → index.es-BC7nWxT1.js} +4 -4
- package/assets/{index.es-BSvxMoWp.js → index.es-CrzorCdt.js} +1 -1
- package/assets/{index.es-BEQfrgsH.js → index.es-Dw3YFOSP.js} +1 -1
- package/assets/{localBatchGatewayRequest-BSe6m7XE.js → localBatchGatewayRequest-Ck-lCdmi.js} +1 -1
- package/assets/{mana-rate-CqpRH-06.js → mana-rate-DEX36GMf.js} +1 -1
- package/assets/{networks-BZi34GRE.js → networks-BmZkrHNT.js} +1 -1
- package/assets/{onramp-D5NUX6XI.js → onramp-L0tijLX4.js} +1 -1
- package/assets/{openzeppelin-BX-Y_c13.js → openzeppelin-B94tTaUq.js} +1 -1
- package/assets/{parseNft-D1h5H4JB.js → parseNft-ZhDRvC17.js} +2 -2
- package/assets/{parseSignature-Cgigxyju.js → parseSignature-C0-YjUv3.js} +1 -1
- package/assets/{parseSignature-BdQ9vAsP.js → parseSignature-CrlfHyVq.js} +3 -3
- package/assets/{passkeys-BWQEfy2d.js → passkeys-BAFD0eYI.js} +1 -1
- package/assets/{pay-with-exchange-0evv6ssy.js → pay-with-exchange-0uwaepTj.js} +1 -1
- package/assets/{qr-overlay-PZKtFEjn.js → qr-overlay-BeL8svzB.js} +1 -1
- package/assets/{receive-COTaZ2BN.js → receive-BuQ4aE9M.js} +1 -1
- package/assets/{resolveImplementation-CqgdLfeR.js → resolveImplementation-CACZz-iG.js} +1 -1
- package/assets/{rpc-DKWWAuQw.js → rpc-Cho3IzP3.js} +1 -1
- package/assets/{secp256k1-B6DumtZX.js → secp256k1-BaRufS7t.js} +1 -1
- package/assets/{secp256k1-C0RJ5GQn.js → secp256k1-ByAi0bYq.js} +1 -1
- package/assets/{secp256k1-BjIDOuJ4.js → secp256k1-cytTtQFI.js} +1 -1
- package/assets/{send-CO1dDKrL.js → send-IlFqB457.js} +1 -1
- package/assets/{send-batch-transaction-rlimxloI.js → send-batch-transaction-S3cea1la.js} +1 -1
- package/assets/{send-eip712-transaction-Bz89Qw7_.js → send-eip712-transaction-DdFE8Vm4.js} +2 -2
- package/assets/{send-gasless-transaction-AZV2US9k.js → send-gasless-transaction-pToZW6hi.js} +2 -2
- package/assets/{send-transaction-ArBfMlon.js → send-transaction-F1KcPu_J.js} +2 -2
- package/assets/{sendRawTransaction-domnddMI.js → sendRawTransaction-uZR9vCur.js} +3 -3
- package/assets/{serializeTransaction-js0ZYY74.js → serializeTransaction-BMOYZaMo.js} +1 -1
- package/assets/{session-proposal-SKB_c_al.js → session-proposal-CqIScmh0.js} +1 -1
- package/assets/{session-request-BwE5I7i2.js → session-request-D0gllW0A.js} +2 -2
- package/assets/{signing-C-juCIWO.js → signing-0IyTTeT3.js} +3 -3
- package/assets/{socials-BkUHCVrl.js → socials-D2Q72wmI.js} +1 -1
- package/assets/{swaps-CW9X44BH.js → swaps-CxPUnJHk.js} +1 -1
- package/assets/{thirdweb-FCmtuW2J.js → thirdweb-DiHIZ7yC.js} +3 -3
- package/assets/{to-serializable-transaction-C5rB8n0I.js → to-serializable-transaction-CL8iMi28.js} +2 -2
- package/assets/{trade-encoding-k0j0xnxQ.js → trade-encoding-Cj43JBMI.js} +1 -1
- package/assets/{transactionReceipt-CFNUsE3Q.js → transactionReceipt-DfrbWAQN.js} +1 -1
- package/assets/{transactions-C4R1ppbY.js → transactions-Bi4jTwRp.js} +1 -1
- package/assets/{useCreditPacks-R-gF49Zi.js → useCreditPacks-D8mBmgfk.js} +1 -1
- package/assets/{useInfiniteGrid-DrEzQ4kS.js → useInfiniteGrid-D4Svdp0E.js} +1 -1
- package/assets/useManaRate-DSDizyIm.js +1 -0
- package/assets/{useStore-BebNq11Z.js → useStore-BdMUfp98.js} +1 -1
- package/assets/useTheme-D9lkNeWV.js +1 -0
- package/assets/{useTheme-CqBHprKR.js → useTheme-DQx1RjYA.js} +1 -1
- package/assets/{verifyHash-DZF-J1Av.js → verifyHash-DHqwvSkC.js} +1 -1
- package/assets/{w3m-modal-C3C2ZZqY.js → w3m-modal-Bh-3dNi_.js} +1 -1
- package/assets/{w3m-modal-C9BIr__u.js → w3m-modal-CKSu3pIJ.js} +1 -1
- package/assets/{wait-for-tx-receipt-BD2kJKLa.js → wait-for-tx-receipt-C2LkGeYl.js} +1 -1
- package/assets/{wallets-DymcAu2i.js → wallets-DnH_N4dP.js} +5 -5
- package/assets/{web-connector-C7r57GGT.js → web-connector-z6n-Sz_y.js} +3 -3
- package/assets/{writeContract-BU8f1IJr.js → writeContract-nFmdkNCx.js} +1 -1
- package/assets/{zoraTestnet-CPisp7Zv.js → zoraTestnet-BdF4F4gE.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/ItemDetail-CKSu3u_T.js +0 -78
- package/assets/collection-BkRN2zWi.js +0 -1
- package/assets/index-CQjL9b6j.js +0 -289
- package/assets/index-DkHZ6zdu.css +0 -1
- package/assets/useManaRate-cQYZGq9S.js +0 -1
- package/assets/useTheme-D3IE0Ki7.js +0 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D9_mfIWw.js","assets/react-C51i12iP.js","assets/dcl-schemas-BICTSpB5.js","assets/index-CHx84JG-.js","assets/emotion-styled.browser.esm-Cv8bwtal.js","assets/colors-LINLm1ux.js","assets/sentry-DKBoGDXH.js","assets/ethers-w5dOkonM.js","assets/intl-CBcMB1D2.js","assets/index-gYboUjkz.js","assets/events-DQ172AOg.js","assets/TradeService-Cfj8wGt2.js","assets/index-HN6Rk25C.js","assets/sendMetaTransaction-CiO3jI6F.js","assets/index-BOJsU4RS.js","assets/index-Dp3Py-Ws.js","assets/index-BZ1eBgTi.js","assets/useTheme-DQx1RjYA.js","assets/CircularProgress-DOGiHaMT.js","assets/useTheme-D9lkNeWV.js","assets/getOverlayAlpha-BErwje5c.js","assets/AnimatedBackground-DC0qsES6.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-pZ95iGr4.js","assets/mana-rate-DEX36GMf.js","assets/useManaRate-DSDizyIm.js","assets/Assets.styles-sDGY0dtk.js","assets/categories-DYBZdOix.js","assets/emotion-CSxEP8yM.js","assets/categories-_8oO8Yih.css","assets/Tooltip-BQaA68Ov.js","assets/LoadMore-CYDgHq9T.js","assets/MarketCheckout-BAEx1EJy.js","assets/buy-U8LmIfWZ.js","assets/authorizations-hpO8fum7.js","assets/trade-encoding-Cj43JBMI.js","assets/buy-gasless-B42KlhKm.js","assets/errors-mn3Jxf9K.js","assets/ErrorNotice-C7soUjRV.js","assets/useInfiniteGrid-D4Svdp0E.js","assets/loader-logo-BzY9EKdC.js","assets/ItemDetail-evlg6cKI.js","assets/CollectionCarousel-DzxyaCUo.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-C8hFnis-.css","assets/PrimaryListModal-CU6tMA9w.js","assets/useCreditPacks-D8mBmgfk.js","assets/resume-buy-Bf0zIH7y.js","assets/ItemDetail-BF1WOMVU.css","assets/Collection-DDSnUzQQ.js","assets/collection-BwaksfBA.js","assets/collection-CrgnzsVL.css","assets/useStore-BdMUfp98.js","assets/Collection-Dpog3TvS.css","assets/Creator-D7vQevDn.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-6hNLQCtE.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-CJ2H2U_U.js","assets/import-C0RJ-3QV.js","assets/MyFavorites-k4qOTRob.js","assets/Activity-BCuWHO91.js","assets/ImportListings-6wte21rD.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-bD6xEAcM.js","assets/cart-checkout-dGSJDcok.js","assets/Cart-B1Y37Q7h.css","assets/Authorizations-D6SkMmO6.js","assets/GetCredits-Bb1FBUnx.js","assets/Success-Bry0ia79.js","assets/NotFound-aR1LWKr4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Zh=Object.defineProperty;var du=e=>{throw TypeError(e)};var Kh=(e,t,r)=>t in e?Zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var en=(e,t,r)=>Kh(e,typeof t!="symbol"?t+"":t,r),ci=(e,t,r)=>t.has(e)||du("Cannot "+r);var G=(e,t,r)=>(ci(e,t,"read from private field"),r?r.call(e):t.get(e)),Oe=(e,t,r)=>t.has(e)?du("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(ci(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(ci(e,t,"access private method"),r);var ts=(e,t,r,n)=>({set _(a){be(e,t,a,r)},get _(){return G(e,t,n)}});import{r as ne,j as u,l as Pc,i as $2,g as ks,R as D2,c as Oc,u as Is,h as Yh,L as Sn,e as Kr,k as Qh,b as Jh,a as q2,m as vn,n as Xh,o as Et,N as li,p as e1,B as t1}from"./react-C51i12iP.js";import{b as r1,d as rt,a as fu}from"./dcl-schemas-BICTSpB5.js";import{p as ys,i as n1,B as a1,s as o1,a as s1,E as hu}from"./sentry-DKBoGDXH.js";import{W as i1,k as c1,h as mu,f as U2}from"./ethers-w5dOkonM.js";import{_ as xn,D as l1,i as u1,a as fl,c as d1,b as f1,f as h1,d as m1,e as p1}from"./intl-CBcMB1D2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var ro=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(){}},An,on,na,I2,g1=(I2=class extends ro{constructor(){super();Oe(this,An);Oe(this,on);Oe(this,na);be(this,na,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){G(this,on)||this.setEventListener(G(this,na))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,on))==null||t.call(this),be(this,on,void 0))}setEventListener(t){var r;be(this,na,t),(r=G(this,on))==null||r.call(this),be(this,on,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){G(this,An)!==t&&(be(this,An,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof G(this,An)=="boolean"?G(this,An):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},An=new WeakMap,on=new WeakMap,na=new WeakMap,I2),hl=new g1,y1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},sn,dl,R2,v1=(R2=class{constructor(){Oe(this,sn,y1);Oe(this,dl,!1)}setTimeoutProvider(e){be(this,sn,e)}setTimeout(e,t){return G(this,sn).setTimeout(e,t)}clearTimeout(e){G(this,sn).clearTimeout(e)}setInterval(e,t){return G(this,sn).setInterval(e,t)}clearInterval(e){G(this,sn).clearInterval(e)}},sn=new WeakMap,dl=new WeakMap,R2),Tn=new v1;function b1(e){setTimeout(e,0)}var w1=typeof window>"u"||"Deno"in globalThis;function Yt(){}function _1(e,t){return typeof e=="function"?e(t):e}function jc(e){return typeof e=="number"&&e>=0&&e!==1/0}function H2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function mn(e,t){return typeof e=="function"?e(t):e}function rr(e,t){return typeof e=="function"?e(t):e}function pu(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:d}=e;if(s){if(n){if(t.queryHash!==ml(s,t.options))return!1}else if(!Ua(t.queryKey,s))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||o&&!o(t))}function gu(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(qa(t.options.mutationKey)!==qa(o))return!1}else if(!Ua(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function ml(e,t){return((t==null?void 0:t.queryKeyHashFn)||qa)(e)}function qa(e){return JSON.stringify(e,(t,r)=>Mc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Ua(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Ua(e[r],t[r])):!1}var C1=Object.prototype.hasOwnProperty;function V2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=yu(e)&&yu(t);if(!n&&!(Mc(e)&&Mc(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),d=s.length,f=n?new Array(d):{};let h=0;for(let m=0;m<d;m++){const p=n?m:s[m],b=e[p],_=t[p];if(b===_){f[p]=b,(n?m<o:C1.call(e,p))&&h++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){f[p]=_;continue}const T=V2(b,_,r+1);f[p]=T,T===b&&h++}return o===d&&h===o?e:f}function Lc(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 yu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mc(e){if(!vu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!vu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vu(e){return Object.prototype.toString.call(e)==="[object Object]"}function E1(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function Bc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?V2(e,t):t}function ui(e){return e}function x1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function S1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var pl=Symbol();function z2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function G2(e,t){return typeof e=="function"?e(...t):!!e}function T1(e,t,r){let n=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),n||(n=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var Ha=(()=>{let e=()=>w1;return{isServer(){return e()},setIsServer(t){e=t}}})();function Fc(){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 A1=b1;function k1(){let e=[],t=0,r=d=>{d()},n=d=>{d()},a=A1;const o=d=>{t?e.push(d):a(()=>{r(d)})},s=()=>{const d=e;e=[],d.length&&a(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d},setScheduler:d=>{a=d}}}var Nt=k1(),aa,cn,oa,N2,I1=(N2=class extends ro{constructor(){super();Oe(this,aa,!0);Oe(this,cn);Oe(this,oa);be(this,oa,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){G(this,cn)||this.setEventListener(G(this,oa))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,cn))==null||t.call(this),be(this,cn,void 0))}setEventListener(t){var r;be(this,oa,t),(r=G(this,cn))==null||r.call(this),be(this,cn,t(this.setOnline.bind(this)))}setOnline(t){G(this,aa)!==t&&(be(this,aa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return G(this,aa)}},aa=new WeakMap,cn=new WeakMap,oa=new WeakMap,N2),Es=new I1;function R1(e){return Math.min(1e3*2**e,3e4)}function W2(e){return(e??"online")==="online"?Es.isOnline():!0}var $c=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Z2(e){let t=!1,r=0,n;const a=Fc(),o=()=>a.status!=="pending",s=y=>{var I;if(!o()){const W=new $c(y);b(W),(I=e.onCancel)==null||I.call(e,W)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>hl.isFocused()&&(e.networkMode==="always"||Es.isOnline())&&e.canRun(),m=()=>W2(e.networkMode)&&e.canRun(),p=y=>{o()||(n==null||n(),a.resolve(y))},b=y=>{o()||(n==null||n(),a.reject(y))},_=()=>new Promise(y=>{var I;n=W=>{(o()||h())&&y(W)},(I=e.onPause)==null||I.call(e)}).then(()=>{var y;n=void 0,o()||(y=e.onContinue)==null||y.call(e)}),T=()=>{if(o())return;let y;const I=r===0?e.initialPromise:void 0;try{y=I??e.fn()}catch(W){y=Promise.reject(W)}Promise.resolve(y).then(p).catch(W=>{var U;if(o())return;const g=e.retry??(Ha.isServer()?0:3),A=e.retryDelay??R1,w=typeof A=="function"?A(r,W):A,K=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,W);if(t||!K){b(W);return}r++,(U=e.onFail)==null||U.call(e,r,W),E1(w).then(()=>h()?void 0:_()).then(()=>{t?b(W):T()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(n==null||n(),a),cancelRetry:d,continueRetry:f,canStart:m,start:()=>(m()?T():_().then(T),a)}}var kn,P2,K2=(P2=class{constructor(){Oe(this,kn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jc(this.gcTime)&&be(this,kn,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ha.isServer()?1/0:300*1e3))}clearGcTimeout(){G(this,kn)!==void 0&&(Tn.clearTimeout(G(this,kn)),be(this,kn,void 0))}},kn=new WeakMap,P2);function N1(e){return{onFetch:(t,r)=>{var m,p,b,_,T;const n=t.options,a=(b=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:b.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],s=((T=t.state.data)==null?void 0:T.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let y=!1;const I=A=>{T1(A,()=>t.signal,()=>y=!0)},W=z2(t.options,t.fetchOptions),g=async(A,w,K)=>{if(y)return Promise.reject(t.signal.reason);if(w==null&&A.pages.length)return Promise.resolve(A);const x=(()=>{const ae={client:t.client,queryKey:t.queryKey,pageParam:w,direction:K?"backward":"forward",meta:t.options.meta};return I(ae),ae})(),q=await W(x),{maxPages:Q}=t.options,ee=K?S1:x1;return{pages:ee(A.pages,q,Q),pageParams:ee(A.pageParams,w,Q)}};if(a&&o.length){const A=a==="backward",w=A?Y2:Dc,K={pages:o,pageParams:s},U=w(n,K);d=await g(K,U,A)}else{const A=e??o.length;do{const w=f===0?s[0]??n.initialPageParam:Dc(n,d);if(f>0&&w==null)break;d=await g(d,w),f++}while(f<A)}return d};t.options.persister?t.fetchFn=()=>{var y,I;return(I=(y=t.options).persister)==null?void 0:I.call(y,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Dc(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 Y2(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}function R8(e,t){return t?Dc(e,t)!=null:!1}function N8(e,t){return!t||!e.getPreviousPageParam?!1:Y2(e,t)!=null}var sa,In,ia,ir,Rn,St,Qa,Nn,tr,Q2,Hr,O2,P1=(O2=class extends K2{constructor(t){super();Oe(this,tr);Oe(this,sa);Oe(this,In);Oe(this,ia);Oe(this,ir);Oe(this,Rn);Oe(this,St);Oe(this,Qa);Oe(this,Nn);be(this,Nn,!1),be(this,Qa,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,Rn,t.client),be(this,ir,G(this,Rn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,In,wu(this.options)),this.state=t.state??G(this,In),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return G(this,sa)}get promise(){var t;return(t=G(this,St))==null?void 0:t.promise}setOptions(t){if(this.options={...G(this,Qa),...t},t!=null&&t._type&&be(this,sa,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=wu(this.options);r.data!==void 0&&(this.setState(bu(r.data,r.dataUpdatedAt)),be(this,In,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&G(this,ir).remove(this)}setData(t,r){const n=Bc(this.state.data,t,this.options);return $e(this,tr,Hr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){$e(this,tr,Hr).call(this,{type:"setState",state:t})}cancel(t){var n,a;const r=(n=G(this,St))==null?void 0:n.promise;return(a=G(this,St))==null||a.cancel(t),r?r.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return G(this,In)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>rr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>mn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!H2(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,St))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,St))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),G(this,ir).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(G(this,St)&&(G(this,Nn)||$e(this,tr,Q2).call(this)?G(this,St).cancel({revert:!0}):G(this,St).cancelRetry()),this.scheduleGc()),G(this,ir).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,tr,Hr).call(this,{type:"invalidate"})}async fetch(t,r){var h,m,p,b,_,T,y,I,W,g,A;if(this.state.fetchStatus!=="idle"&&((h=G(this,St))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(G(this,St))return G(this,St).continueRetry(),G(this,St).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(K=>K.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(be(this,Nn,!0),n.signal)})},o=()=>{const w=z2(this.options,r),U=(()=>{const x={client:G(this,Rn),queryKey:this.queryKey,meta:this.meta};return a(x),x})();return be(this,Nn,!1),this.options.persister?this.options.persister(w,U,this):w(U)},d=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:G(this,Rn),state:this.state,fetchFn:o};return a(w),w})(),f=G(this,sa)==="infinite"?N1(this.options.pages):this.options.behavior;f==null||f.onFetch(d,this),be(this,ia,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&$e(this,tr,Hr).call(this,{type:"fetch",meta:(p=d.fetchOptions)==null?void 0:p.meta}),be(this,St,Z2({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:w=>{w instanceof $c&&w.revert&&this.setState({...G(this,ia),fetchStatus:"idle"}),n.abort()},onFail:(w,K)=>{$e(this,tr,Hr).call(this,{type:"failed",failureCount:w,error:K})},onPause:()=>{$e(this,tr,Hr).call(this,{type:"pause"})},onContinue:()=>{$e(this,tr,Hr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const w=await G(this,St).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(_=(b=G(this,ir).config).onSuccess)==null||_.call(b,w,this),(y=(T=G(this,ir).config).onSettled)==null||y.call(T,w,this.state.error,this),w}catch(w){if(w instanceof $c){if(w.silent)return G(this,St).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw $e(this,tr,Hr).call(this,{type:"error",error:w}),(W=(I=G(this,ir).config).onError)==null||W.call(I,w,this),(A=(g=G(this,ir).config).onSettled)==null||A.call(g,this.state.data,w,this),w}finally{this.scheduleGc()}}},sa=new WeakMap,In=new WeakMap,ia=new WeakMap,ir=new WeakMap,Rn=new WeakMap,St=new WeakMap,Qa=new WeakMap,Nn=new WeakMap,tr=new WeakSet,Q2=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Hr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...J2(n.data,this.options),fetchMeta:t.meta??null};case"success":const a={...n,...bu(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,ia,t.manual?a:void 0),a;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Nt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),G(this,ir).notify({query:this,type:"updated",action:t})})},O2);function J2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wu(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"}}var Kt,qe,Ja,Dt,Pn,ca,zr,ln,Xa,la,ua,On,jn,un,da,Ke,La,qc,Uc,Hc,Vc,zc,Gc,Wc,X2,j2,O1=(j2=class extends ro{constructor(t,r){super();Oe(this,Ke);Oe(this,Kt);Oe(this,qe);Oe(this,Ja);Oe(this,Dt);Oe(this,Pn);Oe(this,ca);Oe(this,zr);Oe(this,ln);Oe(this,Xa);Oe(this,la);Oe(this,ua);Oe(this,On);Oe(this,jn);Oe(this,un);Oe(this,da,new Set);this.options=r,be(this,Kt,t),be(this,ln,null),be(this,zr,Fc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(G(this,qe).addObserver(this),_u(G(this,qe),this.options)?$e(this,Ke,La).call(this):this.updateResult(),$e(this,Ke,Vc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zc(G(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zc(G(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,Ke,zc).call(this),$e(this,Ke,Gc).call(this),G(this,qe).removeObserver(this)}setOptions(t){const r=this.options,n=G(this,qe);if(this.options=G(this,Kt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rr(this.options.enabled,G(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,Ke,Wc).call(this),G(this,qe).setOptions(this.options),r._defaulted&&!Lc(this.options,r)&&G(this,Kt).getQueryCache().notify({type:"observerOptionsUpdated",query:G(this,qe),observer:this});const a=this.hasListeners();a&&Cu(G(this,qe),n,this.options,r)&&$e(this,Ke,La).call(this),this.updateResult(),a&&(G(this,qe)!==n||rr(this.options.enabled,G(this,qe))!==rr(r.enabled,G(this,qe))||mn(this.options.staleTime,G(this,qe))!==mn(r.staleTime,G(this,qe)))&&$e(this,Ke,qc).call(this);const o=$e(this,Ke,Uc).call(this);a&&(G(this,qe)!==n||rr(this.options.enabled,G(this,qe))!==rr(r.enabled,G(this,qe))||o!==G(this,un))&&$e(this,Ke,Hc).call(this,o)}getOptimisticResult(t){const r=G(this,Kt).getQueryCache().build(G(this,Kt),t),n=this.createResult(r,t);return L1(this,n)&&(be(this,Dt,n),be(this,ca,this.options),be(this,Pn,G(this,qe).state)),n}getCurrentResult(){return G(this,Dt)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&G(this,zr).status==="pending"&&G(this,zr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(t){G(this,da).add(t)}getCurrentQuery(){return G(this,qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=G(this,Kt).defaultQueryOptions(t),n=G(this,Kt).getQueryCache().build(G(this,Kt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return $e(this,Ke,La).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),G(this,Dt)))}createResult(t,r){var Q;const n=G(this,qe),a=this.options,o=G(this,Dt),s=G(this,Pn),d=G(this,ca),h=t!==n?t.state:G(this,Ja),{state:m}=t;let p={...m},b=!1,_;if(r._optimisticResults){const ee=this.hasListeners(),ae=!ee&&_u(t,r),J=ee&&Cu(t,n,r,a);(ae||J)&&(p={...p,...J2(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:T,errorUpdatedAt:y,status:I}=p;_=p.data;let W=!1;if(r.placeholderData!==void 0&&_===void 0&&I==="pending"){let ee;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(ee=o.data,W=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((Q=G(this,ua))==null?void 0:Q.state.data,G(this,ua)):r.placeholderData,ee!==void 0&&(I="success",_=Bc(o==null?void 0:o.data,ee,r),b=!0)}if(r.select&&_!==void 0&&!W)if(o&&_===(s==null?void 0:s.data)&&r.select===G(this,Xa))_=G(this,la);else try{be(this,Xa,r.select),_=r.select(_),_=Bc(o==null?void 0:o.data,_,r),be(this,la,_),be(this,ln,null)}catch(ee){be(this,ln,ee)}G(this,ln)&&(T=G(this,ln),_=G(this,la),y=Date.now(),I="error");const g=p.fetchStatus==="fetching",A=I==="pending",w=I==="error",K=A&&g,U=_!==void 0,q={status:I,fetchStatus:p.fetchStatus,isPending:A,isSuccess:I==="success",isError:w,isInitialLoading:K,isLoading:K,data:_,dataUpdatedAt:p.dataUpdatedAt,error:T,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:g,isRefetching:g&&!A,isLoadingError:w&&!U,isPaused:p.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:w&&U,isStale:gl(t,r),refetch:this.refetch,promise:G(this,zr),isEnabled:rr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const ee=q.data!==void 0,ae=q.status==="error"&&!ee,J=Z=>{ae?Z.reject(q.error):ee&&Z.resolve(q.data)},L=()=>{const Z=be(this,zr,q.promise=Fc());J(Z)},N=G(this,zr);switch(N.status){case"pending":t.queryHash===n.queryHash&&J(N);break;case"fulfilled":(ae||q.data!==N.value)&&L();break;case"rejected":(!ae||q.error!==N.reason)&&L();break}}return q}updateResult(){const t=G(this,Dt),r=this.createResult(G(this,qe),this.options);if(be(this,Pn,G(this,qe).state),be(this,ca,this.options),G(this,Pn).data!==void 0&&be(this,ua,G(this,qe)),Lc(r,t))return;be(this,Dt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!G(this,da).size)return!0;const s=new Set(o??G(this,da));return this.options.throwOnError&&s.add("error"),Object.keys(G(this,Dt)).some(d=>{const f=d;return G(this,Dt)[f]!==t[f]&&s.has(f)})};$e(this,Ke,X2).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,Ke,Vc).call(this)}},Kt=new WeakMap,qe=new WeakMap,Ja=new WeakMap,Dt=new WeakMap,Pn=new WeakMap,ca=new WeakMap,zr=new WeakMap,ln=new WeakMap,Xa=new WeakMap,la=new WeakMap,ua=new WeakMap,On=new WeakMap,jn=new WeakMap,un=new WeakMap,da=new WeakMap,Ke=new WeakSet,La=function(t){$e(this,Ke,Wc).call(this);let r=G(this,qe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Yt)),r},qc=function(){$e(this,Ke,zc).call(this);const t=mn(this.options.staleTime,G(this,qe));if(Ha.isServer()||G(this,Dt).isStale||!jc(t))return;const n=H2(G(this,Dt).dataUpdatedAt,t)+1;be(this,On,Tn.setTimeout(()=>{G(this,Dt).isStale||this.updateResult()},n))},Uc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(G(this,qe)):this.options.refetchInterval)??!1},Hc=function(t){$e(this,Ke,Gc).call(this),be(this,un,t),!(Ha.isServer()||rr(this.options.enabled,G(this,qe))===!1||!jc(G(this,un))||G(this,un)===0)&&be(this,jn,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||hl.isFocused())&&$e(this,Ke,La).call(this)},G(this,un)))},Vc=function(){$e(this,Ke,qc).call(this),$e(this,Ke,Hc).call(this,$e(this,Ke,Uc).call(this))},zc=function(){G(this,On)!==void 0&&(Tn.clearTimeout(G(this,On)),be(this,On,void 0))},Gc=function(){G(this,jn)!==void 0&&(Tn.clearInterval(G(this,jn)),be(this,jn,void 0))},Wc=function(){const t=G(this,Kt).getQueryCache().build(G(this,Kt),this.options);if(t===G(this,qe))return;const r=G(this,qe);be(this,qe,t),be(this,Ja,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},X2=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(G(this,Dt))}),G(this,Kt).getQueryCache().notify({query:G(this,qe),type:"observerResultsUpdated"})})},j2);function j1(e,t){return rr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&rr(t.retryOnMount,e)===!1)}function _u(e,t){return j1(e,t)||e.state.data!==void 0&&Zc(e,t,t.refetchOnMount)}function Zc(e,t,r){if(rr(t.enabled,e)!==!1&&mn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&gl(e,t)}return!1}function Cu(e,t,r,n){return(e!==t||rr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&gl(e,r)}function gl(e,t){return rr(t.enabled,e)!==!1&&e.isStaleByTime(mn(t.staleTime,e))}function L1(e,t){return!Lc(e.getCurrentResult(),t)}var eo,Sr,Bt,Ln,Tr,rn,L2,M1=(L2=class extends K2{constructor(t){super();Oe(this,Tr);Oe(this,eo);Oe(this,Sr);Oe(this,Bt);Oe(this,Ln);be(this,eo,t.client),this.mutationId=t.mutationId,be(this,Bt,t.mutationCache),be(this,Sr,[]),this.state=t.state||B1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){G(this,Sr).includes(t)||(G(this,Sr).push(t),this.clearGcTimeout(),G(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Sr,G(this,Sr).filter(r=>r!==t)),this.scheduleGc(),G(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){G(this,Sr).length||(this.state.status==="pending"?this.scheduleGc():G(this,Bt).remove(this))}continue(){var t;return((t=G(this,Ln))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,d,f,h,m,p,b,_,T,y,I,W,g,A,w,K,U,x;const r=()=>{$e(this,Tr,rn).call(this,{type:"continue"})},n={client:G(this,eo),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Ln,Z2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(q,Q)=>{$e(this,Tr,rn).call(this,{type:"failed",failureCount:q,error:Q})},onPause:()=>{$e(this,Tr,rn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,Bt).canRun(this)}));const a=this.state.status==="pending",o=!G(this,Ln).canStart();try{if(a)r();else{$e(this,Tr,rn).call(this,{type:"pending",variables:t,isPaused:o}),G(this,Bt).config.onMutate&&await G(this,Bt).config.onMutate(t,this,n);const Q=await((d=(s=this.options).onMutate)==null?void 0:d.call(s,t,n));Q!==this.state.context&&$e(this,Tr,rn).call(this,{type:"pending",context:Q,variables:t,isPaused:o})}const q=await G(this,Ln).start();return await((h=(f=G(this,Bt).config).onSuccess)==null?void 0:h.call(f,q,t,this.state.context,this,n)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,q,t,this.state.context,n)),await((_=(b=G(this,Bt).config).onSettled)==null?void 0:_.call(b,q,null,this.state.variables,this.state.context,this,n)),await((y=(T=this.options).onSettled)==null?void 0:y.call(T,q,null,t,this.state.context,n)),$e(this,Tr,rn).call(this,{type:"success",data:q}),q}catch(q){try{await((W=(I=G(this,Bt).config).onError)==null?void 0:W.call(I,q,t,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((A=(g=this.options).onError)==null?void 0:A.call(g,q,t,this.state.context,n))}catch(Q){Promise.reject(Q)}try{await((K=(w=G(this,Bt).config).onSettled)==null?void 0:K.call(w,void 0,q,this.state.variables,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((x=(U=this.options).onSettled)==null?void 0:x.call(U,void 0,q,t,this.state.context,n))}catch(Q){Promise.reject(Q)}throw $e(this,Tr,rn).call(this,{type:"error",error:q}),q}finally{G(this,Bt).runNext(this)}}},eo=new WeakMap,Sr=new WeakMap,Bt=new WeakMap,Ln=new WeakMap,Tr=new WeakSet,rn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Nt.batch(()=>{G(this,Sr).forEach(n=>{n.onMutationUpdate(t)}),G(this,Bt).notify({mutation:this,type:"updated",action:t})})},L2);function B1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,mr,to,M2,F1=(M2=class extends ro{constructor(t={}){super();Oe(this,Gr);Oe(this,mr);Oe(this,to);this.config=t,be(this,Gr,new Set),be(this,mr,new Map),be(this,to,0)}build(t,r,n){const a=new M1({client:t,mutationCache:this,mutationId:++ts(this,to)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){G(this,Gr).add(t);const r=rs(t);if(typeof r=="string"){const n=G(this,mr).get(r);n?n.push(t):G(this,mr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(G(this,Gr).delete(t)){const r=rs(t);if(typeof r=="string"){const n=G(this,mr).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&G(this,mr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=rs(t);if(typeof r=="string"){const n=G(this,mr).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=rs(t);if(typeof r=="string"){const a=(n=G(this,mr).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{G(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),G(this,Gr).clear(),G(this,mr).clear()})}getAll(){return Array.from(G(this,Gr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>gu(r,n))}findAll(t={}){return this.getAll().filter(r=>gu(t,r))}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Nt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Yt))))}},Gr=new WeakMap,mr=new WeakMap,to=new WeakMap,M2);function rs(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,B2,$1=(B2=class extends ro{constructor(t={}){super();Oe(this,Ar);this.config=t,be(this,Ar,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??ml(a,r);let s=this.get(o);return s||(s=new P1({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){G(this,Ar).has(t.queryHash)||(G(this,Ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=G(this,Ar).get(t.queryHash);r&&(t.destroy(),r===t&&G(this,Ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return G(this,Ar).get(t)}getAll(){return[...G(this,Ar).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pu(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>pu(t,n)):r}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ar=new WeakMap,B2),ht,dn,fn,fa,ha,hn,ma,pa,F2,D1=(F2=class{constructor(e={}){Oe(this,ht);Oe(this,dn);Oe(this,fn);Oe(this,fa);Oe(this,ha);Oe(this,hn);Oe(this,ma);Oe(this,pa);be(this,ht,e.queryCache||new $1),be(this,dn,e.mutationCache||new F1),be(this,fn,e.defaultOptions||{}),be(this,fa,new Map),be(this,ha,new Map),be(this,hn,0)}mount(){ts(this,hn)._++,G(this,hn)===1&&(be(this,ma,hl.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,ht).onFocus())})),be(this,pa,Es.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,ht).onOnline())})))}unmount(){var e,t;ts(this,hn)._--,G(this,hn)===0&&((e=G(this,ma))==null||e.call(this),be(this,ma,void 0),(t=G(this,pa))==null||t.call(this),be(this,pa,void 0))}isFetching(e){return G(this,ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,dn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,ht).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=G(this,ht).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(mn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return G(this,ht).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=G(this,ht).get(n.queryHash),o=a==null?void 0:a.state.data,s=_1(t,o);if(s!==void 0)return G(this,ht).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Nt.batch(()=>G(this,ht).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,ht).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=G(this,ht);Nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=G(this,ht);return Nt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Nt.batch(()=>G(this,ht).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return Nt.batch(()=>(G(this,ht).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Nt.batch(()=>G(this,ht).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Yt)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=G(this,ht).build(this,t);return r.isStaleByTime(mn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yt).catch(Yt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yt).catch(Yt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Es.isOnline()?G(this,dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,ht)}getMutationCache(){return G(this,dn)}getDefaultOptions(){return G(this,fn)}setDefaultOptions(e){be(this,fn,e)}setQueryDefaults(e,t){G(this,fa).set(qa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,fa).values()],r={};return t.forEach(n=>{Ua(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){G(this,ha).set(qa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,ha).values()],r={};return t.forEach(n=>{Ua(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,fn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ml(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===pl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...G(this,fn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,ht).clear(),G(this,dn).clear()}},ht=new WeakMap,dn=new WeakMap,fn=new WeakMap,fa=new WeakMap,ha=new WeakMap,hn=new WeakMap,ma=new WeakMap,pa=new WeakMap,F2),ef=ne.createContext(void 0),q1=e=>{const t=ne.useContext(ef);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U1=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ef.Provider,{value:e,children:t})),tf=ne.createContext(!1),H1=()=>ne.useContext(tf);tf.Provider;function V1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var z1=ne.createContext(V1()),G1=()=>ne.useContext(z1),W1=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?G2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},Z1=e=>{ne.useEffect(()=>{e.clearReset()},[e])},K1=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||G2(r,[e.error,n])),Y1=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...a)=>r(n(...a)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Q1=(e,t)=>e.isLoading&&e.isFetching&&!t,J1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Eu=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function X1(e,t,r){var _,T,y,I;const n=H1(),a=G1(),o=q1(),s=o.defaultQueryOptions(e);(T=(_=o.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||T.call(_,s);const d=o.getQueryCache().get(s.queryHash),f=e.subscribed!==!1;s._optimisticResults=n?"isRestoring":f?"optimistic":void 0,Y1(s),W1(s,a,d),Z1(a);const h=!o.getQueryCache().get(s.queryHash),[m]=ne.useState(()=>new t(o,s)),p=m.getOptimisticResult(s),b=!n&&f;if(ne.useSyncExternalStore(ne.useCallback(W=>{const g=b?m.subscribe(Nt.batchCalls(W)):Yt;return m.updateResult(),g},[m,b]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),ne.useEffect(()=>{m.setOptions(s)},[s,m]),J1(s,p))throw Eu(s,m,a);if(K1({result:p,errorResetBoundary:a,throwOnError:s.throwOnError,query:d,suspense:s.suspense}))throw p.error;if((I=(y=o.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||I.call(y,s,p),s.experimental_prefetchInRender&&!Ha.isServer()&&Q1(p,n)){const W=h?Eu(s,m,a):d==null?void 0:d.promise;W==null||W.catch(Yt).finally(()=>{m.updateResult()})}return s.notifyOnChangeProps?p:m.trackResult(p)}function Wr(e,t){return X1(e,O1)}const em="modulepreload",tm=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-30027061548.commit-0bc806a/"+e},xu={},_t=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let s=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=s(r.map(h=>{if(h=tm(h),h in xu)return;xu[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":em,m||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((_,T)=>{b.addEventListener("load",_),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(s){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=s,window.dispatchEvent(d),!d.defaultPrevented)throw s}return a.then(s=>{for(const d of s||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},rm="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill='%23000'/%3e%3c/svg%3e",nm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NotificationsFilled'%3e%3cpath%20id='Vector'%20d='M12%2021.75C13.1%2021.75%2014%2020.85%2014%2019.75H10C10%2020.85%2010.89%2021.75%2012%2021.75ZM18%2015.75V10.75C18%207.68%2016.36%205.11%2013.5%204.43V3.75C13.5%202.92%2012.83%202.25%2012%202.25C11.17%202.25%2010.5%202.92%2010.5%203.75V4.43C7.63%205.11%206%207.67%206%2010.75V15.75L4%2017.75V18.75H20V17.75L18%2015.75Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",am="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",om="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M17.5%205H5.875L4.95%202.23333C4.8941%202.06782%204.78759%201.92405%204.64552%201.82237C4.50346%201.72068%204.33304%201.66622%204.15833%201.66667H1.65833V3.33333H3.55833L6.50833%2012.1917C6.61872%2012.5243%206.83113%2012.8136%207.11538%2013.0185C7.39962%2013.2235%207.74124%2013.3337%208.09167%2013.3333H14.4167C14.7558%2013.3327%2015.0867%2013.2287%2015.3651%2013.0351C15.6435%2012.8416%2015.8563%2012.5677%2015.975%2012.25L18.275%206.125C18.3667%205.86667%2018.3333%205.58333%2018.1833%205.35833C18.1068%205.24795%2018.0046%205.15771%2017.8856%205.09532C17.7667%205.03292%2017.6344%205.00022%2017.5%205ZM14.425%2011.6667H8.1L6.43333%206.66667H16.3L14.425%2011.6667ZM8.33333%2015C7.89131%2015%207.46738%2015.1756%207.15482%2015.4882C6.84226%2015.8007%206.66667%2016.2246%206.66667%2016.6667C6.66667%2017.1087%206.84226%2017.5326%207.15482%2017.8452C7.46738%2018.1577%207.89131%2018.3333%208.33333%2018.3333C8.77536%2018.3333%209.19928%2018.1577%209.51184%2017.8452C9.82441%2017.5326%2010%2017.1087%2010%2016.6667C10%2016.2246%209.82441%2015.8007%209.51184%2015.4882C9.19928%2015.1756%208.77536%2015%208.33333%2015ZM14.1667%2015C13.7246%2015%2013.3007%2015.1756%2012.9882%2015.4882C12.6756%2015.8007%2012.5%2016.2246%2012.5%2016.6667C12.5%2017.1087%2012.6756%2017.5326%2012.9882%2017.8452C13.3007%2018.1577%2013.7246%2018.3333%2014.1667%2018.3333C14.6087%2018.3333%2015.0326%2018.1577%2015.3452%2017.8452C15.6577%2017.5326%2015.8333%2017.1087%2015.8333%2016.6667C15.8333%2016.2246%2015.6577%2015.8007%2015.3452%2015.4882C15.0326%2015.1756%2014.6087%2015%2014.1667%2015Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3c/svg%3e",sm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='boxicons:cart'%3e%3cpath%20id='Vector'%20d='M28%207.99935H9.39999L7.91999%203.57269C7.83054%203.30786%207.66012%203.07784%207.43283%202.91514C7.20553%202.75245%206.93285%202.6653%206.65332%202.66602H2.65332V5.33269H5.69332L10.4133%2019.506C10.5899%2020.0382%2010.9298%2020.5011%2011.3846%2020.829C11.8394%2021.157%2012.386%2021.3332%2012.9467%2021.3327H23.0667C23.6092%2021.3317%2024.1386%2021.1653%2024.5841%2020.8556C25.0297%2020.5459%2025.3701%2020.1076%2025.56%2019.5994L29.24%209.79935C29.3867%209.38602%2029.3333%208.93269%2029.0933%208.57269C28.9708%208.39607%2028.8074%208.25169%2028.617%208.15186C28.4266%208.05203%2028.2149%207.99971%2028%207.99935ZM23.08%2018.666H12.96L10.2933%2010.666H26.08L23.08%2018.666ZM13.3333%2023.9994C12.6261%2023.9994%2011.9478%2024.2803%2011.4477%2024.7804C10.9476%2025.2805%2010.6667%2025.9588%2010.6667%2026.666C10.6667%2027.3733%2010.9476%2028.0515%2011.4477%2028.5516C11.9478%2029.0517%2012.6261%2029.3327%2013.3333%2029.3327C14.0406%2029.3327%2014.7188%2029.0517%2015.2189%2028.5516C15.719%2028.0515%2016%2027.3733%2016%2026.666C16%2025.9588%2015.719%2025.2805%2015.2189%2024.7804C14.7188%2024.2803%2014.0406%2023.9994%2013.3333%2023.9994ZM22.6667%2023.9994C21.9594%2023.9994%2021.2811%2024.2803%2020.781%2024.7804C20.2809%2025.2805%2020%2025.9588%2020%2026.666C20%2027.3733%2020.2809%2028.0515%2020.781%2028.5516C21.2811%2029.0517%2021.9594%2029.3327%2022.6667%2029.3327C23.3739%2029.3327%2024.0522%2029.0517%2024.5523%2028.5516C25.0524%2028.0515%2025.3333%2027.3733%2025.3333%2026.666C25.3333%2025.9588%2025.0524%2025.2805%2024.5523%2024.7804C24.0522%2024.2803%2023.3739%2023.9994%2022.6667%2023.9994Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",im="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%203c.3%203.2%201.8%204.7%205%205-3.2.3-4.7%201.8-5%205-.3-3.2-1.8-4.7-5-5%203.2-.3%204.7-1.8%205-5Z'%20fill='%235E5B67'/%3e%3cpath%20d='M18%2012c.15%201.6.9%202.35%202.5%202.5-1.6.15-2.35.9-2.5%202.5-.15-1.6-.9-2.35-2.5-2.5%201.6-.15%202.35-.9%202.5-2.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",cm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='FeetIcon'%3e%3crect%20id='Rectangle%20498'%20opacity='0'%20width='24'%20height='24'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3cpath%20id='Subtract'%20d='M8.67877%207.59546C9.27547%207.68481%2010.5876%208.37254%2011.9796%209.33179C13.6367%2010.4694%2015.3779%2011.1166%2017.0792%2011.4959C21.962%2012.5666%2022.4879%2012.3658%2022.2891%2013.7263C22.2891%2013.7932%2022.2676%2013.883%2022.2676%2013.95C22.157%2015.333%2019.9912%2016.4039%2017.3399%2016.4041H3.5069C2.40745%2016.4041%201.47953%2016.5953%201.71295%2014.3738C1.72283%2014.2802%201.74457%2014.2358%201.77936%2014.196C1.82355%2012.4559%201.51845%209.26601%202.37897%209.69605C2.97909%209.9961%203.64729%2010.7195%206.51373%2010.7195C7.37513%2010.7194%207.92741%2010.2285%208.1485%209.9607C7.97172%209.46986%207.70704%208.44348%208.23737%207.77417C8.34775%207.64049%208.50223%207.57333%208.67877%207.59546ZM16.6866%2012.0955C16.5071%2012.5325%2016.0943%2013.8265%2015.879%2014.4558C18.8932%2014.6655%2020.9526%2014.0106%2021.2628%2013.407C21.5725%2012.8033%2017.4945%2012.3577%2016.6866%2012.0955ZM5.78815%2014.3074H6.71979L8.73346%2011.9382H7.83307L5.78815%2014.3074ZM7.64362%2014.3074H8.57526L10.588%2011.9382H9.68854L7.64362%2014.3074Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",lm="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%2021a1%201%200%200%201-1-1v-3.9l-1.7-2a1.75%201.75%200%200%201%202.6-2.3l.6.7V6.2a1.45%201.45%200%200%201%202.9%200v2.9a1.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200%201.25%201.25%200%200%201%202.5%200v4.7a5.5%205.5%200%200%201-5.5%205.5H7.5Z'%20fill='%235E5B67'/%3e%3c/svg%3e",um="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='HairIcon'%3e%3cpath%20id='Fill%201'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.90903%206.68957C2.64951%208.31027%205.45007%2016.2983%206.37802%2016.4457C6.993%2016.9543%206.68432%2013.2024%208.35893%2011.2067C10.3928%2014.596%2015.8155%2013.5116%2015.8155%2013.5116C15.8155%2013.5116%2017.9863%2015.4901%2016.7697%2019.0678C19.1676%2016.6943%2021.4051%208.18384%2015.5426%205.35227C14.6995%204.94483%2013.7468%204.82985%2012.8112%204.80409C11.0211%204.7559%208.98297%205.1204%208.01303%206.62564'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",dm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='LowerBodyIcon'%3e%3cpath%20id='Vector'%20d='M20.3922%2016.5581L18.8251%208.28912V5.88885C18.8251%205.61998%2018.5888%205.4%2018.3001%205.4H5.70002C5.41127%205.4%205.17501%205.61998%205.17501%205.88885V8.28912L3.60788%2016.5581C3.56063%2016.8098%203.73126%2017.0542%203.99901%2017.1178L10.299%2018.5844C10.341%2018.5941%2010.383%2018.599%2010.425%2018.599C10.6534%2018.599%2010.8634%2018.4573%2010.929%2018.2446L11.9528%2014.9082L12.8007%2018.225C12.8322%2018.3522%2012.9188%2018.4597%2013.0369%2018.5281C13.155%2018.5966%2013.2994%2018.6161%2013.4333%2018.5868L19.9958%2017.1202C20.2688%2017.0591%2020.4394%2016.8123%2020.3922%2016.5581ZM17.7751%207.84426H6.22502V6.37771H17.7751V7.84426Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",fm="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.5%2015.2A8.5%208.5%200%201%201%2010.2%203.6a6.7%206.7%200%201%200%2010.3%2011.6Z'%20fill='%235E5B67'/%3e%3c/svg%3e",hm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='UpperBodyIcon'%3e%3cpath%20id='TopIcon'%20d='M14.3596%205.13528C14.537%204.86646%2014.8726%204.72006%2015.1672%204.84621L20.6506%207.81594C20.9417%207.94063%2021.0776%208.27979%2020.9543%208.57375L19.5373%2011.2368C19.4137%2011.5309%2019.0766%2011.6682%2018.7853%2011.5435L17.3713%2010.938L17.9719%2019.2212C17.9719%2019.5406%2017.715%2019.8003%2017.3986%2019.8003H6.61053C6.29436%2019.8001%206.03826%2019.5404%206.03826%2019.2212L6.63787%2010.9048L5.15057%2011.5415C4.85933%2011.6661%204.5231%2011.5288%204.39959%2011.2349L3.04607%208.57278C2.9225%208.27868%203.05842%207.93864%203.34979%207.81399L8.77068%204.84621C9.06528%204.72018%209.40093%204.86646%209.5783%205.13528C9.78488%205.44867%2010.0513%205.72049%2010.3635%205.93313C10.8376%206.256%2011.397%206.42894%2011.9689%206.42922C12.5409%206.42896%2013.1002%206.25602%2013.5744%205.93313C13.8866%205.72052%2014.153%205.44864%2014.3596%205.13528ZM11.1369%209.49172C11.086%209.49172%2011.0405%209.52472%2011.0236%209.57278L9.6242%2013.5532C9.59677%2013.6313%209.65475%2013.7134%209.73748%2013.7134H10.8986C10.9764%2013.7134%2011.0342%2013.7863%2011.0158%2013.8618L10.3019%2016.7866C10.2718%2016.9102%2010.4296%2016.9899%2010.5109%2016.8921L14.2053%2012.4419C14.27%2012.3637%2014.2141%2012.2447%2014.1125%2012.2447H13.1672C13.0777%2012.2447%2013.0194%2012.1506%2013.0597%2012.0708L14.2795%209.66653C14.3199%209.58681%2014.2623%209.49199%2014.173%209.49172H11.1369Z'%20fill='var(--fill-0,%20%235E5B67)'/%3e%3c/g%3e%3c/svg%3e",mm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2017.8%2019.5778'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M8.9%200.9V3.34444M12.9%2018.6778H16.9L15.1222%200.9H2.67778L0.900004%2018.6778H4.9L8.9%207.56667L12.9%2018.6778Z'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.78888%200.9C5.78888%200.9%205.78888%203.56667%204.89999%204.45556C4.0111%205.34444%202.18888%205.78889%202.18888%205.78889M12.0111%200.9C12.0111%200.9%2012.0111%203.56667%2012.9%204.45556C13.7889%205.34444%2015.6111%205.78889%2015.6111%205.78889'%20stroke='var(--stroke-0,%20white)'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",pm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.55%2017.6%204.4%2012.45l1.5-1.5%203.65%203.65%208.65-8.65%201.5%201.5z'%20fill='currentColor'/%3e%3c/svg%3e",gm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='ExpandMoreFilled'%3e%3cpath%20id='Vector'%20d='M13.825%206.9125L10%2010.7292L6.175%206.9125L5%208.0875L10%2013.0875L15%208.0875L13.825%206.9125Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",ym="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='9'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%207V12L15.5%2014'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",vm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.4%204.94%204.94%206.4%2010.54%2012l-5.6%205.6%201.46%201.46L12%2013.46l5.6%205.6%201.46-1.46L13.46%2012l5.6-5.6L17.6%204.94%2012%2010.54z'%20fill='currentColor'/%3e%3c/svg%3e",bm="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%201H4a2%202%200%200%200-2%202v12h2V3h12V1zm3%204H8a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h11a2%202%200%200%200%202-2V7a2%202%200%200%200-2-2zm0%2016H8V7h11v14z'%20fill='%23000'/%3e%3c/svg%3e",wm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%201.75a10.25%2010.25%200%201%200%200%2020.5%2010.25%2010.25%200%200%200%200-20.5Zm0%205.9%204.68%208.1a0.9%200.9%200%200%201-0.78%201.35H8.1a0.9%200.9%200%200%201-0.78-1.35L12%207.65Z'%20fill='%23242129'/%3e%3c/svg%3e",_m="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM8.97013%2010.9972C11.1295%209.39269%2013.1764%209.33459%2013.4239%209.3336C13.4403%209.33353%2013.4488%209.33372%2013.4488%209.33372L13.6088%209.52564C10.7296%2010.3414%209.41797%2011.6051%209.41797%2011.6051C9.41797%2011.6051%209.76991%2011.4131%2010.3617%2011.1572C12.0732%2010.4054%2013.4328%2010.2135%2013.9927%2010.1495L14.0284%2010.1435C14.1091%2010.1297%2014.1807%2010.1175%2014.2646%2010.1175C15.2403%209.98956%2016.344%209.95753%2017.4957%2010.0855C19.0153%2010.2614%2020.6468%2010.7093%2022.3103%2011.6051C22.3103%2011.6051%2021.0467%2010.4054%2018.3275%209.58964L18.5514%209.33372C18.5514%209.33372%2020.7428%209.28572%2023.0301%2010.9972C23.0301%2010.9972%2025.3335%2015.1401%2025.3335%2020.2426C25.3335%2020.2418%2025.3297%2020.2474%2025.3222%2020.2587C25.1861%2020.4629%2023.8039%2022.5358%2020.4549%2022.6419C20.4549%2022.6419%2019.879%2021.9542%2019.3992%2021.3623C21.4946%2020.7705%2022.2943%2019.4749%2022.2943%2019.4749C21.6385%2019.9067%2021.0147%2020.2106%2020.4549%2020.4186C19.6551%2020.7545%2018.8873%2020.9624%2018.1355%2021.1063C16.5999%2021.3943%2015.1923%2021.3143%2013.9927%2021.0904C13.0809%2020.9144%2012.2971%2020.6745%2011.6413%2020.4026C11.2734%2020.2586%2010.8736%2020.0826%2010.4737%2019.8587C10.4497%2019.8427%2010.4257%2019.8307%2010.4017%2019.8187L10.4017%2019.8187L10.4016%2019.8187C10.3777%2019.8067%2010.3537%2019.7947%2010.3297%2019.7787C10.3175%2019.7726%2010.3076%2019.7665%2010.2992%2019.7613C10.2855%2019.7529%2010.2757%2019.7468%2010.2658%2019.7468C9.97786%2019.5868%209.81787%2019.4749%209.81787%2019.4749C9.81787%2019.4749%2010.5856%2020.7385%2012.6171%2021.3463C12.1372%2021.9541%2011.5454%2022.6579%2011.5454%2022.6579C8.01038%2022.5459%206.66679%2020.2426%206.66679%2020.2426C6.66679%2015.1401%208.97013%2010.9972%208.97013%2010.9972ZM14.6485%2016.9955C14.6645%2016.0198%2013.9287%2015.236%2013.017%2015.236C12.1053%2015.236%2011.3855%2016.0198%2011.3855%2016.9955C11.3855%2017.9712%2012.1213%2018.755%2013.017%2018.755C13.9287%2018.755%2014.6485%2017.9712%2014.6485%2016.9955ZM18.8552%2015.236C19.751%2015.236%2020.4868%2016.0198%2020.4868%2016.9955C20.4868%2017.9712%2019.767%2018.755%2018.8552%2018.755C17.9595%2018.755%2017.2237%2017.9712%2017.2237%2016.9955C17.2237%2016.0198%2017.9435%2015.236%2018.8552%2015.236Z'%20fill='white'/%3e%3c/svg%3e",Cm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19%203.2%209.5%205.3v9.9A3.6%203.6%200%201%200%2011.5%2018.4V9.1L17%207.9v4.3a3.6%203.6%200%201%200%202-3.24V3.2Z'/%3e%3c/svg%3e",Em="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM8.8%208.6a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8Zm6.4%200a1.4%201.4%200%201%201%200%202.8%201.4%201.4%200%200%201%200-2.8ZM6.9%2013.9h10.2a5.1%205.1%200%200%201-10.2%200Z'/%3e%3c/svg%3e",xm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M8.5%2022A5.5%205.5%200%200%201%203%2016.5v-3.3a1.25%201.25%200%200%201%202.5%200v1.8h.5V5.4a1.3%201.3%200%200%201%202.6%200V11h.5V4.1a1.3%201.3%200%200%201%202.6%200V11h.5V4.7a1.3%201.3%200%200%201%202.6%200V11h.5V6.9a1.25%201.25%200%200%201%202.5%200v7.6A7.5%207.5%200%200%201%2010%2022Z'/%3e%3c/svg%3e",Sm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M12%202a8%208%200%200%200-8%208v11.2a.7.7%200%200%200%201.15.54L7.2%2020l2.05%201.7a.7.7%200%200%200%20.9%200L12%2020l1.85%201.7a.7.7%200%200%200%20.9%200L16.8%2020l2.05%201.74A.7.7%200%200%200%2020%2021.2V10a8%208%200%200%200-8-8ZM9.3%208.8a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Zm5.4%200a1.5%201.5%200%201%200%200%203%201.5%201.5%200%200%200%200-3Z'/%3e%3c/svg%3e",Tm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M6.5%205a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm-11%209.2a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Zm11%200a2.4%202.4%200%201%201%200%204.8%202.4%202.4%200%200%201%200-4.8Z'/%3e%3c/svg%3e",Am="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12%202.2a2.5%202.5%200%201%201%200%205%202.5%202.5%200%200%201%200-5ZM9.2%208.2h5.6a2%202%200%200%201%202%202v4.6a1%201%200%200%201-2%200v-3.3h-.5v9.3a1.1%201.1%200%200%201-2.2%200v-5.3h-.6v5.3a1.1%201.1%200%200%201-2.2%200v-9.3h-.5v3.3a1%201%200%200%201-2%200v-4.6a2%202%200%200%201%202-2Z'/%3e%3c/svg%3e",km="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill-rule='evenodd'%3e%3cpath%20d='M4%203.5h16a2.5%202.5%200%200%201%202.5%202.5v8a2.5%202.5%200%200%201-2.5%202.5h-7.3l-4.7%203.9a.7.7%200%200%201-1.15-.54V16.5H4A2.5%202.5%200%200%201%201.5%2014V6A2.5%202.5%200%200%201%204%203.5ZM8%208.7a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Zm4%200a1.3%201.3%200%201%200%200%202.6%201.3%201.3%200%200%200%200-2.6Z'/%3e%3c/svg%3e",Im="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M13.6%202%204.5%2013.4a.7.7%200%200%200%20.55%201.14H10l-1.1%207.02a.55.55%200%200%200%20.99.42l9.6-11.98a.7.7%200%200%200-.55-1.14H13.2l1.35-6.06A.55.55%200%200%200%2013.6%202Z'/%3e%3c/svg%3e",Rm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi:ethereum'%3e%3crect%20width='16'%20height='16'%20rx='8'%20fill='url(%23paint0_linear_0_1668)'/%3e%3cpath%20id='Vector'%20d='M7.58334%201.99997L4%208.01999L7.58334%2010.17L11.1667%208.01999L7.58334%201.99997ZM4%208.73665L7.58334%2013.7533L11.1667%208.73665L7.58334%2010.8867L4%208.73665Z'%20fill='var(--fill-0,%20%23FCFCFC)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1668'%20x1='8'%20y1='0'%20x2='8'%20y2='16'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230E0E0E'/%3e%3cstop%20offset='1'%20stop-color='%23787878'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Nm="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-7h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z'%20fill='%23000'/%3e%3c/svg%3e",Pm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M12%204.5C7%204.5%202.73%207.61%201%2012c1.73%204.39%206%207.5%2011%207.5s9.27-3.11%2011-7.5c-1.73-4.39-6-7.5-11-7.5Zm0%2012.5c-2.76%200-5-2.24-5-5s2.24-5%205-5%205%202.24%205%205-2.24%205-5%205Zm0-8c-1.66%200-3%201.34-3%203s1.34%203%203%203%203-1.34%203-3-1.34-3-3-3Z'/%3e%3c/svg%3e",Om="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM18.0025%208.00024L20.1612%208.00357C20.3484%208.00391%2020.5001%208.14989%2020.5001%208.32982V10.7724C20.5001%2010.9525%2020.3482%2011.0986%2020.1609%2011.0986L18.7067%2011.0991C17.7041%2011.0991%2017.5207%2011.4746%2017.5207%2012.2143V13.7534H20.0594C20.1494%2013.7534%2020.236%2013.7878%2020.2996%2013.8491C20.3631%2013.9103%2020.399%2013.9932%2020.399%2014.0798L20.3979%2016.7103C20.3979%2016.8905%2020.2461%2017.0365%2020.0585%2017.0365H17.5207V23.674C17.5207%2023.8541%2017.3689%2024.0002%2017.1813%2024.0002H14.3495C14.1619%2024.0002%2014.01%2023.8543%2014.01%2023.674V17.0365H11.8396C11.6522%2017.0365%2011.5001%2016.8905%2011.5001%2016.7103V14.0798C11.5001%2013.8995%2011.652%2013.7534%2011.8396%2013.7534H14.01V11.9379C14.01%209.54576%2015.5773%208.00024%2018.0025%208.00024Z'%20fill='white'/%3e%3c/svg%3e",jm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='currentColor'%20d='M7.50049%2012.5957C7.99711%2012.5958%208.4818%2012.7503%208.88721%2013.0371C9.2926%2013.324%209.59891%2013.7299%209.76416%2014.1982L9.7876%2014.2646H15.8335C16.028%2014.2646%2016.2145%2014.342%2016.3521%2014.4795C16.4896%2014.617%2016.5669%2014.8036%2016.5669%2014.998C16.5669%2015.1925%2016.4895%2015.3791%2016.3521%2015.5166C16.2145%2015.6541%2016.028%2015.7314%2015.8335%2015.7314H9.7876L9.76416%2015.7979C9.59892%2016.2662%209.29255%2016.6721%208.88721%2016.959C8.4818%2017.2458%207.99711%2017.4003%207.50049%2017.4004C7.00381%2017.4004%206.51924%2017.2458%206.11377%2016.959C5.70828%2016.6721%205.40112%2016.2663%205.23584%2015.7979L5.2124%2015.7314H4.1665C3.97213%2015.7314%203.7854%2015.6541%203.64795%2015.5166C3.51055%2015.3791%203.43311%2015.1924%203.43311%2014.998C3.43313%2014.8036%203.51052%2014.617%203.64795%2014.4795C3.7854%2014.342%203.97213%2014.2647%204.1665%2014.2646H5.2124L5.23584%2014.1982C5.40112%2013.7298%205.70828%2013.324%206.11377%2013.0371C6.51922%2012.7503%207.00384%2012.5957%207.50049%2012.5957ZM7.50049%2014.0645C7.25305%2014.0645%207.01535%2014.163%206.84033%2014.3379C6.66532%2014.5129%206.56692%2014.7505%206.56689%2014.998C6.56689%2015.2456%206.6653%2015.4832%206.84033%2015.6582C7.01535%2015.8332%207.25301%2015.9316%207.50049%2015.9316C7.74777%2015.9316%207.98474%2015.833%208.15967%2015.6582C8.3347%2015.4832%208.43311%2015.2456%208.43311%2014.998C8.43308%2014.7505%208.33468%2014.5129%208.15967%2014.3379C7.98475%2014.1632%207.74773%2014.0645%207.50049%2014.0645ZM12.5005%207.5957C12.9971%207.59577%2013.4818%207.75025%2013.8872%208.03711C14.2926%208.32402%2014.5989%208.72989%2014.7642%209.19824L14.7876%209.26465H15.8335C16.028%209.26465%2016.2145%209.34199%2016.3521%209.47949C16.4896%209.617%2016.5669%209.80359%2016.5669%209.99805C16.5669%2010.1925%2016.4895%2010.3791%2016.3521%2010.5166C16.2145%2010.6541%2016.028%2010.7314%2015.8335%2010.7314H14.7876L14.7642%2010.7979C14.5989%2011.2662%2014.2926%2011.6721%2013.8872%2011.959C13.4818%2012.2458%2012.9971%2012.4003%2012.5005%2012.4004C12.0038%2012.4004%2011.5192%2012.2458%2011.1138%2011.959C10.7083%2011.6721%2010.4011%2011.2663%2010.2358%2010.7979L10.2124%2010.7314H4.1665C3.97213%2010.7314%203.7854%2010.6541%203.64795%2010.5166C3.51055%2010.3791%203.43311%2010.1924%203.43311%209.99805C3.43313%209.80364%203.51052%209.61699%203.64795%209.47949C3.7854%209.34204%203.97213%209.26473%204.1665%209.26465H10.2124L10.2358%209.19824C10.4011%208.72981%2010.7083%208.32403%2011.1138%208.03711C11.5192%207.75029%2012.0038%207.5957%2012.5005%207.5957ZM12.5005%209.06445C12.2531%209.06445%2012.0153%209.16299%2011.8403%209.33789C11.6653%209.5129%2011.5669%209.75054%2011.5669%209.99805C11.5669%2010.2456%2011.6653%2010.4832%2011.8403%2010.6582C12.0154%2010.8332%2012.253%2010.9316%2012.5005%2010.9316C12.7478%2010.9316%2012.9847%2010.833%2013.1597%2010.6582C13.3347%2010.4832%2013.4331%2010.2456%2013.4331%209.99805C13.4331%209.75054%2013.3347%209.5129%2013.1597%209.33789C12.9847%209.16316%2012.7477%209.06454%2012.5005%209.06445ZM7.50049%202.5957C7.99711%202.59577%208.4818%202.75025%208.88721%203.03711C9.2926%203.32402%209.59891%203.72989%209.76416%204.19824L9.7876%204.26465H15.8335C16.028%204.26465%2016.2145%204.34199%2016.3521%204.47949C16.4896%204.617%2016.5669%204.80359%2016.5669%204.99805C16.5669%205.19252%2016.4895%205.37908%2016.3521%205.5166C16.2145%205.65413%2016.028%205.73145%2015.8335%205.73145H9.7876L9.76416%205.79785C9.59892%206.26617%209.29255%206.67208%208.88721%206.95898C8.4818%207.24584%207.99711%207.40032%207.50049%207.40039C7.00381%207.40039%206.51924%207.24584%206.11377%206.95898C5.70828%206.67207%205.40112%206.26628%205.23584%205.79785L5.2124%205.73145H4.1665C3.97213%205.73136%203.7854%205.65405%203.64795%205.5166C3.51055%205.37909%203.43311%205.19244%203.43311%204.99805C3.43313%204.80364%203.51052%204.61699%203.64795%204.47949C3.7854%204.34204%203.97213%204.26473%204.1665%204.26465H5.2124L5.23584%204.19824C5.40112%203.72981%205.70828%203.32403%206.11377%203.03711C6.51922%202.75029%207.00384%202.5957%207.50049%202.5957ZM7.50049%204.06445C7.25305%204.06445%207.01535%204.16299%206.84033%204.33789C6.66532%204.5129%206.56692%204.75054%206.56689%204.99805C6.56689%205.24558%206.6653%205.48317%206.84033%205.6582C7.01535%205.83316%207.25301%205.93164%207.50049%205.93164C7.74777%205.93155%207.98474%205.83298%208.15967%205.6582C8.3347%205.48317%208.43311%205.24558%208.43311%204.99805C8.43308%204.75054%208.33468%204.5129%208.15967%204.33789C7.98475%204.16316%207.74773%204.06454%207.50049%204.06445Z'/%3e%3c/svg%3e",Lm="data:image/svg+xml,%3csvg%20viewBox='0%200%2014.4093%2021'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.630405%201.06971C0.118387%201.27166%20-0.132525%201.85083%200.0703418%202.36248L4.5%208.65001L6%2011.9743L2.91857%2015L0.947687%2019.8337C0.843152%2020.4432%201.31259%2021%201.93098%2021C2.42738%2021%202.84826%2020.635%202.91857%2020.1437L4.64492%2016.1279L8.58256%2012.9801L7.80317%2019.8459C7.73334%2020.4611%208.21456%2021%208.8337%2021C9.35359%2021%209.79314%2020.6151%209.86178%2020.0998L10.9439%2011.9743L10.4357%208.65001L14.2341%203.18092C14.6814%202.53679%2014.2205%201.65543%2013.4362%201.65543C13.113%201.65543%2012.8109%201.81622%2012.6304%202.08436L10.6697%204.85006C9.93601%205.88499%208.74611%206.5%207.4775%206.5C6.23405%206.5%205.06462%205.90901%204.32709%204.9079L1.93098%201.65543C1.73952%201.12899%201.15151%200.864182%200.630405%201.06971Z'%20fill='%23000'/%3e%3ccircle%20cx='7.50271'%20cy='2.50271'%20r='2.50271'%20fill='%23000'/%3e%3c/svg%3e",Mm="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M12%2013.5V22M8.5%2018.5h7'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Bm="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9.5'%20cy='14.5'%20r='5.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M13.4%2010.6%2020%204M14.5%204H20v5.5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fm="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='4.5'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M15.4%208.6%2020%204M15%204h5v5'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12%2016.5V21M9%2019h6'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",$m="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Dm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Favourite'%3e%3cpath%20id='heart%20icn'%20d='M6.17811%203.05867H6.19666C6.80699%203.05543%207.41165%203.18384%207.9701%203.43562C8.24268%203.55854%208.50168%203.70952%208.74256%203.88582C8.99505%204.07064%209.22797%204.28333%209.4369%204.52058L10.0004%205.16023L10.5629%204.52058C10.7719%204.28322%2011.0056%204.0707%2011.2582%203.88582C11.4991%203.70952%2011.758%203.55853%2012.0306%203.43562C12.5891%203.18387%2013.1938%203.05538%2013.8041%203.05867H13.8217C14.3276%203.04916%2014.8305%203.14205%2015.3012%203.33211C15.7719%203.5222%2016.2012%203.80588%2016.5639%204.16707C16.9265%204.52829%2017.2153%204.9597%2017.4125%205.4366C17.6097%205.91346%2017.7114%206.42568%2017.7113%206.94343C17.7113%208.58332%2016.9202%2010.1174%2015.6849%2011.5919C14.4485%2013.0677%2012.8407%2014.4001%2011.3295%2015.6495C11.0556%2015.8759%2010.7842%2016.0996%2010.5219%2016.3194C10.2242%2016.5685%209.78111%2016.5679%209.4828%2016.3165C9.19652%2016.0752%208.89983%2015.8289%208.59999%2015.5802C7.09694%2014.3334%205.50709%2013.0123%204.28651%2011.5499C3.06753%2010.0893%202.28846%208.57068%202.28846%206.94343C2.28839%206.42571%202.39012%205.91344%202.58729%205.4366C2.78449%204.95973%203.07328%204.52828%203.43592%204.16707C3.79856%203.80588%204.2279%203.52221%204.69862%203.33211C5.1693%203.14203%205.6722%203.04918%206.17811%203.05867Z'%20stroke='var(--stroke-0,%20%23242129)'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",qm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20m0%202a8%208%200%201%201%200%2016%208%208%200%200%201%200-16m-1%205h2V7h-2zm0%208h2v-6h-2z'%20fill='currentColor'/%3e%3c/svg%3e",Um="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M30%2060C46.5685%2060%2060%2046.5685%2060%2030C60%2013.4315%2046.5685%200%2030%200C13.4315%200%200%2013.4315%200%2030C0%2046.5685%2013.4315%2060%2030%2060Z'%20fill='url(%23paint0_linear_0_1856)'/%3e%3cpath%20id='Vector_2'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.2549%2019.4982V41.9982H40.0049L21.2549%2019.4982Z'%20fill='url(%23paint1_linear_0_1856)'/%3e%3cpath%20id='Vector_3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.50488%2041.9982H21.2549V19.4982L2.50488%2041.9982Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.00023%2048.0018C7.71023%2050.2668%209.73523%2052.2918%2012.0002%2054.0018H48.0002C50.2652%2052.2918%2052.2902%2050.2668%2054.0002%2048.0018H6.00023Z'%20fill='var(--fill-0,%20%23FC9965)'/%3e%3cpath%20id='Vector_5'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0005%2053.9964C17.0105%2057.7614%2023.2505%2059.9964%2030.0005%2059.9964C36.7505%2059.9964%2042.9905%2057.7614%2048.0005%2053.9964H12.0005Z'%20fill='var(--fill-0,%20%23FF2D55)'/%3e%3cpath%20id='Vector_6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2031.4964V47.9964H53.9999L40.2449%2031.4964Z'%20fill='url(%23paint2_linear_0_1856)'/%3e%3cpath%20id='Vector_7'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2449%2041.9982H2.50488C3.43488%2044.1432%204.61988%2046.1532%205.99988%2047.9982H40.2599V41.9982H40.2449V41.9982Z'%20fill='var(--fill-0,%20%23FFBC5B)'/%3e%3cpath%20id='Vector_8'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.5047%2047.9964H40.2447V31.4964L26.5047%2047.9964Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Vector_9'%20d='M40.2449%2026.9982C44.387%2026.9982%2047.7449%2023.6403%2047.7449%2019.4982C47.7449%2015.3561%2044.387%2011.9982%2040.2449%2011.9982C36.1028%2011.9982%2032.7449%2015.3561%2032.7449%2019.4982C32.7449%2023.6403%2036.1028%2026.9982%2040.2449%2026.9982Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3cpath%20id='Vector_10'%20d='M21.255%2015C23.3261%2015%2025.005%2013.3211%2025.005%2011.25C25.005%209.17893%2023.3261%207.5%2021.255%207.5C19.1839%207.5%2017.505%209.17893%2017.505%2011.25C17.505%2013.3211%2019.1839%2015%2021.255%2015Z'%20fill='var(--fill-0,%20%23FFC95B)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1856'%20x1='51.213'%20y1='8.787'%20x2='8.787'%20y2='51.213'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_1856'%20x1='30.6235'%20y1='19.4982'%20x2='30.6235'%20y2='41.9982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_0_1856'%20x1='47.1177'%20y1='31.4964'%20x2='47.1177'%20y2='47.9964'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Hm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.172%202A2%202%200%200%201%2012.586%202.586l8%208a2%202%200%200%201%200%202.828l-7.172%207.172a2%202%200%200%201-2.828%200l-8-8A2%202%200%200%201%202%2011.172V4a2%202%200%200%201%202-2h7.172ZM7%208a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z'%20fill='%23000'/%3e%3c/svg%3e",Vm="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75L3%2017.25zM20.71%207.04c.39-.39.39-1.02%200-1.41l-2.34-2.34a.9959.9959%200%2000-1.41%200l-1.83%201.83%203.75%203.75%201.83-1.83z'%20fill='%23000'/%3e%3c/svg%3e",zm="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='currentColor'%20d='M11%205h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3e%3c/svg%3e",Gm="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2021.3333%2020.7151'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='search%20copy'%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20d='M9.4032%203.45251C12.6323%203.45276%2015.2498%205.99465%2015.2499%209.13025C15.2499%2010.2591%2014.9095%2011.3103%2014.3245%2012.1943C14.3033%2012.2264%2014.3121%2012.2656%2014.3397%2012.2924L17.4296%2015.2924C17.8936%2015.743%2017.8935%2016.4735%2017.4296%2016.9242C16.9654%2017.3748%2016.213%2017.3748%2015.7489%2016.9242L12.6591%2013.9242C12.6315%2013.8974%2012.5925%2013.8886%2012.5598%2013.909C11.6491%2014.4775%2010.5654%2014.808%209.40222%2014.808C6.17313%2014.8077%203.55554%2012.2658%203.55554%209.13025C3.55556%205.99453%206.1739%203.45251%209.4032%203.45251ZM9.40222%205.42126C7.2926%205.42147%205.58291%207.08166%205.58289%209.13025C5.58289%2011.1788%207.29252%2012.84%209.40222%2012.8402C11.512%2012.8402%2013.2225%2011.1789%2013.2225%209.13025C13.2225%207.08159%2011.512%205.42126%209.40222%205.42126Z'%20fill='var(--fill-0,%20%23242129)'/%3e%3c/g%3e%3c/svg%3e",Wm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%208v5c0%201%20.8%201.8%202%202h13c1%200%202-.6%202-1.6%200-.7-.4-1.2-1-1.5L11%208V6H4Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Zm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2021v-9c-2%200-3-1.6-3-3%200-1%201-1.6%202-1l1%201V5c0-1%202-1%202%200v4h6c1%200%202%20.8%202%202v5c0%203-2%205-5%205H8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Km="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='8'%20r='4'%20stroke='%23000'%20stroke-width='2'/%3e%3cpath%20d='M5%2020c0-3.9%203.1-7%207-7s7%203.1%207%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Ym="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2012%2012%203h8v8l-9%209-8-8Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3ccircle%20cx='16.5'%20cy='7.5'%20r='1.5'%20fill='%23000'/%3e%3c/svg%3e",Qm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203h10l-1%2018h-3L12%2010l-1%2011H8L7%203Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Jm="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203%204%206l2%204%202-1v9h8v-9l2%201%202-4-5-3c-.5%201.6-5.5%201.6-6%200Z'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",Xm="data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.17684%207.94806C9.12161%207.94806%209.07684%207.90329%209.07684%207.84806V2.6359C9.07684%202.53961%208.95409%202.49895%208.89661%202.57621L3.63031%209.65401C3.50759%209.81893%203.62531%2010.0532%203.83088%2010.0532H6.823C6.87823%2010.0532%206.923%2010.098%206.923%2010.1532V15.3654C6.923%2015.4617%207.04575%2015.5024%207.10323%2015.4251L12.3695%208.3473C12.4922%208.18237%2012.3745%207.94806%2012.169%207.94806H9.17684Z'%20fill='white'%20stroke='white'%20stroke-width='0.75'/%3e%3c/svg%3e",ep="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%207h16M9%207V5c0-.6.4-1%201-1h4c.6%200%201%20.4%201%201v2m2%200-1%2013c0%20.6-.4%201-1%201H8c-.6%200-1-.4-1-1L6%207'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",tp="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.2822%2010.9531C24.0001%2010.9531%2024.7181%2010.7452%2025.3335%2010.4335C24.8206%2011.1609%2024.2052%2011.8883%2023.5899%2012.304V12.8236C23.5899%2017.6038%2020.0001%2023.1114%2013.436%2023.1114C11.4873%2023.1114%209.53858%2022.4879%208.00012%2021.4487H8.82063C10.4617%2021.4487%2012.0001%2020.8252%2013.2309%2019.8899C11.5899%2019.8899%2010.2565%2018.8508%209.84628%2017.3959C10.154%2017.4998%2010.3591%2017.4998%2010.5642%2017.4998C10.8719%2017.4998%2011.1796%2017.4998%2011.4873%2017.3959C9.84628%2017.0842%208.61551%2015.6293%208.61551%2013.8628C9.12833%2014.0706%209.64115%2014.2784%2010.2565%2014.2784C9.23089%2013.6549%208.61551%2012.5118%208.61551%2011.2648C8.61551%2010.5374%208.82063%209.91391%209.12833%209.39433C10.8719%2011.5766%2013.5386%2013.0314%2016.5129%2013.1353C16.4104%2012.8236%2016.4104%2012.6158%2016.4104%2012.304V12.304C16.4104%2010.3296%2018.0514%208.66691%2020.0001%208.66691C21.0258%208.66691%2021.9488%209.08258%2022.5642%209.81C23.3847%209.70608%2024.1027%209.39433%2024.8206%208.97866C24.6155%209.81%2024.0001%2010.5374%2023.2822%2010.9531Z'%20fill='white'/%3e%3c/svg%3e",rp="data:image/svg+xml,%3csvg%20width='100%25'%20height='100%25'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%2014V6.83L8.41%209.41%207%208l5-5%205%205-1.41%201.41L13%206.83V14h-2zM5%2021c-.55%200-1.02-.196-1.412-.587A1.926%201.926%200%20013%2019v-3h2v3h14v-3h2v3c0%20.55-.196%201.02-.588%201.413A1.926%201.926%200%200119%2021H5z'%20fill='%23000'/%3e%3c/svg%3e",np="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20Right'%3e%3cpath%20id='Vector'%20d='M9.705%206L8.295%207.41L12.875%2012L8.295%2016.59L9.705%2018L15.705%2012L9.705%206Z'%20fill='var(--fill-0,%20%23691FA9)'/%3e%3c/g%3e%3c/svg%3e",ap="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%201.3335C7.89987%201.3335%201.33337%207.89999%201.33337%2016.0002C1.33337%2024.1003%207.89987%2030.6668%2016%2030.6668C24.1002%2030.6668%2030.6667%2024.1003%2030.6667%2016.0002C30.6667%207.89999%2024.1002%201.3335%2016%201.3335ZM23.0696%208.93076C19.162%205.02309%2012.8376%205.02372%208.93064%208.93076C5.02301%2012.8384%205.02356%2019.1627%208.93064%2023.0697C12.8382%2026.9774%2019.1626%2026.9768%2023.0696%2023.0697C26.9773%2019.1621%2026.9767%2012.8378%2023.0696%208.93076ZM10.842%2020.5386C10.3153%2020.8572%209.81563%2021.2269%209.34851%2021.6446C8.1448%2020.2307%207.43241%2018.4914%207.29951%2016.6374H10.2389C10.2876%2018.0129%2010.4939%2019.3361%2010.842%2020.5386ZM21.7614%2016.6374H24.7008C24.5678%2018.4914%2023.8555%2020.2307%2022.6518%2021.6446C22.1846%2021.2269%2021.685%2020.8572%2021.1583%2020.5386C21.5064%2019.3361%2021.7126%2018.0129%2021.7614%2016.6374ZM21.1583%2011.4619C21.6849%2011.1433%2022.1846%2010.7736%2022.6517%2010.3559C23.8555%2011.7699%2024.5678%2013.5091%2024.7008%2015.3631H21.7614C21.7126%2013.9876%2021.5064%2012.6644%2021.1583%2011.4619ZM19.607%2010.8411C18.6782%2011.2633%2017.6763%2011.5192%2016.6372%2011.5936V7.36829C18.071%207.78174%2019.0668%209.45011%2019.607%2010.8411ZM16.6372%2015.3632V12.8702C17.8128%2012.7969%2018.9479%2012.5214%2020.0035%2012.0599C20.2776%2013.0823%2020.4425%2014.1996%2020.4866%2015.3632H16.6372ZM16.6372%2019.1304V16.6374H20.4866C20.4425%2017.801%2020.2776%2018.9183%2020.0035%2019.9406C18.9479%2019.4792%2017.8128%2019.2036%2016.6372%2019.1304ZM16.6372%2024.6322V20.407C17.6763%2020.4813%2018.6782%2020.7372%2019.607%2021.1594C19.0667%2022.5506%2018.0709%2024.2188%2016.6372%2024.6322ZM12.3933%2021.1594C13.3221%2020.7372%2014.3239%2020.4813%2015.363%2020.407V24.6322C13.9293%2024.2188%2012.9335%2022.5505%2012.3933%2021.1594ZM15.363%2016.6374V19.1304C14.1875%2019.2036%2013.0523%2019.4792%2011.9968%2019.9406C11.7226%2018.9183%2011.5577%2017.801%2011.5136%2016.6374H15.363ZM15.363%2012.8702V15.3632H11.5136C11.5577%2014.1996%2011.7226%2013.0823%2011.9968%2012.0599C13.0523%2012.5214%2014.1875%2012.7969%2015.363%2012.8702ZM15.363%207.36833V11.5936C14.3239%2011.5192%2013.3221%2011.2633%2012.3933%2010.8412C12.9334%209.45014%2013.9293%207.78178%2015.363%207.36833ZM10.2428%209.44663C10.9249%208.84579%2011.6857%208.36154%2012.5013%208.00441C11.9912%208.67363%2011.5854%209.43801%2011.2678%2010.2246C10.91%209.99244%2010.5675%209.73288%2010.2428%209.44663ZM21.7575%209.44663C21.4328%209.73288%2021.0902%209.99244%2020.7325%2010.2246C20.4148%209.43808%2020.009%208.67371%2019.499%208.00441C20.3145%208.36154%2021.0754%208.84579%2021.7575%209.44663ZM19.4989%2023.9961C20.009%2023.3269%2020.4148%2022.5625%2020.7325%2021.776C21.0902%2022.0081%2021.4328%2022.2677%2021.7574%2022.5539C21.0754%2023.1547%2020.3145%2023.639%2019.4989%2023.9961ZM10.2428%2022.5539C10.5675%2022.2677%2010.91%2022.0081%2011.2678%2021.776C11.5854%2022.5625%2011.9913%2023.327%2012.5013%2023.9961C11.6857%2023.639%2010.9249%2023.1547%2010.2428%2022.5539ZM10.8419%2011.4619C10.4938%2012.6644%2010.2876%2013.9877%2010.2388%2015.3632H7.29947C7.43241%2013.5091%208.14476%2011.7699%209.34847%2010.356C9.81563%2010.7737%2010.3153%2011.1433%2010.8419%2011.4619Z'%20fill='white'/%3e%3c/svg%3e",op=Object.assign({"../../assets/icons/arrow-left.svg":rm,"../../assets/icons/bell.svg":nm,"../../assets/icons/carousel-arrow.svg":am,"../../assets/icons/cart-solid.svg":om,"../../assets/icons/cart.svg":sm,"../../assets/icons/cat-accessories.svg":im,"../../assets/icons/cat-feet.svg":cm,"../../assets/icons/cat-handwear.svg":lm,"../../assets/icons/cat-head.svg":um,"../../assets/icons/cat-lower.svg":dm,"../../assets/icons/cat-skins.svg":fm,"../../assets/icons/cat-upper.svg":hm,"../../assets/icons/category-eyewear.svg":mm,"../../assets/icons/check.svg":pm,"../../assets/icons/chevron-down.svg":gm,"../../assets/icons/clock.svg":ym,"../../assets/icons/close.svg":vm,"../../assets/icons/copy.svg":bm,"../../assets/icons/credits.svg":wm,"../../assets/icons/discord.svg":_m,"../../assets/icons/emote-dance.svg":Cm,"../../assets/icons/emote-fun.svg":Em,"../../assets/icons/emote-greetings.svg":xm,"../../assets/icons/emote-horror.svg":Sm,"../../assets/icons/emote-misc.svg":Tm,"../../assets/icons/emote-poses.svg":Am,"../../assets/icons/emote-reactions.svg":km,"../../assets/icons/emote-stunt.svg":Im,"../../assets/icons/ethereum.svg":Rm,"../../assets/icons/external-link.svg":Nm,"../../assets/icons/eye.svg":Pm,"../../assets/icons/facebook.svg":Om,"../../assets/icons/filter.svg":jm,"../../assets/icons/fitting-room.svg":Lm,"../../assets/icons/gender-female.svg":Mm,"../../assets/icons/gender-male.svg":Bm,"../../assets/icons/gender-unisex.svg":Fm,"../../assets/icons/heart-solid.svg":$m,"../../assets/icons/heart.svg":Dm,"../../assets/icons/info.svg":qm,"../../assets/icons/mana-logo.svg":Um,"../../assets/icons/offer.svg":Hm,"../../assets/icons/pen.svg":Vm,"../../assets/icons/plus.svg":zm,"../../assets/icons/search.svg":Gm,"../../assets/icons/slot-feet.svg":Wm,"../../assets/icons/slot-hands.svg":Zm,"../../assets/icons/slot-head.svg":Km,"../../assets/icons/slot-item.svg":Ym,"../../assets/icons/slot-lower.svg":Qm,"../../assets/icons/slot-upper.svg":Jm,"../../assets/icons/smart.svg":Xm,"../../assets/icons/trash.svg":ep,"../../assets/icons/twitter.svg":tp,"../../assets/icons/upload.svg":rp,"../../assets/icons/view-all-arrow.svg":np,"../../assets/icons/website.svg":ap}),rf={};for(const[e,t]of Object.entries(op))rf[e.slice(e.lastIndexOf("/")+1,-4)]=t;function ct({name:e,size:t,className:r,style:n,...a}){const o=rf[e],s={"--icon-url":o?`url("${o}")`:void 0,...t!=null?{width:t,height:t}:null,...n},d=a["aria-label"]==null&&a.role==null;return u.jsx("span",{"aria-hidden":d||void 0,...a,className:r?`ico ${r}`:"ico",style:s})}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ye.apply(null,arguments)}function sp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ip(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var cp=(function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ip(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=sp(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",xs="-moz-",We="-webkit-",nf="comm",yl="rule",vl="decl",lp="@import",af="@keyframes",up="@layer",dp=Math.abs,Rs=String.fromCharCode,fp=Object.assign;function hp(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function of(e){return e.trim()}function mp(e,t){return(e=t.exec(e))?e[0]:e}function Ze(e,t,r){return e.replace(t,r)}function Kc(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Va(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function bl(e){return e.length}function ns(e,t){return t.push(e),e}function pp(e,t){return e.map(t).join("")}var Ns=1,ga=1,sf=0,Jt=0,vt=0,wa="";function Ps(e,t,r,n,a,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Ns,column:ga,length:s,return:""}}function Aa(e,t){return fp(Ps("",null,null,"",null,null,0),e,{length:-e.length},t)}function gp(){return vt}function yp(){return vt=Jt>0?Rt(wa,--Jt):0,ga--,vt===10&&(ga=1,Ns--),vt}function ar(){return vt=Jt<sf?Rt(wa,Jt++):0,ga++,vt===10&&(ga=1,Ns++),vt}function Rr(){return Rt(wa,Jt)}function vs(){return Jt}function no(e,t){return Va(wa,e,t)}function za(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cf(e){return Ns=ga=1,sf=kr(wa=e),Jt=0,[]}function lf(e){return wa="",e}function bs(e){return of(no(Jt-1,Yc(e===91?e+2:e===40?e+1:e)))}function vp(e){for(;(vt=Rr())&&vt<33;)ar();return za(e)>2||za(vt)>3?"":" "}function bp(e,t){for(;--t&&ar()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return no(e,vs()+(t<6&&Rr()==32&&ar()==32))}function Yc(e){for(;ar();)switch(vt){case e:return Jt;case 34:case 39:e!==34&&e!==39&&Yc(vt);break;case 40:e===41&&Yc(e);break;case 92:ar();break}return Jt}function wp(e,t){for(;ar()&&e+vt!==57;)if(e+vt===84&&Rr()===47)break;return"/*"+no(t,Jt-1)+"*"+Rs(e===47?e:ar())}function _p(e){for(;!za(Rr());)ar();return no(e,Jt)}function Cp(e){return lf(ws("",null,null,null,[""],e=cf(e),0,[0],e))}function ws(e,t,r,n,a,o,s,d,f){for(var h=0,m=0,p=s,b=0,_=0,T=0,y=1,I=1,W=1,g=0,A="",w=a,K=o,U=n,x=A;I;)switch(T=g,g=ar()){case 40:if(T!=108&&Rt(x,p-1)==58){Kc(x+=Ze(bs(g),"&","&\f"),"&\f")!=-1&&(W=-1);break}case 34:case 39:case 91:x+=bs(g);break;case 9:case 10:case 13:case 32:x+=vp(T);break;case 92:x+=bp(vs()-1,7);continue;case 47:switch(Rr()){case 42:case 47:ns(Ep(wp(ar(),vs()),t,r),f);break;default:x+="/"}break;case 123*y:d[h++]=kr(x)*W;case 125*y:case 59:case 0:switch(g){case 0:case 125:I=0;case 59+m:W==-1&&(x=Ze(x,/\f/g,"")),_>0&&kr(x)-p&&ns(_>32?Tu(x+";",n,r,p-1):Tu(Ze(x," ","")+";",n,r,p-2),f);break;case 59:x+=";";default:if(ns(U=Su(x,t,r,h,m,a,d,A,w=[],K=[],p),o),g===123)if(m===0)ws(x,t,U,U,w,o,p,d,K);else switch(b===99&&Rt(x,3)===110?100:b){case 100:case 108:case 109:case 115:ws(e,U,U,n&&ns(Su(e,U,U,0,0,a,d,A,a,w=[],p),K),a,K,p,d,n?w:K);break;default:ws(x,U,U,U,[""],K,0,d,K)}}h=m=_=0,y=W=1,A=x="",p=s;break;case 58:p=1+kr(x),_=T;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&yp()==125)continue}switch(x+=Rs(g),g*y){case 38:W=m>0?1:(x+="\f",-1);break;case 44:d[h++]=(kr(x)-1)*W,W=1;break;case 64:Rr()===45&&(x+=bs(ar())),b=Rr(),m=p=kr(A=x+=_p(vs())),g++;break;case 45:T===45&&kr(x)==2&&(y=0)}}return o}function Su(e,t,r,n,a,o,s,d,f,h,m){for(var p=a-1,b=a===0?o:[""],_=bl(b),T=0,y=0,I=0;T<n;++T)for(var W=0,g=Va(e,p+1,p=dp(y=s[T])),A=e;W<_;++W)(A=of(y>0?b[W]+" "+g:Ze(g,/&\f/g,b[W])))&&(f[I++]=A);return Ps(e,t,r,a===0?yl:d,f,h,m)}function Ep(e,t,r){return Ps(e,t,r,nf,Rs(gp()),Va(e,2,-2),0)}function Tu(e,t,r,n){return Ps(e,t,r,vl,Va(e,0,n),Va(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=bl(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function xp(e,t,r,n){switch(e.type){case up:if(e.children.length)break;case lp:case vl:return e.return=e.return||e.value;case nf:return"";case af:return e.return=e.value+"{"+Xn(e.children,n)+"}";case yl:e.value=e.props.join(",")}return kr(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Sp(e){var t=bl(e);return function(r,n,a,o){for(var s="",d=0;d<t;d++)s+=e[d](r,n,a,o)||"";return s}}function Tp(e){return function(t){t.root||(t=t.return)&&e(t)}}function uf(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ap=function(t,r,n){for(var a=0,o=0;a=o,o=Rr(),a===38&&o===12&&(r[n]=1),!za(o);)ar();return no(t,Jt)},kp=function(t,r){var n=-1,a=44;do switch(za(a)){case 0:a===38&&Rr()===12&&(r[n]=1),t[n]+=Ap(Jt-1,r,n);break;case 2:t[n]+=bs(a);break;case 4:if(a===44){t[++n]=Rr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rs(a)}while(a=ar());return t},Ip=function(t,r){return lf(kp(cf(t),r))},Au=new WeakMap,Rp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Au.get(n))&&!a){Au.set(t,!0);for(var o=[],s=Ip(r,o),d=n.props,f=0,h=0;f<s.length;f++)for(var m=0;m<d.length;m++,h++)t.props[h]=o[f]?s[f].replace(/&\f/g,d[m]):d[m]+" "+s[f]}}},Np=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function df(e,t){switch(hp(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+xs+e+Mt+e+e;case 6828:case 4268:return We+e+Mt+e+e;case 6165:return We+e+Mt+"flex-"+e+e;case 5187:return We+e+Ze(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return We+e+Mt+"flex-item-"+Ze(e,/flex-|-self/,"")+e;case 4675:return We+e+Mt+"flex-line-pack"+Ze(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Mt+Ze(e,"shrink","negative")+e;case 5292:return We+e+Mt+Ze(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ze(e,"-grow","")+We+e+Mt+Ze(e,"grow","positive")+e;case 4554:return We+Ze(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ze(Ze(Ze(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ze(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ze(Ze(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ze(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kr(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+xs+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kc(e,"stretch")?df(Ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,kr(e)-3-(~Kc(e,"!important")&&10))){case 107:return Ze(e,":",":"+We)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Rt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return We+e+Mt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Mt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Mt+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Mt+e+e}return e}var Pp=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case vl:t.return=df(t.value,t.length);break;case af:return Xn([Aa(t,{value:Ze(t.value,"@","@"+We)})],a);case yl:if(t.length)return pp(t.props,function(o){switch(mp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([Aa(t,{props:[Ze(o,/:(read-\w+)/,":"+xs+"$1")]})],a);case"::placeholder":return Xn([Aa(t,{props:[Ze(o,/:(plac\w+)/,":"+We+"input-$1")]}),Aa(t,{props:[Ze(o,/:(plac\w+)/,":"+xs+"$1")]}),Aa(t,{props:[Ze(o,/:(plac\w+)/,Mt+"input-$1")]})],a)}return""})}},Op=[Pp],ff=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var I=y.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Op,o={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var I=y.getAttribute("data-emotion").split(" "),W=1;W<I.length;W++)o[I[W]]=!0;d.push(y)});var f,h=[Rp,Np];{var m,p=[xp,Tp(function(y){m.insert(y)})],b=Sp(h.concat(a,p)),_=function(I){return Xn(Cp(I),b)};f=function(I,W,g,A){m=g,_(I?I+"{"+W.styles+"}":W.styles),A&&(T.inserted[W.name]=!0)}}var T={key:r,sheet:new cp({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:f};return T.sheet.hydrate(d),T},jp=!0;function hf(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var wl=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||jp===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},_l=function(t,r,n){wl(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Lp(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Mp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bp=/[A-Z]|^ms/g,Fp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mf=function(t){return t.charCodeAt(1)===45},ku=function(t){return t!=null&&typeof t!="boolean"},di=uf(function(e){return mf(e)?e:e.replace(Bp,"-$&").toLowerCase()}),Iu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Fp,function(n,a,o){return Ir={name:a,styles:o,next:Ir},a})}return Mp[t]!==1&&!mf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ga(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ir={name:a.name,styles:a.styles,next:Ir},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ir={name:s.name,styles:s.styles,next:Ir},s=s.next;var d=o.styles+";";return d}return $p(e,t,r)}case"function":{if(e!==void 0){var f=Ir,h=r(e);return Ir=f,Ga(e,t,h)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function $p(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ga(e,t,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object"){var d=s;t!=null&&t[d]!==void 0?n+=o+"{"+t[d]+"}":ku(d)&&(n+=di(o)+":"+Iu(o,d)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var f=0;f<s.length;f++)ku(s[f])&&(n+=di(o)+":"+Iu(o,s[f])+";");else{var h=Ga(e,t,s);switch(o){case"animation":case"animationName":{n+=di(o)+":"+h+";";break}default:n+=o+"{"+h+"}"}}}return n}var Ru=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function ao(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Ir=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=Ga(r,t,o);else{var s=o;a+=s[0]}for(var d=1;d<e.length;d++)if(a+=Ga(r,t,e[d]),n){var f=o;a+=f[d]}Ru.lastIndex=0;for(var h="",m;(m=Ru.exec(a))!==null;)h+="-"+m[1];var p=Lp(a)+h;return{name:p,styles:a,next:Ir}}var Dp=function(t){return t()},pf=Pc.useInsertionEffect?Pc.useInsertionEffect:!1,gf=pf||Dp,Nu=pf||ne.useLayoutEffect,yf=ne.createContext(typeof HTMLElement<"u"?ff({key:"css"}):null),qp=yf.Provider,Cl=function(t){return ne.forwardRef(function(r,n){var a=ne.useContext(yf);return t(r,a,n)})},Os=ne.createContext({}),El={}.hasOwnProperty,Qc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Up=function(t,r){var n={};for(var a in r)El.call(r,a)&&(n[a]=r[a]);return n[Qc]=t,n},Hp=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return wl(r,n,a),gf(function(){return _l(r,n,a)}),null},Vp=Cl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Qc],o=[n],s="";typeof e.className=="string"?s=hf(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var d=ao(o,void 0,ne.useContext(Os));s+=t.key+"-"+d.name;var f={};for(var h in e)El.call(e,h)&&h!=="css"&&h!==Qc&&(f[h]=e[h]);return f.className=s,r&&(f.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(Hp,{cache:t,serialized:d,isStringTag:typeof a=="string"}),ne.createElement(a,f))}),zp=Vp,Pu=function(t,r){var n=arguments;if(r==null||!El.call(r,"css"))return ne.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=zp,o[1]=Up(t,r);for(var s=2;s<a;s++)o[s]=n[s];return ne.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Pu||(Pu={}));var Gp=Cl(function(e,t){var r=e.styles,n=ao([r],void 0,ne.useContext(Os)),a=ne.useRef();return Nu(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,f=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),f!==null&&(d=!0,f.setAttribute("data-emotion",o),s.hydrate([f])),a.current=[s,d],function(){s.flush()}},[t]),Nu(function(){var o=a.current,s=o[0],d=o[1];if(d){o[1]=!1;return}if(n.next!==void 0&&_l(t,n.next,!0),s.tags.length){var f=s.tags[s.tags.length-1].nextElementSibling;s.before=f,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function xl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ao(t)}function vf(){var e=xl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Wp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zp=uf(function(e){return Wp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Kp=Zp,Yp=function(t){return t!=="theme"},Ou=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Kp:Yp},ju=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Qp=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return wl(r,n,a),gf(function(){return _l(r,n,a)}),null},Jp=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var d=ju(t,r,n),f=d||Ou(a),h=!f("as");return function(){var m=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var b=m[0];p.push(b[0]);for(var _=m.length,T=1;T<_;T++)p.push(m[T],b[T])}var y=Cl(function(I,W,g){var A=h&&I.as||a,w="",K=[],U=I;if(I.theme==null){U={};for(var x in I)U[x]=I[x];U.theme=ne.useContext(Os)}typeof I.className=="string"?w=hf(W.registered,K,I.className):I.className!=null&&(w=I.className+" ");var q=ao(p.concat(K),W.registered,U);w+=W.key+"-"+q.name,s!==void 0&&(w+=" "+s);var Q=h&&d===void 0?Ou(A):f,ee={};for(var ae in I)h&&ae==="as"||Q(ae)&&(ee[ae]=I[ae]);return ee.className=w,g&&(ee.ref=g),ne.createElement(ne.Fragment,null,ne.createElement(Qp,{cache:W,serialized:q,isStringTag:typeof A=="string"}),ne.createElement(A,ee))});return y.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=p,y.__emotion_forwardProp=d,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(I,W){var g=e(I,Ye({},r,W,{shouldForwardProp:ju(y,W,!0)}));return g.apply(void 0,p)},y}},Xp=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],wt=Jp.bind(null);Xp.forEach(function(e){wt[e]=wt(e)});const eg={text:"#161518",text2:"#242129",muted:"#716b7c",muted2:"#a09ba8",gray0:"#43404a",gray4:"#cfcdd4",line:"#e6e4ea",lineStrong:"#a09ba8",media:"#ecebed",panel:"#f5f5f5",chip:"#ecebed",accent:"#691fa9",accentHover:"#7a2bbf",accentActive:"#57178c",navViolet:"#e3c9fb",navOverlayHover:"rgba(255, 255, 255, 0.35)",navOverlayActive:"rgba(255, 255, 255, 0.45)",magenta:"#c640cd",brandViolet:"#a524b3",rarity:"#a14bf3",rarityBg:"rgba(161, 75, 243, 0.3)",blackBtn:"#242129",softWhite:"#fcfcfc",dclRed:"#ff2d55",ok:"#1ea672",okStrong:"#1f8a4c",errStrong:"#d64545",white:"#ffffff"},tg={common:"#73d3d3",uncommon:"#ff8362",rare:"#34ce76",epic:"#289cff",legendary:"#a24bf3",exotic:"#bdfd4e",mythic:"#ff4bed",unique:"#fea217"},rg={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)",cerise:"linear-gradient(135deg, #ff2d55 0%, #c640cd 100%)"},ng={card:"12px",btn:"8px",pill:"50px",banner:"24px"},ag={sans:'"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},Jc={mobile:768,sm:720,md:820,lg:900},og={down:e=>`@media (max-width: ${Jc[e]}px)`,up:e=>`@media (min-width: ${Jc[e]+1}px)`},Le={colors:eg,rarities:tg,gradients:rg,radius:ng,font:ag,media:og},sg=wt.div`
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
height: 92px;
|
|
8
|
+
background: ${Le.colors.navViolet};
|
|
9
|
+
z-index: 50;
|
|
10
|
+
|
|
11
|
+
${Le.media.down("mobile")} {
|
|
12
|
+
height: 64px;
|
|
13
|
+
}
|
|
14
|
+
`,ig=wt.div`
|
|
15
|
+
display: contents;
|
|
16
|
+
|
|
17
|
+
/* Bar background: flat light violet — drop ui2's dark translucent fill, blur and shadow. */
|
|
18
|
+
& nav::before {
|
|
19
|
+
background: ${Le.colors.navViolet};
|
|
20
|
+
backdrop-filter: none;
|
|
21
|
+
-webkit-backdrop-filter: none;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Desktop nav tabs (Explore / Shop / Create / Learn): dark text on the light bar. Direct-child
|
|
26
|
+
selectors deliberately exclude the dark dropdown panels that open on hover. */
|
|
27
|
+
& nav > div:first-of-type > div > a,
|
|
28
|
+
& nav > div:first-of-type > div > div > button {
|
|
29
|
+
color: ${Le.colors.text2};
|
|
30
|
+
}
|
|
31
|
+
& nav > div:first-of-type > div > a:hover,
|
|
32
|
+
& nav > div:first-of-type > div > div > button:hover {
|
|
33
|
+
color: ${Le.colors.text2};
|
|
34
|
+
background-color: ${Le.colors.navOverlayHover};
|
|
35
|
+
}
|
|
36
|
+
& nav > div:first-of-type > div > a.active,
|
|
37
|
+
& nav > div:first-of-type > div > div > button.active {
|
|
38
|
+
color: ${Le.colors.text2};
|
|
39
|
+
background-color: ${Le.colors.navOverlayActive};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Sign-in button (signed-out state): dark outline + text instead of ui2's near-white, which would
|
|
43
|
+
be invisible on the violet bar. The hamburger is excluded via :not([aria-label]). */
|
|
44
|
+
& nav > div:last-of-type > button:not([aria-label]) {
|
|
45
|
+
color: ${Le.colors.text2};
|
|
46
|
+
border-color: ${Le.colors.text2};
|
|
47
|
+
}
|
|
48
|
+
& nav > div:last-of-type > button:not([aria-label]):hover {
|
|
49
|
+
background-color: ${Le.colors.navOverlayHover};
|
|
50
|
+
border-color: ${Le.colors.text2};
|
|
51
|
+
}
|
|
52
|
+
& nav > div:last-of-type > button:not([aria-label]):active {
|
|
53
|
+
background-color: ${Le.colors.navOverlayActive};
|
|
54
|
+
border-color: ${Le.colors.text2};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Mobile hamburger / menu button: solid purple with a white icon (Figma node 1368-356253) — ui2's
|
|
58
|
+
default is a faint white-on-dark chip. The icon uses currentColor, so the color prop drives it. */
|
|
59
|
+
& nav button[aria-label='Open menu'],
|
|
60
|
+
& nav button[aria-label='Close menu'] {
|
|
61
|
+
background-color: ${Le.colors.accent};
|
|
62
|
+
color: ${Le.colors.white};
|
|
63
|
+
}
|
|
64
|
+
& nav button[aria-label='Open menu']:hover,
|
|
65
|
+
& nav button[aria-label='Close menu']:hover {
|
|
66
|
+
background-color: ${Le.colors.accentHover};
|
|
67
|
+
}
|
|
68
|
+
& nav button[aria-label='Open menu']:active,
|
|
69
|
+
& nav button[aria-label='Close menu']:active {
|
|
70
|
+
background-color: ${Le.colors.accentActive};
|
|
71
|
+
}
|
|
72
|
+
`,cg=ne.lazy(()=>_t(()=>import("./index-D9_mfIWw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function lg(e){return u.jsx(ne.Suspense,{fallback:u.jsx(sg,{"aria-hidden":!0}),children:u.jsx(ig,{children:u.jsx(cg,{...e})})})}const ug={},Lu=e=>{let t;const r=new Set,n=(m,p)=>{const b=typeof m=="function"?m(t):m;if(!Object.is(b,t)){const _=t;t=p??(typeof b!="object"||b===null)?b:Object.assign({},t,b),r.forEach(T=>T(t,_))}},a=()=>t,f={setState:n,getState:a,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(ug?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=t=e(n,a,f);return f},dg=e=>e?Lu(e):Lu;var fi={exports:{}},hi={},mi={exports:{}},pi={};/**
|
|
73
|
+
* @license React
|
|
74
|
+
* use-sync-external-store-shim.production.js
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/var Mu;function fg(){if(Mu)return pi;Mu=1;var e=$2();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function d(p,b){var _=b(),T=n({inst:{value:_,getSnapshot:b}}),y=T[0].inst,I=T[1];return o(function(){y.value=_,y.getSnapshot=b,f(y)&&I({inst:y})},[p,_,b]),a(function(){return f(y)&&I({inst:y}),p(function(){f(y)&&I({inst:y})})},[p]),s(_),_}function f(p){var b=p.getSnapshot;p=p.value;try{var _=b();return!r(p,_)}catch{return!0}}function h(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return pi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,pi}var Bu;function hg(){return Bu||(Bu=1,mi.exports=fg()),mi.exports}/**
|
|
81
|
+
* @license React
|
|
82
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/var Fu;function mg(){if(Fu)return hi;Fu=1;var e=$2(),t=hg();function r(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var n=typeof Object.is=="function"?Object.is:r,a=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,d=e.useMemo,f=e.useDebugValue;return hi.useSyncExternalStoreWithSelector=function(h,m,p,b,_){var T=o(null);if(T.current===null){var y={hasValue:!1,value:null};T.current=y}else y=T.current;T=d(function(){function W(U){if(!g){if(g=!0,A=U,U=b(U),_!==void 0&&y.hasValue){var x=y.value;if(_(x,U))return w=x}return w=U}if(x=w,n(A,U))return x;var q=b(U);return _!==void 0&&_(x,q)?(A=U,x):(A=U,w=q)}var g=!1,A,w,K=p===void 0?null:p;return[function(){return W(m())},K===null?void 0:function(){return W(K())}]},[m,p,b,_]);var I=a(h,T[0],T[1]);return s(function(){y.hasValue=!0,y.value=I},[I]),f(I),I},hi}var $u;function pg(){return $u||($u=1,fi.exports=mg()),fi.exports}var gg=pg();const yg=ks(gg),bf={},{useDebugValue:vg}=D2,{useSyncExternalStoreWithSelector:bg}=yg;let Du=!1;const wg=e=>e;function _g(e,t=wg,r){(bf?"production":void 0)!=="production"&&r&&!Du&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Du=!0);const n=bg(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return vg(n),n}const qu=e=>{(bf?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dg(e):e,r=(n,a)=>_g(t,n,a);return Object.assign(r,t),r},Bn=e=>e?qu(e):qu;var bn={},fr={},Ma={exports:{}},Cg=Ma.exports,Uu;function js(){return Uu||(Uu=1,(function(e,t){(function(r,n){n(t)})(Cg,(function(r){function n(i){if(i.jsonrpc="2.0",!i.id||typeof i.id!="number"||Math.floor(i.id)!==i.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(i)}`);if(!i.method||typeof i.method!="string"||i.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(i)}`);if(!i.params||typeof i.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(i)}`);return i}var a={};function o(){let i,l;const v=new Promise(((k,M)=>{i=V=>{k(V),v.isPending=!1},l=V=>{M(V),v.isPending=!1}})).catch((k=>Promise.reject(k)));return v.resolve=i,v.reject=l,"finally"in v||(v.finally=k=>{v.then(k),v.catch(k)}),v.isPending=!0,v}Object.defineProperty(a,"__esModule",{value:!0});var s=a.future=o;a.default=o;var d={exports:{}};/**
|
|
89
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
90
|
+
*
|
|
91
|
+
* @version 0.8.0
|
|
92
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
93
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
94
|
+
* @license MIT
|
|
95
|
+
*/(function(i){(function(){var l="input is invalid type",v=typeof window=="object",k=v?window:{};k.JS_SHA3_NO_WINDOW&&(v=!1);var M=!v&&typeof self=="object";!k.JS_SHA3_NO_NODE_JS&&typeof ys=="object"&&ys.versions&&ys.versions.node?k=Oc:M&&(k=self);var V=!k.JS_SHA3_NO_COMMON_JS&&i.exports,se=!k.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",me="0123456789abcdef".split(""),ke=[4,1024,262144,67108864],Ne=[0,8,16,24],Ft=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],lt=[224,256,384,512],ge=[128,256],Tt=["hex","buffer","arrayBuffer","array","digest"],Xe={128:168,256:136};!k.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(c){return Object.prototype.toString.call(c)==="[object Array]"}),!se||!k.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(c){return typeof c=="object"&&c.buffer&&c.buffer.constructor===ArrayBuffer});for(var et=function(c,C,O){return function(S){return new Ve(c,C,c).update(S)[O]()}},Ot=function(c,C,O){return function(S,B){return new Ve(c,C,B).update(S)[O]()}},Lr=function(c,C,O){return function(S,B,$,D){return At["cshake"+c].update(S,B,$,D)[O]()}},vr=function(c,C,O){return function(S,B,$,D){return At["kmac"+c].update(S,B,$,D)[O]()}},jt=function(c,C,O,S){for(var B=0;B<Tt.length;++B){var $=Tt[B];c[$]=C(O,S,$)}return c},br=function(c,C){var O=et(c,C,"hex");return O.create=function(){return new Ve(c,C,c)},O.update=function(S){return O.create().update(S)},jt(O,et,c,C)},Qr=[{name:"keccak",padding:[1,256,65536,16777216],bits:lt,createMethod:br},{name:"sha3",padding:[6,1536,393216,100663296],bits:lt,createMethod:br},{name:"shake",padding:[31,7936,2031616,520093696],bits:ge,createMethod:function(c,C){var O=Ot(c,C,"hex");return O.create=function(S){return new Ve(c,C,S)},O.update=function(S,B){return O.create(B).update(S)},jt(O,Ot,c,C)}},{name:"cshake",padding:ke,bits:ge,createMethod:function(c,C){var O=Xe[c],S=Lr(c,0,"hex");return S.create=function(B,$,D){return $||D?new Ve(c,C,B).bytepad([$,D],O):At["shake"+c].create(B)},S.update=function(B,$,D,X){return S.create($,D,X).update(B)},jt(S,Lr,c,C)}},{name:"kmac",padding:ke,bits:ge,createMethod:function(c,C){var O=Xe[c],S=vr(c,0,"hex");return S.create=function(B,$,D){return new er(c,C,$).bytepad(["KMAC",D],O).bytepad([B],O)},S.update=function(B,$,D,X){return S.create(B,D,X).update($)},jt(S,vr,c,C)}}],At={},Mr=[],Lt=0;Lt<Qr.length;++Lt)for(var wr=Qr[Lt],ue=wr.bits,Br=0;Br<ue.length;++Br){var zn=wr.name+"_"+ue[Br];if(Mr.push(zn),At[zn]=wr.createMethod(ue[Br],wr.padding),wr.name!=="sha3"){var Gn=wr.name+ue[Br];Mr.push(Gn),At[Gn]=At[zn]}}function Ve(c,C,O){this.blocks=[],this.s=[],this.padding=C,this.outputBits=O,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(c<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=O>>5,this.extraBytes=(31&O)>>3;for(var S=0;S<50;++S)this.s[S]=0}function er(c,C,O){Ve.call(this,c,C,O)}Ve.prototype.update=function(c){if(this.finalized)throw new Error("finalize already called");var C,O=typeof c;if(O!=="string"){if(O!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}for(var S,B,$=this.blocks,D=this.byteCount,X=c.length,re=this.blockCount,te=0,pe=this.s;te<X;){if(this.reset)for(this.reset=!1,$[0]=this.block,S=1;S<re+1;++S)$[S]=0;if(C)for(S=this.start;te<X&&S<D;++te)$[S>>2]|=c[te]<<Ne[3&S++];else for(S=this.start;te<X&&S<D;++te)(B=c.charCodeAt(te))<128?$[S>>2]|=B<<Ne[3&S++]:B<2048?($[S>>2]|=(192|B>>6)<<Ne[3&S++],$[S>>2]|=(128|63&B)<<Ne[3&S++]):B<55296||B>=57344?($[S>>2]|=(224|B>>12)<<Ne[3&S++],$[S>>2]|=(128|B>>6&63)<<Ne[3&S++],$[S>>2]|=(128|63&B)<<Ne[3&S++]):(B=65536+((1023&B)<<10|1023&c.charCodeAt(++te)),$[S>>2]|=(240|B>>18)<<Ne[3&S++],$[S>>2]|=(128|B>>12&63)<<Ne[3&S++],$[S>>2]|=(128|B>>6&63)<<Ne[3&S++],$[S>>2]|=(128|63&B)<<Ne[3&S++]);if(this.lastByteIndex=S,S>=D){for(this.start=S-D,this.block=$[re],S=0;S<re;++S)pe[S]^=$[S];E(pe),this.reset=!0}else this.start=S}return this},Ve.prototype.encode=function(c,C){var O=255&c,S=1,B=[O];for(O=255&(c>>=8);O>0;)B.unshift(O),O=255&(c>>=8),++S;return C?B.push(S):B.unshift(S),this.update(B),B.length},Ve.prototype.encodeString=function(c){var C,O=typeof c;if(O!=="string"){if(O!=="object")throw new Error(l);if(c===null)throw new Error(l);if(se&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||se&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}var S=0,B=c.length;if(C)S=B;else for(var $=0;$<c.length;++$){var D=c.charCodeAt($);D<128?S+=1:D<2048?S+=2:D<55296||D>=57344?S+=3:(D=65536+((1023&D)<<10|1023&c.charCodeAt(++$)),S+=4)}return S+=this.encode(8*S),this.update(c),S},Ve.prototype.bytepad=function(c,C){for(var O=this.encode(C),S=0;S<c.length;++S)O+=this.encodeString(c[S]);var B=C-O%C,$=[];return $.length=B,this.update($),this},Ve.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,C=this.lastByteIndex,O=this.blockCount,S=this.s;if(c[C>>2]|=this.padding[3&C],this.lastByteIndex===this.byteCount)for(c[0]=c[O],C=1;C<O+1;++C)c[C]=0;for(c[O-1]|=2147483648,C=0;C<O;++C)S[C]^=c[C];E(S)}},Ve.prototype.toString=Ve.prototype.hex=function(){this.finalize();for(var c,C=this.blockCount,O=this.s,S=this.outputBlocks,B=this.extraBytes,$=0,D=0,X="";D<S;){for($=0;$<C&&D<S;++$,++D)c=O[$],X+=me[c>>4&15]+me[15&c]+me[c>>12&15]+me[c>>8&15]+me[c>>20&15]+me[c>>16&15]+me[c>>28&15]+me[c>>24&15];D%C==0&&(E(O),$=0)}return B&&(c=O[$],X+=me[c>>4&15]+me[15&c],B>1&&(X+=me[c>>12&15]+me[c>>8&15]),B>2&&(X+=me[c>>20&15]+me[c>>16&15])),X},Ve.prototype.arrayBuffer=function(){this.finalize();var c,C=this.blockCount,O=this.s,S=this.outputBlocks,B=this.extraBytes,$=0,D=0,X=this.outputBits>>3;c=B?new ArrayBuffer(S+1<<2):new ArrayBuffer(X);for(var re=new Uint32Array(c);D<S;){for($=0;$<C&&D<S;++$,++D)re[D]=O[$];D%C==0&&E(O)}return B&&(re[$]=O[$],c=c.slice(0,X)),c},Ve.prototype.buffer=Ve.prototype.arrayBuffer,Ve.prototype.digest=Ve.prototype.array=function(){this.finalize();for(var c,C,O=this.blockCount,S=this.s,B=this.outputBlocks,$=this.extraBytes,D=0,X=0,re=[];X<B;){for(D=0;D<O&&X<B;++D,++X)c=X<<2,C=S[D],re[c]=255&C,re[c+1]=C>>8&255,re[c+2]=C>>16&255,re[c+3]=C>>24&255;X%O==0&&E(S)}return $&&(c=X<<2,C=S[D],re[c]=255&C,$>1&&(re[c+1]=C>>8&255),$>2&&(re[c+2]=C>>16&255)),re},er.prototype=new Ve,er.prototype.finalize=function(){return this.encode(this.outputBits,!0),Ve.prototype.finalize.call(this)};var E=function(c){var C,O,S,B,$,D,X,re,te,pe,Ie,je,De,tt,ot,Fe,ze,pt,Fr,Jr,Xr,$t,_r,kt,yt,Je,vo,bo,wo,_o,Co,Eo,xo,So,To,Ao,ko,Io,Ro,No,Po,Oo,jo,Lo,Mo,Bo,Fo,$o,Do,qo,Uo,Ho,Vo,zo,Go,Wo,Zo,Ko,Yo,Qo,Jo,Xo,es;for(S=0;S<48;S+=2)B=c[0]^c[10]^c[20]^c[30]^c[40],$=c[1]^c[11]^c[21]^c[31]^c[41],D=c[2]^c[12]^c[22]^c[32]^c[42],X=c[3]^c[13]^c[23]^c[33]^c[43],re=c[4]^c[14]^c[24]^c[34]^c[44],te=c[5]^c[15]^c[25]^c[35]^c[45],pe=c[6]^c[16]^c[26]^c[36]^c[46],Ie=c[7]^c[17]^c[27]^c[37]^c[47],C=(je=c[8]^c[18]^c[28]^c[38]^c[48])^(D<<1|X>>>31),O=(De=c[9]^c[19]^c[29]^c[39]^c[49])^(X<<1|D>>>31),c[0]^=C,c[1]^=O,c[10]^=C,c[11]^=O,c[20]^=C,c[21]^=O,c[30]^=C,c[31]^=O,c[40]^=C,c[41]^=O,C=B^(re<<1|te>>>31),O=$^(te<<1|re>>>31),c[2]^=C,c[3]^=O,c[12]^=C,c[13]^=O,c[22]^=C,c[23]^=O,c[32]^=C,c[33]^=O,c[42]^=C,c[43]^=O,C=D^(pe<<1|Ie>>>31),O=X^(Ie<<1|pe>>>31),c[4]^=C,c[5]^=O,c[14]^=C,c[15]^=O,c[24]^=C,c[25]^=O,c[34]^=C,c[35]^=O,c[44]^=C,c[45]^=O,C=re^(je<<1|De>>>31),O=te^(De<<1|je>>>31),c[6]^=C,c[7]^=O,c[16]^=C,c[17]^=O,c[26]^=C,c[27]^=O,c[36]^=C,c[37]^=O,c[46]^=C,c[47]^=O,C=pe^(B<<1|$>>>31),O=Ie^($<<1|B>>>31),c[8]^=C,c[9]^=O,c[18]^=C,c[19]^=O,c[28]^=C,c[29]^=O,c[38]^=C,c[39]^=O,c[48]^=C,c[49]^=O,tt=c[0],ot=c[1],Bo=c[11]<<4|c[10]>>>28,Fo=c[10]<<4|c[11]>>>28,bo=c[20]<<3|c[21]>>>29,wo=c[21]<<3|c[20]>>>29,Qo=c[31]<<9|c[30]>>>23,Jo=c[30]<<9|c[31]>>>23,Oo=c[40]<<18|c[41]>>>14,jo=c[41]<<18|c[40]>>>14,So=c[2]<<1|c[3]>>>31,To=c[3]<<1|c[2]>>>31,Fe=c[13]<<12|c[12]>>>20,ze=c[12]<<12|c[13]>>>20,$o=c[22]<<10|c[23]>>>22,Do=c[23]<<10|c[22]>>>22,_o=c[33]<<13|c[32]>>>19,Co=c[32]<<13|c[33]>>>19,Xo=c[42]<<2|c[43]>>>30,es=c[43]<<2|c[42]>>>30,zo=c[5]<<30|c[4]>>>2,Go=c[4]<<30|c[5]>>>2,Ao=c[14]<<6|c[15]>>>26,ko=c[15]<<6|c[14]>>>26,pt=c[25]<<11|c[24]>>>21,Fr=c[24]<<11|c[25]>>>21,qo=c[34]<<15|c[35]>>>17,Uo=c[35]<<15|c[34]>>>17,Eo=c[45]<<29|c[44]>>>3,xo=c[44]<<29|c[45]>>>3,kt=c[6]<<28|c[7]>>>4,yt=c[7]<<28|c[6]>>>4,Wo=c[17]<<23|c[16]>>>9,Zo=c[16]<<23|c[17]>>>9,Io=c[26]<<25|c[27]>>>7,Ro=c[27]<<25|c[26]>>>7,Jr=c[36]<<21|c[37]>>>11,Xr=c[37]<<21|c[36]>>>11,Ho=c[47]<<24|c[46]>>>8,Vo=c[46]<<24|c[47]>>>8,Lo=c[8]<<27|c[9]>>>5,Mo=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,vo=c[19]<<20|c[18]>>>12,Ko=c[29]<<7|c[28]>>>25,Yo=c[28]<<7|c[29]>>>25,No=c[38]<<8|c[39]>>>24,Po=c[39]<<8|c[38]>>>24,$t=c[48]<<14|c[49]>>>18,_r=c[49]<<14|c[48]>>>18,c[0]=tt^~Fe&pt,c[1]=ot^~ze&Fr,c[10]=kt^~Je&bo,c[11]=yt^~vo&wo,c[20]=So^~Ao&Io,c[21]=To^~ko&Ro,c[30]=Lo^~Bo&$o,c[31]=Mo^~Fo&Do,c[40]=zo^~Wo&Ko,c[41]=Go^~Zo&Yo,c[2]=Fe^~pt&Jr,c[3]=ze^~Fr&Xr,c[12]=Je^~bo&_o,c[13]=vo^~wo&Co,c[22]=Ao^~Io&No,c[23]=ko^~Ro&Po,c[32]=Bo^~$o&qo,c[33]=Fo^~Do&Uo,c[42]=Wo^~Ko&Qo,c[43]=Zo^~Yo&Jo,c[4]=pt^~Jr&$t,c[5]=Fr^~Xr&_r,c[14]=bo^~_o&Eo,c[15]=wo^~Co&xo,c[24]=Io^~No&Oo,c[25]=Ro^~Po&jo,c[34]=$o^~qo&Ho,c[35]=Do^~Uo&Vo,c[44]=Ko^~Qo&Xo,c[45]=Yo^~Jo&es,c[6]=Jr^~$t&tt,c[7]=Xr^~_r&ot,c[16]=_o^~Eo&kt,c[17]=Co^~xo&yt,c[26]=No^~Oo&So,c[27]=Po^~jo&To,c[36]=qo^~Ho&Lo,c[37]=Uo^~Vo&Mo,c[46]=Qo^~Xo&zo,c[47]=Jo^~es&Go,c[8]=$t^~tt&Fe,c[9]=_r^~ot&ze,c[18]=Eo^~kt&Je,c[19]=xo^~yt&vo,c[28]=Oo^~So&Ao,c[29]=jo^~To&ko,c[38]=Ho^~Lo&Bo,c[39]=Vo^~Mo&Fo,c[48]=Xo^~zo&Wo,c[49]=es^~Go&Zo,c[0]^=Ft[S],c[1]^=Ft[S+1]};if(V)i.exports=At;else for(Lt=0;Lt<Mr.length;++Lt)k[Mr[Lt]]=At[Mr[Lt]]})()})(d);var f=d.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,m=Math.ceil,p=Math.floor,b="[BigNumber Error] ",_=b+"Number primitive has more than 15 significant digits: ",T=1e14,y=14,I=9007199254740991,W=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,A=1e9;function w(i){var l=0|i;return i>0||i===l?l:l-1}function K(i){for(var l,v,k=1,M=i.length,V=i[0]+"";k<M;){for(l=i[k++]+"",v=y-l.length;v--;l="0"+l);V+=l}for(M=V.length;V.charCodeAt(--M)===48;);return V.slice(0,M+1||1)}function U(i,l){var v,k,M=i.c,V=l.c,se=i.s,me=l.s,ke=i.e,Ne=l.e;if(!se||!me)return null;if(v=M&&!M[0],k=V&&!V[0],v||k)return v?k?0:-me:se;if(se!=me)return se;if(v=se<0,k=ke==Ne,!M||!V)return k?0:!M^v?1:-1;if(!k)return ke>Ne^v?1:-1;for(me=(ke=M.length)<(Ne=V.length)?ke:Ne,se=0;se<me;se++)if(M[se]!=V[se])return M[se]>V[se]^v?1:-1;return ke==Ne?0:ke>Ne^v?1:-1}function x(i,l,v,k){if(i<l||i>v||i!==p(i))throw Error(b+(k||"Argument")+(typeof i=="number"?i<l||i>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(i))}function q(i){var l=i.c.length-1;return w(i.e/y)==l&&i.c[l]%2!=0}function Q(i,l){return(i.length>1?i.charAt(0)+"."+i.slice(1):i)+(l<0?"e":"e+")+l}function ee(i,l,v){var k,M;if(l<0){for(M=v+".";++l;M+=v);i=M+i}else if(++l>(k=i.length)){for(M=v,l-=k;--l;M+=v);i+=M}else l<k&&(i=i.slice(0,l)+"."+i.slice(l));return i}var ae=(function i(l){var v,k,M,V,se,me,ke,Ne,Ft,lt,ge=ue.prototype={constructor:ue,toString:null,valueOf:null},Tt=new ue(1),Xe=20,et=4,Ot=-7,Lr=21,vr=-1e7,jt=1e7,br=!1,Qr=1,At=0,Mr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Lt="0123456789abcdefghijklmnopqrstuvwxyz",wr=!0;function ue(E,c){var C,O,S,B,$,D,X,re,te=this;if(!(te instanceof ue))return new ue(E,c);if(c==null){if(E&&E._isBigNumber===!0)return te.s=E.s,void(!E.c||E.e>jt?te.c=te.e=null:E.e<vr?te.c=[te.e=0]:(te.e=E.e,te.c=E.c.slice()));if((D=typeof E=="number")&&0*E==0){if(te.s=1/E<0?(E=-E,-1):1,E===~~E){for(B=0,$=E;$>=10;$/=10,B++);return void(B>jt?te.c=te.e=null:(te.e=B,te.c=[E]))}re=String(E)}else{if(!h.test(re=String(E)))return M(te,re,D);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(B=re.indexOf("."))>-1&&(re=re.replace(".","")),($=re.search(/e/i))>0?(B<0&&(B=$),B+=+re.slice($+1),re=re.substring(0,$)):B<0&&(B=re.length)}else{if(x(c,2,Lt.length,"Base"),c==10&&wr)return Ve(te=new ue(E),Xe+te.e+1,et);if(re=String(E),D=typeof E=="number"){if(0*E!=0)return M(te,re,D,c);if(te.s=1/E<0?(re=re.slice(1),-1):1,ue.DEBUG&&re.replace(/^0\.0*|\./,"").length>15)throw Error(_+E)}else te.s=re.charCodeAt(0)===45?(re=re.slice(1),-1):1;for(C=Lt.slice(0,c),B=$=0,X=re.length;$<X;$++)if(C.indexOf(O=re.charAt($))<0){if(O=="."){if($>B){B=X;continue}}else if(!S&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){S=!0,$=-1,B=0;continue}return M(te,String(E),D,c)}D=!1,(B=(re=k(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):B=re.length}for($=0;re.charCodeAt($)===48;$++);for(X=re.length;re.charCodeAt(--X)===48;);if(re=re.slice($,++X)){if(X-=$,D&&ue.DEBUG&&X>15&&(E>I||E!==p(E)))throw Error(_+te.s*E);if((B=B-$-1)>jt)te.c=te.e=null;else if(B<vr)te.c=[te.e=0];else{if(te.e=B,te.c=[],$=(B+1)%y,B<0&&($+=y),$<X){for($&&te.c.push(+re.slice(0,$)),X-=y;$<X;)te.c.push(+re.slice($,$+=y));$=y-(re=re.slice($)).length}else $-=X;for(;$--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Br(E,c,C,O){var S,B,$,D,X;if(C==null?C=et:x(C,0,8),!E.c)return E.toString();if(S=E.c[0],$=E.e,c==null)X=K(E.c),X=O==1||O==2&&($<=Ot||$>=Lr)?Q(X,$):ee(X,$,"0");else if(B=(E=Ve(new ue(E),c,C)).e,D=(X=K(E.c)).length,O==1||O==2&&(c<=B||B<=Ot)){for(;D<c;X+="0",D++);X=Q(X,B)}else if(c-=$,X=ee(X,B,"0"),B+1>D){if(--c>0)for(X+=".";c--;X+="0");}else if((c+=B-D)>0)for(B+1==D&&(X+=".");c--;X+="0");return E.s<0&&S?"-"+X:X}function zn(E,c){for(var C,O=1,S=new ue(E[0]);O<E.length;O++){if(!(C=new ue(E[O])).s){S=C;break}c.call(S,C)&&(S=C)}return S}function Gn(E,c,C){for(var O=1,S=c.length;!c[--S];c.pop());for(S=c[0];S>=10;S/=10,O++);return(C=O+C*y-1)>jt?E.c=E.e=null:C<vr?E.c=[E.e=0]:(E.e=C,E.c=c),E}function Ve(E,c,C,O){var S,B,$,D,X,re,te,pe=E.c,Ie=W;if(pe){e:{for(S=1,D=pe[0];D>=10;D/=10,S++);if((B=c-S)<0)B+=y,$=c,te=(X=pe[re=0])/Ie[S-$-1]%10|0;else if((re=m((B+1)/y))>=pe.length){if(!O)break e;for(;pe.length<=re;pe.push(0));X=te=0,S=1,$=(B%=y)-y+1}else{for(X=D=pe[re],S=1;D>=10;D/=10,S++);te=($=(B%=y)-y+S)<0?0:X/Ie[S-$-1]%10|0}if(O=O||c<0||pe[re+1]!=null||($<0?X:X%Ie[S-$-1]),O=C<4?(te||O)&&(C==0||C==(E.s<0?3:2)):te>5||te==5&&(C==4||O||C==6&&(B>0?$>0?X/Ie[S-$]:0:pe[re-1])%10&1||C==(E.s<0?8:7)),c<1||!pe[0])return pe.length=0,O?(c-=E.e+1,pe[0]=Ie[(y-c%y)%y],E.e=-c||0):pe[0]=E.e=0,E;if(B==0?(pe.length=re,D=1,re--):(pe.length=re+1,D=Ie[y-B],pe[re]=$>0?p(X/Ie[S-$]%Ie[$])*D:0),O)for(;;){if(re==0){for(B=1,$=pe[0];$>=10;$/=10,B++);for($=pe[0]+=D,D=1;$>=10;$/=10,D++);B!=D&&(E.e++,pe[0]==T&&(pe[0]=1));break}if(pe[re]+=D,pe[re]!=T)break;pe[re--]=0,D=1}for(B=pe.length;pe[--B]===0;pe.pop());}E.e>jt?E.c=E.e=null:E.e<vr&&(E.c=[E.e=0])}return E}function er(E){var c,C=E.e;return C===null?E.toString():(c=K(E.c),c=C<=Ot||C>=Lr?Q(c,C):ee(c,C,"0"),E.s<0?"-"+c:c)}return ue.clone=i,ue.ROUND_UP=0,ue.ROUND_DOWN=1,ue.ROUND_CEIL=2,ue.ROUND_FLOOR=3,ue.ROUND_HALF_UP=4,ue.ROUND_HALF_DOWN=5,ue.ROUND_HALF_EVEN=6,ue.ROUND_HALF_CEIL=7,ue.ROUND_HALF_FLOOR=8,ue.EUCLID=9,ue.config=ue.set=function(E){var c,C;if(E!=null){if(typeof E!="object")throw Error(b+"Object expected: "+E);if(E.hasOwnProperty(c="DECIMAL_PLACES")&&(x(C=E[c],0,A,c),Xe=C),E.hasOwnProperty(c="ROUNDING_MODE")&&(x(C=E[c],0,8,c),et=C),E.hasOwnProperty(c="EXPONENTIAL_AT")&&((C=E[c])&&C.pop?(x(C[0],-A,0,c),x(C[1],0,A,c),Ot=C[0],Lr=C[1]):(x(C,-A,A,c),Ot=-(Lr=C<0?-C:C))),E.hasOwnProperty(c="RANGE"))if((C=E[c])&&C.pop)x(C[0],-A,-1,c),x(C[1],1,A,c),vr=C[0],jt=C[1];else{if(x(C,-A,A,c),!C)throw Error(b+c+" cannot be zero: "+C);vr=-(jt=C<0?-C:C)}if(E.hasOwnProperty(c="CRYPTO")){if((C=E[c])!==!!C)throw Error(b+c+" not true or false: "+C);if(C){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw br=!C,Error(b+"crypto unavailable");br=C}else br=C}if(E.hasOwnProperty(c="MODULO_MODE")&&(x(C=E[c],0,9,c),Qr=C),E.hasOwnProperty(c="POW_PRECISION")&&(x(C=E[c],0,A,c),At=C),E.hasOwnProperty(c="FORMAT")){if(typeof(C=E[c])!="object")throw Error(b+c+" not an object: "+C);Mr=C}if(E.hasOwnProperty(c="ALPHABET")){if(typeof(C=E[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(C))throw Error(b+c+" invalid: "+C);wr=C.slice(0,10)=="0123456789",Lt=C}}return{DECIMAL_PLACES:Xe,ROUNDING_MODE:et,EXPONENTIAL_AT:[Ot,Lr],RANGE:[vr,jt],CRYPTO:br,MODULO_MODE:Qr,POW_PRECISION:At,FORMAT:Mr,ALPHABET:Lt}},ue.isBigNumber=function(E){if(!E||E._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,C,O=E.c,S=E.e,B=E.s;e:if({}.toString.call(O)=="[object Array]"){if((B===1||B===-1)&&S>=-A&&S<=A&&S===p(S)){if(O[0]===0){if(S===0&&O.length===1)return!0;break e}if((c=(S+1)%y)<1&&(c+=y),String(O[0]).length==c){for(c=0;c<O.length;c++)if((C=O[c])<0||C>=T||C!==p(C))break e;if(C!==0)return!0}}}else if(O===null&&S===null&&(B===null||B===1||B===-1))return!0;throw Error(b+"Invalid BigNumber: "+E)},ue.maximum=ue.max=function(){return zn(arguments,ge.lt)},ue.minimum=ue.min=function(){return zn(arguments,ge.gt)},ue.random=(V=9007199254740992,se=Math.random()*V&2097151?function(){return p(Math.random()*V)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(E){var c,C,O,S,B,$=0,D=[],X=new ue(Tt);if(E==null?E=Xe:x(E,0,A),S=m(E/y),br)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(S*=2));$<S;)(B=131072*c[$]+(c[$+1]>>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),c[$]=C[0],c[$+1]=C[1]):(D.push(B%1e14),$+=2);$=S/2}else{if(!crypto.randomBytes)throw br=!1,Error(b+"crypto unavailable");for(c=crypto.randomBytes(S*=7);$<S;)(B=281474976710656*(31&c[$])+1099511627776*c[$+1]+4294967296*c[$+2]+16777216*c[$+3]+(c[$+4]<<16)+(c[$+5]<<8)+c[$+6])>=9e15?crypto.randomBytes(7).copy(c,$):(D.push(B%1e14),$+=7);$=S/7}if(!br)for(;$<S;)(B=se())<9e15&&(D[$++]=B%1e14);for(S=D[--$],E%=y,S&&E&&(B=W[y-E],D[$]=p(S/B)*B);D[$]===0;D.pop(),$--);if($<0)D=[O=0];else{for(O=-1;D[0]===0;D.splice(0,1),O-=y);for($=1,B=D[0];B>=10;B/=10,$++);$<y&&(O-=y-$)}return X.e=O,X.c=D,X}),ue.sum=function(){for(var E=1,c=arguments,C=new ue(c[0]);E<c.length;)C=C.plus(c[E++]);return C},k=(function(){var E="0123456789";function c(C,O,S,B){for(var $,D,X=[0],re=0,te=C.length;re<te;){for(D=X.length;D--;X[D]*=O);for(X[0]+=B.indexOf(C.charAt(re++)),$=0;$<X.length;$++)X[$]>S-1&&(X[$+1]==null&&(X[$+1]=0),X[$+1]+=X[$]/S|0,X[$]%=S)}return X.reverse()}return function(C,O,S,B,$){var D,X,re,te,pe,Ie,je,De,tt=C.indexOf("."),ot=Xe,Fe=et;for(tt>=0&&(te=At,At=0,C=C.replace(".",""),Ie=(De=new ue(O)).pow(C.length-tt),At=te,De.c=c(ee(K(Ie.c),Ie.e,"0"),10,S,E),De.e=De.c.length),re=te=(je=c(C,O,S,$?(D=Lt,E):(D=E,Lt))).length;je[--te]==0;je.pop());if(!je[0])return D.charAt(0);if(tt<0?--re:(Ie.c=je,Ie.e=re,Ie.s=B,je=(Ie=v(Ie,De,ot,Fe,S)).c,pe=Ie.r,re=Ie.e),tt=je[X=re+ot+1],te=S/2,pe=pe||X<0||je[X+1]!=null,pe=Fe<4?(tt!=null||pe)&&(Fe==0||Fe==(Ie.s<0?3:2)):tt>te||tt==te&&(Fe==4||pe||Fe==6&&1&je[X-1]||Fe==(Ie.s<0?8:7)),X<1||!je[0])C=pe?ee(D.charAt(1),-ot,D.charAt(0)):D.charAt(0);else{if(je.length=X,pe)for(--S;++je[--X]>S;)je[X]=0,X||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,C="";tt<=te;C+=D.charAt(je[tt++]));C=ee(C,re,D.charAt(0))}return C}})(),v=(function(){function E(O,S,B){var $,D,X,re,te=0,pe=O.length,Ie=S%g,je=S/g|0;for(O=O.slice();pe--;)te=((D=Ie*(X=O[pe]%g)+($=je*X+(re=O[pe]/g|0)*Ie)%g*g+te)/B|0)+($/g|0)+je*re,O[pe]=D%B;return te&&(O=[te].concat(O)),O}function c(O,S,B,$){var D,X;if(B!=$)X=B>$?1:-1;else for(D=X=0;D<B;D++)if(O[D]!=S[D]){X=O[D]>S[D]?1:-1;break}return X}function C(O,S,B,$){for(var D=0;B--;)O[B]-=D,D=O[B]<S[B]?1:0,O[B]=D*$+O[B]-S[B];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,S,B,$,D){var X,re,te,pe,Ie,je,De,tt,ot,Fe,ze,pt,Fr,Jr,Xr,$t,_r,kt=O.s==S.s?1:-1,yt=O.c,Je=S.c;if(!(yt&&yt[0]&&Je&&Je[0]))return new ue(O.s&&S.s&&(yt?!Je||yt[0]!=Je[0]:Je)?yt&&yt[0]==0||!Je?0*kt:kt/0:NaN);for(ot=(tt=new ue(kt)).c=[],kt=B+(re=O.e-S.e)+1,D||(D=T,re=w(O.e/y)-w(S.e/y),kt=kt/y|0),te=0;Je[te]==(yt[te]||0);te++);if(Je[te]>(yt[te]||0)&&re--,kt<0)ot.push(1),pe=!0;else{for(Jr=yt.length,$t=Je.length,te=0,kt+=2,(Ie=p(D/(Je[0]+1)))>1&&(Je=E(Je,Ie,D),yt=E(yt,Ie,D),$t=Je.length,Jr=yt.length),Fr=$t,ze=(Fe=yt.slice(0,$t)).length;ze<$t;Fe[ze++]=0);_r=Je.slice(),_r=[0].concat(_r),Xr=Je[0],Je[1]>=D/2&&Xr++;do{if(Ie=0,(X=c(Je,Fe,$t,ze))<0){if(pt=Fe[0],$t!=ze&&(pt=pt*D+(Fe[1]||0)),(Ie=p(pt/Xr))>1)for(Ie>=D&&(Ie=D-1),De=(je=E(Je,Ie,D)).length,ze=Fe.length;c(je,Fe,De,ze)==1;)Ie--,C(je,$t<De?_r:Je,De,D),De=je.length,X=1;else Ie==0&&(X=Ie=1),De=(je=Je.slice()).length;if(De<ze&&(je=[0].concat(je)),C(Fe,je,ze,D),ze=Fe.length,X==-1)for(;c(Je,Fe,$t,ze)<1;)Ie++,C(Fe,$t<ze?_r:Je,ze,D),ze=Fe.length}else X===0&&(Ie++,Fe=[0]);ot[te++]=Ie,Fe[0]?Fe[ze++]=yt[Fr]||0:(Fe=[yt[Fr]],ze=1)}while((Fr++<Jr||Fe[0]!=null)&&kt--);pe=Fe[0]!=null,ot[0]||ot.splice(0,1)}if(D==T){for(te=1,kt=ot[0];kt>=10;kt/=10,te++);Ve(tt,B+(tt.e=te+re*y-1)+1,$,pe)}else tt.e=re,tt.r=+pe;return tt}})(),me=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ke=/^([^.]+)\.$/,Ne=/^\.([^.]+)$/,Ft=/^-?(Infinity|NaN)$/,lt=/^\s*\+(?=[\w.])|^\s+|\s+$/g,M=function(E,c,C,O){var S,B=C?c:c.replace(lt,"");if(Ft.test(B))E.s=isNaN(B)?null:B<0?-1:1;else{if(!C&&(B=B.replace(me,(function($,D,X){return S=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,O&&O!=S?$:D})),O&&(S=O,B=B.replace(ke,"$1").replace(Ne,"0.$1")),c!=B))return new ue(B,S);if(ue.DEBUG)throw Error(b+"Not a"+(O?" base "+O:"")+" number: "+c);E.s=null}E.c=E.e=null},ge.absoluteValue=ge.abs=function(){var E=new ue(this);return E.s<0&&(E.s=1),E},ge.comparedTo=function(E,c){return U(this,new ue(E,c))},ge.decimalPlaces=ge.dp=function(E,c){var C,O,S,B=this;if(E!=null)return x(E,0,A),c==null?c=et:x(c,0,8),Ve(new ue(B),E+B.e+1,c);if(!(C=B.c))return null;if(O=((S=C.length-1)-w(this.e/y))*y,S=C[S])for(;S%10==0;S/=10,O--);return O<0&&(O=0),O},ge.dividedBy=ge.div=function(E,c){return v(this,new ue(E,c),Xe,et)},ge.dividedToIntegerBy=ge.idiv=function(E,c){return v(this,new ue(E,c),0,1)},ge.exponentiatedBy=ge.pow=function(E,c){var C,O,S,B,$,D,X,re,te=this;if((E=new ue(E)).c&&!E.isInteger())throw Error(b+"Exponent not an integer: "+er(E));if(c!=null&&(c=new ue(c)),$=E.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!E.c||!E.c[0])return re=new ue(Math.pow(+er(te),$?E.s*(2-q(E)):+er(E))),c?re.mod(c):re;if(D=E.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(O=!D&&te.isInteger()&&c.isInteger())&&(te=te.mod(c))}else{if(E.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||$&&te.c[1]>=24e7:te.c[0]<8e13||$&&te.c[0]<=9999975e7)))return B=te.s<0&&q(E)?-0:0,te.e>-1&&(B=1/B),new ue(D?1/B:B);At&&(B=m(At/y+2))}for($?(C=new ue(.5),D&&(E.s=1),X=q(E)):X=(S=Math.abs(+er(E)))%2,re=new ue(Tt);;){if(X){if(!(re=re.times(te)).c)break;B?re.c.length>B&&(re.c.length=B):O&&(re=re.mod(c))}if(S){if((S=p(S/2))===0)break;X=S%2}else if(Ve(E=E.times(C),E.e+1,1),E.e>14)X=q(E);else{if((S=+er(E))==0)break;X=S%2}te=te.times(te),B?te.c&&te.c.length>B&&(te.c.length=B):O&&(te=te.mod(c))}return O?re:(D&&(re=Tt.div(re)),c?re.mod(c):B?Ve(re,At,et,void 0):re)},ge.integerValue=function(E){var c=new ue(this);return E==null?E=et:x(E,0,8),Ve(c,c.e+1,E)},ge.isEqualTo=ge.eq=function(E,c){return U(this,new ue(E,c))===0},ge.isFinite=function(){return!!this.c},ge.isGreaterThan=ge.gt=function(E,c){return U(this,new ue(E,c))>0},ge.isGreaterThanOrEqualTo=ge.gte=function(E,c){return(c=U(this,new ue(E,c)))===1||c===0},ge.isInteger=function(){return!!this.c&&w(this.e/y)>this.c.length-2},ge.isLessThan=ge.lt=function(E,c){return U(this,new ue(E,c))<0},ge.isLessThanOrEqualTo=ge.lte=function(E,c){return(c=U(this,new ue(E,c)))===-1||c===0},ge.isNaN=function(){return!this.s},ge.isNegative=function(){return this.s<0},ge.isPositive=function(){return this.s>0},ge.isZero=function(){return!!this.c&&this.c[0]==0},ge.minus=function(E,c){var C,O,S,B,$=this,D=$.s;if(c=(E=new ue(E,c)).s,!D||!c)return new ue(NaN);if(D!=c)return E.s=-c,$.plus(E);var X=$.e/y,re=E.e/y,te=$.c,pe=E.c;if(!X||!re){if(!te||!pe)return te?(E.s=-c,E):new ue(pe?$:NaN);if(!te[0]||!pe[0])return pe[0]?(E.s=-c,E):new ue(te[0]?$:et==3?-0:0)}if(X=w(X),re=w(re),te=te.slice(),D=X-re){for((B=D<0)?(D=-D,S=te):(re=X,S=pe),S.reverse(),c=D;c--;S.push(0));S.reverse()}else for(O=(B=(D=te.length)<(c=pe.length))?D:c,D=c=0;c<O;c++)if(te[c]!=pe[c]){B=te[c]<pe[c];break}if(B&&(S=te,te=pe,pe=S,E.s=-E.s),(c=(O=pe.length)-(C=te.length))>0)for(;c--;te[C++]=0);for(c=T-1;O>D;){if(te[--O]<pe[O]){for(C=O;C&&!te[--C];te[C]=c);--te[C],te[O]+=T}te[O]-=pe[O]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?Gn(E,te,re):(E.s=et==3?-1:1,E.c=[E.e=0],E)},ge.modulo=ge.mod=function(E,c){var C,O,S=this;return E=new ue(E,c),!S.c||!E.s||E.c&&!E.c[0]?new ue(NaN):!E.c||S.c&&!S.c[0]?new ue(S):(Qr==9?(O=E.s,E.s=1,C=v(S,E,0,3),E.s=O,C.s*=O):C=v(S,E,0,Qr),(E=S.minus(C.times(E))).c[0]||Qr!=1||(E.s=S.s),E)},ge.multipliedBy=ge.times=function(E,c){var C,O,S,B,$,D,X,re,te,pe,Ie,je,De,tt,ot,Fe=this,ze=Fe.c,pt=(E=new ue(E,c)).c;if(!(ze&&pt&&ze[0]&&pt[0]))return!Fe.s||!E.s||ze&&!ze[0]&&!pt||pt&&!pt[0]&&!ze?E.c=E.e=E.s=null:(E.s*=Fe.s,ze&&pt?(E.c=[0],E.e=0):E.c=E.e=null),E;for(O=w(Fe.e/y)+w(E.e/y),E.s*=Fe.s,(X=ze.length)<(pe=pt.length)&&(De=ze,ze=pt,pt=De,S=X,X=pe,pe=S),S=X+pe,De=[];S--;De.push(0));for(tt=T,ot=g,S=pe;--S>=0;){for(C=0,Ie=pt[S]%ot,je=pt[S]/ot|0,B=S+($=X);B>S;)C=((re=Ie*(re=ze[--$]%ot)+(D=je*re+(te=ze[$]/ot|0)*Ie)%ot*ot+De[B]+C)/tt|0)+(D/ot|0)+je*te,De[B--]=re%tt;De[B]=C}return C?++O:De.splice(0,1),Gn(E,De,O)},ge.negated=function(){var E=new ue(this);return E.s=-E.s||null,E},ge.plus=function(E,c){var C,O=this,S=O.s;if(c=(E=new ue(E,c)).s,!S||!c)return new ue(NaN);if(S!=c)return E.s=-c,O.minus(E);var B=O.e/y,$=E.e/y,D=O.c,X=E.c;if(!B||!$){if(!D||!X)return new ue(S/0);if(!D[0]||!X[0])return X[0]?E:new ue(D[0]?O:0*S)}if(B=w(B),$=w($),D=D.slice(),S=B-$){for(S>0?($=B,C=X):(S=-S,C=D),C.reverse();S--;C.push(0));C.reverse()}for((S=D.length)-(c=X.length)<0&&(C=X,X=D,D=C,c=S),S=0;c;)S=(D[--c]=D[c]+X[c]+S)/T|0,D[c]=T===D[c]?0:D[c]%T;return S&&(D=[S].concat(D),++$),Gn(E,D,$)},ge.precision=ge.sd=function(E,c){var C,O,S,B=this;if(E!=null&&E!==!!E)return x(E,1,A),c==null?c=et:x(c,0,8),Ve(new ue(B),E,c);if(!(C=B.c))return null;if(O=(S=C.length-1)*y+1,S=C[S]){for(;S%10==0;S/=10,O--);for(S=C[0];S>=10;S/=10,O++);}return E&&B.e+1>O&&(O=B.e+1),O},ge.shiftedBy=function(E){return x(E,-9007199254740991,I),this.times("1e"+E)},ge.squareRoot=ge.sqrt=function(){var E,c,C,O,S,B=this,$=B.c,D=B.s,X=B.e,re=Xe+4,te=new ue("0.5");if(D!==1||!$||!$[0])return new ue(!D||D<0&&(!$||$[0])?NaN:$?B:1/0);if((D=Math.sqrt(+er(B)))==0||D==1/0?(((c=K($)).length+X)%2==0&&(c+="0"),D=Math.sqrt(+c),X=w((X+1)/2)-(X<0||X%2),C=new ue(c=D==1/0?"5e"+X:(c=D.toExponential()).slice(0,c.indexOf("e")+1)+X)):C=new ue(D+""),C.c[0]){for((D=(X=C.e)+re)<3&&(D=0);;)if(S=C,C=te.times(S.plus(v(B,S,re,1))),K(S.c).slice(0,D)===(c=K(C.c)).slice(0,D)){if(C.e<X&&--D,(c=c.slice(D-3,D+1))!="9999"&&(O||c!="4999")){+c&&(+c.slice(1)||c.charAt(0)!="5")||(Ve(C,C.e+Xe+2,1),E=!C.times(C).eq(B));break}if(!O&&(Ve(S,S.e+Xe+2,0),S.times(S).eq(B))){C=S;break}re+=4,D+=4,O=1}}return Ve(C,C.e+Xe+1,et,E)},ge.toExponential=function(E,c){return E!=null&&(x(E,0,A),E++),Br(this,E,c,1)},ge.toFixed=function(E,c){return E!=null&&(x(E,0,A),E=E+this.e+1),Br(this,E,c)},ge.toFormat=function(E,c,C){var O,S=this;if(C==null)E!=null&&c&&typeof c=="object"?(C=c,c=null):E&&typeof E=="object"?(C=E,E=c=null):C=Mr;else if(typeof C!="object")throw Error(b+"Argument not an object: "+C);if(O=S.toFixed(E,c),S.c){var B,$=O.split("."),D=+C.groupSize,X=+C.secondaryGroupSize,re=C.groupSeparator||"",te=$[0],pe=$[1],Ie=S.s<0,je=Ie?te.slice(1):te,De=je.length;if(X&&(B=D,D=X,X=B,De-=B),D>0&&De>0){for(B=De%D||D,te=je.substr(0,B);B<De;B+=D)te+=re+je.substr(B,D);X>0&&(te+=re+je.slice(B)),Ie&&(te="-"+te)}O=pe?te+(C.decimalSeparator||"")+((X=+C.fractionGroupSize)?pe.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):pe):te}return(C.prefix||"")+O+(C.suffix||"")},ge.toFraction=function(E){var c,C,O,S,B,$,D,X,re,te,pe,Ie,je=this,De=je.c;if(E!=null&&(!(D=new ue(E)).isInteger()&&(D.c||D.s!==1)||D.lt(Tt)))throw Error(b+"Argument "+(D.isInteger()?"out of range: ":"not an integer: ")+er(D));if(!De)return new ue(je);for(c=new ue(Tt),re=C=new ue(Tt),O=X=new ue(Tt),Ie=K(De),B=c.e=Ie.length-je.e-1,c.c[0]=W[($=B%y)<0?y+$:$],E=!E||D.comparedTo(c)>0?B>0?c:re:D,$=jt,jt=1/0,D=new ue(Ie),X.c[0]=0;te=v(D,c,0,1),(S=C.plus(te.times(O))).comparedTo(E)!=1;)C=O,O=S,re=X.plus(te.times(S=re)),X=S,c=D.minus(te.times(S=c)),D=S;return S=v(E.minus(C),O,0,1),X=X.plus(S.times(re)),C=C.plus(S.times(O)),X.s=re.s=je.s,pe=v(re,O,B*=2,et).minus(je).abs().comparedTo(v(X,C,B,et).minus(je).abs())<1?[re,O]:[X,C],jt=$,pe},ge.toNumber=function(){return+er(this)},ge.toPrecision=function(E,c){return E!=null&&x(E,1,A),Br(this,E,c,2)},ge.toString=function(E){var c,C=this,O=C.s,S=C.e;return S===null?O?(c="Infinity",O<0&&(c="-"+c)):c="NaN":(E==null?c=S<=Ot||S>=Lr?Q(K(C.c),S):ee(K(C.c),S,"0"):E===10&&wr?c=ee(K((C=Ve(new ue(C),Xe+S+1,et)).c),C.e,"0"):(x(E,2,Lt.length,"Base"),c=k(ee(K(C.c),S,"0"),10,E,O,!0)),O<0&&C.c[0]&&(c="-"+c)),c},ge.valueOf=ge.toJSON=function(){return er(this)},ge._isBigNumber=!0,ge[Symbol.toStringTag]="BigNumber",ge[Symbol.for("nodejs.util.inspect.custom")]=ge.valueOf,l!=null&&ue.set(l),ue})();const J={ROUNDING_MODE:ae.ROUND_DOWN};function L(i){return new TextEncoder().encode(i)}function N(i){return typeof i=="string"?N(H(i)):new TextDecoder().decode(i)}ae.config(J);const Z="UNKNOWN_ERROR",P="INVALID_ARGUMENT";function F(i,l=Z,v={}){const k=[];Object.keys(v).forEach((se=>{try{k.push(se+"="+JSON.stringify(v[se]))}catch{k.push(se+"="+JSON.stringify(v[se].toString()))}}));const M=i;k.length&&(i+=" ("+k.join(", ")+")");const V=new Error(i);return V.reason=M,V.code=l,Object.keys(v).forEach((function(se){V[se]=v[se]})),V}function H(i){if(typeof i!="string")throw new Error("hexToBytes only accept strings, got: "+typeof i);if(i.substr(0,2)==="0x")return H(i.substr(2));const l=new Uint8Array(Math.ceil(i.length/2));let v=0;for(let k=0;k<i.length;k+=2){const M=parseInt(i.substr(k,2),16);if(isNaN(M))throw new Error("Cannot read hex string:"+JSON.stringify(i));l[v]=M,v++}return l}function R(i){return Array.from(i).map((l=>l.toString(16).padStart(2,"0"))).join("")}function j(i,l){if(typeof i=="string"){if(l&&l.encoding==="hex"&&typeof i=="string"){let v=i;v.length>2&&v.substr(0,2)==="0x"&&(v=v.substr(2));const k=H(v);return f.keccak256(k)}return f.keccak256(L(i))}return f.keccak256(i)}const z={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function Y(i,l,v){return new Array(l-i.length+1).join(v||"0")+i}function ce(i){let l="",v=0;const k=i.length;for(i.substring(0,2)==="0x"&&(v=2);v<k;v+=2){const M=parseInt(i.substr(v,2),16);l+=String.fromCharCode(M)}return l}function ie(i){return zt(i)&&i.name&&i.name.indexOf("(")!==-1?i.name:i.name+"("+de(!1,i.inputs||[]).join(",")+")"}function le(...i){const l=i.reduce(((M,V)=>M+V.length),0),v=new Uint8Array(l);let k=0;for(const M of i)v.set(M,k),k+=M.length;return v}function de(i,l){const v=[];return l.forEach((function(k){if(typeof k.components=="object"){if(k.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let M="";const V=k.type.indexOf("[");V>=0&&(M=k.type.substring(V));const se=de(i,k.components);v.push("("+se.join(",")+")"+M)}else v.push(k.type)})),v}function Re(i){const l=i.indexOf("("),v=i.indexOf(")");return l!==-1&&v!==-1?i.substr(0,l):i}function we(i){const l=i.indexOf("("),v=i.indexOf(")");return l!==-1&&v!==-1?i.substr(l+1,v-l-1).replace(" ",""):""}function Ee(i){return i==null?i:Be(i).toNumber()}function ye(i){return Be(i).toNumber()}function Ge(i){return Vt(i)?i.toString(10):""+i}function Ue(i){return typeof i=="string"&&!i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?"0x"+i:Ae(i)}function he(i){if(typeof i=="string")return i.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i)?Ae(i):"0x"+R(L(i));if(i instanceof Uint8Array)return"0x"+R(i);throw new Error(`toStringData: Error trying to convert ${i} (${typeof i}) to a hex string.`)}function fe(i){return typeof i=="boolean"?i:Be(i).toNumber()!==0}function ve(i){const l=Be(i),v=l.toString(16);return l.isLessThan(0)?"-0x"+v.substr(1):"0x"+v}function Ae(i){if(Ca(i))return ve(+i);if(Vt(i))return ve(i);if(Pt(i)){const l=i;if(l.indexOf("-0x")===0)return ve(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(L(l))}if(i instanceof Uint8Array)return"0x"+R(i);if(sr(i)||zt(i))throw new Error("toHex can only be called with scalar values, not objects or arrays");return ve(i)}function Me(i){const l=i?i.toLowerCase():"ether",v=z[l];if(v===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(z,null,2));return new ae(v,10)}function Be(i){let l=i||0;return Vt(l)?l:(typeof l=="string"&&(l=l.trim()),typeof l!="string"||l.indexOf("0x")!==0&&l.indexOf("-0x")!==0?l instanceof Uint8Array?new ae(R(l),16):new ae(l,10):new ae(l.replace("0x","").toLowerCase(),16))}function mt(i){return new ae(new Array(i).fill("1").join(""),2)}function at(i,l=256){const v=Be(i).integerValue();return v.isLessThan(0)?mt(l).plus(v).plus(1):v}function Ut(i,l){return Y(i.toString(2),l,"0")[0]==="1"}function Ht(i){if(typeof i!="string")throw F("invalid address",P,{arg:"address",value:i});if(i.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return i.trim().substring(0,2)!=="0x"&&(i="0x"+i),gr(i);throw F("invalid address",P,{arg:"address",value:i})}function or(i,l=256){if(Ut(i,l)){const v=mt(l);return i.minus(v).minus(1)}return i}function Or(i){return/^0x[0-9a-f]{40}$/i.test(i)}function Xt(i){return!!/^(0x)?[0-9a-f]{40}$/i.test(i)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(i)&&!/^(0x)?[0-9A-F]{40}$/.test(i))||Un(i))}function Un(i){const l=i.replace("0x",""),v=j(l.toLowerCase());for(let k=0;k<40;k++)if(parseInt(v[k],16)>7&&l[k].toUpperCase()!==l[k]||parseInt(v[k],16)<=7&&l[k].toLowerCase()!==l[k])return!1;return!0}function gr(i){if(i===void 0)return"";const l=i.toLowerCase().replace("0x",""),v=j(l);let k="0x";for(let M=0;M<l.length;M++)parseInt(v[M],16)>7?k+=l[M].toUpperCase():k+=l[M];return k}function bt(i){if(!Array.isArray(i))throw new Error(`Value was not an array: ${JSON.stringify(i)}`);return i}function Yr(i){return Or(i)?i:/^[0-9a-f]{40}$/.test(i)?"0x"+i:"0x"+Y(Ae(i).substr(2),40)}function Vt(i){return i instanceof ae}function Pt(i){return typeof i=="string"||i&&i.constructor&&i.constructor.name==="String"}function zt(i){return i!==null&&!Array.isArray(i)&&typeof i=="object"}function Ca(i){return typeof i=="boolean"}function sr(i){return Array.isArray(i)}var Js,Hn;function Xs(i,l){if(!i)throw new Error("jsonrpc method should be specified!");if(typeof i!="string")throw new Error(`jsonrpc must be a string, got ${typeof i}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:i,params:l||[]}}function zl(i){return Array.isArray(i)?i.every(l):l(i);function l(v){return!!v&&(v.error===void 0||v.error===null)&&v.jsonrpc==="2.0"&&v.id!==null&&"result"in v&&v.result!==void 0}}r.TransactionStatus=void 0,(Js=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",Js.confirmed="confirmed",Js.failed="failed",r.TransactionType=void 0,(Hn=r.TransactionType||(r.TransactionType={})).queued="queued",Hn.dropped="dropped",Hn.replaced="replaced",Hn.pending="pending",Hn.reverted="reverted",Hn.confirmed="confirmed",r.messageId=0;function ei(i){return Be(i)}function Gl(i){return i==="latest"||i==="pending"||i==="earliest"}function yn(i){return i===void 0?"latest":Ct(i)}function Ct(i){return i==null?null:Gl(i)?i:Ae(i)}function ti(i){return i.from&&(i.from=Gt(i.from)),i.to&&(i.to=Gt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=ve(i.gasPrice)),i.gas!==void 0&&(i.gas=ve(i.gas)),i.value!==void 0&&(i.value=ve(i.value)),i.nonce!==void 0&&(i.nonce=ve(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Vn(i){if(typeof i!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(i));if(i.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(i));if(i.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(i));return i}function ri(i){if(typeof i!="object")throw new Error("Did not provide transaction options");if(!i.from)throw new Error('Missing "from" in transaction options');return i.from=Gt(i.from),i.to&&(i.to=Gt(i.to)),i.gasPrice!==void 0&&(i.gasPrice=ve(i.gasPrice)),i.gas!==void 0&&(i.gas=ve(i.gas)),i.value!==void 0&&(i.value=ve(i.value)),i.nonce!==void 0&&(i.nonce=ve(i.nonce)),i.data&&!i.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(i.data)&&(i.data="0x"+i.data),i}function Ea(i){return i?(i.blockNumber!==null&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ye(i.transactionIndex)),i.nonce=ye(i.nonce),i.gas=ye(i.gas),i.gasPrice=Be(i.gasPrice),i.value=Be(i.value),i):null}function Wl(i){return i?(i.blockNumber!==null&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex!==null&&(i.transactionIndex=ye(i.transactionIndex)),i.cumulativeGasUsed=ye(i.cumulativeGasUsed),i.gasUsed=ye(i.gasUsed),i.effectiveGasPrice!==void 0&&i.effectiveGasPrice!==null&&(i.effectiveGasPrice=ye(i.effectiveGasPrice)),i.logs&&sr(i.logs)&&(i.logs=i.logs.map((function(l){return mo(l)}))),i.status=ye(i.status||""),i):null}function xa(i){return i?(i.gasLimit=ye(i.gasLimit),i.gasUsed=ye(i.gasUsed),i.size=ye(i.size),i.timestamp=ye(i.timestamp),i.number!==null&&(i.number=ye(i.number)),i.difficulty=Be(i.difficulty),i.totalDifficulty=Be(i.totalDifficulty),sr(i.transactions)&&i.transactions.forEach((function(l,v){Pt(l)||(i.transactions[v]=Ea(l)||i.transactions[v])})),i):null}function mo(i){return i&&(i.blockNumber&&(i.blockNumber=ye(i.blockNumber)),i.transactionIndex&&(i.transactionIndex=ye(i.transactionIndex)),i.logIndex&&(i.logIndex=ye(i.logIndex)),i)}function Gt(i){if(Or(i))return i;if(Xt(i))return"0x"+i;throw new Error(`Invalid address: ${JSON.stringify(i)}`)}function Zl(i){return i}function Kl(i){return i&&(i.startingBlock=ye(i.startingBlock),i.currentBlock=ye(i.currentBlock),i.highestBlock=ye(i.highestBlock),i.knownStates&&(i.knownStates=ye(i.knownStates),i.pulledStates=ye(i.pulledStates)),i)}function ni(i){if(i===null)throw F("cannot convert null value to array",P,{arg:"value",value:i});if(i instanceof Uint8Array)return new Uint8Array(i);if(typeof i=="string"){const l=i.match(/^(0x)?[0-9a-fA-F]*$/);if(!l)throw F("invalid hexidecimal string",P,{arg:"value",value:i});if(l[1]!=="0x")throw F("hex string must have 0x prefix",P,{arg:"value",value:i});(i=i.substring(2)).length%2&&(i="0"+i);const v=[];for(let k=0;k<i.length;k+=2)v.push(parseInt(i.substr(k,2),16));return new Uint8Array(v)}if((function(l){if(!l||parseInt(String(l.length))!==l.length||typeof l=="string")return!1;for(let v=0;v<l.length;v++){const k=l[v];if(k<0||k>=256||parseInt(String(k))!==k)return!1}return!0})(i))return new Uint8Array(i);throw F("invalid arrayify value",void 0,{arg:"value",value:i,type:typeof i})}function Yl(i,l,v){Object.defineProperty(i,l,{enumerable:!0,value:v,writable:!1})}const Mh=new ae(-1),Bh=new ae(0),Fh=new ae(1),Ql=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Jl(i){return(function(l,v){function k(se){return new Error('unexpected character "'+l[se]+'" at position '+se+' in "'+l+'"')}const M={type:"",name:"",state:{allowType:!0}};let V=M;for(let se=0;se<l.length;se++){const me=l[se];switch(me){case"(":if(!V.state.allowParams)throw k(se);V.state.allowType=!1,V.type=Sa(V.type),V.components=[{type:"",name:"",parent:V,state:{allowType:!0}}],V=V.components[0];break;case")":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=Sa(V.type);const ke=V;if(V=V.parent,!V)throw k(se);delete ke.parent,V.state.allowParams=!1,V.state.allowName=!0,V.state.allowArray=!0;break;case",":delete V.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),V.type=Sa(V.type);const Ne={type:"",name:"",parent:V.parent,state:{allowType:!0}};V.parent.components.push(Ne),delete V.parent,V=Ne;break;case" ":V.state.allowType&&V.type!==""&&(V.type=Sa(V.type),delete V.state.allowType,V.state.allowName=!0,V.state.allowParams=!0),V.state.allowName&&V.name!==""&&(V.name==="indexed"?(V.indexed=!0,V.name=""):V.state.allowName=!1);break;case"[":if(!V.state.allowArray)throw k(se);V.type+=me,V.state.allowArray=!1,V.state.allowName=!1,V.state.readArray=!0;break;case"]":if(!V.state.readArray)throw k(se);V.type+=me,V.state.readArray=!1,V.state.allowArray=!0,V.state.allowName=!0;break;default:if(V.state.allowType)V.type+=me,V.state.allowParams=!0,V.state.allowArray=!0;else if(V.state.allowName)V.name+=me,delete V.state.allowArray;else{if(!V.state.readArray)throw k(se);V.type+=me}}}if(V.parent)throw new Error("unexpected eof");return delete M.state,V.name==="indexed"&&(V.indexed=!0,V.name=""),M.type=Sa(M.type),M})(i)}function Sa(i){return i.match(/^uint($|[^1-9])/)?i="uint256"+i.substring(4):i.match(/^int($|[^1-9])/)&&(i="int256"+i.substring(3)),i}const $h=new RegExp(/^bytes([0-9]*)$/),Xl=new RegExp(/^(u?int)([0-9]*)$/),Dh=new RegExp(/^(.*)\[([0-9]*)\]$/),qh=function(i,l){const v=i.match(Xl);return v&&parseInt(v[2])<=48?l.toNumber():l};class yr{constructor(l,v,k,M="",V){this.coerceFunc=l,this.name=v,this.type=k,this.localName=M,this.dynamic=V}}class Uh extends yr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),Yl(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,v){return this.coder.decode(l,v)}}class Hh extends yr{constructor(l,v){super(l,"null","",v,!1)}encode(l){return ni([])}decode(l,v){if(v>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function po(i,l){return new ae(i.toString(2).substr(-l),2)}class eu extends yr{constructor(l,v,k,M){const V=(k?"int":"uint")+8*v;super(l,V,V,M,!1),this.size=v,this.signed=k}encode(l){try{let v=Be(l);if(this.signed){let M=po(Ql,8*this.size-1);if(v.gt(M))throw new Error("out-of-bounds");if(M=M.plus(Fh).multipliedBy(Mh),v.lt(M))throw new Error("out-of-bounds")}else if(v.lt(Bh)||v.gt(po(Ql,8*this.size)))throw new Error("out-of-bounds");v=po(at(v,8*this.size),8*this.size),this.signed&&(v=at(or(v,8*this.size),256));const k=Y(at(v).toString(16),64);if(k.indexOf("NaN")!==-1)throw F("invalid number value, NaN",P,{arg:this.localName,coderType:this.name,value:l,v,twosComplement:at(v),twosComplement16:at(v).toString(16),pad:Y(at(v).toString(16),64),size:this.size});return H(k)}catch(v){throw F("invalid number value",P,{arg:this.localName,coderType:this.name,value:l,message:v.toString()})}}decode(l,v){if(l.length<v+32)throw F("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:Ae(l.slice(v,v+32))});const k=32-this.size;let M=new ae(R(l.slice(v+k,v+32)),16);return M=this.signed?or(M,8*this.size):po(M,8*this.size),{consumed:32,value:this.coerceFunc(this.name,M)}}}const jr=new eu((function(i,l){return l}),32,!1,"none");class tu extends yr{constructor(l,v,k){const M="bytes"+v;super(l,M,M,k,!1),this.length=v}encode(l){const v=new Uint8Array(32);try{if(typeof l=="string"&&l.length%2!=0)throw new Error("hex string cannot be odd-length");const k=ni(l);if(k.length>this.length)throw new Error("incorrect data length");v.set(k)}catch(k){throw F("invalid "+this.name+" value. Use hex strings or Uint8Array",P,{arg:this.localName,coderType:this.name,value:k.value||l,details:k.message})}return v}decode(l,v){if(l.length<v+32)throw F("insufficient data for "+this.name+" type",P,{arg:this.localName,coderType:this.name,value:Ae(l.slice(v,v+32))});return{consumed:32,value:this.coerceFunc(this.name,l.slice(v,v+this.length))}}}function ru(i){const l=32*Math.ceil(i.length/32),v=new Uint8Array(l-i.length);return le(jr.encode(i.length),i,v)}function nu(i,l,v){if(i.length<l+32)throw F("insufficient data for dynamicBytes length",P,{arg:v,coderType:"dynamicBytes",value:Ae(i.slice(l,l+32))});let k=jr.decode(i,l).value;try{k=k.toNumber()}catch(M){throw M("dynamic bytes count too large",P,{arg:v,coderType:"dynamicBytes",value:k.toString()})}if(i.length<l+32+k)throw F("insufficient data for dynamicBytes type",P,{arg:v,coderType:"dynamicBytes",value:Ae(i.slice(l,l+32+k))});return{consumed:32+32*Math.ceil(k/32),value:i.slice(l+32,l+32+k)}}function go(i){return 32*Math.ceil(i/32)}function au(i,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw F("invalid tuple value",P,{coderType:"tuple",value:l});{const ke=[];i.forEach((function(Ne){ke.push(l[Ne.localName])})),l=ke}}if(i.length!==l.length)throw F("types/value length mismatch",P,{coderType:"tuple",value:l});const v=[];i.forEach((function(ke,Ne){v.push({dynamic:ke.dynamic,value:ke.encode(l[Ne])})}));let k=0,M=0;v.forEach((function(ke){ke.dynamic?(k+=32,M+=go(ke.value.length)):k+=go(ke.value.length)}));let V=0,se=k;const me=new Uint8Array(k+M);return v.forEach((function(ke){ke.dynamic?(me.set(jr.encode(se),V),V+=32,me.set(ke.value,se),se+=go(ke.value.length)):(me.set(ke.value,V),V+=go(ke.value.length))})),me}class Vh extends Array{}class zh extends yr{constructor(l,v,k,M){super(l,"array",v.type+"["+(k>=0?k:"")+"]",M,k===-1||v.dynamic),this.coder=v,this.length=k}encode(l){if(!Array.isArray(l))throw F("expected array value",P,{arg:this.localName,coderType:"array",value:l});let v=this.length,k=new Uint8Array(0);v===-1&&(v=l.length,k=jr.encode(v)),(function(V,se,me){if(me||(me=""),V<se)throw F("missing argument"+me,"MISSING_ARGUMENT",{count:V,expectedCount:se});if(V>se)throw F("too many arguments"+me,"UNEXPECTED_ARGUMENT",{count:V,expectedCount:se})})(v,l.length,"in coder array"+(this.localName?" "+this.localName:""));const M=[];for(let V=0;V<l.length;V++)M.push(this.coder);return le(k,au(M,l))}decode(l,v){let k=0,M=this.length;if(M===-1){let me;try{me=jr.decode(l,v)}catch(ke){throw F("insufficient data for dynamic array length",P,{arg:this.localName,coderType:"array",value:ke.value})}try{M=me.value.toNumber()}catch{throw F("array count too large",P,{arg:this.localName,coderType:"array",value:me.value.toString()})}k+=me.consumed,v+=me.consumed}const V=[];for(let me=0;me<M;me++)V.push(new Uh(this.coder));const se=(function(me,ke,Ne){const Ft=Ne;let lt=0;const ge=[];return me.forEach((function(Tt){let Xe;if(Tt.dynamic){const et=jr.decode(ke,Ne);Xe=Tt.decode(ke,Ft+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=Tt.decode(ke,Ne);Xe.value!==void 0&&ge.push(Xe.value),Ne+=Xe.consumed,lt+=Xe.consumed})),{value:ge,consumed:lt}})(V,l,v);return se.consumed+=k,se.value=this.coerceFunc(this.type,se.value),se}}class ai extends yr{constructor(l,v,k){let M=!1;const V=[];v.forEach((function(se){se.dynamic&&(M=!0),V.push(se.type)})),super(l,"tuple","tuple("+V.join(",")+")",k,M),this.coders=v}encode(l){return au(this.coders,l)}decode(l,v){const k=(function(M,V,se){const me=se;let ke=0;const Ne=new Vh;return M.forEach((function(Ft){let lt;if(Ft.dynamic){const ge=jr.decode(V,se);lt=Ft.decode(V,me+ge.value.toNumber()),lt.consumed=ge.consumed}else lt=Ft.decode(V,se);lt.value!==void 0&&Ne.push(lt.value),se+=lt.consumed,ke+=lt.consumed})),M.forEach((function(Ft,lt){let ge=Ft.localName;ge&&(ge==="length"&&(ge="_length"),Ne[ge]!==null&&Ne[ge]!==void 0||(Ne[ge]=Ne[lt]))})),{value:Ne,consumed:ke}})(this.coders,l,v);return k.value=this.coerceFunc(this.type,k.value),k}}const Gh={address:class extends yr{constructor(i,l){super(i,"address","address",l,!1)}encode(i){const l=new Uint8Array(32),v=i.trim();if(!Xt(v))throw F("invalid address format",P,{arg:this.localName,coderType:"address",value:i});try{l.set(H(Gt(v)),12)}catch(k){throw F(`invalid address (${k.message})`,P,{arg:this.localName,coderType:"address",value:i})}return l}decode(i,l){if(i.length<l+32)throw F("insufficuent data for address type",P,{arg:this.localName,coderType:"address",value:Ae(i.slice(l,l+32)),missingBytes:l+32-i.length});return{consumed:32,value:this.coerceFunc("address",Ht(Ae(i.slice(l+12,l+32))))}}},bool:class extends yr{constructor(i,l){super(i,"bool","bool",l,!1)}encode(i){return jr.encode(i?1:0)}decode(i,l){try{const v=jr.decode(i,l);return{consumed:v.consumed,value:this.coerceFunc("bool",!v.value.isZero())}}catch(v){throw v.reason==="insufficient data for uint256 type"?F("insufficient data for boolean type",P,{arg:this.localName,coderType:"boolean",value:v.value}):v}}},string:class extends yr{constructor(i,l){super(i,"string","string",l,!0)}encode(i){if(typeof i!="string")throw F("invalid string value",P,{arg:this.localName,coderType:"string",value:i});return ru(L(i))}decode(i,l){const v=nu(i,l,this.localName);return v.value=this.coerceFunc("string",N(v.value)),v}},bytes:class extends yr{constructor(i,l){super(i,"bytes","bytes",l,!0)}encode(i){try{return ru(ni(i))}catch(l){throw l("invalid bytes value",P,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(i,l){const v=nu(i,l,this.localName);return v.value=this.coerceFunc("bytes",v.value),v}},function:class extends tu{constructor(i,l){super(i,24,l)}}};function yo(i,l){const v=Gh[l.type];if(v)return new v(i,l.name);let k=l.type.match(Xl);if(k){const M=parseInt(k[2]||"256");if(M===0||M>256||M%8!=0)throw F("invalid "+k[1]+" bit length",P,{arg:"param",value:l});return new eu(i,M/8,k[1]==="int",l.name)}if(k=l.type.match($h),k){const M=parseInt(k[1]);if(M===0||M>32)throw F("invalid bytes length",P,{arg:"param",value:l});return new tu(i,M,l.name)}if(k=l.type.match(Dh),k){const M=Object.assign({},l),V=parseInt(k[2]||"-1");return M.type=k[1],new zh(i,yo(i,M),V,l.name)}if(l.type.substring(0,5)==="tuple")return(function(M,V,se){V||(V=[]);const me=V.map((ke=>yo(M,ke)));return new ai(M,me,se)})(i,l.components,l.name);if(l.type==="")return new Hh(i,l.name);throw F("invalid type",P,{arg:"type",value:l.type,fullType:l})}class oi{constructor(l){(function(v,k){if(!(v instanceof k))throw F("missing new","MISSING_NEW",{name:k.name})})(this,oi),l||(l=qh),Yl(this,"coerceFunc",l)}encode(l,v){if(l.length!==v.length)throw F("types/values length mismatch",P,{count:{types:l.length,values:v.length},value:{types:l,values:v}});const k=l.map((M=>typeof M=="string"?Jl(M):M)).map((M=>yo(this.coerceFunc,M)));return new ai(this.coerceFunc,k,"_").encode(v)}decode(l,v){const k=l.map((M=>typeof M=="string"?Jl(M):M)).map((M=>yo(this.coerceFunc,M)));return new ai(this.coerceFunc,k,"_").decode(v,0).value}}const ou=new oi;var su,Ce;function xe(i,l,v,k){var M,V=arguments.length,se=V<3?l:k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(i,l,v,k);else for(var me=i.length-1;me>=0;me--)(M=i[me])&&(se=(V<3?M(se):V>3?M(l,v,se):M(l,v))||se);return V>3&&se&&Object.defineProperty(l,v,se),se}function Se(i,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,l)}r.coder=void 0,(su=r.coder||(r.coder={})).encodeParams=function(i,l){return R(ou.encode(i,l))},su.decodeParams=function(i,l){if(i.length>0&&(!l||l==="0x"||l==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return ou.decode(i,H("0x"+l.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Pe{constructor(l){this.callName=l.callName,this.params=l.params||0,this.inputFormatter=l.inputFormatter||null,this.outputFormatter=l.outputFormatter}validateArgs(l){if(l.length!==this.params)throw v=this.callName,k=l.length,M=this.params,new Error(`Invalid number of input parameters to RPC method "${v}" given: ${k}, expected: ${M}`);var v,k,M}formatInput(l){return this.inputFormatter?this.inputFormatter.map((function(v,k){return v?v(l[k]):l[k]})):l}formatOutput(l){return l!==null?this.outputFormatter(l):null}toPayload(l){const v=this.formatInput(l);return this.validateArgs(v),{method:this.callName,params:v}}async execute(l,...v){const k=this.toPayload(v);if(!l)throw new Error("Missing RequestManager in method#exec");const M=await l.sendAsync(k);return this.formatOutput(M)}}class Wt{constructor(l){this.getter=l.getter,this.outputFormatter=l.outputFormatter}formatOutput(l){return this.outputFormatter(l)}async execute(l,...v){const k=await l.sendAsync({method:this.getter,params:[]});return this.formatOutput(k)}}function iu(i){return new Promise((l=>setTimeout(l,i)))}r.eth=void 0,(Ce=r.eth||(r.eth={})).eth_getBalance=new Pe({callName:"eth_getBalance",params:2,inputFormatter:[Gt,yn],outputFormatter:ei}),Ce.eth_getStorageAt=new Pe({callName:"eth_getStorageAt",params:3,inputFormatter:[Gt,Ae,yn],outputFormatter:Ue}),Ce.eth_getCode=new Pe({callName:"eth_getCode",params:2,inputFormatter:[Gt,yn],outputFormatter:Ue}),Ce.eth_getBlockByHash=new Pe({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ct,function(i){return!!i}],outputFormatter:xa}),Ce.eth_getBlockByNumber=new Pe({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ct,function(i){return!!i}],outputFormatter:xa}),Ce.eth_getUncleByBlockHashAndIndex=new Pe({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xa}),Ce.eth_getUncleByBlockNumberAndIndex=new Pe({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xa}),Ce.eth_getBlockTransactionCountByHash=new Pe({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getBlockTransactionCountByNumber=new Pe({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getUncleCountByBlockHash=new Pe({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getUncleCountByBlockNumber=new Pe({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[Ct],outputFormatter:ye}),Ce.eth_getTransactionByHash=new Pe({callName:"eth_getTransactionByHash",params:1,inputFormatter:[Vn],outputFormatter:Ea}),Ce.eth_getTransactionByBlockHashAndIndex=new Pe({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Ea}),Ce.eth_getTransactionByBlockNumberAndIndex=new Pe({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Ea}),Ce.eth_getTransactionReceipt=new Pe({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[Vn],outputFormatter:Wl}),Ce.eth_getTransactionCount=new Pe({callName:"eth_getTransactionCount",params:2,inputFormatter:[Gt,yn],outputFormatter:ye}),Ce.eth_sendRawTransaction=new Pe({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.web3_sha3=new Pe({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:Ue}),Ce.eth_sendTransaction=new Pe({callName:"eth_sendTransaction",params:1,inputFormatter:[ri],outputFormatter:Ue}),Ce.eth_sign=new Pe({callName:"eth_sign",params:2,inputFormatter:[Gt,null],outputFormatter:Ue}),Ce.eth_call=new Pe({callName:"eth_call",params:2,inputFormatter:[ti,yn],outputFormatter:Ue}),Ce.eth_estimateGas=new Pe({callName:"eth_estimateGas",params:1,inputFormatter:[ti],outputFormatter:ye}),Ce.eth_submitWork=new Pe({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:fe}),Ce.eth_getWork=new Pe({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:bt}),Ce.eth_coinbase=new Wt({getter:"eth_coinbase",outputFormatter:Yr}),Ce.eth_mining=new Wt({getter:"eth_mining",outputFormatter:fe}),Ce.eth_hashrate=new Wt({getter:"eth_hashrate",outputFormatter:ye}),Ce.eth_syncing=new Wt({getter:"eth_syncing",outputFormatter:Kl}),Ce.eth_gasPrice=new Wt({getter:"eth_gasPrice",outputFormatter:ei}),Ce.eth_accounts=new Wt({getter:"eth_accounts",outputFormatter:bt}),Ce.eth_blockNumber=new Wt({getter:"eth_blockNumber",outputFormatter:ye}),Ce.eth_protocolVersion=new Wt({getter:"eth_protocolVersion",outputFormatter:ye}),Ce.web3_clientVersion=new Wt({getter:"web3_clientVersion",outputFormatter:Ge}),Ce.net_version=new Wt({getter:"net_version",outputFormatter:Ge}),Ce.shh_version=new Pe({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:ye}),Ce.shh_post=new Pe({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.personal_newAccount=new Pe({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Yr}),Ce.personal_importRawKey=new Pe({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Yr}),Ce.personal_sign=new Pe({callName:"personal_sign",params:3,inputFormatter:[he,Gt,null],outputFormatter:Ue}),Ce.personal_ecRecover=new Pe({callName:"personal_ecRecover",params:2,inputFormatter:[he,null],outputFormatter:Yr}),Ce.personal_unlockAccount=new Pe({callName:"personal_unlockAccount",params:3,inputFormatter:[Gt,null,Ee],outputFormatter:fe}),Ce.personal_sendTransaction=new Pe({callName:"personal_sendTransaction",params:2,inputFormatter:[ri,null],outputFormatter:Ue}),Ce.personal_lockAccount=new Pe({callName:"personal_lockAccount",params:1,inputFormatter:[Gt],outputFormatter:fe}),Ce.personal_listAccounts=new Wt({getter:"personal_listAccounts",outputFormatter:bt}),Ce.net_listening=new Wt({getter:"net_listening",outputFormatter:fe}),Ce.net_peerCount=new Wt({getter:"net_peerCount",outputFormatter:ye}),Ce.eth_newFilter=new Pe({callName:"eth_newFilter",params:1,inputFormatter:[Zl],outputFormatter:Ae}),Ce.eth_getLogs=new Pe({callName:"eth_getLogs",params:1,inputFormatter:[bt],outputFormatter:bt}),Ce.eth_newBlockFilter=new Pe({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ce.eth_newPendingTransactionFilter=new Pe({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Ae}),Ce.eth_uninstallFilter=new Pe({callName:"eth_uninstallFilter",params:1,inputFormatter:[Ae],outputFormatter:fe}),Ce.eth_getFilterLogs=new Pe({callName:"eth_getFilterLogs",params:1,inputFormatter:[Ae],outputFormatter:bt}),Ce.eth_getFilterChanges=new Pe({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:bt}),Ce.eth_submitHashrate=new Pe({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:fe}),Ce.shh_newIdentity=new Pe({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_hasIdentity=new Pe({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newGroup=new Pe({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:Ue}),Ce.shh_addToGroup=new Pe({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_newFilter=new Pe({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Ae}),Ce.shh_uninstallFilter=new Pe({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:fe}),Ce.shh_getLogs=new Pe({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:bt}),Ce.shh_getFilterMessages=new Pe({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:bt}),Ce.shh_getFilterChanges=new Pe({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:bt}),Ce.shh_getMessages=new Pe({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:bt});function Te(i,l){const v=r.eth[l];if(!v)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(i,l,{value:function(...k){return v.execute(this,...k)}})}class _e{constructor(l){this.provider=l,this.requests=new Map}async sendAsync(l){const v=await this.provider;if(!v)throw new Error("Provider not set or invalid");const k=Xs(l.method,l.params),M=s();return this.requests.set(k.id,M),v.sendAsync(k,((V,se)=>{this.requests.delete(k.id),V?M.reject(V):zl(se)?M.resolve(se.result):M.reject((function(me){const ke=me&&me.error&&me.error.message?me.error.message:"Invalid JSON RPC response: "+JSON.stringify(me);return new Error(ke)})(se))})),M}setProvider(l){this.provider=l}async getConfirmedTransaction(l){const v=await this.waitForCompletion(l);if(this.isFailure(v))throw new Error(`Transaction "${l}" failed`);return v}async waitForCompletion(l,v){const k=Vn(l);if(await this.isTxDropped(k,v)){const M=await this.getTransactionAndReceipt(k);return Object.assign(Object.assign({},M),{status:r.TransactionStatus.failed})}for(;;){const M=await this.getTransactionAndReceipt(k);if(!this.isPending(M)&&M.receipt)return Object.assign(Object.assign({},M),{status:this.isFailure(M)?r.TransactionStatus.failed:r.TransactionStatus.confirmed});await iu(2e3)}}async getTransaction(l){let v,k=null;const M=Vn(l);try{const se=(await this.eth_accounts())[0];se&&(k=await this.eth_getTransactionCount(se,"latest"))}catch{k=null}try{if(v=await this.eth_getTransactionByHash(M),v===null)return null}catch{return null}if(v.blockNumber===null){if(k!==null){if(v.nonce<k)return{hash:M,type:r.TransactionType.replaced,nonce:v.nonce};if(v.nonce>k)return{hash:M,type:r.TransactionType.queued,nonce:v.nonce}}return Object.assign({type:r.TransactionType.pending},v)}let V;try{if(V=await this.eth_getTransactionReceipt(M),V===null||V.status===0)return Object.assign({type:r.TransactionType.reverted},v)}catch{return null}return Object.assign(Object.assign({type:r.TransactionType.confirmed},v),{receipt:V})}async isTxDropped(l,v=15){let k=v;for(;k>0;){if(await this.getTransactionAndReceipt(l)!==null)return!1;k-=1,await iu(2e3)}return!0}async getTransactionAndReceipt(l){l=Vn(l);const[v,k]=await Promise.all([this.eth_getTransactionByHash(l),this.eth_getTransactionReceipt(l)]);return Object.assign(Object.assign({},v),{receipt:k})}isPending(l){return l&&l.blockNumber===null}isFailure(l){return l&&(!l.receipt||l.receipt.status===0)}}xe([Te,Se("design:type",Function)],_e.prototype,"web3_clientVersion",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"web3_sha3",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_version",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_peerCount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"net_listening",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_protocolVersion",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_syncing",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_coinbase",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_mining",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_hashrate",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_gasPrice",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_accounts",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_blockNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBalance",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getStorageAt",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionCount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockTransactionCountByNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleCountByBlockNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getCode",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sign",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sendTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_sendRawTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_call",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_estimateGas",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getBlockByNumber",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByHash",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getTransactionReceipt",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleByBlockHashAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newBlockFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_newPendingTransactionFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_uninstallFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getFilterChanges",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getFilterLogs",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getLogs",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_getWork",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_submitWork",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"eth_submitHashrate",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_post",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_version",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newIdentity",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_hasIdentity",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newGroup",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_addToGroup",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_newFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_uninstallFilter",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_getFilterChanges",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"shh_getMessages",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_unlockAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_newAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_listAccounts",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_lockAccount",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_importRawKey",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_sendTransaction",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_sign",void 0),xe([Te,Se("design:type",Function)],_e.prototype,"personal_ecRecover",void 0);class cu{constructor(l){this.json=l,this._inputTypes=l.inputs||[],this._outputTypes=l.outputs||[],this._constant=!!l.constant,this._payable=!!l.payable||l.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in l&&!l.constant||l.stateMutability==="nonpayable",this._name=ie(l)}extractDefaultBlock(l){return l.length>this._inputTypes.length&&!zt(l[l.length-1])&&yn(l.pop())||"latest"}validateArgs(l){if(l.some((V=>V===void 0)))throw new Error("Invalid call, some arguments are undefined");const v=l.filter((function(V){return!(zt(V)===!0&&sr(V)===!1&&Vt(V)===!1&&!(V instanceof Uint8Array))}));if(v.length!==this._inputTypes.length)throw k=v.length,M=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${k}, expected: ${M}`);var k,M}toPayload(l){let v={to:void 0,data:void 0,value:void 0,from:void 0};l.length>this._inputTypes.length&&zt(l[l.length-1])&&(v=l.pop()),this.validateArgs(l);const k=this.signature();let M=r.coder.encodeParams(this._inputTypes,l);return M.indexOf("0x")===0&&(M=M.substr(2)),v.data="0x"+k+M,v}signature(){return j(this._name).slice(0,8)}unpackOutput(l){if(!l)return;const v=l.length>=2?l.slice(2):l,k=r.coder.decodeParams(this._outputTypes,v);return k.length===1?k[0]:k}async execute(l,v,...k){if(!l)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const M=this.toPayload(k);if(M.to=v,M.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!M.from)throw new Error('Missing "from" in transaction options');return await l.eth_sendTransaction(M)}{const M=this.extractDefaultBlock(k),V=this.toPayload(k);V.to=v;const se=await l.eth_call(V,M);return this.unpackOutput(se)}}estimateGas(l,v,...k){if(!(l instanceof _e))throw new Error("estimateGas needs to receive a RequestManager as first argument");const M=this.toPayload(k);return M.to=v,l.eth_estimateGas(M)}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}attachToContract(l){const v=this.displayName(),k=Object.assign(((...M)=>this.execute(l.requestManager,l.address,...M)),{estimateGas:this.estimateGas.bind(this,l.requestManager,l.address),toPayload:(...M)=>this.toPayload(M),toRPCMessage:(...M)=>{const V=this.extractDefaultBlock(M),se=this.toPayload(M);return se.to=l.address,{method:"eth_call",params:[se,V]}},unpackOutput:M=>this.unpackOutput(M)});l[v]||(l[v]=k),l[v][this.typeName()]=k}}function lu(i){if(i==null)return null;const l=String(i).toString();return l.indexOf("0x")===0?l:R(L(l))}class si{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=v=>v,this.filterId=s(),this.callbacks=[],this.stopSemaphore=s()}async watch(l){if(this.isDisposed)throw new Error("The filter was disposed");l&&(this.callbacks.push(l),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const l=await this.getNewFilter();if(!l)throw new Error("Could not create a filter, response: "+JSON.stringify(l));this.filterId.resolve(l)}catch(l){throw l}this.stopSemaphore=s(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const l=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${l}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const v=await this.getChanges();v&&this.callbacks.forEach((k=>{this.formatter?v.forEach((M=>{k(this.formatter(M))})):v.forEach((M=>k(M)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=s(),setTimeout((l=()=>this.poll(),function(){l().catch((v=>console.error(v)))}),500))}else this.stopSemaphore.resolve(1);var l}}class Ta extends si{constructor(l,v,k=(M=>M)){super(l),this.requestManager=l,this.options=v,this.formatter=k,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(M){return lu(M)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?Ct(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?Ct(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const l=await this.filterId;return this.requestManager.eth_getFilterLogs(l)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const l=await this.filterId;return this.requestManager.eth_getFilterChanges(l)}async uninstall(){const l=await this.filterId;return this.requestManager.eth_uninstallFilter(l)}}class ii{constructor(l,v,k){this.requestManager=l,this.address=k,this._anonymous=!1,this._params=v.inputs||[],this._name=ie(v),this._anonymous=v.anonymous||!1}types(l){return this._params.filter((function(v){return v.indexed===l}))}displayName(){return Re(this._name)}typeName(){return we(this._name)||"void"}signature(){return j(this._name)}encode(l={},v={}){const k={topics:[],address:this.address};v.fromBlock!==void 0&&(k.fromBlock=Ct(v.fromBlock)||void 0),v.toBlock!==void 0&&(k.toBlock=Ct(v.toBlock)||void 0),k.topics=k.topics||[],this._anonymous||k.topics.push("0x"+this.signature());const M=this._params.filter((function(V){return V.indexed===!0})).map((function(V){const se=l[V.name];return se==null?null:sr(se)?se.map((function(me){return"0x"+r.coder.encodeParams([V],[me])})):"0x"+r.coder.encodeParams([V],[se])}));return k.topics=k.topics.concat(M),k}decode(l){l.data=l.data||"",l.topics=l.topics||[];const v=(this._anonymous?l.topics:l.topics.slice(1)).map((function(me){return me.slice(2)})).join(""),k=r.coder.decodeParams(this.types(!0),v),M=l.data.slice(2),V=r.coder.decodeParams(this.types(!1),M),se=this._params.reduce((function(me,ke){return me[ke.name]=ke.indexed?k.shift():V.shift(),me}),{});return Object.assign(Object.assign({},mo(l)),{event:this.displayName(),address:l.address,args:se})}async execute(l,v){const k=this.encode(l,v),M=this.decode.bind(this);return new Ta(this.requestManager,k,M)}attachToContract(l){const v=this.execute.bind(this),k=this.displayName();l.events[k]||(l.events[k]=v),l.events[k][this.typeName()]=this.execute.bind(this,l)}}class Wh{constructor(l,v,k){this._requestManager=l,this._json=v,this._address=k}encode(l={}){const v={address:this._address};return l.fromBlock!==void 0&&(v.fromBlock=Ct(l.fromBlock)||void 0),l.toBlock!==void 0&&(v.toBlock=Ct(l.toBlock)||void 0),v}decode(l){l.data=l.data||"";const v=sr(l.topics)&&Pt(l.topics[0])?l.topics[0].slice(2):"",k=this._json.filter((function(M){return v===j(ie(M))}))[0];return k?new ii(this._requestManager,k,this._address).decode(l):mo(l)}async execute(l){const v=this.encode(l),k=this.decode.bind(this);return new Ta(this._requestManager,v,k)}getAllEventsFunction(){return this.execute.bind(this)}}class uu{constructor(l,v,k){var M;this.requestManager=l,this.abi=v,this.address=k,this.events={},this.transactionHash=null,this.address=k,this.abi=v,(M=this).abi.filter((function(V){return V.type==="function"})).map((function(V){return new cu(V)})).forEach((function(V){V.attachToContract(M)})),this.allEvents=(function(V){const se=V.abi.filter((function(ke){return ke.type==="event"})),me=new Wh(V.requestManager,se,V.address);return se.map((function(ke){return new ii(V.requestManager,ke,V.address)})).forEach((function(ke){ke.attachToContract(V)})),me.getAllEventsFunction()})(this)}}r.AbstractFilter=si,r.BigNumber=ae,r.Contract=uu,r.ContractFactory=class{constructor(i,l){this.requestManager=i,this.abi=l}async deploy(...i){let l;const v=i[i.length-1];if(zt(v)&&!sr(v)&&(l=i.pop()),!l)throw new Error("Missing options object");if(!l.data||typeof l.data!="string")throw new Error("Invalid options.data");if(ye(l.value)>0&&!(this.abi.filter((function(Ne){return Ne.type==="constructor"&&Ne.inputs.length===i.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const k=(M=this.abi,V=i,M.filter((function(Ne){return Ne.type==="constructor"&&Ne.inputs&&Ne.inputs.length===V.length})).map((function(Ne){return Ne.inputs||[]})).map((function(Ne){return r.coder.encodeParams(Ne,V)}))[0]||"");var M,V;l.data+=k,l.gas||(l.gas=await this.requestManager.eth_estimateGas(l));const se=await this.requestManager.eth_sendTransaction(l);if(!se)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const me=await(async function(Ne,Ft){const lt=s();let ge=0;const Tt=()=>{ge++,ge>50?lt.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Ne.eth_getTransactionReceipt(Ft).then((Ot=>{Ot&&Ot.blockHash?lt.resolve(Ot):setTimeout(Tt,1e3)}),(Ot=>lt.reject(Ot)))};Tt();const Xe=await lt,et=await Ne.eth_getCode(Xe.contractAddress,"latest");if(et&&et.length>3)return Xe.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:et,receipt:Xe})})(this.requestManager,se),ke=await this.at(me);return ke.transactionHash=se,ke}async at(i){if(!Xt(i))throw new TypeError(`Invalid address ${JSON.stringify(i)}`);return new uu(this.requestManager,this.abi,i)}},r.EthBlockFilter=class extends Ta{constructor(i){super(i,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=Ta,r.EthPendingTransactionFilter=class extends Ta{constructor(i){super(i,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(i,l={}){this.host=i,this.options=l,this.debug=!1,this.host=i||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(i,l){try{let v=null;v=i instanceof Array?i.map((V=>n(V))):n(i);const k=this.options.fetch||globalThis.fetch;if(k===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const M={body:JSON.stringify(v),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+M.body),k(this.host,M).then((async V=>{if(V.ok){const se=await V.json();this.debug&&console.log("RECV << "+JSON.stringify(se)),se.error?l(Object.assign(new Error(se.error.json||se.error),se.error)):l(null,se)}else{const se=(typeof V.text=="function"?await V.text().catch((()=>"")):"").trim().slice(0,512),me="External error. response code: "+V.status+(se?" — "+se:"");this.debug&&console.log("ERR << "+me),l(new Error(me))}}),(V=>{this.debug&&console.log("ERR << "+JSON.stringify(V)),l(V)}))}catch(v){this.debug&&console.log("ERR << "+JSON.stringify(v)),l(v)}}},r.Method=Pe,r.Property=Wt,r.RequestManager=_e,r.SHHFilter=class extends si{constructor(i,l){super(i),this.requestManager=i,this.options=l,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(v){return lu(v)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const i=await this.filterId;return this.requestManager.shh_getMessages(i)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const i=await this.filterId;return this.requestManager.shh_getFilterChanges(i)}async uninstall(){const i=await this.filterId;return this.requestManager.shh_uninstallFilter(i)}},r.SolidityEvent=ii,r.SolidityFunction=cu,r.WebSocketProvider=class{constructor(i,l={}){this.url=i,this.options=l,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const i=this.connection;this.timeout(new Error("Provider disposed.")),i.then((l=>l.close())).catch((l=>{this.debug&&console.error(l)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(i,l){const v=[];let k;if(i instanceof Array)k=Promise.all(i.map((M=>{const V=s();try{const se=n(M);v.push(se),this.responseCallbacks.set(se.id,V)}catch(se){V.reject(se)}return V})));else{const M=s();try{const V=n(i);v.push(V),this.responseCallbacks.set(V.id,M)}catch(V){M.reject(V)}k=M}k.then((M=>l(null,M)),(M=>l(M))),this.connection.then((M=>{v.forEach((V=>{const se=JSON.stringify(V);this.debug&&console.log("SEND >> "+se),M.send(se)}))}),(M=>{l(M)}))}parseResponse(i){const l=[];return i.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((v=>{let k=v;this.lastChunk&&(k=this.lastChunk+k);let M=null;try{M=JSON.parse(k)}catch{return this.lastChunk=k,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",M&&l.push(M)})),l}processMessage(i){if("id"in i){const l=i.id,v=this.responseCallbacks.get(l);if(!v)return void console.error("Error: Received a response for an unknown request",i);this.responseCallbacks.delete(l),i.error!==void 0&&i.error!==null?v.reject(Object.assign(new Error(i.error.message||i.error),i.error)):"result"in i&&v.resolve(i)}else this.notificationCallbacks.forEach((l=>l(null,i)))}timeout(i){this.connection&&this.connection.isPending||(this.connection=s());const l=i||new Error("Connection timeout");this.responseCallbacks.forEach((v=>v.reject(l))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((v=>v.close())).catch((v=>{this.debug&&console.error(v)})),this.connection&&this.connection.isPending||(this.connection=s()),this.lastChunk="";const i=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!i)throw new Error("Please provide a WebSocketConstructor");const l=new i(this.url,this.options.protocol);l.onopen=()=>{this.connection.resolve(l)},l.onerror=v=>{const k=new Error("Error in web socket");k.data=v,this.timeout(k)},l.onclose=v=>{this.timeout(new Error(`Connection closed (${v&&v.reason||"Unknown reason"})`))},l.onmessage=v=>{const k=typeof v.data=="string"?v.data:"";this.debug&&console.log("RECV << "+v.data),this.parseResponse(k).forEach((M=>{M instanceof Array?M.forEach((V=>this.processMessage(V))):this.processMessage(M)}))}}},r.bytesToHex=R,r.bytesToUtf8String=N,r.concatBytes=le,r.default=_e,r.extractDisplayName=Re,r.extractTypeName=we,r.fromAscii=function(i,l=0){let v="";for(let k=0;k<i.length;k++){const M=i.charCodeAt(k).toString(16);v+=M.length<2?"0"+M:M}return"0x"+v.padEnd(l,"0")},r.fromDecimal=ve,r.fromTwosComplement=or,r.fromWei=function(i,l){const v=Be(i).dividedBy(Me(l));return Vt(i)?v:v.toString(10)},r.getAddress=Ht,r.getValueOfUnit=Me,r.hexToBytes=H,r.inputAddressFormatter=Gt,r.inputBlockNumberFormatter=Ct,r.inputCallFormatter=ti,r.inputDefaultBlockNumberFormatter=yn,r.inputFilterOptions=Zl,r.inputPostFormatter=function(i){return i?(i.ttl=ve(i.ttl),i.workToProve=ve(i.workToProve),i.priority=ve(i.priority),sr(i.topics)||(i.topics=i.topics?[i.topics]:[]),i.topics=i.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(L(l))})),i):null},r.inputTransactionFormatter=ri,r.inputTransactionId=Vn,r.isAddress=Xt,r.isArray=sr,r.isBigNumber=Vt,r.isBloom=function(i){return!!/^(0x)?[0-9a-f]{512}$/i.test(i)&&!!/^(0x)?[0-9a-f]{512}$/i.test(i)},r.isBoolean=Ca,r.isChecksumAddress=Un,r.isFunction=function(i){return typeof i=="function"},r.isHex=function(i){return typeof i=="string"&&/^0x[0-9a-fA-F]+$/.test(i)},r.isJson=function(i){try{return!!JSON.parse(i)}catch{return!1}},r.isObject=zt,r.isPredefinedBlockNumber=Gl,r.isStrictAddress=Or,r.isString=Pt,r.isTopic=function(i){return!!/^(0x)?[0-9a-f]{64}$/i.test(i)&&!!/^(0x)?[0-9a-f]{64}$/i.test(i)},r.isValidResponse=zl,r.outputBigNumberFormatter=ei,r.outputBlockFormatter=xa,r.outputLogFormatter=mo,r.outputPostFormatter=function(i){return i?(i.expiry=ye(i.expiry),i.sent=ye(i.sent),i.ttl=ye(i.ttl),i.workProved=ye(i.workProved),i.topics||(i.topics=[]),i.topics=i.topics.map((function(l){return ce(l)})),i):null},r.outputSyncingFormatter=Kl,r.outputTransactionFormatter=Ea,r.outputTransactionReceiptFormatter=Wl,r.padLeft=Y,r.padRight=function(i,l,v){return i+new Array(l-i.length+1).join(v||"0")},r.sha3=j,r.signedIsNegative=Ut,r.stringToUtf8Bytes=L,r.toAddress=Yr,r.toArray=bt,r.toAscii=ce,r.toBatchPayload=function(i){return i.map((function(l){return Xs(l.method,l.params)}))},r.toBigNumber=Be,r.toBoolean=fe,r.toChecksumAddress=gr,r.toData=Ue,r.toDecimal=ye,r.toHex=Ae,r.toJsonRpcRequest=Xs,r.toNullDecimal=Ee,r.toString=Ge,r.toStringData=he,r.toTwosComplement=at,r.toWei=function(i,l){const v=Be(i).times(Me(l));return Vt(i)?v:v.toString(10)},r.transformToFullName=ie,Object.defineProperty(r,"__esModule",{value:!0})}))})(Ma,Ma.exports)),Ma.exports}var as={},Hu;function Eg(){if(Hu)return as;Hu=1,Object.defineProperty(as,"__esModule",{value:!0}),as.SignatureValidator=t;const e=js();async function t(r,n){const a=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(r,a).at(n)}return as}var Cr={},gi={},yi={},wn={},$r={},xt={},Vu;function Sl(){if(Vu)return xt;Vu=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.output=xt.exists=xt.hash=xt.bytes=xt.bool=xt.number=xt.isBytes=void 0;function e(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`positive integer expected, not ${f}`)}xt.number=e;function t(f){if(typeof f!="boolean")throw new Error(`boolean expected, not ${f}`)}xt.bool=t;function r(f){return f instanceof Uint8Array||f!=null&&typeof f=="object"&&f.constructor.name==="Uint8Array"}xt.isBytes=r;function n(f,...h){if(!r(f))throw new Error("Uint8Array expected");if(h.length>0&&!h.includes(f.length))throw new Error(`Uint8Array expected of length ${h}, not of length=${f.length}`)}xt.bytes=n;function a(f){if(typeof f!="function"||typeof f.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(f.outputLen),e(f.blockLen)}xt.hash=a;function o(f,h=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(h&&f.finished)throw new Error("Hash#digest() has already been called")}xt.exists=o;function s(f,h){n(f);const m=h.outputLen;if(f.length<m)throw new Error(`digestInto() expects output buffer of length at least ${m}`)}xt.output=s;const d={number:e,bool:t,bytes:n,hash:a,exists:o,output:s};return xt.default=d,xt}var vi={},ka={},zu;function xg(){return zu||(zu=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.crypto=void 0,ka.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),ka}var Gu;function oo(){return Gu||(Gu=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.byteSwap32=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=e.isBytes=void 0;const t=xg(),r=Sl();function n(J){return J instanceof Uint8Array||J!=null&&typeof J=="object"&&J.constructor.name==="Uint8Array"}e.isBytes=n;const a=J=>new Uint8Array(J.buffer,J.byteOffset,J.byteLength);e.u8=a;const o=J=>new Uint32Array(J.buffer,J.byteOffset,Math.floor(J.byteLength/4));e.u32=o;const s=J=>new DataView(J.buffer,J.byteOffset,J.byteLength);e.createView=s;const d=(J,L)=>J<<32-L|J>>>L;e.rotr=d;const f=(J,L)=>J<<L|J>>>32-L>>>0;e.rotl=f,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const h=J=>J<<24&4278190080|J<<8&16711680|J>>>8&65280|J>>>24&255;e.byteSwap=h,e.byteSwapIfBE=e.isLE?J=>J:J=>(0,e.byteSwap)(J);function m(J){for(let L=0;L<J.length;L++)J[L]=(0,e.byteSwap)(J[L])}e.byteSwap32=m;const p=Array.from({length:256},(J,L)=>L.toString(16).padStart(2,"0"));function b(J){(0,r.bytes)(J);let L="";for(let N=0;N<J.length;N++)L+=p[J[N]];return L}e.bytesToHex=b;const _={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function T(J){if(J>=_._0&&J<=_._9)return J-_._0;if(J>=_._A&&J<=_._F)return J-(_._A-10);if(J>=_._a&&J<=_._f)return J-(_._a-10)}function y(J){if(typeof J!="string")throw new Error("hex string expected, got "+typeof J);const L=J.length,N=L/2;if(L%2)throw new Error("padded hex string expected, got unpadded hex of length "+L);const Z=new Uint8Array(N);for(let P=0,F=0;P<N;P++,F+=2){const H=T(J.charCodeAt(F)),R=T(J.charCodeAt(F+1));if(H===void 0||R===void 0){const j=J[F]+J[F+1];throw new Error('hex string expected, got non-hex character "'+j+'" at index '+F)}Z[P]=H*16+R}return Z}e.hexToBytes=y;const I=async()=>{};e.nextTick=I;async function W(J,L,N){let Z=Date.now();for(let P=0;P<J;P++){N(P);const F=Date.now()-Z;F>=0&&F<L||(await(0,e.nextTick)(),Z+=F)}}e.asyncLoop=W;function g(J){if(typeof J!="string")throw new Error(`utf8ToBytes expected string, got ${typeof J}`);return new Uint8Array(new TextEncoder().encode(J))}e.utf8ToBytes=g;function A(J){return typeof J=="string"&&(J=g(J)),(0,r.bytes)(J),J}e.toBytes=A;function w(...J){let L=0;for(let Z=0;Z<J.length;Z++){const P=J[Z];(0,r.bytes)(P),L+=P.length}const N=new Uint8Array(L);for(let Z=0,P=0;Z<J.length;Z++){const F=J[Z];N.set(F,P),P+=F.length}return N}e.concatBytes=w;class K{clone(){return this._cloneInto()}}e.Hash=K;const U={}.toString;function x(J,L){if(L!==void 0&&U.call(L)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(J,L)}e.checkOpts=x;function q(J){const L=Z=>J().update(A(Z)).digest(),N=J();return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=()=>J(),L}e.wrapConstructor=q;function Q(J){const L=(Z,P)=>J(P).update(A(Z)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=Z=>J(Z),L}e.wrapConstructorWithOpts=Q;function ee(J){const L=(Z,P)=>J(P).update(A(Z)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=Z=>J(Z),L}e.wrapXOFConstructorWithOpts=ee;function ae(J=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(J));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=ae})(vi)),vi}var Wu;function Sg(){if(Wu)return $r;Wu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.HashMD=$r.Maj=$r.Chi=void 0;const e=Sl(),t=oo();function r(s,d,f,h){if(typeof s.setBigUint64=="function")return s.setBigUint64(d,f,h);const m=BigInt(32),p=BigInt(4294967295),b=Number(f>>m&p),_=Number(f&p),T=h?4:0,y=h?0:4;s.setUint32(d+T,b,h),s.setUint32(d+y,_,h)}const n=(s,d,f)=>s&d^~s&f;$r.Chi=n;const a=(s,d,f)=>s&d^s&f^d&f;$r.Maj=a;class o extends t.Hash{constructor(d,f,h,m){super(),this.blockLen=d,this.outputLen=f,this.padOffset=h,this.isLE=m,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(d),this.view=(0,t.createView)(this.buffer)}update(d){(0,e.exists)(this);const{view:f,buffer:h,blockLen:m}=this;d=(0,t.toBytes)(d);const p=d.length;for(let b=0;b<p;){const _=Math.min(m-this.pos,p-b);if(_===m){const T=(0,t.createView)(d);for(;m<=p-b;b+=m)this.process(T,b);continue}h.set(d.subarray(b,b+_),this.pos),this.pos+=_,b+=_,this.pos===m&&(this.process(f,0),this.pos=0)}return this.length+=d.length,this.roundClean(),this}digestInto(d){(0,e.exists)(this),(0,e.output)(d,this),this.finished=!0;const{buffer:f,view:h,blockLen:m,isLE:p}=this;let{pos:b}=this;f[b++]=128,this.buffer.subarray(b).fill(0),this.padOffset>m-b&&(this.process(h,0),b=0);for(let W=b;W<m;W++)f[W]=0;r(h,m-8,BigInt(this.length*8),p),this.process(h,0);const _=(0,t.createView)(d),T=this.outputLen;if(T%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=T/4,I=this.get();if(y>I.length)throw new Error("_sha2: outputLen bigger than state");for(let W=0;W<y;W++)_.setUint32(4*W,I[W],p)}digest(){const{buffer:d,outputLen:f}=this;this.digestInto(d);const h=d.slice(0,f);return this.destroy(),h}_cloneInto(d){d||(d=new this.constructor),d.set(...this.get());const{blockLen:f,buffer:h,length:m,finished:p,destroyed:b,pos:_}=this;return d.length=m,d.pos=_,d.finished=p,d.destroyed=b,m%f&&d.buffer.set(h),d}}return $r.HashMD=o,$r}var Zu;function Tg(){if(Zu)return wn;Zu=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.sha224=wn.sha256=void 0;const e=Sg(),t=oo(),r=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);class o extends e.HashMD{constructor(){super(64,32,8,!1),this.A=n[0]|0,this.B=n[1]|0,this.C=n[2]|0,this.D=n[3]|0,this.E=n[4]|0,this.F=n[5]|0,this.G=n[6]|0,this.H=n[7]|0}get(){const{A:f,B:h,C:m,D:p,E:b,F:_,G:T,H:y}=this;return[f,h,m,p,b,_,T,y]}set(f,h,m,p,b,_,T,y){this.A=f|0,this.B=h|0,this.C=m|0,this.D=p|0,this.E=b|0,this.F=_|0,this.G=T|0,this.H=y|0}process(f,h){for(let g=0;g<16;g++,h+=4)a[g]=f.getUint32(h,!1);for(let g=16;g<64;g++){const A=a[g-15],w=a[g-2],K=(0,t.rotr)(A,7)^(0,t.rotr)(A,18)^A>>>3,U=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;a[g]=U+a[g-7]+K+a[g-16]|0}let{A:m,B:p,C:b,D:_,E:T,F:y,G:I,H:W}=this;for(let g=0;g<64;g++){const A=(0,t.rotr)(T,6)^(0,t.rotr)(T,11)^(0,t.rotr)(T,25),w=W+A+(0,e.Chi)(T,y,I)+r[g]+a[g]|0,U=((0,t.rotr)(m,2)^(0,t.rotr)(m,13)^(0,t.rotr)(m,22))+(0,e.Maj)(m,p,b)|0;W=I,I=y,y=T,T=_+w|0,_=b,b=p,p=m,m=w+U|0}m=m+this.A|0,p=p+this.B|0,b=b+this.C|0,_=_+this.D|0,T=T+this.E|0,y=y+this.F|0,I=I+this.G|0,W=W+this.H|0,this.set(m,p,b,_,T,y,I,W)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class s extends o{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return wn.sha256=(0,t.wrapConstructor)(()=>new o),wn.sha224=(0,t.wrapConstructor)(()=>new s),wn}var Ia={},bi={},Ku;function Ag(){return Ku||(Ku=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Sl(),r=oo();class n extends r.Hash{constructor(s,d){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(s);const f=(0,r.toBytes)(d);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,m=new Uint8Array(h);m.set(f.length>h?s.create().update(f).digest():f);for(let p=0;p<m.length;p++)m[p]^=54;this.iHash.update(m),this.oHash=s.create();for(let p=0;p<m.length;p++)m[p]^=106;this.oHash.update(m),m.fill(0)}update(s){return(0,t.exists)(this),this.iHash.update(s),this}digestInto(s){(0,t.exists)(this),(0,t.bytes)(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:d,iHash:f,finished:h,destroyed:m,blockLen:p,outputLen:b}=this;return s=s,s.finished=h,s.destroyed=m,s.blockLen=p,s.outputLen=b,s.oHash=d._cloneInto(s.oHash),s.iHash=f._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const a=(o,s,d)=>new n(o,s).update(d).digest();e.hmac=a,e.hmac.create=(o,s)=>new n(o,s)})(bi)),bi}var wi={},Ra={},st={},nt={},Yu;function ya(){if(Yu)return nt;Yu=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.bitMask=void 0,nt.isBytes=n,nt.abytes=a,nt.bytesToHex=s,nt.numberToHexUnpadded=d,nt.hexToNumber=f,nt.hexToBytes=p,nt.bytesToNumberBE=b,nt.bytesToNumberLE=_,nt.numberToBytesBE=T,nt.numberToBytesLE=y,nt.numberToVarBytesBE=I,nt.ensureBytes=W,nt.concatBytes=g,nt.equalBytes=A,nt.utf8ToBytes=w,nt.bitLen=K,nt.bitGet=U,nt.bitSet=x,nt.createHmacDrbg=ae,nt.validateObject=L;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),r=BigInt(2);function n(N){return N instanceof Uint8Array||N!=null&&typeof N=="object"&&N.constructor.name==="Uint8Array"}function a(N){if(!n(N))throw new Error("Uint8Array expected")}const o=Array.from({length:256},(N,Z)=>Z.toString(16).padStart(2,"0"));function s(N){a(N);let Z="";for(let P=0;P<N.length;P++)Z+=o[N[P]];return Z}function d(N){const Z=N.toString(16);return Z.length&1?`0${Z}`:Z}function f(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);return BigInt(N===""?"0":`0x${N}`)}const h={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function m(N){if(N>=h._0&&N<=h._9)return N-h._0;if(N>=h._A&&N<=h._F)return N-(h._A-10);if(N>=h._a&&N<=h._f)return N-(h._a-10)}function p(N){if(typeof N!="string")throw new Error("hex string expected, got "+typeof N);const Z=N.length,P=Z/2;if(Z%2)throw new Error("padded hex string expected, got unpadded hex of length "+Z);const F=new Uint8Array(P);for(let H=0,R=0;H<P;H++,R+=2){const j=m(N.charCodeAt(R)),z=m(N.charCodeAt(R+1));if(j===void 0||z===void 0){const Y=N[R]+N[R+1];throw new Error('hex string expected, got non-hex character "'+Y+'" at index '+R)}F[H]=j*16+z}return F}function b(N){return f(s(N))}function _(N){return a(N),f(s(Uint8Array.from(N).reverse()))}function T(N,Z){return p(N.toString(16).padStart(Z*2,"0"))}function y(N,Z){return T(N,Z).reverse()}function I(N){return p(d(N))}function W(N,Z,P){let F;if(typeof Z=="string")try{F=p(Z)}catch(R){throw new Error(`${N} must be valid hex string, got "${Z}". Cause: ${R}`)}else if(n(Z))F=Uint8Array.from(Z);else throw new Error(`${N} must be hex string or Uint8Array`);const H=F.length;if(typeof P=="number"&&H!==P)throw new Error(`${N} expected ${P} bytes, got ${H}`);return F}function g(...N){let Z=0;for(let F=0;F<N.length;F++){const H=N[F];a(H),Z+=H.length}const P=new Uint8Array(Z);for(let F=0,H=0;F<N.length;F++){const R=N[F];P.set(R,H),H+=R.length}return P}function A(N,Z){if(N.length!==Z.length)return!1;let P=0;for(let F=0;F<N.length;F++)P|=N[F]^Z[F];return P===0}function w(N){if(typeof N!="string")throw new Error(`utf8ToBytes expected string, got ${typeof N}`);return new Uint8Array(new TextEncoder().encode(N))}function K(N){let Z;for(Z=0;N>e;N>>=t,Z+=1);return Z}function U(N,Z){return N>>BigInt(Z)&t}function x(N,Z,P){return N|(P?t:e)<<BigInt(Z)}const q=N=>(r<<BigInt(N-1))-t;nt.bitMask=q;const Q=N=>new Uint8Array(N),ee=N=>Uint8Array.from(N);function ae(N,Z,P){if(typeof N!="number"||N<2)throw new Error("hashLen must be a number");if(typeof Z!="number"||Z<2)throw new Error("qByteLen must be a number");if(typeof P!="function")throw new Error("hmacFn must be a function");let F=Q(N),H=Q(N),R=0;const j=()=>{F.fill(1),H.fill(0),R=0},z=(...le)=>P(H,F,...le),Y=(le=Q())=>{H=z(ee([0]),le),F=z(),le.length!==0&&(H=z(ee([1]),le),F=z())},ce=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let le=0;const de=[];for(;le<Z;){F=z();const Re=F.slice();de.push(Re),le+=F.length}return g(...de)};return(le,de)=>{j(),Y(le);let Re;for(;!(Re=de(ce()));)Y();return j(),Re}}const J={bigint:N=>typeof N=="bigint",function:N=>typeof N=="function",boolean:N=>typeof N=="boolean",string:N=>typeof N=="string",stringOrUint8Array:N=>typeof N=="string"||n(N),isSafeInteger:N=>Number.isSafeInteger(N),array:N=>Array.isArray(N),field:(N,Z)=>Z.Fp.isValid(N),hash:N=>typeof N=="function"&&Number.isSafeInteger(N.outputLen)};function L(N,Z,P={}){const F=(H,R,j)=>{const z=J[R];if(typeof z!="function")throw new Error(`Invalid validator "${R}", expected function`);const Y=N[H];if(!(j&&Y===void 0)&&!z(Y,N))throw new Error(`Invalid param ${String(H)}=${Y} (${typeof Y}), expected ${R}`)};for(const[H,R]of Object.entries(Z))F(H,R,!1);for(const[H,R]of Object.entries(P))F(H,R,!0);return N}return nt}var Qu;function Ls(){if(Qu)return st;Qu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.isNegativeLE=void 0,st.mod=f,st.pow=h,st.pow2=m,st.invert=p,st.tonelliShanks=b,st.FpSqrt=_,st.validateField=I,st.FpPow=W,st.FpInvertBatch=g,st.FpDiv=A,st.FpIsSquare=w,st.nLength=K,st.Field=U,st.FpSqrtOdd=x,st.FpSqrtEven=q,st.hashToPrivateScalar=Q,st.getFieldBytesLength=ee,st.getMinHashLength=ae,st.mapHashToField=J;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=ya(),t=BigInt(0),r=BigInt(1),n=BigInt(2),a=BigInt(3),o=BigInt(4),s=BigInt(5),d=BigInt(8);BigInt(9),BigInt(16);function f(L,N){const Z=L%N;return Z>=t?Z:N+Z}function h(L,N,Z){if(Z<=t||N<t)throw new Error("Expected power/modulo > 0");if(Z===r)return t;let P=r;for(;N>t;)N&r&&(P=P*L%Z),L=L*L%Z,N>>=r;return P}function m(L,N,Z){let P=L;for(;N-- >t;)P*=P,P%=Z;return P}function p(L,N){if(L===t||N<=t)throw new Error(`invert: expected positive integers, got n=${L} mod=${N}`);let Z=f(L,N),P=N,F=t,H=r;for(;Z!==t;){const j=P/Z,z=P%Z,Y=F-H*j;P=Z,Z=z,F=H,H=Y}if(P!==r)throw new Error("invert: does not exist");return f(F,N)}function b(L){const N=(L-r)/n;let Z,P,F;for(Z=L-r,P=0;Z%n===t;Z/=n,P++);for(F=n;F<L&&h(F,N,L)!==L-r;F++);if(P===1){const R=(L+r)/o;return function(z,Y){const ce=z.pow(Y,R);if(!z.eql(z.sqr(ce),Y))throw new Error("Cannot find square root");return ce}}const H=(Z+r)/n;return function(j,z){if(j.pow(z,N)===j.neg(j.ONE))throw new Error("Cannot find square root");let Y=P,ce=j.pow(j.mul(j.ONE,F),Z),ie=j.pow(z,H),le=j.pow(z,Z);for(;!j.eql(le,j.ONE);){if(j.eql(le,j.ZERO))return j.ZERO;let de=1;for(let we=j.sqr(le);de<Y&&!j.eql(we,j.ONE);de++)we=j.sqr(we);const Re=j.pow(ce,r<<BigInt(Y-de-1));ce=j.sqr(Re),ie=j.mul(ie,Re),le=j.mul(le,ce),Y=de}return ie}}function _(L){if(L%o===a){const N=(L+r)/o;return function(P,F){const H=P.pow(F,N);if(!P.eql(P.sqr(H),F))throw new Error("Cannot find square root");return H}}if(L%d===s){const N=(L-s)/d;return function(P,F){const H=P.mul(F,n),R=P.pow(H,N),j=P.mul(F,R),z=P.mul(P.mul(j,n),R),Y=P.mul(j,P.sub(z,P.ONE));if(!P.eql(P.sqr(Y),F))throw new Error("Cannot find square root");return Y}}return b(L)}const T=(L,N)=>(f(L,N)&r)===r;st.isNegativeLE=T;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function I(L){const N={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},Z=y.reduce((P,F)=>(P[F]="function",P),N);return(0,e.validateObject)(L,Z)}function W(L,N,Z){if(Z<t)throw new Error("Expected power > 0");if(Z===t)return L.ONE;if(Z===r)return N;let P=L.ONE,F=N;for(;Z>t;)Z&r&&(P=L.mul(P,F)),F=L.sqr(F),Z>>=r;return P}function g(L,N){const Z=new Array(N.length),P=N.reduce((H,R,j)=>L.is0(R)?H:(Z[j]=H,L.mul(H,R)),L.ONE),F=L.inv(P);return N.reduceRight((H,R,j)=>L.is0(R)?H:(Z[j]=L.mul(H,Z[j]),L.mul(H,R)),F),Z}function A(L,N,Z){return L.mul(N,typeof Z=="bigint"?p(Z,L.ORDER):L.inv(Z))}function w(L){const N=(L.ORDER-r)/n;return Z=>{const P=L.pow(Z,N);return L.eql(P,L.ZERO)||L.eql(P,L.ONE)}}function K(L,N){const Z=N!==void 0?N:L.toString(2).length,P=Math.ceil(Z/8);return{nBitLength:Z,nByteLength:P}}function U(L,N,Z=!1,P={}){if(L<=t)throw new Error(`Expected Field ORDER > 0, got ${L}`);const{nBitLength:F,nByteLength:H}=K(L,N);if(H>2048)throw new Error("Field lengths over 2048 bytes are not supported");const R=_(L),j=Object.freeze({ORDER:L,BITS:F,BYTES:H,MASK:(0,e.bitMask)(F),ZERO:t,ONE:r,create:z=>f(z,L),isValid:z=>{if(typeof z!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof z}`);return t<=z&&z<L},is0:z=>z===t,isOdd:z=>(z&r)===r,neg:z=>f(-z,L),eql:(z,Y)=>z===Y,sqr:z=>f(z*z,L),add:(z,Y)=>f(z+Y,L),sub:(z,Y)=>f(z-Y,L),mul:(z,Y)=>f(z*Y,L),pow:(z,Y)=>W(j,z,Y),div:(z,Y)=>f(z*p(Y,L),L),sqrN:z=>z*z,addN:(z,Y)=>z+Y,subN:(z,Y)=>z-Y,mulN:(z,Y)=>z*Y,inv:z=>p(z,L),sqrt:P.sqrt||(z=>R(j,z)),invertBatch:z=>g(j,z),cmov:(z,Y,ce)=>ce?Y:z,toBytes:z=>Z?(0,e.numberToBytesLE)(z,H):(0,e.numberToBytesBE)(z,H),fromBytes:z=>{if(z.length!==H)throw new Error(`Fp.fromBytes: expected ${H}, got ${z.length}`);return Z?(0,e.bytesToNumberLE)(z):(0,e.bytesToNumberBE)(z)}});return Object.freeze(j)}function x(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const Z=L.sqrt(N);return L.isOdd(Z)?Z:L.neg(Z)}function q(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const Z=L.sqrt(N);return L.isOdd(Z)?L.neg(Z):Z}function Q(L,N,Z=!1){L=(0,e.ensureBytes)("privateHash",L);const P=L.length,F=K(N).nByteLength+8;if(F<24||P<F||P>1024)throw new Error(`hashToPrivateScalar: expected ${F}-1024 bytes of input, got ${P}`);const H=Z?(0,e.bytesToNumberLE)(L):(0,e.bytesToNumberBE)(L);return f(H,N-r)+r}function ee(L){if(typeof L!="bigint")throw new Error("field order must be bigint");const N=L.toString(2).length;return Math.ceil(N/8)}function ae(L){const N=ee(L);return N+Math.ceil(N/2)}function J(L,N,Z=!1){const P=L.length,F=ee(N),H=ae(N);if(P<16||P<H||P>1024)throw new Error(`expected ${H}-1024 bytes of input, got ${P}`);const R=Z?(0,e.bytesToNumberBE)(L):(0,e.bytesToNumberLE)(L),j=f(R,N-r)+r;return Z?(0,e.numberToBytesLE)(j,F):(0,e.numberToBytesBE)(j,F)}return st}var Ju;function kg(){if(Ju)return Ra;Ju=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.wNAF=a,Ra.validateBasic=o;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Ls(),t=ya(),r=BigInt(0),n=BigInt(1);function a(s,d){const f=(m,p)=>{const b=p.negate();return m?b:p},h=m=>{const p=Math.ceil(d/m)+1,b=2**(m-1);return{windows:p,windowSize:b}};return{constTimeNegate:f,unsafeLadder(m,p){let b=s.ZERO,_=m;for(;p>r;)p&n&&(b=b.add(_)),_=_.double(),p>>=n;return b},precomputeWindow(m,p){const{windows:b,windowSize:_}=h(p),T=[];let y=m,I=y;for(let W=0;W<b;W++){I=y,T.push(I);for(let g=1;g<_;g++)I=I.add(y),T.push(I);y=I.double()}return T},wNAF(m,p,b){const{windows:_,windowSize:T}=h(m);let y=s.ZERO,I=s.BASE;const W=BigInt(2**m-1),g=2**m,A=BigInt(m);for(let w=0;w<_;w++){const K=w*T;let U=Number(b&W);b>>=A,U>T&&(U-=g,b+=n);const x=K,q=K+Math.abs(U)-1,Q=w%2!==0,ee=U<0;U===0?I=I.add(f(Q,p[x])):y=y.add(f(ee,p[q]))}return{p:y,f:I}},wNAFCached(m,p,b,_){const T=m._WINDOW_SIZE||1;let y=p.get(m);return y||(y=this.precomputeWindow(m,T),T!==1&&p.set(m,_(y))),this.wNAF(T,y,b)}}}function o(s){return(0,e.validateField)(s.Fp),(0,t.validateObject)(s,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(s.n,s.nBitLength),...s,p:s.Fp.ORDER})}return Ra}var Xu;function wf(){return Xu||(Xu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=_,e.weierstrass=y,e.SWUFpSqrtRatio=I,e.mapToCurveSimpleSWU=W;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=kg(),r=Ls(),n=ya(),a=ya();function o(g){const A=(0,t.validateBasic)(g);n.validateObject(A,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:K,a:U}=A;if(w){if(!K.eql(U,K.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof w!="object"||typeof w.beta!="bigint"||typeof w.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...A})}const{bytesToNumberBE:s,hexToBytes:d}=n;e.DER={Err:class extends Error{constructor(A=""){super(A)}},_parseInt(g){const{Err:A}=e.DER;if(g.length<2||g[0]!==2)throw new A("Invalid signature integer tag");const w=g[1],K=g.subarray(2,w+2);if(!w||K.length!==w)throw new A("Invalid signature integer: wrong length");if(K[0]&128)throw new A("Invalid signature integer: negative");if(K[0]===0&&!(K[1]&128))throw new A("Invalid signature integer: unnecessary leading zero");return{d:s(K),l:g.subarray(w+2)}},toSig(g){const{Err:A}=e.DER,w=typeof g=="string"?d(g):g;n.abytes(w);let K=w.length;if(K<2||w[0]!=48)throw new A("Invalid signature tag");if(w[1]!==K-2)throw new A("Invalid signature: incorrect length");const{d:U,l:x}=e.DER._parseInt(w.subarray(2)),{d:q,l:Q}=e.DER._parseInt(x);if(Q.length)throw new A("Invalid signature: left bytes after parsing");return{r:U,s:q}},hexFromSig(g){const A=ae=>Number.parseInt(ae[0],16)&8?"00"+ae:ae,w=ae=>{const J=ae.toString(16);return J.length&1?`0${J}`:J},K=A(w(g.s)),U=A(w(g.r)),x=K.length/2,q=U.length/2,Q=w(x),ee=w(q);return`30${w(q+x+4)}02${ee}${U}02${Q}${K}`}};const f=BigInt(0),h=BigInt(1),m=BigInt(2),p=BigInt(3),b=BigInt(4);function _(g){const A=o(g),{Fp:w}=A,K=A.toBytes||((P,F,H)=>{const R=F.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),U=A.fromBytes||(P=>{const F=P.subarray(1),H=w.fromBytes(F.subarray(0,w.BYTES)),R=w.fromBytes(F.subarray(w.BYTES,2*w.BYTES));return{x:H,y:R}});function x(P){const{a:F,b:H}=A,R=w.sqr(P),j=w.mul(R,P);return w.add(w.add(j,w.mul(P,F)),H)}if(!w.eql(w.sqr(A.Gy),x(A.Gx)))throw new Error("bad generator point: equation left != right");function q(P){return typeof P=="bigint"&&f<P&&P<A.n}function Q(P){if(!q(P))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ee(P){const{allowedPrivateKeyLengths:F,nByteLength:H,wrapPrivateKey:R,n:j}=A;if(F&&typeof P!="bigint"){if(n.isBytes(P)&&(P=n.bytesToHex(P)),typeof P!="string"||!F.includes(P.length))throw new Error("Invalid key");P=P.padStart(H*2,"0")}let z;try{z=typeof P=="bigint"?P:n.bytesToNumberBE((0,a.ensureBytes)("private key",P,H))}catch{throw new Error(`private key must be ${H} bytes, hex or bigint, not ${typeof P}`)}return R&&(z=r.mod(z,j)),Q(z),z}const ae=new Map;function J(P){if(!(P instanceof L))throw new Error("ProjectivePoint expected")}class L{constructor(F,H,R){if(this.px=F,this.py=H,this.pz=R,F==null||!w.isValid(F))throw new Error("x required");if(H==null||!w.isValid(H))throw new Error("y required");if(R==null||!w.isValid(R))throw new Error("z required")}static fromAffine(F){const{x:H,y:R}=F||{};if(!F||!w.isValid(H)||!w.isValid(R))throw new Error("invalid affine point");if(F instanceof L)throw new Error("projective point not allowed");const j=z=>w.eql(z,w.ZERO);return j(H)&&j(R)?L.ZERO:new L(H,R,w.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(F){const H=w.invertBatch(F.map(R=>R.pz));return F.map((R,j)=>R.toAffine(H[j])).map(L.fromAffine)}static fromHex(F){const H=L.fromAffine(U((0,a.ensureBytes)("pointHex",F)));return H.assertValidity(),H}static fromPrivateKey(F){return L.BASE.multiply(ee(F))}_setWindowSize(F){this._WINDOW_SIZE=F,ae.delete(this)}assertValidity(){if(this.is0()){if(A.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:F,y:H}=this.toAffine();if(!w.isValid(F)||!w.isValid(H))throw new Error("bad point: x or y not FE");const R=w.sqr(H),j=x(F);if(!w.eql(R,j))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:F}=this.toAffine();if(w.isOdd)return!w.isOdd(F);throw new Error("Field doesn't support isOdd")}equals(F){J(F);const{px:H,py:R,pz:j}=this,{px:z,py:Y,pz:ce}=F,ie=w.eql(w.mul(H,ce),w.mul(z,j)),le=w.eql(w.mul(R,ce),w.mul(Y,j));return ie&&le}negate(){return new L(this.px,w.neg(this.py),this.pz)}double(){const{a:F,b:H}=A,R=w.mul(H,p),{px:j,py:z,pz:Y}=this;let ce=w.ZERO,ie=w.ZERO,le=w.ZERO,de=w.mul(j,j),Re=w.mul(z,z),we=w.mul(Y,Y),Ee=w.mul(j,z);return Ee=w.add(Ee,Ee),le=w.mul(j,Y),le=w.add(le,le),ce=w.mul(F,le),ie=w.mul(R,we),ie=w.add(ce,ie),ce=w.sub(Re,ie),ie=w.add(Re,ie),ie=w.mul(ce,ie),ce=w.mul(Ee,ce),le=w.mul(R,le),we=w.mul(F,we),Ee=w.sub(de,we),Ee=w.mul(F,Ee),Ee=w.add(Ee,le),le=w.add(de,de),de=w.add(le,de),de=w.add(de,we),de=w.mul(de,Ee),ie=w.add(ie,de),we=w.mul(z,Y),we=w.add(we,we),de=w.mul(we,Ee),ce=w.sub(ce,de),le=w.mul(we,Re),le=w.add(le,le),le=w.add(le,le),new L(ce,ie,le)}add(F){J(F);const{px:H,py:R,pz:j}=this,{px:z,py:Y,pz:ce}=F;let ie=w.ZERO,le=w.ZERO,de=w.ZERO;const Re=A.a,we=w.mul(A.b,p);let Ee=w.mul(H,z),ye=w.mul(R,Y),Ge=w.mul(j,ce),Ue=w.add(H,R),he=w.add(z,Y);Ue=w.mul(Ue,he),he=w.add(Ee,ye),Ue=w.sub(Ue,he),he=w.add(H,j);let fe=w.add(z,ce);return he=w.mul(he,fe),fe=w.add(Ee,Ge),he=w.sub(he,fe),fe=w.add(R,j),ie=w.add(Y,ce),fe=w.mul(fe,ie),ie=w.add(ye,Ge),fe=w.sub(fe,ie),de=w.mul(Re,he),ie=w.mul(we,Ge),de=w.add(ie,de),ie=w.sub(ye,de),de=w.add(ye,de),le=w.mul(ie,de),ye=w.add(Ee,Ee),ye=w.add(ye,Ee),Ge=w.mul(Re,Ge),he=w.mul(we,he),ye=w.add(ye,Ge),Ge=w.sub(Ee,Ge),Ge=w.mul(Re,Ge),he=w.add(he,Ge),Ee=w.mul(ye,he),le=w.add(le,Ee),Ee=w.mul(fe,he),ie=w.mul(Ue,ie),ie=w.sub(ie,Ee),Ee=w.mul(Ue,ye),de=w.mul(fe,de),de=w.add(de,Ee),new L(ie,le,de)}subtract(F){return this.add(F.negate())}is0(){return this.equals(L.ZERO)}wNAF(F){return Z.wNAFCached(this,ae,F,H=>{const R=w.invertBatch(H.map(j=>j.pz));return H.map((j,z)=>j.toAffine(R[z])).map(L.fromAffine)})}multiplyUnsafe(F){const H=L.ZERO;if(F===f)return H;if(Q(F),F===h)return this;const{endo:R}=A;if(!R)return Z.unsafeLadder(this,F);let{k1neg:j,k1:z,k2neg:Y,k2:ce}=R.splitScalar(F),ie=H,le=H,de=this;for(;z>f||ce>f;)z&h&&(ie=ie.add(de)),ce&h&&(le=le.add(de)),de=de.double(),z>>=h,ce>>=h;return j&&(ie=ie.negate()),Y&&(le=le.negate()),le=new L(w.mul(le.px,R.beta),le.py,le.pz),ie.add(le)}multiply(F){Q(F);let H=F,R,j;const{endo:z}=A;if(z){const{k1neg:Y,k1:ce,k2neg:ie,k2:le}=z.splitScalar(H);let{p:de,f:Re}=this.wNAF(ce),{p:we,f:Ee}=this.wNAF(le);de=Z.constTimeNegate(Y,de),we=Z.constTimeNegate(ie,we),we=new L(w.mul(we.px,z.beta),we.py,we.pz),R=de.add(we),j=Re.add(Ee)}else{const{p:Y,f:ce}=this.wNAF(H);R=Y,j=ce}return L.normalizeZ([R,j])[0]}multiplyAndAddUnsafe(F,H,R){const j=L.BASE,z=(ce,ie)=>ie===f||ie===h||!ce.equals(j)?ce.multiplyUnsafe(ie):ce.multiply(ie),Y=z(this,H).add(z(F,R));return Y.is0()?void 0:Y}toAffine(F){const{px:H,py:R,pz:j}=this,z=this.is0();F==null&&(F=z?w.ONE:w.inv(j));const Y=w.mul(H,F),ce=w.mul(R,F),ie=w.mul(j,F);if(z)return{x:w.ZERO,y:w.ZERO};if(!w.eql(ie,w.ONE))throw new Error("invZ was invalid");return{x:Y,y:ce}}isTorsionFree(){const{h:F,isTorsionFree:H}=A;if(F===h)return!0;if(H)return H(L,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:F,clearCofactor:H}=A;return F===h?this:H?H(L,this):this.multiplyUnsafe(A.h)}toRawBytes(F=!0){return this.assertValidity(),K(L,this,F)}toHex(F=!0){return n.bytesToHex(this.toRawBytes(F))}}L.BASE=new L(A.Gx,A.Gy,w.ONE),L.ZERO=new L(w.ZERO,w.ONE,w.ZERO);const N=A.nBitLength,Z=(0,t.wNAF)(L,A.endo?Math.ceil(N/2):N);return{CURVE:A,ProjectivePoint:L,normPrivateKeyToScalar:ee,weierstrassEquation:x,isWithinCurveOrder:q}}function T(g){const A=(0,t.validateBasic)(g);return n.validateObject(A,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...A})}function y(g){const A=T(g),{Fp:w,n:K}=A,U=w.BYTES+1,x=2*w.BYTES+1;function q(he){return f<he&&he<w.ORDER}function Q(he){return r.mod(he,K)}function ee(he){return r.invert(he,K)}const{ProjectivePoint:ae,normPrivateKeyToScalar:J,weierstrassEquation:L,isWithinCurveOrder:N}=_({...A,toBytes(he,fe,ve){const Ae=fe.toAffine(),Me=w.toBytes(Ae.x),Be=n.concatBytes;return ve?Be(Uint8Array.from([fe.hasEvenY()?2:3]),Me):Be(Uint8Array.from([4]),Me,w.toBytes(Ae.y))},fromBytes(he){const fe=he.length,ve=he[0],Ae=he.subarray(1);if(fe===U&&(ve===2||ve===3)){const Me=n.bytesToNumberBE(Ae);if(!q(Me))throw new Error("Point is not on curve");const Be=L(Me);let mt;try{mt=w.sqrt(Be)}catch(Ht){const or=Ht instanceof Error?": "+Ht.message:"";throw new Error("Point is not on curve"+or)}const at=(mt&h)===h;return(ve&1)===1!==at&&(mt=w.neg(mt)),{x:Me,y:mt}}else if(fe===x&&ve===4){const Me=w.fromBytes(Ae.subarray(0,w.BYTES)),Be=w.fromBytes(Ae.subarray(w.BYTES,2*w.BYTES));return{x:Me,y:Be}}else throw new Error(`Point of length ${fe} was invalid. Expected ${U} compressed bytes or ${x} uncompressed bytes`)}}),Z=he=>n.bytesToHex(n.numberToBytesBE(he,A.nByteLength));function P(he){const fe=K>>h;return he>fe}function F(he){return P(he)?Q(-he):he}const H=(he,fe,ve)=>n.bytesToNumberBE(he.slice(fe,ve));class R{constructor(fe,ve,Ae){this.r=fe,this.s=ve,this.recovery=Ae,this.assertValidity()}static fromCompact(fe){const ve=A.nByteLength;return fe=(0,a.ensureBytes)("compactSignature",fe,ve*2),new R(H(fe,0,ve),H(fe,ve,2*ve))}static fromDER(fe){const{r:ve,s:Ae}=e.DER.toSig((0,a.ensureBytes)("DER",fe));return new R(ve,Ae)}assertValidity(){if(!N(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!N(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(fe){return new R(this.r,this.s,fe)}recoverPublicKey(fe){const{r:ve,s:Ae,recovery:Me}=this,Be=le((0,a.ensureBytes)("msgHash",fe));if(Me==null||![0,1,2,3].includes(Me))throw new Error("recovery id invalid");const mt=Me===2||Me===3?ve+A.n:ve;if(mt>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const at=(Me&1)===0?"02":"03",Ut=ae.fromHex(at+Z(mt)),Ht=ee(mt),or=Q(-Be*Ht),Or=Q(Ae*Ht),Xt=ae.BASE.multiplyAndAddUnsafe(Ut,or,Or);if(!Xt)throw new Error("point at infinify");return Xt.assertValidity(),Xt}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,Q(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return Z(this.r)+Z(this.s)}}const j={isValidPrivateKey(he){try{return J(he),!0}catch{return!1}},normPrivateKeyToScalar:J,randomPrivateKey:()=>{const he=r.getMinHashLength(A.n);return r.mapHashToField(A.randomBytes(he),A.n)},precompute(he=8,fe=ae.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function z(he,fe=!0){return ae.fromPrivateKey(he).toRawBytes(fe)}function Y(he){const fe=n.isBytes(he),ve=typeof he=="string",Ae=(fe||ve)&&he.length;return fe?Ae===U||Ae===x:ve?Ae===2*U||Ae===2*x:he instanceof ae}function ce(he,fe,ve=!0){if(Y(he))throw new Error("first arg must be private key");if(!Y(fe))throw new Error("second arg must be public key");return ae.fromHex(fe).multiply(J(he)).toRawBytes(ve)}const ie=A.bits2int||function(he){const fe=n.bytesToNumberBE(he),ve=he.length*8-A.nBitLength;return ve>0?fe>>BigInt(ve):fe},le=A.bits2int_modN||function(he){return Q(ie(he))},de=n.bitMask(A.nBitLength);function Re(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(f<=he&&he<de))throw new Error(`bigint expected < 2^${A.nBitLength}`);return n.numberToBytesBE(he,A.nByteLength)}function we(he,fe,ve=Ee){if(["recovered","canonical"].some(gr=>gr in ve))throw new Error("sign() legacy options not supported");const{hash:Ae,randomBytes:Me}=A;let{lowS:Be,prehash:mt,extraEntropy:at}=ve;Be==null&&(Be=!0),he=(0,a.ensureBytes)("msgHash",he),mt&&(he=(0,a.ensureBytes)("prehashed msgHash",Ae(he)));const Ut=le(he),Ht=J(fe),or=[Re(Ht),Re(Ut)];if(at!=null&&at!==!1){const gr=at===!0?Me(w.BYTES):at;or.push((0,a.ensureBytes)("extraEntropy",gr))}const Or=n.concatBytes(...or),Xt=Ut;function Un(gr){const bt=ie(gr);if(!N(bt))return;const Yr=ee(bt),Vt=ae.BASE.multiply(bt).toAffine(),Pt=Q(Vt.x);if(Pt===f)return;const zt=Q(Yr*Q(Xt+Pt*Ht));if(zt===f)return;let Ca=(Vt.x===Pt?0:2)|Number(Vt.y&h),sr=zt;return Be&&P(zt)&&(sr=F(zt),Ca^=1),new R(Pt,sr,Ca)}return{seed:Or,k2sig:Un}}const Ee={lowS:A.lowS,prehash:!1},ye={lowS:A.lowS,prehash:!1};function Ge(he,fe,ve=Ee){const{seed:Ae,k2sig:Me}=we(he,fe,ve),Be=A;return n.createHmacDrbg(Be.hash.outputLen,Be.nByteLength,Be.hmac)(Ae,Me)}ae.BASE._setWindowSize(8);function Ue(he,fe,ve,Ae=ye){var Vt;const Me=he;if(fe=(0,a.ensureBytes)("msgHash",fe),ve=(0,a.ensureBytes)("publicKey",ve),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:Be,prehash:mt}=Ae;let at,Ut;try{if(typeof Me=="string"||n.isBytes(Me))try{at=R.fromDER(Me)}catch(Pt){if(!(Pt instanceof e.DER.Err))throw Pt;at=R.fromCompact(Me)}else if(typeof Me=="object"&&typeof Me.r=="bigint"&&typeof Me.s=="bigint"){const{r:Pt,s:zt}=Me;at=new R(Pt,zt)}else throw new Error("PARSE");Ut=ae.fromHex(ve)}catch(Pt){if(Pt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Be&&at.hasHighS())return!1;mt&&(fe=A.hash(fe));const{r:Ht,s:or}=at,Or=le(fe),Xt=ee(or),Un=Q(Or*Xt),gr=Q(Ht*Xt),bt=(Vt=ae.BASE.multiplyAndAddUnsafe(Ut,Un,gr))==null?void 0:Vt.toAffine();return bt?Q(bt.x)===Ht:!1}return{CURVE:A,getPublicKey:z,getSharedSecret:ce,sign:Ge,verify:Ue,ProjectivePoint:ae,Signature:R,utils:j}}function I(g,A){const w=g.ORDER;let K=f;for(let P=w-h;P%m===f;P/=m)K+=h;const U=K,x=m<<U-h-h,q=x*m,Q=(w-h)/q,ee=(Q-h)/m,ae=q-h,J=x,L=g.pow(A,Q),N=g.pow(A,(Q+h)/m);let Z=(P,F)=>{let H=L,R=g.pow(F,ae),j=g.sqr(R);j=g.mul(j,F);let z=g.mul(P,j);z=g.pow(z,ee),z=g.mul(z,R),R=g.mul(z,F),j=g.mul(z,P);let Y=g.mul(j,R);z=g.pow(Y,J);let ce=g.eql(z,g.ONE);R=g.mul(j,N),z=g.mul(Y,H),j=g.cmov(R,j,ce),Y=g.cmov(z,Y,ce);for(let ie=U;ie>h;ie--){let le=ie-m;le=m<<le-h;let de=g.pow(Y,le);const Re=g.eql(de,g.ONE);R=g.mul(j,H),H=g.mul(H,H),de=g.mul(Y,H),j=g.cmov(R,j,Re),Y=g.cmov(de,Y,Re)}return{isValid:ce,value:j}};if(g.ORDER%b===p){const P=(g.ORDER-p)/b,F=g.sqrt(g.neg(A));Z=(H,R)=>{let j=g.sqr(R);const z=g.mul(H,R);j=g.mul(j,z);let Y=g.pow(j,P);Y=g.mul(Y,z);const ce=g.mul(Y,F),ie=g.mul(g.sqr(Y),R),le=g.eql(ie,H);let de=g.cmov(ce,Y,le);return{isValid:le,value:de}}}return Z}function W(g,A){if(r.validateField(g),!g.isValid(A.A)||!g.isValid(A.B)||!g.isValid(A.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=I(g,A.Z);if(!g.isOdd)throw new Error("Fp.isOdd is not implemented!");return K=>{let U,x,q,Q,ee,ae,J,L;U=g.sqr(K),U=g.mul(U,A.Z),x=g.sqr(U),x=g.add(x,U),q=g.add(x,g.ONE),q=g.mul(q,A.B),Q=g.cmov(A.Z,g.neg(x),!g.eql(x,g.ZERO)),Q=g.mul(Q,A.A),x=g.sqr(q),ae=g.sqr(Q),ee=g.mul(ae,A.A),x=g.add(x,ee),x=g.mul(x,q),ae=g.mul(ae,Q),ee=g.mul(ae,A.B),x=g.add(x,ee),J=g.mul(U,q);const{isValid:N,value:Z}=w(x,ae);L=g.mul(U,K),L=g.mul(L,Z),J=g.cmov(J,q,N),L=g.cmov(L,Z,N);const P=g.isOdd(K)===g.isOdd(L);return L=g.cmov(g.neg(L),L,P),J=g.div(J,Q),{x:J,y:L}}}})(wi)),wi}var e0;function Ig(){if(e0)return Ia;e0=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.getHash=n,Ia.createCurve=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Ag(),t=oo(),r=wf();function n(o){return{hash:o,hmac:(s,...d)=>(0,e.hmac)(o,s,(0,t.concatBytes)(...d)),randomBytes:t.randomBytes}}function a(o,s){const d=f=>(0,r.weierstrass)({...o,...n(f)});return Object.freeze({...d(s),create:d})}return Ia}var tn={},t0;function Rg(){if(t0)return tn;t0=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.expand_message_xmd=s,tn.expand_message_xof=d,tn.hash_to_field=f,tn.isogenyMap=h,tn.createHasher=m;const e=Ls(),t=ya(),r=t.bytesToNumberBE;function n(p,b){if(p<0||p>=1<<8*b)throw new Error(`bad I2OSP call: value=${p} length=${b}`);const _=Array.from({length:b}).fill(0);for(let T=b-1;T>=0;T--)_[T]=p&255,p>>>=8;return new Uint8Array(_)}function a(p,b){const _=new Uint8Array(p.length);for(let T=0;T<p.length;T++)_[T]=p[T]^b[T];return _}function o(p){if(!Number.isSafeInteger(p))throw new Error("number expected")}function s(p,b,_,T){(0,t.abytes)(p),(0,t.abytes)(b),o(_),b.length>255&&(b=T((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),b)));const{outputLen:y,blockLen:I}=T,W=Math.ceil(_/y);if(W>255)throw new Error("Invalid xmd length");const g=(0,t.concatBytes)(b,n(b.length,1)),A=n(0,I),w=n(_,2),K=new Array(W),U=T((0,t.concatBytes)(A,p,w,n(0,1),g));K[0]=T((0,t.concatBytes)(U,n(1,1),g));for(let q=1;q<=W;q++){const Q=[a(U,K[q-1]),n(q+1,1),g];K[q]=T((0,t.concatBytes)(...Q))}return(0,t.concatBytes)(...K).slice(0,_)}function d(p,b,_,T,y){if((0,t.abytes)(p),(0,t.abytes)(b),o(_),b.length>255){const I=Math.ceil(2*T/8);b=y.create({dkLen:I}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(b).digest()}if(_>65535||b.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return y.create({dkLen:_}).update(p).update(n(_,2)).update(b).update(n(b.length,1)).digest()}function f(p,b,_){(0,t.validateObject)(_,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:T,k:y,m:I,hash:W,expand:g,DST:A}=_;(0,t.abytes)(p),o(b);const w=typeof A=="string"?(0,t.utf8ToBytes)(A):A,K=T.toString(2).length,U=Math.ceil((K+y)/8),x=b*I*U;let q;if(g==="xmd")q=s(p,w,x,W);else if(g==="xof")q=d(p,w,x,y,W);else if(g==="_internal_pass")q=p;else throw new Error('expand must be "xmd" or "xof"');const Q=new Array(b);for(let ee=0;ee<b;ee++){const ae=new Array(I);for(let J=0;J<I;J++){const L=U*(J+ee*I),N=q.subarray(L,L+U);ae[J]=(0,e.mod)(r(N),T)}Q[ee]=ae}return Q}function h(p,b){const _=b.map(T=>Array.from(T).reverse());return(T,y)=>{const[I,W,g,A]=_.map(w=>w.reduce((K,U)=>p.add(p.mul(K,T),U)));return T=p.div(I,W),y=p.mul(y,p.div(g,A)),{x:T,y}}}function m(p,b,_){if(typeof b!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(T,y){const I=f(T,2,{..._,DST:_.DST,...y}),W=p.fromAffine(b(I[0])),g=p.fromAffine(b(I[1])),A=W.add(g).clearCofactor();return A.assertValidity(),A},encodeToCurve(T,y){const I=f(T,1,{..._,DST:_.encodeDST,...y}),W=p.fromAffine(b(I[0])).clearCofactor();return W.assertValidity(),W},mapToCurve(T){if(!Array.isArray(T))throw new Error("mapToCurve: expected array of bigints");for(const I of T)if(typeof I!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${I} in array`);const y=p.fromAffine(b(T)).clearCofactor();return y.assertValidity(),y}}}return tn}var r0;function Ng(){return r0||(r0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=Tg(),r=oo(),n=Ig(),a=Rg(),o=Ls(),s=ya(),d=wf(),f=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m=BigInt(1),p=BigInt(2),b=(R,j)=>(R+j/p)/j;function _(R){const j=f,z=BigInt(3),Y=BigInt(6),ce=BigInt(11),ie=BigInt(22),le=BigInt(23),de=BigInt(44),Re=BigInt(88),we=R*R*R%j,Ee=we*we*R%j,ye=(0,o.pow2)(Ee,z,j)*Ee%j,Ge=(0,o.pow2)(ye,z,j)*Ee%j,Ue=(0,o.pow2)(Ge,p,j)*we%j,he=(0,o.pow2)(Ue,ce,j)*Ue%j,fe=(0,o.pow2)(he,ie,j)*he%j,ve=(0,o.pow2)(fe,de,j)*fe%j,Ae=(0,o.pow2)(ve,Re,j)*ve%j,Me=(0,o.pow2)(Ae,de,j)*fe%j,Be=(0,o.pow2)(Me,z,j)*Ee%j,mt=(0,o.pow2)(Be,le,j)*he%j,at=(0,o.pow2)(mt,Y,j)*we%j,Ut=(0,o.pow2)(at,p,j);if(!T.eql(T.sqr(Ut),R))throw new Error("Cannot find square root");return Ut}const T=(0,o.Field)(f,void 0,void 0,{sqrt:_});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:T,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const j=h,z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Y=-m*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ie=z,le=BigInt("0x100000000000000000000000000000000"),de=b(ie*R,j),Re=b(-Y*R,j);let we=(0,o.mod)(R-de*z-Re*ce,j),Ee=(0,o.mod)(-de*Y-Re*ie,j);const ye=we>le,Ge=Ee>le;if(ye&&(we=j-we),Ge&&(Ee=j-Ee),we>le||Ee>le)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ye,k1:we,k2neg:Ge,k2:Ee}}}},t.sha256);const y=BigInt(0),I=R=>typeof R=="bigint"&&y<R&&R<f,W=R=>typeof R=="bigint"&&y<R&&R<h,g={};function A(R,...j){let z=g[R];if(z===void 0){const Y=(0,t.sha256)(Uint8Array.from(R,ce=>ce.charCodeAt(0)));z=(0,s.concatBytes)(Y,Y),g[R]=z}return(0,t.sha256)((0,s.concatBytes)(z,...j))}const w=R=>R.toRawBytes(!0).slice(1),K=R=>(0,s.numberToBytesBE)(R,32),U=R=>(0,o.mod)(R,f),x=R=>(0,o.mod)(R,h),q=e.secp256k1.ProjectivePoint,Q=(R,j,z)=>q.BASE.multiplyAndAddUnsafe(R,j,z);function ee(R){let j=e.secp256k1.utils.normPrivateKeyToScalar(R),z=q.fromPrivateKey(j);return{scalar:z.hasEvenY()?j:x(-j),bytes:w(z)}}function ae(R){if(!I(R))throw new Error("bad x: need 0 < x < p");const j=U(R*R),z=U(j*R+BigInt(7));let Y=_(z);Y%p!==y&&(Y=U(-Y));const ce=new q(R,Y,m);return ce.assertValidity(),ce}function J(...R){return x((0,s.bytesToNumberBE)(A("BIP0340/challenge",...R)))}function L(R){return ee(R).bytes}function N(R,j,z=(0,r.randomBytes)(32)){const Y=(0,s.ensureBytes)("message",R),{bytes:ce,scalar:ie}=ee(j),le=(0,s.ensureBytes)("auxRand",z,32),de=K(ie^(0,s.bytesToNumberBE)(A("BIP0340/aux",le))),Re=A("BIP0340/nonce",de,ce,Y),we=x((0,s.bytesToNumberBE)(Re));if(we===y)throw new Error("sign failed: k is zero");const{bytes:Ee,scalar:ye}=ee(we),Ge=J(Ee,ce,Y),Ue=new Uint8Array(64);if(Ue.set(Ee,0),Ue.set(K(x(ye+Ge*ie)),32),!Z(Ue,Y,ce))throw new Error("sign: Invalid signature produced");return Ue}function Z(R,j,z){const Y=(0,s.ensureBytes)("signature",R,64),ce=(0,s.ensureBytes)("message",j),ie=(0,s.ensureBytes)("publicKey",z,32);try{const le=ae((0,s.bytesToNumberBE)(ie)),de=(0,s.bytesToNumberBE)(Y.subarray(0,32));if(!I(de))return!1;const Re=(0,s.bytesToNumberBE)(Y.subarray(32,64));if(!W(Re))return!1;const we=J(K(de),w(le),ce),Ee=Q(le,Re,x(-we));return!(!Ee||!Ee.hasEvenY()||Ee.toAffine().x!==de)}catch{return!1}}e.schnorr={getPublicKey:L,sign:N,verify:Z,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ae,pointToBytes:w,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:A,mod:o.mod}};const P=(0,a.isogenyMap)(T,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(j=>BigInt(j)))),F=(0,d.mapToCurveSimpleSWU)(T,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:T.create(BigInt("-11"))}),H=(0,a.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:j,y:z}=F(T.create(R[0]));return P(j,z)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:T.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=H.hashToCurve,e.encodeToCurve=H.encodeToCurve})(yi)),yi}var n0;function Pg(){return n0||(n0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=Ng();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(gi)),gi}var a0;function Og(){if(a0)return Cr;a0=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.recoverPublicKey=r,Cr.recoverAddressFromEthSignature=a,Cr.sign=o,Cr.createEthereumMessageHash=s,Cr.ethSign=d,Cr.computeAddress=f,Cr.createUnsafeIdentity=h;const e=js(),t=Pg();function r(m,p){if(m.length!==65)throw new Error("Invalid signature length "+m.length);const b=m[64];if(b!==27&&b!==28)throw new Error(`Invalid signature recovery value: ${b}. Expected 27 or 28.`);const _=m.slice(0,m.length-1),T=b===28?1:0;return t.secp256k1.Signature.fromCompact(_).addRecoveryBit(T).recoverPublicKey(p).toRawBytes(!1).slice(1)}function n(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const p=m[64];if(p===0||p===1){const b=new Uint8Array(m);return b[64]=p+27,b}return m}function a(m,p){if(typeof m=="string"){if((0,e.isHex)(m))return a((0,e.hexToBytes)(m),p);throw new Error("String signatures must be encoded in hex")}return f(r(n(m),s(p)))}function o(m,p){const b=t.secp256k1.sign(p,m),_=b.recovery===1?"1c":"1b";return"0x"+b.toCompactHex()+_}function s(m){const p=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,b=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
96
|
+
`),(0,e.stringToUtf8Bytes)(String(p.length)),p);return(0,e.hexToBytes)((0,e.sha3)(b))}function d(m,p){return o(m,s(p))}function f(m){let p;if(m.length===65&&m[0]===4)p=m.slice(1);else if(m.length===64)p=m;else throw new Error(`Invalid public key length: ${m.length}. Expected 64 bytes, or 65 bytes with a leading 0x04 uncompressed prefix.`);return(0,e.getAddress)((0,e.sha3)(p).substring(24))}function h(){const m=t.secp256k1.utils.randomPrivateKey(),p=t.secp256k1.getPublicKey(m,!1).slice(1),b=f(p);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(p),address:b}}return Cr}var os={},o0;function jg(){if(o0)return os;o0=1,Object.defineProperty(os,"__esModule",{value:!0});const e=js();class t{constructor(n,a=!0){en(this,"requestManager");en(this,"checkedBlocks");en(this,"saveBlocks");en(this,"savedBlocks");en(this,"requests");en(this,"blockTime");en(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=a,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),a=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-a.timestamp)/(Number(n.number)-1),this.firstTimestamp=a.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,a=!0){const o=n/1e3,s=Date.now()/1e3;let d=this.firstTimestamp,f=this.blockTime;if((d===void 0||f===void 0)&&({firstTimestamp:d,blockTime:f}=await this.fillBlockTime()),o<d)return{block:1,timestamp:o};const h=this.savedBlocks.latest;if(o>=s||h&&o>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:o};this.checkedBlocks[o]=[];const m=await this.getBlockWrapper(Math.ceil((o-d)/f));return{block:await this.findBetter(o,m,a,f),timestamp:o}}async findBetter(n,a,o,s){let d=s??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,a,o))return a.number;const f=n-a.timestamp;let h=Math.ceil(f/d);h===0&&(h=f<0?-1:1);const m=await this.getBlockWrapper(this.getNextBlock(n,a.number,h));return d=Math.abs((a.timestamp-m.timestamp)/(a.number-m.number)),this.findBetter(n,m,o,d)}async isBetterBlock(n,a,o){const s=a.timestamp;if(o){if(s<n)return!1;const d=await this.getBlockWrapper(a.number-1);if(s>=n&&d.timestamp<n)return!0}else{if(s>=n)return!1;const d=await this.getBlockWrapper(a.number+1);if(s<n&&d.timestamp>=n)return!0}return!1}getNextBlock(n,a,o){const s=a+o;if(this.checkedBlocks[n].includes(s)){const d=o<0?o+1:o-1;if(d===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,a,d)}return this.checkedBlocks[n].push(s),s}async getBlockWrapper(n){if(!this.saveBlocks){const s=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(s.number).toNumber(),timestamp:(0,e.toBigNumber)(s.timestamp).toNumber()}}const a=n.toString();if(this.savedBlocks[a])return this.savedBlocks[a];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:o}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[a]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(o).toNumber()},this.requests++,this.savedBlocks[a]}}return os.default=t,os}var ss={},s0;function Lg(){if(s0)return ss;s0=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return ss}var _i={},i0;function _f(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=r1();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return t.AuthChain}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return t.AuthLink}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return t.AuthLinkType}})})(_i)),_i}var c0;function Cf(){return c0||(c0=1,(function(e){var t=fr&&fr.__createBinding||(Object.create?(function(H,R,j,z){z===void 0&&(z=j);var Y=Object.getOwnPropertyDescriptor(R,j);(!Y||("get"in Y?!R.__esModule:Y.writable||Y.configurable))&&(Y={enumerable:!0,get:function(){return R[j]}}),Object.defineProperty(H,z,Y)}):(function(H,R,j,z){z===void 0&&(z=j),H[z]=R[j]})),r=fr&&fr.__setModuleDefault||(Object.create?(function(H,R){Object.defineProperty(H,"default",{enumerable:!0,value:R})}):function(H,R){H.default=R}),n=fr&&fr.__importStar||(function(){var H=function(R){return H=Object.getOwnPropertyNames||function(j){var z=[];for(var Y in j)Object.prototype.hasOwnProperty.call(j,Y)&&(z[z.length]=Y);return z},H(R)};return function(R){if(R&&R.__esModule)return R;var j={};if(R!=null)for(var z=H(R),Y=0;Y<z.length;Y++)z[Y]!=="default"&&t(j,R,z[Y]);return r(j,R),j}})(),a=fr&&fr.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmphemeralPayload=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.createEthereumMessageHash=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0,e.validateSignature=b,e.isValidAuthChain=_,e.createEIP1271MessageHash=T,e.createSimpleAuthChain=y,e.createAuthChain=I,e.initializeAuthChain=W,e.signPayload=g,e.createSignature=A,e.ownerAddress=w,e.getEphemeralMessage=K,e.getEphemeralSignatureType=J,e.getSignedIdentitySignatureType=L,e.parseEphemeralPayload=N,e.isValidEIP1271Signature=Z;const o=n(js()),s=Eg(),d=Og(),f=a(jg()),h=Lg(),m=_f();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const p=132;async function b(H,R,j,z=Date.now()){let Y="";if(!_(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ie of R){const le=F(ie.type);try{const{nextAuthority:de}=await le(Y,ie,{provider:j,dateToValidateExpirationInMillis:z});Y=de||""}catch(de){const Re=de instanceof Error?de.message:String(de);return{ok:!1,message:`ERROR. Link type: ${ie.type}. ${Re}.`}}}const ce=Y===H;return{ok:ce,message:ce?void 0:`ERROR: Invalid final authority. Expected: ${H}. Current ${Y}.`}}function _(H){for(const[R,j]of H.entries())if(R===0&&j.type!==m.AuthLinkType.SIGNER||j.type===m.AuthLinkType.SIGNER&&R!==0)return!1;return!0}function T(H){return(0,o.hexToBytes)((0,o.sha3)((0,o.stringToUtf8Bytes)(H)))}function y(H,R,j){return[{type:m.AuthLinkType.SIGNER,payload:R,signature:""},{type:L(j),payload:H,signature:j}]}function I(H,R,j,z){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=A(H,ce),le=A(R,z);return[{type:m.AuthLinkType.SIGNER,payload:H.address,signature:""},{type:m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:ce,signature:ie},{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:z,signature:le}]}async function W(H,R,j,z){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=await z(ce),le=[{type:m.AuthLinkType.SIGNER,payload:H,signature:""},{type:J(ie),payload:ce,signature:ie}];return{ephemeralIdentity:R,expiration:Y,authChain:le}}function g(H,R){const j=A(H.ephemeralIdentity,R);return[...H.authChain,{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:j}]}e.createEthereumMessageHash=d.createEthereumMessageHash;function A(H,R){return(0,d.ethSign)((0,o.hexToBytes)(H.privateKey),R)}function w(H){return H.length>0&&H[0].type===m.AuthLinkType.SIGNER?H[0].payload:"Invalid-Owner-Address"}function K(H,R){return`Decentraland Login
|
|
97
|
+
Ephemeral address: ${H}
|
|
98
|
+
Expiration: ${R.toISOString()}`}e.Authenticator={validateSignature:b,isValidAuthChain:_,createEIP1271MessageHash:T,createSimpleAuthChain:y,createAuthChain:I,initializeAuthChain:W,signPayload:g,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:A,ownerAddress:w,getEphemeralMessage:K};const U=async(H,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=U;const x=async(H,R)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const j=(0,d.recoverAddressFromEthSignature)(R.signature,R.payload),z=H.toLocaleLowerCase(),Y=j.toLocaleLowerCase();if(z===Y)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${z}. Actual: ${Y}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=x;const q=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie){const le=(0,d.recoverAddressFromEthSignature)(R.signature,z),de=H.toLocaleLowerCase(),Re=le.toLocaleLowerCase();if(de===Re)return{nextAuthority:Y};throw new Error(`Invalid signer address. Expected: ${de}. Actual: ${Re}`)}throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=q;const Q=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie&&await P(j==null?void 0:j.provider,H,z,R.signature,ie))return{nextAuthority:Y};throw new Error(`Ephemeral key expired. Expiration: ${ce}. Test: ${ie}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=Q;const ee=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(!j)throw new Error("Missing validation options for 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await P(j.provider,H,R.payload,R.signature,j.dateToValidateExpirationInMillis))return{nextAuthority:R.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=ee;const ae=async(H,R)=>({error:"Error Validator."});function J(H){return H.length===p?m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}function L(H){return H.length===p?m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}function N(H){const R=H.replace(/\r/g,""),j=R.split(`
|
|
99
|
+
`),z="Ephemeral address: ",Y="Expiration: ";if(j.length<3||!j[1].startsWith(z)||!j[2].startsWith(Y))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${z}" on line 2 and "${Y}" on line 3.`);const ce=j[1].substring(z.length),ie=j[2].substring(Y.length),le=Date.parse(ie);if(Number.isNaN(le))throw new Error(`Invalid expiration date in ephemeral payload: "${ie}"`);return{message:R,ephemeralAddress:ce,expiration:le}}e.parseEmphemeralPayload=N;async function Z(H,R,j,z){const Y=T(R),ce=(0,o.hexToBytes)(j);let ie;try{ie=(0,o.bytesToHex)(await H.isValidSignature(Y,ce,z))}catch{}if(ie===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,d.createEthereumMessageHash)(R);try{ie=(0,o.bytesToHex)(await H.isValidSignature(le,ce,z))}catch{}return ie===e.ERC1654_MAGIC_VALUE}async function P(H,R,j,z,Y){if(!H)throw new Error("Missing provider");const ce=new o.default(H),ie=await(0,s.SignatureValidator)(ce,R);let le=await Z(ie,j,z);if(le)return!0;const de=new f.default(ce);try{const{block:Re}=await de.getDate(Y,!1);if(le=await Z(ie,j,z,Re),le)return!0}catch(Re){const we=Re instanceof Error?Re.message:String(Re);throw new Error(`Invalid validation. Error: ${we}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${le}`)}function F(H){switch(H){case m.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case m.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return ae}}})(fr)),fr}var Dr={},l0;function Mg(){return l0||(l0=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.AUTH_METADATA_HEADER=Dr.AUTH_TIMESTAMP_HEADER=Dr.AUTH_CHAIN_HEADER_PREFIX=void 0,Dr.AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",Dr.AUTH_TIMESTAMP_HEADER="x-identity-timestamp",Dr.AUTH_METADATA_HEADER="x-identity-metadata"),Dr}var u0;function Bg(){return u0||(u0=1,(function(e){var t=bn&&bn.__createBinding||(Object.create?(function(n,a,o,s){s===void 0&&(s=o);var d=Object.getOwnPropertyDescriptor(a,o);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(n,s,d)}):(function(n,a,o,s){s===void 0&&(s=o),n[s]=a[o]})),r=bn&&bn.__exportStar||function(n,a){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(Cf(),e),r(Mg(),e),r(_f(),e)})(bn)),bn}var Fg=Bg(),_n={},hr={},is={exports:{}},cs={exports:{}},d0;function Tl(){return d0||(d0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=t.default,e.exports.default=t.default})(cs,cs.exports)),cs.exports}var ls={exports:{}},f0;function $g(){return f0||(f0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(a){return Object.prototype.toString.call(a)==="[object RegExp]"}function n(a,o){for(var s=0;s<o.length;s++){var d=o[s];if(a===d||r(d)&&d.test(a))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(ls,ls.exports)),ls.exports}var us={exports:{}},h0;function Dg(){return h0||(h0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(a,o){return a.indexOf(o)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(us,us.exports)),us.exports}var ds={exports:{}},fs={exports:{}},m0;function Ef(){return m0||(m0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(a){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r(a)}function n(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;(r(a)!=="object"||a===null)&&(a={});for(var s in o)typeof a[s]>"u"&&(a[s]=o[s]);return a}e.exports=t.default,e.exports.default=t.default})(fs,fs.exports)),fs.exports}var p0;function qg(){return p0||(p0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(Tl()),n=a(Ef());function a(d){return d&&d.__esModule?d:{default:d}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function s(d,f){(0,r.default)(d),f=(0,n.default)(f,o),f.allow_trailing_dot&&d[d.length-1]==="."&&(d=d.substring(0,d.length-1)),f.allow_wildcard===!0&&d.indexOf("*.")===0&&(d=d.substring(2));var h=d.split("."),m=h[h.length-1];return f.require_tld&&(h.length<2||!f.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(m)||/\s/.test(m))||!f.allow_numeric_tld&&/^\d+$/.test(m)?!1:h.every(function(p){return!(p.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(p)||/[\uff01-\uff5e]/.test(p)||/^-|-$/.test(p)||!f.allow_underscores&&/_/.test(p))})}e.exports=t.default,e.exports.default=t.default})(ds,ds.exports)),ds.exports}var hs={exports:{}},g0;function Ug(){return g0||(g0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(Tl());function n(p){return p&&p.__esModule?p:{default:p}}function a(p){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},a(p)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(o,"[.]){3}").concat(o),d=new RegExp("^".concat(s,"$")),f="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(s,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(s,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(s,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(s,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(s,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(s,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(s,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function m(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(p);var _=(a(b)==="object"?b.version:arguments[1])||"";return _?_.toString()==="4"?d.test(p):_.toString()==="6"?h.test(p):!1:m(p,{version:4})||m(p,{version:6})}e.exports=t.default,e.exports.default=t.default})(hs,hs.exports)),hs.exports}var y0;function Hg(){return y0||(y0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=W;var r=f(Tl()),n=f($g()),a=f(Dg()),o=f(qg()),s=f(Ug()),d=f(Ef());function f(g){return g&&g.__esModule?g:{default:g}}function h(g,A){return T(g)||_(g,A)||p(g,A)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
100
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(g,A){if(g){if(typeof g=="string")return b(g,A);var w={}.toString.call(g).slice(8,-1);return w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set"?Array.from(g):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?b(g,A):void 0}}function b(g,A){(A==null||A>g.length)&&(A=g.length);for(var w=0,K=Array(A);w<A;w++)K[w]=g[w];return K}function _(g,A){var w=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(w!=null){var K,U,x,q,Q=[],ee=!0,ae=!1;try{if(x=(w=w.call(g)).next,A!==0)for(;!(ee=(K=x.call(w)).done)&&(Q.push(K.value),Q.length!==A);ee=!0);}catch(J){ae=!0,U=J}finally{try{if(!ee&&w.return!=null&&(q=w.return(),Object(q)!==q))return}finally{if(ae)throw U}}return Q}}function T(g){if(Array.isArray(g))return g}var y={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},I=/^\[([^\]]+)\](?::([0-9]+))?$/;function W(g,A){if((0,r.default)(g),!g||/[\s<>]/.test(g)||g.indexOf("mailto:")===0||(A=(0,d.default)(A,y),A.validate_length&&g.length>A.max_allowed_length)||!A.allow_fragments&&(0,a.default)(g,"#")||!A.allow_query_components&&((0,a.default)(g,"?")||(0,a.default)(g,"&")))return!1;var w,K,U,x,q,Q,ee,ae;ee=g.split("#"),g=ee.shift(),ee=g.split("?"),g=ee.shift();var J=g.match(/^([a-z][a-z0-9+\-.]*):/i),L=!1,N=function(Ue){return L=!0,w=Ue.toLowerCase(),A.require_valid_protocol&&A.protocols.indexOf(w)===-1?!1:g.substring(J[0].length)};if(J){var Z=J[1],P=g.substring(J[0].length),F=P.slice(0,2)==="//";if(F){if(g=N(Z),g===!1)return!1}else{var H=P.indexOf("/"),R=H===-1?P:P.substring(0,H),j=R.indexOf("@");if(j!==-1){var z=R.substring(0,j),Y=/^[a-zA-Z0-9\-_.%:]*$/,ce=Y.test(z),ie=/%[0-9a-fA-F]{2}/.test(z);if(ce&&!ie){if(A.require_protocol)return!1}else if(g=N(Z),g===!1)return!1}else{var le=/^[0-9]/.test(P);if(le){if(A.require_protocol)return!1}else if(g=N(Z),g===!1)return!1}}}else if(A.require_protocol)return!1;if(g.slice(0,2)==="//"){if(!L&&!A.allow_protocol_relative_urls)return!1;g=g.slice(2)}if(g==="")return!1;if(ee=g.split("/"),g=ee.shift(),g===""&&!A.require_host)return!0;if(ee=g.split("@"),ee.length>1){if(A.disallow_auth||ee[0]===""||(K=ee.shift(),K.indexOf(":")>=0&&K.split(":").length>2))return!1;var de=K.split(":"),Re=h(de,2),we=Re[0],Ee=Re[1];if(we===""&&Ee==="")return!1}x=ee.join("@"),Q=null,ae=null;var ye=x.match(I);if(ye?(U="",ae=ye[1],Q=ye[2]||null):(ee=x.split(":"),U=ee.shift(),ee.length&&(Q=ee.join(":"))),Q!==null&&Q.length>0){if(q=parseInt(Q,10),!/^[0-9]+$/.test(Q)||q<=0||q>65535)return!1}else if(A.require_port)return!1;return A.host_whitelist?(0,n.default)(U,A.host_whitelist):U===""&&!A.require_host?!0:!(!(0,s.default)(U)&&!(0,o.default)(U,A)&&(!ae||!(0,s.default)(ae,6))||(U=U||ae,A.host_blacklist&&(0,n.default)(U,A.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(is,is.exports)),is.exports}var Ci={},v0;function xf(){return v0||(v0=1,(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(d){d.GET="get",d.STORE="store",d.CLEAR="clear",d.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(d){return{target:e.SINGLE_SIGN_ON_TARGET,...d}}e.createMessage=r;function n(d){const f=localStorage.getItem(s(d));if(!f)return null;let h;try{h=JSON.parse(f)}catch{return o(d),null}return h.expiration=new Date(h.expiration),h.expiration.getTime()<=Date.now()?(o(d),null):h}e.localStorageGetIdentity=n;function a(d,f){new Date(f.expiration).getTime()>Date.now()&&localStorage.setItem(s(d),JSON.stringify(f))}e.localStorageStoreIdentity=a;function o(d){localStorage.removeItem(s(d))}e.localStorageClearIdentity=o;function s(d){if(!/^0x[a-fA-F0-9]{40}$/.test(d))throw new Error("User must be a valid ethereum address");return`single-sign-on-${d.toLowerCase()}`}})(Ci)),Ci}var b0;function Vg(){if(b0)return hr;b0=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.clearIdentity=hr.storeIdentity=hr.getIdentity=hr.init=void 0;const e=Hg(),t=xf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,a=5;let o=0,s="";const d={protocols:["https"],require_protocol:!0};function f(I,W={}){if(!(0,e.default)(I,{...d,...W}))throw new Error(`Invalid url: ${I}`);if(s)throw new Error("Already initialized");const g=document.createElement("iframe");g.id=r,g.src=I,g.style.width="0",g.style.height="0",g.style.border="none",g.style.position="absolute",document.body.appendChild(g),s=I}hr.init=f;async function h(I){let W;try{W=(await _(await b(),t.Action.GET,{user:I})).identity??null}catch(g){y(g),W=(0,t.localStorageGetIdentity)(I)}return W}hr.getIdentity=h;async function m(I,W){try{await _(await b(),t.Action.STORE,{user:I,identity:W})}catch(g){y(g),(0,t.localStorageStoreIdentity)(I,W)}}hr.storeIdentity=m;async function p(I){try{await _(await b(),t.Action.CLEAR,{user:I})}catch(W){y(W),(0,t.localStorageClearIdentity)(I)}}hr.clearIdentity=p;async function b(){if(!s)throw new Error("Not initialized");for(let I=0;I<a;I++){const W=document.getElementById(r),g=W==null?void 0:W.contentWindow;if(!g){await T(n);continue}try{await _(g,t.Action.PING,{},n)}catch{continue}return g}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function _(I,W,g,A=0){o++;const w=o;let K=null;const U=new Promise((x,q)=>{K=({data:Q})=>{!Q||Q.target!==t.SINGLE_SIGN_ON_TARGET||Q.id!==w||(Q.error?q(new Error(Q.error)):x(Q))},window.addEventListener("message",K)});I.postMessage((0,t.createMessage)({id:w,action:W,...g}),s);try{return await(A?Promise.race([U,new Promise((x,q)=>setTimeout(()=>q(new Error("Did not receive a response in time")),A))]):U)}catch(x){throw x}finally{K&&window.removeEventListener("message",K)}}function T(I){return new Promise(W=>setTimeout(W,I))}function y(I){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",I.message)}return hr}var w0;function zg(){return w0||(w0=1,(function(e){var t=_n&&_n.__createBinding||(Object.create?(function(n,a,o,s){s===void 0&&(s=o);var d=Object.getOwnPropertyDescriptor(a,o);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(n,s,d)}):(function(n,a,o,s){s===void 0&&(s=o),n[s]=a[o]})),r=_n&&_n.__exportStar||function(n,a){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(Vg(),e),r(xf(),e)})(_n)),_n}var Xc=zg();function Gg(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?Nr.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?Nr.STAGING:t.endsWith(".io")||t.endsWith(".zone")?Nr.DEVELOPMENT:null}function Wg(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Tf(n))return n}return null}var _0={},Nr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Nr||(Nr={}));function Sf(){return Object.values(Nr)}function Tf(e){return Sf().includes(e)}function ms(e){if(Tf(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${Sf().map(t=>`"${t}"`).join(", ")}.`)}function Zg(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:a}=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&&a&&t!==a)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&a&&r!==a)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?ms(t):r?ms(r):n?ms(n):a?ms(a):Nr.PRODUCTION}function Kg(e){if(typeof window<"u"){const r=Wg(window.location);if(r)return r;const n=Gg(window.location);if(n)return n}return Zg(typeof e>"u"&&typeof ys=="object"&&typeof _0=="object"?_0:e)}function Yg(e,t){const r=Kg(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(a,o="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return a in n?n[a]:o},is:a=>r===a,getEnv:()=>r}}const Qg="development",Jg="80002",Xg="https://marketplace-api.decentraland.zone",ey="/auth",ty="https://rpc.decentraland.org/amoy",ry="https://credits.decentraland.zone",ny="https://builder-api.decentraland.zone",ay="https://decentraland.zone/builder",oy="https://peer.decentraland.zone",sy="https://decentraland.zone/profile",iy="",cy="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",ly="",uy="",dy={ENVIRONMENT:Qg,CHAIN_ID:Jg,MARKETPLACE_SERVER_URL:Xg,AUTH_URL:ey,RPC_URL:ty,CREDITS_SERVER_URL:ry,BUILDER_SERVER_URL:ny,BUILDER_URL:ay,PEER_URL:oy,PROFILE_URL:sy,SHOP_SERVER_URL:iy,STRIPE_PUBLISHABLE_KEY:cy,SEGMENT_WRITE_KEY:ly,SENTRY_DSN:uy},fy="staging",hy="80002",my="https://marketplace-api.decentraland.zone",py="/auth",gy="https://rpc.decentraland.org/amoy",yy="https://credits.decentraland.zone",vy="https://builder-api.decentraland.zone",by="https://decentraland.zone/builder",wy="https://peer.decentraland.zone",_y="https://decentraland.zone/profile",Cy="",Ey="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",xy="",Sy="",Ty={ENVIRONMENT:fy,CHAIN_ID:hy,MARKETPLACE_SERVER_URL:my,AUTH_URL:py,RPC_URL:gy,CREDITS_SERVER_URL:yy,BUILDER_SERVER_URL:vy,BUILDER_URL:by,PEER_URL:wy,PROFILE_URL:_y,SHOP_SERVER_URL:Cy,STRIPE_PUBLISHABLE_KEY:Ey,SEGMENT_WRITE_KEY:xy,SENTRY_DSN:Sy},Ay="production",ky="137",Iy="https://marketplace-api.decentraland.org",Ry="/auth",Ny="https://rpc.decentraland.org/polygon",Py="https://credits.decentraland.org",Oy="https://builder-api.decentraland.org",jy="https://decentraland.org/builder",Ly="https://peer.decentraland.org",My="https://decentraland.org/profile",By="",Fy="",$y="",Dy="",qy={ENVIRONMENT:Ay,CHAIN_ID:ky,MARKETPLACE_SERVER_URL:Iy,AUTH_URL:Ry,RPC_URL:Ny,CREDITS_SERVER_URL:Py,BUILDER_SERVER_URL:Oy,BUILDER_URL:jy,PEER_URL:Ly,PROFILE_URL:My,SHOP_SERVER_URL:By,STRIPE_PUBLISHABLE_KEY:Fy,SEGMENT_WRITE_KEY:$y,SENTRY_DSN:Dy},Uy={},Zt=Yg({[Nr.DEVELOPMENT]:dy,[Nr.STAGING]:Ty,[Nr.PRODUCTION]:qy},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),It=Uy,He={marketplaceServerUrl:It.VITE_MARKETPLACE_SERVER_URL??Zt.get("MARKETPLACE_SERVER_URL"),chainId:Number(It.VITE_CHAIN_ID??Zt.get("CHAIN_ID")),authUrl:It.VITE_AUTH_URL??Zt.get("AUTH_URL"),rpcUrl:It.VITE_RPC_URL??Zt.get("RPC_URL"),creditsServerUrl:It.VITE_CREDITS_SERVER_URL??Zt.get("CREDITS_SERVER_URL"),builderServerUrl:It.VITE_BUILDER_SERVER_URL??Zt.get("BUILDER_SERVER_URL"),builderUrl:It.VITE_BUILDER_URL??Zt.get("BUILDER_URL"),peerUrl:It.VITE_PEER_URL??Zt.get("PEER_URL"),profileUrl:It.VITE_PROFILE_URL??Zt.get("PROFILE_URL"),shopServerUrl:It.VITE_SHOP_SERVER_URL??Zt.get("SHOP_SERVER_URL"),stripePublishableKey:It.VITE_STRIPE_PK??Zt.get("STRIPE_PUBLISHABLE_KEY"),segmentWriteKey:It.VITE_SEGMENT_WRITE_KEY??Zt.get("SEGMENT_WRITE_KEY"),sentryDsn:It.VITE_SENTRY_DSN??Zt.get("SENTRY_DSN"),sentryEnvironment:It.VITE_SENTRY_ENVIRONMENT??(Number(It.VITE_CHAIN_ID??Zt.get("CHAIN_ID"))===80002?"dev":"prod"),sentryRelease:It.VITE_SENTRY_RELEASE??`shop@${It.VITE_APP_VERSION??"0.0.0-dev"}`},Hy=744*60;async function Al(){return(await _t(async()=>{const{connection:e}=await import("./index-gYboUjkz.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function Vy(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new i1(e.provider),n=r.getSigner();let a=Xc.localStorageGetIdentity(t);if(!a){const o=c1.createRandom();a=await Fg.Authenticator.initializeAuthChain(t,{address:o.address,publicKey:mu(o.publicKey),privateKey:mu(o.privateKey)},Hy,s=>n.signMessage(s)),Xc.localStorageStoreIdentity(t,a)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:a,providerType:e.providerType}}function zy(){const e=encodeURIComponent(window.location.href);window.location.replace(`${He.authUrl}/login?redirectTo=${e}`)}async function Gy(){try{const t=await(await Al()).tryPreviousConnection();return!t.account||!Xc.localStorageGetIdentity(t.account.toLowerCase())?null:await Vy(t)}catch{return null}}async function O8(){var e;try{const t=await Al();return await((e=t.getEmail)==null?void 0:e.call(t))??void 0}catch{return}}async function Wy(){try{await(await Al()).disconnect()}catch{}}const Zy=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,Ky=He.chainId===80002?"amoy":"polygon",Yy=He.chainId===80002?"dev":"prod";function kl(){return window.analytics}function Qy(){let e;try{e=Fn.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:Zy,network:Ky,app_env:Yy}}function ur(e,t={}){const r={...Qy(),...t},n=kl();n&&n.track(e,r)}function Jy(e,t={}){const r=kl();r&&r.identify(e.toLowerCase(),t)}function Xy(){const e=kl();e!=null&&e.reset&&e.reset()}function ev(e){ur("Shop Viewed Page",{page:e})}function C0(e){return e===rt.ProviderType.MAGIC||e===rt.ProviderType.MAGIC_TEST?"magic":"wallet"}function tv(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Wa(e){return Math.round(e*10)/100}function Il(e){return!e.tokenId}function j8(e){return{item_id:e.itemId??null,contract_address:e.contractAddress,token_id:e.tokenId??null,trade_id:e.tradeId??null,price_credits:e.priceCredits,price_usd:Wa(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:Il(e)}}function L8(e){const t=e.reduce((n,a)=>n+a.priceCredits,0),r=e.some(Il);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Wa(n.priceCredits)})),value_credits:t,value_usd:Wa(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function rv(e){const t=e;if((t==null?void 0:t.code)===4001)return"user_rejected";const r=((t==null?void 0:t.message)??"").toLowerCase();return r.includes("reject")||r.includes("denied")||r.includes("cancel")?"user_rejected":r.includes("insufficient")?"insufficient_credits":r.includes("not for sale")||r.includes("no active listing")||r.includes("sold")?"not_for_sale":"unknown"}function M8(e){return rv(e)==="user_rejected"}function nv(e){const t=window;if(t.analytics&&t.analytics.invoked)return;const r=t.analytics||[];r.invoked=!0,r.methods=["track","identify","page","group","alias","ready","on","once","off","reset","setAnonymousId"],r.factory=n=>(...a)=>(r.push([n,...a]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const a=document.createElement("script");a.async=!0,a.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(a)},t.analytics=r,r.load(e),r.page()}let E0=!1;function av(){if(E0)return;E0=!0;const e=He.segmentWriteKey;e&&nv(e)}let el=null;function ov(e){el=e}function x0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),el)try{el(e,t)}catch{}}const sv=/0x[a-fA-F0-9]{130}\b/g,iv=/0x[a-fA-F0-9]{64}\b/g,cv=/(sk_[a-z]+_[A-Za-z0-9]+|pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+|[A-Za-z0-9-]*secret[A-Za-z0-9-]*)/gi,lv=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function Na(e){return e.replace(sv,"<signature>").replace(cv,"<secret>").replace(iv,"<hex32>")}function uv(e){var r;e.message&&(e.message=Na(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=Na(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=Na(n.message));e.request&&(e.request.url&&(e.request.url=Na(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const a of Object.keys(n)){if(lv.test(a)){delete n[a];continue}typeof n[a]=="string"&&(n[a]=Na(n[a]))}};return t(e.tags),t(e.extra),e}let S0=!1;function dv(){if(S0)return;const e=He.sentryDsn;if(!e)return;S0=!0,n1({dsn:e,environment:He.sentryEnvironment,release:He.sentryRelease,integrations:[new a1],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:uv});const t=fv();t&&o1({id:t}),ov((r,n)=>s1(r,{extra:n}))}function fv(){var e;try{return((e=Fn.getState().session)==null?void 0:e.address)??null}catch{return null}}const T0="shop-favorites";let _s=null;const Af=e=>e?`${T0}:${e.toLowerCase()}`:T0;function A0(e){var t;try{const r=localStorage.getItem(Af(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const a=n,o="state"in n&&((t=a.state)!=null&&t.items)?a.state.items:n;return o&&typeof o=="object"?o:{}}catch{return{}}}function k0(e){try{localStorage.setItem(Af(_s),JSON.stringify(e))}catch{}}const Ss=Bn(e=>({items:A0(_s),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,k0(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],k0(n),{items:n}}),reloadFor:t=>{_s=t?t.toLowerCase():null,e({items:A0(_s)})}})),I0="shop:followed-creators:v1",hv=200;let Rl=null;const kf=e=>e?`${I0}:${e.toLowerCase()}`:I0;function R0(){try{const e=localStorage.getItem(kf(Rl));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function N0(e){try{localStorage.setItem(kf(Rl),JSON.stringify(e))}catch{}}const tl=Bn((e,t)=>({followed:R0(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const a=[n,...t().followed].slice(0,hv);N0(a),e({followed:a}),ur("Shop Followed Creator",{creator_address:n,following_count:a.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const a=t().followed.filter(o=>o!==n);N0(a),e({followed:a}),ur("Shop Unfollowed Creator",{creator_address:n,following_count:a.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{Rl=r?r.toLowerCase():null,e({followed:R0()})}})),Ei="shop:signing_in",Fn=Bn(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(Ei,"1")}catch{}zy()},disconnect:async()=>{ur("Shop Signed Out");try{await Wy()}catch(t){x0(t,{flow:"wallet",step:"disconnect"})}Xy(),Ss.getState().reloadFor(null),tl.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await Gy()}catch(n){x0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),Ss.getState().reloadFor(t.address),tl.getState().reloadFor(t.address),Jy(t.address,{sign_in_method:C0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(Ei)==="1",r&&sessionStorage.removeItem(Ei)}catch{}r&&ur("Shop Signed In",{method:C0(t.providerType),is_new_user:tv(t.address)})}}));async function If(e){var n;const t=await fetch(`${He.peerUrl}/lambdas/profiles/${e.toLowerCase()}`);if(!t.ok)return;const r=await t.json();return(n=r==null?void 0:r.avatars)==null?void 0:n[0]}function so(e){return Wr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>If(e)})}var qr={},xi={},P0;function Rf(){return P0||(P0=1,Object.defineProperty(xi,"__esModule",{value:!0})),xi}var Ur={},Er={},Wn={},Cn={},O0={},Pa,j0;function pr(){if(j0)return Pa;j0=1;var e=function(t){return t&&t.Math===Math&&t};return Pa=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Oc=="object"&&Oc)||e(typeof Pa=="object"&&Pa)||(function(){return this})()||Function("return this")(),Pa}var Si,L0;function $n(){return L0||(L0=1,Si=function(e){try{return!!e()}catch{return!0}}),Si}var Ti,M0;function Ms(){if(M0)return Ti;M0=1;var e=$n();return Ti=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Ti}var Ai,B0;function mv(){if(B0)return Ai;B0=1;var e=Ms(),t=Function.prototype,r=t.apply,n=t.call;return Ai=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Ai}var ki,F0;function _a(){if(F0)return ki;F0=1;var e=Ms(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return ki=e?n:function(a){return function(){return r.apply(a,arguments)}},ki}var Ii,$0;function Nf(){if($0)return Ii;$0=1;var e=_a(),t=e({}.toString),r=e("".slice);return Ii=function(n){return r(t(n),8,-1)},Ii}var Ri,D0;function Pf(){if(D0)return Ri;D0=1;var e=Nf(),t=_a();return Ri=function(r){if(e(r)==="Function")return t(r)},Ri}var Ni,q0;function Dn(){if(q0)return Ni;q0=1;var e=typeof document=="object"&&document.all;return Ni=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Ni}var Pi={},Oi,U0;function io(){if(U0)return Oi;U0=1;var e=$n();return Oi=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Oi}var ji,H0;function Nl(){if(H0)return ji;H0=1;var e=Ms(),t=Function.prototype.call;return ji=e?t.bind(t):function(){return t.apply(t,arguments)},ji}var Li={},V0;function pv(){if(V0)return Li;V0=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Li.f=r?function(a){var o=t(this,a);return!!o&&o.enumerable}:e,Li}var Mi,z0;function Of(){return z0||(z0=1,Mi=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Mi}var Bi,G0;function gv(){if(G0)return Bi;G0=1;var e=_a(),t=$n(),r=Nf(),n=Object,a=e("".split);return Bi=t(function(){return!n("z").propertyIsEnumerable(0)})?function(o){return r(o)==="String"?a(o,""):n(o)}:n,Bi}var Fi,W0;function jf(){return W0||(W0=1,Fi=function(e){return e==null}),Fi}var $i,Z0;function Lf(){if(Z0)return $i;Z0=1;var e=jf(),t=TypeError;return $i=function(r){if(e(r))throw new t("Can't call method on "+r);return r},$i}var Di,K0;function yv(){if(K0)return Di;K0=1;var e=gv(),t=Lf();return Di=function(r){return e(t(r))},Di}var qi,Y0;function Bs(){if(Y0)return qi;Y0=1;var e=Dn();return qi=function(t){return typeof t=="object"?t!==null:e(t)},qi}var Ui,Q0;function Mf(){return Q0||(Q0=1,Ui={}),Ui}var Hi,J0;function vv(){if(J0)return Hi;J0=1;var e=Mf(),t=pr(),r=Dn(),n=function(a){return r(a)?a:void 0};return Hi=function(a,o){return arguments.length<2?n(e[a])||n(t[a]):e[a]&&e[a][o]||t[a]&&t[a][o]},Hi}var Vi,X0;function bv(){if(X0)return Vi;X0=1;var e=_a();return Vi=e({}.isPrototypeOf),Vi}var zi,ed;function wv(){if(ed)return zi;ed=1;var e=pr(),t=e.navigator,r=t&&t.userAgent;return zi=r?String(r):"",zi}var Gi,td;function _v(){if(td)return Gi;td=1;var e=pr(),t=wv(),r=e.process,n=e.Deno,a=r&&r.versions||n&&n.version,o=a&&a.v8,s,d;return o&&(s=o.split("."),d=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!d&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(d=+s[1]))),Gi=d,Gi}var Wi,rd;function Bf(){if(rd)return Wi;rd=1;var e=_v(),t=$n(),r=pr(),n=r.String;return Wi=!!Object.getOwnPropertySymbols&&!t(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Wi}var Zi,nd;function Ff(){if(nd)return Zi;nd=1;var e=Bf();return Zi=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zi}var Ki,ad;function $f(){if(ad)return Ki;ad=1;var e=vv(),t=Dn(),r=bv(),n=Ff(),a=Object;return Ki=n?function(o){return typeof o=="symbol"}:function(o){var s=e("Symbol");return t(s)&&r(s.prototype,a(o))},Ki}var Yi,od;function Cv(){if(od)return Yi;od=1;var e=String;return Yi=function(t){try{return e(t)}catch{return"Object"}},Yi}var Qi,sd;function Df(){if(sd)return Qi;sd=1;var e=Dn(),t=Cv(),r=TypeError;return Qi=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Qi}var Ji,id;function Ev(){if(id)return Ji;id=1;var e=Df(),t=jf();return Ji=function(r,n){var a=r[n];return t(a)?void 0:e(a)},Ji}var Xi,cd;function xv(){if(cd)return Xi;cd=1;var e=Nl(),t=Dn(),r=Bs(),n=TypeError;return Xi=function(a,o){var s,d;if(o==="string"&&t(s=a.toString)&&!r(d=e(s,a))||t(s=a.valueOf)&&!r(d=e(s,a))||o!=="string"&&t(s=a.toString)&&!r(d=e(s,a)))return d;throw new n("Can't convert object to primitive value")},Xi}var ec={exports:{}},tc,ld;function Sv(){return ld||(ld=1,tc=!0),tc}var rc,ud;function Tv(){if(ud)return rc;ud=1;var e=pr(),t=Object.defineProperty;return rc=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},rc}var dd;function Av(){if(dd)return ec.exports;dd=1;var e=Sv(),t=pr(),r=Tv(),n="__core-js_shared__",a=ec.exports=t[n]||r(n,{});return(a.versions||(a.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ec.exports}var nc,fd;function kv(){if(fd)return nc;fd=1;var e=Av();return nc=function(t,r){return e[t]||(e[t]=r||{})},nc}var ac,hd;function Iv(){if(hd)return ac;hd=1;var e=Lf(),t=Object;return ac=function(r){return t(e(r))},ac}var oc,md;function Pl(){if(md)return oc;md=1;var e=_a(),t=Iv(),r=e({}.hasOwnProperty);return oc=Object.hasOwn||function(a,o){return r(t(a),o)},oc}var sc,pd;function Rv(){if(pd)return sc;pd=1;var e=_a(),t=0,r=Math.random(),n=e(1.1.toString);return sc=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++t+r,36)},sc}var ic,gd;function Nv(){if(gd)return ic;gd=1;var e=pr(),t=kv(),r=Pl(),n=Rv(),a=Bf(),o=Ff(),s=e.Symbol,d=t("wks"),f=o?s.for||s:s&&s.withoutSetter||n;return ic=function(h){return r(d,h)||(d[h]=a&&r(s,h)?s[h]:f("Symbol."+h)),d[h]},ic}var cc,yd;function Pv(){if(yd)return cc;yd=1;var e=Nl(),t=Bs(),r=$f(),n=Ev(),a=xv(),o=Nv(),s=TypeError,d=o("toPrimitive");return cc=function(f,h){if(!t(f)||r(f))return f;var m=n(f,d),p;if(m){if(h===void 0&&(h="default"),p=e(m,f,h),!t(p)||r(p))return p;throw new s("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(f,h)},cc}var lc,vd;function qf(){if(vd)return lc;vd=1;var e=Pv(),t=$f();return lc=function(r){var n=e(r,"string");return t(n)?n:n+""},lc}var uc,bd;function Ov(){if(bd)return uc;bd=1;var e=pr(),t=Bs(),r=e.document,n=t(r)&&t(r.createElement);return uc=function(a){return n?r.createElement(a):{}},uc}var dc,wd;function Uf(){if(wd)return dc;wd=1;var e=io(),t=$n(),r=Ov();return dc=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),dc}var _d;function jv(){if(_d)return Pi;_d=1;var e=io(),t=Nl(),r=pv(),n=Of(),a=yv(),o=qf(),s=Pl(),d=Uf(),f=Object.getOwnPropertyDescriptor;return Pi.f=e?f:function(m,p){if(m=a(m),p=o(p),d)try{return f(m,p)}catch{}if(s(m,p))return n(!t(r.f,m,p),m[p])},Pi}var fc,Cd;function Lv(){if(Cd)return fc;Cd=1;var e=$n(),t=Dn(),r=/#|\.prototype\./,n=function(f,h){var m=o[a(f)];return m===d?!0:m===s?!1:t(h)?e(h):!!h},a=n.normalize=function(f){return String(f).replace(r,".").toLowerCase()},o=n.data={},s=n.NATIVE="N",d=n.POLYFILL="P";return fc=n,fc}var hc,Ed;function Mv(){if(Ed)return hc;Ed=1;var e=Pf(),t=Df(),r=Ms(),n=e(e.bind);return hc=function(a,o){return t(a),o===void 0?a:r?n(a,o):function(){return a.apply(o,arguments)}},hc}var mc={},pc,xd;function Bv(){if(xd)return pc;xd=1;var e=io(),t=$n();return pc=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),pc}var gc,Sd;function Fv(){if(Sd)return gc;Sd=1;var e=Bs(),t=String,r=TypeError;return gc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},gc}var Td;function $v(){if(Td)return mc;Td=1;var e=io(),t=Uf(),r=Bv(),n=Fv(),a=qf(),o=TypeError,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",m="writable";return mc.f=e?r?function(b,_,T){if(n(b),_=a(_),n(T),typeof b=="function"&&_==="prototype"&&"value"in T&&m in T&&!T[m]){var y=d(b,_);y&&y[m]&&(b[_]=T.value,T={configurable:h in T?T[h]:y[h],enumerable:f in T?T[f]:y[f],writable:!1})}return s(b,_,T)}:s:function(b,_,T){if(n(b),_=a(_),n(T),t)try{return s(b,_,T)}catch{}if("get"in T||"set"in T)throw new o("Accessors not supported");return"value"in T&&(b[_]=T.value),b},mc}var yc,Ad;function Dv(){if(Ad)return yc;Ad=1;var e=io(),t=$v(),r=Of();return yc=e?function(n,a,o){return t.f(n,a,r(1,o))}:function(n,a,o){return n[a]=o,n},yc}var vc,kd;function qv(){if(kd)return vc;kd=1;var e=pr(),t=mv(),r=Pf(),n=Dn(),a=jv().f,o=Lv(),s=Mf(),d=Mv(),f=Dv(),h=Pl(),m=function(p){var b=function(_,T,y){if(this instanceof b){switch(arguments.length){case 0:return new p;case 1:return new p(_);case 2:return new p(_,T)}return new p(_,T,y)}return t(p,this,arguments)};return b.prototype=p.prototype,b};return vc=function(p,b){var _=p.target,T=p.global,y=p.stat,I=p.proto,W=T?e:y?e[_]:e[_]&&e[_].prototype,g=T?s:s[_]||f(s,_,{})[_],A=g.prototype,w,K,U,x,q,Q,ee,ae,J;for(x in b)w=o(T?x:_+(y?".":"#")+x,p.forced),K=!w&&W&&h(W,x),Q=g[x],K&&(p.dontCallGetSet?(J=a(W,x),ee=J&&J.value):ee=W[x]),q=K&&ee?ee:b[x],!(!w&&!I&&typeof Q==typeof q)&&(p.bind&&K?ae=d(q,e):p.wrap&&K?ae=m(q):I&&n(q)?ae=r(q):ae=q,(p.sham||q&&q.sham||Q&&Q.sham)&&f(ae,"sham",!0),f(g,x,ae),I&&(U=_+"Prototype",h(s,U)||f(s,U,{}),f(s[U],x,q),p.real&&A&&(w||!A[x])&&f(A,x,q)))},vc}var Id;function Uv(){if(Id)return O0;Id=1;var e=qv(),t=pr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),O0}var bc,Rd;function Hv(){return Rd||(Rd=1,Uv(),bc=pr()),bc}var wc,Nd;function Vv(){if(Nd)return wc;Nd=1;var e=Hv();return wc=e,wc}var Pd;function Hf(){if(Pd)return Cn;Pd=1;var e=Cn&&Cn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.getImplementation=void 0;var t=e(Vv());function r(n,a){var o,s=(o=n[a])!==null&&o!==void 0?o:t.default[a];if(!s)throw new ReferenceError('"'+a+'" is not defined');return s}return Cn.getImplementation=r,Cn}var Od;function Vf(){if(Od)return Wn;Od=1;var e=Wn&&Wn.__values||function(d){var f=typeof Symbol=="function"&&Symbol.iterator,h=f&&d[f],m=0;if(h)return h.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&m>=d.length&&(d=void 0),{value:d&&d[m++],done:!d}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Wn,"__esModule",{value:!0});var t=Cf(),r=Hf(),n="x-identity-auth-chain-",a="x-identity-timestamp",o="x-identity-metadata";function s(d){d===void 0&&(d={});var f=(0,r.getImplementation)(d,"Headers");return function(m,p,b,_,T){var y,I,W=new f(T),g=String(Date.now()),A=JSON.stringify(_),w=[p,b,g,A].join(":").toLowerCase(),K=0,U=t.Authenticator.signPayload(m,w);try{for(var x=e(U),q=x.next();!q.done;q=x.next()){var Q=q.value;W.set(n+K,JSON.stringify(Q)),K++}}catch(ee){y={error:ee}}finally{try{q&&!q.done&&(I=x.return)&&I.call(x)}finally{if(y)throw y.error}}return W.set(a,g),W.set(o,A),W}}return Wn.default=s,Wn}var jd;function zf(){if(jd)return Er;jd=1;var e=Er&&Er.__assign||function(){return e=Object.assign||function(s){for(var d,f=1,h=arguments.length;f<h;f++){d=arguments[f];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(s[m]=d[m])}return s},e.apply(this,arguments)},t=Er&&Er.__rest||function(s,d){var f={};for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&d.indexOf(h)<0&&(f[h]=s[h]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,h=Object.getOwnPropertySymbols(s);m<h.length;m++)d.indexOf(h[m])<0&&Object.prototype.propertyIsEnumerable.call(s,h[m])&&(f[h[m]]=s[h[m]]);return f},r=Er&&Er.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Er,"__esModule",{value:!0});var n=r(Vf()),a=Hf();function o(s){s===void 0&&(s={});var d=(0,n.default)(s),f=(0,a.getImplementation)(s,"URL"),h=(0,a.getImplementation)(s,"Request"),m=(0,a.getImplementation)(s,"fetch");return function(b,_){if(_&&_.identity){var T=_.identity,y=_.metadata,I=t(_,["identity","metadata"]);if(typeof b=="string"||b instanceof f||globalThis.URL&&b instanceof globalThis.URL){var W=typeof b=="string"?new f(b):b,g=new h(W.toString(),e(e({},I),{headers:d(T,_.method||"GET",W.pathname,y||{},I==null?void 0:I.headers)}));return m(g)}var A=new f(b.url),w=new h(b),K=d(T,b.method||"GET",A.pathname,y||{});return K.forEach(function(U,x){w.headers.set(x,U)}),m(w)}return m(b,_)}}return Er.default=o,Er}var Ld;function zv(){return Ld||(Ld=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(s,d,f,h){h===void 0&&(h=f),Object.defineProperty(s,h,{enumerable:!0,get:function(){return d[f]}})}):(function(s,d,f,h){h===void 0&&(h=f),s[h]=d[f]})),r=Ur&&Ur.__exportStar||function(s,d){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,s,f)},n=Ur&&Ur.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(Rf(),e);var a=zf();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(a).default}});var o=Vf();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(o).default}})})(Ur)),Ur}var Md;function Gv(){return Md||(Md=1,(function(e){var t=qr&&qr.__createBinding||(Object.create?(function(o,s,d,f){f===void 0&&(f=d),Object.defineProperty(o,f,{enumerable:!0,get:function(){return s[d]}})}):(function(o,s,d,f){f===void 0&&(f=d),o[f]=s[d]})),r=qr&&qr.__exportStar||function(o,s){for(var d in o)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&t(s,o,d)},n=qr&&qr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),r(Rf(),e),r(zv(),e);var a=n(zf());e.default=(0,a.default)()})(qr)),qr}var Wv=Gv();const Fs=ks(Wv);async function Zv(e,t){const r=`${He.creditsServerUrl}/users/${e.toLowerCase()}/credits`,n=await Fs(r,{method:"GET",identity:t,metadata:{}});if(!n.ok)throw new Error(`getUserCredits ${n.status}: ${await n.text()}`);return n.json()}async function Kv(e,t){const{usd:r}=await Zv(e,t);return r??{balanceCents:0,credits:0}}async function B8(e,t,r){const n=`${He.creditsServerUrl}/credits/authorize`,a=await Fs(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!a.ok)throw new Error(`authorizeUsdCredit ${a.status}: ${await a.text()}`);return a.json()}async function F8(e,t,r){const n=new URLSearchParams;n.set("status","all"),n.set("limit",String(r.first)),(r==null?void 0:r.skip)!=null&&n.set("offset",String(r.skip));const a=n.toString(),o=`${He.creditsServerUrl}/users/${e.toLowerCase()}/purchases${a?`?${a}`:""}`,s=await Fs(o,{method:"GET",identity:t,metadata:{}});if(!s.ok)throw new Error(`fetchUserPurchases ${s.status}: ${await s.text()}`);const d=await s.json(),f=(d.purchases??[]).map(b=>({...b,txHash:b.txHash??b.transactionHash??null})),h=(r==null?void 0:r.skip)??0,m=r==null?void 0:r.first,p=typeof d.total=="number"?d.total:h+f.length+(f.length>=m?1:0);return{items:f,total:p}}async function $8(e,t){if(t.length===0)return 0;const r=`${He.creditsServerUrl}/credits/authorize/cancel`,n=await Fs(r,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({salts:t})});if(!n.ok)throw new Error(`cancelUsdIntents ${n.status}: ${await n.text()}`);return(await n.json()).released??0}async function D8(e,t=1e3){const r=await fetch(`${He.creditsServerUrl}/dev/mint-usd`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:e.toLowerCase(),usdCents:t})});if(!r.ok)throw new Error(`devMintUsd ${r.status}: ${await r.text()}`);return r.json()}function Yv(e){return Wr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>Kv(e.address,e.identity)})}function Qv(e,t){return t?"—":(e==null?void 0:e.credits)??0}const Jv={};function Gf(e,t){let r;try{r=e()}catch{return}return{getItem:a=>{var o;const s=f=>f===null?null:JSON.parse(f,void 0),d=(o=r.getItem(a))!=null?o:null;return d instanceof Promise?d.then(s):s(d)},setItem:(a,o)=>r.setItem(a,JSON.stringify(o,void 0)),removeItem:a=>r.removeItem(a)}}const Za=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Za(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Za(n)(r)}}}},Xv=(e,t)=>(r,n,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:I=>I,version:0,merge:(I,W)=>({...W,...I}),...t},s=!1;const d=new Set,f=new Set;let h;try{h=o.getStorage()}catch{}if(!h)return e((...I)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...I)},n,a);const m=Za(o.serialize),p=()=>{const I=o.partialize({...n()});let W;const g=m({state:I,version:o.version}).then(A=>h.setItem(o.name,A)).catch(A=>{W=A});if(W)throw W;return g},b=a.setState;a.setState=(I,W)=>{b(I,W),p()};const _=e((...I)=>{r(...I),p()},n,a);let T;const y=()=>{var I;if(!h)return;s=!1,d.forEach(g=>g(n()));const W=((I=o.onRehydrateStorage)==null?void 0:I.call(o,n()))||void 0;return Za(h.getItem.bind(h))(o.name).then(g=>{if(g)return o.deserialize(g)}).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==o.version){if(o.migrate)return o.migrate(g.state,g.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return g.state}).then(g=>{var A;return T=o.merge(g,(A=n())!=null?A:_),r(T,!0),p()}).then(()=>{W==null||W(T,void 0),s=!0,f.forEach(g=>g(T))}).catch(g=>{W==null||W(void 0,g)})};return a.persist={setOptions:I=>{o={...o,...I},I.getStorage&&(h=I.getStorage())},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>y(),hasHydrated:()=>s,onHydrate:I=>(d.add(I),()=>{d.delete(I)}),onFinishHydration:I=>(f.add(I),()=>{f.delete(I)})},y(),T||_},e3=(e,t)=>(r,n,a)=>{let o={storage:Gf(()=>localStorage),partialize:y=>y,version:0,merge:(y,I)=>({...I,...y}),...t},s=!1;const d=new Set,f=new Set;let h=o.storage;if(!h)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...y)},n,a);const m=()=>{const y=o.partialize({...n()});return h.setItem(o.name,{state:y,version:o.version})},p=a.setState;a.setState=(y,I)=>{p(y,I),m()};const b=e((...y)=>{r(...y),m()},n,a);a.getInitialState=()=>b;let _;const T=()=>{var y,I;if(!h)return;s=!1,d.forEach(g=>{var A;return g((A=n())!=null?A:b)});const W=((I=o.onRehydrateStorage)==null?void 0:I.call(o,(y=n())!=null?y:b))||void 0;return Za(h.getItem.bind(h))(o.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==o.version){if(o.migrate)return[!0,o.migrate(g.state,g.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,g.state];return[!1,void 0]}).then(g=>{var A;const[w,K]=g;if(_=o.merge(K,(A=n())!=null?A:b),r(_,!0),w)return m()}).then(()=>{W==null||W(_,void 0),_=n(),s=!0,f.forEach(g=>g(_))}).catch(g=>{W==null||W(void 0,g)})};return a.persist={setOptions:y=>{o={...o,...y},y.storage&&(h=y.storage)},clearStorage:()=>{h==null||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>T(),hasHydrated:()=>s,onHydrate:y=>(d.add(y),()=>{d.delete(y)}),onFinishHydration:y=>(f.add(y),()=>{f.delete(y)})},o.skipHydration||T(),_||b},t3=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Jv?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Xv(e,t)):e3(e,t),r3=t3,Ba=e=>!e.tokenId,_c=e=>typeof e.available=="number"?e.available:1/0,n3=e=>Wa(e.reduce((t,r)=>t+r.priceCredits*r.quantity,0)),Cc=e=>{const t=Math.floor(e.quantity??1),r=Ba(e)?Math.max(1,Number.isFinite(t)?t:1):1;return{...e,quantity:r}},qt=Bn()(r3((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const a=Ba(r),o=t().items.find(d=>d.id===r.id);if(o&&!a){e({open:!0});return}if(o&&o.quantity>=_c(o)){e({open:!0});return}e(d=>o?{items:d.items.map(f=>f.id===r.id?{...f,quantity:f.quantity+1}:f),open:!0,justAddedCount:(d.open?d.justAddedCount:0)+1}:{items:[...d.items,Cc(r)],open:!0,justAddedCount:(d.open?d.justAddedCount:0)+1});const s=t().items;ur("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Wa(r.priceCredits),is_primary:a,source:n,cart_size:s.length,cart_value_usd:n3(s)})},remove:r=>{const n=t().items.find(a=>a.id===r);e(a=>({items:a.items.filter(o=>o.id!==r)})),n&&ur("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},setQuantity:(r,n)=>e(a=>({items:a.items.map(o=>{if(o.id!==r||!Ba(o))return o;const s=Math.max(1,Math.min(Math.floor(n),_c(o)));return{...o,quantity:Number.isFinite(s)?s:1}})})),increment:r=>e(n=>({items:n.items.map(a=>a.id===r&&Ba(a)&&a.quantity<_c(a)?{...a,quantity:a.quantity+1}:a)})),decrement:r=>e(n=>({items:n.items.map(a=>a.id===r&&Ba(a)&&a.quantity>1?{...a,quantity:a.quantity-1}:a)})),clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r.map(Cc)}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:2,storage:Gf(()=>localStorage),partialize:e=>({items:e.items}),migrate:e=>{const t=e;return t!=null&&t.items?{items:t.items.map(Cc)}:t}})),va={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function q8(e){return`${e} ${e===1?va.nameSingular:va.name}`}const a3=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function Vr(e){return a3.format(e)}function nn(e){return e.toLocaleString("en")}function Qt({className:e}){return u.jsx(ct,{name:va.iconName,className:e})}function Wf(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function o3(e){u1(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var s3=xn(xn({},l1),{textComponent:ne.Fragment});function i3(e){return function(t){return e(ne.Children.toArray(t))}}var Ol=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ne.createContext(null)):ne.createContext(null);Ol.Consumer;var c3=Ol.Provider,l3=c3,u3=Ol;function Zf(){var e=ne.useContext(u3);return o3(e),e}var rl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(rl||(rl={}));var nl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(nl||(nl={}));function Kf(e){var t=function(r){var n=Zf(),a=r.value,o=r.children,s=fl(r,["value","children"]),d=typeof a=="string"?new Date(a||0):a,f=e==="formatDate"?n.formatDateToParts(d,s):n.formatTimeToParts(d,s);return o(f)};return t.displayName=nl[e],t}function co(e){var t=function(r){var n=Zf(),a=r.value,o=r.children,s=fl(r,["value","children"]),d=n[e](a,s);if(typeof o=="function")return o(d);var f=n.textComponent||ne.Fragment;return ne.createElement(f,null,d)};return t.displayName=rl[e],t}function Yf(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=f1(n)?i3(n):n,t},{})}var Bd=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var s=Yf(n),d=h1.apply(void 0,m1([e,t,r,s],a,!1));return Array.isArray(d)?ne.Children.toArray(d):d},d3=function(e,t){var r=e.defaultRichTextElements,n=fl(e,["defaultRichTextElements"]),a=Yf(r),o=d1(xn(xn(xn({},s3),n),{defaultRichTextElements:a}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return xn(xn({},o),{formatMessage:Bd.bind(null,s,o.formatters),$t:Bd.bind(null,s,o.formatters)})};co("formatDate");co("formatTime");co("formatNumber");co("formatList");co("formatDisplayName");Kf("formatDate");Kf("formatTime");const f3={rejected:"You cancelled the request.",insufficient:"You don't have enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed.",cantBuyOwn:"You can't buy your own listing."},h3={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",activity:"Activity",authorizations:"Approvals",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},m3={suggestions:"Search suggestions",recent:"Recent searches",clearRecent:"Clear",removeRecent:"Remove “{query}” from recent searches",searching:"Searching…",noResults:"No results match “{query}”",seeAll:"See all {count} results",clear:"Clear search",creators:"Creators",collections:"Collections",items:"Items",byCreator:"By {name}"},p3={breadcrumb:"Collectibles",fallbackTitle:"Collection",category:"Category",viewProfile:"View profile",copyAddress:"Copy account",copied:"Copied",empty:"This collection has no items to show.",error:"Couldn’t load this collection — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},g3={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},y3={shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"NAMEs",collections:"Collections",head:"Head",upperBody:"Upper Body",handwear:"Handwear",lowerBody:"Lower Body",feet:"Feet",accessories:"Accessories",skins:"Skins",dance:"Dance",stunt:"Stunt",greetings:"Greetings",fun:"Fun",poses:"Poses",reactions:"Reactions",horror:"Horror",miscellaneous:"Miscellaneous"},v3={breadcrumb:"Assets",category:"Category",fallbackName:"Creator",viewProfile:"View profile",editStore:"Edit store",link:{website:"Website",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Follow",following:"Following",followTitle:"Follow creator",unfollowTitle:"Unfollow creator",empty:"This creator has no items to show yet.",collectionsCount:"{count, plural, one {# collection} other {# collections}}",collectionsEmpty:"This creator hasn’t published any collections yet.",error:"Couldn’t load this creator — please try again.",breadcrumbAria:"Breadcrumb",priceMin:"Minimum price",priceMax:"Maximum price",priceMinPlaceholder:"Min",priceMaxPlaceholder:"Max",priceHint:"Price in {currency}"},b3={title:"Store settings",back:"Back to your store",signInPrompt:"Sign in to set up your store.",signIn:"Sign in",seeAsGuest:"See store as guest",loading:"Loading your store…",cover:"Store cover",upload:"Upload your own",description:"Description",website:"Website",twitter:"Twitter handle",discord:"Discord invite ID",facebook:"Facebook handle",save:"Save",saving:"Saving…",saved:"Store saved.",saveError:"Couldn’t save your store — please try again.",sizeError:"Maximum cover size is {max}; the image you chose is {current}.",linkError:"Link should start with {value}"},w3={title:"Page not found",body:"The page you’re looking for isn’t here. Let’s get you back to the shop.",cta:"Browse Collectibles"},_3={empty:{title:"Your cart is empty",body:"Find something you love and it’ll show up here.",cta:"Browse Collectibles"},panelTitle:"Cart: {count, plural, one {# Item} other {# Items}}",goBack:"Go back",fittingRoom:"Fitting Room",removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",decreaseQuantity:"Decrease quantity of {name}",removeFromFavorites:"Remove {name} from favorites",addToFavorites:"Add {name} to favorites",remove:"Remove {name}",removeTitle:"Remove",clearCart:"Clear cart",purchaseSummary:"Purchase Summary",totalItems:"Total: {count, plural, one {# item} other {# items}}",working:"Working…",signInHint:"You'll be asked to sign in first.",priceChanged:"Prices or availability changed since you added these — review the updated total and confirm to buy.",youMightAlsoLike:"You might also like",status:{reviewing:"Reviewing your cart…"},error:{insufficient:"You don't have enough {currency} — get more first.",noneAvailable:"None of these items are available to buy right now.",listingChanged:"One or more items changed — please review your cart and try again."},drop:{unavailable:"{count} no longer available",own:"{count} you can't buy (your own listing)",and:"and",removed:"Removed {items} from your cart."}},C3={title:"Purchase {currency}",subtitle:"Get {currency} and start shopping in the Marketplace!",learnMore:"Learn more",canceledNote:"Payment canceled — no charge was made. Pick a pack whenever you’re ready.",packBadge:"Recommended",packAria:"Get {amount} for ${usd}",packsLoading:"Loading {currency} packs…",creditsAmount:"{credits} {currency}",redirecting:"Redirecting to secure checkout…",processing:"Completing purchase",successTitle:"Your purchase was successful!",successBody:"Your {currency} are ready to spend in the Marketplace.",creditsAdded:"Added to your account",buyMore:"Buy more {currency}",startShopping:"Start shopping",pendingTitle:"Your {currency} are on the way",pendingBody:"Your payment went through. It’s taking a little longer than usual to confirm — your balance will update automatically as soon as it lands, no need to pay again.",done:"Done",errorTitle:"Something went wrong",tryAgain:"Try again",errorCanceled:"You cancelled the request.",errorSignIn:"Sign in to get {currency}.",errorTimeout:"This is taking longer than usual — your {currency} will appear shortly.",errorGeneric:"Couldn’t complete your purchase — please try again.",errorGrant:"Couldn’t add your {currency} — please try again."},E3={price:"Price",status:"Status",statusAll:"All",onSale:"On Sale",notForSale:"Not for Sale",smart:"Smart",smartHint:"Smart wearables add interactive, in-world utility."},x3={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",onSaleCount:"{count, plural, one {# on sale} other {# on sale}}",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",manage:"Manage",inCart:"In cart",addToCart:"Add to cart",notForSale:"Not for Sale",view:"View"},S3={label:"Notify me when available",placeholder:"Enter your email",cta:"Notify me",working:"Sending…",signInCta:"Sign in to get notified",subscribedTitle:"You're on the list",subscribedBody:"You'll be notified when it's available again.",error:"Couldn't save that — please try again."},T3={cta:"Make an offer",comingSoon:"Coming soon — you'll be able to make an offer on items that aren't for sale."},A3={titleBuy:"Buy Asset",titleNoFunds:"Buy Credits and Item",titleComplete:"Purchase complete!",dialogAria:"Buy {name}",close:"Close",dclBalance:"DCL Balance:",myCreditsBalance:"My Credits Balance:",signInToCheckout:"Sign in to check out.",insufficientFunds:"Insufficient Funds.",warningNeedToBuy:"You will need to buy",warningCreditsAmount:"{count} Credits",warningToPurchase:"to purchase {count, plural, one {this item.} other {these items.}}",cancel:"Cancel",buy:"Buy",completingPurchase:"Completing Purchase…",completingTransaction:"Completing your purchase…",confirmToContinue:"Confirm to continue…",successBody:"You can find your item in the My Assets tab.",myAssets:"My assets",tryInWorld:"Try in world",itemFallback:"Item",error:{generic:"Couldn't complete the purchase — please try again.",creditsCheckout:"Couldn't start the credits checkout — please try again."}},k3={titleBuy:"Buy Assets",titleNoFunds:"Buy Credits and Items",dialogAria:"Check out your cart",qty:"× {count}",preparing:"Preparing your purchase…",errorTitle:"Oops! Something went wrong",errorHeadline:"We couldn't complete your purchase this time.",errorBody:"Don't worry, your credits are safe. Please try again in a moment.",tryAgain:"Try again"},I3={finalPrice:"Final price",lockedForPurchase:"Locked for this purchase",todaysPrice:"Today’s price",lockingPrice:"Locking today’s price…",yourBalance:"Your balance:",needMore:"You’ll need a few more {currency} to buy this.",confirming:"Confirming your purchase…",buying:"Buying…",confirmPurchase:"Confirm purchase",error:{insufficient:"Not enough {currency} — get more first.",soldOrRemoved:"This item was just sold or removed. Refreshing the market…",generic:"Couldn't complete checkout — please try again."}},R3={genderMale:"Male",genderFemale:"Female",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"More from this collection",notForSale:"Not for sale",checking:"Checking…",maxInCart:"Max in cart",notAvailableTitle:"This item isn’t available",notAvailableBody:"It may have been delisted or moved. Browse Collectibles for something else.",breadcrumbAria:"Breadcrumb",itemFallback:"Item",description:"Description",showLess:"Show less",readMore:"Read more",creator:"Creator",collection:"Collection",price:"Price",stock:"Stock",outOfStock:"Out of stock",notForSaleHint:"This item isn't listed for sale right now. Get notified when it becomes available.",ownItemPrefix:"This is your item — manage it in",ownItemSuffix:".",manageList:"List for sale",manageUpdatePrice:"Update price",manageRemove:"Remove from sale",manageWorking:"Working…"},N3={title:"Resellers",subtitle:"Other copies of this item on sale right now.",copy:"Open resale",seller:"Seller",serialLabel:"Copy",serialOf:"of",yourListing:"Your listing",showMore:"See more",legacyTitle:"Also on the classic marketplace",legacyNote:"These copies aren't available to buy here — open the classic marketplace to purchase them.",classicBadge:"Classic marketplace",viewOnMarketplace:"View on Marketplace"},P3={finalizing:"Finalizing your purchase…",processing:"Processing your purchase…",indexingBefore:"Payment confirmed — adding",indexingAfter:"to your wardrobe. Almost there.",confirmingBefore:"Confirming",confirmingAfter:"— this usually takes a few seconds. Keep this tab open.",itemCount:"{count, plural, one {# item} other {# items}}",viewTransaction:"View receipt ↗",stillProcessingTitle:"Still processing…",timedOutBefore:"This is taking longer than usual to confirm. Your purchase may still complete — check",timedOutAfter:"in a few minutes to see the final status. No need to buy again.",viewActivity:"View your activity",keepShopping:"Keep shopping",failedTitle:"Your purchase didn’t go through",failedBody:"The purchase couldn’t be completed, so nothing was delivered. Your credits weren’t spent (any hold is released shortly) — you can try again.",backToShop:"Back to shop",title:"It’s yours!",heroInWardrobe:"is now in your wardrobe.",itemsInWardrobe:"{count, plural, one {# item is now in your wardrobe.} other {# items are now in your wardrobe.}}",viewOrder:"View order",useItInWorld:"Use it in-world",bannerTitle:"Your purchase was successful!",bannerBody:"You can find your item in the My Assets tab.",myAssets:"My Assets",tryInWorld:"Try in World"},O3={loading:"Loading preview",shownOnBody:"Shown on a {shape} body — this item isn’t made for your avatar’s shape.",previewMode:"Preview mode",onAvatar:"On avatar",item:"Item"},j3={filters:"Filters",closeFilters:"Close filters",category:"Category",min:"Min",max:"Max",priceTo:"to",minPriceAria:"Minimum price",maxPriceAria:"Maximum price",minPriceSliderAria:"Minimum price slider",maxPriceSliderAria:"Maximum price slider",rarity:"Rarity",clearFilters:"Clear Filters",apply:"Apply",showItems:"Show items",marketUnavailable:"Some market prices are temporarily unavailable — buying those items is paused for a moment. Please try again shortly.",loadError:"Couldn’t load items — please try again.",noItems:"No items match your filters."},L3={signInPrompt:"Sign in to sell your items.",removedFromSale:"“{name}” is no longer for sale.",removeListingError:"Couldn’t remove the listing — please try again.",importTitle:"Import your listings",importSub:"You have {count, plural, one {# item} other {# items}} for sale elsewhere — bring them into the Shop.",import:"Import",ownedTitle:"Items you own",ownedSub:"Wearables & emotes you’ve bought — resell them in the Shop.",ownedError:"Couldn’t load your items — please try again.",viewItem:"View {name}",onSale:"On sale",removing:"Removing…",removeListing:"Remove from sale",putOnSale:"Put on sale",ownedEmpty:"Items you own will show up here. Explore the shop and start your collection.",namesEmpty:"Claim a unique NAME to stand out in Decentraland — it’ll appear here once it’s yours.",emptyOwnedTitle:"Nothing here yet",emptyNamesTitle:"No NAMEs yet",emptyCreationsTitle:"No creations yet",emptyBrowse:"Browse Collectibles",creationsTitle:"Your creations",creationsSub:"Items you made. Put them on sale in the Shop — set a price in {currency} and buyers pay with {currency}.",collectionsError:"We couldn’t load your collections right now. Please try again in a moment.",nothingToPublish:"You don’t have any items to publish yet.",available:"{count, number} available",assetsHeading:"Assets",sectionWearables:"Wearables",sectionEmotes:"Emotes",sectionNames:"Names",sectionCreations:"My Creations",searchPlaceholder:"Search your items",clearSearch:"Clear search"},M3={filter:{all:"All",purchases:"Purchases",sales:"Sales"},processing:"Processing",completed:"Completed",sold:"Sold",purchaseLabel:"Purchase",saleLabel:"Sale",soldTo:"Sold to {account}",approxValue:"Approximate value in credits",itemFallback:"Item",signInTitle:"Sign in to see your activity",signInBody:"Your purchases and sales show up here once you sign in.",emptyAllTitle:"No activity yet",emptyAllBody:"Your purchases and sales will appear here.",emptyPurchasesTitle:"No purchases yet",emptyPurchasesBody:"When you buy something it’ll appear here.",emptySalesTitle:"No sales yet",emptySalesBody:"When someone buys one of your items it’ll appear here.",itemCount:"{count, plural, one {# item} other {# items}}",quantity:"×{count}"},B3={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},F3={viewAll:"View all",previous:"Previous",next:"Next",carouselPages:"{title} pages",goToPage:"Go to page {page}",heroTitle:"Fashion week outfits",exploreCollection:"Explore collection",featuredProducts:"Featured Products",newCreations:"New Creations",promoEmotesAria:"Best rated emotes — explore collection",promoEmotesAlt:"Best rated emotes",promoOutfitsAria:"Week selected outfits — explore collection",promoOutfitsAlt:"Week selected outfits",emptyTitle:"New drops are on the way",emptyBody:"There are no items on sale right now — check back soon."},$3={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},D3={removeFromCart:"Remove {name} from cart",increaseQuantity:"Increase quantity",decreaseQuantity:"Decrease quantity of {name}",removeItem:"Remove {name}",remove:"Remove",dialogLabel:"Shopping cart",title:"Shopping Cart ({count})",close:"Close",bannerCount:"{count, plural, one {# Item} other {# Items}}",bannerAdded:"successfully added to cart!",total:"Total: {count, plural, one {# item} other {# items}}",goToCart:"Go to cart",continueShopping:"Continue shopping"},q3={sortNewest:"Newest",sortCheapest:"Cheapest",sortMostExpensive:"Most Expensive",sortName:"Name (A–Z)",count:"{count, plural, one {# Item} other {# Items}}",forQuery:"for “{query}”",rarity:"Rarity",clearAll:"Clear all",filters:"Filters",sortBy:"Sort by",removeFilter:"Remove {filter} filter"},U3={added:"Added {count, plural, one {# item} other {# items}} to your cart.",forSale:"{count} for sale",allInCart:"All in cart",addAll:"Add all ({count}) to cart"},H3={newsletterTitle:"Get the weekly highlights in your inbox",newsletterFrameTitle:"Newsletter signup",connect:"Connect",gettingStarted:"Getting Started",resources:"Resources",menu:"Menu",linkWhatIs:"What is Decentraland",linkDownload:"Download",linkSystemRequirements:"System Requirements",linkFaqs:"FAQs",linkContactSupport:"Contact Support",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Docs",linkBlog:"Blog",linkVote:"Vote",linkPrivacy:"Privacy Policy",linkTerms:"Terms of Use",linkContentPolicy:"Content Policy",linkEthics:"Code of Ethics"},V3={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},z3={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},G3={loading:"Loading…",loadMore:"Load more"},W3={title:"Recently viewed"},Z3={title:"From creators you follow"},K3={loading:"Loading"},Y3={label:"Purchase successful"},Q3={creations:{title:"Your creations",sub:"Items you made. Put them on sale in the Shop."},owned:{title:"Items you own",sub:"Things you've bought elsewhere — resell them in the Shop."},toastUpdated:"Your Shop is updated.",signInTitle:"Import your listings",signInBody:"Sign in to bring the items you already sell into the Shop.",emptyTitle:"You're all caught up",emptyBody:"Everything you sell is already in the Shop — nothing to import.",goToMyAssets:"Go to My Assets",eyebrow:"Import to the Shop",titleLead:"Bring your listings",titleAccent:"into the Shop",lede:"These items are already for sale elsewhere. We suggested a price in {currency} for each — matched to today's rate and rounded up. Adjust anything, then list them.",rate:"1 {currency} = $0.10 · prices rounded up",includeItem:"Include {name}",itemFallback:"Item",priceAria:"Price in {currency} for {name}",resetTo:"Reset to",list:"List",selectedSummary:"{count, plural, one {# item} other {# items}} selected · ${usd}",listAll:"List all ({count})"},J3={errorGeneric:"Couldn't list your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusPreparing:"Getting your item ready…",statusListing:"Listing your item…",statusPublishing:"Publishing…",toastOnSale:"“{name}” is now on sale!",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",viewInShop:"View in Shop",listTitle:"List “{name}”",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",cancel:"Cancel",listing:"Listing…",putOnSale:"Put on sale"},X3={errorGeneric:"Couldn't publish your item — please try again.",errorWholeNumber:"Enter a whole number of credits",statusEnabling:"Enabling sales for this collection…",statusPublishing:"Publishing your item…",statusFinishing:"Finishing up…",toastOnSale:"“{name}” is now on sale!",listing:"Listing…",enableAndPutOnSale:"Enable & put on sale",putOnSale:"Put on sale",successTitle:"It’s on sale! 🎉",listedFor:"Listed for",dotAvailable:"· {count, plural, one {# available} other {# available}}",viewInShop:"View in Shop",publishTitle:"Publish “{name}”",fromCollection:"From your collection “{collectionName}” · {count, plural, one {# available} other {# available}}",priceLabel:"Price ({currency})",pricedInWhole:"Priced in whole {currency} (1 {currencySingular} = $0.10).",firstTimeConfirm:"First time selling from “{collectionName}”? It needs a one-time approval, then you’ll confirm the listing — two quick confirmations. After this, listing more items from this collection is a single step.",firstTimeManaged:"First time selling from “{collectionName}”? Setting it up takes a moment — after that, listing more items from this collection is instant.",readyConfirm:"This collection is ready — publishing is a single confirmation.",readyManaged:"This collection is ready — publishing is instant.",cancel:"Cancel",checking:"Checking…"},eb={successTitle:"You're in the Shop! 🎉",nothingTitle:"Nothing listed",listedSummary:"{count, plural, one {# item is} other {# items are}} now for sale with {currency}.",noneListed:"No items were listed.",skippedSummary:"{count, plural, one {# skipped} other {# skipped}} — you can try those again anytime.",unlistedSummary:"{count, plural, one {# item was taken off the old marketplace but couldn't be re-listed — re-list it from My Assets.} other {# items were taken off the old marketplace but couldn't be re-listed — re-list them from My Assets.}}",goToMyAssets:"Go to My Assets",viewInShop:"View in Shop",listingTitle:"Listing your items",subConfirm:"We take down each old listing and re-list it for credits — confirm each step.",subManaged:"Moving your items to the Shop.",progressCount:"{current} of {total}",itemFallback:"Item",statusConfirm:"Confirm…",statusAdding:"Adding…",statusSkipped:"Skipped",statusFailed:"Failed",unlistedTooltip:"Removed from the old marketplace but not re-listed — re-list it from My Assets.",statusUnlisted:"Not listed",hintConfirm:"A couple of quick confirmations pop up per item (take down + re-list). Keep this open.",hintManaged:"This only takes a moment — keep this open.",statusWaiting:"Waiting"},tb={title:"Fitting room",close:"Close",wearable:"Wearable",emptyStageTitle:"Nothing on right now.",emptyStageBody:"Turn on an item from the list to try it.",sub:"Mix and match your cart. Turn items on and off to see the look.",emote:"Emote",conflictTooltip:"Only one item per slot can be worn",onePerSlot:"1 per slot",madeForShape:"This item is made for the {shape} body shape",shapeOnly:"{shape} only",removeFromCart:"Remove {name} from cart",remove:"Remove",itemCount:"{count, plural, one {# item} other {# items}}",checkout:"Checkout"},rb={male:"Male",female:"Female"},nb={breadcrumbAria:"Breadcrumb",breadcrumbCollectibles:"Collectibles",breadcrumbCurrent:"NAMEs",heroTitle:"Get your unique NAME!",heroSubtitle:"Activate the full potential of Decentraland citizenship with a unique NAME & your own World!",inputPlaceholder:"yourname",inputAria:"Search for a NAME",suffix:".dcl.eth",claim:"Claim name",checking:"Checking availability…",available:"{name} is available!",taken:"This NAME is taken. Choose another NAME or make an offer to the owner.",takenMakeOffer:"Make offer",tooShort:"Names must be at least {min} characters.",checkError:"We couldn’t check that NAME right now — you can still try to claim it.",whyTitle:"Why buy a NAME?",why1:"Stand out with a unique alias for your Avatar",why2:"Unlock your World and customize your own virtual 3D space to host events",why2Link:"Learn More",why3:"A dedicated URL for your virtual spaces to guide visitors with an exclusive URL to your LAND",why3Link:"http://yourname.dcl.eth",buyTitle:"Buy NAME",myCreditsBalance:"My Credits Balance:",subtitle:"Decentraland NAMEs",confirmTitle:"Please confirm your NAME",confirmBody:"You’ve selected {name}. Re-enter the NAME to confirm your selection and continue with your purchase.",reenterAria:"Re-enter the NAME to confirm",buyCta:"Buy NAME",completing:"Completing your purchase…",confirming:"Confirm to continue…",successHeaderTitle:"Purchase complete!",successBannerBold:"Your purchase was successful!",successBannerRest:"You can find your NAME in the My Items tab.",myItems:"My Items",assignToAvatar:"Assign NAME to avatar",errorTitle:"Something went wrong",errorGeneric:"We couldn’t complete your purchase. Please try again.",tryAgain:"Try again"},ab={title:"Approvals",intro:"One-time approvals let the Shop act on your behalf. You stay in control — turn any of them off whenever you like.",buyingTitle:"For buying",sellingTitle:"For selling",creditsName:"Cover purchases from your balance",creditsDesc:"Lets the Shop top up a purchase from your balance when your credits don’t fully cover it.",sellingDesc:"Lets the Shop hand over an item from this collection when it sells.",sellingEmpty:"Nothing to approve yet. Approvals for selling appear here once you own collectibles.",collectionFallback:"Your collection",active:"On",inactive:"Off",checking:"Checking…",working:"Working…",activateAria:"Turn on “{name}”",deactivateAria:"Turn off “{name}”",toastActivated:"“{name}” is on.",toastDeactivated:"“{name}” is off.",errorGeneric:"Couldn’t update that — please try again.",signInTitle:"Sign in to manage approvals",signInBody:"Sign in to see and manage the approvals on your account.",managedTitle:"You’re all set",managedBody:"Your account handles everything automatically — there’s nothing here to manage. Buying and selling just work.",managedCta:"Browse collectibles"},ob={collectibles:{title:"Browse Collectibles",searchTitle:"Search results for “{query}”",description:"Browse thousands of wearables and emotes for your Decentraland avatar. Filter by category, rarity, and price to find your next look."},item:{notFoundTitle:"Item not available",fallbackDescription:"{name} — {rarity} {category} by {creator} on the Decentraland Shop."},collection:{description:"Explore every wearable and emote in the {name} collection on the Decentraland Shop."},creator:{description:"Discover wearables and emotes by {name} on the Decentraland Shop."},import:{title:"Import Listings"},storeSettings:{title:"Store Settings"},success:{title:"Purchase Complete"},notFound:{title:"Page Not Found"},names:{title:"Get a Decentraland NAME",description:"Claim your unique Decentraland NAME with credits — a personal alias for your avatar and your own World."}},sb={errors:f3,nav:h3,search:m3,collection:p3,collectionCard:g3,categories:y3,creator:v3,storeSettings:b3,notFound:w3,cart:_3,getCredits:C3,filter:E3,assetCard:x3,notifyMe:S3,makeOffer:T3,buyModal:A3,cartCheckout:k3,marketCheckout:I3,itemDetail:R3,resales:N3,success:P3,itemPreview:O3,assets:j3,myAssets:L3,activity:M3,myFavorites:B3,overview:F3,app:$3,cartPopover:D3,filterBar:q3,addAll:U3,footer:H3,collectionCarousel:V3,weekTopCreators:z3,loadMore:G3,recentlyViewed:W3,followedCreators:Z3,spinner:K3,successAnimation:Y3,importListings:Q3,sellModal:J3,primaryList:X3,migrate:eb,fittingRoom:tb,bodyShape:rb,names:nb,authorizations:ab,seo:ob},ib={rejected:"Cancelaste la solicitud.",insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse.",cantBuyOwn:"No puedes comprar tu propia publicación."},cb={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",activity:"Actividad",authorizations:"Autorizaciones",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},lb={suggestions:"Sugerencias de búsqueda",recent:"Búsquedas recientes",clearRecent:"Limpiar",removeRecent:"Quitar «{query}» de las búsquedas recientes",searching:"Buscando…",noResults:"Ningún resultado coincide con «{query}»",seeAll:"Ver los {count} resultados",clear:"Limpiar búsqueda",creators:"Creadores",collections:"Colecciones",items:"Artículos",byCreator:"Por {name}"},ub={breadcrumb:"Coleccionables",fallbackTitle:"Colección",category:"Categoría",viewProfile:"Ver perfil",copyAddress:"Copiar cuenta",copied:"Copiado",empty:"Esta colección no tiene artículos para mostrar.",error:"No pudimos cargar esta colección. Inténtalo de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},db={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},fb={shopAll:"Ver todo",wearables:"Wearables",emotes:"Emotes",names:"NAMEs",collections:"Colecciones",head:"Cabeza",upperBody:"Torso",handwear:"Manos",lowerBody:"Piernas",feet:"Pies",accessories:"Accesorios",skins:"Skins",dance:"Baile",stunt:"Truco",greetings:"Saludos",fun:"Divertido",poses:"Poses",reactions:"Reacciones",horror:"Horror",miscellaneous:"Misceláneos"},hb={breadcrumb:"Artículos",category:"Categoría",fallbackName:"Creador",viewProfile:"Ver perfil",editStore:"Editar tienda",link:{website:"Sitio web",twitter:"Twitter",discord:"Discord",facebook:"Facebook"},follow:"Seguir",following:"Siguiendo",followTitle:"Seguir al creador",unfollowTitle:"Dejar de seguir al creador",empty:"Este creador todavía no tiene artículos para mostrar.",collectionsCount:"{count, plural, one {# colección} other {# colecciones}}",collectionsEmpty:"Este creador todavía no ha publicado colecciones.",error:"No pudimos cargar este creador. Prueba de nuevo.",breadcrumbAria:"Ruta de navegación",priceMin:"Precio mínimo",priceMax:"Precio máximo",priceMinPlaceholder:"Mín",priceMaxPlaceholder:"Máx",priceHint:"Precio en {currency}"},mb={title:"Configuración de la tienda",back:"Volver a tu tienda",signInPrompt:"Inicia sesión para configurar tu tienda.",signIn:"Iniciar sesión",seeAsGuest:"Ver tienda como visitante",loading:"Cargando tu tienda…",cover:"Portada de la tienda",upload:"Sube tu portada",description:"Descripción",website:"Sitio web",twitter:"Usuario de Twitter",discord:"ID de invitación de Discord",facebook:"Usuario de Facebook",save:"Guardar",saving:"Guardando…",saved:"Tienda guardada.",saveError:"No pudimos guardar tu tienda. Prueba de nuevo.",sizeError:"El tamaño máximo de la portada es {max}; la imagen que elegiste pesa {current}.",linkError:"El enlace debe comenzar con {value}"},pb={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},gb={empty:{title:"Tu carrito está vacío",body:"Encuentra algo que te guste y aparecerá aquí.",cta:"Ver coleccionables"},panelTitle:"Carrito: {count, plural, one {# artículo} other {# artículos}}",goBack:"Volver",fittingRoom:"Probador",removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",decreaseQuantity:"Disminuir cantidad de {name}",removeFromFavorites:"Quitar {name} de favoritos",addToFavorites:"Agregar {name} a favoritos",remove:"Quitar {name}",removeTitle:"Quitar",clearCart:"Vaciar carrito",purchaseSummary:"Resumen de compra",totalItems:"Total: {count, plural, one {# artículo} other {# artículos}}",working:"Procesando…",signInHint:"Te pediremos que inicies sesión primero.",priceChanged:"Los precios o la disponibilidad cambiaron desde que los agregaste. Revisa el total actualizado y confirma para comprar.",youMightAlsoLike:"También te puede gustar",status:{reviewing:"Revisando tu carrito…"},error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",noneAvailable:"Ninguno de estos artículos está disponible para comprar en este momento.",listingChanged:"Uno o más artículos cambiaron. Revisa tu carrito e inténtalo de nuevo."},drop:{unavailable:"{count, plural, one {# que ya no está disponible} other {# que ya no están disponibles}}",own:"{count} que no puedes comprar (tu propia publicación)",and:"y",removed:"Eliminamos {items} de tu carrito."}},yb={title:"Comprar {currency}",subtitle:"¡Consigue {currency} y empieza a comprar en el Marketplace!",learnMore:"Más información",canceledNote:"Pago cancelado: no se realizó ningún cargo. Elige un paquete cuando quieras.",packBadge:"Recomendado",packAria:"Consigue {amount} por ${usd}",packsLoading:"Cargando paquetes de {currency}…",creditsAmount:"{credits} {currency}",redirecting:"Redirigiendo al pago seguro…",processing:"Completando la compra",successTitle:"¡Tu compra se realizó con éxito!",successBody:"Tus {currency} están listos para gastar en el Marketplace.",creditsAdded:"Añadidos a tu cuenta",buyMore:"Comprar más {currency}",startShopping:"Empezar a comprar",pendingTitle:"Tus {currency} están en camino",pendingBody:"Tu pago se procesó correctamente. Está tardando un poco más de lo habitual en confirmarse; tu saldo se actualizará automáticamente en cuanto llegue, no necesitas pagar de nuevo.",done:"Listo",errorTitle:"Algo salió mal",tryAgain:"Intentar de nuevo",errorCanceled:"Cancelaste la solicitud.",errorSignIn:"Inicia sesión para conseguir {currency}.",errorTimeout:"Esto está tardando más de lo habitual; tus {currency} aparecerán en breve.",errorGeneric:"No pudimos completar tu compra. Inténtalo de nuevo.",errorGrant:"No pudimos añadir tus {currency}. Inténtalo de nuevo."},vb={price:"Precio",status:"Estado",statusAll:"Todos",onSale:"En venta",notForSale:"No en venta",smart:"Smart",smartHint:"Los wearables Smart añaden utilidad interactiva en el mundo."},bb={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",onSaleCount:"{count, plural, one {# en venta} other {# en venta}}",unavailable:"No disponible",buyNow:"Comprar ahora",yourItem:"Tu artículo",manage:"Gestionar",inCart:"En el carrito",addToCart:"Agregar al carrito",notForSale:"No en venta",view:"Ver"},wb={label:"Avísame cuando esté disponible",placeholder:"Ingresa tu correo",cta:"Avísame",working:"Enviando…",signInCta:"Inicia sesión para recibir aviso",subscribedTitle:"Estás en la lista",subscribedBody:"Te avisaremos cuando vuelva a estar disponible.",error:"No pudimos guardarlo: inténtalo de nuevo."},_b={cta:"Hacer una oferta",comingSoon:"Muy pronto — vas a poder hacer una oferta por artículos que no están a la venta."},Cb={titleBuy:"Comprar artículo",titleNoFunds:"Comprar créditos y artículo",titleComplete:"¡Compra completada!",dialogAria:"Comprar {name}",close:"Cerrar",dclBalance:"Saldo de DCL:",myCreditsBalance:"Saldo de mis créditos:",signInToCheckout:"Inicia sesión para finalizar la compra.",insufficientFunds:"Fondos insuficientes.",warningNeedToBuy:"Necesitarás comprar",warningCreditsAmount:"{count} créditos",warningToPurchase:"para comprar {count, plural, one {este artículo.} other {estos artículos.}}",cancel:"Cancelar",buy:"Comprar",completingPurchase:"Completando la compra…",completingTransaction:"Completando tu compra…",confirmToContinue:"Confirma para continuar…",successBody:"Puedes encontrar tu artículo en la pestaña Mis artículos.",myAssets:"Mis artículos",tryInWorld:"Probar en el mundo",itemFallback:"Artículo",error:{generic:"No pudimos completar la compra. Inténtalo de nuevo.",creditsCheckout:"No pudimos iniciar el pago de créditos. Inténtalo de nuevo."}},Eb={titleBuy:"Comprar artículos",titleNoFunds:"Comprar créditos y artículos",dialogAria:"Finaliza la compra de tu carrito",qty:"× {count}",preparing:"Preparando tu compra…",errorTitle:"¡Ups! Algo salió mal",errorHeadline:"No pudimos completar tu compra esta vez.",errorBody:"Tranquilo, tus créditos están a salvo. Inténtalo de nuevo en un momento.",tryAgain:"Reintentar"},xb={finalPrice:"Precio final",lockedForPurchase:"Fijado para esta compra",todaysPrice:"Precio de hoy",lockingPrice:"Fijando el precio de hoy…",yourBalance:"Tu saldo:",needMore:"Necesitarás algunos {currency} más para comprar esto.",confirming:"Confirmando tu compra…",buying:"Comprando…",confirmPurchase:"Confirmar compra",error:{insufficient:"No tienes suficientes {currency}. Consigue más primero.",soldOrRemoved:"Este artículo acaba de venderse o eliminarse. Actualizando el mercado…",generic:"No pudimos completar la compra. Inténtalo de nuevo."}},Sb={genderMale:"Masculino",genderFemale:"Femenino",genderUnisex:"Unisex",categoryEmote:"Emote",categoryWearable:"Wearable",moreFromCollection:"Más de esta colección",notForSale:"No está a la venta",checking:"Comprobando…",maxInCart:"Máximo en el carrito",notAvailableTitle:"Este artículo no está disponible",notAvailableBody:"Puede que se haya retirado o movido. Explora los coleccionables para encontrar otra cosa.",breadcrumbAria:"Ruta de navegación",itemFallback:"Artículo",description:"Descripción",showLess:"Ver menos",readMore:"Leer más",creator:"Creador",collection:"Colección",price:"Precio",stock:"Stock",outOfStock:"Agotado",ownItemPrefix:"Este es tu artículo: gestiónalo en",ownItemSuffix:".",manageList:"Poner a la venta",manageUpdatePrice:"Actualizar precio",manageRemove:"Quitar de la venta",manageWorking:"Procesando…"},Tb={title:"Revendedores",subtitle:"Otras copias de este artículo a la venta ahora mismo.",copy:"Reventa disponible",seller:"Vendedor",serialLabel:"Copia",serialOf:"de",yourListing:"Tu publicación",showMore:"Ver más",legacyTitle:"También en el mercado clásico",legacyNote:"Estas copias no se pueden comprar aquí — abre el mercado clásico para adquirirlas.",classicBadge:"Mercado clásico",viewOnMarketplace:"Ver en el Mercado"},Ab={finalizing:"Finalizando tu compra…",processing:"Procesando tu compra…",indexingBefore:"Pago confirmado: añadiendo",indexingAfter:"a tu guardarropa. Ya casi está.",confirmingBefore:"Confirmando",confirmingAfter:"— esto suele tardar unos segundos. Mantén esta pestaña abierta.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",viewTransaction:"Ver recibo ↗",stillProcessingTitle:"Sigue procesándose…",timedOutBefore:"Esto está tardando más de lo habitual en confirmarse. Puede que tu compra aún se complete: revisa",timedOutAfter:"en unos minutos para ver el estado final. No necesitas comprar de nuevo.",viewActivity:"Ver tu actividad",keepShopping:"Seguir comprando",failedTitle:"Tu compra no se completó",failedBody:"No se pudo completar la compra, así que no se entregó nada. No se gastaron tus créditos (cualquier retención se libera en breve); puedes intentarlo de nuevo.",backToShop:"Volver a la tienda",title:"¡Ya es tuyo!",heroInWardrobe:"ya está en tu guardarropa.",itemsInWardrobe:"{count, plural, one {# artículo ya está en tu guardarropa.} other {# artículos ya están en tu guardarropa.}}",viewOrder:"Ver pedido",useItInWorld:"Úsalo en el mundo",bannerTitle:"¡Tu compra se realizó con éxito!",bannerBody:"Puedes encontrar tu artículo en la pestaña Mis Activos.",myAssets:"Mis Activos",tryInWorld:"Probar en el mundo"},kb={loading:"Cargando vista previa",shownOnBody:"Se muestra en un cuerpo {shape}: este artículo no está hecho para la forma de tu avatar.",previewMode:"Modo de vista previa",onAvatar:"En el avatar",item:"Artículo"},Ib={filters:"Filtros",closeFilters:"Cerrar filtros",category:"Categoría",min:"Mín",max:"Máx",priceTo:"a",minPriceAria:"Precio mínimo",maxPriceAria:"Precio máximo",minPriceSliderAria:"Control deslizante de precio mínimo",maxPriceSliderAria:"Control deslizante de precio máximo",rarity:"Rareza",clearFilters:"Borrar filtros",apply:"Aplicar",showItems:"Mostrar artículos",marketUnavailable:"Algunos precios de mercado no están disponibles temporalmente; la compra de esos artículos está pausada por un momento. Inténtalo de nuevo en breve.",loadError:"No pudimos cargar los artículos. Inténtalo de nuevo.",noItems:"Ningún artículo coincide con tus filtros."},Rb={signInPrompt:"Inicia sesión para vender tus artículos.",removedFromSale:"«{name}» ya no está a la venta.",removeListingError:"No pudimos quitar la publicación. Inténtalo de nuevo.",importTitle:"Importa tus publicaciones",importSub:"Tienes {count, plural, one {# artículo} other {# artículos}} a la venta en otro lugar; tráelos a la tienda.",import:"Importar",ownedTitle:"Artículos que tienes",ownedSub:"Wearables y emotes que compraste: revéndelos en la tienda.",ownedError:"No pudimos cargar tus artículos. Inténtalo de nuevo.",viewItem:"Ver {name}",onSale:"A la venta",removing:"Quitando…",removeListing:"Quitar de la venta",putOnSale:"Poner a la venta",ownedEmpty:"Los artículos que tengas aparecerán acá. Explorá la tienda y armá tu colección.",namesEmpty:"Reclamá un NAME único para destacarte en Decentraland — va a aparecer acá cuando sea tuyo.",emptyOwnedTitle:"Todavía no hay nada acá",emptyNamesTitle:"Todavía no tenés NAMEs",emptyCreationsTitle:"Todavía no hay creaciones",emptyBrowse:"Ver coleccionables",creationsTitle:"Tus creaciones",creationsSub:"Artículos que creaste. Ponlos a la venta en la tienda: fija un precio en {currency} y los compradores pagan con {currency}.",collectionsError:"No pudimos cargar tus colecciones en este momento. Inténtalo de nuevo en un momento.",nothingToPublish:"Todavía no tienes artículos para publicar.",available:"{count, plural, one {# disponible} other {# disponibles}}",assetsHeading:"Activos",sectionWearables:"Wearables",sectionEmotes:"Emotes",sectionNames:"Nombres",sectionCreations:"Mis creaciones",searchPlaceholder:"Busca tus artículos",clearSearch:"Borrar búsqueda"},Nb={filter:{all:"Todo",purchases:"Compras",sales:"Ventas"},processing:"Procesando",completed:"Completada",sold:"Vendido",purchaseLabel:"Compra",saleLabel:"Venta",soldTo:"Vendido a {account}",approxValue:"Valor aproximado en créditos",itemFallback:"Artículo",signInTitle:"Inicia sesión para ver tu actividad",signInBody:"Tus compras y ventas aparecerán aquí cuando inicies sesión.",emptyAllTitle:"Aún no tienes actividad",emptyAllBody:"Tus compras y ventas aparecerán aquí.",emptyPurchasesTitle:"Aún no tienes compras",emptyPurchasesBody:"Cuando compres algo, aparecerá aquí.",emptySalesTitle:"Aún no tienes ventas",emptySalesBody:"Cuando alguien compre uno de tus artículos, aparecerá aquí.",itemCount:"{count, plural, one {# artículo} other {# artículos}}",quantity:"×{count}"},Pb={emptyTitle:"Aún no tienes favoritos",emptyBody:"Toca el corazón en cualquier artículo para guardarlo aquí.",itemCount:"{count, plural, one {# artículo} other {# artículos}}"},Ob={viewAll:"Ver todo",previous:"Anterior",next:"Siguiente",carouselPages:"Páginas de {title}",goToPage:"Ir a la página {page}",heroTitle:"Outfits de la semana de la moda",exploreCollection:"Explorar colección",featuredProducts:"Productos destacados",newCreations:"Nuevas creaciones",promoEmotesAria:"Emotes mejor valorados: explorar colección",promoEmotesAlt:"Emotes mejor valorados",promoOutfitsAria:"Outfits seleccionados de la semana: explorar colección",promoOutfitsAlt:"Outfits seleccionados de la semana",emptyTitle:"Se avecinan nuevos lanzamientos",emptyBody:"No hay artículos a la venta en este momento; vuelve pronto."},jb={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},Lb={removeFromCart:"Quitar {name} del carrito",increaseQuantity:"Aumentar cantidad",decreaseQuantity:"Disminuir cantidad de {name}",removeItem:"Quitar {name}",remove:"Quitar",dialogLabel:"Carrito de compras",title:"Carrito de compras ({count})",close:"Cerrar",bannerCount:"{count, plural, one {# artículo} other {# artículos}}",bannerAdded:"añadido al carrito correctamente.",total:"Total: {count, plural, one {# artículo} other {# artículos}}",goToCart:"Ir al carrito",continueShopping:"Seguir comprando"},Mb={sortNewest:"Más recientes",sortCheapest:"Más baratos",sortMostExpensive:"Más caros",sortName:"Nombre (A–Z)",count:"{count, plural, one {# artículo} other {# artículos}}",forQuery:"para “{query}”",rarity:"Rareza",clearAll:"Borrar todo",filters:"Filtros",sortBy:"Ordenar por",removeFilter:"Quitar el filtro {filter}"},Bb={added:"{count, plural, one {Se añadió # artículo a tu carrito.} other {Se añadieron # artículos a tu carrito.}}",forSale:"{count} en venta",allInCart:"Todo en el carrito",addAll:"Añadir todo ({count}) al carrito"},Fb={newsletterTitle:"Recibe lo más destacado de la semana en tu correo",newsletterFrameTitle:"Suscripción al boletín",connect:"Conecta",gettingStarted:"Primeros pasos",resources:"Recursos",menu:"Menú",linkWhatIs:"Qué es Decentraland",linkDownload:"Descargar",linkSystemRequirements:"Requisitos del sistema",linkFaqs:"Preguntas frecuentes",linkContactSupport:"Contactar con soporte",linkMarketplace:"Marketplace",linkCreatorHub:"Creator Hub",linkDocs:"Documentación",linkBlog:"Blog",linkVote:"Votar",linkPrivacy:"Política de privacidad",linkTerms:"Términos de uso",linkContentPolicy:"Política de contenido",linkEthics:"Código de ética"},$b={viewAll:"Ver todo",scrollLeft:"Desplazar a la izquierda",scrollRight:"Desplazar a la derecha",pages:"Páginas del carrusel",goToPage:"Ir a la página {page}"},Db={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},qb={loading:"Cargando…",loadMore:"Cargar más"},Ub={title:"Vistos recientemente"},Hb={title:"De creadores que sigues"},Vb={loading:"Cargando"},zb={label:"Compra exitosa"},Gb={creations:{title:"Tus creaciones",sub:"Artículos que creaste. Ponlos a la venta en la Tienda."},owned:{title:"Artículos que posees",sub:"Cosas que compraste en otro lugar — revéndelas en la Tienda."},toastUpdated:"Tu Tienda está actualizada.",signInTitle:"Importa tus publicaciones",signInBody:"Inicia sesión para traer a la Tienda los artículos que ya vendes.",emptyTitle:"Estás al día",emptyBody:"Todo lo que vendes ya está en la Tienda — no hay nada que importar.",goToMyAssets:"Ir a Mis artículos",eyebrow:"Importar a la Tienda",titleLead:"Trae tus publicaciones",titleAccent:"a la Tienda",lede:"Estos artículos ya están a la venta en otro lugar. Sugerimos un precio en {currency} para cada uno, ajustado a la tasa de hoy y redondeado hacia arriba. Ajusta lo que quieras y publícalos.",rate:"1 {currency} = $0.10 · precios redondeados hacia arriba",includeItem:"Incluir {name}",itemFallback:"Artículo",priceAria:"Precio en {currency} para {name}",resetTo:"Restablecer a",list:"Publicar",selectedSummary:"{count, plural, one {# artículo seleccionado} other {# artículos seleccionados}} · ${usd}",listAll:"Publicar todo ({count})"},Wb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusPreparing:"Preparando tu artículo…",statusListing:"Publicando tu artículo…",statusPublishing:"Publicando…",toastOnSale:"¡«{name}» ya está a la venta!",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",viewInShop:"Ver en la Tienda",listTitle:"Publicar «{name}»",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",cancel:"Cancelar",listing:"Publicando…",putOnSale:"Poner a la venta"},Zb={errorGeneric:"No pudimos publicar tu artículo. Inténtalo de nuevo.",errorWholeNumber:"Introduce un número entero de credits",statusEnabling:"Activando las ventas de esta colección…",statusPublishing:"Publicando tu artículo…",statusFinishing:"Finalizando…",toastOnSale:"¡«{name}» ya está a la venta!",listing:"Publicando…",enableAndPutOnSale:"Activar y poner a la venta",putOnSale:"Poner a la venta",successTitle:"¡Ya está a la venta! 🎉",listedFor:"Publicado por",dotAvailable:"· {count, plural, one {# disponible} other {# disponibles}}",viewInShop:"Ver en la Tienda",publishTitle:"Publicar «{name}»",fromCollection:"De tu colección «{collectionName}» · {count, plural, one {# disponible} other {# disponibles}}",priceLabel:"Precio ({currency})",pricedInWhole:"Con precio en {currency} enteros (1 {currencySingular} = $0.10).",firstTimeConfirm:"¿Es la primera vez que vendes de «{collectionName}»? Necesita una aprobación única y luego confirmarás la publicación — dos confirmaciones rápidas. Después de esto, publicar más artículos de esta colección es un solo paso.",firstTimeManaged:"¿Es la primera vez que vendes de «{collectionName}»? Configurarlo lleva un momento — después, publicar más artículos de esta colección es instantáneo.",readyConfirm:"Esta colección está lista — publicar es una sola confirmación.",readyManaged:"Esta colección está lista — publicar es instantáneo.",cancel:"Cancelar",checking:"Comprobando…"},Kb={successTitle:"¡Estás en la Tienda! 🎉",nothingTitle:"No se publicó nada",listedSummary:"{count, plural, one {# artículo está} other {# artículos están}} ahora a la venta con {currency}.",noneListed:"No se publicó ningún artículo.",skippedSummary:"{count, plural, one {# omitido} other {# omitidos}} — puedes volver a intentarlo cuando quieras.",unlistedSummary:"{count, plural, one {# artículo se retiró del marketplace anterior pero no se pudo volver a publicar — vuelve a publicarlo desde Mis artículos.} other {# artículos se retiraron del marketplace anterior pero no se pudieron volver a publicar — vuelve a publicarlos desde Mis artículos.}}",goToMyAssets:"Ir a Mis artículos",viewInShop:"Ver en la Tienda",listingTitle:"Publicando tus artículos",subConfirm:"Retiramos cada publicación anterior y la volvemos a publicar por credits — confirma cada paso.",subManaged:"Moviendo tus artículos a la Tienda.",progressCount:"{current} de {total}",itemFallback:"Artículo",statusConfirm:"Confirma…",statusAdding:"Añadiendo…",statusSkipped:"Omitido",statusFailed:"Falló",unlistedTooltip:"Se retiró del marketplace anterior pero no se volvió a publicar — vuelve a publicarlo desde Mis artículos.",statusUnlisted:"No publicado",hintConfirm:"Aparecerán un par de confirmaciones rápidas por artículo (retirar + volver a publicar). Mantén esto abierto.",hintManaged:"Esto solo lleva un momento — mantén esto abierto.",statusWaiting:"Esperando"},Yb={title:"Probador",close:"Cerrar",wearable:"Wearable",emptyStageTitle:"No hay nada puesto ahora mismo.",emptyStageBody:"Activa un artículo de la lista para probarlo.",sub:"Combina los artículos de tu carrito. Activa y desactiva artículos para ver el look.",emote:"Emote",conflictTooltip:"Solo se puede llevar un artículo por espacio",onePerSlot:"1 por espacio",madeForShape:"Este artículo está hecho para el cuerpo {shape}",shapeOnly:"Solo {shape}",removeFromCart:"Quitar {name} del carrito",remove:"Quitar",itemCount:"{count, plural, one {# artículo} other {# artículos}}",checkout:"Finalizar compra"},Qb={male:"Masculino",female:"Femenino"},Jb={breadcrumbAria:"Ruta de navegación",breadcrumbCollectibles:"Coleccionables",breadcrumbCurrent:"NAMEs",heroTitle:"¡Consigue tu NAME único!",heroSubtitle:"Activa todo el potencial de la ciudadanía de Decentraland con un NAME único y tu propio World.",inputPlaceholder:"tunombre",inputAria:"Busca un NAME",suffix:".dcl.eth",claim:"Reclamar NAME",checking:"Comprobando disponibilidad…",available:"¡{name} está disponible!",taken:"Este NAME ya está en uso. Elegí otro o hacele una oferta al dueño.",takenMakeOffer:"Hacer oferta",tooShort:"Los NAMEs deben tener al menos {min} caracteres.",checkError:"No pudimos comprobar ese NAME ahora mismo; aún puedes intentar reclamarlo.",whyTitle:"¿Por qué comprar un NAME?",why1:"Destaca con un alias único para tu avatar",why2:"Desbloquea tu World y personaliza tu propio espacio 3D para organizar eventos",why2Link:"Más información",why3:"Una URL exclusiva para tus espacios virtuales que guía a los visitantes hasta tu LAND",why3Link:"http://tunombre.dcl.eth",buyTitle:"Comprar NAME",myCreditsBalance:"Mi saldo de créditos:",subtitle:"Decentraland NAMEs",confirmTitle:"Confirma tu NAME",confirmBody:"Has elegido {name}. Vuelve a escribir el NAME para confirmar tu selección y continuar con la compra.",reenterAria:"Vuelve a escribir el NAME para confirmar",buyCta:"Comprar NAME",completing:"Completando tu compra…",confirming:"Confirma para continuar…",successHeaderTitle:"¡Compra completada!",successBannerBold:"¡Tu compra se realizó con éxito!",successBannerRest:"Puedes encontrar tu NAME en la pestaña Mis artículos.",myItems:"Mis artículos",assignToAvatar:"Asignar NAME al avatar",errorTitle:"Algo salió mal",errorGeneric:"No pudimos completar tu compra. Inténtalo de nuevo.",tryAgain:"Reintentar"},Xb={title:"Autorizaciones",intro:"Las autorizaciones únicas permiten que la Shop actúe en tu nombre. Tú tienes el control: desactiva la que quieras cuando quieras.",buyingTitle:"Para comprar",sellingTitle:"Para vender",creditsName:"Cubrir compras con tu saldo",creditsDesc:"Permite que la Shop complete una compra con tu saldo cuando tus créditos no la cubren por completo.",sellingDesc:"Permite que la Shop entregue un artículo de esta colección cuando se venda.",sellingEmpty:"Todavía no hay nada que autorizar. Las autorizaciones para vender aparecen aquí cuando tienes coleccionables.",collectionFallback:"Tu colección",active:"Activada",inactive:"Desactivada",checking:"Comprobando…",working:"Procesando…",activateAria:"Activar «{name}»",deactivateAria:"Desactivar «{name}»",toastActivated:"«{name}» está activada.",toastDeactivated:"«{name}» está desactivada.",errorGeneric:"No se pudo actualizar. Inténtalo de nuevo.",signInTitle:"Inicia sesión para gestionar las autorizaciones",signInBody:"Inicia sesión para ver y gestionar las autorizaciones de tu cuenta.",managedTitle:"Todo listo",managedBody:"Tu cuenta se encarga de todo automáticamente: aquí no hay nada que gestionar. Comprar y vender simplemente funciona.",managedCta:"Explorar coleccionables"},ew={collectibles:{title:"Explorar coleccionables",searchTitle:"Resultados para «{query}»",description:"Explora miles de wearables y emotes para tu avatar de Decentraland. Filtra por categoría, rareza y precio para encontrar tu próximo look."},item:{notFoundTitle:"Artículo no disponible",fallbackDescription:"{name}: {rarity} {category} de {creator} en la Decentraland Shop."},collection:{description:"Explora todos los wearables y emotes de la colección {name} en la Decentraland Shop."},creator:{description:"Descubre wearables y emotes de {name} en la Decentraland Shop."},import:{title:"Importar artículos"},storeSettings:{title:"Configuración de la tienda"},success:{title:"Compra completada"},notFound:{title:"Página no encontrada"},names:{title:"Consigue un NAME de Decentraland",description:"Reclama tu NAME único de Decentraland con créditos: un alias personal para tu avatar y tu propio World."}},tw={errors:ib,nav:cb,search:lb,collection:ub,collectionCard:db,categories:fb,creator:hb,storeSettings:mb,notFound:pb,cart:gb,getCredits:yb,filter:vb,assetCard:bb,notifyMe:wb,makeOffer:_b,buyModal:Cb,cartCheckout:Eb,marketCheckout:xb,itemDetail:Sb,resales:Tb,success:Ab,itemPreview:kb,assets:Ib,myAssets:Rb,activity:Nb,myFavorites:Pb,overview:Ob,app:jb,cartPopover:Lb,filterBar:Mb,addAll:Bb,footer:Fb,collectionCarousel:$b,weekTopCreators:Db,loadMore:qb,recentlyViewed:Ub,followedCreators:Hb,spinner:Vb,successAnimation:zb,importListings:Gb,sellModal:Wb,primaryList:Zb,migrate:Kb,fittingRoom:Yb,bodyShape:Qb,names:Jb,authorizations:Xb,seo:ew},Cs=["en","es"];function al(e,t="",r={}){for(const[n,a]of Object.entries(e)){const o=t?`${t}.${n}`:n;a&&typeof a=="object"&&!Array.isArray(a)?al(a,o,r):r[o]=String(a)}return r}const rw={en:al(sb),es:al(tw)},nw=p1(),Ec={};function jl(e){return Ec[e]||(Ec[e]=d3({locale:e,defaultLocale:"en",messages:rw[e],onError:()=>{}},nw)),Ec[e]}let Qf=jl("en");function aw(e){Qf=jl(e)}function oe(e,t){return Qf.formatMessage({id:e},t)}const ow=wt.span`
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
`,sw=wt.span``,Jf=xl`
|
|
106
|
+
width: 18px;
|
|
107
|
+
height: 18px;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
object-fit: cover;
|
|
110
|
+
flex: none;
|
|
111
|
+
background: ${Le.colors.media};
|
|
112
|
+
`,iw=wt.span`
|
|
113
|
+
${Jf};
|
|
114
|
+
|
|
115
|
+
&[data-letter] {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
color: ${Le.colors.white};
|
|
120
|
+
font-size: 11px;
|
|
121
|
+
font-weight: 700;
|
|
122
|
+
line-height: 1;
|
|
123
|
+
text-transform: uppercase;
|
|
124
|
+
}
|
|
125
|
+
`,cw=wt.img`
|
|
126
|
+
${Jf};
|
|
127
|
+
`,Fd=wt.span`
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 6px;
|
|
131
|
+
color: ${Le.colors.muted};
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
|
|
135
|
+
&[data-link] {
|
|
136
|
+
background: none;
|
|
137
|
+
border: 0;
|
|
138
|
+
padding: 0;
|
|
139
|
+
margin: 0;
|
|
140
|
+
font: inherit;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
max-width: 100%;
|
|
143
|
+
}
|
|
144
|
+
&[data-link]:hover [data-testid='creator-name'] {
|
|
145
|
+
color: ${Le.colors.text};
|
|
146
|
+
text-decoration: underline;
|
|
147
|
+
}
|
|
148
|
+
`;function lw(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function uw(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)>>>0;return`hsl(${t%360}, 52%, 45%)`}function dw(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function Xf({address:e,className:t,linkToProfile:r,hidePrefix:n}){var _,T;const a=Is(),{data:o}=so(e),s=(T=(_=o==null?void 0:o.avatar)==null?void 0:_.snapshots)==null?void 0:T.face256,[d,f]=ne.useState(!1);if(ne.useEffect(()=>f(!1),[s]),!e)return null;const h=o!=null&&o.name?Wf(o.name):lw(e),p=!!s&&!d?u.jsx(cw,{"data-avatar":!0,"data-testid":"creator-ava",src:s,alt:"",loading:"lazy",onError:()=>f(!0)}):u.jsx(iw,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:uw(e)},"aria-hidden":!0,children:dw(o==null?void 0:o.name,e)}),b=u.jsxs(u.Fragment,{children:[p,u.jsxs(ow,{"data-testid":"creator-name",children:[n?null:oe("search.byCreator",{name:""}),u.jsx(sw,{"data-testid":"creator-display",children:h})]})]});return r?u.jsx(Fd,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:y=>{y.stopPropagation(),a(`/assets/creator/${e}`)},children:b}):u.jsx(Fd,{className:t,"data-testid":"creator",children:b})}function eh(){return u.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[u.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),u.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function fw({item:e,onRemove:t,onIncrement:r,onDecrement:n}){const a=!e.tokenId,o=e.quantity,s=typeof e.available=="number"&&o>=e.available,d=e.priceCredits*o;return u.jsxs("li",{className:"cartd__card",children:[u.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?u.jsx("img",{src:e.thumbnail,alt:e.name}):null,u.jsx("span",{className:"cartd__thumb-check",children:u.jsx(eh,{})})]}),u.jsxs("div",{className:"cartd__info",children:[u.jsxs("div",{children:[u.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?u.jsx(Xf,{address:e.creator,className:"cartd__by"}):null]}),u.jsxs("div",{className:"cartd__rowbottom",children:[a?u.jsxs("div",{className:"cartd__stepper",children:[u.jsx("button",{className:"cartd__step",onClick:()=>n(e.id),disabled:o<=1,"aria-label":oe("cartPopover.decreaseQuantity",{name:e.name}),children:u.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),u.jsx("span",{className:"cartd__qty",children:o}),u.jsx("button",{className:"cartd__step",onClick:()=>r(e.id),disabled:s,"aria-label":oe("cartPopover.increaseQuantity"),children:u.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,u.jsxs("div",{className:"cartd__price",title:nn(d),children:[u.jsx(Qt,{className:"cartd__diamond"}),Vr(d)]})]})]}),u.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":oe("cartPopover.removeItem",{name:e.name}),title:oe("cartPopover.remove"),children:u.jsx(ct,{name:"trash"})})]})}function hw(){const e=qt(m=>m.items),t=qt(m=>m.open),r=qt(m=>m.justAddedCount),n=qt(m=>m.setOpen),a=qt(m=>m.remove),o=qt(m=>m.increment),s=qt(m=>m.decrement),d=ne.useRef(null),f=e.reduce((m,p)=>m+p.priceCredits*p.quantity,0),h=e.reduce((m,p)=>m+p.quantity,0);return ne.useEffect(()=>{if(!t)return;const m=p=>{p.key==="Escape"&&n(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,n]),!t||h===0?null:Yh.createPortal(u.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":oe("cartPopover.dialogLabel"),children:[u.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),u.jsxs("aside",{className:"cartd__panel",ref:d,children:[u.jsxs("header",{className:"cartd__head",children:[u.jsx("h2",{className:"cartd__title",children:oe("cartPopover.title",{count:h})}),u.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":oe("cartPopover.close"),children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:u.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),u.jsxs("div",{className:"cartd__body",children:[r>0?u.jsxs("div",{className:"cartd__banner",children:[u.jsx("span",{className:"cartd__banner-check",children:u.jsx(eh,{})}),u.jsxs("p",{children:[u.jsx("strong",{children:oe("cartPopover.bannerCount",{count:r})})," ",oe("cartPopover.bannerAdded")]})]}):null,u.jsx("ul",{className:"cartd__list",children:e.map(m=>u.jsx(fw,{item:m,onRemove:a,onIncrement:o,onDecrement:s},m.id))})]}),u.jsxs("footer",{className:"cartd__foot",children:[u.jsxs("div",{className:"cartd__totalrow",children:[u.jsx("span",{className:"cartd__total-label",children:oe("cartPopover.total",{count:h})}),u.jsxs("span",{className:"cartd__total-val",title:nn(f),children:[u.jsx(Qt,{className:"cartd__total-diamond"}),Vr(f)]})]}),u.jsxs("div",{className:"cartd__ctas",children:[u.jsx(Sn,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:oe("cartPopover.goToCart")}),u.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:oe("cartPopover.continueShopping")})]})]})]})]}),document.body)}var Oa={},xc={exports:{}},$d;function Ll(){return $d||($d=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xc)),xc.exports}var Sc={};function an(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 th(e){if(ne.isValidElement(e)||!an(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=th(e[r])}),t}function Pr(e,t,r={clone:!0}){const n=r.clone?Ye({},e):e;return an(e)&&an(t)&&Object.keys(t).forEach(a=>{ne.isValidElement(t[a])?n[a]=t[a]:an(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&an(e[a])?n[a]=Pr(e[a],t[a],r):r.clone?n[a]=an(t[a])?th(t[a]):t[a]:n[a]=t[a]}),n}const mw=Object.freeze(Object.defineProperty({__proto__:null,default:Pr,isPlainObject:an},Symbol.toStringTag,{value:"Module"}));function Ka(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 pw=Object.freeze(Object.defineProperty({__proto__:null,default:Ka},Symbol.toStringTag,{value:"Module"}));var Tc={exports:{}},Qe={};/**
|
|
149
|
+
* @license React
|
|
150
|
+
* react-is.production.js
|
|
151
|
+
*
|
|
152
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the MIT license found in the
|
|
155
|
+
* LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/var Dd;function gw(){if(Dd)return Qe;Dd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function T(y){if(typeof y=="object"&&y!==null){var I=y.$$typeof;switch(I){case e:switch(y=y.type,y){case r:case a:case n:case f:case h:case b:return y;default:switch(y=y&&y.$$typeof,y){case s:case d:case p:case m:return y;case o:return y;default:return I}}case t:return I}}}return Qe.ContextConsumer=o,Qe.ContextProvider=s,Qe.Element=e,Qe.ForwardRef=d,Qe.Fragment=r,Qe.Lazy=p,Qe.Memo=m,Qe.Portal=t,Qe.Profiler=a,Qe.StrictMode=n,Qe.Suspense=f,Qe.SuspenseList=h,Qe.isContextConsumer=function(y){return T(y)===o},Qe.isContextProvider=function(y){return T(y)===s},Qe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Qe.isForwardRef=function(y){return T(y)===d},Qe.isFragment=function(y){return T(y)===r},Qe.isLazy=function(y){return T(y)===p},Qe.isMemo=function(y){return T(y)===m},Qe.isPortal=function(y){return T(y)===t},Qe.isProfiler=function(y){return T(y)===a},Qe.isStrictMode=function(y){return T(y)===n},Qe.isSuspense=function(y){return T(y)===f},Qe.isSuspenseList=function(y){return T(y)===h},Qe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===a||y===n||y===f||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===m||y.$$typeof===s||y.$$typeof===o||y.$$typeof===d||y.$$typeof===_||y.getModuleId!==void 0)},Qe.typeOf=T,Qe}var qd;function yw(){return qd||(qd=1,Tc.exports=gw()),Tc.exports}var Ud=yw();const vw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rh(e){const t=`${e}`.match(vw);return t&&t[1]||""}function nh(e,t=""){return e.displayName||e.name||rh(e)||t}function Hd(e,t,r){const n=nh(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function bw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ud.ForwardRef:return Hd(e,e.render,"ForwardRef");case Ud.Memo:return Hd(e,e.type,"memo");default:return}}}const ww=Object.freeze(Object.defineProperty({__proto__:null,default:bw,getFunctionName:rh},Symbol.toStringTag,{value:"Module"}));function pn(e){if(typeof e!="string")throw new Error(Ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _w=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"}));function Cw(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Ew(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function xw(e,t){return()=>null}function Sw(e,t){var r,n;return ne.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 ah(e){return e&&e.ownerDocument||document}function Tw(e){return ah(e).defaultView||window}function Aw(e,t){return()=>null}function oh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sh=typeof window<"u"?ne.useLayoutEffect:ne.useEffect;let Vd=0;function kw(e){const[t,r]=ne.useState(e),n=e||t;return ne.useEffect(()=>{t==null&&(Vd+=1,r(`mui-${Vd}`))},[t]),n}const zd=Pc.useId;function Iw(e){if(zd!==void 0){const t=zd();return e??t}return kw(e)}function Rw(e,t,r,n,a){return null}function Nw({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=ne.useRef(e!==void 0),[o,s]=ne.useState(t),d=a?e:o,f=ne.useCallback(h=>{a||s(h)},[]);return[d,f]}function Pw(e){const t=ne.useRef(e);return sh(()=>{t.current=e}),ne.useRef((...r)=>(0,t.current)(...r)).current}function Ow(...e){return ne.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{oh(r,t)})},e)}const Gd={};function jw(e,t){const r=ne.useRef(Gd);return r.current===Gd&&(r.current=e(t)),r}const Lw=[];function Mw(e){ne.useEffect(e,Lw)}class $s{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new $s}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function U8(){const e=jw($s.create).current;return Mw(e.disposeEffect),e}let Ds=!0,ol=!1;const Bw=new $s,Fw={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 $w(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Fw[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Dw(e){e.metaKey||e.altKey||e.ctrlKey||(Ds=!0)}function Ac(){Ds=!1}function qw(){this.visibilityState==="hidden"&&ol&&(Ds=!0)}function Uw(e){e.addEventListener("keydown",Dw,!0),e.addEventListener("mousedown",Ac,!0),e.addEventListener("pointerdown",Ac,!0),e.addEventListener("touchstart",Ac,!0),e.addEventListener("visibilitychange",qw,!0)}function Hw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ds||$w(t)}function Vw(){const e=ne.useCallback(a=>{a!=null&&Uw(a.ownerDocument)},[]),t=ne.useRef(!1);function r(){return t.current?(ol=!0,Bw.start(100,()=>{ol=!1}),t.current=!1,!0):!1}function n(a){return Hw(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function sl(e,t){const r=Ye({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ye({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=Ye({},o),Object.keys(a).forEach(s=>{r[n][s]=sl(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function zw(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const d=t(s);d!==""&&o.push(d),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}const Wd=e=>e,Gw=()=>{let e=Wd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wd}}},ih=Gw(),Ww={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 ch(e,t,r="Mui"){const n=Ww[t];return n?`${r}-${n}`:`${ih.generate(e)}-${t}`}function Zw(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=ch(e,a,r)}),n}function Kw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Yw=Object.freeze(Object.defineProperty({__proto__:null,default:Kw},Symbol.toStringTag,{value:"Module"}));function gn(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 lh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=lh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qw(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=lh(e))&&(n&&(n+=" "),n+=t);return n}const uh=ne.createContext(void 0);function H8({value:e,children:t}){return u.jsx(uh.Provider,{value:e,children:t})}function Jw(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?sl(a.defaultProps,n):!a.styleOverrides&&!a.variants?sl(a,n):n}function Xw({props:e,name:t}){const r=ne.useContext(uh);return Jw({props:e,name:t,theme:{components:r}})}function e5(e){return Xw(e)}var En={},kc={exports:{}},Zd;function t5(){return Zd||(Zd=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)({}).hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(kc)),kc.exports}var Ic={exports:{}},Kd;function r5(){return Kd||(Kd=1,(function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)!==-1)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ic)),Ic.exports}function n5(e,t){const r=ff({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),n(...a))}return r}const Rc=new Map;function a5(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,a=ne.useMemo(()=>{const o=`${t}-${r}`;if(typeof document=="object"&&Rc.has(o))return Rc.get(o);const s=n5(t,r);return Rc.set(o,s),s},[t,r]);return t||r?u.jsx(qp,{value:a,children:n}):n}function o5(e){return e==null||Object.keys(e).length===0}function s5(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(o5(a)?r:a):t;return u.jsx(Gp,{styles:n})}function i5(e,t){return wt(e,t)}const c5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Yd=[];function l5(e){return Yd[0]=e,ao(Yd)}const u5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:s5,StyledEngineProvider:a5,ThemeContext:Os,css:xl,default:i5,internal_processStyles:c5,internal_serializeStyles:l5,keyframes:vf},Symbol.toStringTag,{value:"Module"})),d5=Kr(u5),f5=Kr(mw),h5=Kr(_w),m5=Kr(ww),p5=["values","unit","step"],g5=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)=>Ye({},r,{[n.key]:n.val}),{})};function dh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=gn(e,p5),o=g5(t),s=Object.keys(o);function d(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function f(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function h(b,_){const T=s.indexOf(_);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(T!==-1&&typeof t[s[T]]=="number"?t[s[T]]:_)-n/100}${r})`}function m(b){return s.indexOf(b)+1<s.length?h(b,s[s.indexOf(b)+1]):d(b)}function p(b){const _=s.indexOf(b);return _===0?d(s[1]):_===s.length-1?f(s[_]):h(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return Ye({keys:s,values:o,up:d,down:f,between:h,only:m,not:p,unit:r},a)}const y5={borderRadius:4};function $a(e,t){return t?Pr(e,t,{clone:!1}):e}const Ml={xs:0,sm:600,md:900,lg:1200,xl:1536},Qd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ml[e]}px)`};function Zr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Qd;return t.reduce((s,d,f)=>(s[o.up(o.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const o=n.breakpoints||Qd;return Object.keys(t).reduce((s,d)=>{if(Object.keys(o.values||Ml).indexOf(d)!==-1){const f=o.up(d);s[f]=r(t[d],d)}else{const f=d;s[f]=t[f]}return s},{})}return r(t)}function v5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function Jd(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function qs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Ts(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=qs(e,r)||n,t&&(a=t(a,n,e)),a}function gt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const d=s[t],f=s.theme,h=qs(f,n)||{};return Zr(s,d,p=>{let b=Ts(h,a,p);return p===b&&typeof p=="string"&&(b=Ts(h,a,`${t}${p==="default"?"":pn(p)}`,p)),r===!1?b:{[r]:b}})};return o.propTypes={},o.filterProps=[t],o}function b5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const w5={m:"margin",p:"padding"},_5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},C5=b5(e=>{if(e.length>2)if(Xd[e])e=Xd[e];else return[e];const[t,r]=e.split(""),n=w5[t],a=_5[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Bl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Bl,...Fl];function lo(e,t,r,n){var a;const o=(a=qs(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function fh(e){return lo(e,"spacing",8)}function uo(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 E5(e,t){return r=>e.reduce((n,a)=>(n[a]=uo(t,r),n),{})}function x5(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=C5(r),o=E5(a,n),s=e[r];return Zr(e,s,o)}function hh(e,t){const r=fh(e.theme);return Object.keys(e).map(n=>x5(e,t,n,r)).reduce($a,{})}function dt(e){return hh(e,Bl)}dt.propTypes={};dt.filterProps=Bl;function ft(e){return hh(e,Fl)}ft.propTypes={};ft.filterProps=Fl;function S5(e=8){if(e.mui)return e;const t=fh({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Us(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?$a(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function cr(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return gt({prop:e,themeKey:"borders",transform:t})}const T5=dr("border",cr),A5=dr("borderTop",cr),k5=dr("borderRight",cr),I5=dr("borderBottom",cr),R5=dr("borderLeft",cr),N5=dr("borderColor"),P5=dr("borderTopColor"),O5=dr("borderRightColor"),j5=dr("borderBottomColor"),L5=dr("borderLeftColor"),M5=dr("outline",cr),B5=dr("outlineColor"),Hs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lo(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:uo(t,n)});return Zr(e,e.borderRadius,r)}return null};Hs.propTypes={};Hs.filterProps=["borderRadius"];Us(T5,A5,k5,I5,R5,N5,P5,O5,j5,L5,Hs,M5,B5);const Vs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lo(e.theme,"spacing",8),r=n=>({gap:uo(t,n)});return Zr(e,e.gap,r)}return null};Vs.propTypes={};Vs.filterProps=["gap"];const zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lo(e.theme,"spacing",8),r=n=>({columnGap:uo(t,n)});return Zr(e,e.columnGap,r)}return null};zs.propTypes={};zs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lo(e.theme,"spacing",8),r=n=>({rowGap:uo(t,n)});return Zr(e,e.rowGap,r)}return null};Gs.propTypes={};Gs.filterProps=["rowGap"];const F5=gt({prop:"gridColumn"}),$5=gt({prop:"gridRow"}),D5=gt({prop:"gridAutoFlow"}),q5=gt({prop:"gridAutoColumns"}),U5=gt({prop:"gridAutoRows"}),H5=gt({prop:"gridTemplateColumns"}),V5=gt({prop:"gridTemplateRows"}),z5=gt({prop:"gridTemplateAreas"}),G5=gt({prop:"gridArea"});Us(Vs,zs,Gs,F5,$5,D5,q5,U5,H5,V5,z5,G5);function ea(e,t){return t==="grey"?t:e}const W5=gt({prop:"color",themeKey:"palette",transform:ea}),Z5=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ea}),K5=gt({prop:"backgroundColor",themeKey:"palette",transform:ea});Us(W5,Z5,K5);function nr(e){return e<=1&&e!==0?`${e*100}%`:e}const Y5=gt({prop:"width",transform:nr}),$l=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ml[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nr(r)}};return Zr(e,e.maxWidth,t)}return null};$l.filterProps=["maxWidth"];const Q5=gt({prop:"minWidth",transform:nr}),J5=gt({prop:"height",transform:nr}),X5=gt({prop:"maxHeight",transform:nr}),e4=gt({prop:"minHeight",transform:nr});gt({prop:"size",cssProperty:"width",transform:nr});gt({prop:"size",cssProperty:"height",transform:nr});const t4=gt({prop:"boxSizing"});Us(Y5,$l,Q5,J5,X5,e4,t4);const fo={border:{themeKey:"borders",transform:cr},borderTop:{themeKey:"borders",transform:cr},borderRight:{themeKey:"borders",transform:cr},borderBottom:{themeKey:"borders",transform:cr},borderLeft:{themeKey:"borders",transform:cr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:cr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hs},color:{themeKey:"palette",transform:ea},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ea},backgroundColor:{themeKey:"palette",transform:ea},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},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:Vs},rowGap:{style:Gs},columnGap:{style:zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nr},maxWidth:{style:$l},minWidth:{transform:nr},height:{transform:nr},maxHeight:{transform:nr},minHeight:{transform:nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function r4(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function n4(e,t){return typeof e=="function"?e(t):e}function mh(){function e(r,n,a,o){const s={[r]:n,theme:a},d=o[r];if(!d)return{[r]:n};const{cssProperty:f=r,themeKey:h,transform:m,style:p}=d;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const b=qs(a,h)||{};return p?p(s):Zr(s,n,T=>{let y=Ts(b,m,T);return T===y&&typeof T=="string"&&(y=Ts(b,m,`${r}${T==="default"?"":pn(T)}`,T)),f===!1?y:{[f]:y}})}function t(r){var n;const{sx:a,theme:o={},nested:s}=r||{};if(!a)return null;const d=(n=o.unstable_sxConfig)!=null?n:fo;function f(h){let m=h;if(typeof h=="function")m=h(o);else if(typeof h!="object")return h;if(!m)return null;const p=v5(o.breakpoints),b=Object.keys(p);let _=p;return Object.keys(m).forEach(T=>{const y=n4(m[T],o);if(y!=null)if(typeof y=="object")if(d[T])_=$a(_,e(T,y,o,d));else{const I=Zr({theme:o},y,W=>({[T]:W}));r4(I,y)?_[T]=t({sx:y,theme:o,nested:!0}):_=$a(_,I)}else _=$a(_,e(T,y,o,d))}),!s&&o.modularCssLayers?{"@layer sx":Jd(b,_)}:Jd(b,_)}return Array.isArray(a)?a.map(f):f(a)}return t}const Ws=mh();Ws.filterProps=["sx"];function ph(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 a4=["breakpoints","palette","spacing","shape"];function gh(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=gn(e,a4),d=dh(r),f=S5(a);let h=Pr({breakpoints:d,direction:"ltr",components:{},palette:Ye({mode:"light"},n),spacing:f,shape:Ye({},y5,o)},s);return h.applyStyles=ph,h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},fo,s==null?void 0:s.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}const o4=Object.freeze(Object.defineProperty({__proto__:null,default:gh,private_createBreakpoints:dh,unstable_applyStyles:ph},Symbol.toStringTag,{value:"Module"})),s4=Kr(o4),i4=["sx"],c4=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:fo;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function l4(e){const{sx:t}=e,r=gn(e,i4),{systemProps:n,otherProps:a}=c4(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const d=t(...s);return an(d)?Ye({},n,d):n}:o=Ye({},n,t),Ye({},a,{sx:o})}const u4=Object.freeze(Object.defineProperty({__proto__:null,default:Ws,extendSxProp:l4,unstable_createStyleFunctionSx:mh,unstable_defaultSxConfig:fo},Symbol.toStringTag,{value:"Module"})),d4=Kr(u4);var e2;function f4(){if(e2)return En;e2=1;var e=Ll();Object.defineProperty(En,"__esModule",{value:!0}),En.default=K,En.shouldForwardProp=T,En.systemDefaultTheme=void 0;var t=e(t5()),r=e(r5()),n=p(d5),a=f5;e(h5),e(m5);var o=e(s4),s=e(d4);const d=["ownerState"],f=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(U){if(typeof WeakMap!="function")return null;var x=new WeakMap,q=new WeakMap;return(m=function(Q){return Q?q:x})(U)}function p(U,x){if(U&&U.__esModule)return U;if(U===null||typeof U!="object"&&typeof U!="function")return{default:U};var q=m(x);if(q&&q.has(U))return q.get(U);var Q={__proto__:null},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ae in U)if(ae!=="default"&&Object.prototype.hasOwnProperty.call(U,ae)){var J=ee?Object.getOwnPropertyDescriptor(U,ae):null;J&&(J.get||J.set)?Object.defineProperty(Q,ae,J):Q[ae]=U[ae]}return Q.default=U,q&&q.set(U,Q),Q}function b(U){return Object.keys(U).length===0}function _(U){return typeof U=="string"&&U.charCodeAt(0)>96}function T(U){return U!=="ownerState"&&U!=="theme"&&U!=="sx"&&U!=="as"}function y(U,x){return x&&U&&typeof U=="object"&&U.styles&&!U.styles.startsWith("@layer")&&(U.styles=`@layer ${x}{${String(U.styles)}}`),U}const I=En.systemDefaultTheme=(0,o.default)(),W=U=>U&&U.charAt(0).toLowerCase()+U.slice(1);function g({defaultTheme:U,theme:x,themeId:q}){return b(x)?U:x[q]||x}function A(U){return U?(x,q)=>q[U]:null}function w(U,x,q){let{ownerState:Q}=x,ee=(0,r.default)(x,d);const ae=typeof U=="function"?U((0,t.default)({ownerState:Q},ee)):U;if(Array.isArray(ae))return ae.flatMap(J=>w(J,(0,t.default)({ownerState:Q},ee),q));if(ae&&typeof ae=="object"&&Array.isArray(ae.variants)){const{variants:J=[]}=ae;let N=(0,r.default)(ae,f);return J.forEach(Z=>{let P=!0;if(typeof Z.props=="function"?P=Z.props((0,t.default)({ownerState:Q},ee,Q)):Object.keys(Z.props).forEach(F=>{(Q==null?void 0:Q[F])!==Z.props[F]&&ee[F]!==Z.props[F]&&(P=!1)}),P){Array.isArray(N)||(N=[N]);const F=typeof Z.style=="function"?Z.style((0,t.default)({ownerState:Q},ee,Q)):Z.style;N.push(q?y((0,n.internal_serializeStyles)(F),q):F)}}),N}return q?y((0,n.internal_serializeStyles)(ae),q):ae}function K(U={}){const{themeId:x,defaultTheme:q=I,rootShouldForwardProp:Q=T,slotShouldForwardProp:ee=T}=U,ae=J=>(0,s.default)((0,t.default)({},J,{theme:g((0,t.default)({},J,{defaultTheme:q,themeId:x}))}));return ae.__mui_systemSx=!0,(J,L={})=>{(0,n.internal_processStyles)(J,we=>we.filter(Ee=>!(Ee!=null&&Ee.__mui_systemSx)));const{name:N,slot:Z,skipVariantsResolver:P,skipSx:F,overridesResolver:H=A(W(Z))}=L,R=(0,r.default)(L,h),j=N&&N.startsWith("Mui")||Z?"components":"custom",z=P!==void 0?P:Z&&Z!=="Root"&&Z!=="root"||!1,Y=F||!1;let ce,ie=T;Z==="Root"||Z==="root"?ie=Q:Z?ie=ee:_(J)&&(ie=void 0);const le=(0,n.default)(J,(0,t.default)({shouldForwardProp:ie,label:ce},R)),de=we=>typeof we=="function"&&we.__emotion_real!==we||(0,a.isPlainObject)(we)?Ee=>{const ye=g({theme:Ee.theme,defaultTheme:q,themeId:x});return w(we,(0,t.default)({},Ee,{theme:ye}),ye.modularCssLayers?j:void 0)}:we,Re=(we,...Ee)=>{let ye=de(we);const Ge=Ee?Ee.map(de):[];N&&H&&Ge.push(fe=>{const ve=g((0,t.default)({},fe,{defaultTheme:q,themeId:x}));if(!ve.components||!ve.components[N]||!ve.components[N].styleOverrides)return null;const Ae=ve.components[N].styleOverrides,Me={};return Object.entries(Ae).forEach(([Be,mt])=>{Me[Be]=w(mt,(0,t.default)({},fe,{theme:ve}),ve.modularCssLayers?"theme":void 0)}),H(fe,Me)}),N&&!z&&Ge.push(fe=>{var ve;const Ae=g((0,t.default)({},fe,{defaultTheme:q,themeId:x})),Me=Ae==null||(ve=Ae.components)==null||(ve=ve[N])==null?void 0:ve.variants;return w({variants:Me},(0,t.default)({},fe,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),Y||Ge.push(ae);const Ue=Ge.length-Ee.length;if(Array.isArray(we)&&Ue>0){const fe=new Array(Ue).fill("");ye=[...we,...fe],ye.raw=[...we.raw,...fe]}const he=le(ye,...Ge);return J.muiName&&(he.muiName=J.muiName),he};return le.withConfig&&(Re.withConfig=le.withConfig),Re}}return En}var h4=f4();const m4=ks(h4);function p4(e,t){return Ye({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ut={};const g4=Kr(pw),y4=Kr(Yw);var t2;function v4(){if(t2)return ut;t2=1;var e=Ll();Object.defineProperty(ut,"__esModule",{value:!0}),ut.alpha=T,ut.blend=U,ut.colorChannel=void 0,ut.darken=I,ut.decomposeColor=s,ut.emphasize=w,ut.getContrastRatio=_,ut.getLuminance=b,ut.hexToRgb=a,ut.hslToRgb=p,ut.lighten=g,ut.private_safeAlpha=y,ut.private_safeColorChannel=void 0,ut.private_safeDarken=W,ut.private_safeEmphasize=K,ut.private_safeLighten=A,ut.recomposeColor=h,ut.rgbToHex=m;var t=e(g4),r=e(y4);function n(x,q=0,Q=1){return(0,r.default)(x,q,Q)}function a(x){x=x.slice(1);const q=new RegExp(`.{1,${x.length>=6?2:1}}`,"g");let Q=x.match(q);return Q&&Q[0].length===1&&(Q=Q.map(ee=>ee+ee)),Q?`rgb${Q.length===4?"a":""}(${Q.map((ee,ae)=>ae<3?parseInt(ee,16):Math.round(parseInt(ee,16)/255*1e3)/1e3).join(", ")})`:""}function o(x){const q=x.toString(16);return q.length===1?`0${q}`:q}function s(x){if(x.type)return x;if(x.charAt(0)==="#")return s(a(x));const q=x.indexOf("("),Q=x.substring(0,q);if(["rgb","rgba","hsl","hsla","color"].indexOf(Q)===-1)throw new Error((0,t.default)(9,x));let ee=x.substring(q+1,x.length-1),ae;if(Q==="color"){if(ee=ee.split(" "),ae=ee.shift(),ee.length===4&&ee[3].charAt(0)==="/"&&(ee[3]=ee[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(ae)===-1)throw new Error((0,t.default)(10,ae))}else ee=ee.split(",");return ee=ee.map(J=>parseFloat(J)),{type:Q,values:ee,colorSpace:ae}}const d=x=>{const q=s(x);return q.values.slice(0,3).map((Q,ee)=>q.type.indexOf("hsl")!==-1&&ee!==0?`${Q}%`:Q).join(" ")};ut.colorChannel=d;const f=(x,q)=>{try{return d(x)}catch{return x}};ut.private_safeColorChannel=f;function h(x){const{type:q,colorSpace:Q}=x;let{values:ee}=x;return q.indexOf("rgb")!==-1?ee=ee.map((ae,J)=>J<3?parseInt(ae,10):ae):q.indexOf("hsl")!==-1&&(ee[1]=`${ee[1]}%`,ee[2]=`${ee[2]}%`),q.indexOf("color")!==-1?ee=`${Q} ${ee.join(" ")}`:ee=`${ee.join(", ")}`,`${q}(${ee})`}function m(x){if(x.indexOf("#")===0)return x;const{values:q}=s(x);return`#${q.map((Q,ee)=>o(ee===3?Math.round(255*Q):Q)).join("")}`}function p(x){x=s(x);const{values:q}=x,Q=q[0],ee=q[1]/100,ae=q[2]/100,J=ee*Math.min(ae,1-ae),L=(P,F=(P+Q/30)%12)=>ae-J*Math.max(Math.min(F-3,9-F,1),-1);let N="rgb";const Z=[Math.round(L(0)*255),Math.round(L(8)*255),Math.round(L(4)*255)];return x.type==="hsla"&&(N+="a",Z.push(q[3])),h({type:N,values:Z})}function b(x){x=s(x);let q=x.type==="hsl"||x.type==="hsla"?s(p(x)).values:x.values;return q=q.map(Q=>(x.type!=="color"&&(Q/=255),Q<=.03928?Q/12.92:((Q+.055)/1.055)**2.4)),Number((.2126*q[0]+.7152*q[1]+.0722*q[2]).toFixed(3))}function _(x,q){const Q=b(x),ee=b(q);return(Math.max(Q,ee)+.05)/(Math.min(Q,ee)+.05)}function T(x,q){return x=s(x),q=n(q),(x.type==="rgb"||x.type==="hsl")&&(x.type+="a"),x.type==="color"?x.values[3]=`/${q}`:x.values[3]=q,h(x)}function y(x,q,Q){try{return T(x,q)}catch{return x}}function I(x,q){if(x=s(x),q=n(q),x.type.indexOf("hsl")!==-1)x.values[2]*=1-q;else if(x.type.indexOf("rgb")!==-1||x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]*=1-q;return h(x)}function W(x,q,Q){try{return I(x,q)}catch{return x}}function g(x,q){if(x=s(x),q=n(q),x.type.indexOf("hsl")!==-1)x.values[2]+=(100-x.values[2])*q;else if(x.type.indexOf("rgb")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(255-x.values[Q])*q;else if(x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(1-x.values[Q])*q;return h(x)}function A(x,q,Q){try{return g(x,q)}catch{return x}}function w(x,q=.15){return b(x)>.5?I(x,q):g(x,q)}function K(x,q,Q){try{return w(x,q)}catch{return x}}function U(x,q,Q,ee=1){const ae=(Z,P)=>Math.round((Z**(1/ee)*(1-Q)+P**(1/ee)*Q)**ee),J=s(x),L=s(q),N=[ae(J.values[0],L.values[0]),ae(J.values[1],L.values[1]),ae(J.values[2],L.values[2])];return h({type:"rgb",values:N})}return ut}var il=v4();const Ya={black:"#000",white:"#fff"},b4={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"},Zn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Kn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ja={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Yn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Qn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Jn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},w4=["mode","contrastThreshold","tonalOffset"],r2={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:Ya.white,default:Ya.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}},Nc={text:{primary:Ya.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:Ya.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 n2(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=il.lighten(e.main,a):t==="dark"&&(e.dark=il.darken(e.main,o)))}function _4(e="light"){return e==="dark"?{main:Yn[200],light:Yn[50],dark:Yn[400]}:{main:Yn[700],light:Yn[400],dark:Yn[800]}}function C4(e="light"){return e==="dark"?{main:Zn[200],light:Zn[50],dark:Zn[400]}:{main:Zn[500],light:Zn[300],dark:Zn[700]}}function E4(e="light"){return e==="dark"?{main:Kn[500],light:Kn[300],dark:Kn[700]}:{main:Kn[700],light:Kn[400],dark:Kn[800]}}function x4(e="light"){return e==="dark"?{main:Qn[400],light:Qn[300],dark:Qn[700]}:{main:Qn[700],light:Qn[500],dark:Qn[900]}}function S4(e="light"){return e==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:Jn[800],light:Jn[500],dark:Jn[900]}}function T4(e="light"){return e==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:"#ed6c02",light:ja[500],dark:ja[900]}}function A4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=gn(e,w4),o=e.primary||_4(t),s=e.secondary||C4(t),d=e.error||E4(t),f=e.info||x4(t),h=e.success||S4(t),m=e.warning||T4(t);function p(y){return il.getContrastRatio(y,Nc.text.primary)>=r?Nc.text.primary:r2.text.primary}const b=({color:y,name:I,mainShade:W=500,lightShade:g=300,darkShade:A=700})=>{if(y=Ye({},y),!y.main&&y[W]&&(y.main=y[W]),!y.hasOwnProperty("main"))throw new Error(Ka(11,I?` (${I})`:"",W));if(typeof y.main!="string")throw new Error(Ka(12,I?` (${I})`:"",JSON.stringify(y.main)));return n2(y,"light",g,n),n2(y,"dark",A,n),y.contrastText||(y.contrastText=p(y.main)),y},_={dark:Nc,light:r2};return Pr(Ye({common:Ye({},Ya),mode:t,primary:b({color:o,name:"primary"}),secondary:b({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:m,name:"warning"}),info:b({color:f,name:"info"}),success:b({color:h,name:"success"}),grey:b4,contrastThreshold:r,getContrastText:p,augmentColor:b,tonalOffset:n},_[t]),a)}const k4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function I4(e){return Math.round(e*1e5)/1e5}const a2={textTransform:"uppercase"},o2='"Roboto", "Helvetica", "Arial", sans-serif';function R4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=o2,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:m,pxToRem:p}=r,b=gn(r,k4),_=a/14,T=p||(W=>`${W/h*_}rem`),y=(W,g,A,w,K)=>Ye({fontFamily:n,fontWeight:W,fontSize:T(g),lineHeight:A},n===o2?{letterSpacing:`${I4(w/g)}em`}:{},K,m),I={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(d,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(d,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(d,14,1.75,.4,a2),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,a2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr(Ye({htmlFontSize:h,pxToRem:T,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:f},I),b,{clone:!1})}const N4=.2,P4=.14,O4=.12;function it(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${N4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${P4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${O4})`].join(",")}const j4=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],L4=["duration","easing","delay"],M4={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)"},B4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s2(e){return`${Math.round(e)}ms`}function F4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function $4(e){const t=Ye({},M4,e.easing),r=Ye({},B4,e.duration);return Ye({getAutoHeightDuration:F4,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:d=t.easeInOut,delay:f=0}=o;return gn(o,L4),(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof s=="string"?s:s2(s)} ${d} ${typeof f=="string"?f:s2(f)}`).join(",")}},e,{easing:t,duration:r})}const D4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},q4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function yh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=gn(e,q4);if(e.vars)throw new Error(Ka(18));const d=A4(n),f=gh(e);let h=Pr(f,{mixins:p4(f.breakpoints,r),palette:d,shadows:j4.slice(),typography:R4(d,o),transitions:$4(a),zIndex:Ye({},D4)});return h=Pr(h,s),h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},fo,s==null?void 0:s.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}function V8(...e){return yh(...e)}const U4=yh(),H4="$$material";function V4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const z4=e=>V4(e)&&e!=="classes",G4=m4({themeId:H4,defaultTheme:U4,rootShouldForwardProp:z4});function W4(e){return ch("MuiSvgIcon",e)}Zw("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Z4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],K4=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${pn(t)}`,`fontSize${pn(r)}`]};return zw(a,W4,n)},Y4=G4("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pn(r.color)}`],t[`fontSize${pn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,d,f,h,m,p,b,_,T;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:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem",large:((h=e.typography)==null||(m=h.pxToRem)==null?void 0:m.call(h,35))||"2.1875rem"}[t.fontSize],color:(p=(b=(e.vars||e).palette)==null||(b=b[t.color])==null?void 0:b.main)!=null?p:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(T=(e.vars||e).palette)==null||(T=T.action)==null?void 0:T.disabled,inherit:void 0}[t.color]}}),cl=ne.forwardRef(function(t,r){const n=e5({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:d="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:p,viewBox:b="0 0 24 24"}=n,_=gn(n,Z4),T=ne.isValidElement(a)&&a.type==="svg",y=Ye({},n,{color:s,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:b,hasSvgAsChild:T}),I={};m||(I.viewBox=b);const W=K4(y);return u.jsxs(Y4,Ye({as:d,className:Qw(W.root,o),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},I,_,T&&a.props,{ownerState:y,children:[T?a.props.children:a,p?u.jsx("title",{children:p}):null]}))});cl.muiName="SvgIcon";function Q4(e,t){function r(n,a){return u.jsx(cl,Ye({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=cl.muiName,ne.memo(ne.forwardRef(r))}const J4={configure:e=>{ih.configure(e)}},X4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:pn,createChainedFunction:Cw,createSvgIcon:Q4,debounce:Ew,deprecatedPropType:xw,isMuiElement:Sw,ownerDocument:ah,ownerWindow:Tw,requirePropFactory:Aw,setRef:oh,unstable_ClassNameGenerator:J4,unstable_useEnhancedEffect:sh,unstable_useId:Iw,unsupportedProp:Rw,useControlled:Nw,useEventCallback:Pw,useForkRef:Ow,useIsFocusVisible:Vw},Symbol.toStringTag,{value:"Module"})),e_=Kr(X4);var i2;function t_(){return i2||(i2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=e_})(Sc)),Sc}var c2;function r_(){if(c2)return Oa;c2=1;var e=Ll();Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=void 0;var t=e(t_()),r=Qh();return Oa.default=(0,t.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),Oa}var n_=r_();const vh=ks(n_),qn=`${He.marketplaceServerUrl}/v1`;function Dl(e){if(!e)return 0;try{return Math.ceil(Number(U2(e))*10)}catch{return 0}}function z8(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function G8(e,t){var n,a,o;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const s=await fetch(`${He.marketplaceServerUrl}/v2/catalog?${r.toString()}`);if(!s.ok)return"";const{data:d}=await s.json(),f=(n=d==null?void 0:d[0])==null?void 0:n.data;return(((a=f==null?void 0:f.wearable)==null?void 0:a.description)??((o=f==null?void 0:f.emote)==null?void 0:o.description)??"").trim()}catch{return""}}async function W8(e){const{listings:t}=await ho({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="primary"||n.itemId==null||(r[String(n.itemId)]={isOnSale:!0,priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function Z8(e){const{listings:t}=await ho({contractAddress:e,first:200}),r={};for(const n of t)n.listingType!=="secondary"||n.tokenId==null||(r[String(n.tokenId)]={priceCredits:n.priceCredits,tradeId:n.tradeId});return r}async function bh(e,t){var o;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${qn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return((o=a==null?void 0:a[0])==null?void 0:o.nft)??null}function ql(e){return{id:e.tradeId,tradeId:e.tradeId,name:e.name,creator:e.creator,contractAddress:e.contractAddress,itemId:e.itemId,tokenId:e.tokenId??void 0,category:e.category,wearableCategory:e.wearableCategory??void 0,rarity:e.rarity,network:e.network,chainId:e.chainId,thumbnail:e.thumbnail,priceCredits:e.priceCredits,gender:e.gender??null,isSmart:e.isSmart??!1,available:e.listingType==="primary"?e.available:void 0,seller:e.seller??void 0,issuedId:e.issuedId??void 0,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function ho(e){var a,o;const t=new URLSearchParams;(e.category==="wearable"||e.category==="emote")&&t.set("category",e.category),e.first!=null&&t.set("first",String(e.first)),e.skip!=null&&t.set("skip",String(e.skip)),e.contractAddress&&t.set("contractAddress",e.contractAddress),e.itemId!=null&&t.set("itemId",e.itemId),e.creator&&t.set("creator",e.creator),(a=e.rarities)!=null&&a.length&&t.set("rarity",e.rarities.join(",")),(o=e.wearableCategories)!=null&&o.length&&t.set("wearableCategory",e.wearableCategories.join(",")),e.minPriceCredits!=null&&t.set("minPriceCredits",String(e.minPriceCredits)),e.maxPriceCredits!=null&&t.set("maxPriceCredits",String(e.maxPriceCredits)),e.search&&t.set("search",e.search),e.sortBy&&t.set("sortBy",e.sortBy);const r=await fetch(`${He.marketplaceServerUrl}/v3/catalog/shop?${t.toString()}`);if(!r.ok)throw new Error(`fetchShopListings ${r.status}`);const n=await r.json();return{listings:n.data??[],total:n.total??0}}async function K8(e,t){const{listings:r}=await ho({contractAddress:e,itemId:t,first:1});return r[0]?ql(r[0]):null}async function wh({first:e=100,...t}={}){const{listings:r,total:n}=await ho({...t,first:e});return{items:r.map(ql),total:n}}async function Y8(e,t){const{items:r}=await a_({contractAddress:e,itemId:t,first:100,sortBy:"cheapest"});return r.filter(n=>!!n.tokenId&&!!n.tradeId).sort((n,a)=>n.priceCredits-a.priceCredits)}async function Q8(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,status:"open",sortBy:"cheapest",first:"100"}),n=await fetch(`${He.marketplaceServerUrl}/v1/orders?${r.toString()}`);if(!n.ok)throw new Error(`fetchClassicItemOrders ${n.status}`);return((await n.json()).data??[]).filter(o=>!o.tradeId).map(o=>({tokenId:o.tokenId,issuedId:o.issuedId,seller:o.owner,contractAddress:o.contractAddress}))}function _h(e){return{...ql(e),source:e.source,manaWei:e.manaWei??null}}function Ch(e,t,r){var a,o;const n=new URLSearchParams;return(t.category==="wearable"||t.category==="emote")&&n.set("category",t.category),n.set("first",String(e)),t.skip!=null&&n.set("skip",String(t.skip)),t.contractAddress&&n.set("contractAddress",t.contractAddress),t.itemId!=null&&n.set("itemId",t.itemId),t.creator&&n.set("creator",t.creator),(a=t.rarities)!=null&&a.length&&n.set("rarity",t.rarities.join(",")),(o=t.wearableCategories)!=null&&o.length&&n.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&n.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&n.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&n.set("search",t.search),t.sortBy&&n.set("sortBy",t.sortBy),t.isSmart&&n.set("isSmart","true"),t.onSale!=null&&n.set("onSale",String(t.onSale)),r&&n.set("groupBy",r),n}async function a_({first:e=100,...t}={}){const r=Ch(e,t),n=await fetch(`${He.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const a=await n.json(),o=a.data??[];return{items:o.map(_h),total:a.total??o.length}}function o_(e){return{..._h(e),listingCount:e.listingCount}}async function J8({first:e=100,...t}={}){const r=Ch(e,t,"item"),n=await fetch(`${He.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchShopItems ${n.status}`);const a=await n.json(),o=a.data??[];return{items:o.map(o_),total:a.total??o.length}}function Ul(e){var t,r,n,a,o;return{id:e.nft.id,contractAddress:e.nft.contractAddress,tokenId:e.nft.tokenId,issuedId:e.nft.issuedId,itemId:e.nft.itemId??null,name:e.nft.name,category:e.nft.category,image:e.nft.image,rarity:((r=(t=e.nft.data)==null?void 0:t.wearable)==null?void 0:r.rarity)??((a=(n=e.nft.data)==null?void 0:n.emote)==null?void 0:a.rarity),network:e.nft.network,chainId:e.nft.chainId,isOnSale:e.order!=null,listingPrice:e.order?Dl(e.order.price):void 0,tradeId:(o=e.order)==null?void 0:o.tradeId}}async function X8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),a=await fetch(`${qn}/nfts?${n.toString()}`);if(!a.ok)return!1;const{total:o}=await a.json();return(o??0)>0}catch{return!1}}async function e9(e,{category:t="wearable",first:r=48,skip:n=0,search:a,rarities:o,wearableCategories:s,emoteCategories:d,onlyOnSale:f,sortBy:h="newest"}={}){const m=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:h,orderDirection:"desc"});a&&m.set("search",a);for(const y of o??[])m.append("itemRarity",y);for(const y of s??[])m.append("wearableCategory",y);for(const y of d??[])m.append("emoteCategory",y);f&&m.set("isOnSale","true");const p=await fetch(`${qn}/nfts?${m.toString()}`);if(!p.ok)throw new Error(`Failed to fetch assets (${p.status})`);const{data:b,total:_}=await p.json();return{assets:b.map(Ul),total:_}}async function t9(e,t,r){var n,a;try{const o=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,tokenId:r,first:"1"}),s=await fetch(`${qn}/nfts?${o.toString()}`);if(!s.ok)return null;const{data:d}=await s.json(),f=d==null?void 0:d[0];if(!f||f.nft.tokenId!==r)return null;const h=Ul(f);if(h.isOnSale&&h.tradeId&&!h.listingPrice)try{const p=(a=(n=(await Zs(h.tradeId)).received)==null?void 0:n[0])==null?void 0:a.amount,b=Dl(p);b>0&&(h.listingPrice=b)}catch{}return h}catch{return null}}async function s_(e,t){var r;try{const n=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),a=await fetch(`${qn}/nfts?${n.toString()}`);if(!a.ok)return{};const{data:o}=await a.json(),s=o==null?void 0:o[0];return!(s!=null&&s.nft)||s.nft.tokenId!==t?{}:{seller:s.nft.owner??((r=s.order)==null?void 0:r.owner),issuedId:s.nft.issuedId}}catch{return{}}}async function r9(e,t){const r=await Promise.all(t.map(async n=>[n,await s_(e,n)]));return Object.fromEntries(r)}async function n9(e,t){try{const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${qn}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json(),o=a==null?void 0:a[0];return!o||o.nft.tokenId!==t?null:Ul(o)}catch{return null}}const i_="dcl:marketplace";async function a9(e,t){const{TradeService:r}=await _t(async()=>{const{TradeService:a}=await import("./TradeService-Cfj8wGt2.js");return{TradeService:a}},__vite__mapDeps([11,7,1,6,2,12,9,10,13,8]));return new r(i_,He.marketplaceServerUrl,()=>t).addTrade(e)}class Eh extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function Zs(e){var n;const t=await fetch(`${He.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new Eh(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function o9(e){if(e.tradeId)try{return await Zs(e.tradeId)}catch(t){if(!(t instanceof Eh)||!e.itemId)throw t}return e.itemId?c_(e.contractAddress,e.itemId):null}async function xh(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${qn}/items?${r.toString()}`);if(!n.ok)return null;const{data:a}=await n.json();return(a==null?void 0:a[0])??null}async function s9(e){var f,h;let t;try{t=await Zs(e)}catch{return null}const r=(f=t.sent)==null?void 0:f[0],n=(h=t.received)==null?void 0:h[0],a=Dl(n==null?void 0:n.amount),o=(r==null?void 0:r.contractAddress)??"",s=(r==null?void 0:r.itemId)??(r==null?void 0:r.tokenId)??(r==null?void 0:r.value)??"";if(!o)return{name:"Item",thumbnail:"",credits:a,contractAddress:""};if((r==null?void 0:r.assetType)===rt.TradeAssetType.COLLECTION_ITEM){const m=s?await xh(o,s):null;return{name:(m==null?void 0:m.name)??"Item",thumbnail:(m==null?void 0:m.thumbnail)??"",credits:a,contractAddress:o,itemId:s}}const d=s?await bh(o,s):null;return{name:(d==null?void 0:d.name)??(s?`#${s}`:"Item"),thumbnail:(d==null?void 0:d.image)??"",credits:a,contractAddress:o,tokenId:s}}async function c_(e,t){var a;const{listings:r}=await ho({contractAddress:e,itemId:t,first:1}),n=(a=r[0])==null?void 0:a.tradeId;return n?Zs(n):null}async function i9(e,{tokenId:t,itemId:r}){if(!e)return null;if(t){const n=await bh(e,t);return{name:(n==null?void 0:n.name)??`#${t}`,thumbnail:(n==null?void 0:n.image)??"",credits:0,contractAddress:e,tokenId:t}}if(r){const n=await xh(e,r);return{name:(n==null?void 0:n.name)??"Item",thumbnail:(n==null?void 0:n.thumbnail)??"",credits:0,contractAddress:e,itemId:r}}return null}function l_(e){return{id:e.id,buyer:e.buyer,seller:e.seller,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId??null,manaWei:e.price,createdAt:e.timestamp,txHash:e.txHash,category:e.category??""}}async function c9(e,{role:t="seller",first:r=24,skip:n=0}={}){const a=new URLSearchParams({[t]:e.toLowerCase(),first:String(r),skip:String(n),sortBy:"recently_sold"}),o=await fetch(`${He.marketplaceServerUrl}/v1/sales?${a.toString()}`);if(!o.ok)throw new Error(`fetchUserSales ${o.status}`);const s=await o.json(),d=(s.data??[]).map(l_);return{items:d,total:s.total??d.length}}async function u_(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${He.marketplaceServerUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:a}=await n.json();return(a??[]).filter(o=>o.contractAddress&&o.name).map(o=>({contractAddress:o.contractAddress,name:o.name,creator:o.creator??""}))}async function d_(e,t){var s,d,f;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${He.marketplaceServerUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:a}=await n.json(),o=new Map;for(const h of a??[]){const m=(d=(s=h.nft)==null?void 0:s.owner)==null?void 0:d.toLowerCase(),p=(f=h.nft)==null?void 0:f.name;m&&p&&!o.has(m)&&o.set(m,p)}return o}async function f_(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const o of e)t.append("address",o);const r=await fetch(`${He.marketplaceServerUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),a=new Map;for(const o of n??[])(o.collections??0)>0&&a.set(o.address.toLowerCase(),o.collections??0);return a}async function h_(e,t=4,r=20){const n=e.trim();if(!n)return[];const a=await d_(n,r);if(a.size===0)return[];const o=await f_([...a.keys()]),s=[...a.keys()].filter(d=>o.has(d)).slice(0,t);return s.length===0?[]:Promise.all(s.map(async d=>{var h,m;const f=await If(d);return{address:d,name:(f==null?void 0:f.name)||(a.get(d)??d),face:(m=(h=f==null?void 0:f.avatar)==null?void 0:h.snapshots)==null?void 0:m.face256}}))}function m_(e){if(!e||e.length===0)return null;const t=e.some(n=>n.includes("Male")),r=e.some(n=>n.includes("Female"));return t&&r?"unisex":t?"male":r?"female":null}function Hl(e){var t,r,n,a,o,s,d,f;return{id:e.id,name:e.name,creator:e.creator??"",contractAddress:e.contractAddress,itemId:e.itemId??null,category:e.category,wearableCategory:((r=(t=e.data)==null?void 0:t.wearable)==null?void 0:r.category)??((a=(n=e.data)==null?void 0:n.emote)==null?void 0:a.category),rarity:e.rarity??"common",isSmart:!!((s=(o=e.data)==null?void 0:o.wearable)!=null&&s.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:m_((f=(d=e.data)==null?void 0:d.wearable)==null?void 0:f.bodyShapes)}}async function p_(e,{first:t=20,skip:r=0,category:n,rarities:a,wearableCategories:o,minPriceCredits:s,maxPriceCredits:d,sortBy:f}={}){const h=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&h.set("category",n),a==null||a.forEach(T=>h.append("rarity",T)),o==null||o.forEach(T=>h.append("wearableCategory",T)),s!=null&&h.set("minPrice",String(s)),d!=null&&h.set("maxPrice",String(d)),f&&h.set("sortBy",f);const m=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCollectionItems ${m.status}`);const{data:p,total:b}=await m.json(),_=(p??[]).map(Hl);return{items:_,total:b??r+_.length}}async function l9({first:e=48,skip:t=0,category:r,rarities:n,wearableCategories:a,search:o,sortBy:s,isWearableSmart:d,isOnSale:f}={}){const h=new URLSearchParams({first:String(e),skip:String(t),includeSocialEmotes:"false"});r&&r!=="all"&&h.set("category",r),n==null||n.forEach(T=>h.append("rarity",T)),a==null||a.forEach(T=>h.append("wearableCategory",T)),o&&h.set("search",o),s&&h.set("sortBy",s),d&&h.set("isWearableSmart","true"),f!=null&&h.set("isOnSale",String(f));const m=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCatalogItems ${m.status}`);const{data:p,total:b}=await m.json(),_=(p??[]).map(Hl);return{items:_,total:b??t+_.length}}async function g_(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),a=await fetch(`${He.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!a.ok)throw new Error(`fetchCreatorItems ${a.status}`);const{data:o,total:s}=await a.json(),d=(o??[]).map(Hl);return{items:d,total:s??r+d.length}}async function u9(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),a=await fetch(`${He.marketplaceServerUrl}/v1/collections?${n.toString()}`);if(!a.ok)throw new Error(`fetchCreatorCollections ${a.status}`);const{data:o,total:s}=await a.json(),d=(o??[]).map(f=>({contractAddress:f.contractAddress,name:f.name??"",creator:f.creator??"",itemCount:f.size??0}));return{collections:d,total:s??r+d.length}}async function d9(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${He.marketplaceServerUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),a=n==null?void 0:n[0];return a&&a.contractAddress?{contractAddress:a.contractAddress,name:a.name??"",creator:a.creator??""}:null}const l2="radial-gradient(#c0bdc6, #a09ba8)",u2="#E6E6E6";function Sh(e){const t=typeof e=="string"?e.replace("#",""):"";return t.length<6?null:[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function y_([e,t,r]){return .299*e+.587*t+.114*r}function Th(e){return e&&rt.Rarity.getColor(e.toLowerCase())||u2}function d2(e,t=.3){const r=Sh(Th(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function f2(e,t=120){const r=Th(e),n=Sh(r);if(!n)return"#161518";const a=y_(n);if(a<=t)return r;const o=t/a,s=d=>Math.round(d*o).toString(16).padStart(2,"0");return`#${s(n[0])}${s(n[1])}${s(n[2])}`}function h2(e){const t=Wf(e??"Common");try{const r=rt.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function v_(e){try{const[t,r]=rt.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?l2:`radial-gradient(${t}, ${r})`}catch{return l2}}const Ah=4;function b_(e,t=!0){return Wr({queryKey:["collection-preview",e],queryFn:()=>p_(e,{first:Ah}),enabled:t,staleTime:5*6e4})}function w_({items:e,className:t}){const r=e.slice(0,Ah);return u.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>u.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:v_(n.rarity)},children:n.thumbnail?u.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function __({contractAddress:e,className:t,fallback:r=null}){const{data:n}=b_(e),a=(n==null?void 0:n.items)??[];return a.length===0?u.jsx(u.Fragment,{children:r}):u.jsx(w_,{items:a,className:t})}function C_(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function m2({address:e,className:t}){const{data:r}=so(e),n=(r==null?void 0:r.name)||C_(e);return u.jsx("span",{className:t,children:oe("search.byCreator",{name:n})})}function E_({contractAddress:e}){return u.jsx(__,{contractAddress:e,className:"search-pop__collthumb",fallback:u.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:u.jsx(ct,{name:"search"})})})}const x_=5,S_=2;function T_({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:a,onRunSearch:o,onRemoveRecent:s,onClearRecent:d}){const f=e.length>=S_,{data:h,isFetching:m}=Wr({queryKey:["search-suggest",e],queryFn:()=>wh({search:e,first:x_}),enabled:f,placeholderData:ui,staleTime:3e4}),{data:p=[]}=Wr({queryKey:["search-suggest-collections",e],queryFn:()=>u_(e),enabled:f,placeholderData:ui,staleTime:3e4}),{data:b=[]}=Wr({queryKey:["search-suggest-creators",e],queryFn:()=>h_(e),enabled:f,placeholderData:ui,staleTime:3e4}),_=f?(h==null?void 0:h.items)??[]:[],T=(h==null?void 0:h.total)??0;if(!f)return t.length===0?null:u.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":oe("search.suggestions"),children:[u.jsxs("div",{className:"search-pop__section-head",children:[u.jsx("span",{children:oe("search.recent")}),u.jsx("button",{type:"button",className:"search-pop__clear",onClick:d,children:oe("search.clearRecent")})]}),u.jsx("ul",{className:"search-pop__list",children:t.map(I=>u.jsxs("li",{className:"search-pop__recent",children:[u.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>o(I),children:[u.jsx(ct,{name:"search",size:16,color:"var(--muted)"}),u.jsx("span",{className:"search-pop__recent-text",children:I})]}),u.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":oe("search.removeRecent",{query:I}),onClick:()=>s(I),children:u.jsx(vh,{})})]},I))})]});const y=_.length===0&&p.length===0&&b.length===0;return u.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":oe("search.suggestions"),children:y?u.jsx("p",{className:"search-pop__empty",children:m?oe("search.searching"):oe("search.noResults",{query:e})}):u.jsxs(u.Fragment,{children:[_.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.items")})}),u.jsx("ul",{className:"search-pop__list",children:_.map(I=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(I),children:[u.jsx("span",{className:"search-pop__thumb",children:I.thumbnail?u.jsx("img",{src:I.thumbnail,alt:""}):null}),u.jsxs("span",{className:"search-pop__text",children:[u.jsx("span",{className:"search-pop__name",title:I.name,children:I.name}),I.creator?u.jsx(m2,{address:I.creator,className:"search-pop__sub"}):null]}),u.jsxs("span",{className:"search-pop__price",children:[u.jsx(Qt,{className:"ccy-mark"})," ",I.priceCredits]})]})},I.id))})]}):null,p.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.collections")})}),u.jsx("ul",{className:"search-pop__list",children:p.map(I=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(I),children:[u.jsx(E_,{contractAddress:I.contractAddress}),u.jsxs("span",{className:"search-pop__text",children:[u.jsx("span",{className:"search-pop__name",title:I.name,children:I.name}),I.creator?u.jsx(m2,{address:I.creator,className:"search-pop__sub"}):null]})]})},I.contractAddress))})]}):null,b.length>0?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"search-pop__section-head",children:u.jsx("span",{children:oe("search.creators")})}),u.jsx("ul",{className:"search-pop__list",children:b.map(I=>u.jsx("li",{children:u.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>a(I),children:[u.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:I.face?u.jsx("img",{src:I.face,alt:""}):null}),u.jsx("span",{className:"search-pop__text",children:u.jsx("span",{className:"search-pop__name",title:I.name,children:I.name})})]})},I.address))})]}):null,T>0?u.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>o(e),children:oe("search.seeAll",{count:T.toLocaleString()})}):null]})})}const A_=new Set([rt.ProviderType.INJECTED,rt.ProviderType.METAMASK_MOBILE,rt.ProviderType.FORTMATIC,rt.ProviderType.WALLET_CONNECT,rt.ProviderType.WALLET_CONNECT_V2,rt.ProviderType.WALLET_LINK]);function k_(e){return!!e&&A_.has(e)}const Ks="shop:recent-searches",kh=8;function As(){try{const e=localStorage.getItem(Ks);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"&&r.length>0).slice(0,kh):[]}catch{return[]}}function ps(e){const t=e.trim();if(t)try{const r=[t,...As().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,kh);localStorage.setItem(Ks,JSON.stringify(r))}catch{}}function I_(e){try{const t=As().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(Ks,JSON.stringify(t))}catch{}}function R_(){try{localStorage.removeItem(Ks)}catch{}}function N_(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:a}=Fn(),o=e==null?void 0:e.address,{data:s,isLoading:d}=so(o),{data:f,isError:h,isLoading:m}=Yv(e),p=qt(Y=>Y.items.reduce((ce,ie)=>ce+ie.quantity,0)),b=qt(Y=>Y.setOpen),_=Is(),[T]=Jh(),{pathname:y}=q2(),I=/^\/(assets|item|collection|creator)(\/|$)/.test(y),W=T.get("q")??"",[g,A]=ne.useState(W),[w,K]=ne.useState(W),[U,x]=ne.useState(!1),[q,Q]=ne.useState([]),ee=ne.useRef(),ae=ne.useRef(null);ne.useEffect(()=>{a()},[a]),ne.useEffect(()=>{A(W),K(W)},[W]),ne.useEffect(()=>{if(!U)return;const Y=ce=>{ae.current&&!ae.current.contains(ce.target)&&x(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[U]);function J(){Q(As()),x(!0)}function L(Y){const ce=Y.trim();x(!1),ce&&ps(ce),_(ce?`/assets?q=${encodeURIComponent(ce)}`:"/assets",{replace:!0})}function N(Y){x(!1),g.trim()&&ps(g.trim()),ur("Shop Search Suggestion Clicked",{query:g.trim(),type:"item",item_id:Y.id});const ce=Y.tokenId??Y.itemId;Y.contractAddress&&ce?_(`/item/${Y.contractAddress}/${ce}`,{state:{item:Y,tradeId:Y.tradeId}}):L(g)}function Z(Y){x(!1),g.trim()&&ps(g.trim()),ur("Shop Search Suggestion Clicked",{query:g.trim(),type:"collection",contract_address:Y.contractAddress}),_(`/collection/${Y.contractAddress}`)}function P(Y){x(!1),g.trim()&&ps(g.trim()),ur("Shop Search Suggestion Clicked",{query:g.trim(),type:"creator",creator_address:Y.address}),_(`/assets/creator/${Y.address}`)}function F(Y){A(Y),x(!0),ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>K(Y.trim()),300)}function H(){A(""),K(""),x(!1),_("/assets",{replace:!0})}function R(Y){I_(Y),Q(As())}function j(){R_(),Q([])}function z(Y){if(Y.key==="Escape"){x(!1);return}Y.key==="Enter"&&(ee.current&&clearTimeout(ee.current),L(g))}return u.jsxs(u.Fragment,{children:[u.jsx(lg,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&d,address:o,avatar:s,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),u.jsxs("div",{className:"subnav",children:[u.jsxs("nav",{className:"subnav__tabs",children:[u.jsx(vn,{to:"/overview",children:oe("nav.overview")}),u.jsx(vn,{to:"/assets",className:()=>I?"active":"",children:oe("nav.collectibles")}),u.jsx(vn,{to:"/my-assets",children:oe("nav.myAssets")}),e?u.jsx(vn,{to:"/activity",children:oe("nav.activity")}):null,e&&k_(e.providerType)?u.jsx(vn,{to:"/authorizations",children:oe("nav.authorizations")}):null]}),u.jsxs("div",{className:"subnav__search",ref:ae,children:[u.jsx(ct,{name:"search",color:"var(--muted)"}),u.jsx("input",{value:g,"aria-label":oe("nav.searchAria"),placeholder:oe("nav.searchPlaceholder"),onChange:Y=>F(Y.target.value),onFocus:J,onKeyDown:z}),g?u.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":oe("search.clear"),onClick:H,children:u.jsx(vh,{})}):null,U?u.jsx(T_,{query:w,recent:q,onSelectItem:N,onSelectCollection:Z,onSelectCreator:P,onRunSearch:L,onRemoveRecent:R,onClearRecent:j}):null]}),e?u.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:oe("nav.yourBalance",{currency:va.name}),children:[u.jsx(Qt,{className:"subnav__balance-ico"}),m?u.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):Qv(f,h)]}):null,u.jsxs(vn,{to:"/credits",className:"subnav__credits",children:[u.jsx(Qt,{className:"subnav__credits-ico"}),oe("nav.getCredits",{currency:va.name})]}),u.jsx(vn,{to:"/my-favorites",className:"subnav__fav","aria-label":oe("nav.myFavorites"),children:u.jsx(ct,{name:"heart"})}),u.jsxs("div",{className:"subnav__cart-wrap",children:[u.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":oe("nav.cart"),onClick:()=>p>0?b(!0):_("/cart"),children:[u.jsx(ct,{name:"cart",size:28}),p>0?u.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:p}):null]}),u.jsx(hw,{})]})]})]})}let P_=0;const Da=Bn(e=>({toasts:[],push:t=>{const r=++P_;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),f9={success:e=>Da.getState().push({message:e,kind:"success"}),error:e=>Da.getState().push({message:e,kind:"error"}),info:e=>Da.getState().push({message:e,kind:"info"})},O_=vf`
|
|
157
|
+
from {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
transform: translateX(24px) scale(0.96);
|
|
160
|
+
}
|
|
161
|
+
to {
|
|
162
|
+
opacity: 1;
|
|
163
|
+
transform: translateX(0) scale(1);
|
|
164
|
+
}
|
|
165
|
+
`,j_=wt.div`
|
|
166
|
+
position: fixed;
|
|
167
|
+
top: 18px;
|
|
168
|
+
right: 18px;
|
|
169
|
+
z-index: 1000;
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
gap: 10px;
|
|
173
|
+
max-width: min(92vw, 380px);
|
|
174
|
+
`,L_=wt.span`
|
|
175
|
+
flex: 0 0 22px;
|
|
176
|
+
width: 22px;
|
|
177
|
+
height: 22px;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
display: grid;
|
|
180
|
+
place-items: center;
|
|
181
|
+
color: ${Le.colors.white};
|
|
182
|
+
font-weight: 800;
|
|
183
|
+
font-size: 13px;
|
|
184
|
+
background: ${Le.colors.accent};
|
|
185
|
+
|
|
186
|
+
&[data-kind='success'] {
|
|
187
|
+
background: ${Le.colors.okStrong};
|
|
188
|
+
}
|
|
189
|
+
&[data-kind='error'] {
|
|
190
|
+
background: ${Le.colors.errStrong};
|
|
191
|
+
}
|
|
192
|
+
`,M_=wt.span`
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
line-height: 1.35;
|
|
196
|
+
`,B_=wt.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 12px;
|
|
200
|
+
padding: 13px 16px;
|
|
201
|
+
border-radius: ${Le.radius.card};
|
|
202
|
+
background: ${Le.colors.white};
|
|
203
|
+
color: ${Le.colors.text};
|
|
204
|
+
box-shadow: 0 12px 32px rgba(20, 20, 30, 0.18);
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
border-left: 4px solid ${Le.colors.accent};
|
|
207
|
+
animation: ${O_} 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
208
|
+
|
|
209
|
+
&[data-kind='success'] {
|
|
210
|
+
border-left-color: ${Le.colors.okStrong};
|
|
211
|
+
}
|
|
212
|
+
&[data-kind='error'] {
|
|
213
|
+
border-left-color: ${Le.colors.errStrong};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
animation: none;
|
|
218
|
+
}
|
|
219
|
+
`,F_={success:"✓",error:"!",info:"i"};function $_({t:e}){const t=Da(r=>r.dismiss);return ne.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),u.jsxs(B_,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[u.jsx(L_,{"data-kind":e.kind,"aria-hidden":!0,children:F_[e.kind]}),u.jsx(M_,{children:e.message})]})}function D_(){const e=Da(t=>t.toasts);return e.length===0?null:u.jsx(j_,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>u.jsx($_,{t},t.id))})}const q_=10,U_=4,H_=4,V_=3e4;function z_(){if(!(typeof navigator>"u"))return navigator.connection}function G_(){if(!(typeof navigator>"u"))return navigator.deviceMemory}function W_(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(`(max-width: ${Jc.mobile}px)`).matches}function Z_(){if(typeof performance>"u"||typeof performance.getEntriesByType!="function")return null;let e=null;for(const t of performance.getEntriesByType("resource"))if(t.transferSize>=V_&&t.duration>0){const r=t.transferSize*8/1e6/(t.duration/1e3);(e===null||r>e)&&(e=r)}return e}function K_(){const e=s=>({renderer:rt.PreviewRenderer.BABYLON,reason:s});if(W_())return e("mobile");const t=z_();if(t!=null&&t.saveData)return e("save-data");const r=Z_(),n=t==null?void 0:t.downlink;if(r!==null&&r<q_)return e("slow-connection");if(r===null&&typeof n=="number"&&n>0&&n<U_)return e("slow-connection");const a=G_();if(a!==void 0&&a<H_)return e("low-device-memory");const o=r!==null||typeof n=="number";return{renderer:rt.PreviewRenderer.UNITY,reason:o?"connection-ok":"optimistic-default"}}const Y_=ne.lazy(()=>_t(()=>import("./index-BOJsU4RS.js"),__vite__mapDeps([14,1,2,15,6,16,4,17,18,3,19,20,7,8])).then(e=>({default:e.WearablePreview})));function Q_(e,t){if(!e)return!1;const r=K_();return r.renderer===rt.PreviewRenderer.BABYLON&&r.reason!=="mobile"&&ur("Shop Preview Renderer Fallback",{reason:r.reason,preview_id:t??null}),r.renderer===rt.PreviewRenderer.UNITY}function Ih({unity:e=!1,unityMode:t=rt.PreviewUnityMode.MARKETPLACE,onError:r,onLoad:n,onRenderer:a,...o}){const[s,d]=ne.useState(()=>Q_(e,o.id));return u.jsx(ne.Suspense,{fallback:null,children:u.jsx(Y_,{...o,unity:s,unityMode:s?t:void 0,onLoad:f=>{a==null||a(f??rt.PreviewRenderer.BABYLON),n==null||n(f)},onError:f=>{d(!1),a==null||a(rt.PreviewRenderer.BABYLON),r==null||r(f)}})})}function J_(e){return e.itemId?`urn:decentraland:${He.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const ta=rt.BodyShape.MALE,ra=rt.BodyShape.FEMALE;function ll(e){if(e.category==="emote")return[ta,ra];switch(e.gender){case"male":return[ta];case"female":return[ra];default:return[ta,ra]}}function Rh(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?ra:ta:null}function Ys(e,t){return t==null||ll(e).includes(t)}function p2(e){return oe(e===ra?"bodyShape.female":"bodyShape.male")}function X_(e){let t=0,r=0;for(const n of e)n.category!=="emote"&&(n.gender==="male"?t++:n.gender==="female"&&r++);return t===0&&r===0?null:r>t?ra:ta}function Mn(e){return e.category!=="emote"}function ba(e){return Mn(e)?e.wearableCategory??`unknown:${e.id}`:null}const e6=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function t6(e){if(!Mn(e))return"item";const t=e.wearableCategory;return t?e6.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function g2(e,t=null){const r=new Set,n=new Set;for(const a of e){const o=ba(a);o==null||n.has(o)||Ys(a,t)&&(n.add(o),r.add(a.id))}return r}function r6(e,t,r){if(!Mn(t))return e;const n=new Set(e);if(n.has(t.id))return n.delete(t.id),n;const a=ba(t);if(a!=null)for(const o of r)o.id!==t.id&&n.has(o.id)&&ba(o)===a&&n.delete(o.id);return n.add(t.id),n}function n6(e){const t=new Map;for(const n of e){const a=ba(n);if(a==null)continue;const o=t.get(a)??[];o.push(n.id),t.set(a,o)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(a=>r.add(a));return r}function a6(e,t,r=null){const n=[];for(const a of e){if(!t.has(a.id)||!Mn(a)||!Ys(a,r))continue;const o=J_(a);o&&n.push(o)}return n}const o6=wt.button`
|
|
220
|
+
border: 0;
|
|
221
|
+
border-radius: ${Le.radius.btn};
|
|
222
|
+
padding: 12px 22px;
|
|
223
|
+
font-weight: 700;
|
|
224
|
+
font-size: 15px;
|
|
225
|
+
background: ${Le.colors.blackBtn};
|
|
226
|
+
color: ${Le.colors.white};
|
|
227
|
+
text-decoration: none; /* so an as=Link / as=a element renders without an underline; no-op on button */
|
|
228
|
+
transition:
|
|
229
|
+
background 0.15s ease,
|
|
230
|
+
filter 0.15s ease,
|
|
231
|
+
transform 0.12s ease;
|
|
232
|
+
|
|
233
|
+
&:disabled {
|
|
234
|
+
opacity: 0.55;
|
|
235
|
+
cursor: default;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Primary CTA = Amethyst gradient (Figma "Add to cart" primary), solid purple on hover/press. */
|
|
239
|
+
&[data-variant='purple'] {
|
|
240
|
+
background: ${Le.gradients.amethyst};
|
|
241
|
+
color: ${Le.colors.softWhite};
|
|
242
|
+
text-transform: uppercase;
|
|
243
|
+
letter-spacing: 0.046em;
|
|
244
|
+
font-size: 13px;
|
|
245
|
+
}
|
|
246
|
+
&[data-variant='purple']:hover:not(:disabled) {
|
|
247
|
+
background: ${Le.colors.accent};
|
|
248
|
+
}
|
|
249
|
+
&[data-variant='purple']:active:not(:disabled) {
|
|
250
|
+
background: ${Le.colors.accent};
|
|
251
|
+
transform: translateY(1px);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Outlined primary (Figma outlined variant): magenta border, purple label. */
|
|
255
|
+
&[data-variant='outline'] {
|
|
256
|
+
background: ${Le.colors.white};
|
|
257
|
+
border: 2px solid ${Le.colors.magenta};
|
|
258
|
+
color: ${Le.colors.accent};
|
|
259
|
+
text-transform: uppercase;
|
|
260
|
+
letter-spacing: 0.046em;
|
|
261
|
+
font-size: 13px;
|
|
262
|
+
font-weight: 600;
|
|
263
|
+
}
|
|
264
|
+
&[data-variant='outline']:hover:not(:disabled) {
|
|
265
|
+
background: rgba(198, 64, 205, 0.06);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&[data-variant='ghost'] {
|
|
269
|
+
background: ${Le.colors.white};
|
|
270
|
+
border: 1px solid ${Le.colors.lineStrong};
|
|
271
|
+
color: ${Le.colors.text};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&[data-size='sm'] {
|
|
275
|
+
padding: 8px 12px;
|
|
276
|
+
font-size: 13px;
|
|
277
|
+
}
|
|
278
|
+
`;function s6({as:e,variant:t="default",size:r="md",...n},a){const o=o6;return u.jsx(o,{as:e,ref:a,"data-variant":t,"data-size":r,...n})}const Qs=ne.forwardRef(s6),i6=ne.lazy(()=>_t(()=>import("./AnimatedBackground-DC0qsES6.js"),__vite__mapDeps([21,1,22]))),c6=wt(Qs)`
|
|
279
|
+
flex: none;
|
|
280
|
+
`,l6={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function y2(e){return!e||e.startsWith("unknown:")?oe("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function u6(){const e=qt(K=>K.fittingOpen),t=qt(K=>K.setFittingOpen),r=qt(K=>K.items),n=qt(K=>K.remove),a=Is(),o=Fn(K=>{var U;return(U=K.session)==null?void 0:U.address}),{data:s,isFetched:d}=so(o),f=!o||d,h=!!o&&!!s,m=h?o:"default",p=Rh(s)??X_(r)??ta,[b,_]=ne.useState(()=>g2(r,p)),[T,y]=ne.useState(!1);ne.useEffect(()=>{e&&_(g2(r,p))},[e,p]),ne.useEffect(()=>{const K=new Set(r.map(U=>U.id));_(U=>{const x=new Set([...U].filter(q=>K.has(q)));return x.size===U.size?U:x})},[r]);const I=ne.useMemo(()=>n6(r),[r]),W=ne.useMemo(()=>a6(r,b,p),[r,b,p]),g=r.reduce((K,U)=>K+U.priceCredits*U.quantity,0),A=W.join(",");ne.useEffect(()=>{y(!1)},[A,m]);const w=ne.useRef(!1);return ne.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,ur("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(Mn).length,emotes:r.filter(K=>!Mn(K)).length,cart_value_credits:g}))},[e,r,g]),ne.useEffect(()=>{if(!e)return;const K=U=>{U.key==="Escape"&&t(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[e,t]),!e||r.length===0?null:u.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":oe("fittingRoom.title"),children:[u.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),u.jsxs("div",{className:"fitting__panel",children:[u.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":oe("fittingRoom.close"),children:"×"}),u.jsxs("div",{className:"fitting__stage",children:[u.jsx(ne.Suspense,{fallback:null,children:u.jsx(i6,{})}),f?W.length>0?u.jsxs(u.Fragment,{children:[u.jsx(Ih,{profile:m,bodyShape:h?void 0:p,urns:W,type:rt.PreviewType.AVATAR,emote:rt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,unity:!0,onLoad:()=>y(!0)},m),T?null:u.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:u.jsx("span",{className:"fitting__spinner"})})]}):u.jsxs("div",{className:"fitting__empty-stage",children:[u.jsx("p",{children:oe("fittingRoom.emptyStageTitle")}),u.jsx("p",{className:"muted",children:oe("fittingRoom.emptyStageBody")})]}):u.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:u.jsx("span",{className:"fitting__spinner"})})]}),u.jsxs("div",{className:"fitting__side",children:[u.jsxs("div",{className:"fitting__head",children:[u.jsx("h2",{className:"fitting__title",children:oe("fittingRoom.title")}),u.jsx("p",{className:"fitting__sub muted",children:oe("fittingRoom.sub")})]}),u.jsx("div",{className:"fitting__items",children:r.map(K=>{const U=Mn(K),x=U&&!Ys(K,p),q=b.has(K.id),Q=I.has(K.id);return u.jsxs("div",{className:`fitting-row${q?" is-on":""}${x?" is-incompatible":""}`,"data-testid":"fitting-row",children:[u.jsxs("label",{className:"fitting-row__toggle",children:[u.jsx("input",{type:"checkbox",checked:q,disabled:!U||x,onChange:()=>_(ee=>r6(ee,K,r))}),u.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),u.jsx("div",{className:"fitting-row__thumb",children:K.thumbnail?u.jsx("img",{src:K.thumbnail,alt:K.name}):null}),u.jsxs("div",{className:"fitting-row__info",children:[u.jsx("div",{className:"fitting-row__name",title:K.name,children:K.name}),u.jsxs("div",{className:"fitting-row__meta",children:[u.jsx(ct,{name:l6[U?t6(K):"item"],size:16,color:"var(--muted)",title:U?y2(ba(K)):oe("fittingRoom.emote"),role:"img","aria-label":U?y2(ba(K)):oe("fittingRoom.emote")}),Q&&!x?u.jsx("span",{className:"fitting-row__conflict",title:oe("fittingRoom.conflictTooltip"),children:oe("fittingRoom.onePerSlot")}):null,x?u.jsx("span",{className:"fitting-row__incompat",title:oe("fittingRoom.madeForShape",{shape:p2(ll(K)[0])}),children:oe("fittingRoom.shapeOnly",{shape:p2(ll(K)[0])})}):null]})]}),u.jsxs("div",{className:"fitting-row__price",children:[u.jsx(Qt,{className:"fitting-row__diamond"}),K.priceCredits]}),u.jsx("button",{className:"fitting-row__remove",onClick:()=>n(K.id),"aria-label":oe("fittingRoom.removeFromCart",{name:K.name}),title:oe("fittingRoom.remove"),children:u.jsx(ct,{name:"trash",size:18})})]},K.id)})}),u.jsxs("div",{className:"fitting__foot",children:[u.jsxs("div",{className:"fitting__total",children:[oe("fittingRoom.itemCount",{count:r.length})," ·"," ",u.jsxs("strong",{children:[va.symbol," ",g]})]}),u.jsx(c6,{variant:"purple",onClick:()=>{t(!1),a("/cart")},children:oe("fittingRoom.checkout")})]})]})]})]})}const Nh="shop:locale";function d6(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&Cs.includes(t))return t;const r=localStorage.getItem(Nh);if(r&&Cs.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&Cs.includes(n))return n}catch{}return"en"}const ul=Bn(e=>({locale:d6(),setLocale:t=>{try{localStorage.setItem(Nh,t)}catch{}e({locale:t})}})),f6="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",v2=[{label:"footer.linkWhatIs",url:"https://docs.decentraland.org/introduction/about-decentraland"},{label:"footer.linkDownload",url:"https://decentraland.org/download"},{label:"footer.linkSystemRequirements",url:"https://docs.decentraland.org/in-world/settings-and-performance"},{label:"footer.linkFaqs",url:"https://docs.decentraland.org/faqs/decentraland-101"},{label:"footer.linkContactSupport",url:"https://decentraland.org/help/"}],b2=[{label:"footer.linkMarketplace",url:"https://decentraland.org/marketplace"},{label:"footer.linkCreatorHub",url:"https://decentraland.org/create/"},{label:"footer.linkDocs",url:"https://docs.decentraland.org"},{label:"footer.linkBlog",url:"https://decentraland.org/blog/"},{label:"footer.linkVote",url:"https://decentraland.org/dao"}],h6=[{name:"Discord",url:"https://dcl.gg/discord",icon:g6},{name:"GitHub",url:"https://github.com/decentraland",icon:y6},{name:"X",url:"https://x.com/decentraland",icon:v6},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:b6},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:w6},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:_6},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:C6}],m6=[{label:"footer.linkPrivacy",url:"https://decentraland.org/privacy/"},{label:"footer.linkTerms",url:"https://decentraland.org/terms/"},{label:"footer.linkContentPolicy",url:"https://decentraland.org/content/"},{label:"footer.linkEthics",url:"https://decentraland.org/ethics/"}],gs={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function w2(){return u.jsx("div",{className:"dcl-footer__social",children:h6.map(({name:e,url:t,icon:r})=>u.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:u.jsx(r,{})},e))})}function p6(){const e=ul(h=>h.locale),t=ul(h=>h.setLocale),[r,n]=ne.useState(null),[a,o]=ne.useState(!1),s=ne.useRef(null),d=gs[e]??gs.en;ne.useEffect(()=>{if(!a)return;const h=m=>{s.current&&!s.current.contains(m.target)&&o(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[a]);const f=h=>n(m=>m===h?null:h);return u.jsxs("footer",{className:"dcl-footer",children:[u.jsxs("div",{className:"dcl-footer__main",children:[u.jsxs("div",{className:"dcl-footer__left",children:[u.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),u.jsxs("div",{className:"dcl-footer__news",children:[u.jsx("p",{className:"dcl-footer__news-title",children:oe("footer.newsletterTitle")}),u.jsx("iframe",{className:"dcl-footer__news-frame",src:f6,height:"65",frameBorder:"0",scrolling:"no",title:oe("footer.newsletterFrameTitle")})]}),u.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.connect")}),u.jsx(w2,{})]})]}),u.jsxs("div",{className:"dcl-footer__right",children:[u.jsxs("div",{className:"dcl-footer__col",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.gettingStarted")}),v2.map(h=>u.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))]}),u.jsxs("div",{className:"dcl-footer__col",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.resources")}),b2.map(h=>u.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))]})]}),u.jsxs("div",{className:"dcl-footer__mobile-menu",children:[u.jsx("p",{className:"dcl-footer__menu-label",children:oe("footer.menu")}),[{key:"getting-started",label:oe("footer.gettingStarted"),links:v2},{key:"resources",label:oe("footer.resources"),links:b2}].map(h=>u.jsxs("div",{children:[u.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>f(h.key),children:[h.label,u.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:u.jsx(_2,{})})]}),u.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(m=>u.jsx("a",{className:"dcl-footer__mlink",href:m.url,target:"_blank",rel:"noopener noreferrer",children:oe(m.label)},m.label))})]},h.key))]}),u.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[u.jsx("p",{className:"dcl-footer__label",children:oe("footer.connect")}),u.jsx(w2,{})]})]}),u.jsxs("div",{className:"dcl-footer__bottom",children:[u.jsxs("div",{className:"dcl-footer__bottom-left",children:[u.jsxs("div",{className:"dcl-footer__lang",ref:s,children:[u.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>o(h=>!h),children:[u.jsx("span",{"aria-hidden":!0,children:d.flag}),d.label,u.jsx("span",{className:`dcl-footer__chev${a?" is-open":""}`,children:u.jsx(_2,{})})]}),a?u.jsx("div",{className:"dcl-footer__lang-menu",children:Cs.map(h=>u.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),o(!1)},children:[u.jsx("span",{"aria-hidden":!0,children:gs[h].flag}),gs[h].label]},h))}):null]}),u.jsx("div",{className:"dcl-footer__legal",children:m6.map(h=>u.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:oe(h.label)},h.label))})]}),u.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function g6(){return u.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:u.jsx("path",{d:"M23.7 1.84A23.25 23.25 0 0 0 17.96 0c-.25.45-.54 1.05-.74 1.53a21.5 21.5 0 0 0-6.45 0C10.57 1.05 10.27.45 10.02 0A23.2 23.2 0 0 0 4.27 1.85C.62 7.34-.38 12.7.12 18a23.37 23.37 0 0 0 7.13 3.6 17.4 17.4 0 0 0 1.53-2.49 15.17 15.17 0 0 1-2.41-1.16c.2-.15.4-.3.59-.46a16.63 16.63 0 0 0 14.1 0c.19.16.39.31.58.46-.77.45-1.57.84-2.41 1.16.44.87.96 1.7 1.53 2.49a23.3 23.3 0 0 0 7.14-3.61c.58-6.15-1-11.47-4.1-16.15ZM9.35 14.74c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Zm9.38 0c-1.4 0-2.54-1.28-2.54-2.85s1.12-2.86 2.54-2.86 2.56 1.29 2.54 2.86c0 1.57-1.12 2.85-2.54 2.85Z"})})}function y6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.jsx("path",{d:"M12 .3a12 12 0 0 0-3.8 23.38c.6.12.82-.26.82-.58v-2.02c-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.83 2.8 1.3 3.49 1 .1-.78.42-1.3.76-1.6-2.67-.31-5.47-1.34-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.12-3.18 0 0 1-.33 3.3 1.23a11.5 11.5 0 0 1 6.02 0c2.28-1.56 3.29-1.23 3.29-1.23.66 1.66.25 2.88.12 3.18a4.65 4.65 0 0 1 1.24 3.22c0 4.61-2.81 5.62-5.48 5.92.43.37.81 1.1.81 2.22v3.29c0 .32.22.7.82.58A12 12 0 0 0 12 .3Z"})})}function v6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:u.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77Z"})})}function b6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069ZM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0Zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881Z"})})}function w6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.546 12 3.546 12 3.546s-7.505 0-9.377.504A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.504 9.376.504 9.376.504s7.505 0 9.377-.504a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"})})}function _6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:u.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z"})})}function C6(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:u.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286ZM5.337 7.433a2.062 2.062 0 1 1 0-4.123 2.062 2.062 0 0 1 0 4.123ZM6.863 20.452H3.804V9h3.059v11.452ZM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003Z"})})}function _2(){return u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}const lr=Bn((e,t)=>({item:null,anchor:null,ready:!1,token:0,show:(r,n)=>{var o;const a=t();((o=a.item)==null?void 0:o.id)===r.id&&a.anchor===n||e(s=>({item:r,anchor:n,ready:!1,token:s.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),C2="hover-preview";function E6(){const e=lr(g=>g.item),t=lr(g=>g.anchor),r=lr(g=>g.token),n=lr(g=>g.ready),a=lr(g=>g.setReady),o=Fn(g=>{var A;return(A=g.session)==null?void 0:A.address}),{data:s}=so(o),[d,f]=ne.useState(!1),[h,m]=ne.useState(!1),p=ne.useRef(!1),b=ne.useRef(-1),[_,T]=ne.useState(null);ne.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const A=window.requestIdleCallback(()=>f(!0),{timeout:3e3});return()=>window.cancelIdleCallback(A)}const g=window.setTimeout(()=>f(!0),1500);return()=>window.clearTimeout(g)},[]),ne.useEffect(()=>{if(!t){T(null);return}let g=0;const A=()=>T(t.getBoundingClientRect());A();const w=()=>{cancelAnimationFrame(g),g=requestAnimationFrame(A)};return window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{cancelAnimationFrame(g),window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}},[t]),ne.useEffect(()=>{if(!e)return;const g=document.getElementById(C2);if(!(g!=null&&g.contentWindow)||!p.current)return;b.current=r;const A=e.category==="emote",w=!!o&&!!s&&Ys(e,Rh(s));fu.sendMessage(g.contentWindow,fu.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:w?o:"default",type:A?void 0:rt.PreviewType.AVATAR,emote:A?void 0:rt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,h,o,s]);function y(){if(!p.current){p.current=!0,m(!0);return}const g=lr.getState();g.item&&g.token===b.current&&a()}if(!d)return null;const W=!!e&&!!_?{position:"fixed",left:_.left,top:_.top,width:_.width,height:_.height,zIndex:5,pointerEvents:"none",opacity:n?1:0,transition:"opacity .25s ease"}:{position:"fixed",left:-9999,top:-9999,width:2,height:2,opacity:0,pointerEvents:"none",overflow:"hidden"};return u.jsx("div",{className:"hover-preview","aria-hidden":!0,style:W,children:u.jsx(Ih,{id:C2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:He.chainId===80002,onLoad:y})})}function x6(){const e=Fn(t=>t.session);ne.useEffect(()=>{if(!e||e.providerType!==rt.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...a)=>{var d;((d=(a[0]??[])[0])==null?void 0:d.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var a;return(a=t.removeListener)==null?void 0:a.call(t,"accountsChanged",n)}},[e])}function S6(e,t){return!t||!e.creator?!1:Il(e)&&e.creator.toLowerCase()===t.toLowerCase()}function h9(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const E2={head:"cat-head",hat:"cat-head",hair:"cat-head",facial_hair:"cat-head",eyes:"cat-head",eyebrows:"cat-head",mouth:"cat-head",mask:"cat-head",helmet:"cat-head",tiara:"cat-head",top_head:"cat-head",upper_body:"cat-upper",hands_wear:"cat-handwear",lower_body:"cat-lower",feet:"cat-feet",earring:"cat-accessories",eyewear:"cat-accessories",skin:"cat-skins",dance:"emote-dance",stunt:"emote-stunt",greetings:"emote-greetings",fun:"emote-fun",poses:"emote-poses",reactions:"emote-reactions",horror:"emote-horror"};function T6(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&E2[t]?E2[t]:e.category==="emote"?"emote-misc":null}function A6(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function k6(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:a}=e;return!(n==null||!(n>r)||a!=null&&a<=t)}function I6(e,t){if(!(e>0)||!(t>=0)||t>=e)return 0;const r=Math.round((1-t/e)*100);return Math.min(99,Math.max(1,r))}function Fa(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function R6(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),a=Math.floor(t%3600/60),o=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${a}m`:a>0?`${a}m ${o}s`:`${o}s`}function x2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function N6({endsAt:e,className:t,testId:r,iconSize:n=13}){const[a,o]=ne.useState(()=>Fa(e));ne.useEffect(()=>{if(o(Fa(e)),e==null)return;let d;const f=()=>{const m=Fa(e);o(m);const p=x2(m);p>0&&(d=setTimeout(f,p))},h=x2(Fa(e));return h>0&&(d=setTimeout(f,h)),()=>clearTimeout(d)},[e]);const s=R6(a);return s?u.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[u.jsx(ct,{name:"clock",size:n}),s]}):null}function P6(e){const[,t]=ne.useState(0);return ne.useEffect(()=>{const r=Fa(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(a=>a+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),k6(e)}const O6=120;function Vl(e){const{item:t}=e,r=e.mode==="market",n=e.mode==="view",a=e.mode==="manage",o=e.mode==="manage-link",s=t.category==="ens",d=Is(),f=ne.useRef(),h=ne.useRef(null),m=qt(P=>P.add),p=qt(P=>P.items.some(F=>F.id===t.id)),b=Fn(P=>{var F;return(F=P.session)==null?void 0:F.address}),_=S6(t,b),T=Ss(P=>P.toggle),y=Ss(P=>!!P.items[t.id]),I=lr(P=>P.show),W=lr(P=>P.hide),g=lr(P=>{var F;return((F=P.item)==null?void 0:F.id)===t.id}),A=lr(P=>{var F;return((F=P.item)==null?void 0:F.id)===t.id?P.ready:!1}),w=!!t.contractAddress&&!!t.itemId&&!s,K=t.tokenId??t.itemId,U=!!t.contractAddress&&!!K,x=`/item/${t.contractAddress}/${K}`;function q(P){P.stopPropagation(),U&&d(x,{state:{item:t,tradeId:t.tradeId}})}function Q(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{w&&h.current&&I(t,h.current)},O6))}function ee(){var P;f.current&&clearTimeout(f.current),((P=lr.getState().item)==null?void 0:P.id)===t.id&&W()}ne.useEffect(()=>()=>{var P;f.current&&clearTimeout(f.current),((P=lr.getState().item)==null?void 0:P.id)===t.id&&W()},[t.id,W]);const ae=T6(t),J=A6(t.gender),L=P6({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),N=!r&&L,Z=N?I6(t.compareAtCredits,t.priceCredits):0;return u.jsxs("article",{className:"card","data-testid":"card",style:U&&!s?{cursor:"pointer"}:void 0,onMouseEnter:Q,onMouseLeave:ee,children:[U&&!s?u.jsx(Sn,{className:"card__link","data-testid":"card-link",to:x,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,s&&e.mode==="manage-link"&&e.manageHref?u.jsx("a",{className:"card__link","data-testid":"card-link",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":t.name}):null,s?null:u.jsx("button",{className:`card__fav${y?" is-on":""}`,"data-testid":"card-fav",onClick:P=>{P.stopPropagation(),T(t)},"aria-label":oe(y?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:u.jsx(ct,{name:y?"heart-solid":"heart",size:18})}),u.jsxs("div",{className:"card__media",ref:h,children:[N?u.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:Z>0?oe("assetCard.saleWithDiscount",{pct:Z}):oe("assetCard.sale")}):null,w&&g&&!A?u.jsx("div",{className:"card__skeleton","data-testid":"card-skeleton","aria-hidden":!0}):null,t.listingCount&&t.listingCount>1?u.jsx("span",{className:"card__listings","data-testid":"card-listings",children:oe("assetCard.onSaleCount",{count:t.listingCount})}):null,s?u.jsxs("div",{className:"card__name-media","aria-hidden":!0,children:[u.jsx("span",{className:"card__name-at",children:"@"}),u.jsx("span",{className:"card__name-value",children:t.name})]}):t.thumbnail?u.jsx("img",{className:`card__img${g&&A?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),a&&e.mode==="manage"?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsxs("div",{className:"card__desc",children:[u.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?u.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):u.jsx("div",{className:"card__creator",children:" "})]}),e.listed&&t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),e.listed?u.jsx("button",{className:"card__manage card__manage--ghost","data-testid":"card-unlist",disabled:e.busy,onClick:P=>{P.stopPropagation(),e.onUnlist(t)},children:e.busy?oe("myAssets.removing"):oe("myAssets.removeListing")}):u.jsx("button",{className:"card__manage","data-testid":"card-list",disabled:e.busy,onClick:P=>{P.stopPropagation(),e.onList(t)},children:oe("myAssets.putOnSale")})]}):s?u.jsxs("div",{className:"card__body card__body--name",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsxs("div",{className:"card__name card__name--verified",title:t.name,children:[u.jsxs("span",{children:["@",t.name]}),u.jsxs("svg",{className:"card__verified",width:"18",height:"18",viewBox:"0 0 14.6921 14.6931",fill:"none","aria-hidden":!0,children:[u.jsx("path",{d:"M6.285 0.43934C6.87079 -0.146447 7.82128 -0.146447 8.40707 0.43934L9.68051 1.71278H11.4793C12.3078 1.71278 12.9793 2.38435 12.9793 3.21278V5.01161L14.2528 6.28602C14.8386 6.87181 14.8386 7.82133 14.2528 8.40711L12.9793 9.68055V11.4804C12.9793 12.3088 12.3078 12.9804 11.4793 12.9804H9.68051L8.40707 14.2538C7.82128 14.8395 6.87076 14.8396 6.285 14.2538L5.01156 12.9804H3.21176C2.38334 12.9804 1.71177 12.3088 1.71176 11.4804V9.67957L0.439297 8.40711C-0.146461 7.82136 -0.146403 6.87181 0.439297 6.28602L1.71176 5.01258V3.21278C1.71176 2.38435 2.38333 1.71278 3.21176 1.71278H5.01156L6.285 0.43934Z",fill:"url(#dclVerifiedGrad)"}),u.jsx("path",{d:"M4.6 7.5l1.9 1.9 3.6-3.9",stroke:"#FCFCFC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("defs",{children:u.jsxs("linearGradient",{id:"dclVerifiedGrad",x1:"7.35",y1:"0",x2:"7.35",y2:"14.69",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{stopColor:"#FF2D55"}),u.jsx("stop",{offset:"1",stopColor:"#C640CD"})]})})]})]})}),u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),o&&e.mode==="manage-link"&&e.manageHref?u.jsxs("div",{className:"card__action",children:[u.jsx("div",{className:"card__chips"}),u.jsx("a",{className:"card__add-round",href:e.manageHref,target:"_blank",rel:"noopener noreferrer","aria-label":oe("assetCard.manage"),onClick:P=>P.stopPropagation(),children:u.jsx(ct,{name:"pen"})}),u.jsxs("a",{className:"card__cart","data-testid":"card-manage",href:e.manageHref,target:"_blank",rel:"noopener noreferrer",onClick:P=>P.stopPropagation(),children:[u.jsx(ct,{name:"pen",size:20}),oe("assetCard.manage")]})]}):null]}):o&&e.mode==="manage-link"?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsxs("div",{className:"card__desc",children:[u.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?u.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):u.jsx("div",{className:"card__creator",children:" "})]}),t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),u.jsxs("div",{className:"card__action",children:[u.jsxs("div",{className:"card__chips",children:[u.jsx("span",{className:"chip chip--rarity",style:{background:d2(t.rarity),color:f2(t.rarity)},title:h2(t.rarity),children:t.rarity}),ae?u.jsx("span",{className:"chip chip--icon",children:u.jsx(ct,{name:ae})}):null]}),u.jsx("button",{className:"card__add-round",onClick:q,"aria-label":oe("assetCard.manage"),children:u.jsx(ct,{name:"pen"})}),u.jsxs("button",{className:"card__cart","data-testid":"card-manage",onClick:q,children:[u.jsx(ct,{name:"pen",size:20}),oe("assetCard.manage")]})]})]}):n?u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsx("div",{className:"card__name",title:t.name,children:t.name})}),t.priceCredits>0?u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}):u.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:oe("assetCard.notForSale")})]}),u.jsxs("span",{className:"card__view","data-testid":"card-view","aria-hidden":!0,children:[u.jsx(ct,{name:"eye",size:20}),oe("assetCard.view")]})]}):u.jsxs("div",{className:"card__body",children:[u.jsxs("div",{className:"card__top",children:[u.jsx("div",{className:"card__desc",children:u.jsx("div",{className:"card__name",title:t.name,children:t.name})}),r&&e.mode==="market"?u.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[u.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),u.jsx(Qt,{className:"card__diamond"}),e.marketPriceCredits==null?"—":Vr(e.marketPriceCredits)]}):N?u.jsxs("div",{className:"card__price card__price--sale",children:[u.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]}),u.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:nn(t.compareAtCredits),children:[u.jsx(Qt,{className:"card__diamond card__diamond--was"}),Vr(t.compareAtCredits)]}),u.jsx(N6,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):u.jsxs("div",{className:"card__price",title:nn(t.priceCredits),children:[u.jsx(Qt,{className:"card__diamond"}),Vr(t.priceCredits)]})]}),u.jsxs("div",{className:"card__action",children:[u.jsxs("div",{className:"card__chips",children:[r?u.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:oe("assetCard.marketPrice")}):null,u.jsx("span",{className:"chip chip--rarity",style:{background:d2(t.rarity),color:f2(t.rarity)},title:h2(t.rarity),children:t.rarity}),t.isSmart?u.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[u.jsx(ct,{name:"smart",size:13}),oe("assetCard.smart")]}):null,ae?u.jsx("span",{className:"chip chip--icon",children:u.jsx(ct,{name:ae})}):null,J?u.jsx("span",{className:"chip chip--icon",children:u.jsx(ct,{name:J})}):null]}),r&&e.mode==="market"?u.jsx("button",{className:"card__add-round",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?oe("assetCard.unavailable"):oe("assetCard.buyNow"),children:u.jsx(ct,{name:"plus"})}):u.jsx("button",{className:`card__add-round${!_&&p?" is-in":""}`,onClick:P=>{if(_)return q(P);P.stopPropagation(),m(t,"grid")},disabled:!_&&p,"aria-label":oe(_?"assetCard.manage":p?"assetCard.inCart":"assetCard.addToCart"),children:u.jsx(ct,{name:_?"pen":"plus"})}),r&&e.mode==="market"?u.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:P=>{P.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?oe("assetCard.unavailable"):oe("assetCard.buyNow")}):u.jsxs("button",{className:`card__cart${!_&&p?" is-in":""}`,"data-testid":"card-cart",onClick:P=>{if(_)return q(P);P.stopPropagation(),m(t,"grid")},disabled:!_&&p,children:[u.jsx(ct,{name:_?"pen":"cart-solid"}),oe(_?"assetCard.manage":p?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const j6=8,L6=8,M6=12;function B6(){const t=tl(a=>a.followed).slice(0,j6),{data:r=[],isLoading:n}=Wr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const a=await Promise.all(t.map(o=>g_(o,{first:L6}).then(s=>s.items).catch(()=>[])));return F6(a).filter(o=>o.priceCredits>0).slice(0,M6)}});return t.length===0||!n&&r.length===0?null:u.jsxs("section",{className:"row",children:[u.jsx("div",{className:"row__head",children:u.jsx("h2",{className:"row__title",children:oe("followedCreators.title")})}),u.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((a,o)=>u.jsx("div",{className:"card card--skeleton"},o)):r.map(a=>u.jsx(Vl,{item:a},a.id))})]})}function F6(e){const t=[],r=new Set,n=e.reduce((a,o)=>Math.max(a,o.length),0);for(let a=0;a<n;a++)for(const o of e){const s=o[a];s&&!r.has(s.id)&&(r.add(s.id),t.push(s))}return t}const Ph="shop:recently-viewed",Oh=12;function jh(){try{const e=localStorage.getItem(Ph);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,Oh):[]}catch{return[]}}function m9(e){if(e!=null&&e.id)try{const t=[e,...jh().filter(r=>r.id!==e.id)].slice(0,Oh);localStorage.setItem(Ph,JSON.stringify(t))}catch{}}function $6({excludeId:e}){const t=ne.useMemo(()=>jh().filter(r=>r.id!==e),[e]);return t.length===0?null:u.jsxs("section",{className:"row",children:[u.jsx("div",{className:"row__head",children:u.jsx("h2",{className:"row__title",children:oe("recentlyViewed.title")})}),u.jsx("div",{className:"row__track",children:t.map(r=>u.jsx(Vl,{item:r},r.id))})]})}async function D6(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),a=await fetch(`${He.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!a.ok)throw new Error(`fetchTopCreators ${a.status}`);return(await a.json()).data??[]}const S2=10;function q6(e){try{return Math.floor(Number(U2(e))).toLocaleString("en-US")}catch{return"0"}}function U6({rank:e,creator:t}){return u.jsxs("tr",{className:"ov-creators__row",children:[u.jsx("td",{className:"ov-creators__rank-cell",children:u.jsx("span",{className:"ov-creators__rank",children:e})}),u.jsx("td",{className:"ov-creators__creator-cell",children:u.jsx(Xf,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),u.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),u.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),u.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[u.jsx(Qt,{className:"ov-creators__coin"}),q6(t.earned)]})]})}function H6(){return u.jsxs("tr",{className:"ov-creators__row",children:[u.jsx("td",{className:"ov-creators__rank-cell",children:u.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),u.jsx("td",{className:"ov-creators__creator-cell",children:u.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})}),u.jsx("td",{className:"ov-creators__num",children:u.jsx("span",{className:"ov-creators__skeleton"})})]})}function V6(){const{data:e,isLoading:t,isError:r}=Wr({queryKey:["rankings","creators","week"],queryFn:()=>D6("week",S2)}),n=e??[];return r||!t&&n.length===0?null:u.jsxs("section",{className:"ov-creators",children:[u.jsxs("div",{className:"ov-creators__head",children:[u.jsx("h2",{className:"ov-creators__title",children:oe("weekTopCreators.title")}),u.jsx("span",{className:"ov-creators__period",children:oe("weekTopCreators.thisWeek")})]}),u.jsx("div",{className:"ov-creators__scroll",children:u.jsxs("table",{className:"ov-creators__table",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"ov-creators__header",children:[u.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:oe("weekTopCreators.rank")}),u.jsx("th",{className:"ov-creators__th",scope:"col",children:oe("weekTopCreators.creator")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.collections")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.sales")}),u.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:oe("weekTopCreators.volume")})]})}),u.jsx("tbody",{children:t?Array.from({length:S2}).map((a,o)=>u.jsx(H6,{},o)):n.map((a,o)=>u.jsx(U6,{rank:o+1,creator:a},a.id))})]})})]})}const Lh="Decentraland Shop",z6=`${Lh} | Wearables & Emotes for Your Avatar`,G6="Discover wearables and emotes to make your Decentraland avatar your own. Explore thousands of unique looks and find your style in seconds.";function xr(e,t,r){let n=document.head.querySelector(`meta[${e}="${t}"]`);n||(n=document.createElement("meta"),n.setAttribute(e,t),document.head.appendChild(n)),n.setAttribute("content",r)}function W6(e,t){let r=document.head.querySelector(`link[rel="${e}"]`);r||(r=document.createElement("link"),r.setAttribute("rel",e),document.head.appendChild(r)),r.setAttribute("href",t)}function Z6(e={}){const{title:t,description:r=G6,image:n,type:a="website",noindex:o=!1,canonicalPath:s}=e;ne.useEffect(()=>{if(typeof window>"u")return;const d=window.location.origin,f=d+(s??window.location.pathname),h=n??`${d}https://cdn.decentraland.org/@dcl/shop/0.1.0-30027061548.commit-0bc806a/og-image.png`,m=t?`${t} | ${Lh}`:z6;document.title=m,xr("name","description",r),xr("name","robots",o?"noindex,nofollow":"index,follow"),W6("canonical",f),xr("property","og:title",m),xr("property","og:description",r),xr("property","og:url",f),xr("property","og:image",h),xr("property","og:type",a),xr("name","twitter:title",m),xr("name","twitter:description",r),xr("name","twitter:image",h)},[t,r,n,a,o,s])}const T2="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%2059.7045%2058.9085'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Slider%20Arrows'%3e%3cpath%20id='Oval'%20opacity='0.8'%20d='M29.8522%201.59244C45.437%201.59244%2058.1117%2014.0437%2058.112%2029.4538C58.112%2044.8641%2045.4372%2057.3161%2029.8522%2057.3161C14.2672%2057.3161%201.59244%2044.8641%201.59244%2029.4538C1.5927%2014.0437%2014.2674%201.59247%2029.8522%201.59244Z'%20fill='var(--fill-0,%20white)'%20stroke='var(--stroke-0,%20white)'%20stroke-width='3.18424'/%3e%3cg%20id='bounds'%3e%3c/g%3e%3cpath%20id='icon'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.2842%2029.0164L25.652%2043.0901C24.8014%2043.9083%2023.4222%2043.9083%2022.5716%2043.0901C21.721%2042.2719%2021.721%2040.9454%2022.5716%2040.1272L34.1233%2029.0164L22.5716%2017.9056C21.721%2017.0874%2021.721%2015.7609%2022.5716%2014.9427C23.4222%2014.1245%2024.8014%2014.1245%2025.652%2014.9427L40.2842%2029.0164Z'%20fill='var(--fill-0,%20black)'/%3e%3c/g%3e%3c/svg%3e",K6="https://cdn.decentraland.org/@dcl/shop/0.1.0-30027061548.commit-0bc806a/assets/hero-fashion-week-B9LOzkde.png",Y6="https://cdn.decentraland.org/@dcl/shop/0.1.0-30027061548.commit-0bc806a/assets/promo-best-rated-emotes-C6kNvB-a.png",Q6="https://cdn.decentraland.org/@dcl/shop/0.1.0-30027061548.commit-0bc806a/assets/promo-week-selected-outfits-BBmkZYZx.png",J6=wt(Qs)`
|
|
281
|
+
margin-top: 10px;
|
|
282
|
+
`,X6=wt(Qs)`
|
|
283
|
+
height: 40px;
|
|
284
|
+
padding: 0 16px;
|
|
285
|
+
display: inline-flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
`,A2=6;function k2({title:e,items:t,loading:r}){const n=ne.useRef(null),[a,o]=ne.useState(1),[s,d]=ne.useState(0),f=r?A2:t.length,h=ne.useCallback(()=>{const b=n.current;if(!b)return;const _=b.clientWidth;if(_<=0)return;const T=Math.max(1,Math.ceil((b.scrollWidth-_)/_)+1);o(T),d(Math.min(T-1,Math.round(b.scrollLeft/_)));const y=b.querySelector(".card__media"),I=b.parentElement;I&&I.style.setProperty("--ov-arrow-top",`${12+(y?y.offsetHeight:150)/2}px`)},[]);ne.useEffect(()=>{h();const b=n.current;if(!b)return;const _=()=>d(Math.round(b.scrollLeft/Math.max(1,b.clientWidth)));return b.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",h),()=>{b.removeEventListener("scroll",_),window.removeEventListener("resize",h)}},[h,f]);const m=ne.useCallback(b=>{const _=n.current;if(!_)return;const T=Math.max(0,Math.min(a-1,b));_.scrollTo({left:T*_.clientWidth,behavior:"smooth"})},[a]),p=!r&&a>1;return u.jsxs("section",{className:"row ov-carousel",children:[u.jsxs("div",{className:"row__head",children:[u.jsx("h2",{className:"row__title",children:e}),u.jsxs(Sn,{className:"row__viewall",to:"/assets",children:[oe("overview.viewAll")," ",u.jsx(ct,{name:"view-all-arrow",size:18})]})]}),u.jsxs("div",{className:"ov-carousel__viewport",children:[p?u.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>m(s-1),disabled:s<=0,"aria-label":oe("overview.previous"),children:u.jsx("img",{src:T2,alt:"","aria-hidden":!0})}):null,u.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:A2}).map((b,_)=>u.jsx("div",{className:"card card--skeleton"},_)):t.map(b=>u.jsx(Vl,{item:b},b.id))}),p?u.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>m(s+1),disabled:s>=a-1,"aria-label":oe("overview.next"),children:u.jsx("img",{src:T2,alt:"","aria-hidden":!0})}):null]}),p?u.jsx("div",{className:"ov-carousel__dots","aria-label":oe("overview.carouselPages",{title:e}),children:Array.from({length:a}).map((b,_)=>u.jsx("button",{className:`ov-dot${_===s?" is-active":""}`,onClick:()=>m(_),"aria-label":oe("overview.goToPage",{page:_+1}),"aria-current":_===s?"true":void 0},_))}):null]})}function e8(){Z6({});const{data:e,isLoading:t}=Wr({queryKey:["overview-listings"],queryFn:()=>wh({first:24})}),r=(e==null?void 0:e.items)??[];return u.jsxs("div",{className:"overview",children:[u.jsxs("section",{className:"ov-hero",children:[u.jsx("img",{className:"ov-hero__bg",src:K6,alt:"","aria-hidden":!0}),u.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),u.jsxs("div",{className:"ov-hero__inner",children:[u.jsx("h1",{className:"ov-hero__title",children:oe("overview.heroTitle")}),u.jsx(X6,{as:Sn,to:"/assets",variant:"purple",children:oe("overview.exploreCollection")})]})]}),t||r.length>0?u.jsxs(u.Fragment,{children:[u.jsx(k2,{title:oe("overview.featuredProducts"),items:r.slice(0,12),loading:t}),u.jsxs("section",{className:"ov-promos",children:[u.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":oe("overview.promoEmotesAria"),children:u.jsx("img",{src:Y6,alt:oe("overview.promoEmotesAlt")})}),u.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":oe("overview.promoOutfitsAria"),children:u.jsx("img",{src:Q6,alt:oe("overview.promoOutfitsAlt")})})]}),r.length>12?u.jsx(k2,{title:oe("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):u.jsxs("div",{className:"overview__empty",children:[u.jsx("p",{className:"overview__empty-title",children:oe("overview.emptyTitle")}),u.jsx("p",{className:"muted",children:oe("overview.emptyBody")}),u.jsx(J6,{as:Sn,to:"/assets",variant:"purple",children:oe("notFound.cta")})]}),u.jsx($6,{}),u.jsx(B6,{}),u.jsx(V6,{})]})}const t8={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/activity":"activity","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success","/authorizations":"authorizations"},r8=ne.lazy(()=>_t(()=>import("./Assets-pZ95iGr4.js"),__vite__mapDeps([23,1,24,12,2,7,6,25,26,27,28,29,30,31,32,33,34,13,35,36,37,38,39,40,8])).then(e=>({default:e.Assets}))),n8=ne.lazy(()=>_t(()=>import("./ItemDetail-evlg6cKI.js"),__vite__mapDeps([41,1,2,42,43,44,33,34,12,13,7,6,35,45,37,38,36,46,47,40,18,32,24,25,30,28,8,48])).then(e=>({default:e.ItemDetail}))),a8=ne.lazy(()=>_t(()=>import("./Collection-DDSnUzQQ.js"),__vite__mapDeps([49,1,38,50,51,52,2,43,27,28,29,31,39,6,7,8,53])).then(e=>({default:e.Collection}))),o8=ne.lazy(()=>_t(()=>import("./Creator-D7vQevDn.js"),__vite__mapDeps([54,1,50,51,52,2,43,27,28,29,31,39,38,6,7,8,55])).then(e=>({default:e.Creator}))),s8=ne.lazy(()=>_t(()=>import("./StoreSettings-6hNLQCtE.js"),__vite__mapDeps([56,1,52,2,38,6,7,8,57])).then(e=>({default:e.StoreSettings}))),i8=ne.lazy(()=>_t(()=>import("./MyAssets-CJ2H2U_U.js"),__vite__mapDeps([58,1,59,33,2,34,12,13,7,6,35,24,45,37,38,27,28,29,31,26,30,39,8])).then(e=>({default:e.MyAssets}))),c8=ne.lazy(()=>_t(()=>import("./MyFavorites-k4qOTRob.js"),__vite__mapDeps([60,1,31,2,6,7,8])).then(e=>({default:e.MyFavorites}))),l8=ne.lazy(()=>_t(()=>import("./Activity-BCuWHO91.js"),__vite__mapDeps([61,1,24,12,2,7,6,25,31,39,8])).then(e=>({default:e.Activity}))),u8=ne.lazy(()=>_t(()=>import("./ImportListings-6wte21rD.js"),__vite__mapDeps([62,1,59,33,2,34,12,13,7,6,35,24,8,63])).then(e=>({default:e.ImportListings}))),d8=ne.lazy(()=>_t(()=>import("./Cart-bD6xEAcM.js"),__vite__mapDeps([64,1,42,43,44,33,2,34,12,13,7,6,35,36,65,46,40,37,38,8,66])).then(e=>({default:e.Cart}))),f8=ne.lazy(()=>_t(()=>import("./Authorizations-D6SkMmO6.js"),__vite__mapDeps([67,1,34,12,2,13,7,6,37,8])).then(e=>({default:e.Authorizations}))),h8=ne.lazy(()=>_t(()=>import("./GetCredits-Bb1FBUnx.js"),__vite__mapDeps([68,1,47,65,40,46,18,2,6,7,8])).then(e=>({default:e.GetCredits}))),m8=ne.lazy(()=>_t(()=>import("./Success-Bry0ia79.js"),__vite__mapDeps([69,1,36,34,12,2,13,7,6,35,8])).then(e=>({default:e.Success}))),p8=ne.lazy(()=>_t(()=>import("./NotFound-aR1LWKr4.js"),__vite__mapDeps([70,1,2,6,7,8])).then(e=>({default:e.NotFound})));function g8(){return u.jsx("div",{className:"page-loading","aria-busy":"true",children:u.jsx("span",{className:"spinner","aria-hidden":!0})})}const y8=wt(Qs)`
|
|
288
|
+
margin-top: 10px;
|
|
289
|
+
`;function v8(){return u.jsxs("div",{className:"overview__empty",children:[u.jsx("p",{className:"overview__empty-title",children:oe("app.crash.title")}),u.jsx("p",{className:"muted",children:oe("app.crash.body")}),u.jsx(y8,{variant:"purple",onClick:()=>window.location.reload(),children:oe("app.crash.reload")})]})}function b8(){x6();const e=q2();return ne.useEffect(()=>{av()},[]),ne.useEffect(()=>{const t=e.pathname,r=t8[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");ev(r)},[e.pathname]),u.jsxs(u.Fragment,{children:[u.jsx(D_,{}),u.jsx(E6,{}),u.jsx(u6,{}),u.jsx(N_,{}),u.jsx("main",{className:"page",children:u.jsx(hu,{fallback:u.jsx(v8,{}),children:u.jsx(ne.Suspense,{fallback:u.jsx(g8,{}),children:u.jsxs(Xh,{children:[u.jsx(Et,{path:"/",element:u.jsx(li,{to:"/overview",replace:!0})}),u.jsx(Et,{path:"/overview",element:u.jsx(e8,{})}),u.jsx(Et,{path:"/assets",element:u.jsx(r8,{})}),u.jsx(Et,{path:"/market",element:u.jsx(li,{to:"/assets",replace:!0})}),u.jsx(Et,{path:"/item/:contractAddress/:tokenId",element:u.jsx(n8,{})}),u.jsx(Et,{path:"/collection/:contractAddress",element:u.jsx(a8,{})}),u.jsx(Et,{path:"/assets/creator/:address",element:u.jsx(o8,{})}),u.jsx(Et,{path:"/store-settings",element:u.jsx(s8,{})}),u.jsx(Et,{path:"/my-assets",element:u.jsx(i8,{})}),u.jsx(Et,{path:"/my-favorites",element:u.jsx(c8,{})}),u.jsx(Et,{path:"/activity",element:u.jsx(l8,{})}),u.jsx(Et,{path:"/my-purchases",element:u.jsx(li,{to:"/activity",replace:!0})}),u.jsx(Et,{path:"/import",element:u.jsx(u8,{})}),u.jsx(Et,{path:"/cart",element:u.jsx(d8,{})}),u.jsx(Et,{path:"/authorizations",element:u.jsx(f8,{})}),u.jsx(Et,{path:"/credits",element:u.jsx(h8,{})}),u.jsx(Et,{path:"/success",element:u.jsx(m8,{})}),u.jsx(Et,{path:"*",element:u.jsx(p8,{})})]})})})}),u.jsx(hu,{fallback:u.jsx(u.Fragment,{}),children:u.jsx(p6,{})})]})}function w8({children:e}){const t=ul(r=>r.locale);return aw(t),u.jsx(l3,{value:jl(t),children:e},t)}dv();const _8=new D1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),C8=["localhost","127.0.0.1"].includes(window.location.hostname),E8=C8?void 0:"/shop";e1.createRoot(document.getElementById("root")).render(u.jsx(D2.StrictMode,{children:u.jsx(U1,{client:_8,children:u.jsx(w8,{children:u.jsx(t1,{basename:E8,children:u.jsx(b8,{})})})})}));export{Cl as $,Vl as A,Qs as B,Qt as C,Fg as D,x0 as E,Le as F,Wf as G,e9 as H,ct as I,f9 as J,Z8 as K,W8 as L,Fs as M,vf as N,ch as O,Zw as P,e5 as Q,gn as R,Ye as S,H4 as T,Qw as U,pn as V,zw as W,G4 as X,xl as Y,Zp as Z,_t as _,Yv as a,j8 as a$,Os as a0,hf as a1,ao as a2,wl as a3,gf as a4,_l as a5,gh as a6,O1 as a7,N8 as a8,R8 as a9,cl as aA,sl as aB,Ka as aC,Kw as aD,S5 as aE,dh as aF,yh as aG,Pr as aH,a5 as aI,V8 as aJ,B4 as aK,M4 as aL,p4 as aM,R4 as aN,Ys as aO,Rh as aP,ll as aQ,Ih as aR,p2 as aS,Y8 as aT,r9 as aU,Q8 as aV,O8 as aW,iw as aX,Fd as aY,ow as aZ,P6 as a_,X1 as aa,ui as ab,D8 as ac,qt as ad,S6 as ae,c9 as af,F8 as ag,s9 as ah,i9 as ai,Wa as aj,o9 as ak,L8 as al,wh as am,Yg as an,Nr as ao,so as ap,p_ as aq,d9 as ar,T2 as as,b_ as at,w_ as au,tl as av,u9 as aw,J8 as ax,l9 as ay,A4 as az,q1 as b,m9 as b0,T6 as b1,A6 as b2,h2 as b3,f2 as b4,d2 as b5,I6 as b6,N6 as b7,K8 as b8,G8 as b9,t_ as bA,i5 as bB,l4 as bC,ih as bD,c_ as ba,t9 as bb,n9 as bc,Wv as bd,s5 as be,l5 as bf,Iw as bg,sh as bh,H8 as bi,il as bj,fo as bk,Ws as bl,oo as bm,Sl as bn,Ow as bo,Ww as bp,Pw as bq,ah as br,oh as bs,Nw as bt,Vw as bu,d5 as bv,U8 as bw,z4 as bx,V4 as by,Ll as bz,$8 as c,Qv as d,va as e,q8 as f,Zs as g,B8 as h,h9 as i,ur as j,rv as k,M8 as l,Z6 as m,Ss as n,Wr as o,He as p,a9 as q,z8 as r,wt as s,oe as t,Fn as u,k_ as v,Xf as w,Vr as x,X8 as y,U4 as z};
|