@dcl/shop 0.1.0-29941568358.commit-de47e56 → 0.1.0-29942650568.commit-3cdb6da
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/{AnimatedBackground-cMeJUDnS.js → AnimatedBackground-CysLhvvU.js} +3 -3
- package/assets/{Assets-D4bmQvg2.js → Assets-DsvJ5f0v.js} +15 -15
- package/assets/{Assets.styles-JIZQe0rQ.js → Assets.styles-CA7lhkqC.js} +28 -29
- package/assets/{Authorizations-Bxum5Ckz.js → Authorizations-vnz0r2Ax.js} +3 -3
- package/assets/Cart-CTQAeaCb.js +3 -0
- package/assets/{CircularProgress-DVvK_YYJ.js → CircularProgress-BoWkcKSM.js} +5 -5
- package/assets/{Collection-CCeBHPqN.js → Collection-DFg8H4cI.js} +1 -1
- package/assets/{CollectionCarousel-CfEwak3h.js → CollectionCarousel-BgmGp9gP.js} +1 -1
- package/assets/{ConstantsUtil-CPwpahR3.js → ConstantsUtil-DO6FyoSW.js} +1 -1
- package/assets/{ContentClient-DWUTshFt.js → ContentClient-Xp597FfN.js} +1 -1
- package/assets/Creator-DpJL7xsg.js +1 -0
- package/assets/{CssVarsProvider-CaTQjQty.js → CssVarsProvider-CVkDPUQi.js} +3 -3
- package/assets/{DeploymentBuilder-BeZK0qfR.js → DeploymentBuilder-Ba-Y42wz.js} +1 -1
- package/assets/{ErrorNotice-DDr3KjIH.js → ErrorNotice-BDH9xoG4.js} +1 -1
- package/assets/{ExchangeController-ZePEIh3m.js → ExchangeController-XYLG0Onl.js} +1 -1
- package/assets/{GetCredits-BcaMNIRG.js → GetCredits-C41Akzju.js} +1 -1
- package/assets/{HelpersUtil-CRTK_83W.js → HelpersUtil-CXmyL-9f.js} +1 -1
- package/assets/{ImportListings-9YfzHduB.js → ImportListings-DL4qvnkm.js} +1 -1
- package/assets/ItemDetail-8kxMVjol.js +78 -0
- package/assets/{LoadMore-BK9c312B.js → LoadMore-DwH_uJJ9.js} +1 -1
- package/assets/{MarketCheckout-BxM5rUvM.js → MarketCheckout-0NCiBi_9.js} +2 -2
- package/assets/MyAssets-ChdfSyve.js +258 -0
- package/assets/{MyFavorites-DWjt5m8Z.js → MyFavorites-BAgv7K26.js} +1 -1
- package/assets/{MyPurchases--MUfwO_U.js → MyPurchases-DlfJ7xtX.js} +4 -4
- package/assets/{NetworkUtil-CM7JZPbs.js → NetworkUtil-BGlQiKvg.js} +1 -1
- package/assets/{NotFound-DVZ9W5Hr.js → NotFound-uK-Ostnl.js} +1 -1
- package/assets/PrimaryListModal-Bm7Lx1a1.js +1 -0
- package/assets/{StoreSettings-CpeZPPkb.js → StoreSettings-jeamoHJO.js} +6 -6
- package/assets/Success-IAIc5xBC.js +4 -0
- package/assets/{SwapController-BH4rWo6P.js → SwapController-B81AJRRn.js} +1 -1
- package/assets/{Tooltip-zazDSBbm.js → Tooltip-CYItdKnL.js} +1 -1
- package/assets/{TradeService-IuqYxWb8.js → TradeService-BxBTy4_C.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CFGfbV9-.js → W3MFrameProviderSingleton-WHc1zToo.js} +3 -3
- package/assets/{WebCryptoP256-ByM1YcL4.js → WebCryptoP256-BQQeByzz.js} +1 -1
- package/assets/{authorizations-CsduRV0X.js → authorizations-C600xDT9.js} +1 -1
- package/assets/{basic-BMJtBJ3f.js → basic-CaSER4PW.js} +1 -1
- package/assets/{biconomy-WqxLiteU.js → biconomy-nsDuvr1X.js} +1 -1
- package/assets/{browser-7Z6Tx7yC.js → browser-Cad_aDY9.js} +1 -1
- package/assets/{browser-ponyfill-C_hn4Jen.js → browser-ponyfill-CQ0GHmxr.js} +1 -1
- package/assets/browser-ponyfill-vZOvKb_B.js +1 -0
- package/assets/{buy-CN2rC9a0.js → buy-C5J6mAtx.js} +1 -1
- package/assets/{buy-gasless-iZXsoGZN.js → buy-gasless-Sy6Gurph.js} +1 -1
- package/assets/{cart-checkout-CLMqKMCz.js → cart-checkout-BwJruvi6.js} +1 -1
- package/assets/{categories-D7_Qudaw.js → categories-CQMvcQ_A.js} +5 -5
- package/assets/{ccip-DLXgNS3N.js → ccip-CVFd9-T6.js} +1 -1
- package/assets/{ccip-Be5Dn1Zo.js → ccip-C_DKTuDg.js} +1 -1
- package/assets/{chains-DOpzCPsr.js → chains-C1bwVnfj.js} +1 -1
- package/assets/collection-BButATLz.js +1 -0
- package/assets/{common-BO9A6Obt.js → common-yfho93wI.js} +1 -1
- package/assets/{controller-CDv5xjYs.js → controller-C4IlqRFi.js} +2 -2
- package/assets/{core-B1vdvz8J.js → core-Bsb1vtZ6.js} +4 -4
- package/assets/{custom-3-JWbHeB.js → custom-B2_bVLxh.js} +1 -1
- package/assets/{data-capture-B9u0j-_M.js → data-capture-CeCg7Ckv.js} +1 -1
- package/assets/{decimals-z4vOxece.js → decimals-B36bI5dA.js} +1 -1
- package/assets/decimals-BPDUTKfa.js +1 -0
- package/assets/{detectExtension-Cvy4AYwr.js → detectExtension-CKplVZ9K.js} +1 -1
- package/assets/{email-Bu0wLP5a.js → email-DGWqulOs.js} +1 -1
- package/assets/{embedded-wallet-DALUv36Z.js → embedded-wallet-BDA__pmu.js} +1 -1
- package/assets/emotion-styled.browser.esm-Of0yAmXP.js +1 -0
- package/assets/{engine-COZjF6GN.js → engine-COT4y3N6.js} +1 -1
- package/assets/{errors-BuvqNt2H.js → errors-B2rT3Gvo.js} +1 -1
- package/assets/estimate-l1-fee-DSG403IA.js +1 -0
- package/assets/eth_estimateGas-BeErQaun.js +1 -0
- package/assets/{eth_getStorageAt-CqeWdstl.js → eth_getStorageAt-C0E8Vng5.js} +1 -1
- package/assets/eth_getTransactionCount-kFIWL36y.js +1 -0
- package/assets/{ethereum-C3MAoMFC.js → ethereum-C5kfwN9D.js} +1 -1
- package/assets/{ethers-Dpp9c5As.js → ethers-CLB2z3On.js} +1 -1
- package/assets/{execute-DVE3v1AF.js → execute-zpOqUNic.js} +2 -2
- package/assets/{extractIPFS-HvQvYdM-.js → extractIPFS-CsawLTu6.js} +1 -1
- package/assets/{features-CqkOcXXU.js → features-CMZ-QMXf.js} +1 -1
- package/assets/{fetchTokenMetadata-CZAPbDmS.js → fetchTokenMetadata-CZyR6DMv.js} +2 -2
- package/assets/{fortmatic-udOxQk4J.js → fortmatic-DwISA9k4.js} +1 -1
- package/assets/{get-bytecode-mfFuNYuc.js → get-bytecode-nwWHW248.js} +1 -1
- package/assets/get-ecosystem-wallet-info-Cll7wRD7.js +1 -0
- package/assets/{getBalance-BawNMn6h.js → getBalance-BlSTzNnh.js} +2 -2
- package/assets/{getInstalledModules-BNHlcIGs.js → getInstalledModules-fBSGgSis.js} +1 -1
- package/assets/{getNFT-BnfoPCmO.js → getNFT-bAbPTgKN.js} +2 -2
- package/assets/getNFT-yZahXefO.js +1 -0
- package/assets/{getOverlayAlpha-DAstUi74.js → getOverlayAlpha-CH1E19pc.js} +1 -1
- package/assets/{hashTypedData-CKhs32SE.js → hashTypedData-BjKHZJt2.js} +1 -1
- package/assets/{hashTypedData-Cb3dj8Vj.js → hashTypedData-CoI7qham.js} +1 -1
- package/assets/{import-D2QUSpyp.js → import-B-7LIWfg.js} +1 -1
- package/assets/{in-app-Dy6198Ub.js → in-app-DuAkMaop.js} +1 -1
- package/assets/{in-app-wallet-calls-Df8xMcoL.js → in-app-wallet-calls-VVaW7dWC.js} +1 -1
- package/assets/{index-DPTvpJzS.js → index-2LZVA_H9.js} +1 -1
- package/assets/{index-DgYBZU4A.js → index-B14E9dDt.js} +1 -1
- package/assets/{index-BhfJUYAQ.js → index-B2VkMi-_.js} +1 -1
- package/assets/{index-DIpMchso.js → index-B5bMVqc5.js} +1 -1
- package/assets/{index-CIfdS8Db.js → index-BC--wvbP.js} +1 -1
- package/assets/{index-B83hIo9e.js → index-BCa080Jk.js} +1 -1
- package/assets/{index-CRSMETpm.js → index-BEKwTyL9.js} +1 -1
- package/assets/{index-DPp2bhUs.js → index-BEL4KhCu.js} +1 -1
- package/assets/{index-B4Jw07i3.js → index-BSSPgvD1.js} +1 -1
- package/assets/{index-V1lpWoC-.js → index-BUzglYPe.js} +1 -1
- package/assets/{index-Cz1Suly9.js → index-BaDAgjcA.js} +1 -1
- package/assets/{index-Cnmgw5PF.js → index-BlnhiyW1.js} +1 -1
- package/assets/{index-DoxUiIoZ.js → index-BmwayVyG.js} +3 -3
- package/assets/{index-CjTTlJEo.js → index-Bn-EvtCB.js} +1 -1
- package/assets/{index-DP9-yadx.js → index-BsY45tr2.js} +1 -1
- package/assets/{index-CaOpng6c.js → index-Bwtbao7B.js} +1 -1
- package/assets/{index-BsI3EWcy.js → index-Bzlo07t4.js} +1 -1
- package/assets/{index-BcuysZka.js → index-C0_U8Amn.js} +1 -1
- package/assets/{index-B0SpA1TA.js → index-C0utXQ6l.js} +1 -1
- package/assets/{index-CEhWolV_.js → index-C2JrnQDe.js} +1 -1
- package/assets/{index-C2-W1jZ1.js → index-C4vAJ3fL.js} +1 -1
- package/assets/{index-4DPFDe86.js → index-CBhum_yI.js} +1 -1
- package/assets/index-CD_HpB6P.js +1 -0
- package/assets/{index-uTPBgRyq.js → index-CJs5gUNJ.js} +3 -3
- package/assets/{index-DIGUl9iX.js → index-CRZSv11U.js} +1 -1
- package/assets/{index-Tfh0IyJl.js → index-CUV4Rf3F.js} +1 -1
- package/assets/{index-CbxN7Krq.js → index-ChF-gCVV.js} +1 -1
- package/assets/{index-Ct22HWuE.js → index-CiH0W5Hj.js} +1 -1
- package/assets/{index-BIulqLQL.js → index-Cj8JMZ6F.js} +1 -1
- package/assets/{index-Cq0eRfqs.js → index-CjBPO58E.js} +1 -1
- package/assets/{index-D8me2ig5.js → index-CjnhvTx0.js} +1 -1
- package/assets/{index-Bi4zgWjQ.js → index-CkTptFnK.js} +2 -2
- package/assets/{index-rFCcyY0H.js → index-ClDUuLhd.js} +1 -1
- package/assets/{index-DJVoIGkn.js → index-CnFuk6fK.js} +1 -1
- package/assets/{index-BzcxFNUz.js → index-Cok_sFK3.js} +1 -1
- package/assets/{index-BpbWCyB4.js → index-CvIOskBU.js} +1 -1
- package/assets/{index-85kWMWjg.js → index-CyMsSal1.js} +2 -2
- package/assets/{index-C2ZtkYpB.js → index-CzOo8tvO.js} +2 -2
- package/assets/{index-BlBcCTXj.js → index-D2i7N7FD.js} +1 -1
- package/assets/{index-BItUV6PM.js → index-D4mGcEtB.js} +1 -1
- package/assets/{index-BRKyx7oU.js → index-D7J0TuHz.js} +2 -2
- package/assets/{index-FFhK2B90.js → index-DIZEbKwM.js} +1 -1
- package/assets/{index-D0xvd_Dp.js → index-DIusB22U.js} +2 -2
- package/assets/{index-BRNsIe3m.js → index-DJCp8uIp.js} +1 -1
- package/assets/index-DYDor-ZM.css +1 -0
- package/assets/{index-BCWp_6cV.js → index-DcAG03_T.js} +1 -1
- package/assets/{index-DtYBJNaS.js → index-DdAgdwh_.js} +1 -1
- package/assets/{index-CJRmkopy.js → index-DeO2Srep.js} +2 -2
- package/assets/{index-sN6H-jhd.js → index-Dfv7PJQh.js} +1 -1
- package/assets/{index-CQbgtHPx.js → index-DjQcD_Sm.js} +1 -1
- package/assets/{index-cjI3Jxw7.js → index-DmSOW0PY.js} +1 -1
- package/assets/{index-CXgtaw1w.js → index-Dp2XIou0.js} +1 -1
- package/assets/{index-BmlDboHr.js → index-DsttSp14.js} +3 -3
- package/assets/{index-CIHaBruC.js → index-DuM3vKAV.js} +1 -1
- package/assets/{index-DlvbN_Av.js → index-DvbuNJKq.js} +1 -1
- package/assets/{index-CNpvozfL.js → index-DxHb67V2.js} +1 -1
- package/assets/index-Q9d0V8TZ.js +289 -0
- package/assets/{index-DoaLV6gK.js → index-VrPb_Zz5.js} +1 -1
- package/assets/{index-D_Osq35D.js → index-Wkl8TG1w.js} +1 -1
- package/assets/{index-BPKqBTdV.js → index-ZjDtH0Hr.js} +1 -1
- package/assets/{index-cA2ARKGJ.js → index-gcnUvFrd.js} +1 -1
- package/assets/{index-CPs7rZSr.js → index-riVFlKIa.js} +1 -1
- package/assets/{index-HRvlJsjj.js → index-tAmGgcla.js} +1 -1
- package/assets/{index-kbFINusp.js → index-uk-CfnlL.js} +1 -1
- package/assets/{index-BDN6djsw.js → index-zvLgVYhW.js} +1 -1
- package/assets/{index.es-BqAU2pak.js → index.es-BzMx-nup.js} +4 -4
- package/assets/{index.es-DLc2fyYi.js → index.es-DAd9yxMt.js} +1 -1
- package/assets/{index.es-C7FJOZk9.js → index.es-fI5nPWfV.js} +1 -1
- package/assets/{linkAccount-Coo42zCf.js → linkAccount-DKoZKguc.js} +1 -1
- package/assets/{localBatchGatewayRequest-aE453fG9.js → localBatchGatewayRequest-BIFDJTSD.js} +1 -1
- package/assets/{mana-rate-CFrZfrxV.js → mana-rate-CC-yyhWK.js} +1 -1
- package/assets/{native-0dhyeu0o.js → native-t1vLKS11.js} +1 -1
- package/assets/{networks-DYw-qqg1.js → networks-DkdE2sZd.js} +1 -1
- package/assets/{onramp-Dv5XffT1.js → onramp-C_i59kJR.js} +1 -1
- package/assets/{openzeppelin-DY9zonpF.js → openzeppelin-BMNh5qua.js} +1 -1
- package/assets/{ownerOf-DZ5adWxQ.js → ownerOf-Cl_sRHvA.js} +1 -1
- package/assets/{parseNft-BoqFzz1w.js → parseNft-CW-hWGBI.js} +2 -2
- package/assets/{parseSignature-_8ci0C1c.js → parseSignature-C3GhRBL-.js} +3 -3
- package/assets/{parseSignature-DLqUl44D.js → parseSignature-NZopg6IG.js} +1 -1
- package/assets/{passkeys-9jKCllXJ.js → passkeys-DuQQbJhZ.js} +1 -1
- package/assets/{pay-with-exchange-q2w3TOV5.js → pay-with-exchange-DH6Kt6OD.js} +1 -1
- package/assets/{prepare-contract-call-C3igYCn_.js → prepare-contract-call-DmYPUPWz.js} +1 -1
- package/assets/{qr-overlay-kE0-Tb5Q.js → qr-overlay-u2BzHEzf.js} +3 -3
- package/assets/{react-BMZSDQJw.js → react-BrLDncxD.js} +1 -1
- package/assets/{receive-BlDcpWqy.js → receive-D2V6X2tA.js} +1 -1
- package/assets/{resolveImplementation-u5UN_seG.js → resolveImplementation-BsuIKFkz.js} +1 -1
- package/assets/{rpc-hzBSsIuq.js → rpc-BIhelmqB.js} +1 -1
- package/assets/{secp256k1-DogjvjtS.js → secp256k1-BHmvTUzO.js} +1 -1
- package/assets/{secp256k1-CIm5iUJu.js → secp256k1-BtgeD6jy.js} +1 -1
- package/assets/{secp256k1-D_XLFIAD.js → secp256k1-hNsXkUex.js} +1 -1
- package/assets/{send-33Lvo35v.js → send-DkPpjCf1.js} +1 -1
- package/assets/{send-batch-transaction-DxqLfBgo.js → send-batch-transaction-Bt9-Q0FO.js} +1 -1
- package/assets/{send-eip712-transaction-BWi3gkm3.js → send-eip712-transaction-CJ8Dr-eb.js} +2 -2
- package/assets/send-gasless-transaction-D5eQ85CY.js +2 -0
- package/assets/{send-transaction-DN1HyeTa.js → send-transaction-BK1KmPMR.js} +2 -2
- package/assets/{sendRawTransaction-DqtJOwfz.js → sendRawTransaction-Ddh_tSjE.js} +3 -3
- package/assets/{sentry-8SzFotJj.js → sentry-DYZXk5O5.js} +1 -1
- package/assets/{serializeTransaction-DOUpHqmp.js → serializeTransaction-f04zsBlb.js} +1 -1
- package/assets/{session-proposal-BtkIO7cP.js → session-proposal-r1mPrmCX.js} +1 -1
- package/assets/{session-request-lsymM3l6.js → session-request-Cfr7jp2h.js} +2 -2
- package/assets/{sha256-CDuVPJMW.js → sha256-DM_yyL1v.js} +1 -1
- package/assets/{signing-Bskb_x4I.js → signing-C-mKTJFW.js} +3 -3
- package/assets/{socials-BrDjbXdD.js → socials-pmAt6WyL.js} +1 -1
- package/assets/{swaps-BcWPrBSV.js → swaps-XKJYQXAz.js} +1 -1
- package/assets/{thirdweb-Cpf8EN89.js → thirdweb-B_kKfwse.js} +3 -3
- package/assets/{to-serializable-transaction-gyjNAfk6.js → to-serializable-transaction-rhTmQPEU.js} +2 -2
- package/assets/{totalSupply-qMyfSB-2.js → totalSupply-DKYveUeg.js} +1 -1
- package/assets/{trade-encoding-vTSEXgN1.js → trade-encoding-CaZYjVNs.js} +1 -1
- package/assets/{transaction-DiMmwD2W.js → transaction-HL8b44XJ.js} +1 -1
- package/assets/{transactionReceipt-Bum6hzjL.js → transactionReceipt-BcU054L-.js} +1 -1
- package/assets/{transactions-D-Z-vxC7.js → transactions-lrp4i700.js} +1 -1
- package/assets/useCreditPacks-Be9cG5vr.js +1 -0
- package/assets/{useInfiniteGrid-COXciuKu.js → useInfiniteGrid-8c-8xSTi.js} +1 -1
- package/assets/{useStore-cTXMZhwG.js → useStore-Ccbed9Z-.js} +2 -2
- package/assets/useTheme-7-Mr4FFJ.js +1 -0
- package/assets/useTheme-C3YHg0O0.js +1 -0
- package/assets/{utils-DLyVQGg1.js → utils-5mrprTVL.js} +1 -1
- package/assets/{verifyHash-DOsO5RNA.js → verifyHash-z4q1c5J1.js} +1 -1
- package/assets/{w3m-modal-oBw-UuhI.js → w3m-modal-2GWsHPDh.js} +1 -1
- package/assets/{w3m-modal-D1Pu_W_3.js → w3m-modal-DUSXSzQv.js} +1 -1
- package/assets/{wait-for-tx-receipt-BYt5Gcy_.js → wait-for-tx-receipt-CAc2Bmoi.js} +1 -1
- package/assets/{wallets-uu9PjeR0.js → wallets-BD_QGCV9.js} +5 -5
- package/assets/{web-connector-Vwf5Urnw.js → web-connector-Da5xZh52.js} +3 -3
- package/assets/{writeContract-iaip-T2H.js → writeContract-zNHMPW7R.js} +1 -1
- package/assets/{zora-sepolia-sSAsjV_j.js → zora-sepolia-Bef01XwU.js} +1 -1
- package/assets/{zoraTestnet-EJHbKpn0.js → zoraTestnet-Csb8JMNL.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/Cart-pFVN5ROM.js +0 -3
- package/assets/Creator-DyLgE_Lq.js +0 -1
- package/assets/ItemDetail-BSqp8w-l.js +0 -78
- package/assets/MyAssets-BA5zCiVR.js +0 -258
- package/assets/PrimaryListModal-CQHoY5iG.js +0 -1
- package/assets/Success-CxrAGNmd.js +0 -98
- package/assets/browser-ponyfill-iWQHRc9C.js +0 -1
- package/assets/collection-DbmjhyjW.js +0 -1
- package/assets/decimals-8h3d0d0Q.js +0 -1
- package/assets/emotion-styled.browser.esm-rI_2ZiJm.js +0 -1
- package/assets/estimate-l1-fee-y9SYh7nZ.js +0 -1
- package/assets/eth_estimateGas-BhQqpdnq.js +0 -1
- package/assets/eth_getTransactionCount-Ca9PbmYY.js +0 -1
- package/assets/get-ecosystem-wallet-info-CSMzgHAT.js +0 -1
- package/assets/getNFT-yjjewJwo.js +0 -1
- package/assets/index-BA2L6eSl.css +0 -1
- package/assets/index-BsYYLNpm.js +0 -1
- package/assets/index-V0hMC6mZ.js +0 -289
- package/assets/send-gasless-transaction-CC-pEfDw.js +0 -2
- package/assets/useCreditPacks-BJp5mEnq.js +0 -1
- package/assets/useTheme-Cv3anIxV.js +0 -1
- package/assets/useTheme-DmdtRbZb.js +0 -1
package/assets/index-V0hMC6mZ.js
DELETED
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B83hIo9e.js","assets/react-BMZSDQJw.js","assets/dcl-schemas-BICTSpB5.js","assets/index-DIGUl9iX.js","assets/emotion-styled.browser.esm-rI_2ZiJm.js","assets/colors-LINLm1ux.js","assets/sentry-8SzFotJj.js","assets/ethers-Dpp9c5As.js","assets/intl-CBcMB1D2.js","assets/index-BRKyx7oU.js","assets/events-DQ172AOg.js","assets/TradeService-IuqYxWb8.js","assets/index-HN6Rk25C.js","assets/index-Tfh0IyJl.js","assets/index-Cq0eRfqs.js","assets/index-CJRmkopy.js","assets/useTheme-DmdtRbZb.js","assets/CircularProgress-DVvK_YYJ.js","assets/useTheme-Cv3anIxV.js","assets/getOverlayAlpha-DAstUi74.js","assets/AnimatedBackground-cMeJUDnS.js","assets/AnimatedBackground-CiurwFBv.css","assets/Assets-D4bmQvg2.js","assets/mana-rate-CFrZfrxV.js","assets/MarketCheckout-BxM5rUvM.js","assets/buy-CN2rC9a0.js","assets/authorizations-CsduRV0X.js","assets/trade-encoding-vTSEXgN1.js","assets/buy-gasless-iZXsoGZN.js","assets/errors-BuvqNt2H.js","assets/ErrorNotice-DDr3KjIH.js","assets/Assets.styles-JIZQe0rQ.js","assets/categories-D7_Qudaw.js","assets/emotion-CSxEP8yM.js","assets/categories-_8oO8Yih.css","assets/Tooltip-zazDSBbm.js","assets/LoadMore-BK9c312B.js","assets/useInfiniteGrid-COXciuKu.js","assets/loader-logo-BzY9EKdC.js","assets/ItemDetail-BSqp8w-l.js","assets/PrimaryListModal-CQHoY5iG.js","assets/useCreditPacks-BJp5mEnq.js","assets/resume-buy-Bf0zIH7y.js","assets/address-DrURAr9O.js","assets/CollectionCarousel-CfEwak3h.js","assets/CollectionCarousel-BbM25ExM.css","assets/ItemDetail-BiAHzfHh.css","assets/Collection-CCeBHPqN.js","assets/collection-DbmjhyjW.js","assets/collection-CrgnzsVL.css","assets/useStore-cTXMZhwG.js","assets/Collection-Dpog3TvS.css","assets/Creator-DyLgE_Lq.js","assets/Creator-Cpx_caba.css","assets/StoreSettings-CpeZPPkb.js","assets/StoreSettings-Bk5IXwNu.css","assets/MyAssets-BA5zCiVR.js","assets/import-D2QUSpyp.js","assets/MyFavorites-DWjt5m8Z.js","assets/MyPurchases--MUfwO_U.js","assets/ImportListings-9YfzHduB.js","assets/ImportListings-Dx8BzO4r.css","assets/Cart-pFVN5ROM.js","assets/cart-checkout-CLMqKMCz.js","assets/Cart-Ep_4Wxpy.css","assets/Authorizations-Bxum5Ckz.js","assets/GetCredits-BcaMNIRG.js","assets/Success-CxrAGNmd.js","assets/NotFound-DVZ9W5Hr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Dh=Object.defineProperty;var cu=e=>{throw TypeError(e)};var qh=(e,t,r)=>t in e?Dh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xr=(e,t,r)=>qh(e,typeof t!="symbol"?t+"":t,r),ii=(e,t,r)=>t.has(e)||cu("Cannot "+r);var W=(e,t,r)=>(ii(e,t,"read from private field"),r?r.call(e):t.get(e)),Oe=(e,t,r)=>t.has(e)?cu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),be=(e,t,r,n)=>(ii(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(ii(e,t,"access private method"),r);var Xa=(e,t,r,n)=>({set _(o){be(e,t,o,r)},get _(){return W(e,t,n)}});import{r as ne,j as d,l as Rc,i as L2,g as As,R as M2,c as Nc,u as ks,h as Uh,L as Sn,e as Zr,k as Hh,a as Vh,b as B2,m as yn,n as zh,o as kt,N as lu,p as Gh,B as Wh}from"./react-BMZSDQJw.js";import{b as Zh,d as bt,a as uu}from"./dcl-schemas-BICTSpB5.js";import{p as ps,i as Kh,B as Yh,s as Qh,a as Jh,E as du}from"./sentry-8SzFotJj.js";import{W as Xh,k as e1,a as fu,f as F2}from"./ethers-Dpp9c5As.js";import{_ as En,D as t1,i as r1,a as ll,c as n1,b as o1,f as a1,d as s1,e as i1}from"./intl-CBcMB1D2.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var ra=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,to,S2,c1=(S2=class extends ra{constructor(){super();Oe(this,An);Oe(this,on);Oe(this,to);be(this,to,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){W(this,on)||this.setEventListener(W(this,to))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,on))==null||t.call(this),be(this,on,void 0))}setEventListener(t){var r;be(this,to,t),(r=W(this,on))==null||r.call(this),be(this,on,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){W(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 W(this,An)=="boolean"?W(this,An):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},An=new WeakMap,on=new WeakMap,to=new WeakMap,S2),ul=new c1,l1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},an,cl,T2,u1=(T2=class{constructor(){Oe(this,an,l1);Oe(this,cl,!1)}setTimeoutProvider(e){be(this,an,e)}setTimeout(e,t){return W(this,an).setTimeout(e,t)}clearTimeout(e){W(this,an).clearTimeout(e)}setInterval(e,t){return W(this,an).setInterval(e,t)}clearInterval(e){W(this,an).clearInterval(e)}},an=new WeakMap,cl=new WeakMap,T2),Tn=new u1;function d1(e){setTimeout(e,0)}var f1=typeof window>"u"||"Deno"in globalThis;function Yt(){}function h1(e,t){return typeof e=="function"?e(t):e}function Pc(e){return typeof e=="number"&&e>=0&&e!==1/0}function $2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hn(e,t){return typeof e=="function"?e(t):e}function tr(e,t){return typeof e=="function"?e(t):e}function hu(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==dl(i,t.options))return!1}else if(!Uo(t.queryKey,i))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||a&&!a(t))}function mu(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(qo(t.options.mutationKey)!==qo(a))return!1}else if(!Uo(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||qo)(e)}function qo(e){return JSON.stringify(e,(t,r)=>jc(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Uo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Uo(e[r],t[r])):!1}var m1=Object.prototype.hasOwnProperty;function D2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=pu(e)&&pu(t);if(!n&&!(jc(e)&&jc(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),u=i.length,f=n?new Array(u):{};let h=0;for(let m=0;m<u;m++){const p=n?m:i[m],y=e[p],_=t[p];if(y===_){f[p]=y,(n?m<a:m1.call(e,p))&&h++;continue}if(y===null||_===null||typeof y!="object"||typeof _!="object"){f[p]=_;continue}const A=D2(y,_,r+1);f[p]=A,A===y&&h++}return a===u&&h===a?e:f}function Oc(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 pu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jc(e){if(!gu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!gu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gu(e){return Object.prototype.toString.call(e)==="[object Object]"}function p1(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function Lc(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?D2(e,t):t}function ci(e){return e}function g1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function y1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var fl=Symbol();function q2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fl?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U2(e,t){return typeof e=="function"?e(...t):!!e}function v1(e,t,r){let n=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}var Ho=(()=>{let e=()=>f1;return{isServer(){return e()},setIsServer(t){e=t}}})();function Mc(){let e,t;const r=new Promise((o,a)=>{e=o,t=a});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var b1=d1;function w1(){let e=[],t=0,r=u=>{u()},n=u=>{u()},o=b1;const a=u=>{t?e.push(u):o(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&o(()=>{n(()=>{u.forEach(f=>{r(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||i()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{o=u}}}var Nt=w1(),ro,sn,no,A2,_1=(A2=class extends ra{constructor(){super();Oe(this,ro,!0);Oe(this,sn);Oe(this,no);be(this,no,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(){W(this,sn)||this.setEventListener(W(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,sn))==null||t.call(this),be(this,sn,void 0))}setEventListener(t){var r;be(this,no,t),(r=W(this,sn))==null||r.call(this),be(this,sn,t(this.setOnline.bind(this)))}setOnline(t){W(this,ro)!==t&&(be(this,ro,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return W(this,ro)}},ro=new WeakMap,sn=new WeakMap,no=new WeakMap,A2),_s=new _1;function C1(e){return Math.min(1e3*2**e,3e4)}function H2(e){return(e??"online")==="online"?_s.isOnline():!0}var Bc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function V2(e){let t=!1,r=0,n;const o=Mc(),a=()=>o.status!=="pending",i=g=>{var S;if(!a()){const Z=new Bc(g);y(Z),(S=e.onCancel)==null||S.call(e,Z)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>ul.isFocused()&&(e.networkMode==="always"||_s.isOnline())&&e.canRun(),m=()=>H2(e.networkMode)&&e.canRun(),p=g=>{a()||(n==null||n(),o.resolve(g))},y=g=>{a()||(n==null||n(),o.reject(g))},_=()=>new Promise(g=>{var S;n=Z=>{(a()||h())&&g(Z)},(S=e.onPause)==null||S.call(e)}).then(()=>{var g;n=void 0,a()||(g=e.onContinue)==null||g.call(e)}),A=()=>{if(a())return;let g;const S=r===0?e.initialPromise:void 0;try{g=S??e.fn()}catch(Z){g=Promise.reject(Z)}Promise.resolve(g).then(p).catch(Z=>{var q;if(a())return;const b=e.retry??(Ho.isServer()?0:3),I=e.retryDelay??C1,w=typeof I=="function"?I(r,Z):I,K=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,Z);if(t||!K){y(Z);return}r++,(q=e.onFail)==null||q.call(e,r,Z),p1(w).then(()=>h()?void 0:_()).then(()=>{t?y(Z):A()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(n==null||n(),o),cancelRetry:u,continueRetry:f,canStart:m,start:()=>(m()?A():_().then(A),o)}}var kn,k2,z2=(k2=class{constructor(){Oe(this,kn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pc(this.gcTime)&&be(this,kn,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ho.isServer()?1/0:300*1e3))}clearGcTimeout(){W(this,kn)!==void 0&&(Tn.clearTimeout(W(this,kn)),be(this,kn,void 0))}},kn=new WeakMap,k2);function E1(e){return{onFetch:(t,r)=>{var m,p,y,_,A;const n=t.options,o=(y=(p=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,a=((_=t.state.data)==null?void 0:_.pages)||[],i=((A=t.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const S=I=>{v1(I,()=>t.signal,()=>g=!0)},Z=q2(t.options,t.fetchOptions),b=async(I,w,K)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&I.pages.length)return Promise.resolve(I);const x=(()=>{const oe={client:t.client,queryKey:t.queryKey,pageParam:w,direction:K?"backward":"forward",meta:t.options.meta};return S(oe),oe})(),U=await Z(x),{maxPages:Q}=t.options,ee=K?y1:g1;return{pages:ee(I.pages,U,Q),pageParams:ee(I.pageParams,w,Q)}};if(o&&a.length){const I=o==="backward",w=I?G2:Fc,K={pages:a,pageParams:i},q=w(n,K);u=await b(K,q,I)}else{const I=e??a.length;do{const w=f===0?i[0]??n.initialPageParam:Fc(n,u);if(f>0&&w==null)break;u=await b(u,w),f++}while(f<I)}return u};t.options.persister?t.fetchFn=()=>{var g,S;return(S=(g=t.options).persister)==null?void 0:S.call(g,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Fc(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 G2(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 h8(e,t){return t?Fc(e,t)!=null:!1}function m8(e,t){return!t||!e.getPreviousPageParam?!1:G2(e,t)!=null}var oo,In,ao,ir,Rn,xt,Qo,Nn,er,W2,Hr,I2,x1=(I2=class extends z2{constructor(t){super();Oe(this,er);Oe(this,oo);Oe(this,In);Oe(this,ao);Oe(this,ir);Oe(this,Rn);Oe(this,xt);Oe(this,Qo);Oe(this,Nn);be(this,Nn,!1),be(this,Qo,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,Rn,t.client),be(this,ir,W(this,Rn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,In,vu(this.options)),this.state=t.state??W(this,In),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return W(this,oo)}get promise(){var t;return(t=W(this,xt))==null?void 0:t.promise}setOptions(t){if(this.options={...W(this,Qo),...t},t!=null&&t._type&&be(this,oo,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=vu(this.options);r.data!==void 0&&(this.setState(yu(r.data,r.dataUpdatedAt)),be(this,In,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,ir).remove(this)}setData(t,r){const n=Lc(this.state.data,t,this.options);return $e(this,er,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,er,Hr).call(this,{type:"setState",state:t})}cancel(t){var n,o;const r=(n=W(this,xt))==null?void 0:n.promise;return(o=W(this,xt))==null||o.cancel(t),r?r.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return W(this,In)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>tr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fl||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hn(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:!$2(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=W(this,xt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=W(this,xt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(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||(W(this,xt)&&(W(this,Nn)||$e(this,er,W2).call(this)?W(this,xt).cancel({revert:!0}):W(this,xt).cancelRetry()),this.scheduleGc()),W(this,ir).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,er,Hr).call(this,{type:"invalidate"})}async fetch(t,r){var h,m,p,y,_,A,g,S,Z,b,I;if(this.state.fetchStatus!=="idle"&&((h=W(this,xt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(W(this,xt))return W(this,xt).continueRetry(),W(this,xt).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,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(be(this,Nn,!0),n.signal)})},a=()=>{const w=q2(this.options,r),q=(()=>{const x={client:W(this,Rn),queryKey:this.queryKey,meta:this.meta};return o(x),x})();return be(this,Nn,!1),this.options.persister?this.options.persister(w,q,this):w(q)},u=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:W(this,Rn),state:this.state,fetchFn:a};return o(w),w})(),f=W(this,oo)==="infinite"?E1(this.options.pages):this.options.behavior;f==null||f.onFetch(u,this),be(this,ao,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=u.fetchOptions)==null?void 0:m.meta))&&$e(this,er,Hr).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),be(this,xt,V2({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,onCancel:w=>{w instanceof Bc&&w.revert&&this.setState({...W(this,ao),fetchStatus:"idle"}),n.abort()},onFail:(w,K)=>{$e(this,er,Hr).call(this,{type:"failed",failureCount:w,error:K})},onPause:()=>{$e(this,er,Hr).call(this,{type:"pause"})},onContinue:()=>{$e(this,er,Hr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const w=await W(this,xt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(_=(y=W(this,ir).config).onSuccess)==null||_.call(y,w,this),(g=(A=W(this,ir).config).onSettled)==null||g.call(A,w,this.state.error,this),w}catch(w){if(w instanceof Bc){if(w.silent)return W(this,xt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw $e(this,er,Hr).call(this,{type:"error",error:w}),(Z=(S=W(this,ir).config).onError)==null||Z.call(S,w,this),(I=(b=W(this,ir).config).onSettled)==null||I.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},oo=new WeakMap,In=new WeakMap,ao=new WeakMap,ir=new WeakMap,Rn=new WeakMap,xt=new WeakMap,Qo=new WeakMap,Nn=new WeakMap,er=new WeakSet,W2=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,...Z2(n.data,this.options),fetchMeta:t.meta??null};case"success":const o={...n,...yu(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,ao,t.manual?o:void 0),o;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,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()}),W(this,ir).notify({query:this,type:"updated",action:t})})},I2);function Z2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vu(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,Jo,Dt,Pn,so,Vr,cn,Xo,io,co,On,jn,ln,lo,Ke,Lo,$c,Dc,qc,Uc,Hc,Vc,zc,K2,R2,S1=(R2=class extends ra{constructor(t,r){super();Oe(this,Ke);Oe(this,Kt);Oe(this,qe);Oe(this,Jo);Oe(this,Dt);Oe(this,Pn);Oe(this,so);Oe(this,Vr);Oe(this,cn);Oe(this,Xo);Oe(this,io);Oe(this,co);Oe(this,On);Oe(this,jn);Oe(this,ln);Oe(this,lo,new Set);this.options=r,be(this,Kt,t),be(this,cn,null),be(this,Vr,Mc()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(W(this,qe).addObserver(this),bu(W(this,qe),this.options)?$e(this,Ke,Lo).call(this):this.updateResult(),$e(this,Ke,Uc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gc(W(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gc(W(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,Ke,Hc).call(this),$e(this,Ke,Vc).call(this),W(this,qe).removeObserver(this)}setOptions(t){const r=this.options,n=W(this,qe);if(this.options=W(this,Kt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tr(this.options.enabled,W(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,Ke,zc).call(this),W(this,qe).setOptions(this.options),r._defaulted&&!Oc(this.options,r)&&W(this,Kt).getQueryCache().notify({type:"observerOptionsUpdated",query:W(this,qe),observer:this});const o=this.hasListeners();o&&wu(W(this,qe),n,this.options,r)&&$e(this,Ke,Lo).call(this),this.updateResult(),o&&(W(this,qe)!==n||tr(this.options.enabled,W(this,qe))!==tr(r.enabled,W(this,qe))||hn(this.options.staleTime,W(this,qe))!==hn(r.staleTime,W(this,qe)))&&$e(this,Ke,$c).call(this);const a=$e(this,Ke,Dc).call(this);o&&(W(this,qe)!==n||tr(this.options.enabled,W(this,qe))!==tr(r.enabled,W(this,qe))||a!==W(this,ln))&&$e(this,Ke,qc).call(this,a)}getOptimisticResult(t){const r=W(this,Kt).getQueryCache().build(W(this,Kt),t),n=this.createResult(r,t);return A1(this,n)&&(be(this,Dt,n),be(this,so,this.options),be(this,Pn,W(this,qe).state)),n}getCurrentResult(){return W(this,Dt)}trackResult(t,r){return new Proxy(t,{get:(n,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&W(this,Vr).status==="pending"&&W(this,Vr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,o))})}trackProp(t){W(this,lo).add(t)}getCurrentQuery(){return W(this,qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=W(this,Kt).defaultQueryOptions(t),n=W(this,Kt).getQueryCache().build(W(this,Kt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return $e(this,Ke,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),W(this,Dt)))}createResult(t,r){var Q;const n=W(this,qe),o=this.options,a=W(this,Dt),i=W(this,Pn),u=W(this,so),h=t!==n?t.state:W(this,Jo),{state:m}=t;let p={...m},y=!1,_;if(r._optimisticResults){const ee=this.hasListeners(),oe=!ee&&bu(t,r),J=ee&&wu(t,n,r,o);(oe||J)&&(p={...p,...Z2(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:A,errorUpdatedAt:g,status:S}=p;_=p.data;let Z=!1;if(r.placeholderData!==void 0&&_===void 0&&S==="pending"){let ee;a!=null&&a.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(ee=a.data,Z=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((Q=W(this,co))==null?void 0:Q.state.data,W(this,co)):r.placeholderData,ee!==void 0&&(S="success",_=Lc(a==null?void 0:a.data,ee,r),y=!0)}if(r.select&&_!==void 0&&!Z)if(a&&_===(i==null?void 0:i.data)&&r.select===W(this,Xo))_=W(this,io);else try{be(this,Xo,r.select),_=r.select(_),_=Lc(a==null?void 0:a.data,_,r),be(this,io,_),be(this,cn,null)}catch(ee){be(this,cn,ee)}W(this,cn)&&(A=W(this,cn),_=W(this,io),g=Date.now(),S="error");const b=p.fetchStatus==="fetching",I=S==="pending",w=S==="error",K=I&&b,q=_!==void 0,U={status:S,fetchStatus:p.fetchStatus,isPending:I,isSuccess:S==="success",isError:w,isInitialLoading:K,isLoading:K,data:_,dataUpdatedAt:p.dataUpdatedAt,error:A,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:b,isRefetching:b&&!I,isLoadingError:w&&!q,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:w&&q,isStale:hl(t,r),refetch:this.refetch,promise:W(this,Vr),isEnabled:tr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const ee=U.data!==void 0,oe=U.status==="error"&&!ee,J=O=>{oe?O.reject(U.error):ee&&O.resolve(U.data)},L=()=>{const O=be(this,Vr,U.promise=Mc());J(O)},N=W(this,Vr);switch(N.status){case"pending":t.queryHash===n.queryHash&&J(N);break;case"fulfilled":(oe||U.data!==N.value)&&L();break;case"rejected":(!oe||U.error!==N.reason)&&L();break}}return U}updateResult(){const t=W(this,Dt),r=this.createResult(W(this,qe),this.options);if(be(this,Pn,W(this,qe).state),be(this,so,this.options),W(this,Pn).data!==void 0&&be(this,co,W(this,qe)),Oc(r,t))return;be(this,Dt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!W(this,lo).size)return!0;const i=new Set(a??W(this,lo));return this.options.throwOnError&&i.add("error"),Object.keys(W(this,Dt)).some(u=>{const f=u;return W(this,Dt)[f]!==t[f]&&i.has(f)})};$e(this,Ke,K2).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,Ke,Uc).call(this)}},Kt=new WeakMap,qe=new WeakMap,Jo=new WeakMap,Dt=new WeakMap,Pn=new WeakMap,so=new WeakMap,Vr=new WeakMap,cn=new WeakMap,Xo=new WeakMap,io=new WeakMap,co=new WeakMap,On=new WeakMap,jn=new WeakMap,ln=new WeakMap,lo=new WeakMap,Ke=new WeakSet,Lo=function(t){$e(this,Ke,zc).call(this);let r=W(this,qe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Yt)),r},$c=function(){$e(this,Ke,Hc).call(this);const t=hn(this.options.staleTime,W(this,qe));if(Ho.isServer()||W(this,Dt).isStale||!Pc(t))return;const n=$2(W(this,Dt).dataUpdatedAt,t)+1;be(this,On,Tn.setTimeout(()=>{W(this,Dt).isStale||this.updateResult()},n))},Dc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(W(this,qe)):this.options.refetchInterval)??!1},qc=function(t){$e(this,Ke,Vc).call(this),be(this,ln,t),!(Ho.isServer()||tr(this.options.enabled,W(this,qe))===!1||!Pc(W(this,ln))||W(this,ln)===0)&&be(this,jn,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||ul.isFocused())&&$e(this,Ke,Lo).call(this)},W(this,ln)))},Uc=function(){$e(this,Ke,$c).call(this),$e(this,Ke,qc).call(this,$e(this,Ke,Dc).call(this))},Hc=function(){W(this,On)!==void 0&&(Tn.clearTimeout(W(this,On)),be(this,On,void 0))},Vc=function(){W(this,jn)!==void 0&&(Tn.clearInterval(W(this,jn)),be(this,jn,void 0))},zc=function(){const t=W(this,Kt).getQueryCache().build(W(this,Kt),this.options);if(t===W(this,qe))return;const r=W(this,qe);be(this,qe,t),be(this,Jo,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},K2=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(W(this,Dt))}),W(this,Kt).getQueryCache().notify({query:W(this,qe),type:"observerResultsUpdated"})})},R2);function T1(e,t){return tr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&tr(t.retryOnMount,e)===!1)}function bu(e,t){return T1(e,t)||e.state.data!==void 0&&Gc(e,t,t.refetchOnMount)}function Gc(e,t,r){if(tr(t.enabled,e)!==!1&&hn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&hl(e,t)}return!1}function wu(e,t,r,n){return(e!==t||tr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&hl(e,r)}function hl(e,t){return tr(t.enabled,e)!==!1&&e.isStaleByTime(hn(t.staleTime,e))}function A1(e,t){return!Oc(e.getCurrentResult(),t)}var ea,Sr,Bt,Ln,Tr,tn,N2,k1=(N2=class extends z2{constructor(t){super();Oe(this,Tr);Oe(this,ea);Oe(this,Sr);Oe(this,Bt);Oe(this,Ln);be(this,ea,t.client),this.mutationId=t.mutationId,be(this,Bt,t.mutationCache),be(this,Sr,[]),this.state=t.state||I1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,Sr).includes(t)||(W(this,Sr).push(t),this.clearGcTimeout(),W(this,Bt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,Sr,W(this,Sr).filter(r=>r!==t)),this.scheduleGc(),W(this,Bt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,Sr).length||(this.state.status==="pending"?this.scheduleGc():W(this,Bt).remove(this))}continue(){var t;return((t=W(this,Ln))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,u,f,h,m,p,y,_,A,g,S,Z,b,I,w,K,q,x;const r=()=>{$e(this,Tr,tn).call(this,{type:"continue"})},n={client:W(this,ea),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Ln,V2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(U,Q)=>{$e(this,Tr,tn).call(this,{type:"failed",failureCount:U,error:Q})},onPause:()=>{$e(this,Tr,tn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Bt).canRun(this)}));const o=this.state.status==="pending",a=!W(this,Ln).canStart();try{if(o)r();else{$e(this,Tr,tn).call(this,{type:"pending",variables:t,isPaused:a}),W(this,Bt).config.onMutate&&await W(this,Bt).config.onMutate(t,this,n);const Q=await((u=(i=this.options).onMutate)==null?void 0:u.call(i,t,n));Q!==this.state.context&&$e(this,Tr,tn).call(this,{type:"pending",context:Q,variables:t,isPaused:a})}const U=await W(this,Ln).start();return await((h=(f=W(this,Bt).config).onSuccess)==null?void 0:h.call(f,U,t,this.state.context,this,n)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,U,t,this.state.context,n)),await((_=(y=W(this,Bt).config).onSettled)==null?void 0:_.call(y,U,null,this.state.variables,this.state.context,this,n)),await((g=(A=this.options).onSettled)==null?void 0:g.call(A,U,null,t,this.state.context,n)),$e(this,Tr,tn).call(this,{type:"success",data:U}),U}catch(U){try{await((Z=(S=W(this,Bt).config).onError)==null?void 0:Z.call(S,U,t,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((I=(b=this.options).onError)==null?void 0:I.call(b,U,t,this.state.context,n))}catch(Q){Promise.reject(Q)}try{await((K=(w=W(this,Bt).config).onSettled)==null?void 0:K.call(w,void 0,U,this.state.variables,this.state.context,this,n))}catch(Q){Promise.reject(Q)}try{await((x=(q=this.options).onSettled)==null?void 0:x.call(q,void 0,U,t,this.state.context,n))}catch(Q){Promise.reject(Q)}throw $e(this,Tr,tn).call(this,{type:"error",error:U}),U}finally{W(this,Bt).runNext(this)}}},ea=new WeakMap,Sr=new WeakMap,Bt=new WeakMap,Ln=new WeakMap,Tr=new WeakSet,tn=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(()=>{W(this,Sr).forEach(n=>{n.onMutationUpdate(t)}),W(this,Bt).notify({mutation:this,type:"updated",action:t})})},N2);function I1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,hr,ta,P2,R1=(P2=class extends ra{constructor(t={}){super();Oe(this,zr);Oe(this,hr);Oe(this,ta);this.config=t,be(this,zr,new Set),be(this,hr,new Map),be(this,ta,0)}build(t,r,n){const o=new k1({client:t,mutationCache:this,mutationId:++Xa(this,ta)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){W(this,zr).add(t);const r=es(t);if(typeof r=="string"){const n=W(this,hr).get(r);n?n.push(t):W(this,hr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(W(this,zr).delete(t)){const r=es(t);if(typeof r=="string"){const n=W(this,hr).get(r);if(n)if(n.length>1){const o=n.indexOf(t);o!==-1&&n.splice(o,1)}else n[0]===t&&W(this,hr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=es(t);if(typeof r=="string"){const n=W(this,hr).get(r),o=n==null?void 0:n.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var n;const r=es(t);if(typeof r=="string"){const o=(n=W(this,hr).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{W(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),W(this,zr).clear(),W(this,hr).clear()})}getAll(){return Array.from(W(this,zr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>mu(r,n))}findAll(t={}){return this.getAll().filter(r=>mu(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))))}},zr=new WeakMap,hr=new WeakMap,ta=new WeakMap,P2);function es(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ar,O2,N1=(O2=class extends ra{constructor(t={}){super();Oe(this,Ar);this.config=t,be(this,Ar,new Map)}build(t,r,n){const o=r.queryKey,a=r.queryHash??dl(o,r);let i=this.get(a);return i||(i=new x1({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){W(this,Ar).has(t.queryHash)||(W(this,Ar).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=W(this,Ar).get(t.queryHash);r&&(t.destroy(),r===t&&W(this,Ar).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,Ar).get(t)}getAll(){return[...W(this,Ar).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>hu(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>hu(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,O2),dt,un,dn,uo,fo,fn,ho,mo,j2,P1=(j2=class{constructor(e={}){Oe(this,dt);Oe(this,un);Oe(this,dn);Oe(this,uo);Oe(this,fo);Oe(this,fn);Oe(this,ho);Oe(this,mo);be(this,dt,e.queryCache||new N1),be(this,un,e.mutationCache||new R1),be(this,dn,e.defaultOptions||{}),be(this,uo,new Map),be(this,fo,new Map),be(this,fn,0)}mount(){Xa(this,fn)._++,W(this,fn)===1&&(be(this,ho,ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,dt).onFocus())})),be(this,mo,_s.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,dt).onOnline())})))}unmount(){var e,t;Xa(this,fn)._--,W(this,fn)===0&&((e=W(this,ho))==null||e.call(this),be(this,ho,void 0),(t=W(this,mo))==null||t.call(this),be(this,mo,void 0))}isFetching(e){return W(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,un).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=W(this,dt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=W(this,dt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(hn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return W(this,dt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=W(this,dt).get(n.queryHash),a=o==null?void 0:o.state.data,i=h1(t,a);if(i!==void 0)return W(this,dt).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Nt.batch(()=>W(this,dt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=W(this,dt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=W(this,dt);Nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=W(this,dt);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(()=>W(this,dt).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return Nt.batch(()=>(W(this,dt).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(()=>W(this,dt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,r);return r.throwOnError||(a=a.catch(Yt)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=W(this,dt).build(this,t);return r.isStaleByTime(hn(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 _s.isOnline()?W(this,un).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,dt)}getMutationCache(){return W(this,un)}getDefaultOptions(){return W(this,dn)}setDefaultOptions(e){be(this,dn,e)}setQueryDefaults(e,t){W(this,uo).set(qo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,uo).values()],r={};return t.forEach(n=>{Uo(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){W(this,fo).set(qo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,fo).values()],r={};return t.forEach(n=>{Uo(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dl(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===fl&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,dt).clear(),W(this,un).clear()}},dt=new WeakMap,un=new WeakMap,dn=new WeakMap,uo=new WeakMap,fo=new WeakMap,fn=new WeakMap,ho=new WeakMap,mo=new WeakMap,j2),Y2=ne.createContext(void 0),O1=e=>{const t=ne.useContext(Y2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},j1=({client:e,children:t})=>(ne.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Y2.Provider,{value:e,children:t})),Q2=ne.createContext(!1),L1=()=>ne.useContext(Q2);Q2.Provider;function M1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var B1=ne.createContext(M1()),F1=()=>ne.useContext(B1),$1=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?U2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},D1=e=>{ne.useEffect(()=>{e.clearReset()},[e])},q1=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||U2(r,[e.error,n])),U1=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},H1=(e,t)=>e.isLoading&&e.isFetching&&!t,V1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,_u=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function z1(e,t,r){var _,A,g,S;const n=L1(),o=F1(),a=O1(),i=a.defaultQueryOptions(e);(A=(_=a.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||A.call(_,i);const u=a.getQueryCache().get(i.queryHash),f=e.subscribed!==!1;i._optimisticResults=n?"isRestoring":f?"optimistic":void 0,U1(i),$1(i,o,u),D1(o);const h=!a.getQueryCache().get(i.queryHash),[m]=ne.useState(()=>new t(a,i)),p=m.getOptimisticResult(i),y=!n&&f;if(ne.useSyncExternalStore(ne.useCallback(Z=>{const b=y?m.subscribe(Nt.batchCalls(Z)):Yt;return m.updateResult(),b},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),ne.useEffect(()=>{m.setOptions(i)},[i,m]),V1(i,p))throw _u(i,m,o);if(q1({result:p,errorResetBoundary:o,throwOnError:i.throwOnError,query:u,suspense:i.suspense}))throw p.error;if((S=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||S.call(g,i,p),i.experimental_prefetchInRender&&!Ho.isServer()&&H1(p,n)){const Z=h?_u(i,m,o):u==null?void 0:u.promise;Z==null||Z.catch(Yt).finally(()=>{m.updateResult()})}return i.notifyOnChangeProps?p:m.trackResult(p)}function Gr(e,t){return z1(e,S1)}const G1="modulepreload",W1=function(e){return"https://cdn.decentraland.org/@dcl/shop/0.1.0-29941568358.commit-de47e56/"+e},Cu={},_t=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=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 u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=i(r.map(h=>{if(h=W1(h),h in Cu)return;Cu[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":G1,m||(y.as="script"),y.crossOrigin="",y.href=h,f&&y.setAttribute("nonce",f),document.head.appendChild(y),m)return new Promise((_,A)=>{y.addEventListener("load",_),y.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return o.then(i=>{for(const u of i||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})},Z1="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",K1="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",Y1="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",Q1="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",J1="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",X1="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",em="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",tm="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",rm="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",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='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",om="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",am="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",sm="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",im="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",cm="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",lm="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",um="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",dm="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",fm="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",hm="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",mm="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",pm="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",gm="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",ym="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",vm="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",bm="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",wm="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",_m="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",Cm="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",Em="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",xm="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",Sm="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",Tm="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",Am="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",km="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",Im="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",Rm="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",Nm="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",Pm="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",Om="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",jm="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",Lm="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",Mm="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",Bm="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",Fm="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",$m="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",Dm="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",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%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",Um="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",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%20d='M7%203h10l-1%2018h-3L12%2010l-1%2011H8L7%203Z'%20stroke='%23000'%20stroke-width='2'%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='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",zm="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",Gm="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",Wm="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",Zm="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",Km="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",Ym="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",Qm=Object.assign({"../../assets/icons/arrow-left.svg":Z1,"../../assets/icons/bell.svg":K1,"../../assets/icons/carousel-arrow.svg":Y1,"../../assets/icons/cart-solid.svg":Q1,"../../assets/icons/cart.svg":J1,"../../assets/icons/cat-accessories.svg":X1,"../../assets/icons/cat-feet.svg":em,"../../assets/icons/cat-handwear.svg":tm,"../../assets/icons/cat-head.svg":rm,"../../assets/icons/cat-lower.svg":nm,"../../assets/icons/cat-skins.svg":om,"../../assets/icons/cat-upper.svg":am,"../../assets/icons/category-eyewear.svg":sm,"../../assets/icons/check.svg":im,"../../assets/icons/chevron-down.svg":cm,"../../assets/icons/clock.svg":lm,"../../assets/icons/close.svg":um,"../../assets/icons/copy.svg":dm,"../../assets/icons/credits.svg":fm,"../../assets/icons/discord.svg":hm,"../../assets/icons/emote-dance.svg":mm,"../../assets/icons/emote-fun.svg":pm,"../../assets/icons/emote-greetings.svg":gm,"../../assets/icons/emote-horror.svg":ym,"../../assets/icons/emote-misc.svg":vm,"../../assets/icons/emote-poses.svg":bm,"../../assets/icons/emote-reactions.svg":wm,"../../assets/icons/emote-stunt.svg":_m,"../../assets/icons/ethereum.svg":Cm,"../../assets/icons/external-link.svg":Em,"../../assets/icons/eye.svg":xm,"../../assets/icons/facebook.svg":Sm,"../../assets/icons/filter.svg":Tm,"../../assets/icons/fitting-room.svg":Am,"../../assets/icons/gender-female.svg":km,"../../assets/icons/gender-male.svg":Im,"../../assets/icons/gender-unisex.svg":Rm,"../../assets/icons/heart-solid.svg":Nm,"../../assets/icons/heart.svg":Pm,"../../assets/icons/info.svg":Om,"../../assets/icons/mana-logo.svg":jm,"../../assets/icons/offer.svg":Lm,"../../assets/icons/pen.svg":Mm,"../../assets/icons/plus.svg":Bm,"../../assets/icons/search.svg":Fm,"../../assets/icons/slot-feet.svg":$m,"../../assets/icons/slot-hands.svg":Dm,"../../assets/icons/slot-head.svg":qm,"../../assets/icons/slot-item.svg":Um,"../../assets/icons/slot-lower.svg":Hm,"../../assets/icons/slot-upper.svg":Vm,"../../assets/icons/smart.svg":zm,"../../assets/icons/trash.svg":Gm,"../../assets/icons/twitter.svg":Wm,"../../assets/icons/upload.svg":Zm,"../../assets/icons/view-all-arrow.svg":Km,"../../assets/icons/website.svg":Ym}),J2={};for(const[e,t]of Object.entries(Qm))J2[e.slice(e.lastIndexOf("/")+1,-4)]=t;function vt({name:e,size:t,className:r,style:n,...o}){const a=J2[e],i={"--icon-url":a?`url("${a}")`:void 0,...t!=null?{width:t,height:t}:null,...n},u=o["aria-label"]==null&&o.role==null;return d.jsx("span",{"aria-hidden":u||void 0,...o,className:r?`ico ${r}`:"ico",style:i})}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 Jm(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 Xm(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 ep=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},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(Xm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Jm(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Mt="-ms-",Cs="-moz-",Ge="-webkit-",X2="comm",ml="rule",pl="decl",tp="@import",ef="@keyframes",rp="@layer",np=Math.abs,Is=String.fromCharCode,op=Object.assign;function ap(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 tf(e){return e.trim()}function sp(e,t){return(e=t.exec(e))?e[0]:e}function We(e,t,r){return e.replace(t,r)}function Wc(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Vo(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function gl(e){return e.length}function ts(e,t){return t.push(e),e}function ip(e,t){return e.map(t).join("")}var Rs=1,po=1,rf=0,Qt=0,gt=0,bo="";function Ns(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Rs,column:po,length:i,return:""}}function Ao(e,t){return op(Ns("",null,null,"",null,null,0),e,{length:-e.length},t)}function cp(){return gt}function lp(){return gt=Qt>0?Rt(bo,--Qt):0,po--,gt===10&&(po=1,Rs--),gt}function or(){return gt=Qt<rf?Rt(bo,Qt++):0,po++,gt===10&&(po=1,Rs++),gt}function Rr(){return Rt(bo,Qt)}function gs(){return Qt}function na(e,t){return Vo(bo,e,t)}function zo(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 nf(e){return Rs=po=1,rf=kr(bo=e),Qt=0,[]}function of(e){return bo="",e}function ys(e){return tf(na(Qt-1,Zc(e===91?e+2:e===40?e+1:e)))}function up(e){for(;(gt=Rr())&><33;)or();return zo(e)>2||zo(gt)>3?"":" "}function dp(e,t){for(;--t&&or()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return na(e,gs()+(t<6&&Rr()==32&&or()==32))}function Zc(e){for(;or();)switch(gt){case e:return Qt;case 34:case 39:e!==34&&e!==39&&Zc(gt);break;case 40:e===41&&Zc(e);break;case 92:or();break}return Qt}function fp(e,t){for(;or()&&e+gt!==57;)if(e+gt===84&&Rr()===47)break;return"/*"+na(t,Qt-1)+"*"+Is(e===47?e:or())}function hp(e){for(;!zo(Rr());)or();return na(e,Qt)}function mp(e){return of(vs("",null,null,null,[""],e=nf(e),0,[0],e))}function vs(e,t,r,n,o,a,i,u,f){for(var h=0,m=0,p=i,y=0,_=0,A=0,g=1,S=1,Z=1,b=0,I="",w=o,K=a,q=n,x=I;S;)switch(A=b,b=or()){case 40:if(A!=108&&Rt(x,p-1)==58){Wc(x+=We(ys(b),"&","&\f"),"&\f")!=-1&&(Z=-1);break}case 34:case 39:case 91:x+=ys(b);break;case 9:case 10:case 13:case 32:x+=up(A);break;case 92:x+=dp(gs()-1,7);continue;case 47:switch(Rr()){case 42:case 47:ts(pp(fp(or(),gs()),t,r),f);break;default:x+="/"}break;case 123*g:u[h++]=kr(x)*Z;case 125*g:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+m:Z==-1&&(x=We(x,/\f/g,"")),_>0&&kr(x)-p&&ts(_>32?xu(x+";",n,r,p-1):xu(We(x," ","")+";",n,r,p-2),f);break;case 59:x+=";";default:if(ts(q=Eu(x,t,r,h,m,o,u,I,w=[],K=[],p),a),b===123)if(m===0)vs(x,t,q,q,w,a,p,u,K);else switch(y===99&&Rt(x,3)===110?100:y){case 100:case 108:case 109:case 115:vs(e,q,q,n&&ts(Eu(e,q,q,0,0,o,u,I,o,w=[],p),K),o,K,p,u,n?w:K);break;default:vs(x,q,q,q,[""],K,0,u,K)}}h=m=_=0,g=Z=1,I=x="",p=i;break;case 58:p=1+kr(x),_=A;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&lp()==125)continue}switch(x+=Is(b),b*g){case 38:Z=m>0?1:(x+="\f",-1);break;case 44:u[h++]=(kr(x)-1)*Z,Z=1;break;case 64:Rr()===45&&(x+=ys(or())),y=Rr(),m=p=kr(I=x+=hp(gs())),b++;break;case 45:A===45&&kr(x)==2&&(g=0)}}return a}function Eu(e,t,r,n,o,a,i,u,f,h,m){for(var p=o-1,y=o===0?a:[""],_=gl(y),A=0,g=0,S=0;A<n;++A)for(var Z=0,b=Vo(e,p+1,p=np(g=i[A])),I=e;Z<_;++Z)(I=tf(g>0?y[Z]+" "+b:We(b,/&\f/g,y[Z])))&&(f[S++]=I);return Ns(e,t,r,o===0?ml:u,f,h,m)}function pp(e,t,r){return Ns(e,t,r,X2,Is(cp()),Vo(e,2,-2),0)}function xu(e,t,r,n){return Ns(e,t,r,pl,Vo(e,0,n),Vo(e,n+1,-1),n)}function Qn(e,t){for(var r="",n=gl(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function gp(e,t,r,n){switch(e.type){case rp:if(e.children.length)break;case tp:case pl:return e.return=e.return||e.value;case X2:return"";case ef:return e.return=e.value+"{"+Qn(e.children,n)+"}";case ml:e.value=e.props.join(",")}return kr(r=Qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function yp(e){var t=gl(e);return function(r,n,o,a){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,a)||"";return i}}function vp(e){return function(t){t.root||(t=t.return)&&e(t)}}function af(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var bp=function(t,r,n){for(var o=0,a=0;o=a,a=Rr(),o===38&&a===12&&(r[n]=1),!zo(a);)or();return na(t,Qt)},wp=function(t,r){var n=-1,o=44;do switch(zo(o)){case 0:o===38&&Rr()===12&&(r[n]=1),t[n]+=bp(Qt-1,r,n);break;case 2:t[n]+=ys(o);break;case 4:if(o===44){t[++n]=Rr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Is(o)}while(o=or());return t},_p=function(t,r){return of(wp(nf(t),r))},Su=new WeakMap,Cp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!Su.get(n))&&!o){Su.set(t,!0);for(var a=[],i=_p(r,a),u=n.props,f=0,h=0;f<i.length;f++)for(var m=0;m<u.length;m++,h++)t.props[h]=a[f]?i[f].replace(/&\f/g,u[m]):u[m]+" "+i[f]}}},Ep=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sf(e,t){switch(ap(e,t)){case 5103:return Ge+"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 Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+Cs+e+Mt+e+e;case 6828:case 4268:return Ge+e+Mt+e+e;case 6165:return Ge+e+Mt+"flex-"+e+e;case 5187:return Ge+e+We(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Mt+"flex-$1$2")+e;case 5443:return Ge+e+Mt+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Mt+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Mt+We(e,"shrink","negative")+e;case 5292:return Ge+e+Mt+We(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+We(e,"-grow","")+Ge+e+Mt+We(e,"grow","positive")+e;case 4554:return Ge+We(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Mt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,Ge+"$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 We(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+Cs+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wc(e,"stretch")?sf(We(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-(~Wc(e,"!important")&&10))){case 107:return We(e,":",":"+Ge)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Rt(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Mt+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return Ge+e+Mt+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Mt+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Mt+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Mt+e+e}return e}var xp=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case pl:t.return=sf(t.value,t.length);break;case ef:return Qn([Ao(t,{value:We(t.value,"@","@"+Ge)})],o);case ml:if(t.length)return ip(t.props,function(a){switch(sp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([Ao(t,{props:[We(a,/:(read-\w+)/,":"+Cs+"$1")]})],o);case"::placeholder":return Qn([Ao(t,{props:[We(a,/:(plac\w+)/,":"+Ge+"input-$1")]}),Ao(t,{props:[We(a,/:(plac\w+)/,":"+Cs+"$1")]}),Ao(t,{props:[We(a,/:(plac\w+)/,Mt+"input-$1")]})],o)}return""})}},Sp=[xp],cf=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(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Sp,a={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),Z=1;Z<S.length;Z++)a[S[Z]]=!0;u.push(g)});var f,h=[Cp,Ep];{var m,p=[gp,vp(function(g){m.insert(g)})],y=yp(h.concat(o,p)),_=function(S){return Qn(mp(S),y)};f=function(S,Z,b,I){m=b,_(S?S+"{"+Z.styles+"}":Z.styles),I&&(A.inserted[Z.name]=!0)}}var A={key:r,sheet:new ep({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:f};return A.sheet.hydrate(u),A},Tp=!0;function lf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var yl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Tp===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},vl=function(t,r,n){yl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Ap(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 kp={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},Ip=/[A-Z]|^ms/g,Rp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uf=function(t){return t.charCodeAt(1)===45},Tu=function(t){return t!=null&&typeof t!="boolean"},li=af(function(e){return uf(e)?e:e.replace(Ip,"-$&").toLowerCase()}),Au=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Rp,function(n,o,a){return Ir={name:o,styles:a,next:Ir},o})}return kp[t]!==1&&!uf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Go(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 o=r;if(o.anim===1)return Ir={name:o.name,styles:o.styles,next:Ir},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Ir={name:i.name,styles:i.styles,next:Ir},i=i.next;var u=a.styles+";";return u}return Np(e,t,r)}case"function":{if(e!==void 0){var f=Ir,h=r(e);return Ir=f,Go(e,t,h)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function Np(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Go(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":Tu(u)&&(n+=li(a)+":"+Au(a,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var f=0;f<i.length;f++)Tu(i[f])&&(n+=li(a)+":"+Au(a,i[f])+";");else{var h=Go(e,t,i);switch(a){case"animation":case"animationName":{n+=li(a)+":"+h+";";break}default:n+=a+"{"+h+"}"}}}return n}var ku=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function oa(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,o="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Go(r,t,a);else{var i=a;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=Go(r,t,e[u]),n){var f=a;o+=f[u]}ku.lastIndex=0;for(var h="",m;(m=ku.exec(o))!==null;)h+="-"+m[1];var p=Ap(o)+h;return{name:p,styles:o,next:Ir}}var Pp=function(t){return t()},df=Rc.useInsertionEffect?Rc.useInsertionEffect:!1,ff=df||Pp,Iu=df||ne.useLayoutEffect,hf=ne.createContext(typeof HTMLElement<"u"?cf({key:"css"}):null),Op=hf.Provider,bl=function(t){return ne.forwardRef(function(r,n){var o=ne.useContext(hf);return t(r,o,n)})},Ps=ne.createContext({}),wl={}.hasOwnProperty,Kc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jp=function(t,r){var n={};for(var o in r)wl.call(r,o)&&(n[o]=r[o]);return n[Kc]=t,n},Lp=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yl(r,n,o),ff(function(){return vl(r,n,o)}),null},Mp=bl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Kc],a=[n],i="";typeof e.className=="string"?i=lf(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var u=oa(a,void 0,ne.useContext(Ps));i+=t.key+"-"+u.name;var f={};for(var h in e)wl.call(e,h)&&h!=="css"&&h!==Kc&&(f[h]=e[h]);return f.className=i,r&&(f.ref=r),ne.createElement(ne.Fragment,null,ne.createElement(Lp,{cache:t,serialized:u,isStringTag:typeof o=="string"}),ne.createElement(o,f))}),Bp=Mp,Ru=function(t,r){var n=arguments;if(r==null||!wl.call(r,"css"))return ne.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=Bp,a[1]=jp(t,r);for(var i=2;i<o;i++)a[i]=n[i];return ne.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ru||(Ru={}));var Fp=bl(function(e,t){var r=e.styles,n=oa([r],void 0,ne.useContext(Ps)),o=ne.useRef();return Iu(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,f=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),f!==null&&(u=!0,f.setAttribute("data-emotion",a),i.hydrate([f])),o.current=[i,u],function(){i.flush()}},[t]),Iu(function(){var a=o.current,i=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&vl(t,n.next,!0),i.tags.length){var f=i.tags[i.tags.length-1].nextElementSibling;i.before=f,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return oa(t)}function mf(){var e=_l.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 $p=/^((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)-.*))$/,Dp=af(function(e){return $p.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qp=Dp,Up=function(t){return t!=="theme"},Nu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qp:Up},Pu=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Hp=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yl(r,n,o),ff(function(){return vl(r,n,o)}),null},Vp=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var u=Pu(t,r,n),f=u||Nu(o),h=!f("as");return function(){var m=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var y=m[0];p.push(y[0]);for(var _=m.length,A=1;A<_;A++)p.push(m[A],y[A])}var g=bl(function(S,Z,b){var I=h&&S.as||o,w="",K=[],q=S;if(S.theme==null){q={};for(var x in S)q[x]=S[x];q.theme=ne.useContext(Ps)}typeof S.className=="string"?w=lf(Z.registered,K,S.className):S.className!=null&&(w=S.className+" ");var U=oa(p.concat(K),Z.registered,q);w+=Z.key+"-"+U.name,i!==void 0&&(w+=" "+i);var Q=h&&u===void 0?Nu(I):f,ee={};for(var oe in S)h&&oe==="as"||Q(oe)&&(ee[oe]=S[oe]);return ee.className=w,b&&(ee.ref=b),ne.createElement(ne.Fragment,null,ne.createElement(Hp,{cache:Z,serialized:U,isStringTag:typeof I=="string"}),ne.createElement(I,ee))});return g.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=u,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(S,Z){var b=e(S,Ye({},r,Z,{shouldForwardProp:Pu(g,Z,!0)}));return b.apply(void 0,p)},g}},zp=["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=Vp.bind(null);zp.forEach(function(e){wt[e]=wt(e)});const Gp={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"},Wp={common:"#73d3d3",uncommon:"#ff8362",rare:"#34ce76",epic:"#289cff",legendary:"#a24bf3",exotic:"#bdfd4e",mythic:"#ff4bed",unique:"#fea217"},Zp={amethyst:"linear-gradient(180deg, #c640cd 0%, #691fa9 100%)",cerise:"linear-gradient(135deg, #ff2d55 0%, #c640cd 100%)"},Kp={card:"12px",btn:"8px",pill:"50px",banner:"24px"},Yp={sans:'"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},Ou={mobile:768,sm:720,md:820,lg:900},Qp={down:e=>`@media (max-width: ${Ou[e]}px)`,up:e=>`@media (min-width: ${Ou[e]+1}px)`},Le={colors:Gp,rarities:Wp,gradients:Zp,radius:Kp,font:Yp,media:Qp},Jp=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
|
-
`,Xp=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
|
-
`,eg=ne.lazy(()=>_t(()=>import("./index-B83hIo9e.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(e=>({default:e.Navbar})));function tg(e){return d.jsx(ne.Suspense,{fallback:d.jsx(Jp,{"aria-hidden":!0}),children:d.jsx(Xp,{children:d.jsx(eg,{...e})})})}const rg={},ju=e=>{let t;const r=new Set,n=(m,p)=>{const y=typeof m=="function"?m(t):m;if(!Object.is(y,t)){const _=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({},t,y),r.forEach(A=>A(t,_))}},o=()=>t,f={setState:n,getState:o,getInitialState:()=>h,subscribe:m=>(r.add(m),()=>r.delete(m)),destroy:()=>{(rg?"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,o,f);return f},ng=e=>e?ju(e):ju;var ui={exports:{}},di={},fi={exports:{}},hi={};/**
|
|
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 Lu;function og(){if(Lu)return hi;Lu=1;var e=L2();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function u(p,y){var _=y(),A=n({inst:{value:_,getSnapshot:y}}),g=A[0].inst,S=A[1];return a(function(){g.value=_,g.getSnapshot=y,f(g)&&S({inst:g})},[p,_,y]),o(function(){return f(g)&&S({inst:g}),p(function(){f(g)&&S({inst:g})})},[p]),i(_),_}function f(p){var y=p.getSnapshot;p=p.value;try{var _=y();return!r(p,_)}catch{return!0}}function h(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return hi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,hi}var Mu;function ag(){return Mu||(Mu=1,fi.exports=og()),fi.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 Bu;function sg(){if(Bu)return di;Bu=1;var e=L2(),t=ag();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,o=t.useSyncExternalStore,a=e.useRef,i=e.useEffect,u=e.useMemo,f=e.useDebugValue;return di.useSyncExternalStoreWithSelector=function(h,m,p,y,_){var A=a(null);if(A.current===null){var g={hasValue:!1,value:null};A.current=g}else g=A.current;A=u(function(){function Z(q){if(!b){if(b=!0,I=q,q=y(q),_!==void 0&&g.hasValue){var x=g.value;if(_(x,q))return w=x}return w=q}if(x=w,n(I,q))return x;var U=y(q);return _!==void 0&&_(x,U)?(I=q,x):(I=q,w=U)}var b=!1,I,w,K=p===void 0?null:p;return[function(){return Z(m())},K===null?void 0:function(){return Z(K())}]},[m,p,y,_]);var S=o(h,A[0],A[1]);return i(function(){g.hasValue=!0,g.value=S},[S]),f(S),S},di}var Fu;function ig(){return Fu||(Fu=1,ui.exports=sg()),ui.exports}var cg=ig();const lg=As(cg),pf={},{useDebugValue:ug}=M2,{useSyncExternalStoreWithSelector:dg}=lg;let $u=!1;const fg=e=>e;function hg(e,t=fg,r){(pf?"production":void 0)!=="production"&&r&&!$u&&(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"),$u=!0);const n=dg(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return ug(n),n}const Du=e=>{(pf?"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"?ng(e):e,r=(n,o)=>hg(t,n,o);return Object.assign(r,t),r},Bn=e=>e?Du(e):Du;var vn={},dr={},Mo={exports:{}},mg=Mo.exports,qu;function Os(){return qu||(qu=1,(function(e,t){(function(r,n){n(t)})(mg,(function(r){function n(s){if(s.jsonrpc="2.0",!s.id||typeof s.id!="number"||Math.floor(s.id)!==s.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(s)}`);if(!s.method||typeof s.method!="string"||s.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(s)}`);if(!s.params||typeof s.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(s)}`);return s}var o={};function a(){let s,l;const v=new Promise(((k,M)=>{s=V=>{k(V),v.isPending=!1},l=V=>{M(V),v.isPending=!1}})).catch((k=>Promise.reject(k)));return v.resolve=s,v.reject=l,"finally"in v||(v.finally=k=>{v.then(k),v.catch(k)}),v.isPending=!0,v}Object.defineProperty(o,"__esModule",{value:!0});var i=o.future=a;o.default=a;var u={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(s){(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 ps=="object"&&ps.versions&&ps.versions.node?k=Nc:M&&(k=self);var V=!k.JS_SHA3_NO_COMMON_JS&&s.exports,ae=!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],it=[224,256,384,512],ge=[128,256],St=["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]"}),!ae||!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,P){return function(T){return new He(c,C,c).update(T)[P]()}},Ot=function(c,C,P){return function(T,B){return new He(c,C,B).update(T)[P]()}},Lr=function(c,C,P){return function(T,B,F,$){return Tt["cshake"+c].update(T,B,F,$)[P]()}},vr=function(c,C,P){return function(T,B,F,$){return Tt["kmac"+c].update(T,B,F,$)[P]()}},jt=function(c,C,P,T){for(var B=0;B<St.length;++B){var F=St[B];c[F]=C(P,T,F)}return c},br=function(c,C){var P=et(c,C,"hex");return P.create=function(){return new He(c,C,c)},P.update=function(T){return P.create().update(T)},jt(P,et,c,C)},Yr=[{name:"keccak",padding:[1,256,65536,16777216],bits:it,createMethod:br},{name:"sha3",padding:[6,1536,393216,100663296],bits:it,createMethod:br},{name:"shake",padding:[31,7936,2031616,520093696],bits:ge,createMethod:function(c,C){var P=Ot(c,C,"hex");return P.create=function(T){return new He(c,C,T)},P.update=function(T,B){return P.create(B).update(T)},jt(P,Ot,c,C)}},{name:"cshake",padding:ke,bits:ge,createMethod:function(c,C){var P=Xe[c],T=Lr(c,0,"hex");return T.create=function(B,F,$){return F||$?new He(c,C,B).bytepad([F,$],P):Tt["shake"+c].create(B)},T.update=function(B,F,$,X){return T.create(F,$,X).update(B)},jt(T,Lr,c,C)}},{name:"kmac",padding:ke,bits:ge,createMethod:function(c,C){var P=Xe[c],T=vr(c,0,"hex");return T.create=function(B,F,$){return new Xt(c,C,F).bytepad(["KMAC",$],P).bytepad([B],P)},T.update=function(B,F,$,X){return T.create(B,$,X).update(F)},jt(T,vr,c,C)}}],Tt={},Mr=[],Lt=0;Lt<Yr.length;++Lt)for(var wr=Yr[Lt],ue=wr.bits,Br=0;Br<ue.length;++Br){var Hn=wr.name+"_"+ue[Br];if(Mr.push(Hn),Tt[Hn]=wr.createMethod(ue[Br],wr.padding),wr.name!=="sha3"){var Vn=wr.name+ue[Br];Mr.push(Vn),Tt[Vn]=Tt[Hn]}}function He(c,C,P){this.blocks=[],this.s=[],this.padding=C,this.outputBits=P,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=P>>5,this.extraBytes=(31&P)>>3;for(var T=0;T<50;++T)this.s[T]=0}function Xt(c,C,P){He.call(this,c,C,P)}He.prototype.update=function(c){if(this.finalized)throw new Error("finalize already called");var C,P=typeof c;if(P!=="string"){if(P!=="object")throw new Error(l);if(c===null)throw new Error(l);if(ae&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||ae&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}for(var T,B,F=this.blocks,$=this.byteCount,X=c.length,re=this.blockCount,te=0,pe=this.s;te<X;){if(this.reset)for(this.reset=!1,F[0]=this.block,T=1;T<re+1;++T)F[T]=0;if(C)for(T=this.start;te<X&&T<$;++te)F[T>>2]|=c[te]<<Ne[3&T++];else for(T=this.start;te<X&&T<$;++te)(B=c.charCodeAt(te))<128?F[T>>2]|=B<<Ne[3&T++]:B<2048?(F[T>>2]|=(192|B>>6)<<Ne[3&T++],F[T>>2]|=(128|63&B)<<Ne[3&T++]):B<55296||B>=57344?(F[T>>2]|=(224|B>>12)<<Ne[3&T++],F[T>>2]|=(128|B>>6&63)<<Ne[3&T++],F[T>>2]|=(128|63&B)<<Ne[3&T++]):(B=65536+((1023&B)<<10|1023&c.charCodeAt(++te)),F[T>>2]|=(240|B>>18)<<Ne[3&T++],F[T>>2]|=(128|B>>12&63)<<Ne[3&T++],F[T>>2]|=(128|B>>6&63)<<Ne[3&T++],F[T>>2]|=(128|63&B)<<Ne[3&T++]);if(this.lastByteIndex=T,T>=$){for(this.start=T-$,this.block=F[re],T=0;T<re;++T)pe[T]^=F[T];E(pe),this.reset=!0}else this.start=T}return this},He.prototype.encode=function(c,C){var P=255&c,T=1,B=[P];for(P=255&(c>>=8);P>0;)B.unshift(P),P=255&(c>>=8),++T;return C?B.push(T):B.unshift(T),this.update(B),B.length},He.prototype.encodeString=function(c){var C,P=typeof c;if(P!=="string"){if(P!=="object")throw new Error(l);if(c===null)throw new Error(l);if(ae&&c.constructor===ArrayBuffer)c=new Uint8Array(c);else if(!(Array.isArray(c)||ae&&ArrayBuffer.isView(c)))throw new Error(l);C=!0}var T=0,B=c.length;if(C)T=B;else for(var F=0;F<c.length;++F){var $=c.charCodeAt(F);$<128?T+=1:$<2048?T+=2:$<55296||$>=57344?T+=3:($=65536+((1023&$)<<10|1023&c.charCodeAt(++F)),T+=4)}return T+=this.encode(8*T),this.update(c),T},He.prototype.bytepad=function(c,C){for(var P=this.encode(C),T=0;T<c.length;++T)P+=this.encodeString(c[T]);var B=C-P%C,F=[];return F.length=B,this.update(F),this},He.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var c=this.blocks,C=this.lastByteIndex,P=this.blockCount,T=this.s;if(c[C>>2]|=this.padding[3&C],this.lastByteIndex===this.byteCount)for(c[0]=c[P],C=1;C<P+1;++C)c[C]=0;for(c[P-1]|=2147483648,C=0;C<P;++C)T[C]^=c[C];E(T)}},He.prototype.toString=He.prototype.hex=function(){this.finalize();for(var c,C=this.blockCount,P=this.s,T=this.outputBlocks,B=this.extraBytes,F=0,$=0,X="";$<T;){for(F=0;F<C&&$<T;++F,++$)c=P[F],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];$%C==0&&(E(P),F=0)}return B&&(c=P[F],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},He.prototype.arrayBuffer=function(){this.finalize();var c,C=this.blockCount,P=this.s,T=this.outputBlocks,B=this.extraBytes,F=0,$=0,X=this.outputBits>>3;c=B?new ArrayBuffer(T+1<<2):new ArrayBuffer(X);for(var re=new Uint32Array(c);$<T;){for(F=0;F<C&&$<T;++F,++$)re[$]=P[F];$%C==0&&E(P)}return B&&(re[F]=P[F],c=c.slice(0,X)),c},He.prototype.buffer=He.prototype.arrayBuffer,He.prototype.digest=He.prototype.array=function(){this.finalize();for(var c,C,P=this.blockCount,T=this.s,B=this.outputBlocks,F=this.extraBytes,$=0,X=0,re=[];X<B;){for($=0;$<P&&X<B;++$,++X)c=X<<2,C=T[$],re[c]=255&C,re[c+1]=C>>8&255,re[c+2]=C>>16&255,re[c+3]=C>>24&255;X%P==0&&E(T)}return F&&(c=X<<2,C=T[$],re[c]=255&C,F>1&&(re[c+1]=C>>8&255),F>2&&(re[c+2]=C>>16&255)),re},Xt.prototype=new He,Xt.prototype.finalize=function(){return this.encode(this.outputBits,!0),He.prototype.finalize.call(this)};var E=function(c){var C,P,T,B,F,$,X,re,te,pe,Ie,je,De,tt,ot,Fe,Ve,ht,Fr,Qr,Jr,$t,_r,At,pt,Je,ga,ya,va,ba,wa,_a,Ca,Ea,xa,Sa,Ta,Aa,ka,Ia,Ra,Na,Pa,Oa,ja,La,Ma,Ba,Fa,$a,Da,qa,Ua,Ha,Va,za,Ga,Wa,Za,Ka,Ya,Qa,Ja;for(T=0;T<48;T+=2)B=c[0]^c[10]^c[20]^c[30]^c[40],F=c[1]^c[11]^c[21]^c[31]^c[41],$=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])^($<<1|X>>>31),P=(De=c[9]^c[19]^c[29]^c[39]^c[49])^(X<<1|$>>>31),c[0]^=C,c[1]^=P,c[10]^=C,c[11]^=P,c[20]^=C,c[21]^=P,c[30]^=C,c[31]^=P,c[40]^=C,c[41]^=P,C=B^(re<<1|te>>>31),P=F^(te<<1|re>>>31),c[2]^=C,c[3]^=P,c[12]^=C,c[13]^=P,c[22]^=C,c[23]^=P,c[32]^=C,c[33]^=P,c[42]^=C,c[43]^=P,C=$^(pe<<1|Ie>>>31),P=X^(Ie<<1|pe>>>31),c[4]^=C,c[5]^=P,c[14]^=C,c[15]^=P,c[24]^=C,c[25]^=P,c[34]^=C,c[35]^=P,c[44]^=C,c[45]^=P,C=re^(je<<1|De>>>31),P=te^(De<<1|je>>>31),c[6]^=C,c[7]^=P,c[16]^=C,c[17]^=P,c[26]^=C,c[27]^=P,c[36]^=C,c[37]^=P,c[46]^=C,c[47]^=P,C=pe^(B<<1|F>>>31),P=Ie^(F<<1|B>>>31),c[8]^=C,c[9]^=P,c[18]^=C,c[19]^=P,c[28]^=C,c[29]^=P,c[38]^=C,c[39]^=P,c[48]^=C,c[49]^=P,tt=c[0],ot=c[1],La=c[11]<<4|c[10]>>>28,Ma=c[10]<<4|c[11]>>>28,ya=c[20]<<3|c[21]>>>29,va=c[21]<<3|c[20]>>>29,Ka=c[31]<<9|c[30]>>>23,Ya=c[30]<<9|c[31]>>>23,Na=c[40]<<18|c[41]>>>14,Pa=c[41]<<18|c[40]>>>14,Ea=c[2]<<1|c[3]>>>31,xa=c[3]<<1|c[2]>>>31,Fe=c[13]<<12|c[12]>>>20,Ve=c[12]<<12|c[13]>>>20,Ba=c[22]<<10|c[23]>>>22,Fa=c[23]<<10|c[22]>>>22,ba=c[33]<<13|c[32]>>>19,wa=c[32]<<13|c[33]>>>19,Qa=c[42]<<2|c[43]>>>30,Ja=c[43]<<2|c[42]>>>30,Ha=c[5]<<30|c[4]>>>2,Va=c[4]<<30|c[5]>>>2,Sa=c[14]<<6|c[15]>>>26,Ta=c[15]<<6|c[14]>>>26,ht=c[25]<<11|c[24]>>>21,Fr=c[24]<<11|c[25]>>>21,$a=c[34]<<15|c[35]>>>17,Da=c[35]<<15|c[34]>>>17,_a=c[45]<<29|c[44]>>>3,Ca=c[44]<<29|c[45]>>>3,At=c[6]<<28|c[7]>>>4,pt=c[7]<<28|c[6]>>>4,za=c[17]<<23|c[16]>>>9,Ga=c[16]<<23|c[17]>>>9,Aa=c[26]<<25|c[27]>>>7,ka=c[27]<<25|c[26]>>>7,Qr=c[36]<<21|c[37]>>>11,Jr=c[37]<<21|c[36]>>>11,qa=c[47]<<24|c[46]>>>8,Ua=c[46]<<24|c[47]>>>8,Oa=c[8]<<27|c[9]>>>5,ja=c[9]<<27|c[8]>>>5,Je=c[18]<<20|c[19]>>>12,ga=c[19]<<20|c[18]>>>12,Wa=c[29]<<7|c[28]>>>25,Za=c[28]<<7|c[29]>>>25,Ia=c[38]<<8|c[39]>>>24,Ra=c[39]<<8|c[38]>>>24,$t=c[48]<<14|c[49]>>>18,_r=c[49]<<14|c[48]>>>18,c[0]=tt^~Fe&ht,c[1]=ot^~Ve&Fr,c[10]=At^~Je&ya,c[11]=pt^~ga&va,c[20]=Ea^~Sa&Aa,c[21]=xa^~Ta&ka,c[30]=Oa^~La&Ba,c[31]=ja^~Ma&Fa,c[40]=Ha^~za&Wa,c[41]=Va^~Ga&Za,c[2]=Fe^~ht&Qr,c[3]=Ve^~Fr&Jr,c[12]=Je^~ya&ba,c[13]=ga^~va&wa,c[22]=Sa^~Aa&Ia,c[23]=Ta^~ka&Ra,c[32]=La^~Ba&$a,c[33]=Ma^~Fa&Da,c[42]=za^~Wa&Ka,c[43]=Ga^~Za&Ya,c[4]=ht^~Qr&$t,c[5]=Fr^~Jr&_r,c[14]=ya^~ba&_a,c[15]=va^~wa&Ca,c[24]=Aa^~Ia&Na,c[25]=ka^~Ra&Pa,c[34]=Ba^~$a&qa,c[35]=Fa^~Da&Ua,c[44]=Wa^~Ka&Qa,c[45]=Za^~Ya&Ja,c[6]=Qr^~$t&tt,c[7]=Jr^~_r&ot,c[16]=ba^~_a&At,c[17]=wa^~Ca&pt,c[26]=Ia^~Na&Ea,c[27]=Ra^~Pa&xa,c[36]=$a^~qa&Oa,c[37]=Da^~Ua&ja,c[46]=Ka^~Qa&Ha,c[47]=Ya^~Ja&Va,c[8]=$t^~tt&Fe,c[9]=_r^~ot&Ve,c[18]=_a^~At&Je,c[19]=Ca^~pt&ga,c[28]=Na^~Ea&Sa,c[29]=Pa^~xa&Ta,c[38]=qa^~Oa&La,c[39]=Ua^~ja&Ma,c[48]=Qa^~Ha&za,c[49]=Ja^~Va&Ga,c[0]^=Ft[T],c[1]^=Ft[T+1]};if(V)s.exports=Tt;else for(Lt=0;Lt<Mr.length;++Lt)k[Mr[Lt]]=Tt[Mr[Lt]]})()})(u);var f=u.exports,h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,m=Math.ceil,p=Math.floor,y="[BigNumber Error] ",_=y+"Number primitive has more than 15 significant digits: ",A=1e14,g=14,S=9007199254740991,Z=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,I=1e9;function w(s){var l=0|s;return s>0||s===l?l:l-1}function K(s){for(var l,v,k=1,M=s.length,V=s[0]+"";k<M;){for(l=s[k++]+"",v=g-l.length;v--;l="0"+l);V+=l}for(M=V.length;V.charCodeAt(--M)===48;);return V.slice(0,M+1||1)}function q(s,l){var v,k,M=s.c,V=l.c,ae=s.s,me=l.s,ke=s.e,Ne=l.e;if(!ae||!me)return null;if(v=M&&!M[0],k=V&&!V[0],v||k)return v?k?0:-me:ae;if(ae!=me)return ae;if(v=ae<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,ae=0;ae<me;ae++)if(M[ae]!=V[ae])return M[ae]>V[ae]^v?1:-1;return ke==Ne?0:ke>Ne^v?1:-1}function x(s,l,v,k){if(s<l||s>v||s!==p(s))throw Error(y+(k||"Argument")+(typeof s=="number"?s<l||s>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(s))}function U(s){var l=s.c.length-1;return w(s.e/g)==l&&s.c[l]%2!=0}function Q(s,l){return(s.length>1?s.charAt(0)+"."+s.slice(1):s)+(l<0?"e":"e+")+l}function ee(s,l,v){var k,M;if(l<0){for(M=v+".";++l;M+=v);s=M+s}else if(++l>(k=s.length)){for(M=v,l-=k;--l;M+=v);s+=M}else l<k&&(s=s.slice(0,l)+"."+s.slice(l));return s}var oe=(function s(l){var v,k,M,V,ae,me,ke,Ne,Ft,it,ge=ue.prototype={constructor:ue,toString:null,valueOf:null},St=new ue(1),Xe=20,et=4,Ot=-7,Lr=21,vr=-1e7,jt=1e7,br=!1,Yr=1,Tt=0,Mr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Lt="0123456789abcdefghijklmnopqrstuvwxyz",wr=!0;function ue(E,c){var C,P,T,B,F,$,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(($=typeof E=="number")&&0*E==0){if(te.s=1/E<0?(E=-E,-1):1,E===~~E){for(B=0,F=E;F>=10;F/=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,$);te.s=re.charCodeAt(0)==45?(re=re.slice(1),-1):1}(B=re.indexOf("."))>-1&&(re=re.replace(".","")),(F=re.search(/e/i))>0?(B<0&&(B=F),B+=+re.slice(F+1),re=re.substring(0,F)):B<0&&(B=re.length)}else{if(x(c,2,Lt.length,"Base"),c==10&&wr)return He(te=new ue(E),Xe+te.e+1,et);if(re=String(E),$=typeof E=="number"){if(0*E!=0)return M(te,re,$,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=F=0,X=re.length;F<X;F++)if(C.indexOf(P=re.charAt(F))<0){if(P=="."){if(F>B){B=X;continue}}else if(!T&&(re==re.toUpperCase()&&(re=re.toLowerCase())||re==re.toLowerCase()&&(re=re.toUpperCase()))){T=!0,F=-1,B=0;continue}return M(te,String(E),$,c)}$=!1,(B=(re=k(re,c,10,te.s)).indexOf("."))>-1?re=re.replace(".",""):B=re.length}for(F=0;re.charCodeAt(F)===48;F++);for(X=re.length;re.charCodeAt(--X)===48;);if(re=re.slice(F,++X)){if(X-=F,$&&ue.DEBUG&&X>15&&(E>S||E!==p(E)))throw Error(_+te.s*E);if((B=B-F-1)>jt)te.c=te.e=null;else if(B<vr)te.c=[te.e=0];else{if(te.e=B,te.c=[],F=(B+1)%g,B<0&&(F+=g),F<X){for(F&&te.c.push(+re.slice(0,F)),X-=g;F<X;)te.c.push(+re.slice(F,F+=g));F=g-(re=re.slice(F)).length}else F-=X;for(;F--;re+="0");te.c.push(+re)}}else te.c=[te.e=0]}function Br(E,c,C,P){var T,B,F,$,X;if(C==null?C=et:x(C,0,8),!E.c)return E.toString();if(T=E.c[0],F=E.e,c==null)X=K(E.c),X=P==1||P==2&&(F<=Ot||F>=Lr)?Q(X,F):ee(X,F,"0");else if(B=(E=He(new ue(E),c,C)).e,$=(X=K(E.c)).length,P==1||P==2&&(c<=B||B<=Ot)){for(;$<c;X+="0",$++);X=Q(X,B)}else if(c-=F,X=ee(X,B,"0"),B+1>$){if(--c>0)for(X+=".";c--;X+="0");}else if((c+=B-$)>0)for(B+1==$&&(X+=".");c--;X+="0");return E.s<0&&T?"-"+X:X}function Hn(E,c){for(var C,P=1,T=new ue(E[0]);P<E.length;P++){if(!(C=new ue(E[P])).s){T=C;break}c.call(T,C)&&(T=C)}return T}function Vn(E,c,C){for(var P=1,T=c.length;!c[--T];c.pop());for(T=c[0];T>=10;T/=10,P++);return(C=P+C*g-1)>jt?E.c=E.e=null:C<vr?E.c=[E.e=0]:(E.e=C,E.c=c),E}function He(E,c,C,P){var T,B,F,$,X,re,te,pe=E.c,Ie=Z;if(pe){e:{for(T=1,$=pe[0];$>=10;$/=10,T++);if((B=c-T)<0)B+=g,F=c,te=(X=pe[re=0])/Ie[T-F-1]%10|0;else if((re=m((B+1)/g))>=pe.length){if(!P)break e;for(;pe.length<=re;pe.push(0));X=te=0,T=1,F=(B%=g)-g+1}else{for(X=$=pe[re],T=1;$>=10;$/=10,T++);te=(F=(B%=g)-g+T)<0?0:X/Ie[T-F-1]%10|0}if(P=P||c<0||pe[re+1]!=null||(F<0?X:X%Ie[T-F-1]),P=C<4?(te||P)&&(C==0||C==(E.s<0?3:2)):te>5||te==5&&(C==4||P||C==6&&(B>0?F>0?X/Ie[T-F]:0:pe[re-1])%10&1||C==(E.s<0?8:7)),c<1||!pe[0])return pe.length=0,P?(c-=E.e+1,pe[0]=Ie[(g-c%g)%g],E.e=-c||0):pe[0]=E.e=0,E;if(B==0?(pe.length=re,$=1,re--):(pe.length=re+1,$=Ie[g-B],pe[re]=F>0?p(X/Ie[T-F]%Ie[F])*$:0),P)for(;;){if(re==0){for(B=1,F=pe[0];F>=10;F/=10,B++);for(F=pe[0]+=$,$=1;F>=10;F/=10,$++);B!=$&&(E.e++,pe[0]==A&&(pe[0]=1));break}if(pe[re]+=$,pe[re]!=A)break;pe[re--]=0,$=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 Xt(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=s,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(y+"Object expected: "+E);if(E.hasOwnProperty(c="DECIMAL_PLACES")&&(x(C=E[c],0,I,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],-I,0,c),x(C[1],0,I,c),Ot=C[0],Lr=C[1]):(x(C,-I,I,c),Ot=-(Lr=C<0?-C:C))),E.hasOwnProperty(c="RANGE"))if((C=E[c])&&C.pop)x(C[0],-I,-1,c),x(C[1],1,I,c),vr=C[0],jt=C[1];else{if(x(C,-I,I,c),!C)throw Error(y+c+" cannot be zero: "+C);vr=-(jt=C<0?-C:C)}if(E.hasOwnProperty(c="CRYPTO")){if((C=E[c])!==!!C)throw Error(y+c+" not true or false: "+C);if(C){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw br=!C,Error(y+"crypto unavailable");br=C}else br=C}if(E.hasOwnProperty(c="MODULO_MODE")&&(x(C=E[c],0,9,c),Yr=C),E.hasOwnProperty(c="POW_PRECISION")&&(x(C=E[c],0,I,c),Tt=C),E.hasOwnProperty(c="FORMAT")){if(typeof(C=E[c])!="object")throw Error(y+c+" not an object: "+C);Mr=C}if(E.hasOwnProperty(c="ALPHABET")){if(typeof(C=E[c])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(C))throw Error(y+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:Yr,POW_PRECISION:Tt,FORMAT:Mr,ALPHABET:Lt}},ue.isBigNumber=function(E){if(!E||E._isBigNumber!==!0)return!1;if(!ue.DEBUG)return!0;var c,C,P=E.c,T=E.e,B=E.s;e:if({}.toString.call(P)=="[object Array]"){if((B===1||B===-1)&&T>=-I&&T<=I&&T===p(T)){if(P[0]===0){if(T===0&&P.length===1)return!0;break e}if((c=(T+1)%g)<1&&(c+=g),String(P[0]).length==c){for(c=0;c<P.length;c++)if((C=P[c])<0||C>=A||C!==p(C))break e;if(C!==0)return!0}}}else if(P===null&&T===null&&(B===null||B===1||B===-1))return!0;throw Error(y+"Invalid BigNumber: "+E)},ue.maximum=ue.max=function(){return Hn(arguments,ge.lt)},ue.minimum=ue.min=function(){return Hn(arguments,ge.gt)},ue.random=(V=9007199254740992,ae=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,P,T,B,F=0,$=[],X=new ue(St);if(E==null?E=Xe:x(E,0,I),T=m(E/g),br)if(crypto.getRandomValues){for(c=crypto.getRandomValues(new Uint32Array(T*=2));F<T;)(B=131072*c[F]+(c[F+1]>>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),c[F]=C[0],c[F+1]=C[1]):($.push(B%1e14),F+=2);F=T/2}else{if(!crypto.randomBytes)throw br=!1,Error(y+"crypto unavailable");for(c=crypto.randomBytes(T*=7);F<T;)(B=281474976710656*(31&c[F])+1099511627776*c[F+1]+4294967296*c[F+2]+16777216*c[F+3]+(c[F+4]<<16)+(c[F+5]<<8)+c[F+6])>=9e15?crypto.randomBytes(7).copy(c,F):($.push(B%1e14),F+=7);F=T/7}if(!br)for(;F<T;)(B=ae())<9e15&&($[F++]=B%1e14);for(T=$[--F],E%=g,T&&E&&(B=Z[g-E],$[F]=p(T/B)*B);$[F]===0;$.pop(),F--);if(F<0)$=[P=0];else{for(P=-1;$[0]===0;$.splice(0,1),P-=g);for(F=1,B=$[0];B>=10;B/=10,F++);F<g&&(P-=g-F)}return X.e=P,X.c=$,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,P,T,B){for(var F,$,X=[0],re=0,te=C.length;re<te;){for($=X.length;$--;X[$]*=P);for(X[0]+=B.indexOf(C.charAt(re++)),F=0;F<X.length;F++)X[F]>T-1&&(X[F+1]==null&&(X[F+1]=0),X[F+1]+=X[F]/T|0,X[F]%=T)}return X.reverse()}return function(C,P,T,B,F){var $,X,re,te,pe,Ie,je,De,tt=C.indexOf("."),ot=Xe,Fe=et;for(tt>=0&&(te=Tt,Tt=0,C=C.replace(".",""),Ie=(De=new ue(P)).pow(C.length-tt),Tt=te,De.c=c(ee(K(Ie.c),Ie.e,"0"),10,T,E),De.e=De.c.length),re=te=(je=c(C,P,T,F?($=Lt,E):($=E,Lt))).length;je[--te]==0;je.pop());if(!je[0])return $.charAt(0);if(tt<0?--re:(Ie.c=je,Ie.e=re,Ie.s=B,je=(Ie=v(Ie,De,ot,Fe,T)).c,pe=Ie.r,re=Ie.e),tt=je[X=re+ot+1],te=T/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($.charAt(1),-ot,$.charAt(0)):$.charAt(0);else{if(je.length=X,pe)for(--T;++je[--X]>T;)je[X]=0,X||(++re,je=[1].concat(je));for(te=je.length;!je[--te];);for(tt=0,C="";tt<=te;C+=$.charAt(je[tt++]));C=ee(C,re,$.charAt(0))}return C}})(),v=(function(){function E(P,T,B){var F,$,X,re,te=0,pe=P.length,Ie=T%b,je=T/b|0;for(P=P.slice();pe--;)te=(($=Ie*(X=P[pe]%b)+(F=je*X+(re=P[pe]/b|0)*Ie)%b*b+te)/B|0)+(F/b|0)+je*re,P[pe]=$%B;return te&&(P=[te].concat(P)),P}function c(P,T,B,F){var $,X;if(B!=F)X=B>F?1:-1;else for($=X=0;$<B;$++)if(P[$]!=T[$]){X=P[$]>T[$]?1:-1;break}return X}function C(P,T,B,F){for(var $=0;B--;)P[B]-=$,$=P[B]<T[B]?1:0,P[B]=$*F+P[B]-T[B];for(;!P[0]&&P.length>1;P.splice(0,1));}return function(P,T,B,F,$){var X,re,te,pe,Ie,je,De,tt,ot,Fe,Ve,ht,Fr,Qr,Jr,$t,_r,At=P.s==T.s?1:-1,pt=P.c,Je=T.c;if(!(pt&&pt[0]&&Je&&Je[0]))return new ue(P.s&&T.s&&(pt?!Je||pt[0]!=Je[0]:Je)?pt&&pt[0]==0||!Je?0*At:At/0:NaN);for(ot=(tt=new ue(At)).c=[],At=B+(re=P.e-T.e)+1,$||($=A,re=w(P.e/g)-w(T.e/g),At=At/g|0),te=0;Je[te]==(pt[te]||0);te++);if(Je[te]>(pt[te]||0)&&re--,At<0)ot.push(1),pe=!0;else{for(Qr=pt.length,$t=Je.length,te=0,At+=2,(Ie=p($/(Je[0]+1)))>1&&(Je=E(Je,Ie,$),pt=E(pt,Ie,$),$t=Je.length,Qr=pt.length),Fr=$t,Ve=(Fe=pt.slice(0,$t)).length;Ve<$t;Fe[Ve++]=0);_r=Je.slice(),_r=[0].concat(_r),Jr=Je[0],Je[1]>=$/2&&Jr++;do{if(Ie=0,(X=c(Je,Fe,$t,Ve))<0){if(ht=Fe[0],$t!=Ve&&(ht=ht*$+(Fe[1]||0)),(Ie=p(ht/Jr))>1)for(Ie>=$&&(Ie=$-1),De=(je=E(Je,Ie,$)).length,Ve=Fe.length;c(je,Fe,De,Ve)==1;)Ie--,C(je,$t<De?_r:Je,De,$),De=je.length,X=1;else Ie==0&&(X=Ie=1),De=(je=Je.slice()).length;if(De<Ve&&(je=[0].concat(je)),C(Fe,je,Ve,$),Ve=Fe.length,X==-1)for(;c(Je,Fe,$t,Ve)<1;)Ie++,C(Fe,$t<Ve?_r:Je,Ve,$),Ve=Fe.length}else X===0&&(Ie++,Fe=[0]);ot[te++]=Ie,Fe[0]?Fe[Ve++]=pt[Fr]||0:(Fe=[pt[Fr]],Ve=1)}while((Fr++<Qr||Fe[0]!=null)&&At--);pe=Fe[0]!=null,ot[0]||ot.splice(0,1)}if($==A){for(te=1,At=ot[0];At>=10;At/=10,te++);He(tt,B+(tt.e=te+re*g-1)+1,F,pe)}else tt.e=re,tt.r=+pe;return tt}})(),me=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ke=/^([^.]+)\.$/,Ne=/^\.([^.]+)$/,Ft=/^-?(Infinity|NaN)$/,it=/^\s*\+(?=[\w.])|^\s+|\s+$/g,M=function(E,c,C,P){var T,B=C?c:c.replace(it,"");if(Ft.test(B))E.s=isNaN(B)?null:B<0?-1:1;else{if(!C&&(B=B.replace(me,(function(F,$,X){return T=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,P&&P!=T?F:$})),P&&(T=P,B=B.replace(ke,"$1").replace(Ne,"0.$1")),c!=B))return new ue(B,T);if(ue.DEBUG)throw Error(y+"Not a"+(P?" base "+P:"")+" 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 q(this,new ue(E,c))},ge.decimalPlaces=ge.dp=function(E,c){var C,P,T,B=this;if(E!=null)return x(E,0,I),c==null?c=et:x(c,0,8),He(new ue(B),E+B.e+1,c);if(!(C=B.c))return null;if(P=((T=C.length-1)-w(this.e/g))*g,T=C[T])for(;T%10==0;T/=10,P--);return P<0&&(P=0),P},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,P,T,B,F,$,X,re,te=this;if((E=new ue(E)).c&&!E.isInteger())throw Error(y+"Exponent not an integer: "+Xt(E));if(c!=null&&(c=new ue(c)),F=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(+Xt(te),F?E.s*(2-U(E)):+Xt(E))),c?re.mod(c):re;if($=E.s<0,c){if(c.c?!c.c[0]:!c.s)return new ue(NaN);(P=!$&&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||F&&te.c[1]>=24e7:te.c[0]<8e13||F&&te.c[0]<=9999975e7)))return B=te.s<0&&U(E)?-0:0,te.e>-1&&(B=1/B),new ue($?1/B:B);Tt&&(B=m(Tt/g+2))}for(F?(C=new ue(.5),$&&(E.s=1),X=U(E)):X=(T=Math.abs(+Xt(E)))%2,re=new ue(St);;){if(X){if(!(re=re.times(te)).c)break;B?re.c.length>B&&(re.c.length=B):P&&(re=re.mod(c))}if(T){if((T=p(T/2))===0)break;X=T%2}else if(He(E=E.times(C),E.e+1,1),E.e>14)X=U(E);else{if((T=+Xt(E))==0)break;X=T%2}te=te.times(te),B?te.c&&te.c.length>B&&(te.c.length=B):P&&(te=te.mod(c))}return P?re:($&&(re=St.div(re)),c?re.mod(c):B?He(re,Tt,et,void 0):re)},ge.integerValue=function(E){var c=new ue(this);return E==null?E=et:x(E,0,8),He(c,c.e+1,E)},ge.isEqualTo=ge.eq=function(E,c){return q(this,new ue(E,c))===0},ge.isFinite=function(){return!!this.c},ge.isGreaterThan=ge.gt=function(E,c){return q(this,new ue(E,c))>0},ge.isGreaterThanOrEqualTo=ge.gte=function(E,c){return(c=q(this,new ue(E,c)))===1||c===0},ge.isInteger=function(){return!!this.c&&w(this.e/g)>this.c.length-2},ge.isLessThan=ge.lt=function(E,c){return q(this,new ue(E,c))<0},ge.isLessThanOrEqualTo=ge.lte=function(E,c){return(c=q(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,P,T,B,F=this,$=F.s;if(c=(E=new ue(E,c)).s,!$||!c)return new ue(NaN);if($!=c)return E.s=-c,F.plus(E);var X=F.e/g,re=E.e/g,te=F.c,pe=E.c;if(!X||!re){if(!te||!pe)return te?(E.s=-c,E):new ue(pe?F:NaN);if(!te[0]||!pe[0])return pe[0]?(E.s=-c,E):new ue(te[0]?F:et==3?-0:0)}if(X=w(X),re=w(re),te=te.slice(),$=X-re){for((B=$<0)?($=-$,T=te):(re=X,T=pe),T.reverse(),c=$;c--;T.push(0));T.reverse()}else for(P=(B=($=te.length)<(c=pe.length))?$:c,$=c=0;c<P;c++)if(te[c]!=pe[c]){B=te[c]<pe[c];break}if(B&&(T=te,te=pe,pe=T,E.s=-E.s),(c=(P=pe.length)-(C=te.length))>0)for(;c--;te[C++]=0);for(c=A-1;P>$;){if(te[--P]<pe[P]){for(C=P;C&&!te[--C];te[C]=c);--te[C],te[P]+=A}te[P]-=pe[P]}for(;te[0]==0;te.splice(0,1),--re);return te[0]?Vn(E,te,re):(E.s=et==3?-1:1,E.c=[E.e=0],E)},ge.modulo=ge.mod=function(E,c){var C,P,T=this;return E=new ue(E,c),!T.c||!E.s||E.c&&!E.c[0]?new ue(NaN):!E.c||T.c&&!T.c[0]?new ue(T):(Yr==9?(P=E.s,E.s=1,C=v(T,E,0,3),E.s=P,C.s*=P):C=v(T,E,0,Yr),(E=T.minus(C.times(E))).c[0]||Yr!=1||(E.s=T.s),E)},ge.multipliedBy=ge.times=function(E,c){var C,P,T,B,F,$,X,re,te,pe,Ie,je,De,tt,ot,Fe=this,Ve=Fe.c,ht=(E=new ue(E,c)).c;if(!(Ve&&ht&&Ve[0]&&ht[0]))return!Fe.s||!E.s||Ve&&!Ve[0]&&!ht||ht&&!ht[0]&&!Ve?E.c=E.e=E.s=null:(E.s*=Fe.s,Ve&&ht?(E.c=[0],E.e=0):E.c=E.e=null),E;for(P=w(Fe.e/g)+w(E.e/g),E.s*=Fe.s,(X=Ve.length)<(pe=ht.length)&&(De=Ve,Ve=ht,ht=De,T=X,X=pe,pe=T),T=X+pe,De=[];T--;De.push(0));for(tt=A,ot=b,T=pe;--T>=0;){for(C=0,Ie=ht[T]%ot,je=ht[T]/ot|0,B=T+(F=X);B>T;)C=((re=Ie*(re=Ve[--F]%ot)+($=je*re+(te=Ve[F]/ot|0)*Ie)%ot*ot+De[B]+C)/tt|0)+($/ot|0)+je*te,De[B--]=re%tt;De[B]=C}return C?++P:De.splice(0,1),Vn(E,De,P)},ge.negated=function(){var E=new ue(this);return E.s=-E.s||null,E},ge.plus=function(E,c){var C,P=this,T=P.s;if(c=(E=new ue(E,c)).s,!T||!c)return new ue(NaN);if(T!=c)return E.s=-c,P.minus(E);var B=P.e/g,F=E.e/g,$=P.c,X=E.c;if(!B||!F){if(!$||!X)return new ue(T/0);if(!$[0]||!X[0])return X[0]?E:new ue($[0]?P:0*T)}if(B=w(B),F=w(F),$=$.slice(),T=B-F){for(T>0?(F=B,C=X):(T=-T,C=$),C.reverse();T--;C.push(0));C.reverse()}for((T=$.length)-(c=X.length)<0&&(C=X,X=$,$=C,c=T),T=0;c;)T=($[--c]=$[c]+X[c]+T)/A|0,$[c]=A===$[c]?0:$[c]%A;return T&&($=[T].concat($),++F),Vn(E,$,F)},ge.precision=ge.sd=function(E,c){var C,P,T,B=this;if(E!=null&&E!==!!E)return x(E,1,I),c==null?c=et:x(c,0,8),He(new ue(B),E,c);if(!(C=B.c))return null;if(P=(T=C.length-1)*g+1,T=C[T]){for(;T%10==0;T/=10,P--);for(T=C[0];T>=10;T/=10,P++);}return E&&B.e+1>P&&(P=B.e+1),P},ge.shiftedBy=function(E){return x(E,-9007199254740991,S),this.times("1e"+E)},ge.squareRoot=ge.sqrt=function(){var E,c,C,P,T,B=this,F=B.c,$=B.s,X=B.e,re=Xe+4,te=new ue("0.5");if($!==1||!F||!F[0])return new ue(!$||$<0&&(!F||F[0])?NaN:F?B:1/0);if(($=Math.sqrt(+Xt(B)))==0||$==1/0?(((c=K(F)).length+X)%2==0&&(c+="0"),$=Math.sqrt(+c),X=w((X+1)/2)-(X<0||X%2),C=new ue(c=$==1/0?"5e"+X:(c=$.toExponential()).slice(0,c.indexOf("e")+1)+X)):C=new ue($+""),C.c[0]){for(($=(X=C.e)+re)<3&&($=0);;)if(T=C,C=te.times(T.plus(v(B,T,re,1))),K(T.c).slice(0,$)===(c=K(C.c)).slice(0,$)){if(C.e<X&&--$,(c=c.slice($-3,$+1))!="9999"&&(P||c!="4999")){+c&&(+c.slice(1)||c.charAt(0)!="5")||(He(C,C.e+Xe+2,1),E=!C.times(C).eq(B));break}if(!P&&(He(T,T.e+Xe+2,0),T.times(T).eq(B))){C=T;break}re+=4,$+=4,P=1}}return He(C,C.e+Xe+1,et,E)},ge.toExponential=function(E,c){return E!=null&&(x(E,0,I),E++),Br(this,E,c,1)},ge.toFixed=function(E,c){return E!=null&&(x(E,0,I),E=E+this.e+1),Br(this,E,c)},ge.toFormat=function(E,c,C){var P,T=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(y+"Argument not an object: "+C);if(P=T.toFixed(E,c),T.c){var B,F=P.split("."),$=+C.groupSize,X=+C.secondaryGroupSize,re=C.groupSeparator||"",te=F[0],pe=F[1],Ie=T.s<0,je=Ie?te.slice(1):te,De=je.length;if(X&&(B=$,$=X,X=B,De-=B),$>0&&De>0){for(B=De%$||$,te=je.substr(0,B);B<De;B+=$)te+=re+je.substr(B,$);X>0&&(te+=re+je.slice(B)),Ie&&(te="-"+te)}P=pe?te+(C.decimalSeparator||"")+((X=+C.fractionGroupSize)?pe.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):pe):te}return(C.prefix||"")+P+(C.suffix||"")},ge.toFraction=function(E){var c,C,P,T,B,F,$,X,re,te,pe,Ie,je=this,De=je.c;if(E!=null&&(!($=new ue(E)).isInteger()&&($.c||$.s!==1)||$.lt(St)))throw Error(y+"Argument "+($.isInteger()?"out of range: ":"not an integer: ")+Xt($));if(!De)return new ue(je);for(c=new ue(St),re=C=new ue(St),P=X=new ue(St),Ie=K(De),B=c.e=Ie.length-je.e-1,c.c[0]=Z[(F=B%g)<0?g+F:F],E=!E||$.comparedTo(c)>0?B>0?c:re:$,F=jt,jt=1/0,$=new ue(Ie),X.c[0]=0;te=v($,c,0,1),(T=C.plus(te.times(P))).comparedTo(E)!=1;)C=P,P=T,re=X.plus(te.times(T=re)),X=T,c=$.minus(te.times(T=c)),$=T;return T=v(E.minus(C),P,0,1),X=X.plus(T.times(re)),C=C.plus(T.times(P)),X.s=re.s=je.s,pe=v(re,P,B*=2,et).minus(je).abs().comparedTo(v(X,C,B,et).minus(je).abs())<1?[re,P]:[X,C],jt=F,pe},ge.toNumber=function(){return+Xt(this)},ge.toPrecision=function(E,c){return E!=null&&x(E,1,I),Br(this,E,c,2)},ge.toString=function(E){var c,C=this,P=C.s,T=C.e;return T===null?P?(c="Infinity",P<0&&(c="-"+c)):c="NaN":(E==null?c=T<=Ot||T>=Lr?Q(K(C.c),T):ee(K(C.c),T,"0"):E===10&&wr?c=ee(K((C=He(new ue(C),Xe+T+1,et)).c),C.e,"0"):(x(E,2,Lt.length,"Base"),c=k(ee(K(C.c),T,"0"),10,E,P,!0)),P<0&&C.c[0]&&(c="-"+c)),c},ge.valueOf=ge.toJSON=function(){return Xt(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:oe.ROUND_DOWN};function L(s){return new TextEncoder().encode(s)}function N(s){return typeof s=="string"?N(H(s)):new TextDecoder().decode(s)}oe.config(J);const O="UNKNOWN_ERROR",z="INVALID_ARGUMENT";function D(s,l=O,v={}){const k=[];Object.keys(v).forEach((ae=>{try{k.push(ae+"="+JSON.stringify(v[ae]))}catch{k.push(ae+"="+JSON.stringify(v[ae].toString()))}}));const M=s;k.length&&(s+=" ("+k.join(", ")+")");const V=new Error(s);return V.reason=M,V.code=l,Object.keys(v).forEach((function(ae){V[ae]=v[ae]})),V}function H(s){if(typeof s!="string")throw new Error("hexToBytes only accept strings, got: "+typeof s);if(s.substr(0,2)==="0x")return H(s.substr(2));const l=new Uint8Array(Math.ceil(s.length/2));let v=0;for(let k=0;k<s.length;k+=2){const M=parseInt(s.substr(k,2),16);if(isNaN(M))throw new Error("Cannot read hex string:"+JSON.stringify(s));l[v]=M,v++}return l}function R(s){return Array.from(s).map((l=>l.toString(16).padStart(2,"0"))).join("")}function j(s,l){if(typeof s=="string"){if(l&&l.encoding==="hex"&&typeof s=="string"){let v=s;v.length>2&&v.substr(0,2)==="0x"&&(v=v.substr(2));const k=H(v);return f.keccak256(k)}return f.keccak256(L(s))}return f.keccak256(s)}const G={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(s,l,v){return new Array(l-s.length+1).join(v||"0")+s}function ce(s){let l="",v=0;const k=s.length;for(s.substring(0,2)==="0x"&&(v=2);v<k;v+=2){const M=parseInt(s.substr(v,2),16);l+=String.fromCharCode(M)}return l}function ie(s){return zt(s)&&s.name&&s.name.indexOf("(")!==-1?s.name:s.name+"("+de(!1,s.inputs||[]).join(",")+")"}function le(...s){const l=s.reduce(((M,V)=>M+V.length),0),v=new Uint8Array(l);let k=0;for(const M of s)v.set(M,k),k+=M.length;return v}function de(s,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 ae=de(s,k.components);v.push("("+ae.join(",")+")"+M)}else v.push(k.type)})),v}function Re(s){const l=s.indexOf("("),v=s.indexOf(")");return l!==-1&&v!==-1?s.substr(0,l):s}function we(s){const l=s.indexOf("("),v=s.indexOf(")");return l!==-1&&v!==-1?s.substr(l+1,v-l-1).replace(" ",""):""}function Ee(s){return s==null?s:Be(s).toNumber()}function ye(s){return Be(s).toNumber()}function ze(s){return Vt(s)?s.toString(10):""+s}function Ue(s){return typeof s=="string"&&!s.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(s)?"0x"+s:Ae(s)}function he(s){if(typeof s=="string")return s.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(s)?Ae(s):"0x"+R(L(s));if(s instanceof Uint8Array)return"0x"+R(s);throw new Error(`toStringData: Error trying to convert ${s} (${typeof s}) to a hex string.`)}function fe(s){return typeof s=="boolean"?s:Be(s).toNumber()!==0}function ve(s){const l=Be(s),v=l.toString(16);return l.isLessThan(0)?"-0x"+v.substr(1):"0x"+v}function Ae(s){if(Co(s))return ve(+s);if(Vt(s))return ve(s);if(Pt(s)){const l=s;if(l.indexOf("-0x")===0)return ve(l);if(l.indexOf("0x")===0)return l;if(!isFinite(l))return R(L(l))}if(s instanceof Uint8Array)return"0x"+R(s);if(sr(s)||zt(s))throw new Error("toHex can only be called with scalar values, not objects or arrays");return ve(s)}function Me(s){const l=s?s.toLowerCase():"ether",v=G[l];if(v===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(G,null,2));return new oe(v,10)}function Be(s){let l=s||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 oe(R(l),16):new oe(l,10):new oe(l.replace("0x","").toLowerCase(),16))}function ft(s){return new oe(new Array(s).fill("1").join(""),2)}function nt(s,l=256){const v=Be(s).integerValue();return v.isLessThan(0)?ft(l).plus(v).plus(1):v}function Ut(s,l){return Y(s.toString(2),l,"0")[0]==="1"}function Ht(s){if(typeof s!="string")throw D("invalid address",z,{arg:"address",value:s});if(s.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return s.trim().substring(0,2)!=="0x"&&(s="0x"+s),gr(s);throw D("invalid address",z,{arg:"address",value:s})}function ar(s,l=256){if(Ut(s,l)){const v=ft(l);return s.minus(v).minus(1)}return s}function Or(s){return/^0x[0-9a-f]{40}$/i.test(s)}function Jt(s){return!!/^(0x)?[0-9a-f]{40}$/i.test(s)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(s)&&!/^(0x)?[0-9A-F]{40}$/.test(s))||Dn(s))}function Dn(s){const l=s.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(s){if(s===void 0)return"";const l=s.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 yt(s){if(!Array.isArray(s))throw new Error(`Value was not an array: ${JSON.stringify(s)}`);return s}function Kr(s){return Or(s)?s:/^[0-9a-f]{40}$/.test(s)?"0x"+s:"0x"+Y(Ae(s).substr(2),40)}function Vt(s){return s instanceof oe}function Pt(s){return typeof s=="string"||s&&s.constructor&&s.constructor.name==="String"}function zt(s){return s!==null&&!Array.isArray(s)&&typeof s=="object"}function Co(s){return typeof s=="boolean"}function sr(s){return Array.isArray(s)}var Qs,qn;function Js(s,l){if(!s)throw new Error("jsonrpc method should be specified!");if(typeof s!="string")throw new Error(`jsonrpc must be a string, got ${typeof s}!`);return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:s,params:l||[]}}function Ul(s){return Array.isArray(s)?s.every(l):l(s);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,(Qs=r.TransactionStatus||(r.TransactionStatus={})).pending="pending",Qs.confirmed="confirmed",Qs.failed="failed",r.TransactionType=void 0,(qn=r.TransactionType||(r.TransactionType={})).queued="queued",qn.dropped="dropped",qn.replaced="replaced",qn.pending="pending",qn.reverted="reverted",qn.confirmed="confirmed",r.messageId=0;function Xs(s){return Be(s)}function Hl(s){return s==="latest"||s==="pending"||s==="earliest"}function gn(s){return s===void 0?"latest":Ct(s)}function Ct(s){return s==null?null:Hl(s)?s:Ae(s)}function ei(s){return s.from&&(s.from=Gt(s.from)),s.to&&(s.to=Gt(s.to)),s.gasPrice!==void 0&&(s.gasPrice=ve(s.gasPrice)),s.gas!==void 0&&(s.gas=ve(s.gas)),s.value!==void 0&&(s.value=ve(s.value)),s.nonce!==void 0&&(s.nonce=ve(s.nonce)),s.data&&!s.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(s.data)&&(s.data="0x"+s.data),s}function Un(s){if(typeof s!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(s));if(s.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(s));if(s.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(s));return s}function ti(s){if(typeof s!="object")throw new Error("Did not provide transaction options");if(!s.from)throw new Error('Missing "from" in transaction options');return s.from=Gt(s.from),s.to&&(s.to=Gt(s.to)),s.gasPrice!==void 0&&(s.gasPrice=ve(s.gasPrice)),s.gas!==void 0&&(s.gas=ve(s.gas)),s.value!==void 0&&(s.value=ve(s.value)),s.nonce!==void 0&&(s.nonce=ve(s.nonce)),s.data&&!s.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(s.data)&&(s.data="0x"+s.data),s}function Eo(s){return s?(s.blockNumber!==null&&(s.blockNumber=ye(s.blockNumber)),s.transactionIndex!==null&&(s.transactionIndex=ye(s.transactionIndex)),s.nonce=ye(s.nonce),s.gas=ye(s.gas),s.gasPrice=Be(s.gasPrice),s.value=Be(s.value),s):null}function Vl(s){return s?(s.blockNumber!==null&&(s.blockNumber=ye(s.blockNumber)),s.transactionIndex!==null&&(s.transactionIndex=ye(s.transactionIndex)),s.cumulativeGasUsed=ye(s.cumulativeGasUsed),s.gasUsed=ye(s.gasUsed),s.effectiveGasPrice!==void 0&&s.effectiveGasPrice!==null&&(s.effectiveGasPrice=ye(s.effectiveGasPrice)),s.logs&&sr(s.logs)&&(s.logs=s.logs.map((function(l){return fa(l)}))),s.status=ye(s.status||""),s):null}function xo(s){return s?(s.gasLimit=ye(s.gasLimit),s.gasUsed=ye(s.gasUsed),s.size=ye(s.size),s.timestamp=ye(s.timestamp),s.number!==null&&(s.number=ye(s.number)),s.difficulty=Be(s.difficulty),s.totalDifficulty=Be(s.totalDifficulty),sr(s.transactions)&&s.transactions.forEach((function(l,v){Pt(l)||(s.transactions[v]=Eo(l)||s.transactions[v])})),s):null}function fa(s){return s&&(s.blockNumber&&(s.blockNumber=ye(s.blockNumber)),s.transactionIndex&&(s.transactionIndex=ye(s.transactionIndex)),s.logIndex&&(s.logIndex=ye(s.logIndex)),s)}function Gt(s){if(Or(s))return s;if(Jt(s))return"0x"+s;throw new Error(`Invalid address: ${JSON.stringify(s)}`)}function zl(s){return s}function Gl(s){return s&&(s.startingBlock=ye(s.startingBlock),s.currentBlock=ye(s.currentBlock),s.highestBlock=ye(s.highestBlock),s.knownStates&&(s.knownStates=ye(s.knownStates),s.pulledStates=ye(s.pulledStates)),s)}function ri(s){if(s===null)throw D("cannot convert null value to array",z,{arg:"value",value:s});if(s instanceof Uint8Array)return new Uint8Array(s);if(typeof s=="string"){const l=s.match(/^(0x)?[0-9a-fA-F]*$/);if(!l)throw D("invalid hexidecimal string",z,{arg:"value",value:s});if(l[1]!=="0x")throw D("hex string must have 0x prefix",z,{arg:"value",value:s});(s=s.substring(2)).length%2&&(s="0"+s);const v=[];for(let k=0;k<s.length;k+=2)v.push(parseInt(s.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})(s))return new Uint8Array(s);throw D("invalid arrayify value",void 0,{arg:"value",value:s,type:typeof s})}function Wl(s,l,v){Object.defineProperty(s,l,{enumerable:!0,value:v,writable:!1})}const kh=new oe(-1),Ih=new oe(0),Rh=new oe(1),Zl=new oe("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Kl(s){return(function(l,v){function k(ae){return new Error('unexpected character "'+l[ae]+'" at position '+ae+' in "'+l+'"')}const M={type:"",name:"",state:{allowType:!0}};let V=M;for(let ae=0;ae<l.length;ae++){const me=l[ae];switch(me){case"(":if(!V.state.allowParams)throw k(ae);V.state.allowType=!1,V.type=So(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=So(V.type);const ke=V;if(V=V.parent,!V)throw k(ae);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=So(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=So(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(ae);V.type+=me,V.state.allowArray=!1,V.state.allowName=!1,V.state.readArray=!0;break;case"]":if(!V.state.readArray)throw k(ae);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(ae);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=So(M.type),M})(s)}function So(s){return s.match(/^uint($|[^1-9])/)?s="uint256"+s.substring(4):s.match(/^int($|[^1-9])/)&&(s="int256"+s.substring(3)),s}const Nh=new RegExp(/^bytes([0-9]*)$/),Yl=new RegExp(/^(u?int)([0-9]*)$/),Ph=new RegExp(/^(.*)\[([0-9]*)\]$/),Oh=function(s,l){const v=s.match(Yl);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 jh extends yr{constructor(l){super(l.coerceFunc,l.name,l.type,void 0,l.dynamic),Wl(this,"coder",l)}encode(l){return this.coder.encode(l)}decode(l,v){return this.coder.decode(l,v)}}class Lh extends yr{constructor(l,v){super(l,"null","",v,!1)}encode(l){return ri([])}decode(l,v){if(v>l.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function ha(s,l){return new oe(s.toString(2).substr(-l),2)}class Ql 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=ha(Zl,8*this.size-1);if(v.gt(M))throw new Error("out-of-bounds");if(M=M.plus(Rh).multipliedBy(kh),v.lt(M))throw new Error("out-of-bounds")}else if(v.lt(Ih)||v.gt(ha(Zl,8*this.size)))throw new Error("out-of-bounds");v=ha(nt(v,8*this.size),8*this.size),this.signed&&(v=nt(ar(v,8*this.size),256));const k=Y(nt(v).toString(16),64);if(k.indexOf("NaN")!==-1)throw D("invalid number value, NaN",z,{arg:this.localName,coderType:this.name,value:l,v,twosComplement:nt(v),twosComplement16:nt(v).toString(16),pad:Y(nt(v).toString(16),64),size:this.size});return H(k)}catch(v){throw D("invalid number value",z,{arg:this.localName,coderType:this.name,value:l,message:v.toString()})}}decode(l,v){if(l.length<v+32)throw D("insufficient data for "+this.name+" type",z,{arg:this.localName,coderType:this.name,value:Ae(l.slice(v,v+32))});const k=32-this.size;let M=new oe(R(l.slice(v+k,v+32)),16);return M=this.signed?ar(M,8*this.size):ha(M,8*this.size),{consumed:32,value:this.coerceFunc(this.name,M)}}}const jr=new Ql((function(s,l){return l}),32,!1,"none");class Jl 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=ri(l);if(k.length>this.length)throw new Error("incorrect data length");v.set(k)}catch(k){throw D("invalid "+this.name+" value. Use hex strings or Uint8Array",z,{arg:this.localName,coderType:this.name,value:k.value||l,details:k.message})}return v}decode(l,v){if(l.length<v+32)throw D("insufficient data for "+this.name+" type",z,{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 Xl(s){const l=32*Math.ceil(s.length/32),v=new Uint8Array(l-s.length);return le(jr.encode(s.length),s,v)}function eu(s,l,v){if(s.length<l+32)throw D("insufficient data for dynamicBytes length",z,{arg:v,coderType:"dynamicBytes",value:Ae(s.slice(l,l+32))});let k=jr.decode(s,l).value;try{k=k.toNumber()}catch(M){throw M("dynamic bytes count too large",z,{arg:v,coderType:"dynamicBytes",value:k.toString()})}if(s.length<l+32+k)throw D("insufficient data for dynamicBytes type",z,{arg:v,coderType:"dynamicBytes",value:Ae(s.slice(l,l+32+k))});return{consumed:32+32*Math.ceil(k/32),value:s.slice(l+32,l+32+k)}}function ma(s){return 32*Math.ceil(s/32)}function tu(s,l){if(!Array.isArray(l)){if(!l||typeof l!="object")throw D("invalid tuple value",z,{coderType:"tuple",value:l});{const ke=[];s.forEach((function(Ne){ke.push(l[Ne.localName])})),l=ke}}if(s.length!==l.length)throw D("types/value length mismatch",z,{coderType:"tuple",value:l});const v=[];s.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+=ma(ke.value.length)):k+=ma(ke.value.length)}));let V=0,ae=k;const me=new Uint8Array(k+M);return v.forEach((function(ke){ke.dynamic?(me.set(jr.encode(ae),V),V+=32,me.set(ke.value,ae),ae+=ma(ke.value.length)):(me.set(ke.value,V),V+=ma(ke.value.length))})),me}class Mh extends Array{}class Bh 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 D("expected array value",z,{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,ae,me){if(me||(me=""),V<ae)throw D("missing argument"+me,"MISSING_ARGUMENT",{count:V,expectedCount:ae});if(V>ae)throw D("too many arguments"+me,"UNEXPECTED_ARGUMENT",{count:V,expectedCount:ae})})(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,tu(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 D("insufficient data for dynamic array length",z,{arg:this.localName,coderType:"array",value:ke.value})}try{M=me.value.toNumber()}catch{throw D("array count too large",z,{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 jh(this.coder));const ae=(function(me,ke,Ne){const Ft=Ne;let it=0;const ge=[];return me.forEach((function(St){let Xe;if(St.dynamic){const et=jr.decode(ke,Ne);Xe=St.decode(ke,Ft+et.value.toNumber()),Xe.consumed=et.consumed}else Xe=St.decode(ke,Ne);Xe.value!==void 0&&ge.push(Xe.value),Ne+=Xe.consumed,it+=Xe.consumed})),{value:ge,consumed:it}})(V,l,v);return ae.consumed+=k,ae.value=this.coerceFunc(this.type,ae.value),ae}}class ni extends yr{constructor(l,v,k){let M=!1;const V=[];v.forEach((function(ae){ae.dynamic&&(M=!0),V.push(ae.type)})),super(l,"tuple","tuple("+V.join(",")+")",k,M),this.coders=v}encode(l){return tu(this.coders,l)}decode(l,v){const k=(function(M,V,ae){const me=ae;let ke=0;const Ne=new Mh;return M.forEach((function(Ft){let it;if(Ft.dynamic){const ge=jr.decode(V,ae);it=Ft.decode(V,me+ge.value.toNumber()),it.consumed=ge.consumed}else it=Ft.decode(V,ae);it.value!==void 0&&Ne.push(it.value),ae+=it.consumed,ke+=it.consumed})),M.forEach((function(Ft,it){let ge=Ft.localName;ge&&(ge==="length"&&(ge="_length"),Ne[ge]!==null&&Ne[ge]!==void 0||(Ne[ge]=Ne[it]))})),{value:Ne,consumed:ke}})(this.coders,l,v);return k.value=this.coerceFunc(this.type,k.value),k}}const Fh={address:class extends yr{constructor(s,l){super(s,"address","address",l,!1)}encode(s){const l=new Uint8Array(32),v=s.trim();if(!Jt(v))throw D("invalid address format",z,{arg:this.localName,coderType:"address",value:s});try{l.set(H(Gt(v)),12)}catch(k){throw D(`invalid address (${k.message})`,z,{arg:this.localName,coderType:"address",value:s})}return l}decode(s,l){if(s.length<l+32)throw D("insufficuent data for address type",z,{arg:this.localName,coderType:"address",value:Ae(s.slice(l,l+32)),missingBytes:l+32-s.length});return{consumed:32,value:this.coerceFunc("address",Ht(Ae(s.slice(l+12,l+32))))}}},bool:class extends yr{constructor(s,l){super(s,"bool","bool",l,!1)}encode(s){return jr.encode(s?1:0)}decode(s,l){try{const v=jr.decode(s,l);return{consumed:v.consumed,value:this.coerceFunc("bool",!v.value.isZero())}}catch(v){throw v.reason==="insufficient data for uint256 type"?D("insufficient data for boolean type",z,{arg:this.localName,coderType:"boolean",value:v.value}):v}}},string:class extends yr{constructor(s,l){super(s,"string","string",l,!0)}encode(s){if(typeof s!="string")throw D("invalid string value",z,{arg:this.localName,coderType:"string",value:s});return Xl(L(s))}decode(s,l){const v=eu(s,l,this.localName);return v.value=this.coerceFunc("string",N(v.value)),v}},bytes:class extends yr{constructor(s,l){super(s,"bytes","bytes",l,!0)}encode(s){try{return Xl(ri(s))}catch(l){throw l("invalid bytes value",z,{arg:this.localName,coderType:"bytes",value:l.value})}}decode(s,l){const v=eu(s,l,this.localName);return v.value=this.coerceFunc("bytes",v.value),v}},function:class extends Jl{constructor(s,l){super(s,24,l)}}};function pa(s,l){const v=Fh[l.type];if(v)return new v(s,l.name);let k=l.type.match(Yl);if(k){const M=parseInt(k[2]||"256");if(M===0||M>256||M%8!=0)throw D("invalid "+k[1]+" bit length",z,{arg:"param",value:l});return new Ql(s,M/8,k[1]==="int",l.name)}if(k=l.type.match(Nh),k){const M=parseInt(k[1]);if(M===0||M>32)throw D("invalid bytes length",z,{arg:"param",value:l});return new Jl(s,M,l.name)}if(k=l.type.match(Ph),k){const M=Object.assign({},l),V=parseInt(k[2]||"-1");return M.type=k[1],new Bh(s,pa(s,M),V,l.name)}if(l.type.substring(0,5)==="tuple")return(function(M,V,ae){V||(V=[]);const me=V.map((ke=>pa(M,ke)));return new ni(M,me,ae)})(s,l.components,l.name);if(l.type==="")return new Lh(s,l.name);throw D("invalid type",z,{arg:"type",value:l.type,fullType:l})}class oi{constructor(l){(function(v,k){if(!(v instanceof k))throw D("missing new","MISSING_NEW",{name:k.name})})(this,oi),l||(l=Oh),Wl(this,"coerceFunc",l)}encode(l,v){if(l.length!==v.length)throw D("types/values length mismatch",z,{count:{types:l.length,values:v.length},value:{types:l,values:v}});const k=l.map((M=>typeof M=="string"?Kl(M):M)).map((M=>pa(this.coerceFunc,M)));return new ni(this.coerceFunc,k,"_").encode(v)}decode(l,v){const k=l.map((M=>typeof M=="string"?Kl(M):M)).map((M=>pa(this.coerceFunc,M)));return new ni(this.coerceFunc,k,"_").decode(v,0).value}}const ru=new oi;var nu,Ce;function xe(s,l,v,k){var M,V=arguments.length,ae=V<3?l:k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ae=Reflect.decorate(s,l,v,k);else for(var me=s.length-1;me>=0;me--)(M=s[me])&&(ae=(V<3?M(ae):V>3?M(l,v,ae):M(l,v))||ae);return V>3&&ae&&Object.defineProperty(l,v,ae),ae}function Se(s,l){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,l)}r.coder=void 0,(nu=r.coder||(r.coder={})).encodeParams=function(s,l){return R(ru.encode(s,l))},nu.decodeParams=function(s,l){if(s.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 ru.decode(s,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 ou(s){return new Promise((l=>setTimeout(l,s)))}r.eth=void 0,(Ce=r.eth||(r.eth={})).eth_getBalance=new Pe({callName:"eth_getBalance",params:2,inputFormatter:[Gt,gn],outputFormatter:Xs}),Ce.eth_getStorageAt=new Pe({callName:"eth_getStorageAt",params:3,inputFormatter:[Gt,Ae,gn],outputFormatter:Ue}),Ce.eth_getCode=new Pe({callName:"eth_getCode",params:2,inputFormatter:[Gt,gn],outputFormatter:Ue}),Ce.eth_getBlockByHash=new Pe({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ct,function(s){return!!s}],outputFormatter:xo}),Ce.eth_getBlockByNumber=new Pe({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ct,function(s){return!!s}],outputFormatter:xo}),Ce.eth_getUncleByBlockHashAndIndex=new Pe({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xo}),Ce.eth_getUncleByBlockNumberAndIndex=new Pe({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:xo}),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:[Un],outputFormatter:Eo}),Ce.eth_getTransactionByBlockHashAndIndex=new Pe({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Eo}),Ce.eth_getTransactionByBlockNumberAndIndex=new Pe({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ct,Ae],outputFormatter:Eo}),Ce.eth_getTransactionReceipt=new Pe({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[Un],outputFormatter:Vl}),Ce.eth_getTransactionCount=new Pe({callName:"eth_getTransactionCount",params:2,inputFormatter:[Gt,gn],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:[ti],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:[ei,gn],outputFormatter:Ue}),Ce.eth_estimateGas=new Pe({callName:"eth_estimateGas",params:1,inputFormatter:[ei],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:yt}),Ce.eth_coinbase=new Wt({getter:"eth_coinbase",outputFormatter:Kr}),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:Gl}),Ce.eth_gasPrice=new Wt({getter:"eth_gasPrice",outputFormatter:Xs}),Ce.eth_accounts=new Wt({getter:"eth_accounts",outputFormatter:yt}),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:ze}),Ce.net_version=new Wt({getter:"net_version",outputFormatter:ze}),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:Kr}),Ce.personal_importRawKey=new Pe({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Kr}),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:Kr}),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:[ti,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:yt}),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:[yt],outputFormatter:yt}),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:yt}),Ce.eth_getFilterChanges=new Pe({callName:"eth_getFilterChanges",params:1,inputFormatter:[Ae],outputFormatter:yt}),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:yt}),Ce.shh_getFilterMessages=new Pe({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:yt}),Ce.shh_getFilterChanges=new Pe({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:yt}),Ce.shh_getMessages=new Pe({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:yt});function Te(s,l){const v=r.eth[l];if(!v)throw new Error(`Could not find the method/property named ${l.toString()}`);Object.defineProperty(s,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=Js(l.method,l.params),M=i();return this.requests.set(k.id,M),v.sendAsync(k,((V,ae)=>{this.requests.delete(k.id),V?M.reject(V):Ul(ae)?M.resolve(ae.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)})(ae))})),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=Un(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 ou(2e3)}}async getTransaction(l){let v,k=null;const M=Un(l);try{const ae=(await this.eth_accounts())[0];ae&&(k=await this.eth_getTransactionCount(ae,"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 ou(2e3)}return!0}async getTransactionAndReceipt(l){l=Un(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 au{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])&&gn(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 ae=await l.eth_call(V,M);return this.unpackOutput(ae)}}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),ae=this.toPayload(M);return ae.to=l.address,{method:"eth_call",params:[ae,V]}},unpackOutput:M=>this.unpackOutput(M)});l[v]||(l[v]=k),l[v][this.typeName()]=k}}function su(s){if(s==null)return null;const l=String(s).toString();return l.indexOf("0x")===0?l:R(L(l))}class ai{constructor(l){this.requestManager=l,this.isStarted=!1,this.isDisposed=!1,this.formatter=v=>v,this.filterId=i(),this.callbacks=[],this.stopSemaphore=i()}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=i(),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=i(),setTimeout((l=()=>this.poll(),function(){l().catch((v=>console.error(v)))}),500))}else this.stopSemaphore.resolve(1);var l}}class To extends ai{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 su(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 si{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 ae=l[V.name];return ae==null?null:sr(ae)?ae.map((function(me){return"0x"+r.coder.encodeParams([V],[me])})):"0x"+r.coder.encodeParams([V],[ae])}));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),ae=this._params.reduce((function(me,ke){return me[ke.name]=ke.indexed?k.shift():V.shift(),me}),{});return Object.assign(Object.assign({},fa(l)),{event:this.displayName(),address:l.address,args:ae})}async execute(l,v){const k=this.encode(l,v),M=this.decode.bind(this);return new To(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 $h{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 si(this._requestManager,k,this._address).decode(l):fa(l)}async execute(l){const v=this.encode(l),k=this.decode.bind(this);return new To(this._requestManager,v,k)}getAllEventsFunction(){return this.execute.bind(this)}}class iu{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 au(V)})).forEach((function(V){V.attachToContract(M)})),this.allEvents=(function(V){const ae=V.abi.filter((function(ke){return ke.type==="event"})),me=new $h(V.requestManager,ae,V.address);return ae.map((function(ke){return new si(V.requestManager,ke,V.address)})).forEach((function(ke){ke.attachToContract(V)})),me.getAllEventsFunction()})(this)}}r.AbstractFilter=ai,r.BigNumber=oe,r.Contract=iu,r.ContractFactory=class{constructor(s,l){this.requestManager=s,this.abi=l}async deploy(...s){let l;const v=s[s.length-1];if(zt(v)&&!sr(v)&&(l=s.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===s.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const k=(M=this.abi,V=s,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 ae=await this.requestManager.eth_sendTransaction(l);if(!ae)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const me=await(async function(Ne,Ft){const it=i();let ge=0;const St=()=>{ge++,ge>50?it.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Ne.eth_getTransactionReceipt(Ft).then((Ot=>{Ot&&Ot.blockHash?it.resolve(Ot):setTimeout(St,1e3)}),(Ot=>it.reject(Ot)))};St();const Xe=await it,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,ae),ke=await this.at(me);return ke.transactionHash=ae,ke}async at(s){if(!Jt(s))throw new TypeError(`Invalid address ${JSON.stringify(s)}`);return new iu(this.requestManager,this.abi,s)}},r.EthBlockFilter=class extends To{constructor(s){super(s,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},r.EthFilter=To,r.EthPendingTransactionFilter=class extends To{constructor(s){super(s,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},r.HTTPProvider=class{constructor(s,l={}){this.host=s,this.options=l,this.debug=!1,this.host=s||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(s,l){try{let v=null;v=s instanceof Array?s.map((V=>n(V))):n(s);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 ae=await V.json();this.debug&&console.log("RECV << "+JSON.stringify(ae)),ae.error?l(Object.assign(new Error(ae.error.json||ae.error),ae.error)):l(null,ae)}else{const ae=(typeof V.text=="function"?await V.text().catch((()=>"")):"").trim().slice(0,512),me="External error. response code: "+V.status+(ae?" — "+ae:"");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 ai{constructor(s,l){super(s),this.requestManager=s,this.options=l,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(v){return su(v)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const s=await this.filterId;return this.requestManager.shh_getMessages(s)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const s=await this.filterId;return this.requestManager.shh_getFilterChanges(s)}async uninstall(){const s=await this.filterId;return this.requestManager.shh_uninstallFilter(s)}},r.SolidityEvent=si,r.SolidityFunction=au,r.WebSocketProvider=class{constructor(s,l={}){this.url=s,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 s=this.connection;this.timeout(new Error("Provider disposed.")),s.then((l=>l.close())).catch((l=>{this.debug&&console.error(l)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(s,l){const v=[];let k;if(s instanceof Array)k=Promise.all(s.map((M=>{const V=i();try{const ae=n(M);v.push(ae),this.responseCallbacks.set(ae.id,V)}catch(ae){V.reject(ae)}return V})));else{const M=i();try{const V=n(s);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 ae=JSON.stringify(V);this.debug&&console.log("SEND >> "+ae),M.send(ae)}))}),(M=>{l(M)}))}parseResponse(s){const l=[];return s.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(s){if("id"in s){const l=s.id,v=this.responseCallbacks.get(l);if(!v)return void console.error("Error: Received a response for an unknown request",s);this.responseCallbacks.delete(l),s.error!==void 0&&s.error!==null?v.reject(Object.assign(new Error(s.error.message||s.error),s.error)):"result"in s&&v.resolve(s)}else this.notificationCallbacks.forEach((l=>l(null,s)))}timeout(s){this.connection&&this.connection.isPending||(this.connection=i());const l=s||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=i()),this.lastChunk="";const s=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!s)throw new Error("Please provide a WebSocketConstructor");const l=new s(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(s,l=0){let v="";for(let k=0;k<s.length;k++){const M=s.charCodeAt(k).toString(16);v+=M.length<2?"0"+M:M}return"0x"+v.padEnd(l,"0")},r.fromDecimal=ve,r.fromTwosComplement=ar,r.fromWei=function(s,l){const v=Be(s).dividedBy(Me(l));return Vt(s)?v:v.toString(10)},r.getAddress=Ht,r.getValueOfUnit=Me,r.hexToBytes=H,r.inputAddressFormatter=Gt,r.inputBlockNumberFormatter=Ct,r.inputCallFormatter=ei,r.inputDefaultBlockNumberFormatter=gn,r.inputFilterOptions=zl,r.inputPostFormatter=function(s){return s?(s.ttl=ve(s.ttl),s.workToProve=ve(s.workToProve),s.priority=ve(s.priority),sr(s.topics)||(s.topics=s.topics?[s.topics]:[]),s.topics=s.topics.map((function(l){return l.indexOf("0x")===0?l:"0x"+R(L(l))})),s):null},r.inputTransactionFormatter=ti,r.inputTransactionId=Un,r.isAddress=Jt,r.isArray=sr,r.isBigNumber=Vt,r.isBloom=function(s){return!!/^(0x)?[0-9a-f]{512}$/i.test(s)&&!!/^(0x)?[0-9a-f]{512}$/i.test(s)},r.isBoolean=Co,r.isChecksumAddress=Dn,r.isFunction=function(s){return typeof s=="function"},r.isHex=function(s){return typeof s=="string"&&/^0x[0-9a-fA-F]+$/.test(s)},r.isJson=function(s){try{return!!JSON.parse(s)}catch{return!1}},r.isObject=zt,r.isPredefinedBlockNumber=Hl,r.isStrictAddress=Or,r.isString=Pt,r.isTopic=function(s){return!!/^(0x)?[0-9a-f]{64}$/i.test(s)&&!!/^(0x)?[0-9a-f]{64}$/i.test(s)},r.isValidResponse=Ul,r.outputBigNumberFormatter=Xs,r.outputBlockFormatter=xo,r.outputLogFormatter=fa,r.outputPostFormatter=function(s){return s?(s.expiry=ye(s.expiry),s.sent=ye(s.sent),s.ttl=ye(s.ttl),s.workProved=ye(s.workProved),s.topics||(s.topics=[]),s.topics=s.topics.map((function(l){return ce(l)})),s):null},r.outputSyncingFormatter=Gl,r.outputTransactionFormatter=Eo,r.outputTransactionReceiptFormatter=Vl,r.padLeft=Y,r.padRight=function(s,l,v){return s+new Array(l-s.length+1).join(v||"0")},r.sha3=j,r.signedIsNegative=Ut,r.stringToUtf8Bytes=L,r.toAddress=Kr,r.toArray=yt,r.toAscii=ce,r.toBatchPayload=function(s){return s.map((function(l){return Js(l.method,l.params)}))},r.toBigNumber=Be,r.toBoolean=fe,r.toChecksumAddress=gr,r.toData=Ue,r.toDecimal=ye,r.toHex=Ae,r.toJsonRpcRequest=Js,r.toNullDecimal=Ee,r.toString=ze,r.toStringData=he,r.toTwosComplement=nt,r.toWei=function(s,l){const v=Be(s).times(Me(l));return Vt(s)?v:v.toString(10)},r.transformToFullName=ie,Object.defineProperty(r,"__esModule",{value:!0})}))})(Mo,Mo.exports)),Mo.exports}var rs={},Uu;function pg(){if(Uu)return rs;Uu=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.SignatureValidator=t;const e=Os();async function t(r,n){const o=[{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,o).at(n)}return rs}var Cr={},mi={},pi={},bn={},$r={},Et={},Hu;function Cl(){if(Hu)return Et;Hu=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.output=Et.exists=Et.hash=Et.bytes=Et.bool=Et.number=Et.isBytes=void 0;function e(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`positive integer expected, not ${f}`)}Et.number=e;function t(f){if(typeof f!="boolean")throw new Error(`boolean expected, not ${f}`)}Et.bool=t;function r(f){return f instanceof Uint8Array||f!=null&&typeof f=="object"&&f.constructor.name==="Uint8Array"}Et.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}`)}Et.bytes=n;function o(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)}Et.hash=o;function a(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")}Et.exists=a;function i(f,h){n(f);const m=h.outputLen;if(f.length<m)throw new Error(`digestInto() expects output buffer of length at least ${m}`)}Et.output=i;const u={number:e,bool:t,bytes:n,hash:o,exists:a,output:i};return Et.default=u,Et}var gi={},ko={},Vu;function gg(){return Vu||(Vu=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.crypto=void 0,ko.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),ko}var zu;function aa(){return zu||(zu=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=gg(),r=Cl();function n(J){return J instanceof Uint8Array||J!=null&&typeof J=="object"&&J.constructor.name==="Uint8Array"}e.isBytes=n;const o=J=>new Uint8Array(J.buffer,J.byteOffset,J.byteLength);e.u8=o;const a=J=>new Uint32Array(J.buffer,J.byteOffset,Math.floor(J.byteLength/4));e.u32=a;const i=J=>new DataView(J.buffer,J.byteOffset,J.byteLength);e.createView=i;const u=(J,L)=>J<<32-L|J>>>L;e.rotr=u;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 y(J){(0,r.bytes)(J);let L="";for(let N=0;N<J.length;N++)L+=p[J[N]];return L}e.bytesToHex=y;const _={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function A(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 g(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 O=new Uint8Array(N);for(let z=0,D=0;z<N;z++,D+=2){const H=A(J.charCodeAt(D)),R=A(J.charCodeAt(D+1));if(H===void 0||R===void 0){const j=J[D]+J[D+1];throw new Error('hex string expected, got non-hex character "'+j+'" at index '+D)}O[z]=H*16+R}return O}e.hexToBytes=g;const S=async()=>{};e.nextTick=S;async function Z(J,L,N){let O=Date.now();for(let z=0;z<J;z++){N(z);const D=Date.now()-O;D>=0&&D<L||(await(0,e.nextTick)(),O+=D)}}e.asyncLoop=Z;function b(J){if(typeof J!="string")throw new Error(`utf8ToBytes expected string, got ${typeof J}`);return new Uint8Array(new TextEncoder().encode(J))}e.utf8ToBytes=b;function I(J){return typeof J=="string"&&(J=b(J)),(0,r.bytes)(J),J}e.toBytes=I;function w(...J){let L=0;for(let O=0;O<J.length;O++){const z=J[O];(0,r.bytes)(z),L+=z.length}const N=new Uint8Array(L);for(let O=0,z=0;O<J.length;O++){const D=J[O];N.set(D,z),z+=D.length}return N}e.concatBytes=w;class K{clone(){return this._cloneInto()}}e.Hash=K;const q={}.toString;function x(J,L){if(L!==void 0&&q.call(L)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(J,L)}e.checkOpts=x;function U(J){const L=O=>J().update(I(O)).digest(),N=J();return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=()=>J(),L}e.wrapConstructor=U;function Q(J){const L=(O,z)=>J(z).update(I(O)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=O=>J(O),L}e.wrapConstructorWithOpts=Q;function ee(J){const L=(O,z)=>J(z).update(I(O)).digest(),N=J({});return L.outputLen=N.outputLen,L.blockLen=N.blockLen,L.create=O=>J(O),L}e.wrapXOFConstructorWithOpts=ee;function oe(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=oe})(gi)),gi}var Gu;function yg(){if(Gu)return $r;Gu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.HashMD=$r.Maj=$r.Chi=void 0;const e=Cl(),t=aa();function r(i,u,f,h){if(typeof i.setBigUint64=="function")return i.setBigUint64(u,f,h);const m=BigInt(32),p=BigInt(4294967295),y=Number(f>>m&p),_=Number(f&p),A=h?4:0,g=h?0:4;i.setUint32(u+A,y,h),i.setUint32(u+g,_,h)}const n=(i,u,f)=>i&u^~i&f;$r.Chi=n;const o=(i,u,f)=>i&u^i&f^u&f;$r.Maj=o;class a extends t.Hash{constructor(u,f,h,m){super(),this.blockLen=u,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(u),this.view=(0,t.createView)(this.buffer)}update(u){(0,e.exists)(this);const{view:f,buffer:h,blockLen:m}=this;u=(0,t.toBytes)(u);const p=u.length;for(let y=0;y<p;){const _=Math.min(m-this.pos,p-y);if(_===m){const A=(0,t.createView)(u);for(;m<=p-y;y+=m)this.process(A,y);continue}h.set(u.subarray(y,y+_),this.pos),this.pos+=_,y+=_,this.pos===m&&(this.process(f,0),this.pos=0)}return this.length+=u.length,this.roundClean(),this}digestInto(u){(0,e.exists)(this),(0,e.output)(u,this),this.finished=!0;const{buffer:f,view:h,blockLen:m,isLE:p}=this;let{pos:y}=this;f[y++]=128,this.buffer.subarray(y).fill(0),this.padOffset>m-y&&(this.process(h,0),y=0);for(let Z=y;Z<m;Z++)f[Z]=0;r(h,m-8,BigInt(this.length*8),p),this.process(h,0);const _=(0,t.createView)(u),A=this.outputLen;if(A%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const g=A/4,S=this.get();if(g>S.length)throw new Error("_sha2: outputLen bigger than state");for(let Z=0;Z<g;Z++)_.setUint32(4*Z,S[Z],p)}digest(){const{buffer:u,outputLen:f}=this;this.digestInto(u);const h=u.slice(0,f);return this.destroy(),h}_cloneInto(u){u||(u=new this.constructor),u.set(...this.get());const{blockLen:f,buffer:h,length:m,finished:p,destroyed:y,pos:_}=this;return u.length=m,u.pos=_,u.finished=p,u.destroyed=y,m%f&&u.buffer.set(h),u}}return $r.HashMD=a,$r}var Wu;function vg(){if(Wu)return bn;Wu=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.sha224=bn.sha256=void 0;const e=yg(),t=aa(),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]),o=new Uint32Array(64);class a 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:y,F:_,G:A,H:g}=this;return[f,h,m,p,y,_,A,g]}set(f,h,m,p,y,_,A,g){this.A=f|0,this.B=h|0,this.C=m|0,this.D=p|0,this.E=y|0,this.F=_|0,this.G=A|0,this.H=g|0}process(f,h){for(let b=0;b<16;b++,h+=4)o[b]=f.getUint32(h,!1);for(let b=16;b<64;b++){const I=o[b-15],w=o[b-2],K=(0,t.rotr)(I,7)^(0,t.rotr)(I,18)^I>>>3,q=(0,t.rotr)(w,17)^(0,t.rotr)(w,19)^w>>>10;o[b]=q+o[b-7]+K+o[b-16]|0}let{A:m,B:p,C:y,D:_,E:A,F:g,G:S,H:Z}=this;for(let b=0;b<64;b++){const I=(0,t.rotr)(A,6)^(0,t.rotr)(A,11)^(0,t.rotr)(A,25),w=Z+I+(0,e.Chi)(A,g,S)+r[b]+o[b]|0,q=((0,t.rotr)(m,2)^(0,t.rotr)(m,13)^(0,t.rotr)(m,22))+(0,e.Maj)(m,p,y)|0;Z=S,S=g,g=A,A=_+w|0,_=y,y=p,p=m,m=w+q|0}m=m+this.A|0,p=p+this.B|0,y=y+this.C|0,_=_+this.D|0,A=A+this.E|0,g=g+this.F|0,S=S+this.G|0,Z=Z+this.H|0,this.set(m,p,y,_,A,g,S,Z)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class i extends a{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 bn.sha256=(0,t.wrapConstructor)(()=>new a),bn.sha224=(0,t.wrapConstructor)(()=>new i),bn}var Io={},yi={},Zu;function bg(){return Zu||(Zu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Cl(),r=aa();class n extends r.Hash{constructor(i,u){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);const f=(0,r.toBytes)(u);if(this.iHash=i.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?i.create().update(f).digest():f);for(let p=0;p<m.length;p++)m[p]^=54;this.iHash.update(m),this.oHash=i.create();for(let p=0;p<m.length;p++)m[p]^=106;this.oHash.update(m),m.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){const i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));const{oHash:u,iHash:f,finished:h,destroyed:m,blockLen:p,outputLen:y}=this;return i=i,i.finished=h,i.destroyed=m,i.blockLen=p,i.outputLen=y,i.oHash=u._cloneInto(i.oHash),i.iHash=f._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=n;const o=(a,i,u)=>new n(a,i).update(u).digest();e.hmac=o,e.hmac.create=(a,i)=>new n(a,i)})(yi)),yi}var vi={},Ro={},at={},rt={},Ku;function go(){if(Ku)return rt;Ku=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.bitMask=void 0,rt.isBytes=n,rt.abytes=o,rt.bytesToHex=i,rt.numberToHexUnpadded=u,rt.hexToNumber=f,rt.hexToBytes=p,rt.bytesToNumberBE=y,rt.bytesToNumberLE=_,rt.numberToBytesBE=A,rt.numberToBytesLE=g,rt.numberToVarBytesBE=S,rt.ensureBytes=Z,rt.concatBytes=b,rt.equalBytes=I,rt.utf8ToBytes=w,rt.bitLen=K,rt.bitGet=q,rt.bitSet=x,rt.createHmacDrbg=oe,rt.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 o(N){if(!n(N))throw new Error("Uint8Array expected")}const a=Array.from({length:256},(N,O)=>O.toString(16).padStart(2,"0"));function i(N){o(N);let O="";for(let z=0;z<N.length;z++)O+=a[N[z]];return O}function u(N){const O=N.toString(16);return O.length&1?`0${O}`:O}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 O=N.length,z=O/2;if(O%2)throw new Error("padded hex string expected, got unpadded hex of length "+O);const D=new Uint8Array(z);for(let H=0,R=0;H<z;H++,R+=2){const j=m(N.charCodeAt(R)),G=m(N.charCodeAt(R+1));if(j===void 0||G===void 0){const Y=N[R]+N[R+1];throw new Error('hex string expected, got non-hex character "'+Y+'" at index '+R)}D[H]=j*16+G}return D}function y(N){return f(i(N))}function _(N){return o(N),f(i(Uint8Array.from(N).reverse()))}function A(N,O){return p(N.toString(16).padStart(O*2,"0"))}function g(N,O){return A(N,O).reverse()}function S(N){return p(u(N))}function Z(N,O,z){let D;if(typeof O=="string")try{D=p(O)}catch(R){throw new Error(`${N} must be valid hex string, got "${O}". Cause: ${R}`)}else if(n(O))D=Uint8Array.from(O);else throw new Error(`${N} must be hex string or Uint8Array`);const H=D.length;if(typeof z=="number"&&H!==z)throw new Error(`${N} expected ${z} bytes, got ${H}`);return D}function b(...N){let O=0;for(let D=0;D<N.length;D++){const H=N[D];o(H),O+=H.length}const z=new Uint8Array(O);for(let D=0,H=0;D<N.length;D++){const R=N[D];z.set(R,H),H+=R.length}return z}function I(N,O){if(N.length!==O.length)return!1;let z=0;for(let D=0;D<N.length;D++)z|=N[D]^O[D];return z===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 O;for(O=0;N>e;N>>=t,O+=1);return O}function q(N,O){return N>>BigInt(O)&t}function x(N,O,z){return N|(z?t:e)<<BigInt(O)}const U=N=>(r<<BigInt(N-1))-t;rt.bitMask=U;const Q=N=>new Uint8Array(N),ee=N=>Uint8Array.from(N);function oe(N,O,z){if(typeof N!="number"||N<2)throw new Error("hashLen must be a number");if(typeof O!="number"||O<2)throw new Error("qByteLen must be a number");if(typeof z!="function")throw new Error("hmacFn must be a function");let D=Q(N),H=Q(N),R=0;const j=()=>{D.fill(1),H.fill(0),R=0},G=(...le)=>z(H,D,...le),Y=(le=Q())=>{H=G(ee([0]),le),D=G(),le.length!==0&&(H=G(ee([1]),le),D=G())},ce=()=>{if(R++>=1e3)throw new Error("drbg: tried 1000 values");let le=0;const de=[];for(;le<O;){D=G();const Re=D.slice();de.push(Re),le+=D.length}return b(...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,O)=>O.Fp.isValid(N),hash:N=>typeof N=="function"&&Number.isSafeInteger(N.outputLen)};function L(N,O,z={}){const D=(H,R,j)=>{const G=J[R];if(typeof G!="function")throw new Error(`Invalid validator "${R}", expected function`);const Y=N[H];if(!(j&&Y===void 0)&&!G(Y,N))throw new Error(`Invalid param ${String(H)}=${Y} (${typeof Y}), expected ${R}`)};for(const[H,R]of Object.entries(O))D(H,R,!1);for(const[H,R]of Object.entries(z))D(H,R,!0);return N}return rt}var Yu;function js(){if(Yu)return at;Yu=1,Object.defineProperty(at,"__esModule",{value:!0}),at.isNegativeLE=void 0,at.mod=f,at.pow=h,at.pow2=m,at.invert=p,at.tonelliShanks=y,at.FpSqrt=_,at.validateField=S,at.FpPow=Z,at.FpInvertBatch=b,at.FpDiv=I,at.FpIsSquare=w,at.nLength=K,at.Field=q,at.FpSqrtOdd=x,at.FpSqrtEven=U,at.hashToPrivateScalar=Q,at.getFieldBytesLength=ee,at.getMinHashLength=oe,at.mapHashToField=J;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=go(),t=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(3),a=BigInt(4),i=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function f(L,N){const O=L%N;return O>=t?O:N+O}function h(L,N,O){if(O<=t||N<t)throw new Error("Expected power/modulo > 0");if(O===r)return t;let z=r;for(;N>t;)N&r&&(z=z*L%O),L=L*L%O,N>>=r;return z}function m(L,N,O){let z=L;for(;N-- >t;)z*=z,z%=O;return z}function p(L,N){if(L===t||N<=t)throw new Error(`invert: expected positive integers, got n=${L} mod=${N}`);let O=f(L,N),z=N,D=t,H=r;for(;O!==t;){const j=z/O,G=z%O,Y=D-H*j;z=O,O=G,D=H,H=Y}if(z!==r)throw new Error("invert: does not exist");return f(D,N)}function y(L){const N=(L-r)/n;let O,z,D;for(O=L-r,z=0;O%n===t;O/=n,z++);for(D=n;D<L&&h(D,N,L)!==L-r;D++);if(z===1){const R=(L+r)/a;return function(G,Y){const ce=G.pow(Y,R);if(!G.eql(G.sqr(ce),Y))throw new Error("Cannot find square root");return ce}}const H=(O+r)/n;return function(j,G){if(j.pow(G,N)===j.neg(j.ONE))throw new Error("Cannot find square root");let Y=z,ce=j.pow(j.mul(j.ONE,D),O),ie=j.pow(G,H),le=j.pow(G,O);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%a===o){const N=(L+r)/a;return function(z,D){const H=z.pow(D,N);if(!z.eql(z.sqr(H),D))throw new Error("Cannot find square root");return H}}if(L%u===i){const N=(L-i)/u;return function(z,D){const H=z.mul(D,n),R=z.pow(H,N),j=z.mul(D,R),G=z.mul(z.mul(j,n),R),Y=z.mul(j,z.sub(G,z.ONE));if(!z.eql(z.sqr(Y),D))throw new Error("Cannot find square root");return Y}}return y(L)}const A=(L,N)=>(f(L,N)&r)===r;at.isNegativeLE=A;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function S(L){const N={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},O=g.reduce((z,D)=>(z[D]="function",z),N);return(0,e.validateObject)(L,O)}function Z(L,N,O){if(O<t)throw new Error("Expected power > 0");if(O===t)return L.ONE;if(O===r)return N;let z=L.ONE,D=N;for(;O>t;)O&r&&(z=L.mul(z,D)),D=L.sqr(D),O>>=r;return z}function b(L,N){const O=new Array(N.length),z=N.reduce((H,R,j)=>L.is0(R)?H:(O[j]=H,L.mul(H,R)),L.ONE),D=L.inv(z);return N.reduceRight((H,R,j)=>L.is0(R)?H:(O[j]=L.mul(H,O[j]),L.mul(H,R)),D),O}function I(L,N,O){return L.mul(N,typeof O=="bigint"?p(O,L.ORDER):L.inv(O))}function w(L){const N=(L.ORDER-r)/n;return O=>{const z=L.pow(O,N);return L.eql(z,L.ZERO)||L.eql(z,L.ONE)}}function K(L,N){const O=N!==void 0?N:L.toString(2).length,z=Math.ceil(O/8);return{nBitLength:O,nByteLength:z}}function q(L,N,O=!1,z={}){if(L<=t)throw new Error(`Expected Field ORDER > 0, got ${L}`);const{nBitLength:D,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:D,BYTES:H,MASK:(0,e.bitMask)(D),ZERO:t,ONE:r,create:G=>f(G,L),isValid:G=>{if(typeof G!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof G}`);return t<=G&&G<L},is0:G=>G===t,isOdd:G=>(G&r)===r,neg:G=>f(-G,L),eql:(G,Y)=>G===Y,sqr:G=>f(G*G,L),add:(G,Y)=>f(G+Y,L),sub:(G,Y)=>f(G-Y,L),mul:(G,Y)=>f(G*Y,L),pow:(G,Y)=>Z(j,G,Y),div:(G,Y)=>f(G*p(Y,L),L),sqrN:G=>G*G,addN:(G,Y)=>G+Y,subN:(G,Y)=>G-Y,mulN:(G,Y)=>G*Y,inv:G=>p(G,L),sqrt:z.sqrt||(G=>R(j,G)),invertBatch:G=>b(j,G),cmov:(G,Y,ce)=>ce?Y:G,toBytes:G=>O?(0,e.numberToBytesLE)(G,H):(0,e.numberToBytesBE)(G,H),fromBytes:G=>{if(G.length!==H)throw new Error(`Fp.fromBytes: expected ${H}, got ${G.length}`);return O?(0,e.bytesToNumberLE)(G):(0,e.bytesToNumberBE)(G)}});return Object.freeze(j)}function x(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const O=L.sqrt(N);return L.isOdd(O)?O:L.neg(O)}function U(L,N){if(!L.isOdd)throw new Error("Field doesn't have isOdd");const O=L.sqrt(N);return L.isOdd(O)?L.neg(O):O}function Q(L,N,O=!1){L=(0,e.ensureBytes)("privateHash",L);const z=L.length,D=K(N).nByteLength+8;if(D<24||z<D||z>1024)throw new Error(`hashToPrivateScalar: expected ${D}-1024 bytes of input, got ${z}`);const H=O?(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 oe(L){const N=ee(L);return N+Math.ceil(N/2)}function J(L,N,O=!1){const z=L.length,D=ee(N),H=oe(N);if(z<16||z<H||z>1024)throw new Error(`expected ${H}-1024 bytes of input, got ${z}`);const R=O?(0,e.bytesToNumberBE)(L):(0,e.bytesToNumberLE)(L),j=f(R,N-r)+r;return O?(0,e.numberToBytesLE)(j,D):(0,e.numberToBytesBE)(j,D)}return at}var Qu;function wg(){if(Qu)return Ro;Qu=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.wNAF=o,Ro.validateBasic=a;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=js(),t=go(),r=BigInt(0),n=BigInt(1);function o(i,u){const f=(m,p)=>{const y=p.negate();return m?y:p},h=m=>{const p=Math.ceil(u/m)+1,y=2**(m-1);return{windows:p,windowSize:y}};return{constTimeNegate:f,unsafeLadder(m,p){let y=i.ZERO,_=m;for(;p>r;)p&n&&(y=y.add(_)),_=_.double(),p>>=n;return y},precomputeWindow(m,p){const{windows:y,windowSize:_}=h(p),A=[];let g=m,S=g;for(let Z=0;Z<y;Z++){S=g,A.push(S);for(let b=1;b<_;b++)S=S.add(g),A.push(S);g=S.double()}return A},wNAF(m,p,y){const{windows:_,windowSize:A}=h(m);let g=i.ZERO,S=i.BASE;const Z=BigInt(2**m-1),b=2**m,I=BigInt(m);for(let w=0;w<_;w++){const K=w*A;let q=Number(y&Z);y>>=I,q>A&&(q-=b,y+=n);const x=K,U=K+Math.abs(q)-1,Q=w%2!==0,ee=q<0;q===0?S=S.add(f(Q,p[x])):g=g.add(f(ee,p[U]))}return{p:g,f:S}},wNAFCached(m,p,y,_){const A=m._WINDOW_SIZE||1;let g=p.get(m);return g||(g=this.precomputeWindow(m,A),A!==1&&p.set(m,_(g))),this.wNAF(A,g,y)}}}function a(i){return(0,e.validateField)(i.Fp),(0,t.validateObject)(i,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(i.n,i.nBitLength),...i,p:i.Fp.ORDER})}return Ro}var Ju;function gf(){return Ju||(Ju=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DER=void 0,e.weierstrassPoints=_,e.weierstrass=g,e.SWUFpSqrtRatio=S,e.mapToCurveSimpleSWU=Z;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=wg(),r=js(),n=go(),o=go();function a(b){const I=(0,t.validateBasic)(b);n.validateObject(I,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:w,Fp:K,a:q}=I;if(w){if(!K.eql(q,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({...I})}const{bytesToNumberBE:i,hexToBytes:u}=n;e.DER={Err:class extends Error{constructor(I=""){super(I)}},_parseInt(b){const{Err:I}=e.DER;if(b.length<2||b[0]!==2)throw new I("Invalid signature integer tag");const w=b[1],K=b.subarray(2,w+2);if(!w||K.length!==w)throw new I("Invalid signature integer: wrong length");if(K[0]&128)throw new I("Invalid signature integer: negative");if(K[0]===0&&!(K[1]&128))throw new I("Invalid signature integer: unnecessary leading zero");return{d:i(K),l:b.subarray(w+2)}},toSig(b){const{Err:I}=e.DER,w=typeof b=="string"?u(b):b;n.abytes(w);let K=w.length;if(K<2||w[0]!=48)throw new I("Invalid signature tag");if(w[1]!==K-2)throw new I("Invalid signature: incorrect length");const{d:q,l:x}=e.DER._parseInt(w.subarray(2)),{d:U,l:Q}=e.DER._parseInt(x);if(Q.length)throw new I("Invalid signature: left bytes after parsing");return{r:q,s:U}},hexFromSig(b){const I=oe=>Number.parseInt(oe[0],16)&8?"00"+oe:oe,w=oe=>{const J=oe.toString(16);return J.length&1?`0${J}`:J},K=I(w(b.s)),q=I(w(b.r)),x=K.length/2,U=q.length/2,Q=w(x),ee=w(U);return`30${w(U+x+4)}02${ee}${q}02${Q}${K}`}};const f=BigInt(0),h=BigInt(1),m=BigInt(2),p=BigInt(3),y=BigInt(4);function _(b){const I=a(b),{Fp:w}=I,K=I.toBytes||((z,D,H)=>{const R=D.toAffine();return n.concatBytes(Uint8Array.from([4]),w.toBytes(R.x),w.toBytes(R.y))}),q=I.fromBytes||(z=>{const D=z.subarray(1),H=w.fromBytes(D.subarray(0,w.BYTES)),R=w.fromBytes(D.subarray(w.BYTES,2*w.BYTES));return{x:H,y:R}});function x(z){const{a:D,b:H}=I,R=w.sqr(z),j=w.mul(R,z);return w.add(w.add(j,w.mul(z,D)),H)}if(!w.eql(w.sqr(I.Gy),x(I.Gx)))throw new Error("bad generator point: equation left != right");function U(z){return typeof z=="bigint"&&f<z&&z<I.n}function Q(z){if(!U(z))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ee(z){const{allowedPrivateKeyLengths:D,nByteLength:H,wrapPrivateKey:R,n:j}=I;if(D&&typeof z!="bigint"){if(n.isBytes(z)&&(z=n.bytesToHex(z)),typeof z!="string"||!D.includes(z.length))throw new Error("Invalid key");z=z.padStart(H*2,"0")}let G;try{G=typeof z=="bigint"?z:n.bytesToNumberBE((0,o.ensureBytes)("private key",z,H))}catch{throw new Error(`private key must be ${H} bytes, hex or bigint, not ${typeof z}`)}return R&&(G=r.mod(G,j)),Q(G),G}const oe=new Map;function J(z){if(!(z instanceof L))throw new Error("ProjectivePoint expected")}class L{constructor(D,H,R){if(this.px=D,this.py=H,this.pz=R,D==null||!w.isValid(D))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(D){const{x:H,y:R}=D||{};if(!D||!w.isValid(H)||!w.isValid(R))throw new Error("invalid affine point");if(D instanceof L)throw new Error("projective point not allowed");const j=G=>w.eql(G,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(D){const H=w.invertBatch(D.map(R=>R.pz));return D.map((R,j)=>R.toAffine(H[j])).map(L.fromAffine)}static fromHex(D){const H=L.fromAffine(q((0,o.ensureBytes)("pointHex",D)));return H.assertValidity(),H}static fromPrivateKey(D){return L.BASE.multiply(ee(D))}_setWindowSize(D){this._WINDOW_SIZE=D,oe.delete(this)}assertValidity(){if(this.is0()){if(I.allowInfinityPoint&&!w.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:D,y:H}=this.toAffine();if(!w.isValid(D)||!w.isValid(H))throw new Error("bad point: x or y not FE");const R=w.sqr(H),j=x(D);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:D}=this.toAffine();if(w.isOdd)return!w.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){J(D);const{px:H,py:R,pz:j}=this,{px:G,py:Y,pz:ce}=D,ie=w.eql(w.mul(H,ce),w.mul(G,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:D,b:H}=I,R=w.mul(H,p),{px:j,py:G,pz:Y}=this;let ce=w.ZERO,ie=w.ZERO,le=w.ZERO,de=w.mul(j,j),Re=w.mul(G,G),we=w.mul(Y,Y),Ee=w.mul(j,G);return Ee=w.add(Ee,Ee),le=w.mul(j,Y),le=w.add(le,le),ce=w.mul(D,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(D,we),Ee=w.sub(de,we),Ee=w.mul(D,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(G,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(D){J(D);const{px:H,py:R,pz:j}=this,{px:G,py:Y,pz:ce}=D;let ie=w.ZERO,le=w.ZERO,de=w.ZERO;const Re=I.a,we=w.mul(I.b,p);let Ee=w.mul(H,G),ye=w.mul(R,Y),ze=w.mul(j,ce),Ue=w.add(H,R),he=w.add(G,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(G,ce);return he=w.mul(he,fe),fe=w.add(Ee,ze),he=w.sub(he,fe),fe=w.add(R,j),ie=w.add(Y,ce),fe=w.mul(fe,ie),ie=w.add(ye,ze),fe=w.sub(fe,ie),de=w.mul(Re,he),ie=w.mul(we,ze),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),ze=w.mul(Re,ze),he=w.mul(we,he),ye=w.add(ye,ze),ze=w.sub(Ee,ze),ze=w.mul(Re,ze),he=w.add(he,ze),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(D){return this.add(D.negate())}is0(){return this.equals(L.ZERO)}wNAF(D){return O.wNAFCached(this,oe,D,H=>{const R=w.invertBatch(H.map(j=>j.pz));return H.map((j,G)=>j.toAffine(R[G])).map(L.fromAffine)})}multiplyUnsafe(D){const H=L.ZERO;if(D===f)return H;if(Q(D),D===h)return this;const{endo:R}=I;if(!R)return O.unsafeLadder(this,D);let{k1neg:j,k1:G,k2neg:Y,k2:ce}=R.splitScalar(D),ie=H,le=H,de=this;for(;G>f||ce>f;)G&h&&(ie=ie.add(de)),ce&h&&(le=le.add(de)),de=de.double(),G>>=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(D){Q(D);let H=D,R,j;const{endo:G}=I;if(G){const{k1neg:Y,k1:ce,k2neg:ie,k2:le}=G.splitScalar(H);let{p:de,f:Re}=this.wNAF(ce),{p:we,f:Ee}=this.wNAF(le);de=O.constTimeNegate(Y,de),we=O.constTimeNegate(ie,we),we=new L(w.mul(we.px,G.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(D,H,R){const j=L.BASE,G=(ce,ie)=>ie===f||ie===h||!ce.equals(j)?ce.multiplyUnsafe(ie):ce.multiply(ie),Y=G(this,H).add(G(D,R));return Y.is0()?void 0:Y}toAffine(D){const{px:H,py:R,pz:j}=this,G=this.is0();D==null&&(D=G?w.ONE:w.inv(j));const Y=w.mul(H,D),ce=w.mul(R,D),ie=w.mul(j,D);if(G)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:D,isTorsionFree:H}=I;if(D===h)return!0;if(H)return H(L,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:H}=I;return D===h?this:H?H(L,this):this.multiplyUnsafe(I.h)}toRawBytes(D=!0){return this.assertValidity(),K(L,this,D)}toHex(D=!0){return n.bytesToHex(this.toRawBytes(D))}}L.BASE=new L(I.Gx,I.Gy,w.ONE),L.ZERO=new L(w.ZERO,w.ONE,w.ZERO);const N=I.nBitLength,O=(0,t.wNAF)(L,I.endo?Math.ceil(N/2):N);return{CURVE:I,ProjectivePoint:L,normPrivateKeyToScalar:ee,weierstrassEquation:x,isWithinCurveOrder:U}}function A(b){const I=(0,t.validateBasic)(b);return n.validateObject(I,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...I})}function g(b){const I=A(b),{Fp:w,n:K}=I,q=w.BYTES+1,x=2*w.BYTES+1;function U(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:oe,normPrivateKeyToScalar:J,weierstrassEquation:L,isWithinCurveOrder:N}=_({...I,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===q&&(ve===2||ve===3)){const Me=n.bytesToNumberBE(Ae);if(!U(Me))throw new Error("Point is not on curve");const Be=L(Me);let ft;try{ft=w.sqrt(Be)}catch(Ht){const ar=Ht instanceof Error?": "+Ht.message:"";throw new Error("Point is not on curve"+ar)}const nt=(ft&h)===h;return(ve&1)===1!==nt&&(ft=w.neg(ft)),{x:Me,y:ft}}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 ${q} compressed bytes or ${x} uncompressed bytes`)}}),O=he=>n.bytesToHex(n.numberToBytesBE(he,I.nByteLength));function z(he){const fe=K>>h;return he>fe}function D(he){return z(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=I.nByteLength;return fe=(0,o.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,o.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,o.ensureBytes)("msgHash",fe));if(Me==null||![0,1,2,3].includes(Me))throw new Error("recovery id invalid");const ft=Me===2||Me===3?ve+I.n:ve;if(ft>=w.ORDER)throw new Error("recovery id 2 or 3 invalid");const nt=(Me&1)===0?"02":"03",Ut=oe.fromHex(nt+O(ft)),Ht=ee(ft),ar=Q(-Be*Ht),Or=Q(Ae*Ht),Jt=oe.BASE.multiplyAndAddUnsafe(Ut,ar,Or);if(!Jt)throw new Error("point at infinify");return Jt.assertValidity(),Jt}hasHighS(){return z(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 O(this.r)+O(this.s)}}const j={isValidPrivateKey(he){try{return J(he),!0}catch{return!1}},normPrivateKeyToScalar:J,randomPrivateKey:()=>{const he=r.getMinHashLength(I.n);return r.mapHashToField(I.randomBytes(he),I.n)},precompute(he=8,fe=oe.BASE){return fe._setWindowSize(he),fe.multiply(BigInt(3)),fe}};function G(he,fe=!0){return oe.fromPrivateKey(he).toRawBytes(fe)}function Y(he){const fe=n.isBytes(he),ve=typeof he=="string",Ae=(fe||ve)&&he.length;return fe?Ae===q||Ae===x:ve?Ae===2*q||Ae===2*x:he instanceof oe}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 oe.fromHex(fe).multiply(J(he)).toRawBytes(ve)}const ie=I.bits2int||function(he){const fe=n.bytesToNumberBE(he),ve=he.length*8-I.nBitLength;return ve>0?fe>>BigInt(ve):fe},le=I.bits2int_modN||function(he){return Q(ie(he))},de=n.bitMask(I.nBitLength);function Re(he){if(typeof he!="bigint")throw new Error("bigint expected");if(!(f<=he&&he<de))throw new Error(`bigint expected < 2^${I.nBitLength}`);return n.numberToBytesBE(he,I.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}=I;let{lowS:Be,prehash:ft,extraEntropy:nt}=ve;Be==null&&(Be=!0),he=(0,o.ensureBytes)("msgHash",he),ft&&(he=(0,o.ensureBytes)("prehashed msgHash",Ae(he)));const Ut=le(he),Ht=J(fe),ar=[Re(Ht),Re(Ut)];if(nt!=null&&nt!==!1){const gr=nt===!0?Me(w.BYTES):nt;ar.push((0,o.ensureBytes)("extraEntropy",gr))}const Or=n.concatBytes(...ar),Jt=Ut;function Dn(gr){const yt=ie(gr);if(!N(yt))return;const Kr=ee(yt),Vt=oe.BASE.multiply(yt).toAffine(),Pt=Q(Vt.x);if(Pt===f)return;const zt=Q(Kr*Q(Jt+Pt*Ht));if(zt===f)return;let Co=(Vt.x===Pt?0:2)|Number(Vt.y&h),sr=zt;return Be&&z(zt)&&(sr=D(zt),Co^=1),new R(Pt,sr,Co)}return{seed:Or,k2sig:Dn}}const Ee={lowS:I.lowS,prehash:!1},ye={lowS:I.lowS,prehash:!1};function ze(he,fe,ve=Ee){const{seed:Ae,k2sig:Me}=we(he,fe,ve),Be=I;return n.createHmacDrbg(Be.hash.outputLen,Be.nByteLength,Be.hmac)(Ae,Me)}oe.BASE._setWindowSize(8);function Ue(he,fe,ve,Ae=ye){var Vt;const Me=he;if(fe=(0,o.ensureBytes)("msgHash",fe),ve=(0,o.ensureBytes)("publicKey",ve),"strict"in Ae)throw new Error("options.strict was renamed to lowS");const{lowS:Be,prehash:ft}=Ae;let nt,Ut;try{if(typeof Me=="string"||n.isBytes(Me))try{nt=R.fromDER(Me)}catch(Pt){if(!(Pt instanceof e.DER.Err))throw Pt;nt=R.fromCompact(Me)}else if(typeof Me=="object"&&typeof Me.r=="bigint"&&typeof Me.s=="bigint"){const{r:Pt,s:zt}=Me;nt=new R(Pt,zt)}else throw new Error("PARSE");Ut=oe.fromHex(ve)}catch(Pt){if(Pt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Be&&nt.hasHighS())return!1;ft&&(fe=I.hash(fe));const{r:Ht,s:ar}=nt,Or=le(fe),Jt=ee(ar),Dn=Q(Or*Jt),gr=Q(Ht*Jt),yt=(Vt=oe.BASE.multiplyAndAddUnsafe(Ut,Dn,gr))==null?void 0:Vt.toAffine();return yt?Q(yt.x)===Ht:!1}return{CURVE:I,getPublicKey:G,getSharedSecret:ce,sign:ze,verify:Ue,ProjectivePoint:oe,Signature:R,utils:j}}function S(b,I){const w=b.ORDER;let K=f;for(let z=w-h;z%m===f;z/=m)K+=h;const q=K,x=m<<q-h-h,U=x*m,Q=(w-h)/U,ee=(Q-h)/m,oe=U-h,J=x,L=b.pow(I,Q),N=b.pow(I,(Q+h)/m);let O=(z,D)=>{let H=L,R=b.pow(D,oe),j=b.sqr(R);j=b.mul(j,D);let G=b.mul(z,j);G=b.pow(G,ee),G=b.mul(G,R),R=b.mul(G,D),j=b.mul(G,z);let Y=b.mul(j,R);G=b.pow(Y,J);let ce=b.eql(G,b.ONE);R=b.mul(j,N),G=b.mul(Y,H),j=b.cmov(R,j,ce),Y=b.cmov(G,Y,ce);for(let ie=q;ie>h;ie--){let le=ie-m;le=m<<le-h;let de=b.pow(Y,le);const Re=b.eql(de,b.ONE);R=b.mul(j,H),H=b.mul(H,H),de=b.mul(Y,H),j=b.cmov(R,j,Re),Y=b.cmov(de,Y,Re)}return{isValid:ce,value:j}};if(b.ORDER%y===p){const z=(b.ORDER-p)/y,D=b.sqrt(b.neg(I));O=(H,R)=>{let j=b.sqr(R);const G=b.mul(H,R);j=b.mul(j,G);let Y=b.pow(j,z);Y=b.mul(Y,G);const ce=b.mul(Y,D),ie=b.mul(b.sqr(Y),R),le=b.eql(ie,H);let de=b.cmov(ce,Y,le);return{isValid:le,value:de}}}return O}function Z(b,I){if(r.validateField(b),!b.isValid(I.A)||!b.isValid(I.B)||!b.isValid(I.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const w=S(b,I.Z);if(!b.isOdd)throw new Error("Fp.isOdd is not implemented!");return K=>{let q,x,U,Q,ee,oe,J,L;q=b.sqr(K),q=b.mul(q,I.Z),x=b.sqr(q),x=b.add(x,q),U=b.add(x,b.ONE),U=b.mul(U,I.B),Q=b.cmov(I.Z,b.neg(x),!b.eql(x,b.ZERO)),Q=b.mul(Q,I.A),x=b.sqr(U),oe=b.sqr(Q),ee=b.mul(oe,I.A),x=b.add(x,ee),x=b.mul(x,U),oe=b.mul(oe,Q),ee=b.mul(oe,I.B),x=b.add(x,ee),J=b.mul(q,U);const{isValid:N,value:O}=w(x,oe);L=b.mul(q,K),L=b.mul(L,O),J=b.cmov(J,U,N),L=b.cmov(L,O,N);const z=b.isOdd(K)===b.isOdd(L);return L=b.cmov(b.neg(L),L,z),J=b.div(J,Q),{x:J,y:L}}}})(vi)),vi}var Xu;function _g(){if(Xu)return Io;Xu=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.getHash=n,Io.createCurve=o;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=bg(),t=aa(),r=gf();function n(a){return{hash:a,hmac:(i,...u)=>(0,e.hmac)(a,i,(0,t.concatBytes)(...u)),randomBytes:t.randomBytes}}function o(a,i){const u=f=>(0,r.weierstrass)({...a,...n(f)});return Object.freeze({...u(i),create:u})}return Io}var en={},e0;function Cg(){if(e0)return en;e0=1,Object.defineProperty(en,"__esModule",{value:!0}),en.expand_message_xmd=i,en.expand_message_xof=u,en.hash_to_field=f,en.isogenyMap=h,en.createHasher=m;const e=js(),t=go(),r=t.bytesToNumberBE;function n(p,y){if(p<0||p>=1<<8*y)throw new Error(`bad I2OSP call: value=${p} length=${y}`);const _=Array.from({length:y}).fill(0);for(let A=y-1;A>=0;A--)_[A]=p&255,p>>>=8;return new Uint8Array(_)}function o(p,y){const _=new Uint8Array(p.length);for(let A=0;A<p.length;A++)_[A]=p[A]^y[A];return _}function a(p){if(!Number.isSafeInteger(p))throw new Error("number expected")}function i(p,y,_,A){(0,t.abytes)(p),(0,t.abytes)(y),a(_),y.length>255&&(y=A((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),y)));const{outputLen:g,blockLen:S}=A,Z=Math.ceil(_/g);if(Z>255)throw new Error("Invalid xmd length");const b=(0,t.concatBytes)(y,n(y.length,1)),I=n(0,S),w=n(_,2),K=new Array(Z),q=A((0,t.concatBytes)(I,p,w,n(0,1),b));K[0]=A((0,t.concatBytes)(q,n(1,1),b));for(let U=1;U<=Z;U++){const Q=[o(q,K[U-1]),n(U+1,1),b];K[U]=A((0,t.concatBytes)(...Q))}return(0,t.concatBytes)(...K).slice(0,_)}function u(p,y,_,A,g){if((0,t.abytes)(p),(0,t.abytes)(y),a(_),y.length>255){const S=Math.ceil(2*A/8);y=g.create({dkLen:S}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(y).digest()}if(_>65535||y.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return g.create({dkLen:_}).update(p).update(n(_,2)).update(y).update(n(y.length,1)).digest()}function f(p,y,_){(0,t.validateObject)(_,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:A,k:g,m:S,hash:Z,expand:b,DST:I}=_;(0,t.abytes)(p),a(y);const w=typeof I=="string"?(0,t.utf8ToBytes)(I):I,K=A.toString(2).length,q=Math.ceil((K+g)/8),x=y*S*q;let U;if(b==="xmd")U=i(p,w,x,Z);else if(b==="xof")U=u(p,w,x,g,Z);else if(b==="_internal_pass")U=p;else throw new Error('expand must be "xmd" or "xof"');const Q=new Array(y);for(let ee=0;ee<y;ee++){const oe=new Array(S);for(let J=0;J<S;J++){const L=q*(J+ee*S),N=U.subarray(L,L+q);oe[J]=(0,e.mod)(r(N),A)}Q[ee]=oe}return Q}function h(p,y){const _=y.map(A=>Array.from(A).reverse());return(A,g)=>{const[S,Z,b,I]=_.map(w=>w.reduce((K,q)=>p.add(p.mul(K,A),q)));return A=p.div(S,Z),g=p.mul(g,p.div(b,I)),{x:A,y:g}}}function m(p,y,_){if(typeof y!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(A,g){const S=f(A,2,{..._,DST:_.DST,...g}),Z=p.fromAffine(y(S[0])),b=p.fromAffine(y(S[1])),I=Z.add(b).clearCofactor();return I.assertValidity(),I},encodeToCurve(A,g){const S=f(A,1,{..._,DST:_.encodeDST,...g}),Z=p.fromAffine(y(S[0])).clearCofactor();return Z.assertValidity(),Z},mapToCurve(A){if(!Array.isArray(A))throw new Error("mapToCurve: expected array of bigints");for(const S of A)if(typeof S!="bigint")throw new Error(`mapToCurve: expected array of bigints, got ${S} in array`);const g=p.fromAffine(y(A)).clearCofactor();return g.assertValidity(),g}}}return en}var t0;function Eg(){return t0||(t0=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=vg(),r=aa(),n=_g(),o=Cg(),a=js(),i=go(),u=gf(),f=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m=BigInt(1),p=BigInt(2),y=(R,j)=>(R+j/p)/j;function _(R){const j=f,G=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,a.pow2)(Ee,G,j)*Ee%j,ze=(0,a.pow2)(ye,G,j)*Ee%j,Ue=(0,a.pow2)(ze,p,j)*we%j,he=(0,a.pow2)(Ue,ce,j)*Ue%j,fe=(0,a.pow2)(he,ie,j)*he%j,ve=(0,a.pow2)(fe,de,j)*fe%j,Ae=(0,a.pow2)(ve,Re,j)*ve%j,Me=(0,a.pow2)(Ae,de,j)*fe%j,Be=(0,a.pow2)(Me,G,j)*Ee%j,ft=(0,a.pow2)(Be,le,j)*he%j,nt=(0,a.pow2)(ft,Y,j)*we%j,Ut=(0,a.pow2)(nt,p,j);if(!A.eql(A.sqr(Ut),R))throw new Error("Cannot find square root");return Ut}const A=(0,a.Field)(f,void 0,void 0,{sqrt:_});e.secp256k1=(0,n.createCurve)({a:BigInt(0),b:BigInt(7),Fp:A,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const j=h,G=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Y=-m*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ie=G,le=BigInt("0x100000000000000000000000000000000"),de=y(ie*R,j),Re=y(-Y*R,j);let we=(0,a.mod)(R-de*G-Re*ce,j),Ee=(0,a.mod)(-de*Y-Re*ie,j);const ye=we>le,ze=Ee>le;if(ye&&(we=j-we),ze&&(Ee=j-Ee),we>le||Ee>le)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:ye,k1:we,k2neg:ze,k2:Ee}}}},t.sha256);const g=BigInt(0),S=R=>typeof R=="bigint"&&g<R&&R<f,Z=R=>typeof R=="bigint"&&g<R&&R<h,b={};function I(R,...j){let G=b[R];if(G===void 0){const Y=(0,t.sha256)(Uint8Array.from(R,ce=>ce.charCodeAt(0)));G=(0,i.concatBytes)(Y,Y),b[R]=G}return(0,t.sha256)((0,i.concatBytes)(G,...j))}const w=R=>R.toRawBytes(!0).slice(1),K=R=>(0,i.numberToBytesBE)(R,32),q=R=>(0,a.mod)(R,f),x=R=>(0,a.mod)(R,h),U=e.secp256k1.ProjectivePoint,Q=(R,j,G)=>U.BASE.multiplyAndAddUnsafe(R,j,G);function ee(R){let j=e.secp256k1.utils.normPrivateKeyToScalar(R),G=U.fromPrivateKey(j);return{scalar:G.hasEvenY()?j:x(-j),bytes:w(G)}}function oe(R){if(!S(R))throw new Error("bad x: need 0 < x < p");const j=q(R*R),G=q(j*R+BigInt(7));let Y=_(G);Y%p!==g&&(Y=q(-Y));const ce=new U(R,Y,m);return ce.assertValidity(),ce}function J(...R){return x((0,i.bytesToNumberBE)(I("BIP0340/challenge",...R)))}function L(R){return ee(R).bytes}function N(R,j,G=(0,r.randomBytes)(32)){const Y=(0,i.ensureBytes)("message",R),{bytes:ce,scalar:ie}=ee(j),le=(0,i.ensureBytes)("auxRand",G,32),de=K(ie^(0,i.bytesToNumberBE)(I("BIP0340/aux",le))),Re=I("BIP0340/nonce",de,ce,Y),we=x((0,i.bytesToNumberBE)(Re));if(we===g)throw new Error("sign failed: k is zero");const{bytes:Ee,scalar:ye}=ee(we),ze=J(Ee,ce,Y),Ue=new Uint8Array(64);if(Ue.set(Ee,0),Ue.set(K(x(ye+ze*ie)),32),!O(Ue,Y,ce))throw new Error("sign: Invalid signature produced");return Ue}function O(R,j,G){const Y=(0,i.ensureBytes)("signature",R,64),ce=(0,i.ensureBytes)("message",j),ie=(0,i.ensureBytes)("publicKey",G,32);try{const le=oe((0,i.bytesToNumberBE)(ie)),de=(0,i.bytesToNumberBE)(Y.subarray(0,32));if(!S(de))return!1;const Re=(0,i.bytesToNumberBE)(Y.subarray(32,64));if(!Z(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:O,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:oe,pointToBytes:w,numberToBytesBE:i.numberToBytesBE,bytesToNumberBE:i.bytesToNumberBE,taggedHash:I,mod:a.mod}};const z=(0,o.isogenyMap)(A,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(R=>R.map(j=>BigInt(j)))),D=(0,u.mapToCurveSimpleSWU)(A,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:A.create(BigInt("-11"))}),H=(0,o.createHasher)(e.secp256k1.ProjectivePoint,R=>{const{x:j,y:G}=D(A.create(R[0]));return z(j,G)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=H.hashToCurve,e.encodeToCurve=H.encodeToCurve})(pi)),pi}var r0;function xg(){return r0||(r0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var t=Eg();Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return t.secp256k1}})})(mi)),mi}var n0;function Sg(){if(n0)return Cr;n0=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.recoverPublicKey=r,Cr.recoverAddressFromEthSignature=o,Cr.sign=a,Cr.createEthereumMessageHash=i,Cr.ethSign=u,Cr.computeAddress=f,Cr.createUnsafeIdentity=h;const e=Os(),t=xg();function r(m,p){if(m.length!==65)throw new Error("Invalid signature length "+m.length);const y=m[64];if(y!==27&&y!==28)throw new Error(`Invalid signature recovery value: ${y}. Expected 27 or 28.`);const _=m.slice(0,m.length-1),A=y===28?1:0;return t.secp256k1.Signature.fromCompact(_).addRecoveryBit(A).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 y=new Uint8Array(m);return y[64]=p+27,y}return m}function o(m,p){if(typeof m=="string"){if((0,e.isHex)(m))return o((0,e.hexToBytes)(m),p);throw new Error("String signatures must be encoded in hex")}return f(r(n(m),i(p)))}function a(m,p){const y=t.secp256k1.sign(p,m),_=y.recovery===1?"1c":"1b";return"0x"+y.toCompactHex()+_}function i(m){const p=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,y=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
96
|
-
`),(0,e.stringToUtf8Bytes)(String(p.length)),p);return(0,e.hexToBytes)((0,e.sha3)(y))}function u(m,p){return a(m,i(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),y=f(p);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(p),address:y}}return Cr}var ns={},o0;function Tg(){if(o0)return ns;o0=1,Object.defineProperty(ns,"__esModule",{value:!0});const e=Os();class t{constructor(n,o=!0){Xr(this,"requestManager");Xr(this,"checkedBlocks");Xr(this,"saveBlocks");Xr(this,"savedBlocks");Xr(this,"requests");Xr(this,"blockTime");Xr(this,"firstTimestamp");this.requestManager=n,this.checkedBlocks={},this.saveBlocks=o,this.savedBlocks={},this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),o=await this.getBlockWrapper(1);return this.blockTime=(n.timestamp-o.timestamp)/(Number(n.number)-1),this.firstTimestamp=o.timestamp,{blockTime:this.blockTime,firstTimestamp:this.firstTimestamp}}async getDate(n,o=!0){const a=n/1e3,i=Date.now()/1e3;let u=this.firstTimestamp,f=this.blockTime;if((u===void 0||f===void 0)&&({firstTimestamp:u,blockTime:f}=await this.fillBlockTime()),a<u)return{block:1,timestamp:a};const h=this.savedBlocks.latest;if(a>=i||h&&a>h.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:a};this.checkedBlocks[a]=[];const m=await this.getBlockWrapper(Math.ceil((a-u)/f));return{block:await this.findBetter(a,m,o,f),timestamp:a}}async findBetter(n,o,a,i){let u=i??this.blockTime??(await this.fillBlockTime()).blockTime;if(await this.isBetterBlock(n,o,a))return o.number;const f=n-o.timestamp;let h=Math.ceil(f/u);h===0&&(h=f<0?-1:1);const m=await this.getBlockWrapper(this.getNextBlock(n,o.number,h));return u=Math.abs((o.timestamp-m.timestamp)/(o.number-m.number)),this.findBetter(n,m,a,u)}async isBetterBlock(n,o,a){const i=o.timestamp;if(a){if(i<n)return!1;const u=await this.getBlockWrapper(o.number-1);if(i>=n&&u.timestamp<n)return!0}else{if(i>=n)return!1;const u=await this.getBlockWrapper(o.number+1);if(i<n&&u.timestamp>=n)return!0}return!1}getNextBlock(n,o,a){const i=o+a;if(this.checkedBlocks[n].includes(i)){const u=a<0?a+1:a-1;if(u===0)throw new Error(`Could not find an unchecked block for timestamp ${n}`);return this.getNextBlock(n,o,u)}return this.checkedBlocks[n].push(i),i}async getBlockWrapper(n){if(!this.saveBlocks){const i=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(i.number).toNumber(),timestamp:(0,e.toBigNumber)(i.timestamp).toNumber()}}const o=n.toString();if(this.savedBlocks[o])return this.savedBlocks[o];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:a}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[o]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(a).toNumber()},this.requests++,this.savedBlocks[o]}}return ns.default=t,ns}var os={},a0;function Ag(){if(a0)return os;a0=1,Object.defineProperty(os,"__esModule",{value:!0}),os.moveMinutes=e;function e(t){const r=new Date;return r.setMinutes(r.getMinutes()+t),r}return os}var bi={},s0;function yf(){return s0||(s0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=Zh();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}})})(bi)),bi}var i0;function vf(){return i0||(i0=1,(function(e){var t=dr&&dr.__createBinding||(Object.create?(function(H,R,j,G){G===void 0&&(G=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,G,Y)}):(function(H,R,j,G){G===void 0&&(G=j),H[G]=R[j]})),r=dr&&dr.__setModuleDefault||(Object.create?(function(H,R){Object.defineProperty(H,"default",{enumerable:!0,value:R})}):function(H,R){H.default=R}),n=dr&&dr.__importStar||(function(){var H=function(R){return H=Object.getOwnPropertyNames||function(j){var G=[];for(var Y in j)Object.prototype.hasOwnProperty.call(j,Y)&&(G[G.length]=Y);return G},H(R)};return function(R){if(R&&R.__esModule)return R;var j={};if(R!=null)for(var G=H(R),Y=0;Y<G.length;Y++)G[Y]!=="default"&&t(j,R,G[Y]);return r(j,R),j}})(),o=dr&&dr.__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=y,e.isValidAuthChain=_,e.createEIP1271MessageHash=A,e.createSimpleAuthChain=g,e.createAuthChain=S,e.initializeAuthChain=Z,e.signPayload=b,e.createSignature=I,e.ownerAddress=w,e.getEphemeralMessage=K,e.getEphemeralSignatureType=J,e.getSignedIdentitySignatureType=L,e.parseEphemeralPayload=N,e.isValidEIP1271Signature=O;const a=n(Os()),i=pg(),u=Sg(),f=o(Tg()),h=Ag(),m=yf();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const p=132;async function y(H,R,j,G=Date.now()){let Y="";if(!_(R))return{ok:!1,message:"ERROR: Malformed authChain"};for(const ie of R){const le=D(ie.type);try{const{nextAuthority:de}=await le(Y,ie,{provider:j,dateToValidateExpirationInMillis:G});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 A(H){return(0,a.hexToBytes)((0,a.sha3)((0,a.stringToUtf8Bytes)(H)))}function g(H,R,j){return[{type:m.AuthLinkType.SIGNER,payload:R,signature:""},{type:L(j),payload:H,signature:j}]}function S(H,R,j,G){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=I(H,ce),le=I(R,G);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:G,signature:le}]}async function Z(H,R,j,G){const Y=(0,h.moveMinutes)(j),ce=K(R.address,Y),ie=await G(ce),le=[{type:m.AuthLinkType.SIGNER,payload:H,signature:""},{type:J(ie),payload:ce,signature:ie}];return{ephemeralIdentity:R,expiration:Y,authChain:le}}function b(H,R){const j=I(H.ephemeralIdentity,R);return[...H.authChain,{type:m.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:R,signature:j}]}e.createEthereumMessageHash=u.createEthereumMessageHash;function I(H,R){return(0,u.ethSign)((0,a.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:y,isValidAuthChain:_,createEIP1271MessageHash:A,createSimpleAuthChain:g,createAuthChain:S,initializeAuthChain:Z,signPayload:b,createEthereumMessageHash:e.createEthereumMessageHash,createSignature:I,ownerAddress:w,getEphemeralMessage:K};const q=async(H,R)=>({nextAuthority:R.payload});e.SIGNER_VALIDATOR=q;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,u.recoverAddressFromEthSignature)(R.signature,R.payload),G=H.toLocaleLowerCase(),Y=j.toLocaleLowerCase();if(G===Y)return{nextAuthority:R.payload};throw new Error(`Invalid signer address. Expected: ${G}. Actual: ${Y}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=x;const U=async(H,R,j)=>{if(!R.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:G,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie){const le=(0,u.recoverAddressFromEthSignature)(R.signature,G),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=U;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:G,ephemeralAddress:Y,expiration:ce}=N(R.payload),ie=(j==null?void 0:j.dateToValidateExpirationInMillis)||Date.now();if(ce>ie&&await z(j==null?void 0:j.provider,H,G,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 z(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 oe=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
|
-
`),G="Ephemeral address: ",Y="Expiration: ";if(j.length<3||!j[1].startsWith(G)||!j[2].startsWith(Y))throw new Error(`Invalid ephemeral payload. Expected 3 lines with "${G}" on line 2 and "${Y}" on line 3.`);const ce=j[1].substring(G.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 O(H,R,j,G){const Y=A(R),ce=(0,a.hexToBytes)(j);let ie;try{ie=(0,a.bytesToHex)(await H.isValidSignature(Y,ce,G))}catch{}if(ie===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,u.createEthereumMessageHash)(R);try{ie=(0,a.bytesToHex)(await H.isValidSignature(le,ce,G))}catch{}return ie===e.ERC1654_MAGIC_VALUE}async function z(H,R,j,G,Y){if(!H)throw new Error("Missing provider");const ce=new a.default(H),ie=await(0,i.SignatureValidator)(ce,R);let le=await O(ie,j,G);if(le)return!0;const de=new f.default(ce);try{const{block:Re}=await de.getDate(Y,!1);if(le=await O(ie,j,G,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 D(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 oe}}})(dr)),dr}var Dr={},c0;function kg(){return c0||(c0=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 l0;function Ig(){return l0||(l0=1,(function(e){var t=vn&&vn.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var u=Object.getOwnPropertyDescriptor(o,a);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,u)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=vn&&vn.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(vf(),e),r(kg(),e),r(yf(),e)})(vn)),vn}var Rg=Ig(),wn={},fr={},as={exports:{}},ss={exports:{}},u0;function El(){return u0||(u0=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})(ss,ss.exports)),ss.exports}var is={exports:{}},d0;function Ng(){return d0||(d0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,a){for(var i=0;i<a.length;i++){var u=a[i];if(o===u||r(u)&&u.test(o))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(is,is.exports)),is.exports}var cs={exports:{}},f0;function Pg(){return f0||(f0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(o,a){return o.indexOf(a)!==-1};t.default=r,e.exports=t.default,e.exports.default=t.default})(cs,cs.exports)),cs.exports}var ls={exports:{}},us={exports:{}},h0;function bf(){return h0||(h0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(o)}function n(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;(r(o)!=="object"||o===null)&&(o={});for(var i in a)typeof o[i]>"u"&&(o[i]=a[i]);return o}e.exports=t.default,e.exports.default=t.default})(us,us.exports)),us.exports}var m0;function Og(){return m0||(m0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(El()),n=o(bf());function o(u){return u&&u.__esModule?u:{default:u}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function i(u,f){(0,r.default)(u),f=(0,n.default)(f,a),f.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),f.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var h=u.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})(ls,ls.exports)),ls.exports}var ds={exports:{}},p0;function jg(){return p0||(p0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var r=n(El());function n(p){return p&&p.__esModule?p:{default:p}}function o(p){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},o(p)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(a,"[.]){3}").concat(a),u=new RegExp("^".concat(i,"$")),f="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(i,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(i,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(i,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(i,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(i,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(i,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(i,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function m(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(p);var _=(o(y)==="object"?y.version:arguments[1])||"";return _?_.toString()==="4"?u.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})(ds,ds.exports)),ds.exports}var g0;function Lg(){return g0||(g0=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=Z;var r=f(El()),n=f(Ng()),o=f(Pg()),a=f(Og()),i=f(jg()),u=f(bf());function f(b){return b&&b.__esModule?b:{default:b}}function h(b,I){return A(b)||_(b,I)||p(b,I)||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(b,I){if(b){if(typeof b=="string")return y(b,I);var w={}.toString.call(b).slice(8,-1);return w==="Object"&&b.constructor&&(w=b.constructor.name),w==="Map"||w==="Set"?Array.from(b):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?y(b,I):void 0}}function y(b,I){(I==null||I>b.length)&&(I=b.length);for(var w=0,K=Array(I);w<I;w++)K[w]=b[w];return K}function _(b,I){var w=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(w!=null){var K,q,x,U,Q=[],ee=!0,oe=!1;try{if(x=(w=w.call(b)).next,I!==0)for(;!(ee=(K=x.call(w)).done)&&(Q.push(K.value),Q.length!==I);ee=!0);}catch(J){oe=!0,q=J}finally{try{if(!ee&&w.return!=null&&(U=w.return(),Object(U)!==U))return}finally{if(oe)throw q}}return Q}}function A(b){if(Array.isArray(b))return b}var g={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},S=/^\[([^\]]+)\](?::([0-9]+))?$/;function Z(b,I){if((0,r.default)(b),!b||/[\s<>]/.test(b)||b.indexOf("mailto:")===0||(I=(0,u.default)(I,g),I.validate_length&&b.length>I.max_allowed_length)||!I.allow_fragments&&(0,o.default)(b,"#")||!I.allow_query_components&&((0,o.default)(b,"?")||(0,o.default)(b,"&")))return!1;var w,K,q,x,U,Q,ee,oe;ee=b.split("#"),b=ee.shift(),ee=b.split("?"),b=ee.shift();var J=b.match(/^([a-z][a-z0-9+\-.]*):/i),L=!1,N=function(Ue){return L=!0,w=Ue.toLowerCase(),I.require_valid_protocol&&I.protocols.indexOf(w)===-1?!1:b.substring(J[0].length)};if(J){var O=J[1],z=b.substring(J[0].length),D=z.slice(0,2)==="//";if(D){if(b=N(O),b===!1)return!1}else{var H=z.indexOf("/"),R=H===-1?z:z.substring(0,H),j=R.indexOf("@");if(j!==-1){var G=R.substring(0,j),Y=/^[a-zA-Z0-9\-_.%:]*$/,ce=Y.test(G),ie=/%[0-9a-fA-F]{2}/.test(G);if(ce&&!ie){if(I.require_protocol)return!1}else if(b=N(O),b===!1)return!1}else{var le=/^[0-9]/.test(z);if(le){if(I.require_protocol)return!1}else if(b=N(O),b===!1)return!1}}}else if(I.require_protocol)return!1;if(b.slice(0,2)==="//"){if(!L&&!I.allow_protocol_relative_urls)return!1;b=b.slice(2)}if(b==="")return!1;if(ee=b.split("/"),b=ee.shift(),b===""&&!I.require_host)return!0;if(ee=b.split("@"),ee.length>1){if(I.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,oe=null;var ye=x.match(S);if(ye?(q="",oe=ye[1],Q=ye[2]||null):(ee=x.split(":"),q=ee.shift(),ee.length&&(Q=ee.join(":"))),Q!==null&&Q.length>0){if(U=parseInt(Q,10),!/^[0-9]+$/.test(Q)||U<=0||U>65535)return!1}else if(I.require_port)return!1;return I.host_whitelist?(0,n.default)(q,I.host_whitelist):q===""&&!I.require_host?!0:!(!(0,i.default)(q)&&!(0,a.default)(q,I)&&(!oe||!(0,i.default)(oe,6))||(q=q||oe,I.host_blacklist&&(0,n.default)(q,I.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(as,as.exports)),as.exports}var wi={},y0;function wf(){return y0||(y0=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(u){u.GET="get",u.STORE="store",u.CLEAR="clear",u.PING="ping"})(t||(e.Action=t={})),e.SINGLE_SIGN_ON_TARGET="single-sign-on";function r(u){return{target:e.SINGLE_SIGN_ON_TARGET,...u}}e.createMessage=r;function n(u){const f=localStorage.getItem(i(u));if(!f)return null;let h;try{h=JSON.parse(f)}catch{return a(u),null}return h.expiration=new Date(h.expiration),h.expiration.getTime()<=Date.now()?(a(u),null):h}e.localStorageGetIdentity=n;function o(u,f){new Date(f.expiration).getTime()>Date.now()&&localStorage.setItem(i(u),JSON.stringify(f))}e.localStorageStoreIdentity=o;function a(u){localStorage.removeItem(i(u))}e.localStorageClearIdentity=a;function i(u){if(!/^0x[a-fA-F0-9]{40}$/.test(u))throw new Error("User must be a valid ethereum address");return`single-sign-on-${u.toLowerCase()}`}})(wi)),wi}var v0;function Mg(){if(v0)return fr;v0=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.clearIdentity=fr.storeIdentity=fr.getIdentity=fr.init=void 0;const e=Lg(),t=wf(),r=t.SINGLE_SIGN_ON_TARGET,n=500,o=5;let a=0,i="";const u={protocols:["https"],require_protocol:!0};function f(S,Z={}){if(!(0,e.default)(S,{...u,...Z}))throw new Error(`Invalid url: ${S}`);if(i)throw new Error("Already initialized");const b=document.createElement("iframe");b.id=r,b.src=S,b.style.width="0",b.style.height="0",b.style.border="none",b.style.position="absolute",document.body.appendChild(b),i=S}fr.init=f;async function h(S){let Z;try{Z=(await _(await y(),t.Action.GET,{user:S})).identity??null}catch(b){g(b),Z=(0,t.localStorageGetIdentity)(S)}return Z}fr.getIdentity=h;async function m(S,Z){try{await _(await y(),t.Action.STORE,{user:S,identity:Z})}catch(b){g(b),(0,t.localStorageStoreIdentity)(S,Z)}}fr.storeIdentity=m;async function p(S){try{await _(await y(),t.Action.CLEAR,{user:S})}catch(Z){g(Z),(0,t.localStorageClearIdentity)(S)}}fr.clearIdentity=p;async function y(){if(!i)throw new Error("Not initialized");for(let S=0;S<o;S++){const Z=document.getElementById(r),b=Z==null?void 0:Z.contentWindow;if(!b){await A(n);continue}try{await _(b,t.Action.PING,{},n)}catch{continue}return b}throw new Error("Could not get iframe because it is not ready or cannot be communicated with")}async function _(S,Z,b,I=0){a++;const w=a;let K=null;const q=new Promise((x,U)=>{K=({data:Q})=>{!Q||Q.target!==t.SINGLE_SIGN_ON_TARGET||Q.id!==w||(Q.error?U(new Error(Q.error)):x(Q))},window.addEventListener("message",K)});S.postMessage((0,t.createMessage)({id:w,action:Z,...b}),i);try{return await(I?Promise.race([q,new Promise((x,U)=>setTimeout(()=>U(new Error("Did not receive a response in time")),I))]):q)}catch(x){throw x}finally{K&&window.removeEventListener("message",K)}}function A(S){return new Promise(Z=>setTimeout(Z,S))}function g(S){console.warn("Could not get identity from iframe, falling back to localStorage. Error:",S.message)}return fr}var b0;function Bg(){return b0||(b0=1,(function(e){var t=wn&&wn.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var u=Object.getOwnPropertyDescriptor(o,a);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,u)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=wn&&wn.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Mg(),e),r(wf(),e)})(wn)),wn}var Yc=Bg();function Fg(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 $g(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Cf(n))return n}return null}var w0={},Nr;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(Nr||(Nr={}));function _f(){return Object.values(Nr)}function Cf(e){return _f().includes(e)}function fs(e){if(Cf(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${_f().map(t=>`"${t}"`).join(", ")}.`)}function Dg(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:o}=e;if(t&&r&&t!==r)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(t&&n&&t!==n)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(t&&o&&t!==o)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&o&&r!==o)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?fs(t):r?fs(r):n?fs(n):o?fs(o):Nr.PRODUCTION}function qg(e){if(typeof window<"u"){const r=$g(window.location);if(r)return r;const n=Fg(window.location);if(n)return n}return Dg(typeof e>"u"&&typeof ps=="object"&&typeof w0=="object"?w0:e)}function Ug(e,t){const r=qg(t==null?void 0:t.systemEnvVariables),n=e[r];return{get:(o,a="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return o in n?n[o]:a},is:o=>r===o,getEnv:()=>r}}const Hg="development",Vg="80002",zg="https://marketplace-api.decentraland.zone",Gg="https://marketplace-api.decentraland.zone",Wg="/auth",Zg="https://rpc.decentraland.org/amoy",Kg="https://credits.decentraland.zone",Yg="https://builder-api.decentraland.zone",Qg="https://peer.decentraland.zone",Jg="https://decentraland.zone/profile",Xg="",ey="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",ty="",ry="",ny={ENVIRONMENT:Hg,CHAIN_ID:Vg,MARKETPLACE_SERVER_URL:zg,NFT_API_URL:Gg,AUTH_URL:Wg,RPC_URL:Zg,CREDITS_SERVER_URL:Kg,BUILDER_SERVER_URL:Yg,PEER_URL:Qg,PROFILE_URL:Jg,SHOP_SERVER_URL:Xg,STRIPE_PUBLISHABLE_KEY:ey,SEGMENT_WRITE_KEY:ty,SENTRY_DSN:ry},oy="staging",ay="80002",sy="https://marketplace-api.decentraland.zone",iy="https://marketplace-api.decentraland.zone",cy="/auth",ly="https://rpc.decentraland.org/amoy",uy="https://credits.decentraland.zone",dy="https://builder-api.decentraland.zone",fy="https://peer.decentraland.zone",hy="https://decentraland.zone/profile",my="",py="pk_test_51TtW4PBS62I2c52AfO6XxarHwrACg9Zbacgeai73klSZbUleKajNN9gkSwRSlwCZHfWrdKZQyVhH0komsYEDB5ub00j4pzRj4c",gy="",yy="",vy={ENVIRONMENT:oy,CHAIN_ID:ay,MARKETPLACE_SERVER_URL:sy,NFT_API_URL:iy,AUTH_URL:cy,RPC_URL:ly,CREDITS_SERVER_URL:uy,BUILDER_SERVER_URL:dy,PEER_URL:fy,PROFILE_URL:hy,SHOP_SERVER_URL:my,STRIPE_PUBLISHABLE_KEY:py,SEGMENT_WRITE_KEY:gy,SENTRY_DSN:yy},by="production",wy="137",_y="https://marketplace-api.decentraland.org",Cy="https://marketplace-api.decentraland.org",Ey="/auth",xy="https://rpc.decentraland.org/polygon",Sy="https://credits.decentraland.org",Ty="https://builder-api.decentraland.org",Ay="https://peer.decentraland.org",ky="https://decentraland.org/profile",Iy="",Ry="",Ny="",Py="",Oy={ENVIRONMENT:by,CHAIN_ID:wy,MARKETPLACE_SERVER_URL:_y,NFT_API_URL:Cy,AUTH_URL:Ey,RPC_URL:xy,CREDITS_SERVER_URL:Sy,BUILDER_SERVER_URL:Ty,PEER_URL:Ay,PROFILE_URL:ky,SHOP_SERVER_URL:Iy,STRIPE_PUBLISHABLE_KEY:Ry,SEGMENT_WRITE_KEY:Ny,SENTRY_DSN:Py},jy={},Zt=Ug({[Nr.DEVELOPMENT]:ny,[Nr.STAGING]:vy,[Nr.PRODUCTION]:Oy},{systemEnvVariables:{VITE_DCL_DEFAULT_ENV:"dev"}}),It=jy,Ze={marketplaceServerUrl:It.VITE_MARKETPLACE_SERVER_URL??Zt.get("MARKETPLACE_SERVER_URL"),nftApiUrl:It.VITE_NFT_API_URL??Zt.get("NFT_API_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"),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"}`},Ly=744*60;async function xl(){return(await _t(async()=>{const{connection:e}=await import("./index-BRKyx7oU.js").then(t=>t.i);return{connection:e}},__vite__mapDeps([9,2,1,10]))).connection}async function My(e){if(!e.account)throw new Error("No account returned by the wallet");const t=e.account.toLowerCase(),r=new Xh(e.provider),n=r.getSigner();let o=Yc.localStorageGetIdentity(t);if(!o){const a=e1.createRandom();o=await Rg.Authenticator.initializeAuthChain(t,{address:a.address,publicKey:fu(a.publicKey),privateKey:fu(a.privateKey)},Ly,i=>n.signMessage(i)),Yc.localStorageStoreIdentity(t,o)}return{address:t,chainId:e.chainId,signer:n,web3Provider:r,identity:o,providerType:e.providerType}}function By(){const e=encodeURIComponent(window.location.href);window.location.replace(`${Ze.authUrl}/login?redirectTo=${e}`)}async function Fy(){try{const t=await(await xl()).tryPreviousConnection();return!t.account||!Yc.localStorageGetIdentity(t.account.toLowerCase())?null:await My(t)}catch{return null}}async function g8(){var e;try{const t=await xl();return await((e=t.getEmail)==null?void 0:e.call(t))??void 0}catch{return}}async function $y(){try{await(await xl()).disconnect()}catch{}}const Dy=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`s-${String(performance.now())}`,qy=Ze.chainId===80002?"amoy":"polygon",Uy=Ze.chainId===80002?"dev":"prod";function Sl(){return window.analytics}function Hy(){let e;try{e=wo.getState().session}catch{e=null}return{address:(e==null?void 0:e.address)??null,is_signed_in:!!e,session_id:Dy,network:qy,app_env:Uy}}function mr(e,t={}){const r={...Hy(),...t},n=Sl();n&&n.track(e,r)}function Vy(e,t={}){const r=Sl();r&&r.identify(e.toLowerCase(),t)}function zy(){const e=Sl();e!=null&&e.reset&&e.reset()}function Gy(e){mr("Shop Viewed Page",{page:e})}function _0(e){return e===bt.ProviderType.MAGIC||e===bt.ProviderType.MAGIC_TEST?"magic":"wallet"}function Wy(e){const t=`shop:seen:${e.toLowerCase()}`;try{return localStorage.getItem(t)?!1:(localStorage.setItem(t,"1"),!0)}catch{return!1}}function Wo(e){return Math.round(e*10)/100}function Tl(e){return!e.tokenId}function y8(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:Wo(e.priceCredits),rarity:e.rarity,creator:e.creator||null,is_primary:Tl(e)}}function v8(e){const t=e.reduce((n,o)=>n+o.priceCredits,0),r=e.some(Tl);return{items:e.map(n=>({item_id:n.itemId??null,contract_address:n.contractAddress,token_id:n.tokenId??null,price_usd:Wo(n.priceCredits)})),value_credits:t,value_usd:Wo(t),purchase_type:r?"item":"nft_resale",is_primary:r}}function Zy(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 b8(e){return Zy(e)==="user_rejected"}function Ky(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=>(...o)=>(r.push([n,...o]),r);for(const n of r.methods)r[n]=r.factory(n);r.load=n=>{const o=document.createElement("script");o.async=!0,o.src=`https://cdn.segment.com/analytics.js/v1/${encodeURIComponent(n)}/analytics.min.js`,document.head.appendChild(o)},t.analytics=r,r.load(e),r.page()}let C0=!1;function Yy(){if(C0)return;C0=!0;const e=Ze.segmentWriteKey;e&&Ky(e)}let Qc=null;function Qy(e){Qc=e}function E0(e,t={}){const r=typeof t.flow=="string"?`error in ${t.flow}`:"error";if(console.error(`[shop] ${r}`,e,t),Qc)try{Qc(e,t)}catch{}}const Jy=/0x[a-fA-F0-9]{130}\b/g,Xy=/0x[a-fA-F0-9]{64}\b/g,ev=/(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,tv=/(signature|private|identity|authchain|auth_chain|ephemeral|token|secret|password|cookie|authorization)/i;function No(e){return e.replace(Jy,"<signature>").replace(ev,"<secret>").replace(Xy,"<hex32>")}function rv(e){var r;e.message&&(e.message=No(e.message));for(const n of((r=e.exception)==null?void 0:r.values)??[])n.value&&(n.value=No(n.value));for(const n of e.breadcrumbs??[])n.message&&(n.message=No(n.message));e.request&&(e.request.url&&(e.request.url=No(e.request.url)),delete e.request.cookies,delete e.request.headers);const t=n=>{if(n)for(const o of Object.keys(n)){if(tv.test(o)){delete n[o];continue}typeof n[o]=="string"&&(n[o]=No(n[o]))}};return t(e.tags),t(e.extra),e}let x0=!1;function nv(){if(x0)return;const e=Ze.sentryDsn;if(!e)return;x0=!0,Kh({dsn:e,environment:Ze.sentryEnvironment,release:Ze.sentryRelease,integrations:[new Yh],tracesSampleRate:.01,sendDefaultPii:!1,ignoreErrors:[/user rejected/i,/user denied/i,"ResizeObserver loop limit exceeded"],beforeSend:rv});const t=ov();t&&Qh({id:t}),Qy((r,n)=>Jh(r,{extra:n}))}function ov(){var e;try{return((e=wo.getState().session)==null?void 0:e.address)??null}catch{return null}}const S0="shop-favorites";let bs=null;const Ef=e=>e?`${S0}:${e.toLowerCase()}`:S0;function T0(e){var t;try{const r=localStorage.getItem(Ef(e));if(!r)return{};const n=JSON.parse(r);if(!n||typeof n!="object")return{};const o=n,a="state"in n&&((t=o.state)!=null&&t.items)?o.state.items:n;return a&&typeof a=="object"?a:{}}catch{return{}}}function A0(e){try{localStorage.setItem(Ef(bs),JSON.stringify(e))}catch{}}const Es=Bn(e=>({items:T0(bs),toggle:t=>e(r=>{const n={...r.items};return n[t.id]?delete n[t.id]:n[t.id]=t,A0(n),{items:n}}),remove:t=>e(r=>{const n={...r.items};return delete n[t],A0(n),{items:n}}),reloadFor:t=>{bs=t?t.toLowerCase():null,e({items:T0(bs)})}})),k0="shop:followed-creators:v1",av=200;let Al=null;const xf=e=>e?`${k0}:${e.toLowerCase()}`:k0;function I0(){try{const e=localStorage.getItem(xf(Al));if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]}catch{return[]}}function R0(e){try{localStorage.setItem(xf(Al),JSON.stringify(e))}catch{}}const Jc=Bn((e,t)=>({followed:I0(),isFollowing:r=>t().followed.includes(r.toLowerCase()),follow:r=>{const n=r.toLowerCase();if(!n||t().followed.includes(n))return;const o=[n,...t().followed].slice(0,av);R0(o),e({followed:o}),mr("Shop Followed Creator",{creator_address:n,following_count:o.length})},unfollow:r=>{const n=r.toLowerCase();if(!t().followed.includes(n))return;const o=t().followed.filter(a=>a!==n);R0(o),e({followed:o}),mr("Shop Unfollowed Creator",{creator_address:n,following_count:o.length})},toggle:r=>t().isFollowing(r)?t().unfollow(r):t().follow(r),reloadFor:r=>{Al=r?r.toLowerCase():null,e({followed:I0()})}})),_i="shop:signing_in",wo=Bn(e=>({session:null,connecting:!1,error:null,signIn:()=>{try{sessionStorage.setItem(_i,"1")}catch{}By()},disconnect:async()=>{mr("Shop Signed Out");try{await $y()}catch(t){E0(t,{flow:"wallet",step:"disconnect"})}zy(),Es.getState().reloadFor(null),Jc.getState().reloadFor(null),e({session:null})},restore:async()=>{let t;try{t=await Fy()}catch(n){E0(n,{flow:"wallet",step:"restore"});return}if(!t)return;e({session:t}),Es.getState().reloadFor(t.address),Jc.getState().reloadFor(t.address),Vy(t.address,{sign_in_method:_0(t.providerType)});let r=!1;try{r=sessionStorage.getItem(_i)==="1",r&&sessionStorage.removeItem(_i)}catch{}r&&mr("Shop Signed In",{method:_0(t.providerType),is_new_user:Wy(t.address)})}}));async function Sf(e){var n;const t=await fetch(`${Ze.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 Ls(e){return Gr({queryKey:["profile",e],enabled:!!e,staleTime:5*6e4,queryFn:()=>Sf(e)})}var qr={},Ci={},N0;function Tf(){return N0||(N0=1,Object.defineProperty(Ci,"__esModule",{value:!0})),Ci}var Ur={},Er={},zn={},_n={},P0={},Po,O0;function pr(){if(O0)return Po;O0=1;var e=function(t){return t&&t.Math===Math&&t};return Po=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Nc=="object"&&Nc)||e(typeof Po=="object"&&Po)||(function(){return this})()||Function("return this")(),Po}var Ei,j0;function Fn(){return j0||(j0=1,Ei=function(e){try{return!!e()}catch{return!0}}),Ei}var xi,L0;function Ms(){if(L0)return xi;L0=1;var e=Fn();return xi=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),xi}var Si,M0;function sv(){if(M0)return Si;M0=1;var e=Ms(),t=Function.prototype,r=t.apply,n=t.call;return Si=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Si}var Ti,B0;function _o(){if(B0)return Ti;B0=1;var e=Ms(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Ti=e?n:function(o){return function(){return r.apply(o,arguments)}},Ti}var Ai,F0;function Af(){if(F0)return Ai;F0=1;var e=_o(),t=e({}.toString),r=e("".slice);return Ai=function(n){return r(t(n),8,-1)},Ai}var ki,$0;function kf(){if($0)return ki;$0=1;var e=Af(),t=_o();return ki=function(r){if(e(r)==="Function")return t(r)},ki}var Ii,D0;function $n(){if(D0)return Ii;D0=1;var e=typeof document=="object"&&document.all;return Ii=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Ii}var Ri={},Ni,q0;function sa(){if(q0)return Ni;q0=1;var e=Fn();return Ni=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ni}var Pi,U0;function kl(){if(U0)return Pi;U0=1;var e=Ms(),t=Function.prototype.call;return Pi=e?t.bind(t):function(){return t.apply(t,arguments)},Pi}var Oi={},H0;function iv(){if(H0)return Oi;H0=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Oi.f=r?function(o){var a=t(this,o);return!!a&&a.enumerable}:e,Oi}var ji,V0;function If(){return V0||(V0=1,ji=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),ji}var Li,z0;function cv(){if(z0)return Li;z0=1;var e=_o(),t=Fn(),r=Af(),n=Object,o=e("".split);return Li=t(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?o(a,""):n(a)}:n,Li}var Mi,G0;function Rf(){return G0||(G0=1,Mi=function(e){return e==null}),Mi}var Bi,W0;function Nf(){if(W0)return Bi;W0=1;var e=Rf(),t=TypeError;return Bi=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Bi}var Fi,Z0;function lv(){if(Z0)return Fi;Z0=1;var e=cv(),t=Nf();return Fi=function(r){return e(t(r))},Fi}var $i,K0;function Bs(){if(K0)return $i;K0=1;var e=$n();return $i=function(t){return typeof t=="object"?t!==null:e(t)},$i}var Di,Y0;function Pf(){return Y0||(Y0=1,Di={}),Di}var qi,Q0;function uv(){if(Q0)return qi;Q0=1;var e=Pf(),t=pr(),r=$n(),n=function(o){return r(o)?o:void 0};return qi=function(o,a){return arguments.length<2?n(e[o])||n(t[o]):e[o]&&e[o][a]||t[o]&&t[o][a]},qi}var Ui,J0;function dv(){if(J0)return Ui;J0=1;var e=_o();return Ui=e({}.isPrototypeOf),Ui}var Hi,X0;function fv(){if(X0)return Hi;X0=1;var e=pr(),t=e.navigator,r=t&&t.userAgent;return Hi=r?String(r):"",Hi}var Vi,ed;function hv(){if(ed)return Vi;ed=1;var e=pr(),t=fv(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,i,u;return a&&(i=a.split("."),u=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&t&&(i=t.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=t.match(/Chrome\/(\d+)/),i&&(u=+i[1]))),Vi=u,Vi}var zi,td;function Of(){if(td)return zi;td=1;var e=hv(),t=Fn(),r=pr(),n=r.String;return zi=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),zi}var Gi,rd;function jf(){if(rd)return Gi;rd=1;var e=Of();return Gi=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gi}var Wi,nd;function Lf(){if(nd)return Wi;nd=1;var e=uv(),t=$n(),r=dv(),n=jf(),o=Object;return Wi=n?function(a){return typeof a=="symbol"}:function(a){var i=e("Symbol");return t(i)&&r(i.prototype,o(a))},Wi}var Zi,od;function mv(){if(od)return Zi;od=1;var e=String;return Zi=function(t){try{return e(t)}catch{return"Object"}},Zi}var Ki,ad;function Mf(){if(ad)return Ki;ad=1;var e=$n(),t=mv(),r=TypeError;return Ki=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Ki}var Yi,sd;function pv(){if(sd)return Yi;sd=1;var e=Mf(),t=Rf();return Yi=function(r,n){var o=r[n];return t(o)?void 0:e(o)},Yi}var Qi,id;function gv(){if(id)return Qi;id=1;var e=kl(),t=$n(),r=Bs(),n=TypeError;return Qi=function(o,a){var i,u;if(a==="string"&&t(i=o.toString)&&!r(u=e(i,o))||t(i=o.valueOf)&&!r(u=e(i,o))||a!=="string"&&t(i=o.toString)&&!r(u=e(i,o)))return u;throw new n("Can't convert object to primitive value")},Qi}var Ji={exports:{}},Xi,cd;function yv(){return cd||(cd=1,Xi=!0),Xi}var ec,ld;function vv(){if(ld)return ec;ld=1;var e=pr(),t=Object.defineProperty;return ec=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},ec}var ud;function bv(){if(ud)return Ji.exports;ud=1;var e=yv(),t=pr(),r=vv(),n="__core-js_shared__",o=Ji.exports=t[n]||r(n,{});return(o.versions||(o.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"}),Ji.exports}var tc,dd;function wv(){if(dd)return tc;dd=1;var e=bv();return tc=function(t,r){return e[t]||(e[t]=r||{})},tc}var rc,fd;function _v(){if(fd)return rc;fd=1;var e=Nf(),t=Object;return rc=function(r){return t(e(r))},rc}var nc,hd;function Il(){if(hd)return nc;hd=1;var e=_o(),t=_v(),r=e({}.hasOwnProperty);return nc=Object.hasOwn||function(o,a){return r(t(o),a)},nc}var oc,md;function Cv(){if(md)return oc;md=1;var e=_o(),t=0,r=Math.random(),n=e(1.1.toString);return oc=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},oc}var ac,pd;function Ev(){if(pd)return ac;pd=1;var e=pr(),t=wv(),r=Il(),n=Cv(),o=Of(),a=jf(),i=e.Symbol,u=t("wks"),f=a?i.for||i:i&&i.withoutSetter||n;return ac=function(h){return r(u,h)||(u[h]=o&&r(i,h)?i[h]:f("Symbol."+h)),u[h]},ac}var sc,gd;function xv(){if(gd)return sc;gd=1;var e=kl(),t=Bs(),r=Lf(),n=pv(),o=gv(),a=Ev(),i=TypeError,u=a("toPrimitive");return sc=function(f,h){if(!t(f)||r(f))return f;var m=n(f,u),p;if(m){if(h===void 0&&(h="default"),p=e(m,f,h),!t(p)||r(p))return p;throw new i("Can't convert object to primitive value")}return h===void 0&&(h="number"),o(f,h)},sc}var ic,yd;function Bf(){if(yd)return ic;yd=1;var e=xv(),t=Lf();return ic=function(r){var n=e(r,"string");return t(n)?n:n+""},ic}var cc,vd;function Sv(){if(vd)return cc;vd=1;var e=pr(),t=Bs(),r=e.document,n=t(r)&&t(r.createElement);return cc=function(o){return n?r.createElement(o):{}},cc}var lc,bd;function Ff(){if(bd)return lc;bd=1;var e=sa(),t=Fn(),r=Sv();return lc=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),lc}var wd;function Tv(){if(wd)return Ri;wd=1;var e=sa(),t=kl(),r=iv(),n=If(),o=lv(),a=Bf(),i=Il(),u=Ff(),f=Object.getOwnPropertyDescriptor;return Ri.f=e?f:function(m,p){if(m=o(m),p=a(p),u)try{return f(m,p)}catch{}if(i(m,p))return n(!t(r.f,m,p),m[p])},Ri}var uc,_d;function Av(){if(_d)return uc;_d=1;var e=Fn(),t=$n(),r=/#|\.prototype\./,n=function(f,h){var m=a[o(f)];return m===u?!0:m===i?!1:t(h)?e(h):!!h},o=n.normalize=function(f){return String(f).replace(r,".").toLowerCase()},a=n.data={},i=n.NATIVE="N",u=n.POLYFILL="P";return uc=n,uc}var dc,Cd;function kv(){if(Cd)return dc;Cd=1;var e=kf(),t=Mf(),r=Ms(),n=e(e.bind);return dc=function(o,a){return t(o),a===void 0?o:r?n(o,a):function(){return o.apply(a,arguments)}},dc}var fc={},hc,Ed;function Iv(){if(Ed)return hc;Ed=1;var e=sa(),t=Fn();return hc=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),hc}var mc,xd;function Rv(){if(xd)return mc;xd=1;var e=Bs(),t=String,r=TypeError;return mc=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},mc}var Sd;function Nv(){if(Sd)return fc;Sd=1;var e=sa(),t=Ff(),r=Iv(),n=Rv(),o=Bf(),a=TypeError,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",m="writable";return fc.f=e?r?function(y,_,A){if(n(y),_=o(_),n(A),typeof y=="function"&&_==="prototype"&&"value"in A&&m in A&&!A[m]){var g=u(y,_);g&&g[m]&&(y[_]=A.value,A={configurable:h in A?A[h]:g[h],enumerable:f in A?A[f]:g[f],writable:!1})}return i(y,_,A)}:i:function(y,_,A){if(n(y),_=o(_),n(A),t)try{return i(y,_,A)}catch{}if("get"in A||"set"in A)throw new a("Accessors not supported");return"value"in A&&(y[_]=A.value),y},fc}var pc,Td;function Pv(){if(Td)return pc;Td=1;var e=sa(),t=Nv(),r=If();return pc=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},pc}var gc,Ad;function Ov(){if(Ad)return gc;Ad=1;var e=pr(),t=sv(),r=kf(),n=$n(),o=Tv().f,a=Av(),i=Pf(),u=kv(),f=Pv(),h=Il(),m=function(p){var y=function(_,A,g){if(this instanceof y){switch(arguments.length){case 0:return new p;case 1:return new p(_);case 2:return new p(_,A)}return new p(_,A,g)}return t(p,this,arguments)};return y.prototype=p.prototype,y};return gc=function(p,y){var _=p.target,A=p.global,g=p.stat,S=p.proto,Z=A?e:g?e[_]:e[_]&&e[_].prototype,b=A?i:i[_]||f(i,_,{})[_],I=b.prototype,w,K,q,x,U,Q,ee,oe,J;for(x in y)w=a(A?x:_+(g?".":"#")+x,p.forced),K=!w&&Z&&h(Z,x),Q=b[x],K&&(p.dontCallGetSet?(J=o(Z,x),ee=J&&J.value):ee=Z[x]),U=K&&ee?ee:y[x],!(!w&&!S&&typeof Q==typeof U)&&(p.bind&&K?oe=u(U,e):p.wrap&&K?oe=m(U):S&&n(U)?oe=r(U):oe=U,(p.sham||U&&U.sham||Q&&Q.sham)&&f(oe,"sham",!0),f(b,x,oe),S&&(q=_+"Prototype",h(i,q)||f(i,q,{}),f(i[q],x,U),p.real&&I&&(w||!I[x])&&f(I,x,U)))},gc}var kd;function jv(){if(kd)return P0;kd=1;var e=Ov(),t=pr();return e({global:!0,forced:t.globalThis!==t},{globalThis:t}),P0}var yc,Id;function Lv(){return Id||(Id=1,jv(),yc=pr()),yc}var vc,Rd;function Mv(){if(Rd)return vc;Rd=1;var e=Lv();return vc=e,vc}var Nd;function $f(){if(Nd)return _n;Nd=1;var e=_n&&_n.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(_n,"__esModule",{value:!0}),_n.getImplementation=void 0;var t=e(Mv());function r(n,o){var a,i=(a=n[o])!==null&&a!==void 0?a:t.default[o];if(!i)throw new ReferenceError('"'+o+'" is not defined');return i}return _n.getImplementation=r,_n}var Pd;function Df(){if(Pd)return zn;Pd=1;var e=zn&&zn.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,h=f&&u[f],m=0;if(h)return h.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(zn,"__esModule",{value:!0});var t=vf(),r=$f(),n="x-identity-auth-chain-",o="x-identity-timestamp",a="x-identity-metadata";function i(u){u===void 0&&(u={});var f=(0,r.getImplementation)(u,"Headers");return function(m,p,y,_,A){var g,S,Z=new f(A),b=String(Date.now()),I=JSON.stringify(_),w=[p,y,b,I].join(":").toLowerCase(),K=0,q=t.Authenticator.signPayload(m,w);try{for(var x=e(q),U=x.next();!U.done;U=x.next()){var Q=U.value;Z.set(n+K,JSON.stringify(Q)),K++}}catch(ee){g={error:ee}}finally{try{U&&!U.done&&(S=x.return)&&S.call(x)}finally{if(g)throw g.error}}return Z.set(o,b),Z.set(a,I),Z}}return zn.default=i,zn}var Od;function qf(){if(Od)return Er;Od=1;var e=Er&&Er.__assign||function(){return e=Object.assign||function(i){for(var u,f=1,h=arguments.length;f<h;f++){u=arguments[f];for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(i[m]=u[m])}return i},e.apply(this,arguments)},t=Er&&Er.__rest||function(i,u){var f={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&u.indexOf(h)<0&&(f[h]=i[h]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,h=Object.getOwnPropertySymbols(i);m<h.length;m++)u.indexOf(h[m])<0&&Object.prototype.propertyIsEnumerable.call(i,h[m])&&(f[h[m]]=i[h[m]]);return f},r=Er&&Er.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Er,"__esModule",{value:!0});var n=r(Df()),o=$f();function a(i){i===void 0&&(i={});var u=(0,n.default)(i),f=(0,o.getImplementation)(i,"URL"),h=(0,o.getImplementation)(i,"Request"),m=(0,o.getImplementation)(i,"fetch");return function(y,_){if(_&&_.identity){var A=_.identity,g=_.metadata,S=t(_,["identity","metadata"]);if(typeof y=="string"||y instanceof f||globalThis.URL&&y instanceof globalThis.URL){var Z=typeof y=="string"?new f(y):y,b=new h(Z.toString(),e(e({},S),{headers:u(A,_.method||"GET",Z.pathname,g||{},S==null?void 0:S.headers)}));return m(b)}var I=new f(y.url),w=new h(y),K=u(A,y.method||"GET",I.pathname,g||{});return K.forEach(function(q,x){w.headers.set(x,q)}),m(w)}return m(y,_)}}return Er.default=a,Er}var jd;function Bv(){return jd||(jd=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(i,u,f,h){h===void 0&&(h=f),Object.defineProperty(i,h,{enumerable:!0,get:function(){return u[f]}})}):(function(i,u,f,h){h===void 0&&(h=f),i[h]=u[f]})),r=Ur&&Ur.__exportStar||function(i,u){for(var f in i)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&t(u,i,f)},n=Ur&&Ur.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,r(Tf(),e);var o=qf();Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return n(o).default}});var a=Df();Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return n(a).default}})})(Ur)),Ur}var Ld;function Fv(){return Ld||(Ld=1,(function(e){var t=qr&&qr.__createBinding||(Object.create?(function(a,i,u,f){f===void 0&&(f=u),Object.defineProperty(a,f,{enumerable:!0,get:function(){return i[u]}})}):(function(a,i,u,f){f===void 0&&(f=u),a[f]=i[u]})),r=qr&&qr.__exportStar||function(a,i){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(i,u)&&t(i,a,u)},n=qr&&qr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),r(Tf(),e),r(Bv(),e);var o=n(qf());e.default=(0,o.default)()})(qr)),qr}var $v=Fv();const Fs=As($v);async function Dv(e,t){const r=`${Ze.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 qv(e,t){const{usd:r}=await Dv(e,t);return r??{balanceCents:0,credits:0}}async function w8(e,t,r){const n=`${Ze.creditsServerUrl}/credits/authorize`,o=await Fs(n,{method:"POST",identity:e,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({usdPriceCents:t,tradeId:r})});if(!o.ok)throw new Error(`authorizeUsdCredit ${o.status}: ${await o.text()}`);return o.json()}async function _8(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 o=n.toString(),a=`${Ze.creditsServerUrl}/users/${e.toLowerCase()}/purchases${o?`?${o}`:""}`,i=await Fs(a,{method:"GET",identity:t,metadata:{}});if(!i.ok)throw new Error(`fetchUserPurchases ${i.status}: ${await i.text()}`);const u=await i.json(),f=(u.purchases??[]).map(y=>({...y,txHash:y.txHash??y.transactionHash??null})),h=(r==null?void 0:r.skip)??0,m=r==null?void 0:r.first,p=typeof u.total=="number"?u.total:h+f.length+(f.length>=m?1:0);return{items:f,total:p}}async function C8(e,t){if(t.length===0)return 0;const r=`${Ze.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 E8(e,t=1e3){const r=await fetch(`${Ze.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 Uv(e){return Gr({queryKey:["usd-balance",e==null?void 0:e.address],enabled:!!e,staleTime:3e4,queryFn:async()=>qv(e.address,e.identity)})}function Hv(e,t){return t?"—":(e==null?void 0:e.credits)??0}const Vv={};function Uf(e,t){let r;try{r=e()}catch{return}return{getItem:o=>{var a;const i=f=>f===null?null:JSON.parse(f,void 0),u=(a=r.getItem(o))!=null?a:null;return u instanceof Promise?u.then(i):i(u)},setItem:(o,a)=>r.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>r.removeItem(o)}}const Zo=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Zo(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Zo(n)(r)}}}},zv=(e,t)=>(r,n,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:S=>S,version:0,merge:(S,Z)=>({...Z,...S}),...t},i=!1;const u=new Set,f=new Set;let h;try{h=a.getStorage()}catch{}if(!h)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...S)},n,o);const m=Zo(a.serialize),p=()=>{const S=a.partialize({...n()});let Z;const b=m({state:S,version:a.version}).then(I=>h.setItem(a.name,I)).catch(I=>{Z=I});if(Z)throw Z;return b},y=o.setState;o.setState=(S,Z)=>{y(S,Z),p()};const _=e((...S)=>{r(...S),p()},n,o);let A;const g=()=>{var S;if(!h)return;i=!1,u.forEach(b=>b(n()));const Z=((S=a.onRehydrateStorage)==null?void 0:S.call(a,n()))||void 0;return Zo(h.getItem.bind(h))(a.name).then(b=>{if(b)return a.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return a.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var I;return A=a.merge(b,(I=n())!=null?I:_),r(A,!0),p()}).then(()=>{Z==null||Z(A,void 0),i=!0,f.forEach(b=>b(A))}).catch(b=>{Z==null||Z(void 0,b)})};return o.persist={setOptions:S=>{a={...a,...S},S.getStorage&&(h=S.getStorage())},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(f.add(S),()=>{f.delete(S)})},g(),A||_},Gv=(e,t)=>(r,n,o)=>{let a={storage:Uf(()=>localStorage),partialize:g=>g,version:0,merge:(g,S)=>({...S,...g}),...t},i=!1;const u=new Set,f=new Set;let h=a.storage;if(!h)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...g)},n,o);const m=()=>{const g=a.partialize({...n()});return h.setItem(a.name,{state:g,version:a.version})},p=o.setState;o.setState=(g,S)=>{p(g,S),m()};const y=e((...g)=>{r(...g),m()},n,o);o.getInitialState=()=>y;let _;const A=()=>{var g,S;if(!h)return;i=!1,u.forEach(b=>{var I;return b((I=n())!=null?I:y)});const Z=((S=a.onRehydrateStorage)==null?void 0:S.call(a,(g=n())!=null?g:y))||void 0;return Zo(h.getItem.bind(h))(a.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==a.version){if(a.migrate)return[!0,a.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var I;const[w,K]=b;if(_=a.merge(K,(I=n())!=null?I:y),r(_,!0),w)return m()}).then(()=>{Z==null||Z(_,void 0),_=n(),i=!0,f.forEach(b=>b(_))}).catch(b=>{Z==null||Z(void 0,b)})};return o.persist={setOptions:g=>{a={...a,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>A(),hasHydrated:()=>i,onHydrate:g=>(u.add(g),()=>{u.delete(g)}),onFinishHydration:g=>(f.add(g),()=>{f.delete(g)})},a.skipHydration||A(),_||y},Wv=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Vv?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),zv(e,t)):Gv(e,t),Zv=Wv,Bo=e=>!e.tokenId,bc=e=>typeof e.available=="number"?e.available:1/0,Kv=e=>Wo(e.reduce((t,r)=>t+r.priceCredits*r.quantity,0)),wc=e=>{const t=Math.floor(e.quantity??1),r=Bo(e)?Math.max(1,Number.isFinite(t)?t:1):1;return{...e,quantity:r}},qt=Bn()(Zv((e,t)=>({items:[],open:!1,justAddedCount:0,fittingOpen:!1,add:(r,n="grid")=>{const o=Bo(r),a=t().items.find(u=>u.id===r.id);if(a&&!o){e({open:!0});return}if(a&&a.quantity>=bc(a)){e({open:!0});return}e(u=>a?{items:u.items.map(f=>f.id===r.id?{...f,quantity:f.quantity+1}:f),open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1}:{items:[...u.items,wc(r)],open:!0,justAddedCount:(u.open?u.justAddedCount:0)+1});const i=t().items;mr("Shop Added To Cart",{item_id:r.itemId??null,contract_address:r.contractAddress,price_credits:r.priceCredits,price_usd:Wo(r.priceCredits),is_primary:o,source:n,cart_size:i.length,cart_value_usd:Kv(i)})},remove:r=>{const n=t().items.find(o=>o.id===r);e(o=>({items:o.items.filter(a=>a.id!==r)})),n&&mr("Shop Removed From Cart",{item_id:n.itemId??null,cart_size:t().items.length})},setQuantity:(r,n)=>e(o=>({items:o.items.map(a=>{if(a.id!==r||!Bo(a))return a;const i=Math.max(1,Math.min(Math.floor(n),bc(a)));return{...a,quantity:Number.isFinite(i)?i:1}})})),increment:r=>e(n=>({items:n.items.map(o=>o.id===r&&Bo(o)&&o.quantity<bc(o)?{...o,quantity:o.quantity+1}:o)})),decrement:r=>e(n=>({items:n.items.map(o=>o.id===r&&Bo(o)&&o.quantity>1?{...o,quantity:o.quantity-1}:o)})),clear:()=>e({items:[]}),restore:r=>e(n=>n.items.length?{}:{items:r.map(wc)}),setOpen:r=>e({open:r,justAddedCount:0}),setFittingOpen:r=>e(r?{fittingOpen:r,open:!1}:{fittingOpen:r})}),{name:"dcl_shop_cart",version:2,storage:Uf(()=>localStorage),partialize:e=>({items:e.items}),migrate:e=>{const t=e;return t!=null&&t.items?{items:t.items.map(wc)}:t}})),yo={name:"credits",nameSingular:"credit",symbol:"◈",iconName:"credits"};function x8(e){return`${e} ${e===1?yo.nameSingular:yo.name}`}const Yv=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2});function rn(e){return Yv.format(e)}function xn(e){return e.toLocaleString("en")}function rr({className:e}){return d.jsx(vt,{name:yo.iconName,className:e})}function Hf(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function Qv(e){r1(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Jv=En(En({},t1),{textComponent:ne.Fragment});function Xv(e){return function(t){return e(ne.Children.toArray(t))}}var Rl=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ne.createContext(null)):ne.createContext(null);Rl.Consumer;var e3=Rl.Provider,t3=e3,r3=Rl;function Vf(){var e=ne.useContext(r3);return Qv(e),e}var Xc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Xc||(Xc={}));var el;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(el||(el={}));function zf(e){var t=function(r){var n=Vf(),o=r.value,a=r.children,i=ll(r,["value","children"]),u=typeof o=="string"?new Date(o||0):o,f=e==="formatDate"?n.formatDateToParts(u,i):n.formatTimeToParts(u,i);return a(f)};return t.displayName=el[e],t}function ia(e){var t=function(r){var n=Vf(),o=r.value,a=r.children,i=ll(r,["value","children"]),u=n[e](o,i);if(typeof a=="function")return a(u);var f=n.textComponent||ne.Fragment;return ne.createElement(f,null,u)};return t.displayName=Xc[e],t}function Gf(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=o1(n)?Xv(n):n,t},{})}var Md=function(e,t,r,n){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var i=Gf(n),u=a1.apply(void 0,s1([e,t,r,i],o,!1));return Array.isArray(u)?ne.Children.toArray(u):u},n3=function(e,t){var r=e.defaultRichTextElements,n=ll(e,["defaultRichTextElements"]),o=Gf(r),a=n1(En(En(En({},Jv),n),{defaultRichTextElements:o}),t),i={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o};return En(En({},a),{formatMessage:Md.bind(null,i,a.formatters),$t:Md.bind(null,i,a.formatters)})};ia("formatDate");ia("formatTime");ia("formatNumber");ia("formatList");ia("formatDisplayName");zf("formatDate");zf("formatTime");const o3={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."},a3={overview:"Overview",collectibles:"Collectibles",myAssets:"My Assets",myFavorites:"My Favorites",myPurchases:"My Purchases",authorizations:"Approvals",searchPlaceholder:"Search items…",searchAria:"Search the shop",yourBalance:"Your {currency}",getCredits:"Get {currency}",cart:"Cart"},s3={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}"},i3={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}"},c3={viewCollection:"View collection",itemCount:"{count, plural, one {# Item} other {# Items}}"},l3={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"},u3={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}"},d3={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}"},f3={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"},h3={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…",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."}},m3={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."},p3={price:"Price",status:"Status",statusAll:"All",onSale:"On Sale",notForSale:"Not for Sale",smart:"Smart",smartHint:"Smart wearables add interactive, in-world utility."},g3={sale:"SALE",saleWithDiscount:"SALE -{pct}%",smart:"Smart",addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites",marketPrice:"Market price",unavailable:"Unavailable",buyNow:"Buy now",yourItem:"Your item",manage:"Manage",inCart:"In cart",addToCart:"Add to cart",notForSale:"Not for Sale",view:"View"},y3={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."},v3={cta:"Make an offer",comingSoon:"Coming soon — you'll be able to make an offer on items that aren't for sale."},b3={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."}},w3={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"},_3={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."}},C3={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…"},E3={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.",viewMyPurchases:"View my purchases",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"},x3={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"},S3={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."},T3={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"},A3={processing:"Processing",completed:"Completed",itemFallback:"Item",signInTitle:"Sign in to see your purchases",signInBody:"Your order history shows up here once you sign in.",emptyTitle:"No purchases yet",emptyBody:"When you buy something it’ll appear here.",orderCount:"{count, plural, one {# order} other {# orders}}",itemCount:"{count, plural, one {# item} other {# items}}",quantity:"×{count}"},k3={emptyTitle:"No favorites yet",emptyBody:"Tap the heart on any item to save it here.",itemCount:"{count, plural, one {# item} other {# items}}"},I3={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."},R3={crash:{title:"Something went wrong",body:"This page hit an unexpected error. Try reloading.",reload:"Reload"}},N3={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"},P3={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"},O3={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"},j3={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"},L3={viewAll:"View all",scrollLeft:"Scroll left",scrollRight:"Scroll right",pages:"Carousel pages",goToPage:"Go to page {page}"},M3={title:"Week Top Creators",thisWeek:"This Week",rank:"Rank",creator:"Creator",collections:"Collections",sales:"Sales",volume:"Volume"},B3={loading:"Loading…",loadMore:"Load more"},F3={title:"Recently viewed"},$3={title:"From creators you follow"},D3={loading:"Loading"},q3={label:"Purchase successful"},U3={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})"},H3={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"},V3={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…"},z3={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"},G3={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"},W3={male:"Male",female:"Female"},Z3={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"},K3={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"},Y3={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."}},Q3={errors:o3,nav:a3,search:s3,collection:i3,collectionCard:c3,categories:l3,creator:u3,storeSettings:d3,notFound:f3,cart:h3,getCredits:m3,filter:p3,assetCard:g3,notifyMe:y3,makeOffer:v3,buyModal:b3,cartCheckout:w3,marketCheckout:_3,itemDetail:C3,success:E3,itemPreview:x3,assets:S3,myAssets:T3,myPurchases:A3,myFavorites:k3,overview:I3,app:R3,cartPopover:N3,filterBar:P3,addAll:O3,footer:j3,collectionCarousel:L3,weekTopCreators:M3,loadMore:B3,recentlyViewed:F3,followedCreators:$3,spinner:D3,successAnimation:q3,importListings:U3,sellModal:H3,primaryList:V3,migrate:z3,fittingRoom:G3,bodyShape:W3,names:Z3,authorizations:K3,seo:Y3},J3={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."},X3={overview:"Inicio",collectibles:"Coleccionables",myAssets:"Mis artículos",myFavorites:"Mis favoritos",myPurchases:"Mis compras",authorizations:"Autorizaciones",searchPlaceholder:"Busca artículos…",searchAria:"Buscar en la tienda",yourBalance:"Tus {currency}",getCredits:"Conseguir {currency}",cart:"Carrito"},eb={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}"},tb={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}"},rb={viewCollection:"Ver colección",itemCount:"{count, plural, one {# Artículo} other {# Artículos}}"},nb={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"},ob={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}"},ab={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}"},sb={title:"Página no encontrada",body:"La página que buscas no está aquí. Volvamos a la tienda.",cta:"Ver coleccionables"},ib={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…",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."}},cb={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."},lb={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."},ub={sale:"OFERTA",saleWithDiscount:"OFERTA -{pct}%",smart:"Smart",addToFavorites:"Agregar a favoritos",removeFromFavorites:"Quitar de favoritos",marketPrice:"Precio de mercado",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"},db={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."},fb={cta:"Hacer una oferta",comingSoon:"Muy pronto — vas a poder hacer una oferta por artículos que no están a la venta."},hb={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."}},mb={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"},pb={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."}},gb={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…"},yb={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.",viewMyPurchases:"Ver mis compras",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"},vb={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"},bb={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."},wb={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"},_b={processing:"Procesando",completed:"Completada",itemFallback:"Artículo",signInTitle:"Inicia sesión para ver tus compras",signInBody:"Tu historial de pedidos aparecerá aquí cuando inicies sesión.",emptyTitle:"Aún no tienes compras",emptyBody:"Cuando compres algo, aparecerá aquí.",orderCount:"{count, plural, one {# pedido} other {# pedidos}}",itemCount:"{count, plural, one {# artículo} other {# artículos}}",quantity:"×{count}"},Cb={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}}"},Eb={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."},xb={crash:{title:"Algo salió mal",body:"Esta página tuvo un error inesperado. Prueba a recargar.",reload:"Recargar"}},Sb={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"},Tb={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}"},Ab={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"},kb={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"},Ib={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}"},Rb={title:"Mejores creadores de la semana",thisWeek:"Esta semana",rank:"Posición",creator:"Creador",collections:"Colecciones",sales:"Ventas",volume:"Volumen"},Nb={loading:"Cargando…",loadMore:"Cargar más"},Pb={title:"Vistos recientemente"},Ob={title:"De creadores que sigues"},jb={loading:"Cargando"},Lb={label:"Compra exitosa"},Mb={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})"},Bb={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"},Fb={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…"},$b={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"},Db={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"},Ub={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"},Hb={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"},Vb={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."}},zb={errors:J3,nav:X3,search:eb,collection:tb,collectionCard:rb,categories:nb,creator:ob,storeSettings:ab,notFound:sb,cart:ib,getCredits:cb,filter:lb,assetCard:ub,notifyMe:db,makeOffer:fb,buyModal:hb,cartCheckout:mb,marketCheckout:pb,itemDetail:gb,success:yb,itemPreview:vb,assets:bb,myAssets:wb,myPurchases:_b,myFavorites:Cb,overview:Eb,app:xb,cartPopover:Sb,filterBar:Tb,addAll:Ab,footer:kb,collectionCarousel:Ib,weekTopCreators:Rb,loadMore:Nb,recentlyViewed:Pb,followedCreators:Ob,spinner:jb,successAnimation:Lb,importListings:Mb,sellModal:Bb,primaryList:Fb,migrate:$b,fittingRoom:Db,bodyShape:qb,names:Ub,authorizations:Hb,seo:Vb},ws=["en","es"];function tl(e,t="",r={}){for(const[n,o]of Object.entries(e)){const a=t?`${t}.${n}`:n;o&&typeof o=="object"&&!Array.isArray(o)?tl(o,a,r):r[a]=String(o)}return r}const Gb={en:tl(Q3),es:tl(zb)},Wb=i1(),_c={};function Nl(e){return _c[e]||(_c[e]=n3({locale:e,defaultLocale:"en",messages:Gb[e],onError:()=>{}},Wb)),_c[e]}let Wf=Nl("en");function Zb(e){Wf=Nl(e)}function se(e,t){return Wf.formatMessage({id:e},t)}const Kb=wt.span`
|
|
101
|
-
font-size: 12px;
|
|
102
|
-
white-space: nowrap;
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
text-overflow: ellipsis;
|
|
105
|
-
`,Yb=wt.span``,Zf=_l`
|
|
106
|
-
width: 18px;
|
|
107
|
-
height: 18px;
|
|
108
|
-
border-radius: 50%;
|
|
109
|
-
object-fit: cover;
|
|
110
|
-
flex: none;
|
|
111
|
-
background: ${Le.colors.media};
|
|
112
|
-
`,Qb=wt.span`
|
|
113
|
-
${Zf};
|
|
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
|
-
`,Jb=wt.img`
|
|
126
|
-
${Zf};
|
|
127
|
-
`,Bd=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 Xb(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function e5(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 t5(e,t){var r;return(((r=e==null?void 0:e.trim())==null?void 0:r[0])||t.replace(/^0x/i,"")[0]||"?").toUpperCase()}function xs({address:e,className:t,linkToProfile:r,hidePrefix:n}){var _,A;const o=ks(),{data:a}=Ls(e),i=(A=(_=a==null?void 0:a.avatar)==null?void 0:_.snapshots)==null?void 0:A.face256,[u,f]=ne.useState(!1);if(ne.useEffect(()=>f(!1),[i]),!e)return null;const h=a!=null&&a.name?Hf(a.name):Xb(e),p=!!i&&!u?d.jsx(Jb,{"data-avatar":!0,"data-testid":"creator-ava",src:i,alt:"",loading:"lazy",onError:()=>f(!0)}):d.jsx(Qb,{"data-avatar":!0,"data-letter":!0,"data-testid":"creator-ava-letter",style:{backgroundColor:e5(e)},"aria-hidden":!0,children:t5(a==null?void 0:a.name,e)}),y=d.jsxs(d.Fragment,{children:[p,d.jsxs(Kb,{"data-testid":"creator-name",children:[n?null:se("search.byCreator",{name:""}),d.jsx(Yb,{"data-testid":"creator-display",children:h})]})]});return r?d.jsx(Bd,{as:"button","data-link":!0,className:t,"data-testid":"creator",onClick:g=>{g.stopPropagation(),o(`/assets/creator/${e}`)},children:y}):d.jsx(Bd,{className:t,"data-testid":"creator",children:y})}function Kf(){return d.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,focusable:"false",children:[d.jsx("circle",{cx:"10",cy:"10",r:"10",fill:"#1ea672"}),d.jsx("path",{d:"M5.8 10.3l2.7 2.7 5.7-6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function r5({item:e,onRemove:t,onIncrement:r,onDecrement:n}){const o=!e.tokenId,a=e.quantity,i=typeof e.available=="number"&&a>=e.available,u=e.priceCredits*a;return d.jsxs("li",{className:"cartd__card",children:[d.jsxs("div",{className:"cartd__thumb",children:[e.thumbnail?d.jsx("img",{src:e.thumbnail,alt:e.name}):null,d.jsx("span",{className:"cartd__thumb-check",children:d.jsx(Kf,{})})]}),d.jsxs("div",{className:"cartd__info",children:[d.jsxs("div",{children:[d.jsx("div",{className:"cartd__name",title:e.name,children:e.name}),e.creator?d.jsx(xs,{address:e.creator,className:"cartd__by"}):null]}),d.jsxs("div",{className:"cartd__rowbottom",children:[o?d.jsxs("div",{className:"cartd__stepper",children:[d.jsx("button",{className:"cartd__step",onClick:()=>n(e.id),disabled:a<=1,"aria-label":se("cartPopover.decreaseQuantity",{name:e.name}),children:d.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),d.jsx("span",{className:"cartd__qty",children:a}),d.jsx("button",{className:"cartd__step",onClick:()=>r(e.id),disabled:i,"aria-label":se("cartPopover.increaseQuantity"),children:d.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,d.jsxs("div",{className:"cartd__price",title:xn(u),children:[d.jsx(rr,{className:"cartd__diamond"}),rn(u)]})]})]}),d.jsx("button",{className:"cartd__del",onClick:()=>t(e.id),"aria-label":se("cartPopover.removeItem",{name:e.name}),title:se("cartPopover.remove"),children:d.jsx(vt,{name:"trash"})})]})}function n5(){const e=qt(m=>m.items),t=qt(m=>m.open),r=qt(m=>m.justAddedCount),n=qt(m=>m.setOpen),o=qt(m=>m.remove),a=qt(m=>m.increment),i=qt(m=>m.decrement),u=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:Uh.createPortal(d.jsxs("div",{className:"cartd",role:"dialog","aria-modal":"true","aria-label":se("cartPopover.dialogLabel"),children:[d.jsx("div",{className:"cartd__scrim",onClick:()=>n(!1)}),d.jsxs("aside",{className:"cartd__panel",ref:u,children:[d.jsxs("header",{className:"cartd__head",children:[d.jsx("h2",{className:"cartd__title",children:se("cartPopover.title",{count:h})}),d.jsx("button",{className:"cartd__close",onClick:()=>n(!1),"aria-label":se("cartPopover.close"),children:d.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,focusable:"false",children:d.jsx("path",{d:"M5 5l14 14M19 5L5 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),d.jsxs("div",{className:"cartd__body",children:[r>0?d.jsxs("div",{className:"cartd__banner",children:[d.jsx("span",{className:"cartd__banner-check",children:d.jsx(Kf,{})}),d.jsxs("p",{children:[d.jsx("strong",{children:se("cartPopover.bannerCount",{count:r})})," ",se("cartPopover.bannerAdded")]})]}):null,d.jsx("ul",{className:"cartd__list",children:e.map(m=>d.jsx(r5,{item:m,onRemove:o,onIncrement:a,onDecrement:i},m.id))})]}),d.jsxs("footer",{className:"cartd__foot",children:[d.jsxs("div",{className:"cartd__totalrow",children:[d.jsx("span",{className:"cartd__total-label",children:se("cartPopover.total",{count:h})}),d.jsxs("span",{className:"cartd__total-val",title:xn(f),children:[d.jsx(rr,{className:"cartd__total-diamond"}),rn(f)]})]}),d.jsxs("div",{className:"cartd__ctas",children:[d.jsx(Sn,{className:"cartd__cta cartd__cta--primary",to:"/cart",onClick:()=>n(!1),children:se("cartPopover.goToCart")}),d.jsx("button",{className:"cartd__cta cartd__cta--secondary",onClick:()=>n(!1),children:se("cartPopover.continueShopping")})]})]})]})]}),document.body)}var Oo={},Cc={exports:{}},Fd;function Pl(){return Fd||(Fd=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})(Cc)),Cc.exports}var Ec={};function nn(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 Yf(e){if(ne.isValidElement(e)||!nn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Yf(e[r])}),t}function Pr(e,t,r={clone:!0}){const n=r.clone?Ye({},e):e;return nn(e)&&nn(t)&&Object.keys(t).forEach(o=>{ne.isValidElement(t[o])?n[o]=t[o]:nn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&nn(e[o])?n[o]=Pr(e[o],t[o],r):r.clone?n[o]=nn(t[o])?Yf(t[o]):t[o]:n[o]=t[o]}),n}const o5=Object.freeze(Object.defineProperty({__proto__:null,default:Pr,isPlainObject:nn},Symbol.toStringTag,{value:"Module"}));function Ko(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 a5=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"}));var xc={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 $d;function s5(){if($d)return Qe;$d=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=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"),y=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function A(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case e:switch(g=g.type,g){case r:case o:case n:case f:case h:case y:return g;default:switch(g=g&&g.$$typeof,g){case i:case u:case p:case m:return g;case a:return g;default:return S}}case t:return S}}}return Qe.ContextConsumer=a,Qe.ContextProvider=i,Qe.Element=e,Qe.ForwardRef=u,Qe.Fragment=r,Qe.Lazy=p,Qe.Memo=m,Qe.Portal=t,Qe.Profiler=o,Qe.StrictMode=n,Qe.Suspense=f,Qe.SuspenseList=h,Qe.isContextConsumer=function(g){return A(g)===a},Qe.isContextProvider=function(g){return A(g)===i},Qe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Qe.isForwardRef=function(g){return A(g)===u},Qe.isFragment=function(g){return A(g)===r},Qe.isLazy=function(g){return A(g)===p},Qe.isMemo=function(g){return A(g)===m},Qe.isPortal=function(g){return A(g)===t},Qe.isProfiler=function(g){return A(g)===o},Qe.isStrictMode=function(g){return A(g)===n},Qe.isSuspense=function(g){return A(g)===f},Qe.isSuspenseList=function(g){return A(g)===h},Qe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===m||g.$$typeof===i||g.$$typeof===a||g.$$typeof===u||g.$$typeof===_||g.getModuleId!==void 0)},Qe.typeOf=A,Qe}var Dd;function i5(){return Dd||(Dd=1,xc.exports=s5()),xc.exports}var qd=i5();const c5=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Qf(e){const t=`${e}`.match(c5);return t&&t[1]||""}function Jf(e,t=""){return e.displayName||e.name||Qf(e)||t}function Ud(e,t,r){const n=Jf(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function l5(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qd.ForwardRef:return Ud(e,e.render,"ForwardRef");case qd.Memo:return Ud(e,e.type,"memo");default:return}}}const u5=Object.freeze(Object.defineProperty({__proto__:null,default:l5,getFunctionName:Qf},Symbol.toStringTag,{value:"Module"}));function mn(e){if(typeof e!="string")throw new Error(Ko(7));return e.charAt(0).toUpperCase()+e.slice(1)}const d5=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));function f5(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function h5(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function m5(e,t){return()=>null}function p5(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 Xf(e){return e&&e.ownerDocument||document}function g5(e){return Xf(e).defaultView||window}function y5(e,t){return()=>null}function eh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const th=typeof window<"u"?ne.useLayoutEffect:ne.useEffect;let Hd=0;function v5(e){const[t,r]=ne.useState(e),n=e||t;return ne.useEffect(()=>{t==null&&(Hd+=1,r(`mui-${Hd}`))},[t]),n}const Vd=Rc.useId;function b5(e){if(Vd!==void 0){const t=Vd();return e??t}return v5(e)}function w5(e,t,r,n,o){return null}function _5({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=ne.useRef(e!==void 0),[a,i]=ne.useState(t),u=o?e:a,f=ne.useCallback(h=>{o||i(h)},[]);return[u,f]}function C5(e){const t=ne.useRef(e);return th(()=>{t.current=e}),ne.useRef((...r)=>(0,t.current)(...r)).current}function E5(...e){return ne.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{eh(r,t)})},e)}const zd={};function x5(e,t){const r=ne.useRef(zd);return r.current===zd&&(r.current=e(t)),r}const S5=[];function T5(e){ne.useEffect(e,S5)}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 S8(){const e=x5($s.create).current;return T5(e.disposeEffect),e}let Ds=!0,rl=!1;const A5=new $s,k5={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 I5(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&k5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function R5(e){e.metaKey||e.altKey||e.ctrlKey||(Ds=!0)}function Sc(){Ds=!1}function N5(){this.visibilityState==="hidden"&&rl&&(Ds=!0)}function P5(e){e.addEventListener("keydown",R5,!0),e.addEventListener("mousedown",Sc,!0),e.addEventListener("pointerdown",Sc,!0),e.addEventListener("touchstart",Sc,!0),e.addEventListener("visibilitychange",N5,!0)}function O5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ds||I5(t)}function j5(){const e=ne.useCallback(o=>{o!=null&&P5(o.ownerDocument)},[]),t=ne.useRef(!1);function r(){return t.current?(rl=!0,A5.start(100,()=>{rl=!1}),t.current=!1,!0):!1}function n(o){return O5(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function nl(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 o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=Ye({},a),Object.keys(o).forEach(i=>{r[n][i]=nl(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function L5(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const u=t(i);u!==""&&a.push(u),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const Gd=e=>e,M5=()=>{let e=Gd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gd}}},rh=M5(),B5={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 nh(e,t,r="Mui"){const n=B5[t];return n?`${r}-${n}`:`${rh.generate(e)}-${t}`}function F5(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=nh(e,o,r)}),n}function $5(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const D5=Object.freeze(Object.defineProperty({__proto__:null,default:$5},Symbol.toStringTag,{value:"Module"}));function pn(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 oh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=oh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function q5(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=oh(e))&&(n&&(n+=" "),n+=t);return n}const ah=ne.createContext(void 0);function T8({value:e,children:t}){return d.jsx(ah.Provider,{value:e,children:t})}function U5(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?nl(o.defaultProps,n):!o.styleOverrides&&!o.variants?nl(o,n):n}function H5({props:e,name:t}){const r=ne.useContext(ah);return U5({props:e,name:t,theme:{components:r}})}function V5(e){return H5(e)}var Cn={},Tc={exports:{}},Wd;function z5(){return Wd||(Wd=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 o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}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})(Tc)),Tc.exports}var Ac={exports:{}},Zd;function G5(){return Zd||(Zd=1,(function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)!==-1)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ac)),Ac.exports}function W5(e,t){const r=cf({key:"css",prepend:e});if(t){const n=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),n(...o))}return r}const kc=new Map;function Z5(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=ne.useMemo(()=>{const a=`${t}-${r}`;if(typeof document=="object"&&kc.has(a))return kc.get(a);const i=W5(t,r);return kc.set(a,i),i},[t,r]);return t||r?d.jsx(Op,{value:o,children:n}):n}function K5(e){return e==null||Object.keys(e).length===0}function Y5(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(K5(o)?r:o):t;return d.jsx(Fp,{styles:n})}function Q5(e,t){return wt(e,t)}const J5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Kd=[];function X5(e){return Kd[0]=e,oa(Kd)}const ew=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Y5,StyledEngineProvider:Z5,ThemeContext:Ps,css:_l,default:Q5,internal_processStyles:J5,internal_serializeStyles:X5,keyframes:mf},Symbol.toStringTag,{value:"Module"})),tw=Zr(ew),rw=Zr(o5),nw=Zr(d5),ow=Zr(u5),aw=["values","unit","step"],sw=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 sh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pn(e,aw),a=sw(t),i=Object.keys(a);function u(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function h(y,_){const A=i.indexOf(_);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(A!==-1&&typeof t[i[A]]=="number"?t[i[A]]:_)-n/100}${r})`}function m(y){return i.indexOf(y)+1<i.length?h(y,i[i.indexOf(y)+1]):u(y)}function p(y){const _=i.indexOf(y);return _===0?u(i[1]):_===i.length-1?f(i[_]):h(y,i[i.indexOf(y)+1]).replace("@media","@media not all and")}return Ye({keys:i,values:a,up:u,down:f,between:h,only:m,not:p,unit:r},o)}const iw={borderRadius:4};function $o(e,t){return t?Pr(e,t,{clone:!1}):e}const Ol={xs:0,sm:600,md:900,lg:1200,xl:1536},Yd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ol[e]}px)`};function Wr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Yd;return t.reduce((i,u,f)=>(i[a.up(a.keys[f])]=r(t[f]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Yd;return Object.keys(t).reduce((i,u)=>{if(Object.keys(a.values||Ol).indexOf(u)!==-1){const f=a.up(u);i[f]=r(t[u],u)}else{const f=u;i[f]=t[f]}return i},{})}return r(t)}function cw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Qd(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).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((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ss(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=qs(e,r)||n,t&&(o=t(o,n,e)),o}function mt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const u=i[t],f=i.theme,h=qs(f,n)||{};return Wr(i,u,p=>{let y=Ss(h,o,p);return p===y&&typeof p=="string"&&(y=Ss(h,o,`${t}${p==="default"?"":mn(p)}`,p)),r===!1?y:{[r]:y}})};return a.propTypes={},a.filterProps=[t],a}function lw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const uw={m:"margin",p:"padding"},dw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fw=lw(e=>{if(e.length>2)if(Jd[e])e=Jd[e];else return[e];const[t,r]=e.split(""),n=uw[t],o=dw[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),jl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ll=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jl,...Ll];function ca(e,t,r,n){var o;const a=(o=qs(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function ih(e){return ca(e,"spacing",8)}function la(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 hw(e,t){return r=>e.reduce((n,o)=>(n[o]=la(t,r),n),{})}function mw(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=fw(r),a=hw(o,n),i=e[r];return Wr(e,i,a)}function ch(e,t){const r=ih(e.theme);return Object.keys(e).map(n=>mw(e,t,n,r)).reduce($o,{})}function lt(e){return ch(e,jl)}lt.propTypes={};lt.filterProps=jl;function ut(e){return ch(e,Ll)}ut.propTypes={};ut.filterProps=Ll;function pw(e=8){if(e.mui)return e;const t=ih({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Us(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?$o(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function cr(e){return typeof e!="number"?e:`${e}px solid`}function ur(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const gw=ur("border",cr),yw=ur("borderTop",cr),vw=ur("borderRight",cr),bw=ur("borderBottom",cr),ww=ur("borderLeft",cr),_w=ur("borderColor"),Cw=ur("borderTopColor"),Ew=ur("borderRightColor"),xw=ur("borderBottomColor"),Sw=ur("borderLeftColor"),Tw=ur("outline",cr),Aw=ur("outlineColor"),Hs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ca(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:la(t,n)});return Wr(e,e.borderRadius,r)}return null};Hs.propTypes={};Hs.filterProps=["borderRadius"];Us(gw,yw,vw,bw,ww,_w,Cw,Ew,xw,Sw,Hs,Tw,Aw);const Vs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ca(e.theme,"spacing",8),r=n=>({gap:la(t,n)});return Wr(e,e.gap,r)}return null};Vs.propTypes={};Vs.filterProps=["gap"];const zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ca(e.theme,"spacing",8),r=n=>({columnGap:la(t,n)});return Wr(e,e.columnGap,r)}return null};zs.propTypes={};zs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ca(e.theme,"spacing",8),r=n=>({rowGap:la(t,n)});return Wr(e,e.rowGap,r)}return null};Gs.propTypes={};Gs.filterProps=["rowGap"];const kw=mt({prop:"gridColumn"}),Iw=mt({prop:"gridRow"}),Rw=mt({prop:"gridAutoFlow"}),Nw=mt({prop:"gridAutoColumns"}),Pw=mt({prop:"gridAutoRows"}),Ow=mt({prop:"gridTemplateColumns"}),jw=mt({prop:"gridTemplateRows"}),Lw=mt({prop:"gridTemplateAreas"}),Mw=mt({prop:"gridArea"});Us(Vs,zs,Gs,kw,Iw,Rw,Nw,Pw,Ow,jw,Lw,Mw);function Jn(e,t){return t==="grey"?t:e}const Bw=mt({prop:"color",themeKey:"palette",transform:Jn}),Fw=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Jn}),$w=mt({prop:"backgroundColor",themeKey:"palette",transform:Jn});Us(Bw,Fw,$w);function nr(e){return e<=1&&e!==0?`${e*100}%`:e}const Dw=mt({prop:"width",transform:nr}),Ml=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Ol[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:nr(r)}};return Wr(e,e.maxWidth,t)}return null};Ml.filterProps=["maxWidth"];const qw=mt({prop:"minWidth",transform:nr}),Uw=mt({prop:"height",transform:nr}),Hw=mt({prop:"maxHeight",transform:nr}),Vw=mt({prop:"minHeight",transform:nr});mt({prop:"size",cssProperty:"width",transform:nr});mt({prop:"size",cssProperty:"height",transform:nr});const zw=mt({prop:"boxSizing"});Us(Dw,Ml,qw,Uw,Hw,Vw,zw);const ua={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:Jn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Jn},backgroundColor:{themeKey:"palette",transform:Jn},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:Ml},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 Gw(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ww(e,t){return typeof e=="function"?e(t):e}function lh(){function e(r,n,o,a){const i={[r]:n,theme:o},u=a[r];if(!u)return{[r]:n};const{cssProperty:f=r,themeKey:h,transform:m,style:p}=u;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const y=qs(o,h)||{};return p?p(i):Wr(i,n,A=>{let g=Ss(y,m,A);return A===g&&typeof A=="string"&&(g=Ss(y,m,`${r}${A==="default"?"":mn(A)}`,A)),f===!1?g:{[f]:g}})}function t(r){var n;const{sx:o,theme:a={},nested:i}=r||{};if(!o)return null;const u=(n=a.unstable_sxConfig)!=null?n:ua;function f(h){let m=h;if(typeof h=="function")m=h(a);else if(typeof h!="object")return h;if(!m)return null;const p=cw(a.breakpoints),y=Object.keys(p);let _=p;return Object.keys(m).forEach(A=>{const g=Ww(m[A],a);if(g!=null)if(typeof g=="object")if(u[A])_=$o(_,e(A,g,a,u));else{const S=Wr({theme:a},g,Z=>({[A]:Z}));Gw(S,g)?_[A]=t({sx:g,theme:a,nested:!0}):_=$o(_,S)}else _=$o(_,e(A,g,a,u))}),!i&&a.modularCssLayers?{"@layer sx":Qd(y,_)}:Qd(y,_)}return Array.isArray(o)?o.map(f):f(o)}return t}const Ws=lh();Ws.filterProps=["sx"];function uh(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 Zw=["breakpoints","palette","spacing","shape"];function dh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=pn(e,Zw),u=sh(r),f=pw(o);let h=Pr({breakpoints:u,direction:"ltr",components:{},palette:Ye({mode:"light"},n),spacing:f,shape:Ye({},iw,a)},i);return h.applyStyles=uh,h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},ua,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}const Kw=Object.freeze(Object.defineProperty({__proto__:null,default:dh,private_createBreakpoints:sh,unstable_applyStyles:uh},Symbol.toStringTag,{value:"Module"})),Yw=Zr(Kw),Qw=["sx"],Jw=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ua;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Xw(e){const{sx:t}=e,r=pn(e,Qw),{systemProps:n,otherProps:o}=Jw(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const u=t(...i);return nn(u)?Ye({},n,u):n}:a=Ye({},n,t),Ye({},o,{sx:a})}const e4=Object.freeze(Object.defineProperty({__proto__:null,default:Ws,extendSxProp:Xw,unstable_createStyleFunctionSx:lh,unstable_defaultSxConfig:ua},Symbol.toStringTag,{value:"Module"})),t4=Zr(e4);var Xd;function r4(){if(Xd)return Cn;Xd=1;var e=Pl();Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=K,Cn.shouldForwardProp=A,Cn.systemDefaultTheme=void 0;var t=e(z5()),r=e(G5()),n=p(tw),o=rw;e(nw),e(ow);var a=e(Yw),i=e(t4);const u=["ownerState"],f=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(q){if(typeof WeakMap!="function")return null;var x=new WeakMap,U=new WeakMap;return(m=function(Q){return Q?U:x})(q)}function p(q,x){if(q&&q.__esModule)return q;if(q===null||typeof q!="object"&&typeof q!="function")return{default:q};var U=m(x);if(U&&U.has(q))return U.get(q);var Q={__proto__:null},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in q)if(oe!=="default"&&Object.prototype.hasOwnProperty.call(q,oe)){var J=ee?Object.getOwnPropertyDescriptor(q,oe):null;J&&(J.get||J.set)?Object.defineProperty(Q,oe,J):Q[oe]=q[oe]}return Q.default=q,U&&U.set(q,Q),Q}function y(q){return Object.keys(q).length===0}function _(q){return typeof q=="string"&&q.charCodeAt(0)>96}function A(q){return q!=="ownerState"&&q!=="theme"&&q!=="sx"&&q!=="as"}function g(q,x){return x&&q&&typeof q=="object"&&q.styles&&!q.styles.startsWith("@layer")&&(q.styles=`@layer ${x}{${String(q.styles)}}`),q}const S=Cn.systemDefaultTheme=(0,a.default)(),Z=q=>q&&q.charAt(0).toLowerCase()+q.slice(1);function b({defaultTheme:q,theme:x,themeId:U}){return y(x)?q:x[U]||x}function I(q){return q?(x,U)=>U[q]:null}function w(q,x,U){let{ownerState:Q}=x,ee=(0,r.default)(x,u);const oe=typeof q=="function"?q((0,t.default)({ownerState:Q},ee)):q;if(Array.isArray(oe))return oe.flatMap(J=>w(J,(0,t.default)({ownerState:Q},ee),U));if(oe&&typeof oe=="object"&&Array.isArray(oe.variants)){const{variants:J=[]}=oe;let N=(0,r.default)(oe,f);return J.forEach(O=>{let z=!0;if(typeof O.props=="function"?z=O.props((0,t.default)({ownerState:Q},ee,Q)):Object.keys(O.props).forEach(D=>{(Q==null?void 0:Q[D])!==O.props[D]&&ee[D]!==O.props[D]&&(z=!1)}),z){Array.isArray(N)||(N=[N]);const D=typeof O.style=="function"?O.style((0,t.default)({ownerState:Q},ee,Q)):O.style;N.push(U?g((0,n.internal_serializeStyles)(D),U):D)}}),N}return U?g((0,n.internal_serializeStyles)(oe),U):oe}function K(q={}){const{themeId:x,defaultTheme:U=S,rootShouldForwardProp:Q=A,slotShouldForwardProp:ee=A}=q,oe=J=>(0,i.default)((0,t.default)({},J,{theme:b((0,t.default)({},J,{defaultTheme:U,themeId:x}))}));return oe.__mui_systemSx=!0,(J,L={})=>{(0,n.internal_processStyles)(J,we=>we.filter(Ee=>!(Ee!=null&&Ee.__mui_systemSx)));const{name:N,slot:O,skipVariantsResolver:z,skipSx:D,overridesResolver:H=I(Z(O))}=L,R=(0,r.default)(L,h),j=N&&N.startsWith("Mui")||O?"components":"custom",G=z!==void 0?z:O&&O!=="Root"&&O!=="root"||!1,Y=D||!1;let ce,ie=A;O==="Root"||O==="root"?ie=Q:O?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,o.isPlainObject)(we)?Ee=>{const ye=b({theme:Ee.theme,defaultTheme:U,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 ze=Ee?Ee.map(de):[];N&&H&&ze.push(fe=>{const ve=b((0,t.default)({},fe,{defaultTheme:U,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,ft])=>{Me[Be]=w(ft,(0,t.default)({},fe,{theme:ve}),ve.modularCssLayers?"theme":void 0)}),H(fe,Me)}),N&&!G&&ze.push(fe=>{var ve;const Ae=b((0,t.default)({},fe,{defaultTheme:U,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||ze.push(oe);const Ue=ze.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,...ze);return J.muiName&&(he.muiName=J.muiName),he};return le.withConfig&&(Re.withConfig=le.withConfig),Re}}return Cn}var n4=r4();const o4=As(n4);function a4(e,t){return Ye({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ct={};const s4=Zr(a5),i4=Zr(D5);var e2;function c4(){if(e2)return ct;e2=1;var e=Pl();Object.defineProperty(ct,"__esModule",{value:!0}),ct.alpha=A,ct.blend=q,ct.colorChannel=void 0,ct.darken=S,ct.decomposeColor=i,ct.emphasize=w,ct.getContrastRatio=_,ct.getLuminance=y,ct.hexToRgb=o,ct.hslToRgb=p,ct.lighten=b,ct.private_safeAlpha=g,ct.private_safeColorChannel=void 0,ct.private_safeDarken=Z,ct.private_safeEmphasize=K,ct.private_safeLighten=I,ct.recomposeColor=h,ct.rgbToHex=m;var t=e(s4),r=e(i4);function n(x,U=0,Q=1){return(0,r.default)(x,U,Q)}function o(x){x=x.slice(1);const U=new RegExp(`.{1,${x.length>=6?2:1}}`,"g");let Q=x.match(U);return Q&&Q[0].length===1&&(Q=Q.map(ee=>ee+ee)),Q?`rgb${Q.length===4?"a":""}(${Q.map((ee,oe)=>oe<3?parseInt(ee,16):Math.round(parseInt(ee,16)/255*1e3)/1e3).join(", ")})`:""}function a(x){const U=x.toString(16);return U.length===1?`0${U}`:U}function i(x){if(x.type)return x;if(x.charAt(0)==="#")return i(o(x));const U=x.indexOf("("),Q=x.substring(0,U);if(["rgb","rgba","hsl","hsla","color"].indexOf(Q)===-1)throw new Error((0,t.default)(9,x));let ee=x.substring(U+1,x.length-1),oe;if(Q==="color"){if(ee=ee.split(" "),oe=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(oe)===-1)throw new Error((0,t.default)(10,oe))}else ee=ee.split(",");return ee=ee.map(J=>parseFloat(J)),{type:Q,values:ee,colorSpace:oe}}const u=x=>{const U=i(x);return U.values.slice(0,3).map((Q,ee)=>U.type.indexOf("hsl")!==-1&&ee!==0?`${Q}%`:Q).join(" ")};ct.colorChannel=u;const f=(x,U)=>{try{return u(x)}catch{return x}};ct.private_safeColorChannel=f;function h(x){const{type:U,colorSpace:Q}=x;let{values:ee}=x;return U.indexOf("rgb")!==-1?ee=ee.map((oe,J)=>J<3?parseInt(oe,10):oe):U.indexOf("hsl")!==-1&&(ee[1]=`${ee[1]}%`,ee[2]=`${ee[2]}%`),U.indexOf("color")!==-1?ee=`${Q} ${ee.join(" ")}`:ee=`${ee.join(", ")}`,`${U}(${ee})`}function m(x){if(x.indexOf("#")===0)return x;const{values:U}=i(x);return`#${U.map((Q,ee)=>a(ee===3?Math.round(255*Q):Q)).join("")}`}function p(x){x=i(x);const{values:U}=x,Q=U[0],ee=U[1]/100,oe=U[2]/100,J=ee*Math.min(oe,1-oe),L=(z,D=(z+Q/30)%12)=>oe-J*Math.max(Math.min(D-3,9-D,1),-1);let N="rgb";const O=[Math.round(L(0)*255),Math.round(L(8)*255),Math.round(L(4)*255)];return x.type==="hsla"&&(N+="a",O.push(U[3])),h({type:N,values:O})}function y(x){x=i(x);let U=x.type==="hsl"||x.type==="hsla"?i(p(x)).values:x.values;return U=U.map(Q=>(x.type!=="color"&&(Q/=255),Q<=.03928?Q/12.92:((Q+.055)/1.055)**2.4)),Number((.2126*U[0]+.7152*U[1]+.0722*U[2]).toFixed(3))}function _(x,U){const Q=y(x),ee=y(U);return(Math.max(Q,ee)+.05)/(Math.min(Q,ee)+.05)}function A(x,U){return x=i(x),U=n(U),(x.type==="rgb"||x.type==="hsl")&&(x.type+="a"),x.type==="color"?x.values[3]=`/${U}`:x.values[3]=U,h(x)}function g(x,U,Q){try{return A(x,U)}catch{return x}}function S(x,U){if(x=i(x),U=n(U),x.type.indexOf("hsl")!==-1)x.values[2]*=1-U;else if(x.type.indexOf("rgb")!==-1||x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]*=1-U;return h(x)}function Z(x,U,Q){try{return S(x,U)}catch{return x}}function b(x,U){if(x=i(x),U=n(U),x.type.indexOf("hsl")!==-1)x.values[2]+=(100-x.values[2])*U;else if(x.type.indexOf("rgb")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(255-x.values[Q])*U;else if(x.type.indexOf("color")!==-1)for(let Q=0;Q<3;Q+=1)x.values[Q]+=(1-x.values[Q])*U;return h(x)}function I(x,U,Q){try{return b(x,U)}catch{return x}}function w(x,U=.15){return y(x)>.5?S(x,U):b(x,U)}function K(x,U,Q){try{return w(x,U)}catch{return x}}function q(x,U,Q,ee=1){const oe=(O,z)=>Math.round((O**(1/ee)*(1-Q)+z**(1/ee)*Q)**ee),J=i(x),L=i(U),N=[oe(J.values[0],L.values[0]),oe(J.values[1],L.values[1]),oe(J.values[2],L.values[2])];return h({type:"rgb",values:N})}return ct}var ol=c4();const Yo={black:"#000",white:"#fff"},l4={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"},Gn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Wn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},jo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},u4=["mode","contrastThreshold","tonalOffset"],t2={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:Yo.white,default:Yo.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}},Ic={text:{primary:Yo.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:Yo.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 r2(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ol.lighten(e.main,o):t==="dark"&&(e.dark=ol.darken(e.main,a)))}function d4(e="light"){return e==="dark"?{main:Zn[200],light:Zn[50],dark:Zn[400]}:{main:Zn[700],light:Zn[400],dark:Zn[800]}}function f4(e="light"){return e==="dark"?{main:Gn[200],light:Gn[50],dark:Gn[400]}:{main:Gn[500],light:Gn[300],dark:Gn[700]}}function h4(e="light"){return e==="dark"?{main:Wn[500],light:Wn[300],dark:Wn[700]}:{main:Wn[700],light:Wn[400],dark:Wn[800]}}function m4(e="light"){return e==="dark"?{main:Kn[400],light:Kn[300],dark:Kn[700]}:{main:Kn[700],light:Kn[500],dark:Kn[900]}}function p4(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function g4(e="light"){return e==="dark"?{main:jo[400],light:jo[300],dark:jo[700]}:{main:"#ed6c02",light:jo[500],dark:jo[900]}}function y4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pn(e,u4),a=e.primary||d4(t),i=e.secondary||f4(t),u=e.error||h4(t),f=e.info||m4(t),h=e.success||p4(t),m=e.warning||g4(t);function p(g){return ol.getContrastRatio(g,Ic.text.primary)>=r?Ic.text.primary:t2.text.primary}const y=({color:g,name:S,mainShade:Z=500,lightShade:b=300,darkShade:I=700})=>{if(g=Ye({},g),!g.main&&g[Z]&&(g.main=g[Z]),!g.hasOwnProperty("main"))throw new Error(Ko(11,S?` (${S})`:"",Z));if(typeof g.main!="string")throw new Error(Ko(12,S?` (${S})`:"",JSON.stringify(g.main)));return r2(g,"light",b,n),r2(g,"dark",I,n),g.contrastText||(g.contrastText=p(g.main)),g},_={dark:Ic,light:t2};return Pr(Ye({common:Ye({},Yo),mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:m,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:l4,contrastThreshold:r,getContrastText:p,augmentColor:y,tonalOffset:n},_[t]),o)}const v4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function b4(e){return Math.round(e*1e5)/1e5}const n2={textTransform:"uppercase"},o2='"Roboto", "Helvetica", "Arial", sans-serif';function w4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=o2,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:m,pxToRem:p}=r,y=pn(r,v4),_=o/14,A=p||(Z=>`${Z/h*_}rem`),g=(Z,b,I,w,K)=>Ye({fontFamily:n,fontWeight:Z,fontSize:A(b),lineHeight:I},n===o2?{letterSpacing:`${b4(w/b)}em`}:{},K,m),S={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(u,14,1.75,.4,n2),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,n2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr(Ye({htmlFontSize:h,pxToRem:A,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:f},S),y,{clone:!1})}const _4=.2,C4=.14,E4=.12;function st(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${C4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${E4})`].join(",")}const x4=["none",st(0,2,1,-1,0,1,1,0,0,1,3,0),st(0,3,1,-2,0,2,2,0,0,1,5,0),st(0,3,3,-2,0,3,4,0,0,1,8,0),st(0,2,4,-1,0,4,5,0,0,1,10,0),st(0,3,5,-1,0,5,8,0,0,1,14,0),st(0,3,5,-1,0,6,10,0,0,1,18,0),st(0,4,5,-2,0,7,10,1,0,2,16,1),st(0,5,5,-3,0,8,10,1,0,3,14,2),st(0,5,6,-3,0,9,12,1,0,3,16,2),st(0,6,6,-3,0,10,14,1,0,4,18,3),st(0,6,7,-4,0,11,15,1,0,4,20,3),st(0,7,8,-4,0,12,17,2,0,5,22,4),st(0,7,8,-4,0,13,19,2,0,5,24,4),st(0,7,9,-4,0,14,21,2,0,5,26,4),st(0,8,9,-5,0,15,22,2,0,6,28,5),st(0,8,10,-5,0,16,24,2,0,6,30,5),st(0,8,11,-5,0,17,26,2,0,6,32,5),st(0,9,11,-5,0,18,28,2,0,7,34,6),st(0,9,12,-6,0,19,29,2,0,7,36,6),st(0,10,13,-6,0,20,31,3,0,8,38,7),st(0,10,13,-6,0,21,33,3,0,8,40,7),st(0,10,14,-6,0,22,35,3,0,8,42,7),st(0,11,14,-7,0,23,36,3,0,9,44,8),st(0,11,15,-7,0,24,38,3,0,9,46,8)],S4=["duration","easing","delay"],T4={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)"},A4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a2(e){return`${Math.round(e)}ms`}function k4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function I4(e){const t=Ye({},T4,e.easing),r=Ye({},A4,e.duration);return Ye({getAutoHeightDuration:k4,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:f=0}=a;return pn(a,S4),(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof i=="string"?i:a2(i)} ${u} ${typeof f=="string"?f:a2(f)}`).join(",")}},e,{easing:t,duration:r})}const R4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=pn(e,N4);if(e.vars)throw new Error(Ko(18));const u=y4(n),f=dh(e);let h=Pr(f,{mixins:a4(f.breakpoints,r),palette:u,shadows:x4.slice(),typography:w4(u,a),transitions:I4(o),zIndex:Ye({},R4)});return h=Pr(h,i),h=t.reduce((m,p)=>Pr(m,p),h),h.unstable_sxConfig=Ye({},ua,i==null?void 0:i.unstable_sxConfig),h.unstable_sx=function(p){return Ws({sx:p,theme:this})},h}function A8(...e){return fh(...e)}const P4=fh(),O4="$$material";function j4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const L4=e=>j4(e)&&e!=="classes",M4=o4({themeId:O4,defaultTheme:P4,rootShouldForwardProp:L4});function B4(e){return nh("MuiSvgIcon",e)}F5("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const F4=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$4=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${mn(t)}`,`fontSize${mn(r)}`]};return L5(o,B4,n)},D4=M4("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${mn(r.color)}`],t[`fontSize${mn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,u,f,h,m,p,y,_,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem",large:((h=e.typography)==null||(m=h.pxToRem)==null?void 0:m.call(h,35))||"2.1875rem"}[t.fontSize],color:(p=(y=(e.vars||e).palette)==null||(y=y[t.color])==null?void 0:y.main)!=null?p:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(A=(e.vars||e).palette)==null||(A=A.action)==null?void 0:A.disabled,inherit:void 0}[t.color]}}),al=ne.forwardRef(function(t,r){const n=V5({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:p,viewBox:y="0 0 24 24"}=n,_=pn(n,F4),A=ne.isValidElement(o)&&o.type==="svg",g=Ye({},n,{color:i,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:y,hasSvgAsChild:A}),S={};m||(S.viewBox=y);const Z=$4(g);return d.jsxs(D4,Ye({as:u,className:q5(Z.root,a),focusable:"false",color:h,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},S,_,A&&o.props,{ownerState:g,children:[A?o.props.children:o,p?d.jsx("title",{children:p}):null]}))});al.muiName="SvgIcon";function q4(e,t){function r(n,o){return d.jsx(al,Ye({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=al.muiName,ne.memo(ne.forwardRef(r))}const U4={configure:e=>{rh.configure(e)}},H4=Object.freeze(Object.defineProperty({__proto__:null,capitalize:mn,createChainedFunction:f5,createSvgIcon:q4,debounce:h5,deprecatedPropType:m5,isMuiElement:p5,ownerDocument:Xf,ownerWindow:g5,requirePropFactory:y5,setRef:eh,unstable_ClassNameGenerator:U4,unstable_useEnhancedEffect:th,unstable_useId:b5,unsupportedProp:w5,useControlled:_5,useEventCallback:C5,useForkRef:E5,useIsFocusVisible:j5},Symbol.toStringTag,{value:"Module"})),V4=Zr(H4);var s2;function z4(){return s2||(s2=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=V4})(Ec)),Ec}var i2;function G4(){if(i2)return Oo;i2=1;var e=Pl();Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var t=e(z4()),r=Hh();return Oo.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"),Oo}var W4=G4();const hh=As(W4),da=`${Ze.nftApiUrl}/v1`;function mh(e){if(!e)return 0;try{return Math.ceil(Number(F2(e))*10)}catch{return 0}}function k8(e){if(!e)return 0;try{const t=BigInt(e),r=10n**16n;return Number((t+r-1n)/r)}catch{return 0}}async function I8(e,t){var n,o,a;const r=new URLSearchParams({contractAddresses:e,itemId:t,first:"1"});try{const i=await fetch(`${Ze.nftApiUrl}/v2/catalog?${r.toString()}`);if(!i.ok)return"";const{data:u}=await i.json(),f=(n=u==null?void 0:u[0])==null?void 0:n.data;return(((o=f==null?void 0:f.wearable)==null?void 0:o.description)??((a=f==null?void 0:f.emote)==null?void 0:a.description)??"").trim()}catch{return""}}async function R8(e){const{listings:t}=await Zs({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 Z4(e,t){var a;const r=new URLSearchParams({contractAddress:e,tokenId:t,first:"1"}),n=await fetch(`${da}/nfts?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return((a=o==null?void 0:o[0])==null?void 0:a.nft)??null}function Bl(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,compareAtCredits:e.compareAtCredits!=null&&e.compareAtCredits>e.priceCredits?e.compareAtCredits:void 0,saleEndsAt:e.saleEndsAt!=null?e.saleEndsAt*1e3:void 0}}async function Zs(e){var o,a;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),(o=e.rarities)!=null&&o.length&&t.set("rarity",e.rarities.join(",")),(a=e.wearableCategories)!=null&&a.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(`${Ze.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 N8(e,t){const{listings:r}=await Zs({contractAddress:e,itemId:t,first:1});return r[0]?Bl(r[0]):null}async function ph({first:e=100,...t}={}){const{listings:r,total:n}=await Zs({...t,first:e});return{items:r.map(Bl),total:n}}function K4(e){return{...Bl(e),source:e.source,manaWei:e.manaWei??null}}async function P8({first:e=100,...t}={}){var i,u;const r=new URLSearchParams;(t.category==="wearable"||t.category==="emote")&&r.set("category",t.category),r.set("first",String(e)),t.skip!=null&&r.set("skip",String(t.skip)),t.contractAddress&&r.set("contractAddress",t.contractAddress),t.itemId!=null&&r.set("itemId",t.itemId),t.creator&&r.set("creator",t.creator),(i=t.rarities)!=null&&i.length&&r.set("rarity",t.rarities.join(",")),(u=t.wearableCategories)!=null&&u.length&&r.set("wearableCategory",t.wearableCategories.join(",")),t.minPriceCredits!=null&&r.set("minPriceCredits",String(t.minPriceCredits)),t.maxPriceCredits!=null&&r.set("maxPriceCredits",String(t.maxPriceCredits)),t.search&&r.set("search",t.search),t.sortBy&&r.set("sortBy",t.sortBy),t.isSmart&&r.set("isSmart","true"),t.onSale!=null&&r.set("onSale",String(t.onSale));const n=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/unified?${r.toString()}`);if(!n.ok)throw new Error(`fetchUnified ${n.status}`);const o=await n.json(),a=o.data??[];return{items:a.map(K4),total:o.total??a.length}}function gh(e){var t,r,n,o,a;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)??((o=(n=e.nft.data)==null?void 0:n.emote)==null?void 0:o.rarity),network:e.nft.network,chainId:e.nft.chainId,isOnSale:e.order!=null,listingPrice:e.order?mh(e.order.price):void 0,tradeId:(a=e.order)==null?void 0:a.tradeId}}async function O8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,itemId:r,first:"1"}),o=await fetch(`${da}/nfts?${n.toString()}`);if(!o.ok)return!1;const{total:a}=await o.json();return(a??0)>0}catch{return!1}}async function j8(e,{category:t="wearable",first:r=48,skip:n=0,search:o,rarities:a,wearableCategories:i,emoteCategories:u,onlyOnSale:f,sortBy:h="newest"}={}){const m=new URLSearchParams({owner:e.toLowerCase(),category:t,first:String(r),skip:String(n),sortBy:h,orderDirection:"desc"});o&&m.set("search",o);for(const g of a??[])m.append("itemRarity",g);for(const g of i??[])m.append("wearableCategory",g);for(const g of u??[])m.append("emoteCategory",g);f&&m.set("isOnSale","true");const p=await fetch(`${da}/nfts?${m.toString()}`);if(!p.ok)throw new Error(`Failed to fetch assets (${p.status})`);const{data:y,total:_}=await p.json();return{assets:y.map(gh),total:_}}async function L8(e,t,r){try{const n=new URLSearchParams({owner:e.toLowerCase(),contractAddress:t,tokenId:r,first:"1"}),o=await fetch(`${da}/nfts?${n.toString()}`);if(!o.ok)return null;const{data:a}=await o.json(),i=a==null?void 0:a[0];return!i||i.nft.tokenId!==r?null:gh(i)}catch{return null}}const Y4="dcl:marketplace";async function M8(e,t){const{TradeService:r}=await _t(async()=>{const{TradeService:o}=await import("./TradeService-IuqYxWb8.js");return{TradeService:o}},__vite__mapDeps([11,7,1,6,2,12,9,10,8]));return new r(Y4,Ze.marketplaceServerUrl,()=>t).addTrade(e)}class yh extends Error{constructor(t){super("fetchTrade 404"),this.tradeId=t,this.name="TradeNotFoundError"}}async function Fl(e){var n;const t=await fetch(`${Ze.marketplaceServerUrl}/v1/trades/${e}`);if(t.status===404)throw(n=t.body)==null||n.cancel(),new yh(e);if(!t.ok)throw new Error(`fetchTrade ${t.status}`);const r=await t.json();return r.data??r}async function B8(e){if(e.tradeId)try{return await Fl(e.tradeId)}catch(t){if(!(t instanceof yh)||!e.itemId)throw t}return e.itemId?J4(e.contractAddress,e.itemId):null}async function Q4(e,t){const r=new URLSearchParams({contractAddress:e,itemId:t,first:"1"}),n=await fetch(`${da}/items?${r.toString()}`);if(!n.ok)return null;const{data:o}=await n.json();return(o==null?void 0:o[0])??null}async function F8(e){var f,h;let t;try{t=await Fl(e)}catch{return null}const r=(f=t.sent)==null?void 0:f[0],n=(h=t.received)==null?void 0:h[0],o=mh(n==null?void 0:n.amount),a=(r==null?void 0:r.contractAddress)??"",i=(r==null?void 0:r.itemId)??(r==null?void 0:r.tokenId)??(r==null?void 0:r.value)??"";if(!a)return{name:"Item",thumbnail:"",credits:o,contractAddress:""};if((r==null?void 0:r.assetType)===bt.TradeAssetType.COLLECTION_ITEM){const m=i?await Q4(a,i):null;return{name:(m==null?void 0:m.name)??"Item",thumbnail:(m==null?void 0:m.thumbnail)??"",credits:o,contractAddress:a,itemId:i}}const u=i?await Z4(a,i):null;return{name:(u==null?void 0:u.name)??(i?`#${i}`:"Item"),thumbnail:(u==null?void 0:u.image)??"",credits:o,contractAddress:a,tokenId:i}}async function J4(e,t){var o;const{listings:r}=await Zs({contractAddress:e,itemId:t,first:1}),n=(o=r[0])==null?void 0:o.tradeId;return n?Fl(n):null}async function X4(e,t=4){const r=new URLSearchParams({search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/collections?${r.toString()}`);if(!n.ok)throw new Error(`fetchCollectionSuggestions ${n.status}`);const{data:o}=await n.json();return(o??[]).filter(a=>a.contractAddress&&a.name).map(a=>({contractAddress:a.contractAddress,name:a.name,creator:a.creator??""}))}async function e_(e,t){var i,u,f;const r=new URLSearchParams({category:"ens",search:e,first:String(t)}),n=await fetch(`${Ze.nftApiUrl}/v1/nfts?${r.toString()}`);if(!n.ok)throw new Error(`fetchNameOwners ${n.status}`);const{data:o}=await n.json(),a=new Map;for(const h of o??[]){const m=(u=(i=h.nft)==null?void 0:i.owner)==null?void 0:u.toLowerCase(),p=(f=h.nft)==null?void 0:f.name;m&&p&&!a.has(m)&&a.set(m,p)}return a}async function t_(e){if(e.length===0)return new Map;const t=new URLSearchParams({sortBy:"most_collections"});for(const a of e)t.append("address",a);const r=await fetch(`${Ze.nftApiUrl}/v1/accounts?${t.toString()}`);if(!r.ok)throw new Error(`fetchSellerCounts ${r.status}`);const{data:n}=await r.json(),o=new Map;for(const a of n??[])(a.collections??0)>0&&o.set(a.address.toLowerCase(),a.collections??0);return o}async function r_(e,t=4,r=20){const n=e.trim();if(!n)return[];const o=await e_(n,r);if(o.size===0)return[];const a=await t_([...o.keys()]),i=[...o.keys()].filter(u=>a.has(u)).slice(0,t);return i.length===0?[]:Promise.all(i.map(async u=>{var h,m;const f=await Sf(u);return{address:u,name:(f==null?void 0:f.name)||(o.get(u)??u),face:(m=(h=f==null?void 0:f.avatar)==null?void 0:h.snapshots)==null?void 0:m.face256}}))}function n_(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 $l(e){var t,r,n,o,a,i,u,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)??((o=(n=e.data)==null?void 0:n.emote)==null?void 0:o.category),rarity:e.rarity??"common",isSmart:!!((i=(a=e.data)==null?void 0:a.wearable)!=null&&i.isSmart),network:e.network,chainId:e.chainId,thumbnail:e.thumbnail??"",priceCredits:e.priceCredits??0,gender:n_((f=(u=e.data)==null?void 0:u.wearable)==null?void 0:f.bodyShapes)}}async function o_(e,{first:t=20,skip:r=0,category:n,rarities:o,wearableCategories:a,minPriceCredits:i,maxPriceCredits:u,sortBy:f}={}){const h=new URLSearchParams({contractAddress:e,first:String(t),skip:String(r),includeSocialEmotes:"false"});n&&n!=="all"&&h.set("category",n),o==null||o.forEach(A=>h.append("rarity",A)),a==null||a.forEach(A=>h.append("wearableCategory",A)),i!=null&&h.set("minPrice",String(i)),u!=null&&h.set("maxPrice",String(u)),f&&h.set("sortBy",f);const m=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCollectionItems ${m.status}`);const{data:p,total:y}=await m.json(),_=(p??[]).map($l);return{items:_,total:y??r+_.length}}async function $8({first:e=48,skip:t=0,category:r,rarities:n,wearableCategories:o,search:a,sortBy:i,isWearableSmart:u,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(A=>h.append("rarity",A)),o==null||o.forEach(A=>h.append("wearableCategory",A)),a&&h.set("search",a),i&&h.set("sortBy",i),u&&h.set("isWearableSmart","true"),f!=null&&h.set("isOnSale",String(f));const m=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${h.toString()}`);if(!m.ok)throw new Error(`fetchCatalogItems ${m.status}`);const{data:p,total:y}=await m.json(),_=(p??[]).map($l);return{items:_,total:y??t+_.length}}async function a_(e,{first:t=60,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),includeSocialEmotes:"false"}),o=await fetch(`${Ze.marketplaceServerUrl}/v3/catalog/items?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorItems ${o.status}`);const{data:a,total:i}=await o.json(),u=(a??[]).map($l);return{items:u,total:i??r+u.length}}async function D8(e,{first:t=24,skip:r=0}={}){const n=new URLSearchParams({creator:e,first:String(t),skip:String(r),sortBy:"newest"}),o=await fetch(`${Ze.nftApiUrl}/v1/collections?${n.toString()}`);if(!o.ok)throw new Error(`fetchCreatorCollections ${o.status}`);const{data:a,total:i}=await o.json(),u=(a??[]).map(f=>({contractAddress:f.contractAddress,name:f.name??"",creator:f.creator??"",itemCount:f.size??0}));return{collections:u,total:i??r+u.length}}async function q8(e){const t=new URLSearchParams({contractAddress:e,first:"1"}),r=await fetch(`${Ze.nftApiUrl}/v1/collections?${t.toString()}`);if(!r.ok)throw new Error(`fetchCollection ${r.status}`);const{data:n}=await r.json(),o=n==null?void 0:n[0];return o&&o.contractAddress?{contractAddress:o.contractAddress,name:o.name??"",creator:o.creator??""}:null}const c2="radial-gradient(#c0bdc6, #a09ba8)",l2="#E6E6E6";function vh(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 s_([e,t,r]){return .299*e+.587*t+.114*r}function bh(e){return e&&bt.Rarity.getColor(e.toLowerCase())||l2}function i_(e,t=.3){const r=vh(bh(e));return r?`rgba(${r[0]}, ${r[1]}, ${r[2]}, ${t})`:`rgba(160, 155, 168, ${t})`}function c_(e,t=120){const r=bh(e),n=vh(r);if(!n)return"#161518";const o=s_(n);if(o<=t)return r;const a=t/o,i=u=>Math.round(u*a).toString(16).padStart(2,"0");return`#${i(n[0])}${i(n[1])}${i(n[2])}`}function l_(e){const t=Hf(e??"Common");try{const r=bt.Rarity.getMaxSupply((e??"common").toLowerCase());if(r>0)return`${t} rarity — only ${r.toLocaleString()} can ever be minted`}catch{}return`${t} rarity`}function u_(e){try{const[t,r]=bt.Rarity.getGradient((e??"common").toLowerCase());return!t||!r?c2:`radial-gradient(${t}, ${r})`}catch{return c2}}const wh=4;function d_(e,t=!0){return Gr({queryKey:["collection-preview",e],queryFn:()=>o_(e,{first:wh}),enabled:t,staleTime:5*6e4})}function f_({items:e,className:t}){const r=e.slice(0,wh);return d.jsx("span",{className:`coll-thumb${t?` ${t}`:""}`,"data-count":r.length,"aria-hidden":!0,children:r.map(n=>d.jsx("span",{className:"coll-thumb__cell","data-testid":"coll-thumb-cell",style:{backgroundImage:u_(n.rarity)},children:n.thumbnail?d.jsx("img",{src:n.thumbnail,alt:"",loading:"lazy"}):null},n.id))})}function h_({contractAddress:e,className:t,fallback:r=null}){const{data:n}=d_(e),o=(n==null?void 0:n.items)??[];return o.length===0?d.jsx(d.Fragment,{children:r}):d.jsx(f_,{items:o,className:t})}function m_(e){return/^0x[a-fA-F0-9]{40}$/.test(e)?`${e.slice(0,6)}…${e.slice(-4)}`:e}function u2({address:e,className:t}){const{data:r}=Ls(e),n=(r==null?void 0:r.name)||m_(e);return d.jsx("span",{className:t,children:se("search.byCreator",{name:n})})}function p_({contractAddress:e}){return d.jsx(h_,{contractAddress:e,className:"search-pop__collthumb",fallback:d.jsx("span",{className:"search-pop__thumb search-pop__thumb--icon",children:d.jsx(vt,{name:"search"})})})}const g_=5,y_=2;function v_({query:e,recent:t,onSelectItem:r,onSelectCollection:n,onSelectCreator:o,onRunSearch:a,onRemoveRecent:i,onClearRecent:u}){const f=e.length>=y_,{data:h,isFetching:m}=Gr({queryKey:["search-suggest",e],queryFn:()=>ph({search:e,first:g_}),enabled:f,placeholderData:ci,staleTime:3e4}),{data:p=[]}=Gr({queryKey:["search-suggest-collections",e],queryFn:()=>X4(e),enabled:f,placeholderData:ci,staleTime:3e4}),{data:y=[]}=Gr({queryKey:["search-suggest-creators",e],queryFn:()=>r_(e),enabled:f,placeholderData:ci,staleTime:3e4}),_=f?(h==null?void 0:h.items)??[]:[],A=(h==null?void 0:h.total)??0;if(!f)return t.length===0?null:d.jsxs("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":se("search.suggestions"),children:[d.jsxs("div",{className:"search-pop__section-head",children:[d.jsx("span",{children:se("search.recent")}),d.jsx("button",{type:"button",className:"search-pop__clear",onClick:u,children:se("search.clearRecent")})]}),d.jsx("ul",{className:"search-pop__list",children:t.map(S=>d.jsxs("li",{className:"search-pop__recent",children:[d.jsxs("button",{type:"button",className:"search-pop__recent-btn",onClick:()=>a(S),children:[d.jsx(vt,{name:"search",size:16,color:"var(--muted)"}),d.jsx("span",{className:"search-pop__recent-text",children:S})]}),d.jsx("button",{type:"button",className:"search-pop__recent-remove","aria-label":se("search.removeRecent",{query:S}),onClick:()=>i(S),children:d.jsx(hh,{})})]},S))})]});const g=_.length===0&&p.length===0&&y.length===0;return d.jsx("div",{className:"search-pop","data-testid":"search-pop",role:"listbox","aria-label":se("search.suggestions"),children:g?d.jsx("p",{className:"search-pop__empty",children:m?se("search.searching"):se("search.noResults",{query:e})}):d.jsxs(d.Fragment,{children:[_.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.items")})}),d.jsx("ul",{className:"search-pop__list",children:_.map(S=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row","data-testid":"search-pop-row","data-kind":"item",onClick:()=>r(S),children:[d.jsx("span",{className:"search-pop__thumb",children:S.thumbnail?d.jsx("img",{src:S.thumbnail,alt:""}):null}),d.jsxs("span",{className:"search-pop__text",children:[d.jsx("span",{className:"search-pop__name",title:S.name,children:S.name}),S.creator?d.jsx(u2,{address:S.creator,className:"search-pop__sub"}):null]}),d.jsxs("span",{className:"search-pop__price",children:[d.jsx(rr,{className:"ccy-mark"})," ",S.priceCredits]})]})},S.id))})]}):null,p.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.collections")})}),d.jsx("ul",{className:"search-pop__list",children:p.map(S=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--collection","data-testid":"search-pop-row","data-kind":"collection",onClick:()=>n(S),children:[d.jsx(p_,{contractAddress:S.contractAddress}),d.jsxs("span",{className:"search-pop__text",children:[d.jsx("span",{className:"search-pop__name",title:S.name,children:S.name}),S.creator?d.jsx(u2,{address:S.creator,className:"search-pop__sub"}):null]})]})},S.contractAddress))})]}):null,y.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"search-pop__section-head",children:d.jsx("span",{children:se("search.creators")})}),d.jsx("ul",{className:"search-pop__list",children:y.map(S=>d.jsx("li",{children:d.jsxs("button",{type:"button",className:"search-pop__row search-pop__row--creator","data-testid":"search-pop-row","data-kind":"creator",onClick:()=>o(S),children:[d.jsx("span",{className:"search-pop__thumb search-pop__thumb--round",children:S.face?d.jsx("img",{src:S.face,alt:""}):null}),d.jsx("span",{className:"search-pop__text",children:d.jsx("span",{className:"search-pop__name",title:S.name,children:S.name})})]})},S.address))})]}):null,A>0?d.jsx("button",{type:"button",className:"search-pop__seeall",onClick:()=>a(e),children:se("search.seeAll",{count:A.toLocaleString()})}):null]})})}const b_=new Set([bt.ProviderType.INJECTED,bt.ProviderType.METAMASK_MOBILE,bt.ProviderType.FORTMATIC,bt.ProviderType.WALLET_CONNECT,bt.ProviderType.WALLET_CONNECT_V2,bt.ProviderType.WALLET_LINK]);function w_(e){return!!e&&b_.has(e)}const Ks="shop:recent-searches",_h=8;function Ts(){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,_h):[]}catch{return[]}}function hs(e){const t=e.trim();if(t)try{const r=[t,...Ts().filter(n=>n.toLowerCase()!==t.toLowerCase())].slice(0,_h);localStorage.setItem(Ks,JSON.stringify(r))}catch{}}function __(e){try{const t=Ts().filter(r=>r.toLowerCase()!==e.trim().toLowerCase());localStorage.setItem(Ks,JSON.stringify(t))}catch{}}function C_(){try{localStorage.removeItem(Ks)}catch{}}function E_(){const{session:e,connecting:t,signIn:r,disconnect:n,restore:o}=wo(),a=e==null?void 0:e.address,{data:i,isLoading:u}=Ls(a),{data:f,isError:h,isLoading:m}=Uv(e),p=qt(Y=>Y.items.reduce((ce,ie)=>ce+ie.quantity,0)),y=qt(Y=>Y.setOpen),_=ks(),[A]=Vh(),{pathname:g}=B2(),S=/^\/(assets|item|collection|creator)(\/|$)/.test(g),Z=A.get("q")??"",[b,I]=ne.useState(Z),[w,K]=ne.useState(Z),[q,x]=ne.useState(!1),[U,Q]=ne.useState([]),ee=ne.useRef(),oe=ne.useRef(null);ne.useEffect(()=>{o()},[o]),ne.useEffect(()=>{I(Z),K(Z)},[Z]),ne.useEffect(()=>{if(!q)return;const Y=ce=>{oe.current&&!oe.current.contains(ce.target)&&x(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[q]);function J(){Q(Ts()),x(!0)}function L(Y){const ce=Y.trim();x(!1),ce&&hs(ce),_(ce?`/assets?q=${encodeURIComponent(ce)}`:"/assets",{replace:!0})}function N(Y){x(!1),b.trim()&&hs(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.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(b)}function O(Y){x(!1),b.trim()&&hs(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.trim(),type:"collection",contract_address:Y.contractAddress}),_(`/collection/${Y.contractAddress}`)}function z(Y){x(!1),b.trim()&&hs(b.trim()),mr("Shop Search Suggestion Clicked",{query:b.trim(),type:"creator",creator_address:Y.address}),_(`/assets/creator/${Y.address}`)}function D(Y){I(Y),x(!0),ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>K(Y.trim()),300)}function H(){I(""),K(""),x(!1),_("/assets",{replace:!0})}function R(Y){__(Y),Q(Ts())}function j(){C_(),Q([])}function G(Y){if(Y.key==="Escape"){x(!1);return}Y.key==="Enter"&&(ee.current&&clearTimeout(ee.current),L(b))}return d.jsxs(d.Fragment,{children:[d.jsx(tg,{activePage:"shop",isSignedIn:!!e,isSigningIn:t,isLoadingProfile:!!e&&u,address:a,avatar:i,onClickSignIn:()=>r(),onClickSignOut:()=>void n()}),d.jsxs("div",{className:"subnav",children:[d.jsxs("nav",{className:"subnav__tabs",children:[d.jsx(yn,{to:"/overview",children:se("nav.overview")}),d.jsx(yn,{to:"/assets",className:()=>S?"active":"",children:se("nav.collectibles")}),d.jsx(yn,{to:"/my-assets",children:se("nav.myAssets")}),e?d.jsx(yn,{to:"/my-purchases",children:se("nav.myPurchases")}):null,e&&w_(e.providerType)?d.jsx(yn,{to:"/authorizations",children:se("nav.authorizations")}):null]}),d.jsxs("div",{className:"subnav__search",ref:oe,children:[d.jsx(vt,{name:"search",color:"var(--muted)"}),d.jsx("input",{value:b,"aria-label":se("nav.searchAria"),placeholder:se("nav.searchPlaceholder"),onChange:Y=>D(Y.target.value),onFocus:J,onKeyDown:G}),b?d.jsx("button",{type:"button",className:"subnav__search-clear","data-testid":"subnav-search-clear","aria-label":se("search.clear"),onClick:H,children:d.jsx(hh,{})}):null,q?d.jsx(v_,{query:w,recent:U,onSelectItem:N,onSelectCollection:O,onSelectCreator:z,onRunSearch:L,onRemoveRecent:R,onClearRecent:j}):null]}),e?d.jsxs("span",{className:"subnav__balance","data-testid":"subnav-balance",title:se("nav.yourBalance",{currency:yo.name}),children:[d.jsx(rr,{className:"subnav__balance-ico"}),m?d.jsx("span",{className:"skeleton subnav__balance-skel","aria-hidden":!0}):Hv(f,h)]}):null,d.jsxs(yn,{to:"/credits",className:"subnav__credits",children:[d.jsx(rr,{className:"subnav__credits-ico"}),se("nav.getCredits",{currency:yo.name})]}),d.jsx(yn,{to:"/my-favorites",className:"subnav__fav","aria-label":se("nav.myFavorites"),children:d.jsx(vt,{name:"heart"})}),d.jsxs("div",{className:"subnav__cart-wrap",children:[d.jsxs("button",{type:"button",className:"subnav__cart","data-testid":"subnav-cart","aria-label":se("nav.cart"),onClick:()=>p>0?y(!0):_("/cart"),children:[d.jsx(vt,{name:"cart",size:28}),p>0?d.jsx("span",{className:"subnav__cart-badge","data-testid":"subnav-cart-badge",children:p}):null]}),d.jsx(n5,{})]})]})]})}let x_=0;const Do=Bn(e=>({toasts:[],push:t=>{const r=++x_;return e(n=>({toasts:[...n.toasts,{...t,id:r}]})),r},dismiss:t=>e(r=>({toasts:r.toasts.filter(n=>n.id!==t)}))})),U8={success:e=>Do.getState().push({message:e,kind:"success"}),error:e=>Do.getState().push({message:e,kind:"error"}),info:e=>Do.getState().push({message:e,kind:"info"})},S_=mf`
|
|
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
|
-
`,T_=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
|
-
`,A_=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
|
-
`,k_=wt.span`
|
|
193
|
-
font-size: 14px;
|
|
194
|
-
font-weight: 600;
|
|
195
|
-
line-height: 1.35;
|
|
196
|
-
`,I_=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: ${S_} 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
|
-
`,R_={success:"✓",error:"!",info:"i"};function N_({t:e}){const t=Do(r=>r.dismiss);return ne.useEffect(()=>{const r=setTimeout(()=>t(e.id),4500);return()=>clearTimeout(r)},[e.id,t]),d.jsxs(I_,{"data-testid":"toast","data-kind":e.kind,role:e.kind==="error"?"alert":"status",onClick:()=>t(e.id),children:[d.jsx(A_,{"data-kind":e.kind,"aria-hidden":!0,children:R_[e.kind]}),d.jsx(k_,{children:e.message})]})}function P_(){const e=Do(t=>t.toasts);return e.length===0?null:d.jsx(T_,{"data-testid":"toaster","aria-live":"polite",children:e.map(t=>d.jsx(N_,{t},t.id))})}const O_=ne.lazy(()=>_t(()=>import("./index-Tfh0IyJl.js"),__vite__mapDeps([13,1,2,14,6,15,4,16,17,3,18,19,7,8])).then(e=>({default:e.WearablePreview})));function Ch(e){return d.jsx(ne.Suspense,{fallback:null,children:d.jsx(O_,{...e})})}function j_(e){return e.itemId?`urn:decentraland:${Ze.chainId===80002?"amoy":"matic"}:collections-v2:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}const Xn=bt.BodyShape.MALE,eo=bt.BodyShape.FEMALE;function sl(e){if(e.category==="emote")return[Xn,eo];switch(e.gender){case"male":return[Xn];case"female":return[eo];default:return[Xn,eo]}}function L_(e){var r;const t=(r=e==null?void 0:e.avatar)==null?void 0:r.bodyShape;return t?t.includes("BaseFemale")?eo:Xn:null}function Dl(e,t){return t==null||sl(e).includes(t)}function d2(e){return se(e===eo?"bodyShape.female":"bodyShape.male")}function M_(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?eo:Xn}function Mn(e){return e.category!=="emote"}function vo(e){return Mn(e)?e.wearableCategory??`unknown:${e.id}`:null}const B_=new Set(["hat","helmet","mask","tiara","top_head","hair","facial_hair","eyewear","earring","eyes","eyebrows","mouth"]);function F_(e){if(!Mn(e))return"item";const t=e.wearableCategory;return t?B_.has(t)?"head":t==="upper_body"?"upper":t==="lower_body"?"lower":t==="feet"?"feet":t==="hands"||t==="hands_wear"?"hands":"item":"item"}function f2(e,t=null){const r=new Set,n=new Set;for(const o of e){const a=vo(o);a==null||n.has(a)||Dl(o,t)&&(n.add(a),r.add(o.id))}return r}function $_(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 o=vo(t);if(o!=null)for(const a of r)a.id!==t.id&&n.has(a.id)&&vo(a)===o&&n.delete(a.id);return n.add(t.id),n}function D_(e){const t=new Map;for(const n of e){const o=vo(n);if(o==null)continue;const a=t.get(o)??[];a.push(n.id),t.set(o,a)}const r=new Set;for(const n of t.values())n.length>1&&n.forEach(o=>r.add(o));return r}function q_(e,t,r=null){const n=[];for(const o of e){if(!t.has(o.id)||!Mn(o)||!Dl(o,r))continue;const a=j_(o);a&&n.push(a)}return n}const U_=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 H_({as:e,variant:t="default",size:r="md",...n},o){const a=U_;return d.jsx(a,{as:e,ref:o,"data-variant":t,"data-size":r,...n})}const Ys=ne.forwardRef(H_),V_=ne.lazy(()=>_t(()=>import("./AnimatedBackground-cMeJUDnS.js"),__vite__mapDeps([20,1,21]))),z_=wt(Ys)`
|
|
279
|
-
flex: none;
|
|
280
|
-
`,G_={head:"slot-head",upper:"slot-upper",lower:"slot-lower",feet:"slot-feet",hands:"slot-hands",item:"slot-item"};function h2(e){return!e||e.startsWith("unknown:")?se("fittingRoom.wearable"):e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," ")}function W_(){const e=qt(K=>K.fittingOpen),t=qt(K=>K.setFittingOpen),r=qt(K=>K.items),n=qt(K=>K.remove),o=ks(),a=wo(K=>{var q;return(q=K.session)==null?void 0:q.address}),{data:i,isFetched:u}=Ls(a),f=!a||u,h=!!a&&!!i,m=h?a:"default",p=L_(i)??M_(r)??Xn,[y,_]=ne.useState(()=>f2(r,p)),[A,g]=ne.useState(!1);ne.useEffect(()=>{e&&_(f2(r,p))},[e,p]),ne.useEffect(()=>{const K=new Set(r.map(q=>q.id));_(q=>{const x=new Set([...q].filter(U=>K.has(U)));return x.size===q.size?q:x})},[r]);const S=ne.useMemo(()=>D_(r),[r]),Z=ne.useMemo(()=>q_(r,y,p),[r,y,p]),b=r.reduce((K,q)=>K+q.priceCredits*q.quantity,0),I=Z.join(",");ne.useEffect(()=>{g(!1)},[I,m]);const w=ne.useRef(!1);return ne.useEffect(()=>{if(!e){w.current=!1;return}w.current||(w.current=!0,mr("Shop Tried On Outfit",{cart_size:r.length,wearables:r.filter(Mn).length,emotes:r.filter(K=>!Mn(K)).length,cart_value_credits:b}))},[e,r,b]),ne.useEffect(()=>{if(!e)return;const K=q=>{q.key==="Escape"&&t(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[e,t]),!e||r.length===0?null:d.jsxs("div",{className:"fitting",role:"dialog","aria-modal":"true","aria-label":se("fittingRoom.title"),children:[d.jsx("div",{className:"fitting__scrim",onClick:()=>t(!1)}),d.jsxs("div",{className:"fitting__panel",children:[d.jsx("button",{className:"fitting__close",onClick:()=>t(!1),"aria-label":se("fittingRoom.close"),children:"×"}),d.jsxs("div",{className:"fitting__stage",children:[d.jsx(ne.Suspense,{fallback:null,children:d.jsx(V_,{})}),f?Z.length>0?d.jsxs(d.Fragment,{children:[d.jsx(Ch,{profile:m,bodyShape:h?void 0:p,urns:Z,type:bt.PreviewType.AVATAR,emote:bt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:()=>g(!0)},m),A?null:d.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:d.jsx("span",{className:"fitting__spinner"})})]}):d.jsxs("div",{className:"fitting__empty-stage",children:[d.jsx("p",{children:se("fittingRoom.emptyStageTitle")}),d.jsx("p",{className:"muted",children:se("fittingRoom.emptyStageBody")})]}):d.jsx("div",{className:"fitting__loading","aria-hidden":!0,children:d.jsx("span",{className:"fitting__spinner"})})]}),d.jsxs("div",{className:"fitting__side",children:[d.jsxs("div",{className:"fitting__head",children:[d.jsx("h2",{className:"fitting__title",children:se("fittingRoom.title")}),d.jsx("p",{className:"fitting__sub muted",children:se("fittingRoom.sub")})]}),d.jsx("div",{className:"fitting__items",children:r.map(K=>{const q=Mn(K),x=q&&!Dl(K,p),U=y.has(K.id),Q=S.has(K.id);return d.jsxs("div",{className:`fitting-row${U?" is-on":""}${x?" is-incompatible":""}`,"data-testid":"fitting-row",children:[d.jsxs("label",{className:"fitting-row__toggle",children:[d.jsx("input",{type:"checkbox",checked:U,disabled:!q||x,onChange:()=>_(ee=>$_(ee,K,r))}),d.jsx("span",{className:"fitting-row__box","aria-hidden":!0})]}),d.jsx("div",{className:"fitting-row__thumb",children:K.thumbnail?d.jsx("img",{src:K.thumbnail,alt:K.name}):null}),d.jsxs("div",{className:"fitting-row__info",children:[d.jsx("div",{className:"fitting-row__name",title:K.name,children:K.name}),d.jsxs("div",{className:"fitting-row__meta",children:[d.jsx(vt,{name:G_[q?F_(K):"item"],size:16,color:"var(--muted)",title:q?h2(vo(K)):se("fittingRoom.emote"),role:"img","aria-label":q?h2(vo(K)):se("fittingRoom.emote")}),Q&&!x?d.jsx("span",{className:"fitting-row__conflict",title:se("fittingRoom.conflictTooltip"),children:se("fittingRoom.onePerSlot")}):null,x?d.jsx("span",{className:"fitting-row__incompat",title:se("fittingRoom.madeForShape",{shape:d2(sl(K)[0])}),children:se("fittingRoom.shapeOnly",{shape:d2(sl(K)[0])})}):null]})]}),d.jsxs("div",{className:"fitting-row__price",children:[d.jsx(rr,{className:"fitting-row__diamond"}),K.priceCredits]}),d.jsx("button",{className:"fitting-row__remove",onClick:()=>n(K.id),"aria-label":se("fittingRoom.removeFromCart",{name:K.name}),title:se("fittingRoom.remove"),children:d.jsx(vt,{name:"trash",size:18})})]},K.id)})}),d.jsxs("div",{className:"fitting__foot",children:[d.jsxs("div",{className:"fitting__total",children:[se("fittingRoom.itemCount",{count:r.length})," ·"," ",d.jsxs("strong",{children:[yo.symbol," ",b]})]}),d.jsx(z_,{variant:"purple",onClick:()=>{t(!1),o("/cart")},children:se("fittingRoom.checkout")})]})]})]})]})}const Eh="shop:locale";function Z_(){var e;try{const t=new URLSearchParams(window.location.search).get("lang");if(t&&ws.includes(t))return t;const r=localStorage.getItem(Eh);if(r&&ws.includes(r))return r;const n=(e=navigator.language)==null?void 0:e.slice(0,2);if(n&&ws.includes(n))return n}catch{}return"en"}const il=Bn(e=>({locale:Z_(),setLocale:t=>{try{localStorage.setItem(Eh,t)}catch{}e({locale:t})}})),K_="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",m2=[{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/"}],p2=[{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"}],Y_=[{name:"Discord",url:"https://dcl.gg/discord",icon:X_},{name:"GitHub",url:"https://github.com/decentraland",icon:e6},{name:"X",url:"https://x.com/decentraland",icon:t6},{name:"Instagram",url:"https://instagram.com/decentraland_foundation/",icon:r6},{name:"YouTube",url:"https://youtube.com/@decentraland_foundation",icon:n6},{name:"TikTok",url:"https://tiktok.com/@decentraland_fdn",icon:o6},{name:"LinkedIn",url:"https://linkedin.com/company/decentralandorg",icon:a6}],Q_=[{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/"}],ms={en:{label:"English",flag:"🇺🇸"},es:{label:"Español",flag:"🇪🇸"}};function g2(){return d.jsx("div",{className:"dcl-footer__social",children:Y_.map(({name:e,url:t,icon:r})=>d.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer","aria-label":e,children:d.jsx(r,{})},e))})}function J_(){const e=il(h=>h.locale),t=il(h=>h.setLocale),[r,n]=ne.useState(null),[o,a]=ne.useState(!1),i=ne.useRef(null),u=ms[e]??ms.en;ne.useEffect(()=>{if(!o)return;const h=m=>{i.current&&!i.current.contains(m.target)&&a(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[o]);const f=h=>n(m=>m===h?null:h);return d.jsxs("footer",{className:"dcl-footer",children:[d.jsxs("div",{className:"dcl-footer__main",children:[d.jsxs("div",{className:"dcl-footer__left",children:[d.jsx("span",{className:"dcl-footer__wordmark",children:"Decentraland"}),d.jsxs("div",{className:"dcl-footer__news",children:[d.jsx("p",{className:"dcl-footer__news-title",children:se("footer.newsletterTitle")}),d.jsx("iframe",{className:"dcl-footer__news-frame",src:K_,height:"65",frameBorder:"0",scrolling:"no",title:se("footer.newsletterFrameTitle")})]}),d.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--desktop",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.connect")}),d.jsx(g2,{})]})]}),d.jsxs("div",{className:"dcl-footer__right",children:[d.jsxs("div",{className:"dcl-footer__col",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.gettingStarted")}),m2.map(h=>d.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))]}),d.jsxs("div",{className:"dcl-footer__col",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.resources")}),p2.map(h=>d.jsx("a",{className:"dcl-footer__link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))]})]}),d.jsxs("div",{className:"dcl-footer__mobile-menu",children:[d.jsx("p",{className:"dcl-footer__menu-label",children:se("footer.menu")}),[{key:"getting-started",label:se("footer.gettingStarted"),links:m2},{key:"resources",label:se("footer.resources"),links:p2}].map(h=>d.jsxs("div",{children:[d.jsxs("button",{type:"button",className:"dcl-footer__dropdown","aria-expanded":r===h.key,onClick:()=>f(h.key),children:[h.label,d.jsx("span",{className:`dcl-footer__chev${r===h.key?" is-open":""}`,children:d.jsx(y2,{})})]}),d.jsx("div",{className:`dcl-footer__dropdown-content${r===h.key?" is-open":""}`,children:h.links.map(m=>d.jsx("a",{className:"dcl-footer__mlink",href:m.url,target:"_blank",rel:"noopener noreferrer",children:se(m.label)},m.label))})]},h.key))]}),d.jsxs("div",{className:"dcl-footer__connect dcl-footer__connect--mobile",children:[d.jsx("p",{className:"dcl-footer__label",children:se("footer.connect")}),d.jsx(g2,{})]})]}),d.jsxs("div",{className:"dcl-footer__bottom",children:[d.jsxs("div",{className:"dcl-footer__bottom-left",children:[d.jsxs("div",{className:"dcl-footer__lang",ref:i,children:[d.jsxs("button",{type:"button",className:"dcl-footer__lang-btn",onClick:()=>a(h=>!h),children:[d.jsx("span",{"aria-hidden":!0,children:u.flag}),u.label,d.jsx("span",{className:`dcl-footer__chev${o?" is-open":""}`,children:d.jsx(y2,{})})]}),o?d.jsx("div",{className:"dcl-footer__lang-menu",children:ws.map(h=>d.jsxs("button",{className:h===e?"is-active":"",onClick:()=>{t(h),a(!1)},children:[d.jsx("span",{"aria-hidden":!0,children:ms[h].flag}),ms[h].label]},h))}):null]}),d.jsx("div",{className:"dcl-footer__legal",children:Q_.map(h=>d.jsx("a",{className:"dcl-footer__legal-link",href:h.url,target:"_blank",rel:"noopener noreferrer",children:se(h.label)},h.label))})]}),d.jsxs("span",{className:"dcl-footer__copy",children:["© ",new Date().getFullYear()," Decentraland"]})]})]})}function X_(){return d.jsx("svg",{viewBox:"0 0 28 22",fill:"currentColor",width:"26",height:"20","aria-hidden":!0,children:d.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 e6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 t6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:d.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 r6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 n6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 o6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22","aria-hidden":!0,children:d.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 a6(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24","aria-hidden":!0,children:d.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 y2(){return d.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18","aria-hidden":!0,children:d.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 a;const o=t();((a=o.item)==null?void 0:a.id)===r.id&&o.anchor===n||e(i=>({item:r,anchor:n,ready:!1,token:i.token+1}))},hide:()=>e({item:null,anchor:null,ready:!1}),setReady:()=>e({ready:!0})})),v2="hover-preview";function s6(){const e=lr(S=>S.item),t=lr(S=>S.anchor),r=lr(S=>S.token),n=lr(S=>S.ready),o=lr(S=>S.setReady),[a,i]=ne.useState(!1),[u,f]=ne.useState(!1),h=ne.useRef(!1),m=ne.useRef(-1),[p,y]=ne.useState(null);ne.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const Z=window.requestIdleCallback(()=>i(!0),{timeout:3e3});return()=>window.cancelIdleCallback(Z)}const S=window.setTimeout(()=>i(!0),1500);return()=>window.clearTimeout(S)},[]),ne.useEffect(()=>{if(!t){y(null);return}let S=0;const Z=()=>y(t.getBoundingClientRect());Z();const b=()=>{cancelAnimationFrame(S),S=requestAnimationFrame(Z)};return window.addEventListener("scroll",b,!0),window.addEventListener("resize",b),()=>{cancelAnimationFrame(S),window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",b)}},[t]),ne.useEffect(()=>{if(!e)return;const S=document.getElementById(v2);if(!(S!=null&&S.contentWindow)||!h.current)return;m.current=r;const Z=e.category==="emote";uu.sendMessage(S.contentWindow,uu.PreviewMessageType.UPDATE,{options:{contractAddress:e.contractAddress,itemId:e.itemId??void 0,profile:"default",type:Z?void 0:bt.PreviewType.AVATAR,emote:Z?void 0:bt.PreviewEmote.FASHION,disableBackground:!0,disableFadeEffect:!0}})},[e,r,u]);function _(){if(!h.current){h.current=!0,f(!0);return}const S=lr.getState();S.item&&S.token===m.current&&o()}if(!a)return null;const g=!!e&&!!p?{position:"fixed",left:p.left,top:p.top,width:p.width,height:p.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 d.jsx("div",{className:"hover-preview","aria-hidden":!0,style:g,children:d.jsx(Ch,{id:v2,profile:"default",disableBackground:!0,disableFadeEffect:!0,dev:Ze.chainId===80002,onLoad:_})})}function i6(){const e=wo(t=>t.session);ne.useEffect(()=>{if(!e||e.providerType!==bt.ProviderType.INJECTED)return;const t=e.web3Provider.provider;if(!(t!=null&&t.on)||!t.removeListener)return;const r=e.address.toLowerCase(),n=(...o)=>{var u;((u=(o[0]??[])[0])==null?void 0:u.toLowerCase())!==r&&window.location.reload()};return t.on("accountsChanged",n),()=>{var o;return(o=t.removeListener)==null?void 0:o.call(t,"accountsChanged",n)}},[e])}function c6(e,t){return!t||!e.creator?!1:Tl(e)&&e.creator.toLowerCase()===t.toLowerCase()}function H8(e,t){return!!e.signer&&!!t&&e.signer.toLowerCase()===t.toLowerCase()}const b2={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 l6(e){var r;const t=(r=e.wearableCategory)==null?void 0:r.toLowerCase();return t&&b2[t]?b2[t]:e.category==="emote"?"emote-misc":null}function u6(e){return e==="male"?"gender-male":e==="female"?"gender-female":e==="unisex"?"gender-unisex":null}function d6(e,t=Date.now()){const{priceCredits:r,compareAtCredits:n,saleEndsAt:o}=e;return!(n==null||!(n>r)||o!=null&&o<=t)}function f6(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 Fo(e,t=Date.now()){return e==null?1/0:Math.max(0,e-t)}function h6(e){if(!isFinite(e)||e<=0)return"";const t=Math.floor(e/1e3),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),a=t%60;return r>0?n>0?`${r}d ${n}h`:`${r}d`:n>0?`${n}h ${o}m`:o>0?`${o}m ${a}s`:`${a}s`}function w2(e){return!isFinite(e)||e<=0?0:e<36e5?1e3:6e4}function m6({endsAt:e,className:t,testId:r,iconSize:n=13}){const[o,a]=ne.useState(()=>Fo(e));ne.useEffect(()=>{if(a(Fo(e)),e==null)return;let u;const f=()=>{const m=Fo(e);a(m);const p=w2(m);p>0&&(u=setTimeout(f,p))},h=w2(Fo(e));return h>0&&(u=setTimeout(f,h)),()=>clearTimeout(u)},[e]);const i=h6(o);return i?d.jsxs("span",{className:t??"sale-countdown","data-testid":r,children:[d.jsx(vt,{name:"clock",size:n}),i]}):null}function p6(e){const[,t]=ne.useState(0);return ne.useEffect(()=>{const r=Fo(e.saleEndsAt);if(!isFinite(r)||r<=0||r>2147483647)return;const n=setTimeout(()=>t(o=>o+1),r+1);return()=>clearTimeout(n)},[e.saleEndsAt]),d6(e)}const g6=120;function ql(e){const{item:t}=e,r=e.mode==="market",n=e.mode==="view",o=e.mode==="manage",a=t.category==="ens",i=ks(),u=ne.useRef(),f=ne.useRef(null),h=qt(O=>O.add),m=qt(O=>O.items.some(z=>z.id===t.id)),p=wo(O=>{var z;return(z=O.session)==null?void 0:z.address}),y=c6(t,p),_=Es(O=>O.toggle),A=Es(O=>!!O.items[t.id]),g=lr(O=>O.show),S=lr(O=>O.hide),Z=lr(O=>{var z;return((z=O.item)==null?void 0:z.id)===t.id}),b=lr(O=>{var z;return((z=O.item)==null?void 0:z.id)===t.id?O.ready:!1}),I=!!t.contractAddress&&!!t.itemId&&!a,w=t.tokenId??t.itemId,K=!!t.contractAddress&&!!w,q=`/item/${t.contractAddress}/${w}`;function x(O){O.stopPropagation(),K&&i(q,{state:{item:t,tradeId:t.tradeId}})}function U(){typeof window<"u"&&window.matchMedia&&!window.matchMedia("(hover: hover)").matches||(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{I&&f.current&&g(t,f.current)},g6))}function Q(){var O;u.current&&clearTimeout(u.current),((O=lr.getState().item)==null?void 0:O.id)===t.id&&S()}ne.useEffect(()=>()=>{var O;u.current&&clearTimeout(u.current),((O=lr.getState().item)==null?void 0:O.id)===t.id&&S()},[t.id,S]);const ee=l6(t),oe=u6(t.gender),J=p6({priceCredits:t.priceCredits,compareAtCredits:t.compareAtCredits,saleEndsAt:t.saleEndsAt}),L=!r&&J,N=L?f6(t.compareAtCredits,t.priceCredits):0;return d.jsxs("article",{className:"card","data-testid":"card",style:K&&!a?{cursor:"pointer"}:void 0,onMouseEnter:U,onMouseLeave:Q,children:[K&&!a?d.jsx(Sn,{className:"card__link","data-testid":"card-link",to:q,state:e.mode==="market"?{item:t,market:!0,marketPriceCredits:e.marketPriceCredits}:{item:t,tradeId:t.tradeId},"aria-label":t.name}):null,a?null:d.jsx("button",{className:`card__fav${A?" is-on":""}`,"data-testid":"card-fav",onClick:O=>{O.stopPropagation(),_(t)},"aria-label":se(A?"assetCard.removeFromFavorites":"assetCard.addToFavorites"),children:d.jsx(vt,{name:A?"heart-solid":"heart",size:18})}),d.jsxs("div",{className:"card__media",ref:f,children:[L?d.jsx("span",{className:"card__sale-badge","data-testid":"card-sale-badge",children:N>0?se("assetCard.saleWithDiscount",{pct:N}):se("assetCard.sale")}):null,a?d.jsxs("div",{className:"card__name-media","aria-hidden":!0,children:[d.jsx("span",{className:"card__name-at",children:"@"}),d.jsx("span",{className:"card__name-value",children:t.name})]}):t.thumbnail?d.jsx("img",{className:`card__img${Z&&b?" card__img--hidden":""}`,src:t.thumbnail,alt:t.name,loading:"lazy"}):null]}),o&&e.mode==="manage"?d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsxs("div",{className:"card__desc",children:[d.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.issuedId?d.jsxs("div",{className:"card__creator card__issued","data-testid":"card-issued",children:["#",t.issuedId]}):d.jsx("div",{className:"card__creator",children:" "})]}),e.listed&&t.priceCredits>0?d.jsxs("div",{className:"card__price",title:xn(t.priceCredits),children:[d.jsx(rr,{className:"card__diamond"}),rn(t.priceCredits)]}):d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),e.listed?d.jsx("button",{className:"card__manage card__manage--ghost","data-testid":"card-unlist",disabled:e.busy,onClick:O=>{O.stopPropagation(),e.onUnlist(t)},children:e.busy?se("myAssets.removing"):se("myAssets.removeListing")}):d.jsx("button",{className:"card__manage","data-testid":"card-list",disabled:e.busy,onClick:O=>{O.stopPropagation(),e.onList(t)},children:se("myAssets.putOnSale")})]}):a?d.jsx("div",{className:"card__body card__body--name",children:d.jsxs("div",{className:"card__top",children:[d.jsx("div",{className:"card__desc",children:d.jsxs("div",{className:"card__name card__name--verified",title:t.name,children:[d.jsxs("span",{children:["@",t.name]}),d.jsxs("svg",{className:"card__verified",width:"18",height:"18",viewBox:"0 0 14.6921 14.6931",fill:"none","aria-hidden":!0,children:[d.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)"}),d.jsx("path",{d:"M4.6 7.5l1.9 1.9 3.6-3.9",stroke:"#FCFCFC",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("defs",{children:d.jsxs("linearGradient",{id:"dclVerifiedGrad",x1:"7.35",y1:"0",x2:"7.35",y2:"14.69",gradientUnits:"userSpaceOnUse",children:[d.jsx("stop",{stopColor:"#FF2D55"}),d.jsx("stop",{offset:"1",stopColor:"#C640CD"})]})})]})]})}),d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]})}):n?d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsxs("div",{className:"card__desc",children:[d.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?d.jsx(xs,{address:t.creator,className:"card__creator",linkToProfile:!0}):d.jsx("div",{className:"card__creator",children:" "})]}),t.priceCredits>0?d.jsxs("div",{className:"card__price",title:xn(t.priceCredits),children:[d.jsx(rr,{className:"card__diamond"}),rn(t.priceCredits)]}):d.jsx("span",{className:"card__nfs","data-testid":"card-nfs",children:se("assetCard.notForSale")})]}),d.jsxs("span",{className:"card__view","data-testid":"card-view","aria-hidden":!0,children:[d.jsx(vt,{name:"eye",size:20}),se("assetCard.view")]})]}):d.jsxs("div",{className:"card__body",children:[d.jsxs("div",{className:"card__top",children:[d.jsxs("div",{className:"card__desc",children:[d.jsx("div",{className:"card__name",title:t.name,children:t.name}),t.creator?d.jsx(xs,{address:t.creator,className:"card__creator",linkToProfile:!0}):d.jsx("div",{className:"card__creator",children:" "})]}),r&&e.mode==="market"?d.jsxs("div",{className:"card__price card__price--market","data-testid":"card-price-market",children:[d.jsx("span",{className:"card__approx","aria-hidden":!0,children:"≈"}),d.jsx(rr,{className:"card__diamond"}),e.marketPriceCredits==null?"—":rn(e.marketPriceCredits)]}):L?d.jsxs("div",{className:"card__price card__price--sale",children:[d.jsxs("span",{className:"card__price-now","data-testid":"card-price-now",title:xn(t.priceCredits),children:[d.jsx(rr,{className:"card__diamond"}),rn(t.priceCredits)]}),d.jsxs("span",{className:"card__price-was","data-testid":"card-price-was",title:xn(t.compareAtCredits),children:[d.jsx(rr,{className:"card__diamond card__diamond--was"}),rn(t.compareAtCredits)]}),d.jsx(m6,{endsAt:t.saleEndsAt,className:"card__countdown",testId:"card-countdown"})]}):d.jsxs("div",{className:"card__price",title:xn(t.priceCredits),children:[d.jsx(rr,{className:"card__diamond"}),rn(t.priceCredits)]})]}),d.jsxs("div",{className:"card__action",children:[d.jsxs("div",{className:"card__chips",children:[r?d.jsx("span",{className:"chip chip--market","data-testid":"chip-market",children:se("assetCard.marketPrice")}):null,d.jsx("span",{className:"chip chip--rarity",style:{background:i_(t.rarity),color:c_(t.rarity)},title:l_(t.rarity),children:t.rarity}),t.isSmart?d.jsxs("span",{className:"chip chip--smart","data-testid":"chip-smart",children:[d.jsx(vt,{name:"smart",size:13}),se("assetCard.smart")]}):null,ee?d.jsx("span",{className:"chip chip--icon",children:d.jsx(vt,{name:ee})}):null,oe?d.jsx("span",{className:"chip chip--icon",children:d.jsx(vt,{name:oe})}):null]}),r&&e.mode==="market"?d.jsx("button",{className:"card__add-round",onClick:O=>{O.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,"aria-label":e.marketPriceCredits==null?se("assetCard.unavailable"):se("assetCard.buyNow"),children:d.jsx(vt,{name:"plus"})}):d.jsx("button",{className:`card__add-round${!y&&m?" is-in":""}`,onClick:O=>{if(y)return x(O);O.stopPropagation(),h(t,"grid")},disabled:!y&&m,"aria-label":se(y?"assetCard.manage":m?"assetCard.inCart":"assetCard.addToCart"),children:d.jsx(vt,{name:y?"pen":"plus"})}),r&&e.mode==="market"?d.jsx("button",{className:"card__cart","data-testid":"card-cart",onClick:O=>{O.stopPropagation(),e.onBuyNow(t)},disabled:e.marketPriceCredits==null,children:e.marketPriceCredits==null?se("assetCard.unavailable"):se("assetCard.buyNow")}):d.jsxs("button",{className:`card__cart${!y&&m?" is-in":""}`,"data-testid":"card-cart",onClick:O=>{if(y)return x(O);O.stopPropagation(),h(t,"grid")},disabled:!y&&m,children:[d.jsx(vt,{name:y?"pen":"cart-solid"}),se(y?"assetCard.manage":m?"assetCard.inCart":"assetCard.addToCart")]})]})]})]})}const y6=8,v6=8,b6=12;function w6(){const t=Jc(o=>o.followed).slice(0,y6),{data:r=[],isLoading:n}=Gr({queryKey:["followed-creators-row",t.join(",")],enabled:t.length>0,queryFn:async()=>{const o=await Promise.all(t.map(a=>a_(a,{first:v6}).then(i=>i.items).catch(()=>[])));return _6(o).filter(a=>a.priceCredits>0).slice(0,b6)}});return t.length===0||!n&&r.length===0?null:d.jsxs("section",{className:"row",children:[d.jsx("div",{className:"row__head",children:d.jsx("h2",{className:"row__title",children:se("followedCreators.title")})}),d.jsx("div",{className:"row__track",children:n?Array.from({length:6}).map((o,a)=>d.jsx("div",{className:"card card--skeleton"},a)):r.map(o=>d.jsx(ql,{item:o},o.id))})]})}function _6(e){const t=[],r=new Set,n=e.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<n;o++)for(const a of e){const i=a[o];i&&!r.has(i.id)&&(r.add(i.id),t.push(i))}return t}const xh="shop:recently-viewed",Sh=12;function Th(){try{const e=localStorage.getItem(xh);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(0,Sh):[]}catch{return[]}}function V8(e){if(e!=null&&e.id)try{const t=[e,...Th().filter(r=>r.id!==e.id)].slice(0,Sh);localStorage.setItem(xh,JSON.stringify(t))}catch{}}function C6({excludeId:e}){const t=ne.useMemo(()=>Th().filter(r=>r.id!==e),[e]);return t.length===0?null:d.jsxs("section",{className:"row",children:[d.jsx("div",{className:"row__head",children:d.jsx("h2",{className:"row__title",children:se("recentlyViewed.title")})}),d.jsx("div",{className:"row__track",children:t.map(r=>d.jsx(ql,{item:r},r.id))})]})}async function E6(e="week",t=10,r="most_volume"){const n=new URLSearchParams({sortBy:r,first:String(t)}),o=await fetch(`${Ze.marketplaceServerUrl}/v1/rankings/creators/${e}?${n.toString()}`);if(!o.ok)throw new Error(`fetchTopCreators ${o.status}`);return(await o.json()).data??[]}const _2=10;function x6(e){try{return Math.floor(Number(F2(e))).toLocaleString("en-US")}catch{return"0"}}function S6({rank:e,creator:t}){return d.jsxs("tr",{className:"ov-creators__row",children:[d.jsx("td",{className:"ov-creators__rank-cell",children:d.jsx("span",{className:"ov-creators__rank",children:e})}),d.jsx("td",{className:"ov-creators__creator-cell",children:d.jsx(xs,{address:t.id,className:"ov-creators__creator",linkToProfile:!0})}),d.jsx("td",{className:"ov-creators__num",children:t.collections.toLocaleString("en-US")}),d.jsx("td",{className:"ov-creators__num",children:t.sales.toLocaleString("en-US")}),d.jsxs("td",{className:"ov-creators__num ov-creators__volume",children:[d.jsx(rr,{className:"ov-creators__coin"}),x6(t.earned)]})]})}function T6(){return d.jsxs("tr",{className:"ov-creators__row",children:[d.jsx("td",{className:"ov-creators__rank-cell",children:d.jsx("span",{className:"ov-creators__rank ov-creators__rank--skeleton"})}),d.jsx("td",{className:"ov-creators__creator-cell",children:d.jsx("span",{className:"ov-creators__skeleton ov-creators__skeleton--creator"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})}),d.jsx("td",{className:"ov-creators__num",children:d.jsx("span",{className:"ov-creators__skeleton"})})]})}function A6(){const{data:e,isLoading:t,isError:r}=Gr({queryKey:["rankings","creators","week"],queryFn:()=>E6("week",_2)}),n=e??[];return r||!t&&n.length===0?null:d.jsxs("section",{className:"ov-creators",children:[d.jsxs("div",{className:"ov-creators__head",children:[d.jsx("h2",{className:"ov-creators__title",children:se("weekTopCreators.title")}),d.jsx("span",{className:"ov-creators__period",children:se("weekTopCreators.thisWeek")})]}),d.jsx("div",{className:"ov-creators__scroll",children:d.jsxs("table",{className:"ov-creators__table",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"ov-creators__header",children:[d.jsx("th",{className:"ov-creators__th ov-creators__th--rank",scope:"col",children:se("weekTopCreators.rank")}),d.jsx("th",{className:"ov-creators__th",scope:"col",children:se("weekTopCreators.creator")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.collections")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.sales")}),d.jsx("th",{className:"ov-creators__th ov-creators__th--num",scope:"col",children:se("weekTopCreators.volume")})]})}),d.jsx("tbody",{children:t?Array.from({length:_2}).map((o,a)=>d.jsx(T6,{},a)):n.map((o,a)=>d.jsx(S6,{rank:a+1,creator:o},o.id))})]})})]})}const Ah="Decentraland Shop",k6=`${Ah} | Wearables & Emotes for Your Avatar`,I6="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 R6(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 N6(e={}){const{title:t,description:r=I6,image:n,type:o="website",noindex:a=!1,canonicalPath:i}=e;ne.useEffect(()=>{if(typeof window>"u")return;const u=window.location.origin,f=u+(i??window.location.pathname),h=n??`${u}https://cdn.decentraland.org/@dcl/shop/0.1.0-29941568358.commit-de47e56/og-image.png`,m=t?`${t} | ${Ah}`:k6;document.title=m,xr("name","description",r),xr("name","robots",a?"noindex,nofollow":"index,follow"),R6("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",o),xr("name","twitter:title",m),xr("name","twitter:description",r),xr("name","twitter:image",h)},[t,r,n,o,a,i])}const C2="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",P6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29941568358.commit-de47e56/assets/hero-fashion-week-B9LOzkde.png",O6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29941568358.commit-de47e56/assets/promo-best-rated-emotes-C6kNvB-a.png",j6="https://cdn.decentraland.org/@dcl/shop/0.1.0-29941568358.commit-de47e56/assets/promo-week-selected-outfits-BBmkZYZx.png",L6=wt(Ys)`
|
|
281
|
-
margin-top: 10px;
|
|
282
|
-
`,M6=wt(Ys)`
|
|
283
|
-
height: 40px;
|
|
284
|
-
padding: 0 16px;
|
|
285
|
-
display: inline-flex;
|
|
286
|
-
align-items: center;
|
|
287
|
-
`,E2=6;function x2({title:e,items:t,loading:r}){const n=ne.useRef(null),[o,a]=ne.useState(1),[i,u]=ne.useState(0),f=r?E2:t.length,h=ne.useCallback(()=>{const y=n.current;if(!y)return;const _=y.clientWidth;if(_<=0)return;const A=Math.max(1,Math.ceil((y.scrollWidth-_)/_)+1);a(A),u(Math.min(A-1,Math.round(y.scrollLeft/_)));const g=y.querySelector(".card__media"),S=y.parentElement;S&&S.style.setProperty("--ov-arrow-top",`${12+(g?g.offsetHeight:150)/2}px`)},[]);ne.useEffect(()=>{h();const y=n.current;if(!y)return;const _=()=>u(Math.round(y.scrollLeft/Math.max(1,y.clientWidth)));return y.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",h),()=>{y.removeEventListener("scroll",_),window.removeEventListener("resize",h)}},[h,f]);const m=ne.useCallback(y=>{const _=n.current;if(!_)return;const A=Math.max(0,Math.min(o-1,y));_.scrollTo({left:A*_.clientWidth,behavior:"smooth"})},[o]),p=!r&&o>1;return d.jsxs("section",{className:"row ov-carousel",children:[d.jsxs("div",{className:"row__head",children:[d.jsx("h2",{className:"row__title",children:e}),d.jsxs(Sn,{className:"row__viewall",to:"/assets",children:[se("overview.viewAll")," ",d.jsx(vt,{name:"view-all-arrow",size:18})]})]}),d.jsxs("div",{className:"ov-carousel__viewport",children:[p?d.jsx("button",{className:"ov-arrow ov-arrow--left",onClick:()=>m(i-1),disabled:i<=0,"aria-label":se("overview.previous"),children:d.jsx("img",{src:C2,alt:"","aria-hidden":!0})}):null,d.jsx("div",{className:"ov-carousel__track",ref:n,children:r?Array.from({length:E2}).map((y,_)=>d.jsx("div",{className:"card card--skeleton"},_)):t.map(y=>d.jsx(ql,{item:y},y.id))}),p?d.jsx("button",{className:"ov-arrow ov-arrow--right",onClick:()=>m(i+1),disabled:i>=o-1,"aria-label":se("overview.next"),children:d.jsx("img",{src:C2,alt:"","aria-hidden":!0})}):null]}),p?d.jsx("div",{className:"ov-carousel__dots","aria-label":se("overview.carouselPages",{title:e}),children:Array.from({length:o}).map((y,_)=>d.jsx("button",{className:`ov-dot${_===i?" is-active":""}`,onClick:()=>m(_),"aria-label":se("overview.goToPage",{page:_+1}),"aria-current":_===i?"true":void 0},_))}):null]})}function B6(){N6({});const{data:e,isLoading:t}=Gr({queryKey:["overview-listings"],queryFn:()=>ph({first:24})}),r=(e==null?void 0:e.items)??[];return d.jsxs("div",{className:"overview",children:[d.jsxs("section",{className:"ov-hero",children:[d.jsx("img",{className:"ov-hero__bg",src:P6,alt:"","aria-hidden":!0}),d.jsx("div",{className:"ov-hero__scrim","aria-hidden":!0}),d.jsxs("div",{className:"ov-hero__inner",children:[d.jsx("h1",{className:"ov-hero__title",children:se("overview.heroTitle")}),d.jsx(M6,{as:Sn,to:"/assets",variant:"purple",children:se("overview.exploreCollection")})]})]}),t||r.length>0?d.jsxs(d.Fragment,{children:[d.jsx(x2,{title:se("overview.featuredProducts"),items:r.slice(0,12),loading:t}),d.jsxs("section",{className:"ov-promos",children:[d.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":se("overview.promoEmotesAria"),children:d.jsx("img",{src:O6,alt:se("overview.promoEmotesAlt")})}),d.jsx(Sn,{className:"ov-promo",to:"/assets","aria-label":se("overview.promoOutfitsAria"),children:d.jsx("img",{src:j6,alt:se("overview.promoOutfitsAlt")})})]}),r.length>12?d.jsx(x2,{title:se("overview.newCreations"),items:r.slice(12,24),loading:!1}):null]}):d.jsxs("div",{className:"overview__empty",children:[d.jsx("p",{className:"overview__empty-title",children:se("overview.emptyTitle")}),d.jsx("p",{className:"muted",children:se("overview.emptyBody")}),d.jsx(L6,{as:Sn,to:"/assets",variant:"purple",children:se("notFound.cta")})]}),d.jsx(C6,{}),d.jsx(w6,{}),d.jsx(A6,{})]})}const F6={"/overview":"overview","/assets":"assets","/my-assets":"my_assets","/my-favorites":"favorites","/my-purchases":"my_purchases","/import":"import","/store-settings":"store_settings","/cart":"cart","/credits":"credits","/success":"success","/authorizations":"authorizations"},$6=ne.lazy(()=>_t(()=>import("./Assets-D4bmQvg2.js"),__vite__mapDeps([22,1,23,12,2,7,6,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,8])).then(e=>({default:e.Assets}))),D6=ne.lazy(()=>_t(()=>import("./ItemDetail-BSqp8w-l.js"),__vite__mapDeps([39,1,2,25,26,12,7,6,27,40,29,30,28,41,42,38,17,24,23,43,44,45,35,33,8,46])).then(e=>({default:e.ItemDetail}))),q6=ne.lazy(()=>_t(()=>import("./Collection-CCeBHPqN.js"),__vite__mapDeps([47,1,30,48,49,50,2,43,32,33,34,36,37,6,7,8,51])).then(e=>({default:e.Collection}))),U6=ne.lazy(()=>_t(()=>import("./Creator-DyLgE_Lq.js"),__vite__mapDeps([52,1,48,49,50,2,43,32,33,34,36,37,30,6,7,8,53])).then(e=>({default:e.Creator}))),H6=ne.lazy(()=>_t(()=>import("./StoreSettings-CpeZPPkb.js"),__vite__mapDeps([54,1,50,2,30,6,7,8,55])).then(e=>({default:e.StoreSettings}))),V6=ne.lazy(()=>_t(()=>import("./MyAssets-BA5zCiVR.js"),__vite__mapDeps([56,1,57,25,2,26,12,7,6,27,23,40,29,30,32,33,34,36,31,35,37,8])).then(e=>({default:e.MyAssets}))),z6=ne.lazy(()=>_t(()=>import("./MyFavorites-DWjt5m8Z.js"),__vite__mapDeps([58,1,36,2,6,7,8])).then(e=>({default:e.MyFavorites}))),G6=ne.lazy(()=>_t(()=>import("./MyPurchases--MUfwO_U.js"),__vite__mapDeps([59,1,36,37,2,6,7,8])).then(e=>({default:e.MyPurchases}))),W6=ne.lazy(()=>_t(()=>import("./ImportListings-9YfzHduB.js"),__vite__mapDeps([60,1,57,25,2,26,12,7,6,27,23,8,61])).then(e=>({default:e.ImportListings}))),Z6=ne.lazy(()=>_t(()=>import("./Cart-pFVN5ROM.js"),__vite__mapDeps([62,1,25,2,26,12,7,6,27,28,63,41,38,29,30,44,45,8,64])).then(e=>({default:e.Cart}))),K6=ne.lazy(()=>_t(()=>import("./Authorizations-Bxum5Ckz.js"),__vite__mapDeps([65,1,26,12,2,7,6,29,8])).then(e=>({default:e.Authorizations}))),Y6=ne.lazy(()=>_t(()=>import("./GetCredits-BcaMNIRG.js"),__vite__mapDeps([66,1,42,63,38,41,17,2,6,7,8])).then(e=>({default:e.GetCredits}))),Q6=ne.lazy(()=>_t(()=>import("./Success-CxrAGNmd.js"),__vite__mapDeps([67,1,2,28,27,26,12,7,6,8])).then(e=>({default:e.Success}))),J6=ne.lazy(()=>_t(()=>import("./NotFound-DVZ9W5Hr.js"),__vite__mapDeps([68,1,2,6,7,8])).then(e=>({default:e.NotFound})));function X6(){return d.jsx("div",{className:"page-loading","aria-busy":"true",children:d.jsx("span",{className:"spinner","aria-hidden":!0})})}const e8=wt(Ys)`
|
|
288
|
-
margin-top: 10px;
|
|
289
|
-
`;function t8(){return d.jsxs("div",{className:"overview__empty",children:[d.jsx("p",{className:"overview__empty-title",children:se("app.crash.title")}),d.jsx("p",{className:"muted",children:se("app.crash.body")}),d.jsx(e8,{variant:"purple",onClick:()=>window.location.reload(),children:se("app.crash.reload")})]})}function r8(){i6();const e=B2();return ne.useEffect(()=>{Yy()},[]),ne.useEffect(()=>{const t=e.pathname,r=F6[t]??(t.startsWith("/item/")?"item":t.startsWith("/collection/")?"collection":t.startsWith("/assets/creator/")?"creator":"other");Gy(r)},[e.pathname]),d.jsxs(d.Fragment,{children:[d.jsx(P_,{}),d.jsx(s6,{}),d.jsx(W_,{}),d.jsx(E_,{}),d.jsx("main",{className:"page",children:d.jsx(du,{fallback:d.jsx(t8,{}),children:d.jsx(ne.Suspense,{fallback:d.jsx(X6,{}),children:d.jsxs(zh,{children:[d.jsx(kt,{path:"/",element:d.jsx(lu,{to:"/overview",replace:!0})}),d.jsx(kt,{path:"/overview",element:d.jsx(B6,{})}),d.jsx(kt,{path:"/assets",element:d.jsx($6,{})}),d.jsx(kt,{path:"/market",element:d.jsx(lu,{to:"/assets",replace:!0})}),d.jsx(kt,{path:"/item/:contractAddress/:tokenId",element:d.jsx(D6,{})}),d.jsx(kt,{path:"/collection/:contractAddress",element:d.jsx(q6,{})}),d.jsx(kt,{path:"/assets/creator/:address",element:d.jsx(U6,{})}),d.jsx(kt,{path:"/store-settings",element:d.jsx(H6,{})}),d.jsx(kt,{path:"/my-assets",element:d.jsx(V6,{})}),d.jsx(kt,{path:"/my-favorites",element:d.jsx(z6,{})}),d.jsx(kt,{path:"/my-purchases",element:d.jsx(G6,{})}),d.jsx(kt,{path:"/import",element:d.jsx(W6,{})}),d.jsx(kt,{path:"/cart",element:d.jsx(Z6,{})}),d.jsx(kt,{path:"/authorizations",element:d.jsx(K6,{})}),d.jsx(kt,{path:"/credits",element:d.jsx(Y6,{})}),d.jsx(kt,{path:"/success",element:d.jsx(Q6,{})}),d.jsx(kt,{path:"*",element:d.jsx(J6,{})})]})})})}),d.jsx(du,{fallback:d.jsx(d.Fragment,{}),children:d.jsx(J_,{})})]})}function n8({children:e}){const t=il(r=>r.locale);return Zb(t),d.jsx(t3,{value:Nl(t),children:e},t)}nv();const o8=new P1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),a8=["localhost","127.0.0.1"].includes(window.location.hostname),s8=a8?void 0:"/shop";Gh.createRoot(document.getElementById("root")).render(d.jsx(M2.StrictMode,{children:d.jsx(j1,{client:o8,children:d.jsx(n8,{children:d.jsx(Wh,{basename:s8,children:d.jsx(r8,{})})})})}));export{yl as $,ql as A,Ys as B,yo as C,j8 as D,U8 as E,R8 as F,C2 as G,mf as H,vt as I,w_ as J,nh as K,F5 as L,V5 as M,pn as N,Ye as O,q5 as P,mn as Q,L5 as R,M4 as S,O4 as T,_l as U,Dp as V,bl as W,Ps as X,lf as Y,oa as Z,_t as _,Es as a,pw as a$,ff as a0,vl as a1,dh as a2,Fs as a3,_8 as a4,F8 as a5,S1 as a6,m8 as a7,h8 as a8,z1 as a9,P8 as aA,$8 as aB,y4 as aC,sl as aD,d2 as aE,g8 as aF,Qb as aG,Bd as aH,Kb as aI,p6 as aJ,y8 as aK,V8 as aL,l6 as aM,u6 as aN,l_ as aO,c_ as aP,i_ as aQ,f6 as aR,m6 as aS,N8 as aT,I8 as aU,J4 as aV,L8 as aW,al as aX,nl as aY,Ko as aZ,$5 as a_,ci as aa,E8 as ab,Ls as ac,j_ as ad,L_ as ae,Dl as af,M_ as ag,Xn as ah,Ch as ai,O8 as aj,qt as ak,c6 as al,rn as am,xs as an,Wo as ao,B8 as ap,v8 as aq,ph as ar,Ug as as,Nr as at,o_ as au,q8 as av,d_ as aw,f_ as ax,Jc as ay,D8 as az,k8 as b,sh as b0,fh as b1,Pr as b2,Z5 as b3,A8 as b4,A4 as b5,T4 as b6,a4 as b7,w4 as b8,$v as b9,Y5 as ba,X5 as bb,b5 as bc,th as bd,T8 as be,ol as bf,ua as bg,Ws as bh,aa as bi,Cl as bj,E5 as bk,B5 as bl,C5 as bm,Xf as bn,eh as bo,_5 as bp,j5 as bq,tw as br,S8 as bs,L4 as bt,j4 as bu,Pl as bv,z4 as bw,Q5 as bx,Xw as by,rh as bz,Ze as c,P4 as d,Gr as e,Fl as f,wo as g,Uv as h,H8 as i,O1 as j,C8 as k,rr as l,x8 as m,Hv as n,w8 as o,M8 as p,mr as q,Zy as r,wt as s,se as t,N6 as u,b8 as v,Rg as w,E0 as x,Le as y,Hf as z};
|