@dcl/shop 0.1.0-30532275270.commit-a2f045a → 0.1.0-30533220789.commit-7bdc9fc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{Activity-CbMqQzHZ.js → Activity-DHcT0NJQ.js} +5 -5
- package/assets/{AnimatedBackground-BMoGVnu-.js → AnimatedBackground-DAYiO97V.js} +2 -2
- package/assets/{Assets-DcH8v049.js → Assets-CgAVCNln.js} +10 -10
- package/assets/{Assets.styles-C2A8CUAi.js → Assets.styles-99ENlFTF.js} +1 -1
- package/assets/{Authorizations-CoJ3Ra_P.js → Authorizations-mUxFKG6u.js} +2 -2
- package/assets/{Cart-CKkA6F0l.js → Cart-DU6OZ2TR.js} +10 -10
- package/assets/{CircularProgress-BBvMw0HD.js → CircularProgress-MdA4nK0M.js} +5 -5
- package/assets/{Collection-CT7H6Iat.js → Collection-DEbf6Pik.js} +1 -1
- package/assets/{CollectionCarousel-AI_GtvP3.js → CollectionCarousel-GA0qG2qL.js} +11 -11
- package/assets/{ContentClient-gZyDAKO3.js → ContentClient-CHs-qED4.js} +1 -1
- package/assets/{Creator-M4B8I_Qa.js → Creator-Lgx8CCs2.js} +5 -5
- package/assets/{DeploymentBuilder-DufsvYDr.js → DeploymentBuilder-ku3det23.js} +1 -1
- package/assets/{ErrorNotice-7lrQ5fyU.js → ErrorNotice-CK4lBVOL.js} +1 -1
- package/assets/{ExchangeController-CrTq22ta.js → ExchangeController-qK879qyE.js} +1 -1
- package/assets/{GetCredits-D4-Nd3Rr.js → GetCredits-Ci0y1ioU.js} +12 -12
- package/assets/{HelpersUtil-C97X2mL1.js → HelpersUtil-dZeTnpvn.js} +1 -1
- package/assets/{ImportListings-Dr89QkkM.js → ImportListings-DWvRK7Iw.js} +10 -10
- package/assets/{ItemDetail-VbfIuH1Q.js → ItemDetail-hA7QMWxr.js} +24 -24
- package/assets/LoadMore-BPUX0H_4.js +7 -0
- package/assets/{MenuList-Qx-qACQt.js → MenuList-Cww1tjVv.js} +1 -1
- package/assets/{MyAssets-Bg7seD5E.js → MyAssets-CbRnqEUT.js} +1 -1
- package/assets/{MyFavorites-DZAOw6sU.js → MyFavorites-DMexPVyD.js} +1 -1
- package/assets/{NotFound-Ca5MLBnt.js → NotFound-BS0Tbunn.js} +4 -4
- package/assets/{NotificationsBell-CPq4ywSS.js → NotificationsBell-DDbo4iZn.js} +1 -1
- package/assets/{StoreSettings-BUVzCOC4.js → StoreSettings-BsANXVe6.js} +5 -5
- package/assets/{Success-D8cw654x.js → Success-BhoyFUvj.js} +7 -7
- package/assets/{SwapController-TQEZkP3S.js → SwapController-BhSWjg_q.js} +1 -1
- package/assets/{Tooltip-6L66h5-B.js → Tooltip-ByBgftfn.js} +1 -1
- package/assets/{TradeService-CmEo9qNj.js → TradeService-BTErm28m.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-wlaGUzlC.js → W3MFrameProviderSingleton-BsbvrUws.js} +3 -3
- package/assets/{WebCryptoP256-D4jtQCS_.js → WebCryptoP256-B9kdEJYr.js} +1 -1
- package/assets/{authorizations-CuAc2XNm.js → authorizations-DFNq9Tgp.js} +1 -1
- package/assets/{basic-BtRQIBSr.js → basic-C_iELqsA.js} +1 -1
- package/assets/{biconomy-ByzzTnNJ.js → biconomy-f6KI6CNd.js} +1 -1
- package/assets/browseLayout.styles-Cmr9wUVU.js +91 -0
- package/assets/{builder-DHb3XLhA.js → builder-DCiuBzde.js} +1 -1
- package/assets/{buy-CqH6bZKJ.js → buy-DM-cSEnp.js} +1 -1
- package/assets/{buy-gasless-BppY_ycq.js → buy-gasless-4_XeVMNy.js} +1 -1
- package/assets/{categories-Ii_8mB-U.js → categories-DpOXLpA1.js} +3 -3
- package/assets/{ccip-BiUOzWPo.js → ccip-wPDIiKjj.js} +1 -1
- package/assets/{ccip-BVsU6ewa.js → ccip-ylse5_Kd.js} +1 -1
- package/assets/{clsx-gjbd6Og2.js → clsx-B-q2CjUj.js} +2 -2
- package/assets/{controller-Co1-cKSv.js → controller-y5wQtcRI.js} +2 -2
- package/assets/{core-mul2yOPE.js → core-9ETwjyyw.js} +4 -4
- package/assets/{createSvgIcon-bdXjSxn7.js → createSvgIcon-Cg_YayG4.js} +3 -3
- package/assets/{custom-D7xF5lj-.js → custom-quw6VfoY.js} +1 -1
- package/assets/{data-capture-yH3jYwyM.js → data-capture-CcbMvFTV.js} +1 -1
- package/assets/{email-Cp2tYkC5.js → email-DHZihEAj.js} +1 -1
- package/assets/{embedded-wallet-BCQNiaOl.js → embedded-wallet-DyU_HywD.js} +1 -1
- package/assets/{emotion-styled.browser.esm-FOCyt_32.js → emotion-styled.browser.esm-UYGVcgjh.js} +1 -1
- package/assets/{engine-ChEnHgTC.js → engine-yDAKevG_.js} +1 -1
- package/assets/{errors-DO4BAL3a.js → errors-ChVGWplO.js} +1 -1
- package/assets/{estimate-l1-fee-DSqjPH6d.js → estimate-l1-fee-KZr1MEvO.js} +1 -1
- package/assets/{ethers-CpLYx0ea.js → ethers-CXBJm_wN.js} +1 -1
- package/assets/{execute-pLWBON1m.js → execute-Bd9BxvT3.js} +2 -2
- package/assets/{features-dN_Tmzyb.js → features-A-VDHJUY.js} +1 -1
- package/assets/{fetchTokenMetadata-DQHY0RzR.js → fetchTokenMetadata-DtVJcSJp.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-Bq5fCSPW.js → get-ecosystem-wallet-info-zgqdQXds.js} +1 -1
- package/assets/{getBalance-BzjMPt51.js → getBalance-CaDvSg8z.js} +1 -1
- package/assets/{getNFT-BKee0rFf.js → getNFT-hEiojfwE.js} +1 -1
- package/assets/{getNFT-clj6qr0h.js → getNFT-llCzlOpx.js} +1 -1
- package/assets/{getThemeProps-DpSrsNzC.js → getThemeProps-CyTO66m-.js} +1 -1
- package/assets/{grid.styles-CBL5-QgD.js → grid.styles-BKcqv8ku.js} +1 -1
- package/assets/{hashTypedData-Umk2D-Fv.js → hashTypedData-BwAGg-bM.js} +1 -1
- package/assets/{hashTypedData-CEkTyB4O.js → hashTypedData-ClRj-Vq3.js} +1 -1
- package/assets/{import-DmtyCc6m.js → import-DZDyJpzb.js} +1 -1
- package/assets/{in-app-De4GslKA.js → in-app-DvVGn-Tr.js} +1 -1
- package/assets/{in-app-wallet-calls-bdyVm0s9.js → in-app-wallet-calls-BFOriSM3.js} +1 -1
- package/assets/{index-CHtagFNQ.js → index-7p9A6Y0a.js} +1 -1
- package/assets/{index-yPSwFHJl.js → index-B-PC7kzk.js} +1 -1
- package/assets/{index-DM_2rgLV.js → index-BJyrx34m.js} +1 -1
- package/assets/{index-BdoU8P0k.js → index-BM5QAu0f.js} +1 -1
- package/assets/{index-awpxTEfa.js → index-BOqjnYX-.js} +1 -1
- package/assets/{index-CErFnDxO.js → index-BT3SHHd5.js} +1 -1
- package/assets/{index--LSY5-1n.js → index-BWrvjmvA.js} +1 -1
- package/assets/{index-BfZyGlMC.js → index-BXU-nLAg.js} +1 -1
- package/assets/{index-B4FgMNzP.js → index-BXwiCVbv.js} +1 -1
- package/assets/{index-uAE5YYu_.js → index-BZ0ivrP7.js} +1 -1
- package/assets/{index-BvX1QIzX.js → index-Bbuk9Khc.js} +1 -1
- package/assets/{index-NlFL3d2s.js → index-BdttBNrs.js} +1 -1
- package/assets/{index-Bvk6vM0C.js → index-BgMBv9dR.js} +1 -1
- package/assets/{index-BNfX7QrP.js → index-BimrH13W.js} +2 -2
- package/assets/{index-Fb0K-mXa.js → index-Bjg7TODu.js} +1 -1
- package/assets/{index-DSWXAUVm.js → index-BkypgqOV.js} +1 -1
- package/assets/{index-BiKZ964V.js → index-BllcClN6.js} +1 -1
- package/assets/{index-DS96DfqT.js → index-Bvg39vl-.js} +1 -1
- package/assets/{index-B7ResnK5.js → index-BzC7P3rh.js} +1 -1
- package/assets/{index-BONtSxa0.js → index-C2bGw1aV.js} +1 -1
- package/assets/{index-Jl8k4zvP.js → index-C3kietSY.js} +1 -1
- package/assets/{index-CK7WvZif.js → index-CEP90DOS.js} +1 -1
- package/assets/{index-Cver6pep.js → index-CKm5jjNA.js} +1 -1
- package/assets/{index-G_dn-tvL.js → index-C_8fFdiQ.js} +1 -1
- package/assets/{index-BgaV9USa.js → index-CcILR5tk.js} +3 -3
- package/assets/{index-C8hIMbtK.js → index-CewFuSMJ.js} +1 -1
- package/assets/{index-DknMEmk3.js → index-CgqZXKRV.js} +1 -1
- package/assets/{index-D-IAkb5J.js → index-Cra6AwSQ.js} +1 -1
- package/assets/{index-B-Kqr2Lr.js → index-Cw22meEP.js} +1 -1
- package/assets/{index-DZT3e3OX.js → index-CxfxQdzz.js} +1 -1
- package/assets/{index-CjyETdIk.js → index-D-EI3P40.js} +3 -3
- package/assets/{index-BWdFjMnd.js → index-D0Y8g2RK.js} +1 -1
- package/assets/{index-CMt5tDkm.js → index-D0YGh1qc.js} +1 -1
- package/assets/{index-C9-FY-Ky.js → index-D2tIIB80.js} +1 -1
- package/assets/index-D5DVXUwH.js +2815 -0
- package/assets/{index-CFMaudzh.js → index-DA9dNuFx.js} +1 -1
- package/assets/{index-BpuTOU0Y.js → index-DDLYKD1A.js} +1 -1
- package/assets/{index-BJQJ6qaf.js → index-DFzHpbP5.js} +1 -1
- package/assets/{index-DlkFYSp0.js → index-DQ2tXB-9.js} +1 -1
- package/assets/{index-B54fv8BV.js → index-DV71UlyX.js} +2 -2
- package/assets/{index-CB_CYh2b.js → index-De4CFGxV.js} +1 -1
- package/assets/{index-DutOGRmD.js → index-DgKHc2Pp.js} +1 -1
- package/assets/{index-CV_6t64M.js → index-DhLo2n6f.js} +3 -3
- package/assets/{index-Be0ZRjCF.js → index-Di6u8k7B.js} +1 -1
- package/assets/{index-QvFmNklc.js → index-DpBcQE_6.js} +2 -2
- package/assets/{index-Cpb2GsOL.js → index-DtDHbRaI.js} +1 -1
- package/assets/{index-DUoFIKBs.js → index-DtJyQ9bI.js} +1 -1
- package/assets/{index-CBNY7GXM.js → index-Gh8Wo_nP.js} +1 -1
- package/assets/{index-DrQdISEN.js → index-LJgz7Vh0.js} +1 -1
- package/assets/{index-CYxLeUYk.js → index-QqnCK59E.js} +1 -1
- package/assets/{index-CeUaTQBa.js → index-T6QVaQCG.js} +1 -1
- package/assets/{index-CFVWvFqS.js → index-Vn0Ag5lj.js} +2 -2
- package/assets/{index-TbYX4rLT.js → index-aqbngM36.js} +1 -1
- package/assets/{index-DAbgom1O.js → index-ic-9gGyQ.js} +1 -1
- package/assets/{index-CRH1JYli.js → index-mUhc64Y7.js} +2 -2
- package/assets/{index-cFddn33m.js → index-n6Y6VcrN.js} +1 -1
- package/assets/{index-gtWzDPti.js → index-qV7AbQfd.js} +1 -1
- package/assets/{index.es-DzMzdwPi.js → index.es-CztAAmPP.js} +4 -4
- package/assets/{index.es-BFcZPPhE.js → index.es-DVrmRSwM.js} +1 -1
- package/assets/{index.es-DHdAVxZp.js → index.es-bWvk478d.js} +1 -1
- package/assets/{localBatchGatewayRequest-CmlDXZ5z.js → localBatchGatewayRequest-DuBJGihv.js} +1 -1
- package/assets/{mana-convert-KYZPeT3f.js → mana-convert-DlwVmR8Z.js} +1 -1
- package/assets/{mana-rate-BPbJ056a.js → mana-rate-BfcKcY1g.js} +1 -1
- package/assets/{networks-yZyw6wIL.js → networks-1Ibttcj1.js} +1 -1
- package/assets/{onramp-DOIKmPiV.js → onramp-aAvMQcmO.js} +1 -1
- package/assets/{openzeppelin-D2LH4Ydk.js → openzeppelin-C38CqrRA.js} +1 -1
- package/assets/{parseNft-T_nq-FRz.js → parseNft-6oJxXfwc.js} +2 -2
- package/assets/{parseSignature-CvqOiuxh.js → parseSignature-CNg3sYg3.js} +1 -1
- package/assets/{parseSignature-DcnU6VsD.js → parseSignature-CoR3bR9Z.js} +3 -3
- package/assets/{passkeys-DRffD36u.js → passkeys-DA1I0YCi.js} +1 -1
- package/assets/{pay-with-exchange-Ds1MFPWI.js → pay-with-exchange-ClJmaJuN.js} +1 -1
- package/assets/{qr-overlay-B_n8DdYE.js → qr-overlay-DluNEOGD.js} +1 -1
- package/assets/{receive-YaMGhsu8.js → receive-BcyE8h_z.js} +1 -1
- package/assets/{resolveImplementation-CP8ReK0t.js → resolveImplementation-yzbJCbQl.js} +1 -1
- package/assets/{rpc-Lt48x6y2.js → rpc-CtvmLvX8.js} +1 -1
- package/assets/{secp256k1-lg2mkCel.js → secp256k1-BxtxQFCf.js} +1 -1
- package/assets/{secp256k1-DLLGRjo2.js → secp256k1-CErv03Bc.js} +1 -1
- package/assets/{secp256k1-BDvY1_CS.js → secp256k1-CbUZMnZP.js} +1 -1
- package/assets/{send-C0DGzWDF.js → send--RiC0a6k.js} +1 -1
- package/assets/{send-batch-transaction-zJ_VDicb.js → send-batch-transaction-DOj0V2-L.js} +1 -1
- package/assets/{send-eip712-transaction-Dq_x23F7.js → send-eip712-transaction-CIzKCZyA.js} +2 -2
- package/assets/{send-gasless-transaction-B-ZOssZP.js → send-gasless-transaction-BWlKSPeq.js} +2 -2
- package/assets/{send-transaction-vZeDg_HE.js → send-transaction-BPaN8n6Z.js} +2 -2
- package/assets/{sendMetaTransaction-DenOLxoI.js → sendMetaTransaction-BKizuZFV.js} +1 -1
- package/assets/{sendRawTransaction-CMejmfE_.js → sendRawTransaction-CxB_4oN4.js} +3 -3
- package/assets/{serializeTransaction-fkTrXDU0.js → serializeTransaction-C3q3weD9.js} +1 -1
- package/assets/{session-proposal-NFuTkmi6.js → session-proposal-vDKIjX3g.js} +1 -1
- package/assets/{session-request-xNEp01mS.js → session-request-CHfNc9vC.js} +2 -2
- package/assets/{signing-D5SsZYxi.js → signing-B7_GRHUe.js} +3 -3
- package/assets/{socials-M6SDfPLz.js → socials-DK5o9fyb.js} +1 -1
- package/assets/{swaps-as4l882g.js → swaps-DfDMa1aq.js} +1 -1
- package/assets/{thirdweb-B0ediOQG.js → thirdweb-CIO7xwSs.js} +3 -3
- package/assets/{to-serializable-transaction-B1HReYXC.js → to-serializable-transaction-Bdgoy0Wm.js} +2 -2
- package/assets/trade-encoding-B0FxJexO.js +1 -0
- package/assets/{transactionReceipt-DWQKELDB.js → transactionReceipt-CWj8puIV.js} +1 -1
- package/assets/{transactions-1NqtgaFK.js → transactions-D-SPS7uV.js} +1 -1
- package/assets/useCreditPacks-Cpp2jALc.js +1 -0
- package/assets/{useInfiniteGrid-lzr54mZj.js → useInfiniteGrid-C475cv9A.js} +1 -1
- package/assets/useManaRate-D_UeFv99.js +1 -0
- package/assets/useSecondarySales-kULWuUVg.js +1 -0
- package/assets/{useStore-D-wvS_np.js → useStore-Cl1MYHtr.js} +2 -2
- package/assets/useTheme-CxKwPhP1.js +1 -0
- package/assets/{verifyHash-DOqrIW3W.js → verifyHash-Bt32rWW9.js} +1 -1
- package/assets/{w3m-modal-GWJUaUWr.js → w3m-modal-2-4Pq3p_.js} +1 -1
- package/assets/{w3m-modal-D3KNKX82.js → w3m-modal-CsLwVxzq.js} +1 -1
- package/assets/{wait-for-tx-receipt-DrhWpj7T.js → wait-for-tx-receipt-B_tiZ6k5.js} +1 -1
- package/assets/{wallets-CG89q62s.js → wallets-xc4Kph_C.js} +5 -5
- package/assets/{web-connector-BoJZiGWp.js → web-connector-CAYL-Why.js} +3 -3
- package/assets/{writeContract-y1Yqqq2A.js → writeContract-DalyEIEs.js} +1 -1
- package/assets/{zoraTestnet-BsKNbyY5.js → zoraTestnet-05BYQqBP.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/LoadMore-Ph3D3bIG.js +0 -7
- package/assets/browseLayout.styles-CQaQRgwg.js +0 -91
- package/assets/index-YNVuXck0.js +0 -2759
- package/assets/loader-logo-BzY9EKdC.js +0 -1
- package/assets/trade-encoding-BtHgpsoS.js +0 -1
- package/assets/useCreditPacks-KAopaQFi.js +0 -1
- package/assets/useManaRate-D40Girrk.js +0 -1
- package/assets/useSecondarySales-VfEySv0L.js +0 -1
- package/assets/useTheme-BfFEOOz_.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/fortmatic-CCMQbesB.js","assets/react-vyZjIDcS.js","assets/index-
|
|
2
|
-
var ce=Object.defineProperty;var de=(o,n,e)=>n in o?ce(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var d=(o,n,e)=>de(o,typeof n!="symbol"?n+"":n,e);import{c as h,e as l,f as g}from"./dcl-schemas-BICTSpB5.js";import{g as ue}from"./react-vyZjIDcS.js";import{r as he}from"./events-DQ172AOg.js";import{_ as m}from"./index-YNVuXck0.js";var C;(function(o){o.Update="Web3ReactUpdate",o.Error="Web3ReactError",o.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(o){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(o){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}var E=(function(o){fe(n,o);function n(t){var r,i=t===void 0?{}:t,s=i.supportedChainIds;return r=o.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(i=>Number(i));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-CCMQbesB.js").then(i=>i.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},j.apply(this,arguments)}function q(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}function K(o){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(o)}function L(o,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(o,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(o,n,e){return ve()?O=Reflect.construct:O=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function S(o){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(o)}function b(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(o,n){try{var e=o()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(o){return o.hasOwnProperty("result")?o.result:o}var k=(function(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(o){q(n,o);function n(t){var r;return r=o.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,i){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(i)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},i=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!i)try{i=y(window.ethereum.send({method:"net_version"}))}catch{}return i||(window.ethereum.isDapper?i=y(window.ethereum.cachedResults.net_version):i=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){i=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){i=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return i||(i=y(window.ethereum.send({method:"eth_accounts"}))[0]),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){i=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){i=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(o,n){throw new Error(ye)}function Y(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,N(o,n)}function D(o){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(o)}function N(o,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(o,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(o,n,e){return Ce()?R=Reflect.construct:R=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function W(o){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(o)}var U=(function(o){Y(n,o);function n(e,t,r){var i;return i=o.call(this)||this,i.code=t,i.data=r,i.name=i.constructor.name,i.message=e,i}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var i=new URL(e);this.host=i.host,this.path=i.pathname},Te=(function(o){Y(n,o);function n(t){var r,i=t.urls,s=t.defaultChainId;return s||Object.keys(i).length===1||V(),r=o.call(this,{supportedChainIds:Object.keys(i).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(i)[0]),r.providers=Object.keys(i).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),i[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(i){return Promise.reject(i)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},x.apply(this,arguments)}function Pe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,F(o,n)}function F(o,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(o,n)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var _e=1,Ne=(function(o){Pe(n,o);function n(t){var r,i=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=o.call(this,{supportedChainIds:u})||this,r.url=i,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,i=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-BJQJ6qaf.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(i):i(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(i){return i[0]})}catch(i){return Promise.reject(i)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(i){return Promise.reject(i)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-BgaV9USa.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,5,3,4,11,14,15,16,17,18,19,20,21,22,23,24])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-CV_6t64M.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([25,15,3,16,1,5,17,18,19,13,4,11,14,26,27,6,28,29,30])),r=await this.getNetworks(),i=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[i],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(i=>{const s=setTimeout(()=>{a==null||a(),i()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),i())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,i)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),i(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),i(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const i=e.getWalletProvider();if(!i)throw new Error("Failed to get wallet provider after connection");this.provider=i,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(i){console.warn("Error unsubscribing from AppKit events:",i)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-yZyw6wIL.js"),__vite__mapDeps([31,19,5,1,32,33,26,13,3,4,11,14,34,35,30])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const i=r.find(s=>s.id===this.desiredChainId);if(i){const s=r.filter(a=>a.id!==this.desiredChainId);return[i,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,i)=>{var s,a,c;if(((s=i[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=i[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...i)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,i)=>t.bind(e)(...i)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-Fyrl3bgj.js");return{Magic:a}},__vite__mapDeps([36,5,1,37])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-DlkFYSp0.js");return{OAuthExtension:a}},__vite__mapDeps([38,37,5,1,39,7,8,4,10,3])),i=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=i.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(i.urls).join(", ")}`);return new t(i.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const i=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-CG89q62s.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]));return this.eip1193Provider=s.toProvider({wallet:t,chain:i,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,i)=>{var a,c,u,f;if(((a=i[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=i[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-CG89q62s.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,i)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,i)=>Reflect.apply(t,e,i)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:i}=await import("./in-app-De4GslKA.js");return{getUserEmail:i}},__vite__mapDeps([57,42,43,5,1,48,47,13,3,4,11,14,58,59]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-B0ediOQG.js").then(r=>r.t),__vite__mapDeps([60,43,5,1,42,41,13,3,4,11,14,44,45,46,61,62,63,64,65,66,55,67,68,69,70,54]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-CG89q62s.js").then(t=>t.Q),__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-DjVUcpdx.js"),__vite__mapDeps([71,43,5,1,69,51]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,i;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,i=e}else t=n,r=e||[],i=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return i(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return i(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:i}={};try{const a=await t.activate();r=a.provider,i=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:i||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),Ke=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,Ke as i};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/fortmatic-CCMQbesB.js","assets/react-vyZjIDcS.js","assets/index-DFzHpbP5.js","assets/dcl-schemas-BICTSpB5.js","assets/ethers-CXBJm_wN.js","assets/sentry-B35L1FdR.js","assets/index-COjgItKg.js","assets/index-CEP90DOS.js","assets/index-CcRW7qMf.js","assets/hooks.module-C4R15-Vr.js","assets/events-DQ172AOg.js","assets/intl-CBcMB1D2.js","assets/index-CcILR5tk.js","assets/index-D5DVXUwH.js","assets/index-YUVIXaKh.css","assets/W3MFrameProviderSingleton-BsbvrUws.js","assets/index-DgMAf2q5.js","assets/browser-ponyfill-B4tSdV4O.js","assets/browser-ponyfill-BvriZgAo.js","assets/NetworkUtil-HlUKXKcF.js","assets/index-Cra6AwSQ.js","assets/index-nibyPLVP.js","assets/index-BWrvjmvA.js","assets/index.es-bWvk478d.js","assets/lit-element-B3y9oplH.js","assets/index-DhLo2n6f.js","assets/sendRawTransaction-CxB_4oN4.js","assets/index-9H7pG6F1.js","assets/store-CraP4F4Y.js","assets/custom-quw6VfoY.js","assets/writeContract-DalyEIEs.js","assets/networks-1Ibttcj1.js","assets/zoraTestnet-05BYQqBP.js","assets/verifyHash-Bt32rWW9.js","assets/secp256k1-CbUZMnZP.js","assets/serializeTransaction-C3q3weD9.js","assets/index-Fyrl3bgj.js","assets/index-8EYFemjW.js","assets/index-DQ2tXB-9.js","assets/index-BzC7P3rh.js","assets/wallets-xc4Kph_C.js","assets/signing-B7_GRHUe.js","assets/prepare-contract-call-BreQKHF6.js","assets/utils-jd03xFBb.js","assets/to-serializable-transaction-Bdgoy0Wm.js","assets/transaction-8aHmZ7ni.js","assets/get-bytecode-Bg8NviKV.js","assets/execute-Bd9BxvT3.js","assets/detectExtension-0JcORGBX.js","assets/linkAccount-D303ryxj.js","assets/index-D-EI3P40.js","assets/ethereum-7duKFA0R.js","assets/types-DC0Zmj1B.js","assets/hashTypedData-ClRj-Vq3.js","assets/send-transaction-BPaN8n6Z.js","assets/eth_sendRawTransaction-DPdnXbFR.js","assets/index-CJdot1dH.js","assets/in-app-DvVGn-Tr.js","assets/passkeys-DA1I0YCi.js","assets/uint8-array-CjVHUazS.js","assets/thirdweb-CIO7xwSs.js","assets/wait-for-tx-receipt-B_tiZ6k5.js","assets/transactionReceipt-CWj8puIV.js","assets/sleep-mAKpSMLY.js","assets/eth_estimateGas-BfIHMLbI.js","assets/eth_getStorageAt-DIGus6Ic.js","assets/eth_getTransactionCount-CmmgCgZ1.js","assets/decimals-CTAJwKFW.js","assets/decimals-rMqzXjFU.js","assets/zora-sepolia-Bt1F-uU9.js","assets/send-batch-transaction-DOj0V2-L.js","assets/chains-DjVUcpdx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ce=Object.defineProperty;var de=(o,n,e)=>n in o?ce(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var d=(o,n,e)=>de(o,typeof n!="symbol"?n+"":n,e);import{c as h,e as l,f as g}from"./dcl-schemas-BICTSpB5.js";import{g as ue}from"./react-vyZjIDcS.js";import{r as he}from"./events-DQ172AOg.js";import{_ as m}from"./index-D5DVXUwH.js";var C;(function(o){o.Update="Web3ReactUpdate",o.Error="Web3ReactError",o.Deactivate="Web3ReactDeactivate"})(C||(C={}));const le={clientId:"e1adce863fe287bb6cf0e3fd90bdb77f",chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY]},pe={storageKey:"decentraland-connect-storage-key",[l.ProviderType.INJECTED]:{},[l.ProviderType.FORTMATIC]:{apiKeys:{[h.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[h.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:A(l.ProviderType.FORTMATIC)},[l.ProviderType.NETWORK]:{urls:A(l.ProviderType.NETWORK)},[l.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:A(l.ProviderType.WALLET_LINK)},[l.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:A(l.ProviderType.WALLET_CONNECT_V2),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.ARBITRUM_MAINNET,h.ChainId.OPTIMISM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},[l.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:A(l.ProviderType.MAGIC),chains:[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA,h.ChainId.MATIC_MAINNET,h.ChainId.MATIC_AMOY,h.ChainId.OPTIMISM_MAINNET,h.ChainId.ARBITRUM_MAINNET,h.ChainId.AVALANCHE_MAINNET,h.ChainId.BSC_MAINNET,h.ChainId.FANTOM_MAINNET]},thirdweb:le};function I(){return pe}function A(o){const n={[h.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[h.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[h.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[h.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[h.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[h.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[h.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[h.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[h.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let e="";switch(o){case l.ProviderType.WALLET_LINK:e="walletlink";break;case l.ProviderType.FORTMATIC:e="fortmatic";break;case l.ProviderType.MAGIC:e="magic";break;case l.ProviderType.MAGIC_TEST:e="magic";break;case l.ProviderType.WALLET_CONNECT_V2:e="walletconnect-v2";break;case l.ProviderType.THIRDWEB:e="thirdweb";break}if(e){const t=Object.keys(n);for(const r of t)n[r]+=`?project=${e}`}return n}var $=he();const je=ue($);function fe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}var E=(function(o){fe(n,o);function n(t){var r,i=t===void 0?{}:t,s=i.supportedChainIds;return r=o.call(this)||this,r.supportedChainIds=s,r}var e=n.prototype;return e.emitUpdate=function(r){this.emit(C.Update,r)},e.emitError=function(r){this.emit(C.Error,r)},e.emitDeactivate=function(){this.emit(C.Deactivate)},n})($.EventEmitter);class z extends E{constructor(e){const t=I()[g.ProviderType.FORTMATIC],r=Object.keys(t.apiKeys).map(i=>Number(i));if(!r.includes(e))throw new Error(`Invariant error: Unsupported chainId ${e}`);super({supportedChainIds:r});d(this,"apiKey");d(this,"chainId");d(this,"rpcUrl");d(this,"fortmatic");this.apiKey=t.apiKeys[e],this.chainId=e,this.rpcUrl=t.urls[e]}async activate(){if(!this.fortmatic){const{default:t}=await m(async()=>{const{default:r}=await import("./fortmatic-CCMQbesB.js").then(i=>i.f);return{default:r}},__vite__mapDeps([0,1]));this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const e=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:e}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(e=>e[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function j(){return j=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},j.apply(this,arguments)}function q(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}function K(o){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(o)}function L(o,n){return L=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},L(o,n)}function ve(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(o,n,e){return ve()?O=Reflect.construct:O=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&L(u,s.prototype),u},O.apply(null,arguments)}function we(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function S(o){var n=typeof Map=="function"?new Map:void 0;return S=function(t){if(t===null||!we(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return O(t,arguments,K(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,t)},S(o)}function b(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function P(o,n){try{var e=o()}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}function y(o){return o.hasOwnProperty("result")?o.result:o}var k=(function(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="No Ethereum provider was found on window.ethereum.",e}return n})(S(Error)),ge=(function(o){q(n,o);function n(){var e;return e=o.call(this)||this,e.name=e.constructor.name,e.message="The user rejected the request.",e}return n})(S(Error)),me=(function(o){q(n,o);function n(t){var r;return r=o.call(this,t)||this,r.handleNetworkChanged=r.handleNetworkChanged.bind(b(r)),r.handleChainChanged=r.handleChainChanged.bind(b(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(b(r)),r.handleClose=r.handleClose.bind(b(r)),r}var e=n.prototype;return e.handleChainChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.handleAccountsChanged=function(r){r.length===0?this.emitDeactivate():this.emitUpdate({account:r[0]})},e.handleClose=function(r,i){this.emitDeactivate()},e.handleNetworkChanged=function(r){this.emitUpdate({chainId:r,provider:window.ethereum})},e.activate=function(){try{var r=function(f){if(i)return f;function p(){return j({provider:window.ethereum},a?{account:a}:{})}var v=(function(){if(!a)return Promise.resolve(window.ethereum.enable().then(function(T){return T&&y(T)[0]})).then(function(T){a=T})})();return v&&v.then?v.then(p):p(v)},i=!1,s=this;if(!window.ethereum)throw new k;window.ethereum.on&&(window.ethereum.on("chainChanged",s.handleChainChanged),window.ethereum.on("accountsChanged",s.handleAccountsChanged),window.ethereum.on("close",s.handleClose),window.ethereum.on("networkChanged",s.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var a,c=P(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(u){return y(u)[0]})).then(function(u){a=u})},function(u){if(u.code===4001)throw new ge});return Promise.resolve(c&&c.then?c.then(r):r(c))}catch(u){return Promise.reject(u)}},e.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(r){return Promise.reject(r)}},e.getChainId=function(){try{var r=function(){function c(){if(!i)try{i=y(window.ethereum.send({method:"net_version"}))}catch{}return i||(window.ethereum.isDapper?i=y(window.ethereum.cachedResults.net_version):i=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.send("net_version").then(y)).then(function(p){i=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(y)).then(function(a){i=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.getAccount=function(){try{var r=function(){function c(){return i||(i=y(window.ethereum.send({method:"eth_accounts"}))[0]),i}var u=(function(){if(!i){var f=P(function(){return Promise.resolve(window.ethereum.enable().then(function(p){return y(p)[0]})).then(function(p){i=p})},function(){});if(f&&f.then)return f.then(function(){})}})();return u&&u.then?u.then(c):c(u)};if(!window.ethereum)throw new k;var i,s=P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(a){return y(a)[0]})).then(function(a){i=a})},function(){});return Promise.resolve(s&&s.then?s.then(r):r(s))}catch(a){return Promise.reject(a)}},e.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},e.isAuthorized=function(){try{return window.ethereum?Promise.resolve(P(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(r){return y(r).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(r){return Promise.reject(r)}},n})(E);class G extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const Ie=60*1e3;class J extends me{constructor(n){super({supportedChainIds:[n]})}async activate(){const n=new Promise((t,r)=>{setTimeout(()=>{r(new G)},Ie)}),e=super.activate();return Promise.race([e,n])}}var ye="Invariant failed";function V(o,n){throw new Error(ye)}function Y(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,N(o,n)}function D(o){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(o)}function N(o,n){return N=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},N(o,n)}function Ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(o,n,e){return Ce()?R=Reflect.construct:R=function(r,i,s){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(r,a),u=new c;return s&&N(u,s.prototype),u},R.apply(null,arguments)}function Ee(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function W(o){var n=typeof Map=="function"?new Map:void 0;return W=function(t){if(t===null||!Ee(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return R(t,arguments,D(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,t)},W(o)}var U=(function(o){Y(n,o);function n(e,t,r){var i;return i=o.call(this)||this,i.code=t,i.data=r,i.name=i.constructor.name,i.message=e,i}return n})(W(Error)),Ae=function(n,e){var t=this,r=this;this.isMetaMask=!1,this.sendAsync=function(s,a){console.log("sendAsync",s.method,s.params),r.request(s.method,s.params).then(function(c){return a(null,{jsonrpc:"2.0",id:s.id,result:c})}).catch(function(c){return a(c,null)})},this.request=function(s,a){try{return typeof s!="string"&&(a=s.params,s=s.method),Promise.resolve(fetch(t.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:s,params:a}),headers:{"Content-Type":"application/json"}})).then(function(c){if(!c.ok)throw new U(c.status+": "+c.statusText,-32e3);return Promise.resolve(c.json()).then(function(u){if("error"in u){var f,p,v;throw new U(u==null||(f=u.error)==null?void 0:f.message,u==null||(p=u.error)==null?void 0:p.code,u==null||(v=u.error)==null?void 0:v.data)}else{if("result"in u)return u.result;throw new U("Received unexpected JSON-RPC response to "+s+" request.",-32e3,u)}})})}catch(c){return Promise.reject(c)}},this.chainId=n,this.url=e;var i=new URL(e);this.host=i.host,this.path=i.pathname},Te=(function(o){Y(n,o);function n(t){var r,i=t.urls,s=t.defaultChainId;return s||Object.keys(i).length===1||V(),r=o.call(this,{supportedChainIds:Object.keys(i).map(function(a){return Number(a)})})||this,r.currentChainId=s||Number(Object.keys(i)[0]),r.providers=Object.keys(i).reduce(function(a,c){return a[Number(c)]=new Ae(Number(c),i[Number(c)]),a},{}),r}var e=n.prototype;return e.activate=function(){try{var r=this;return Promise.resolve({provider:r.providers[r.currentChainId],chainId:r.currentChainId,account:null})}catch(i){return Promise.reject(i)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.providers[r.currentChainId])}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.currentChainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){return Promise.resolve(null)},e.deactivate=function(){},e.changeChainId=function(r){Object.keys(this.providers).includes(r.toString())||V(),this.currentChainId=r,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:r})},n})(E);class Q extends Te{constructor(n){super({urls:I()[l.ProviderType.NETWORK].urls,defaultChainId:n})}}function x(){return x=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o},x.apply(this,arguments)}function Pe(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,F(o,n)}function F(o,n){return F=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},F(o,n)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}var _e=1,Ne=(function(o){Pe(n,o);function n(t){var r,i=t.url,s=t.appName,a=t.appLogoUrl,c=t.darkMode,u=t.supportedChainIds;return r=o.call(this,{supportedChainIds:u})||this,r.url=i,r.appName=s,r.appLogoUrl=a,r.darkMode=c||!1,r.handleChainChanged=r.handleChainChanged.bind(B(r)),r.handleAccountsChanged=r.handleAccountsChanged.bind(B(r)),r}var e=n.prototype;return e.activate=function(){try{var r=this,i=function(){return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(c){var u=c[0];return r.provider.on("chainChanged",r.handleChainChanged),r.provider.on("accountsChanged",r.handleAccountsChanged),{provider:r.provider,account:u}})},s=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)r.provider=window.ethereum;else{var a=(function(){if(!r.walletLink)return Promise.resolve(m(()=>import("./index-DFzHpbP5.js").then(c=>c.i),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11])).then(function(c){var u;return(u=c==null?void 0:c.default)!=null?u:c})).then(function(c){r.walletLink=new c(x({appName:r.appName,darkMode:r.darkMode},r.appLogoUrl?{appLogoUrl:r.appLogoUrl}:{})),r.provider=r.walletLink.makeWeb3Provider(r.url,_e)})})();if(a&&a.then)return a.then(function(){})}})();return Promise.resolve(s&&s.then?s.then(i):i(s))}catch(a){return Promise.reject(a)}},e.getProvider=function(){try{var r=this;return Promise.resolve(r.provider)}catch(i){return Promise.reject(i)}},e.getChainId=function(){try{var r=this;return Promise.resolve(r.provider.chainId)}catch(i){return Promise.reject(i)}},e.getAccount=function(){try{var r=this;return Promise.resolve(r.provider.request({method:"eth_requestAccounts"})).then(function(i){return i[0]})}catch(i){return Promise.reject(i)}},e.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},e.close=function(){try{var r=this;return r.provider.close(),r.emitDeactivate(),Promise.resolve()}catch(i){return Promise.reject(i)}},e.handleChainChanged=function(r){this.emitUpdate({chainId:r})},e.handleAccountsChanged=function(r){this.emitUpdate({account:r[0]})},n})(E);class X extends Ne{constructor(n){const e=I()[g.ProviderType.WALLET_LINK],t=e.urls[n];if(!t)throw new Error(`Unsupported chainId for WalletLink: ${n}. Supported chains: ${Object.keys(e.urls).join(", ")}`);super({url:t,appName:e.appName,supportedChainIds:[n]})}}class Me{}class Z extends Me{get(n){const e=window.localStorage.getItem(n);return e===null?void 0:e}set(n,e){window.localStorage.setItem(n,e)}remove(n){window.localStorage.removeItem(n)}removeRegExp(n){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&n.test(t)&&localStorage.removeItem(t)}}}const be={[g.ChainId.ETHEREUM_MAINNET]:"mainnet",[g.ChainId.ETHEREUM_SEPOLIA]:"sepolia",[g.ChainId.MATIC_MAINNET]:"polygon",[g.ChainId.MATIC_AMOY]:"polygonAmoy",[g.ChainId.ARBITRUM_MAINNET]:"arbitrum",[g.ChainId.OPTIMISM_MAINNET]:"optimism",[g.ChainId.AVALANCHE_MAINNET]:"avalanche",[g.ChainId.BSC_MAINNET]:"bsc",[g.ChainId.FANTOM_MAINNET]:"fantom"},w=class w extends E{constructor(e){super({supportedChainIds:w.configuration.chains});d(this,"desiredChainId");d(this,"appKit");d(this,"provider");d(this,"accountUnsubscribe");d(this,"networkUnsubscribe");d(this,"initAppKit",async()=>{if(w.sharedAppKit)return this.appKit=w.sharedAppKit,this.appKit;const{createAppKit:e}=await m(async()=>{const{createAppKit:s}=await import("./index-CcILR5tk.js").then(a=>a.h);return{createAppKit:s}},__vite__mapDeps([12,13,1,5,3,4,11,14,15,16,17,18,19,20,21,22,23,24])),{WagmiAdapter:t}=await m(async()=>{const{WagmiAdapter:s}=await import("./index-DhLo2n6f.js").then(a=>a.b);return{WagmiAdapter:s}},__vite__mapDeps([25,15,3,16,1,5,17,18,19,13,4,11,14,26,27,6,28,29,30])),r=await this.getNetworks(),i=new t({networks:r,projectId:w.configuration.projectId});return this.appKit=e({adapters:[i],projectId:w.configuration.projectId,networks:r,defaultNetwork:r[0],metadata:{name:"Decentraland",description:"Decentraland - Virtual World",url:typeof window<"u"?window.location.origin:"https://decentraland.org",icons:["https://decentraland.org/favicon.ico"]},themeMode:"dark",themeVariables:{"--w3m-z-index":3e3},features:{analytics:!1,email:!1,socials:!1,onramp:!1,swaps:!1},enableInjected:!0,enableEIP6963:!0}),w.sharedAppKit=this.appKit,await this.waitForSessionRestore(),this.appKit});d(this,"waitForSessionRestore",async()=>{const e=this.appKit;if(!e)return;const t=e.getAccount();if((t==null?void 0:t.status)==="connected"||(t==null?void 0:t.status)==="disconnected")return;const r=t!=null&&t.status?5e3:500;return new Promise(i=>{const s=setTimeout(()=>{a==null||a(),i()},r),a=e.subscribeAccount(c=>{((c==null?void 0:c.status)==="connected"||(c==null?void 0:c.status)==="disconnected")&&(clearTimeout(s),a==null||a(),i())},"eip155")})});d(this,"validateRestoredSession",async e=>{try{const t=e.getWalletProvider();return t?(await t.request({method:"eth_chainId"}),!0):!1}catch(t){return w.isStaleSessionError(t)?!1:(console.warn("Error validating WalletConnect session:",t),!0)}});d(this,"openModalAndWaitForConnection",async()=>{const e=this.requireAppKit(),t=()=>new Promise((r,i)=>{let s=!1;const a=(p,v)=>{s||(s=!0,clearTimeout(c),p==null||p(),v==null||v())},c=setTimeout(()=>{a(),i(new Error("Connection timeout"))},3e5),u=e.subscribeAccount(p=>{p!=null&&p.isConnected&&(p!=null&&p.address)&&(a(u,f),r(p.address))},"eip155"),f=e.subscribeState(p=>{!p.open&&!e.getAddress("eip155")&&(a(u,f),i(new Error("User closed the modal without connecting")))})});try{await e.open({view:"Connect"}),await t()}catch(r){if(w.isStaleSessionError(r)){if(console.warn("Stale session detected, retrying connection..."),w.clearStorage(),await this.initAppKit(),!this.appKit)throw new Error("AppKit reinitialization failed");await this.appKit.open({view:"Connect"}),await t()}else throw r}});d(this,"activate",async()=>{try{await this.initAppKit()}catch(c){if(console.error("Error initializing AppKit",c),w.isStaleSessionError(c))console.warn("WalletConnect session is stale, clearing storage and retrying..."),w.clearStorage(),await this.initAppKit();else throw c}const e=this.requireAppKit(),t=e.getAccount();(t==null?void 0:t.status)==="connected"&&(t==null?void 0:t.address)?await this.validateRestoredSession(e)||(console.warn("Restored WalletConnect session is stale, clearing and prompting reconnection..."),w.clearStorage(),await this.initAppKit(),await this.openModalAndWaitForConnection()):await this.openModalAndWaitForConnection();const i=e.getWalletProvider();if(!i)throw new Error("Failed to get wallet provider after connection");this.provider=i,this.accountUnsubscribe=e.subscribeAccount(c=>{c!=null&&c.address&&this.handleAccountsChanged([c.address])},"eip155"),this.networkUnsubscribe=e.subscribeCaipNetworkChange(c=>{c!=null&&c.id&&this.handleChainChanged(c.id)});const s=e.getAddress("eip155");return{chainId:e.getChainId()||this.desiredChainId,account:s||null,provider:this.provider}});d(this,"getProvider",async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider});d(this,"getChainId",async()=>this.requireAppKit().getChainId()??this.desiredChainId);d(this,"getAccount",async()=>this.requireAppKit().getAddress("eip155")??null);d(this,"getWalletName",()=>{var e,t,r;return(r=(t=(e=this.appKit)==null?void 0:e.getWalletInfo)==null?void 0:t.call(e,"eip155"))==null?void 0:r.name});d(this,"deactivate",()=>{});d(this,"clearInstance",()=>{var t,r;const e=this.provider;if(e){this.provider=void 0;try{(t=this.accountUnsubscribe)==null||t.call(this),(r=this.networkUnsubscribe)==null||r.call(this)}catch(i){console.warn("Error unsubscribing from AppKit events:",i)}return this.accountUnsubscribe=void 0,this.networkUnsubscribe=void 0,e}});d(this,"close",async()=>{var t;if(this.clearInstance()){try{await((t=this.appKit)==null?void 0:t.disconnect())}catch(r){console.warn("Error during WalletConnect disconnect:",r)}this.appKit=void 0}});d(this,"handleAccountsChanged",e=>{this.emitUpdate({account:e[0]})});d(this,"handleChainChanged",e=>{this.emitUpdate({chainId:e})});d(this,"handleDisconnect",()=>{this.clearInstance(),this.emitDeactivate()});this.desiredChainId=e}requireAppKit(){if(!this.appKit)throw new Error("AppKit is not initialized");return this.appKit}static isStaleSessionError(e){if(e instanceof Error){const t=e.message.toLowerCase();return t.includes("no matching key")||t.includes("session topic doesn't exist")||t.includes("missing or invalid")||t.includes("expired")||t.includes("user rejected methods")||t.includes("is not configured")||t.includes("cannot read properties")||t.includes("undefined is not an object")}return!1}async getNetworks(){const e=w.configuration.chains,t=await m(()=>import("./networks-1Ibttcj1.js"),__vite__mapDeps([31,19,5,1,32,33,26,13,3,4,11,14,34,35,30])),r=e.map(s=>{const a=be[s];if(a)return t[a]}).filter(s=>s!==void 0);if(r.length===0)throw new Error("No supported networks found for WalletConnect");const i=r.find(s=>s.id===this.desiredChainId);if(i){const s=r.filter(a=>a.id!==this.desiredChainId);return[i,...s]}return[r[0],...r.slice(1)]}};d(w,"configuration",I()[g.ProviderType.WALLET_CONNECT_V2]),d(w,"clearStorage",(e=new Z)=>{e.removeRegExp(new RegExp("^wc@2:")),e.removeRegExp(new RegExp("^@appkit")),w.sharedAppKit=null}),d(w,"sharedAppKit",null);let _=w;class H extends E{constructor(e,t=!1){super({supportedChainIds:I()[g.ProviderType.MAGIC].chains});d(this,"isTest");d(this,"chainId");d(this,"account");d(this,"magic");d(this,"activate",async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const t=await this.getProvider(),r=await t.request({method:"eth_accounts"});return this.account=r[0]??null,{provider:t,chainId:this.chainId,account:this.account}});d(this,"getProvider",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const e=await this.magic.wallet.getProvider();return{...e,isMagic:!0,request:new Proxy(e.request,{apply:async(t,r,i)=>{var s,a,c;if(((s=i[0])==null?void 0:s.method)==="wallet_switchEthereumChain")try{const u=parseInt((c=(a=i[0])==null?void 0:a.params[0])==null?void 0:c.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(u)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(u),this.emitUpdate({chainId:u}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return t.bind(e)(...i)}}),sendAsync:new Proxy(e.send,{apply:async(t,r,i)=>t.bind(e)(...i)})}});d(this,"getChainId",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId});d(this,"getAccount",async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account});d(this,"getEmail",async()=>{try{if(!this.magic||!await this.magic.user.isLoggedIn())return;const t=await this.magic.user.getInfo();return(t==null?void 0:t.email)??void 0}catch{return}});d(this,"deactivate",()=>{});d(this,"buildMagicInstance",async e=>{const{Magic:t}=await m(async()=>{const{Magic:a}=await import("./index-Fyrl3bgj.js");return{Magic:a}},__vite__mapDeps([36,5,1,37])),{OAuthExtension:r}=await m(async()=>{const{OAuthExtension:a}=await import("./index-DQ2tXB-9.js");return{OAuthExtension:a}},__vite__mapDeps([38,37,5,1,39,7,8,4,10,3])),i=I()[this.isTest?g.ProviderType.MAGIC_TEST:g.ProviderType.MAGIC],s=i.urls[e];if(!s)throw new Error(`Unsupported chainId for Magic: ${e}. Supported chains: ${Object.keys(i.urls).join(", ")}`);return new t(i.apiKey,{extensions:[new r],network:{rpcUrl:s,chainId:e}})});this.isTest=t,this.chainId=e,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class ee extends H{constructor(n){super(n,!0)}}class te extends E{constructor(e){var t;super({supportedChainIds:((t=I().thirdweb)==null?void 0:t.chains)??[h.ChainId.ETHEREUM_MAINNET,h.ChainId.ETHEREUM_SEPOLIA]});d(this,"chainId");d(this,"client");d(this,"wallet");d(this,"chain");d(this,"eip1193Provider");d(this,"activate",async()=>{const e=await this.getClient(),t=await this.getWallet();let r;try{r=await t.autoConnect({client:e})}catch{throw new Error("Thirdweb: No active session. User must authenticate first.")}if(!r)throw new Error("Thirdweb: No active session. User must authenticate first.");const i=await this.getChain(),{EIP1193:s}=await m(async()=>{const{EIP1193:u}=await import("./wallets-xc4Kph_C.js").then(f=>f.Q);return{EIP1193:u}},__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]));return this.eip1193Provider=s.toProvider({wallet:t,chain:i,client:e}),{provider:await this.getProvider(),chainId:this.chainId,account:r.address}});d(this,"getProvider",async()=>{if(!this.eip1193Provider)throw new Error("Thirdweb: wallet is not connected. Call activate() first.");const e=this.eip1193Provider;return{...e,isDapper:!1,isFortmatic:!1,isMetamask:!1,isMagic:!1,isThirdweb:!0,request:new Proxy(e.request,{apply:async(t,r,i)=>{var a,c,u,f;if(((a=i[0])==null?void 0:a.method)==="wallet_switchEthereumChain"){const p=(f=(u=(c=i[0])==null?void 0:c.params)==null?void 0:u[0])==null?void 0:f.chainId,v=parseInt(p,16);if(this.supportedChainIds&&!this.supportedChainIds.includes(v))throw new Error("Thirdweb: unsupported chain");this.chainId=v,this.chain=null,this.eip1193Provider=null;const T=await this.getClient(),ne=await this.getWallet(),ie=await this.getChain(),{EIP1193:oe}=await m(async()=>{const{EIP1193:ae}=await import("./wallets-xc4Kph_C.js").then(se=>se.Q);return{EIP1193:ae}},__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]));return this.eip1193Provider=oe.toProvider({wallet:ne,chain:ie,client:T}),this.emitUpdate({chainId:v}),null}return Reflect.apply(t,e,i)}}),sendAsync:new Proxy(e.request,{apply:async(t,r,i)=>Reflect.apply(t,e,i)})}});d(this,"getChainId",async()=>this.chainId);d(this,"getAccount",async()=>{if(!this.wallet)return null;try{const e=this.wallet.getAccount();return(e==null?void 0:e.address)??null}catch{return null}});d(this,"getEmail",async()=>{try{const e=await this.getClient(),{getUserEmail:t}=await m(async()=>{const{getUserEmail:i}=await import("./in-app-DvVGn-Tr.js");return{getUserEmail:i}},__vite__mapDeps([57,42,43,5,1,48,47,13,3,4,11,14,58,59]));return await t({client:e})??void 0}catch{return}});d(this,"deactivate",()=>{});this.chainId=e,this.client=null,this.wallet=null,this.chain=null,this.eip1193Provider=null}async getClient(){if(this.client)return this.client;let e;try{e=await m(()=>import("./thirdweb-CIO7xwSs.js").then(r=>r.t),__vite__mapDeps([60,43,5,1,42,41,13,3,4,11,14,44,45,46,61,62,63,64,65,66,55,67,68,69,70,54]))}catch{throw new Error("Thirdweb: thirdweb package is not installed.")}const t=I().thirdweb;return this.client=e.createThirdwebClient({clientId:t.clientId}),this.client}async getWallet(){if(this.wallet)return this.wallet;let e;try{e=await m(()=>import("./wallets-xc4Kph_C.js").then(t=>t.Q),__vite__mapDeps([40,41,42,43,5,1,13,3,4,11,14,44,45,46,47,48,49,50,51,52,28,53,54,55,20,16,21,56,22]))}catch{throw new Error("Thirdweb: thirdweb package is not installed. Run: npm install thirdweb")}return this.wallet=e.inAppWallet(),this.wallet}async getChain(){if(this.chain)return this.chain;const e=await m(()=>import("./chains-DjVUcpdx.js"),__vite__mapDeps([71,43,5,1,69,51]));return this.chain=e.defineChain(this.chainId),this.chain}async close(){this.wallet&&await this.wallet.disconnect(),this.wallet=null,this.chain=null,this.eip1193Provider=null}}class M{constructor(n){d(this,"provider");d(this,"id",0);d(this,"on",(n,e)=>this.provider.on(n,e));d(this,"emit",(n,...e)=>this.provider.emit(n,e));d(this,"removeListener",(n,e)=>this.provider.removeListener(n,e));d(this,"request",async({method:n,params:e})=>this.isModernProvider()?this.provider.request({method:n,params:e}):this.send(n,e));d(this,"sendAsync",async(n,e)=>this.hasSendAsync()?this.provider.sendAsync(n,(t,r)=>{r&&!Object.prototype.hasOwnProperty.call(r,"result")?e(t,{id:0,jsonrpc:"2.0",result:r}):e(t,r)}):this.send(n,e));this.provider=n}static adapt(n){const e=new M(n);return{...n,on:e.on,emit:e.emit,removeListener:e.removeListener,request:e.request,sendAsync:e.sendAsync,send:e.send.bind(e)}}async send(n,e){let t,r,i;const s=typeof e=="function";if(s){const a=n;r=a.params||[],t=a.method,i=e}else t=n,r=e||[],i=(a,c)=>{if(a)throw a;return c};if(this.isModernProvider()){const[a,c]=await this.provider.request({method:t,params:r}).then(f=>[null,f]).catch(f=>[f,void 0]);return i(a,s?{id:"",jsonrpc:"2.0",result:c}:c)}else{this.patchOldMobile();const[a,c]=s?await new Promise(u=>this.provider.send(n,(f,p)=>{u([f,p])})):await new Promise(u=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:t,params:r},(f,p)=>{const v=p;u([(v==null?void 0:v.error)??f,(v==null?void 0:v.result)??p])}));return i(a,c)}}isModernProvider(){return"request"in this.provider&&typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync.bind(this.provider))}}class re{constructor(n){d(this,"storage");d(this,"connector");d(this,"promiseOfConnection");d(this,"getWalletName",()=>{if(this.connector instanceof _)return this.connector.getWalletName()});d(this,"clearConnectionData",()=>{const{storageKey:n}=I();this.storage.remove(n),_.clearStorage(this.storage)});d(this,"handleWeb3ReactDeactivate",async()=>{try{await this.disconnect()}catch(n){console.error(n)}});this.storage=n}async connect(n,e=h.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(a){console.error("Error disconnecting previous connection",a)}const t=this.buildConnector(n,e);t.on(C.Deactivate,this.handleWeb3ReactDeactivate);let{provider:r,account:i}={};try{const a=await t.activate();r=a.provider,i=a.account}catch(a){throw console.error("Error activating the connector",a),a}(n===l.ProviderType.MAGIC||n===l.ProviderType.MAGIC_TEST||n===l.ProviderType.THIRDWEB)&&t.on(C.Update,({chainId:a})=>{a&&this.setConnectionData(n,a)});let s=e;if(n===l.ProviderType.INJECTED){const a=await r.request({method:"eth_chainId"});s=a?parseInt(a,16):s}return this.connector=t,this.setConnectionData(n,s),{provider:M.adapt(r),providerType:n,account:i||"",chainId:s}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const n=this.getConnectionData();if(!n)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector){const[t,r]=await Promise.all([this.connector.getProvider(),this.connector.getAccount()]);return{provider:t,providerType:n.providerType,chainId:n.chainId,account:r||""}}let e;try{e=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(n.providerType,n.chainId))}finally{this.promiseOfConnection=void 0}return{...e,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const n=[l.ProviderType.FORTMATIC,l.ProviderType.WALLET_CONNECT,l.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?n.unshift(l.ProviderType.INJECTED):n.unshift(l.ProviderType.METAMASK_MOBILE),n}async disconnect(){this.connector&&(this.connector.removeAllListeners(C.Deactivate),this.connector.removeAllListeners(C.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async getEmail(){const n=this.connector;if(n!=null&&n.getEmail)try{return await n.getEmail()}catch{return}}async createProvider(n,e=h.ChainId.ETHEREUM_MAINNET){const r=await this.buildConnector(n,e).getProvider();return M.adapt(r)}buildConnector(n,e){switch(n){case l.ProviderType.INJECTED:return new J(e);case l.ProviderType.FORTMATIC:return new z(e);case l.ProviderType.MAGIC:return new H(e);case l.ProviderType.MAGIC_TEST:return new ee(e);case l.ProviderType.WALLET_LINK:return new X(e);case l.ProviderType.NETWORK:return new Q(e);case l.ProviderType.WALLET_CONNECT_V2:return new _(e);case l.ProviderType.THIRDWEB:return new te(e);default:throw new Error(`Invalid provider ${n}`)}}getConnectionData(){const{storageKey:n}=I(),e=this.storage.get(n);try{return e?JSON.parse(e):void 0}catch(t){console.error("Error parsing connection data",t);return}}storeConnectionData(n,e){this.setConnectionData(n,e)}setConnectionData(n,e){const{storageKey:t}=I(),r=JSON.stringify({providerType:n,chainId:e});this.storage.set(t,r)}isClosableConnector(){return this.connector&&"close"in this.connector}}const Oe=new re(new Z),Ke=Object.freeze(Object.defineProperty({__proto__:null,AbstractConnector:E,ConnectionManager:re,ErrorUnlockingWallet:G,FortmaticConnector:z,InjectedConnector:J,MagicConnector:H,MagicTestConnector:ee,NetworkConnector:Q,ProviderAdapter:M,ThirdwebConnector:te,WalletConnectV2Connector:_,WalletLinkConnector:X,connection:Oe,getConfiguration:I,getRpcUrls:A},Symbol.toStringTag,{value:"Module"}));export{je as N,Oe as c,$ as e,Ke as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./parseSignature-CvqOiuxh.js";import{B as f,E as v,a as A,b as S,F as I,W as F,d as R,e as x,f as C,g as B,p as N,l as P,n as D,p as U,h as w,s as L,z as M}from"./parseSignature-CvqOiuxh.js";import{I as k,c as z,a as q,p as V,w as O}from"./custom-D7xF5lj-.js";import{h as s}from"./W3MFrameProviderSingleton-wlaGUzlC.js";import{U as j,c as W,f as K,s as Z,w as J,a as Q}from"./W3MFrameProviderSingleton-wlaGUzlC.js";import{A as Y,a as _,B as $,b as aa,C as ra,D as oa,E as sa,F as ea,c as ta,H as ia,I as na,d as ca,e as da,f as Ea,g as pa,h as ua,i as la,j as ma,k as Ta,l as ga,J as ba,L as ha,M as ya,m as fa,N as va,n as Aa,o as Sa,P as Ia,p as Fa,q as Ra,R as xa,r as Ca,s as Ba,t as Na,u as Pa,S as Da,v as Ua,w as wa,x as La,T as Ma,y as Ha,z as ka,G as za,U as qa,K as Va,O as Oa,Q as Ga,V as ja,W as Wa,X as Ka,Y as Za,Z as Ja,_ as Qa,$ as Xa,a0 as Ya,a1 as _a,a2 as $a,a3 as ar,a4 as rr,a5 as or,a6 as sr,a7 as er,a8 as tr,a9 as ir,aa as nr,ab as cr,ac as dr,ad as Er,ae as pr,af as ur,ag as lr,ah as mr,ai as Tr,aj as gr,ak as br,al as hr,am as yr,an as fr,ao as vr,ap as Ar,a1 as Sr}from"./NetworkUtil-HlUKXKcF.js";import{A as Fr,a as Rr,b as xr,c as Cr,d as Br,e as Nr,f as Pr,g as Dr,h as Ur,i as wr,j as Lr,k as Mr,l as Hr,m as kr,n as zr,o as qr,p as Vr,B as Or,q as Gr,r as jr,C as Wr,s as Kr,t as Zr,u as Jr,v as Qr,w as Xr,x as Yr,y as _r,z as $r,D as ao,E as ro,F as oo,G as so,H as eo,I as to,J as io,K as no,L as co,M as Eo,N as po,O as uo,P as lo,Q as mo,R as To,S as go,T as bo,U as ho,V as yo,W as fo,X as vo,Y as Ao,Z as So,_ as Io,$ as Fo,a0 as Ro,a1 as xo,a2 as Co,a3 as Bo,a4 as No,a5 as Po,a6 as Do,a7 as Uo,a8 as wo,a9 as Lo,aa as Mo,ab as Ho,ac as ko,ad as zo,ae as qo,af as Vo,ag as Oo,ah as Go,ai as jo,aj as Wo,ak as Ko,al as Zo,am as Jo,an as Qo,ao as Xo,ap as Yo,aq as _o,ar as $o,as,at as rs,au as os,av as ss,aw as es,ax as ts,ay as is,az as ns,aA as cs,aB as ds,aC as Es,aD as ps,aE as us,aF as ls,aG as ms,aH as Ts,aI as gs,aJ as bs,aK as hs,aL as ys,aM as fs,aN as vs,aM as As,aO as Ss,aP as Is,aQ as Fs,aR as Rs,aS as xs,aT as Cs,aU as Bs,aV as Ns,aW as Ps,aX as Ds,aY as Us,aZ as ws,a_ as Ls,a$ as Ms,b0 as Hs,b1 as ks,b2 as zs,b3 as qs,b4 as Vs,aL as Os,aM as Gs,b4 as js,aN as Ws,aM as Ks,b5 as Zs,b6 as Js,aA as Qs}from"./sendRawTransaction-CMejmfE_.js";import{I as Ys,a as _s,b as $s,g as ae,h as re,c as oe,d as se,e as ee,p as te,t as ie,v as ne}from"./hashTypedData-Umk2D-Fv.js";import{d as de,e as Ee,a as pe}from"./localBatchGatewayRequest-CmlDXZ5z.js";import{ccipRequest as le,ccipRequest as me,offchainLookup as Te,offchainLookupAbiItem as ge,offchainLookupSignature as be}from"./ccip-BiUOzWPo.js";import{d as t}from"./verifyHash-DOqrIW3W.js";import{e as ye,p as fe,a as ve,s as Ae,s as Se}from"./verifyHash-DOqrIW3W.js";import{a as Fe,b as Re,c as xe,s as Ce,d as Be}from"./serializeTransaction-fkTrXDU0.js";import"./secp256k1-BDvY1_CS.js";import"./dcl-schemas-BICTSpB5.js";import"./index-DgMAf2q5.js";import"./react-vyZjIDcS.js";import"./sentry-B35L1FdR.js";import"./index-CRH1JYli.js";import"./events-DQ172AOg.js";import"./index-YNVuXck0.js";import"./ethers-CpLYx0ea.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-B4tSdV4O.js";import"./browser-ponyfill-BvriZgAo.js";export{Fr as AbiConstructorNotFoundError,Rr as AbiConstructorParamsNotFoundError,xr as AbiDecodingDataSizeTooSmallError,Cr as AbiDecodingZeroDataError,Br as AbiEncodingArrayLengthMismatchError,Nr as AbiEncodingBytesSizeMismatchError,Pr as AbiEncodingLengthMismatchError,Dr as AbiErrorInputsNotFoundError,Ur as AbiErrorNotFoundError,wr as AbiErrorSignatureNotFoundError,Lr as AbiEventNotFoundError,Mr as AbiEventSignatureEmptyTopicsError,Hr as AbiEventSignatureNotFoundError,kr as AbiFunctionNotFoundError,zr as AbiFunctionOutputsNotFoundError,qr as AbiFunctionSignatureNotFoundError,Vr as AccountStateConflictError,Y as AtomicReadyWalletRejectedUpgradeError,_ as AtomicityNotSupportedError,$ as BaseError,Or as BaseFeeScalarError,Gr as BlockNotFoundError,f as BundleFailedError,aa as BundleTooLargeError,jr as BytesSizeMismatchError,Wr as CallExecutionError,ra as ChainDisconnectedError,Kr as ChainDoesNotSupportContract,Zr as ChainMismatchError,Jr as ChainNotFoundError,Qr as CircularReferenceError,Xr as ClientChainNotConfiguredError,Yr as ContractFunctionExecutionError,_r as ContractFunctionRevertedError,$r as ContractFunctionZeroDataError,ao as CounterfactualDeploymentFailedError,ro as DecodeLogDataMismatch,oo as DecodeLogTopicsMismatch,oa as DuplicateIdError,so as Eip1559FeesNotSupportedError,v as EnsAvatarInvalidNftUriError,A as EnsAvatarUnsupportedNamespaceError,S as EnsAvatarUriResolutionError,eo as EstimateGasExecutionError,sa as ExecutionRevertedError,ea as FeeCapTooHighError,ta as FeeCapTooLowError,I as FilterTypeNotSupportedError,ia as HttpRequestError,na as InsufficientFundsError,ca as IntegerOutOfRangeError,da as InternalRpcError,Ea as IntrinsicGasTooHighError,pa as IntrinsicGasTooLowError,to as InvalidAbiDecodingTypeError,io as InvalidAbiEncodingTypeError,no as InvalidAbiItemError,co as InvalidAbiParametersError,Eo as InvalidAbiTypeParameterError,po as InvalidAddressError,uo as InvalidArrayError,ua as InvalidBytesBooleanError,lo as InvalidChainIdError,k as InvalidDecimalNumberError,mo as InvalidDefinitionTypeError,Ys as InvalidDomainError,To as InvalidFunctionModifierError,la as InvalidHexBooleanError,ma as InvalidInputRpcError,go as InvalidLegacyVError,bo as InvalidModifierError,ho as InvalidParameterError,Ta as InvalidParamsRpcError,yo as InvalidParenthesisError,_s as InvalidPrimaryTypeError,ga as InvalidRequestRpcError,fo as InvalidSerializableTransactionError,vo as InvalidSignatureError,Ao as InvalidStorageKeySizeError,So as InvalidStructSignatureError,$s as InvalidStructTypeError,ba as JsonRpcVersionUnsupportedError,ha as LimitExceededRpcError,Io as MaxFeePerGasTooLowError,ya as MethodNotFoundRpcError,fa as MethodNotSupportedRpcError,va as NonceMaxValueError,Aa as NonceTooHighError,Sa as NonceTooLowError,Ia as ParseRpcError,Fa as ProviderDisconnectedError,Ra as ProviderRpcError,Fo as RawContractError,xa as ResourceNotFoundRpcError,Ca as ResourceUnavailableRpcError,Ba as ResponseBodyTooLargeError,Na as RpcError,Pa as RpcRequestError,Da as SizeExceedsPaddingSizeError,Ua as SizeOverflowError,wa as SliceOffsetOutOfBoundsError,Ro as SolidityProtectedKeywordError,xo as StateAssignmentConflictError,La as SwitchChainError,Ma as TimeoutError,Ha as TipAboveFeeCapError,Co as TransactionExecutionError,Bo as TransactionNotFoundError,No as TransactionReceiptNotFoundError,ka as TransactionRejectedRpcError,za as TransactionTypeNotSupportedError,qa as UnauthorizedProviderError,Va as UnknownBundleIdError,Oa as UnknownNodeError,Ga as UnknownRpcError,Po as UnknownSignatureError,Do as UnknownTypeError,ja as UnsupportedChainIdError,Wa as UnsupportedNonOptionalCapabilityError,Uo as UnsupportedPackedAbiType,Ka as UnsupportedProviderMethodError,j as UrlRequiredError,Za as UserRejectedRequestError,F as WaitForCallsStatusTimeoutError,wo as WaitForTransactionReceiptTimeoutError,Lo as assertCurrentChain,Mo as assertRequest,Fe as assertTransactionEIP1559,Re as assertTransactionEIP2930,xe as assertTransactionLegacy,Ho as blobsToCommitments,ko as blobsToProofs,Ja as boolToBytes,Qa as boolToHex,zo as bytesToBigInt,qo as bytesToBool,Xa as bytesToHex,Vo as bytesToNumber,Oo as bytesToString,le as ccipFetch,me as ccipRequest,Go as checksumAddress,jo as commitmentToVersionedHash,Wo as commitmentsToVersionedHashes,Ko as concat,Zo as concatBytes,Jo as concatHex,z as createClient,R as createNonceManager,r as createPublicClient,W as createTransport,q as custom,Qo as decodeAbiParameters,Xo as decodeErrorResult,Yo as decodeEventLog,de as decodeFunctionData,_o as decodeFunctionResult,$o as defineBlock,t as defineChain,as as defineTransaction,rs as defineTransactionReceipt,os as defineTransactionRequest,ss as deploylessCallViaBytecodeBytecode,es as deploylessCallViaFactoryBytecode,ts as encodeAbiParameters,is as encodeDeployData,Ee as encodeErrorResult,x as encodeEventTopics,ns as encodeFunctionData,pe as encodeFunctionResult,C as encodePacked,Ya as erc20Abi,_a as erc6492SignatureValidatorAbi,cs as erc6492SignatureValidatorByteCode,B as ethAddress,$a as etherUnits,ye as extendSchema,K as fallback,ds as formatBlock,Es as formatEther,ar as formatGwei,ps as formatLog,us as formatTransaction,ls as formatTransactionReceipt,ms as formatTransactionRequest,rr as formatUnits,or as fromHex,Ts as getAbiItem,gs as getAddress,bs as getChainContractAddress,hs as getContractError,ys as getEventSelector,fs as getEventSignature,vs as getFunctionSelector,As as getFunctionSignature,Ss as getTransactionType,ae as getTypesForEIP712Domain,sr as gweiUnits,re as hashDomain,oe as hashMessage,se as hashStruct,ee as hashTypedData,er as hexToBigInt,tr as hexToBool,ir as hexToBytes,nr as hexToNumber,N as hexToSignature,cr as hexToString,s as http,Is as isAddress,Fs as isAddressEqual,dr as isHex,Rs as keccak256,P as labelhash,xs as maxUint16,Cs as maxUint256,Er as multicall3Abi,D as namehash,pr as numberToBytes,ur as numberToHex,Te as offchainLookup,ge as offchainLookupAbiItem,be as offchainLookupSignature,lr as pad,mr as padBytes,Tr as padHex,Bs as parseAbi,fe as parseAbiItem,ve as parseAbiParameters,Ns as parseEventLogs,U as parseSignature,V as parseUnits,Ps as prepareEncodeFunctionData,te as presignMessagePrefix,w as publicActions,Ds as recoverAddress,Us as recoverPublicKey,ws as rpcTransactionType,Ce as serializeAccessList,L as serializeErc6492Signature,Ae as serializeSignature,Be as serializeTransaction,Ls as sha256,Z as shouldThrow,Se as signatureToHex,gr as size,Ms as slice,Hs as sliceBytes,ks as sliceHex,br as stringToBytes,hr as stringToHex,yr as stringify,zs as toBlobSidecars,qs as toBlobs,fr as toBytes,Vs as toEventHash,Os as toEventSelector,Gs as toEventSignature,js as toFunctionHash,Ws as toFunctionSelector,Ks as toFunctionSignature,vr as toHex,ie as toPrefixedMessage,Zs as toRlp,Js as transactionType,Ar as trim,Sr as universalSignatureValidatorAbi,Qs as universalSignatureValidatorByteCode,ne as validateTypedData,O as withCache,J as withRetry,Q as withTimeout,M as zeroAddress};
|
|
1
|
+
import{c as r}from"./parseSignature-CNg3sYg3.js";import{B as f,E as v,a as A,b as S,F as I,W as F,d as R,e as x,f as C,g as B,p as N,l as P,n as D,p as U,h as w,s as L,z as M}from"./parseSignature-CNg3sYg3.js";import{I as k,c as z,a as q,p as V,w as O}from"./custom-quw6VfoY.js";import{h as s}from"./W3MFrameProviderSingleton-BsbvrUws.js";import{U as j,c as W,f as K,s as Z,w as J,a as Q}from"./W3MFrameProviderSingleton-BsbvrUws.js";import{A as Y,a as _,B as $,b as aa,C as ra,D as oa,E as sa,F as ea,c as ta,H as ia,I as na,d as ca,e as da,f as Ea,g as pa,h as ua,i as la,j as ma,k as Ta,l as ga,J as ba,L as ha,M as ya,m as fa,N as va,n as Aa,o as Sa,P as Ia,p as Fa,q as Ra,R as xa,r as Ca,s as Ba,t as Na,u as Pa,S as Da,v as Ua,w as wa,x as La,T as Ma,y as Ha,z as ka,G as za,U as qa,K as Va,O as Oa,Q as Ga,V as ja,W as Wa,X as Ka,Y as Za,Z as Ja,_ as Qa,$ as Xa,a0 as Ya,a1 as _a,a2 as $a,a3 as ar,a4 as rr,a5 as or,a6 as sr,a7 as er,a8 as tr,a9 as ir,aa as nr,ab as cr,ac as dr,ad as Er,ae as pr,af as ur,ag as lr,ah as mr,ai as Tr,aj as gr,ak as br,al as hr,am as yr,an as fr,ao as vr,ap as Ar,a1 as Sr}from"./NetworkUtil-HlUKXKcF.js";import{A as Fr,a as Rr,b as xr,c as Cr,d as Br,e as Nr,f as Pr,g as Dr,h as Ur,i as wr,j as Lr,k as Mr,l as Hr,m as kr,n as zr,o as qr,p as Vr,B as Or,q as Gr,r as jr,C as Wr,s as Kr,t as Zr,u as Jr,v as Qr,w as Xr,x as Yr,y as _r,z as $r,D as ao,E as ro,F as oo,G as so,H as eo,I as to,J as io,K as no,L as co,M as Eo,N as po,O as uo,P as lo,Q as mo,R as To,S as go,T as bo,U as ho,V as yo,W as fo,X as vo,Y as Ao,Z as So,_ as Io,$ as Fo,a0 as Ro,a1 as xo,a2 as Co,a3 as Bo,a4 as No,a5 as Po,a6 as Do,a7 as Uo,a8 as wo,a9 as Lo,aa as Mo,ab as Ho,ac as ko,ad as zo,ae as qo,af as Vo,ag as Oo,ah as Go,ai as jo,aj as Wo,ak as Ko,al as Zo,am as Jo,an as Qo,ao as Xo,ap as Yo,aq as _o,ar as $o,as,at as rs,au as os,av as ss,aw as es,ax as ts,ay as is,az as ns,aA as cs,aB as ds,aC as Es,aD as ps,aE as us,aF as ls,aG as ms,aH as Ts,aI as gs,aJ as bs,aK as hs,aL as ys,aM as fs,aN as vs,aM as As,aO as Ss,aP as Is,aQ as Fs,aR as Rs,aS as xs,aT as Cs,aU as Bs,aV as Ns,aW as Ps,aX as Ds,aY as Us,aZ as ws,a_ as Ls,a$ as Ms,b0 as Hs,b1 as ks,b2 as zs,b3 as qs,b4 as Vs,aL as Os,aM as Gs,b4 as js,aN as Ws,aM as Ks,b5 as Zs,b6 as Js,aA as Qs}from"./sendRawTransaction-CxB_4oN4.js";import{I as Ys,a as _s,b as $s,g as ae,h as re,c as oe,d as se,e as ee,p as te,t as ie,v as ne}from"./hashTypedData-BwAGg-bM.js";import{d as de,e as Ee,a as pe}from"./localBatchGatewayRequest-DuBJGihv.js";import{ccipRequest as le,ccipRequest as me,offchainLookup as Te,offchainLookupAbiItem as ge,offchainLookupSignature as be}from"./ccip-wPDIiKjj.js";import{d as t}from"./verifyHash-Bt32rWW9.js";import{e as ye,p as fe,a as ve,s as Ae,s as Se}from"./verifyHash-Bt32rWW9.js";import{a as Fe,b as Re,c as xe,s as Ce,d as Be}from"./serializeTransaction-C3q3weD9.js";import"./secp256k1-CbUZMnZP.js";import"./dcl-schemas-BICTSpB5.js";import"./index-DgMAf2q5.js";import"./react-vyZjIDcS.js";import"./sentry-B35L1FdR.js";import"./index-mUhc64Y7.js";import"./events-DQ172AOg.js";import"./index-D5DVXUwH.js";import"./ethers-CXBJm_wN.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-B4tSdV4O.js";import"./browser-ponyfill-BvriZgAo.js";export{Fr as AbiConstructorNotFoundError,Rr as AbiConstructorParamsNotFoundError,xr as AbiDecodingDataSizeTooSmallError,Cr as AbiDecodingZeroDataError,Br as AbiEncodingArrayLengthMismatchError,Nr as AbiEncodingBytesSizeMismatchError,Pr as AbiEncodingLengthMismatchError,Dr as AbiErrorInputsNotFoundError,Ur as AbiErrorNotFoundError,wr as AbiErrorSignatureNotFoundError,Lr as AbiEventNotFoundError,Mr as AbiEventSignatureEmptyTopicsError,Hr as AbiEventSignatureNotFoundError,kr as AbiFunctionNotFoundError,zr as AbiFunctionOutputsNotFoundError,qr as AbiFunctionSignatureNotFoundError,Vr as AccountStateConflictError,Y as AtomicReadyWalletRejectedUpgradeError,_ as AtomicityNotSupportedError,$ as BaseError,Or as BaseFeeScalarError,Gr as BlockNotFoundError,f as BundleFailedError,aa as BundleTooLargeError,jr as BytesSizeMismatchError,Wr as CallExecutionError,ra as ChainDisconnectedError,Kr as ChainDoesNotSupportContract,Zr as ChainMismatchError,Jr as ChainNotFoundError,Qr as CircularReferenceError,Xr as ClientChainNotConfiguredError,Yr as ContractFunctionExecutionError,_r as ContractFunctionRevertedError,$r as ContractFunctionZeroDataError,ao as CounterfactualDeploymentFailedError,ro as DecodeLogDataMismatch,oo as DecodeLogTopicsMismatch,oa as DuplicateIdError,so as Eip1559FeesNotSupportedError,v as EnsAvatarInvalidNftUriError,A as EnsAvatarUnsupportedNamespaceError,S as EnsAvatarUriResolutionError,eo as EstimateGasExecutionError,sa as ExecutionRevertedError,ea as FeeCapTooHighError,ta as FeeCapTooLowError,I as FilterTypeNotSupportedError,ia as HttpRequestError,na as InsufficientFundsError,ca as IntegerOutOfRangeError,da as InternalRpcError,Ea as IntrinsicGasTooHighError,pa as IntrinsicGasTooLowError,to as InvalidAbiDecodingTypeError,io as InvalidAbiEncodingTypeError,no as InvalidAbiItemError,co as InvalidAbiParametersError,Eo as InvalidAbiTypeParameterError,po as InvalidAddressError,uo as InvalidArrayError,ua as InvalidBytesBooleanError,lo as InvalidChainIdError,k as InvalidDecimalNumberError,mo as InvalidDefinitionTypeError,Ys as InvalidDomainError,To as InvalidFunctionModifierError,la as InvalidHexBooleanError,ma as InvalidInputRpcError,go as InvalidLegacyVError,bo as InvalidModifierError,ho as InvalidParameterError,Ta as InvalidParamsRpcError,yo as InvalidParenthesisError,_s as InvalidPrimaryTypeError,ga as InvalidRequestRpcError,fo as InvalidSerializableTransactionError,vo as InvalidSignatureError,Ao as InvalidStorageKeySizeError,So as InvalidStructSignatureError,$s as InvalidStructTypeError,ba as JsonRpcVersionUnsupportedError,ha as LimitExceededRpcError,Io as MaxFeePerGasTooLowError,ya as MethodNotFoundRpcError,fa as MethodNotSupportedRpcError,va as NonceMaxValueError,Aa as NonceTooHighError,Sa as NonceTooLowError,Ia as ParseRpcError,Fa as ProviderDisconnectedError,Ra as ProviderRpcError,Fo as RawContractError,xa as ResourceNotFoundRpcError,Ca as ResourceUnavailableRpcError,Ba as ResponseBodyTooLargeError,Na as RpcError,Pa as RpcRequestError,Da as SizeExceedsPaddingSizeError,Ua as SizeOverflowError,wa as SliceOffsetOutOfBoundsError,Ro as SolidityProtectedKeywordError,xo as StateAssignmentConflictError,La as SwitchChainError,Ma as TimeoutError,Ha as TipAboveFeeCapError,Co as TransactionExecutionError,Bo as TransactionNotFoundError,No as TransactionReceiptNotFoundError,ka as TransactionRejectedRpcError,za as TransactionTypeNotSupportedError,qa as UnauthorizedProviderError,Va as UnknownBundleIdError,Oa as UnknownNodeError,Ga as UnknownRpcError,Po as UnknownSignatureError,Do as UnknownTypeError,ja as UnsupportedChainIdError,Wa as UnsupportedNonOptionalCapabilityError,Uo as UnsupportedPackedAbiType,Ka as UnsupportedProviderMethodError,j as UrlRequiredError,Za as UserRejectedRequestError,F as WaitForCallsStatusTimeoutError,wo as WaitForTransactionReceiptTimeoutError,Lo as assertCurrentChain,Mo as assertRequest,Fe as assertTransactionEIP1559,Re as assertTransactionEIP2930,xe as assertTransactionLegacy,Ho as blobsToCommitments,ko as blobsToProofs,Ja as boolToBytes,Qa as boolToHex,zo as bytesToBigInt,qo as bytesToBool,Xa as bytesToHex,Vo as bytesToNumber,Oo as bytesToString,le as ccipFetch,me as ccipRequest,Go as checksumAddress,jo as commitmentToVersionedHash,Wo as commitmentsToVersionedHashes,Ko as concat,Zo as concatBytes,Jo as concatHex,z as createClient,R as createNonceManager,r as createPublicClient,W as createTransport,q as custom,Qo as decodeAbiParameters,Xo as decodeErrorResult,Yo as decodeEventLog,de as decodeFunctionData,_o as decodeFunctionResult,$o as defineBlock,t as defineChain,as as defineTransaction,rs as defineTransactionReceipt,os as defineTransactionRequest,ss as deploylessCallViaBytecodeBytecode,es as deploylessCallViaFactoryBytecode,ts as encodeAbiParameters,is as encodeDeployData,Ee as encodeErrorResult,x as encodeEventTopics,ns as encodeFunctionData,pe as encodeFunctionResult,C as encodePacked,Ya as erc20Abi,_a as erc6492SignatureValidatorAbi,cs as erc6492SignatureValidatorByteCode,B as ethAddress,$a as etherUnits,ye as extendSchema,K as fallback,ds as formatBlock,Es as formatEther,ar as formatGwei,ps as formatLog,us as formatTransaction,ls as formatTransactionReceipt,ms as formatTransactionRequest,rr as formatUnits,or as fromHex,Ts as getAbiItem,gs as getAddress,bs as getChainContractAddress,hs as getContractError,ys as getEventSelector,fs as getEventSignature,vs as getFunctionSelector,As as getFunctionSignature,Ss as getTransactionType,ae as getTypesForEIP712Domain,sr as gweiUnits,re as hashDomain,oe as hashMessage,se as hashStruct,ee as hashTypedData,er as hexToBigInt,tr as hexToBool,ir as hexToBytes,nr as hexToNumber,N as hexToSignature,cr as hexToString,s as http,Is as isAddress,Fs as isAddressEqual,dr as isHex,Rs as keccak256,P as labelhash,xs as maxUint16,Cs as maxUint256,Er as multicall3Abi,D as namehash,pr as numberToBytes,ur as numberToHex,Te as offchainLookup,ge as offchainLookupAbiItem,be as offchainLookupSignature,lr as pad,mr as padBytes,Tr as padHex,Bs as parseAbi,fe as parseAbiItem,ve as parseAbiParameters,Ns as parseEventLogs,U as parseSignature,V as parseUnits,Ps as prepareEncodeFunctionData,te as presignMessagePrefix,w as publicActions,Ds as recoverAddress,Us as recoverPublicKey,ws as rpcTransactionType,Ce as serializeAccessList,L as serializeErc6492Signature,Ae as serializeSignature,Be as serializeTransaction,Ls as sha256,Z as shouldThrow,Se as signatureToHex,gr as size,Ms as slice,Hs as sliceBytes,ks as sliceHex,br as stringToBytes,hr as stringToHex,yr as stringify,zs as toBlobSidecars,qs as toBlobs,fr as toBytes,Vs as toEventHash,Os as toEventSelector,Gs as toEventSignature,js as toFunctionHash,Ws as toFunctionSelector,Ks as toFunctionSignature,vr as toHex,ie as toPrefixedMessage,Zs as toRlp,Js as transactionType,Ar as trim,Sr as universalSignatureValidatorAbi,Qs as universalSignatureValidatorByteCode,ne as validateTypedData,O as withCache,J as withRetry,Q as withTimeout,M as zeroAddress};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-
|
|
1
|
+
import{a as m,i as c,b as d}from"./lit-element-B3y9oplH.js";import{n as u,o as f}from"./class-map-CxwNmq0D.js";import{c as b}from"./index-B-PC7kzk.js";import{r as h}from"./index-CcILR5tk.js";import"./index-D0Y8g2RK.js";const v=m`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|