@dcl/shop 0.1.0-29111888971.commit-e1b927a → 0.1.0-29111917255.commit-e6715c3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/assets/{AnimatedBackground-XZF9g9Bk.js → AnimatedBackground-BYKnsBtz.js} +3 -3
  2. package/assets/{Assets-CZPTo1jO.js → Assets-ClVmauZ2.js} +1 -1
  3. package/assets/{Button-B2TDtyup.js → Button-CgZSqnGW.js} +1 -1
  4. package/assets/{Cart-DhU4_S6H.js → Cart-Up06p7ew.js} +1 -1
  5. package/assets/{CircularProgress-Cf__730y.js → CircularProgress-BbGH0RSH.js} +1 -1
  6. package/assets/{Collection-CRBxkkqX.js → Collection-DvK8DQsK.js} +1 -1
  7. package/assets/{ConstantsUtil-DrWe0yob.js → ConstantsUtil-CiDezLbv.js} +1 -1
  8. package/assets/{Creator-DO__19RD.js → Creator-ClUMhdS6.js} +1 -1
  9. package/assets/{ExchangeController-txwSQL2Z.js → ExchangeController-DdSsjFTm.js} +1 -1
  10. package/assets/{GetCredits-DS1z5pyp.js → GetCredits-7W0xZLwI.js} +2 -2
  11. package/assets/{HelpersUtil-CMysbO5y.js → HelpersUtil-CbFvbY-T.js} +1 -1
  12. package/assets/{ImportListings-ChNZ2UwM.js → ImportListings-tpyUcfqZ.js} +1 -1
  13. package/assets/ItemDetail-CZQ3QPE1.js +2 -0
  14. package/assets/{Market-Z4jp-uLb.js → Market-CRtp3AGM.js} +1 -1
  15. package/assets/{MenuItem-B4U0TYKf.js → MenuItem-BLQsL8Vh.js} +1 -1
  16. package/assets/{MyAssets-C7QdtDYF.js → MyAssets-Cp2z98Lz.js} +1 -1
  17. package/assets/{MyFavorites-Bu2IDcdJ.js → MyFavorites-_R79W8pO.js} +1 -1
  18. package/assets/{MyPurchases-CDUC3XzQ.js → MyPurchases-DJYHRbWz.js} +1 -1
  19. package/assets/{NetworkUtil-Ddexw9-U.js → NetworkUtil-DDES604E.js} +1 -1
  20. package/assets/{NotFound-D5sXjRPf.js → NotFound-6FTGg4R1.js} +1 -1
  21. package/assets/{RealCheckout-DBL3uxEj.js → RealCheckout-BemiXyZF.js} +1 -1
  22. package/assets/{ShopFooterInner-BHh4OUAv.js → ShopFooterInner-KJ2oezRg.js} +2 -2
  23. package/assets/{Success-BrvAPmP4.js → Success-CXjLiyYm.js} +1 -1
  24. package/assets/{SvgIcon-Cg5l4LDh.js → SvgIcon-DtxoFXOd.js} +1 -1
  25. package/assets/{SwapController-BDZMxnNb.js → SwapController-C07T-0ls.js} +1 -1
  26. package/assets/{TradeService-CkLYTYcJ.js → TradeService-D4PrM9vt.js} +1 -1
  27. package/assets/{W3MFrameProviderSingleton-D4DCXtQm.js → W3MFrameProviderSingleton-DXEpVsCm.js} +3 -3
  28. package/assets/{WebCryptoP256-OE37a6hF.js → WebCryptoP256-B1xyhPdr.js} +1 -1
  29. package/assets/{basic-SUHSB6nZ.js → basic-Dq4Wpic2.js} +1 -1
  30. package/assets/{biconomy-C6flCXA4.js → biconomy-BQtB5Ab0.js} +1 -1
  31. package/assets/{buy-YkuLG1h7.js → buy-6ORWjZW_.js} +1 -1
  32. package/assets/{buy-gasless-gRmZHjsE.js → buy-gasless-DL6o_Lwi.js} +1 -1
  33. package/assets/{ccip-7fqLW_t2.js → ccip-DgHj7djR.js} +1 -1
  34. package/assets/{ccip-ByQiZ_aq.js → ccip-Zo_y8Ko9.js} +1 -1
  35. package/assets/{chains-CMJ6lVMG.js → chains-Bk629xE3.js} +1 -1
  36. package/assets/{collection-2CKCNH2O.js → collection-B8w_ujSk.js} +1 -1
  37. package/assets/{common-GsSQn_vD.js → common-CEkVtB9E.js} +1 -1
  38. package/assets/{controller-BO0zre2A.js → controller-CNZZBumM.js} +2 -2
  39. package/assets/{core-D-mQUZ3X.js → core-C_RCjMc6.js} +4 -4
  40. package/assets/{custom-C6VO1Je_.js → custom-BM-_NC1p.js} +1 -1
  41. package/assets/{data-capture-DdxbO7dd.js → data-capture-Clu_u_4e.js} +1 -1
  42. package/assets/decimals-C7k-JLnD.js +1 -0
  43. package/assets/{decimals-Di7mGY-D.js → decimals-DYUDFeSV.js} +1 -1
  44. package/assets/{detectExtension-DsE82Ej6.js → detectExtension-b3FK4NnW.js} +1 -1
  45. package/assets/{email-BTEyDEk6.js → email-C0z3A7sK.js} +1 -1
  46. package/assets/{embedded-wallet-QGoIGdCB.js → embedded-wallet-COvvX2Qp.js} +1 -1
  47. package/assets/{engine-Bjifrd8K.js → engine-Cs_nlYqC.js} +1 -1
  48. package/assets/{estimate-l1-fee-Bqou6JLl.js → estimate-l1-fee-oTYMvZsv.js} +1 -1
  49. package/assets/eth_estimateGas-D2h2NKDU.js +1 -0
  50. package/assets/{eth_getStorageAt-B-cqm2CG.js → eth_getStorageAt-nxicedso.js} +1 -1
  51. package/assets/eth_getTransactionCount-CYYgSGiU.js +1 -0
  52. package/assets/{ethereum-CjiWK1L5.js → ethereum-CdeRZR9J.js} +1 -1
  53. package/assets/{ethers-DHDSyreX.js → ethers-JeCAM1sd.js} +1 -1
  54. package/assets/{extractIPFS-C5EI4cZz.js → extractIPFS-DzIizex4.js} +1 -1
  55. package/assets/{features-U-ULFF0v.js → features-Ck7HAsYI.js} +1 -1
  56. package/assets/{fetchTokenMetadata-DHc2WWGs.js → fetchTokenMetadata-CvdEl9__.js} +2 -2
  57. package/assets/{generateUtilityClasses-BAjjhm6X.js → generateUtilityClasses-C3jgMIyn.js} +1 -1
  58. package/assets/get-ecosystem-wallet-info-B4ca6uUn.js +1 -0
  59. package/assets/{getBalance-C8i1-K0c.js → getBalance-BS9M_tBF.js} +2 -2
  60. package/assets/{getInstalledModules-BXhbS0To.js → getInstalledModules-TJvbccgJ.js} +1 -1
  61. package/assets/{getNFT-CzHwZ4FU.js → getNFT-BlQFGY94.js} +2 -2
  62. package/assets/{getNFT-D3XSi6wm.js → getNFT-Xlc7XB2G.js} +1 -1
  63. package/assets/{hashTypedData-DX5YrpbP.js → hashTypedData-B7sBgfoL.js} +1 -1
  64. package/assets/{hashTypedData-BOc0w62Q.js → hashTypedData-CEYoWftx.js} +1 -1
  65. package/assets/{import-BulayqYM.js → import-J8FWHnju.js} +1 -1
  66. package/assets/{in-app-wallet-calls-BI0pU06-.js → in-app-wallet-calls-GDlqBGpw.js} +1 -1
  67. package/assets/{index-GAmNssSM.js → index-2dkhZZEZ.js} +1 -1
  68. package/assets/{index-BZ5hUBd_.js → index-6YdbHDXd.js} +1 -1
  69. package/assets/{index-CzfG6alx.js → index-B0PvzweT.js} +1 -1
  70. package/assets/{index-DQx-sY_c.js → index-B11b--Yh.js} +1 -1
  71. package/assets/{index-BKSTjS_b.js → index-B5Oqojt4.js} +1 -1
  72. package/assets/{index-D4VlTBkw.js → index-B5nwKjyJ.js} +1 -1
  73. package/assets/{index-n-cFV5ht.js → index-B6-wCRdo.js} +1 -1
  74. package/assets/{index-DIMSfymy.js → index-BA1ToKo5.js} +3 -3
  75. package/assets/{index-D3hzhbb8.js → index-BBTg_Taa.js} +1 -1
  76. package/assets/{index-CkHNiFzW.js → index-BLF3lLRE.js} +1 -1
  77. package/assets/{index--_rHc9Od.js → index-BNjQhTuO.js} +1 -1
  78. package/assets/{index-Qzch3HJ1.js → index-BNsmSCur.js} +1 -1
  79. package/assets/{index-BOQwd6ZB.js → index-BRAKTMPG.js} +1 -1
  80. package/assets/{index-BOwZsNrV.js → index-B_xrDWUL.js} +1 -1
  81. package/assets/{index-DhBdPYnK.js → index-BcvgfIV4.js} +1 -1
  82. package/assets/{index-CdfeQ7YK.js → index-BcyJUD4U.js} +1 -1
  83. package/assets/{index-ULMMROQ0.js → index-BeymNI6W.js} +1 -1
  84. package/assets/{index-DjPU0-Js.js → index-BgtBi25O.js} +1 -1
  85. package/assets/{index-CIPKmOlZ.js → index-Bj-x5N2U.js} +1 -1
  86. package/assets/{index-Pp2oEhTr.js → index-Blc7OGRU.js} +1 -1
  87. package/assets/{index-LSZxonl2.js → index-BnrCQ-kr.js} +1 -1
  88. package/assets/{index-jYazATJj.js → index-Bu2DcNS5.js} +1 -1
  89. package/assets/{index-C6FQ8I_Q.js → index-C9P6N44e.js} +2 -2
  90. package/assets/{index-C7-iTfFV.js → index-CI_HQD35.js} +25 -25
  91. package/assets/{index-C2U9pe20.js → index-CMib98th.js} +1 -1
  92. package/assets/{index-DacKA042.js → index-CPc95Sx-.js} +1 -1
  93. package/assets/{index-DShBCYos.js → index-CS7PjWbj.js} +3 -3
  94. package/assets/{index-BuKyqX4w.js → index-CSh-BHOv.js} +1 -1
  95. package/assets/{index-DV4p99KA.js → index-CZ8lEqAg.js} +2 -2
  96. package/assets/{index-CxyR8sie.js → index-ChHYiWiR.js} +1 -1
  97. package/assets/{index-CDMAFM2h.js → index-CkCZBr-g.js} +1 -1
  98. package/assets/{index-CMavzzI_.js → index-Cl4u62mB.js} +1 -1
  99. package/assets/{index-CbJmVQBN.js → index-CoACJ04N.js} +1 -1
  100. package/assets/{index-C2OMQVG4.js → index-CptRe6qL.js} +2 -2
  101. package/assets/{index-YfJF6hV4.js → index-CxQiq4b6.js} +1 -1
  102. package/assets/{index-CcQfGUgB.js → index-Cye62OPB.js} +1 -1
  103. package/assets/{index-BLQJ40Mi.js → index-D-lax9BR.js} +1 -1
  104. package/assets/{index-BlEd83Li.js → index-DA60UT_n.js} +1 -1
  105. package/assets/{index-CzFnbzvY.js → index-DFJdN6PH.js} +1 -1
  106. package/assets/{index-D5qOQwpy.js → index-DGSeBOvG.js} +1 -1
  107. package/assets/{index-DtrBN21c.js → index-DSUWwVug.js} +1 -1
  108. package/assets/{index-Eb-Zd0F2.js → index-DUnXGO0a.js} +1 -1
  109. package/assets/{index-CiIXwK1P.js → index-DWEAO5Zp.js} +1 -1
  110. package/assets/{index-BF6unOoT.js → index-DWk4e-hQ.js} +1 -1
  111. package/assets/{index-DJyoXp5I.js → index-DZ8SABwK.js} +1 -1
  112. package/assets/{index-2NUAW7ds.js → index-D_vsPbWD.js} +1 -1
  113. package/assets/{index-DlllSUoB.js → index-DjbM69kL.js} +1 -1
  114. package/assets/{index-CkVoCPEe.js → index-DnPCa8RK.js} +1 -1
  115. package/assets/{index-BNH6Xzon.js → index-DoS7CfZ4.js} +2 -2
  116. package/assets/{index-DOTYPGXa.js → index-Dv6YT5k2.js} +1 -1
  117. package/assets/{index-DIw62AgP.js → index-S-U9uSud.js} +1 -1
  118. package/assets/{index-IfYZnKCO.js → index-_AHcKVpB.js} +1 -1
  119. package/assets/{index-Bo6hVxzu.js → index-dE2OwwEn.js} +1 -1
  120. package/assets/{index-BaSqmd6J.js → index-pJLySSiV.js} +1 -1
  121. package/assets/{index-CENZ1Xjd.js → index-t3MAsdpb.js} +1 -1
  122. package/assets/{index-kxu93Of2.js → index-ulcskxUh.js} +1 -1
  123. package/assets/{index-DS8DYtub.js → index-yq7Vx7EH.js} +1 -1
  124. package/assets/{index.es-DnMpNe4m.js → index.es-BQrA1NgE.js} +4 -4
  125. package/assets/{index.es-IGCEipYb.js → index.es-CbOKB2xh.js} +1 -1
  126. package/assets/{index.es-Dk6KC5kj.js → index.es-Cz73nZm3.js} +1 -1
  127. package/assets/{localBatchGatewayRequest-BLJAP4fw.js → localBatchGatewayRequest-DVz1EzYT.js} +1 -1
  128. package/assets/{mana-rate-DkxpKYLQ.js → mana-rate-PT3JDtK4.js} +1 -1
  129. package/assets/{native-7uSYstXA.js → native-C_y7cRlS.js} +1 -1
  130. package/assets/network-Bdkbzo_l.js +1 -0
  131. package/assets/{networks-Bc_Uf_7y.js → networks-DVx7-Y5v.js} +1 -1
  132. package/assets/{onramp-DnhEoZl6.js → onramp-DWqw8mwD.js} +1 -1
  133. package/assets/{openzeppelin-DwFpqgXP.js → openzeppelin-B2NGugOR.js} +1 -1
  134. package/assets/{ownerOf-Qq7Or7yc.js → ownerOf-BoMFaGBI.js} +1 -1
  135. package/assets/{parseNft-B-POJxiL.js → parseNft-DdgcBV60.js} +2 -2
  136. package/assets/{parseSignature-ClLI6O4f.js → parseSignature-BMBhmj1o.js} +3 -3
  137. package/assets/{parseSignature-kOoafZEo.js → parseSignature-Cu4M83H5.js} +1 -1
  138. package/assets/{pay-with-exchange-BZR4RMBZ.js → pay-with-exchange-B3xXFySH.js} +1 -1
  139. package/assets/{qr-overlay-9WMDd_PO.js → qr-overlay-DXC6ldlf.js} +1 -1
  140. package/assets/{receive-CtJWuhGM.js → receive-C-M9SmxL.js} +1 -1
  141. package/assets/{resolveImplementation-BJatMhHh.js → resolveImplementation-D1Bqtnhr.js} +1 -1
  142. package/assets/{rpc-BA0W82l4.js → rpc-DE1f6rs1.js} +1 -1
  143. package/assets/{secp256k1-B82Rx-TY.js → secp256k1-B39Q-Q6x.js} +1 -1
  144. package/assets/{secp256k1-DFslM7tB.js → secp256k1-CrKymG_Q.js} +1 -1
  145. package/assets/{secp256k1-DHqlJ8nk.js → secp256k1-D1Tuv2c6.js} +1 -1
  146. package/assets/{send-DXVwWcB5.js → send-C1EU45CZ.js} +1 -1
  147. package/assets/{send-batch-transaction-D1j9aZww.js → send-batch-transaction-BTFORkZH.js} +1 -1
  148. package/assets/{send-eip712-transaction-CrryJAyV.js → send-eip712-transaction-CJ_pjExq.js} +2 -2
  149. package/assets/{send-gasless-transaction-B7YcLCGg.js → send-gasless-transaction-CHYN-ATV.js} +2 -2
  150. package/assets/{sendRawTransaction-DT-ObNx8.js → sendRawTransaction-YUhe5FDd.js} +3 -3
  151. package/assets/{serializeTransaction-DawhfTu0.js → serializeTransaction-xu35AVgP.js} +1 -1
  152. package/assets/{session-proposal-lgMupzDT.js → session-proposal-BZLBnV_x.js} +1 -1
  153. package/assets/{session-request-DacijEHD.js → session-request-mA9oQfs4.js} +2 -2
  154. package/assets/{sha256-BxR-wXll.js → sha256-De0VIEFf.js} +1 -1
  155. package/assets/{signing-CoPa7cSW.js → signing-DqVkCMNZ.js} +5 -5
  156. package/assets/{socials-CMh8u0Ej.js → socials-BImUXGbF.js} +1 -1
  157. package/assets/{swaps-B0Q00kKq.js → swaps-B8Tuo6Pt.js} +1 -1
  158. package/assets/{thirdweb-9c12J_EF.js → thirdweb-BPuxSwTj.js} +3 -3
  159. package/assets/{totalSupply-BCZn9Djj.js → totalSupply-Bbiy7170.js} +1 -1
  160. package/assets/{transactionReceipt-C2iQ3ozz.js → transactionReceipt-BcAWHNof.js} +1 -1
  161. package/assets/{transactions-Dqx74UWQ.js → transactions-N8K1pD5P.js} +1 -1
  162. package/assets/{useInfiniteGrid-DgSsqvQS.js → useInfiniteGrid-CVs5pP6I.js} +1 -1
  163. package/assets/{utils-nbkSUjEy.js → utils-BmX8TqzP.js} +1 -1
  164. package/assets/{verifyHash-BVbpPoSf.js → verifyHash-CnnSGyZz.js} +1 -1
  165. package/assets/{w3m-modal-DvCL5Oh_.js → w3m-modal-DJII43ig.js} +1 -1
  166. package/assets/{w3m-modal-CGHylzdj.js → w3m-modal-DWJdJGvu.js} +1 -1
  167. package/assets/{wait-for-tx-receipt-Dm2aAIs1.js → wait-for-tx-receipt-D0UsY_wi.js} +1 -1
  168. package/assets/{wallet-kind-vciDs8sO.js → wallet-kind-C-lIAMBM.js} +1 -1
  169. package/assets/{wallets-D8labJv_.js → wallets-KGduOTOw.js} +6 -6
  170. package/assets/{web-connector-C9MeCxtf.js → web-connector-Ca9PblTL.js} +3 -3
  171. package/assets/{writeContract-C3IzBPhR.js → writeContract-dj4TlIky.js} +1 -1
  172. package/assets/{zora-sepolia-BQEmh41Y.js → zora-sepolia-kNKNf7Kl.js} +1 -1
  173. package/assets/{zoraTestnet-CduWQC79.js → zoraTestnet-BhynxBH0.js} +1 -1
  174. package/index.html +8 -8
  175. package/package.json +2 -2
  176. package/assets/ItemDetail-Do5cjFW8.js +0 -2
  177. package/assets/decimals-ByIlBo-2.js +0 -1
  178. package/assets/eth_estimateGas-CarYiSgL.js +0 -1
  179. package/assets/eth_getTransactionCount-Dfx3JW2Q.js +0 -1
  180. package/assets/get-ecosystem-wallet-info-CWcGnKL4.js +0 -1
  181. package/assets/network-DsCGVBhE.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BaSqmd6J.js","assets/hooks.module-C4R15-Vr.js","assets/jsxRuntime.module-wfFNtqye.js","assets/index-CQB-2hib.js","assets/react-Vu6nbGi5.js","assets/index-COjgItKg.js","assets/index-C7-iTfFV.js","assets/ethers-DHDSyreX.js","assets/index-DCrqkiFN.css","assets/parseSignature-kOoafZEo.js","assets/sendRawTransaction-DT-ObNx8.js","assets/NetworkUtil-Ddexw9-U.js","assets/custom-C6VO1Je_.js","assets/W3MFrameProviderSingleton-D4DCXtQm.js","assets/index-CdfeQ7YK.js","assets/index-C6FQ8I_Q.js","assets/browser-ponyfill-rND5WOqr.js","assets/localBatchGatewayRequest-BLJAP4fw.js","assets/verifyHash-BVbpPoSf.js","assets/secp256k1-DFslM7tB.js","assets/hashTypedData-BOc0w62Q.js","assets/WebCryptoP256-OE37a6hF.js","assets/zoraTestnet-CduWQC79.js","assets/serializeTransaction-DawhfTu0.js","assets/writeContract-C3IzBPhR.js","assets/index-nibyPLVP.js","assets/index-DQx-sY_c.js","assets/index-Qzch3HJ1.js","assets/index-BV8s6ez1.js","assets/index-DOTYPGXa.js","assets/native-7uSYstXA.js","assets/index.es-DnMpNe4m.js","assets/index-Pp2oEhTr.js","assets/index-CJdot1dH.js","assets/index.es-IGCEipYb.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-C7-iTfFV.js";import{c as T,C as O,a as G,P as k}from"./index-DShBCYos.js";import{i as zt}from"./index-DShBCYos.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-DT-ObNx8.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-Ddexw9-U.js";import{G as J,w as m,a as E}from"./W3MFrameProviderSingleton-D4DCXtQm.js";import{a as P}from"./custom-C6VO1Je_.js";import"./react-Vu6nbGi5.js";import"./ethers-DHDSyreX.js";import"./index-CdfeQ7YK.js";import"./index-C6FQ8I_Q.js";import"./browser-ponyfill-rND5WOqr.js";import"./index-CQB-2hib.js";import"./index-COjgItKg.js";import"./store-CraP4F4Y.js";import"./writeContract-C3IzBPhR.js";function K(l,{body:p,onError:d,onResponse:M}){return l.request({body:p,onError:d,onResponse:M}),l}async function X(l,{body:p,timeout:d=1e4}){return l.requestAsync({body:p,timeout:d})}const U={http(l,p){return J(l).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(l){const p=new Map,d=l.features??{defaultConnected:!1};let M=d.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(d.connectError)throw typeof d.connectError=="boolean"?new f(new Error("Failed to connect.")):d.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),M=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){M=!1},async getAccounts(){if(!M)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!d.reconnect||!M?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),M=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return l.accounts;if(n==="eth_signTypedData_v4"&&d.signTypedDataError)throw typeof d.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):d.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(d.switchChainError)throw typeof d.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):d.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(d.watchAssetError)throw typeof d.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):d.watchAssetError;return M}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:v}=await U.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(v)throw new x({body:{method:n,params:i},error:v,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await U.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(d.signMessageError)throw typeof d.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):d.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:u,result:g}=await U.http(c,{body:s});if(u)throw new x({body:s,error:u,url:c});return g}})({retryCount:0})}}))}function $(l){var o,t,e;const{chain:p}=l,d=p.rpcUrls.default.http[0];if(!l.transports)return[d];const M=(t=(o=l.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=M==null?void 0:M.value)==null?void 0:e.transports)||[M]).map(({value:c})=>(c==null?void 0:c.url)||d)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function It(l={}){const{dialog:p,host:d,icon:M=tt,name:r,rdns:o,theme:t,...e}=l;return nt({createAdapter(c){return c.dialog({dialog:p,host:d,icon:M,name:r,rdns:o,theme:t})},icon:M,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(l){return T(p=>{const d=p.chains;let M,r,o,t,e;async function c(){return await b(()=>import("./core-BIHI7g3E.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return M??(M=(async()=>{const n=await c();return n.Provider.create({...l.providerParameters,adapter:l.createAdapter(n),chains:p.chains,transports:p.transports})})()),await M}return{icon:l.icon,id:l.id,name:l.name,rdns:l.rdns,type:l.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:u}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:u?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const u=await a();t&&(u.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),u.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),u.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=d.find(u=>u.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function yt(l={}){let p,d,M,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:u}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(d||(d=this.onAccountsChanged.bind(this),n.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),n.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&u!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:u}});u=(g==null?void 0:g.id)??u}return{accounts:e?s:s.map(g=>g.address),chainId:u}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof l.preference=="string"?{options:l.preference}:{...l.preference,options:((a=l.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-BaSqmd6J.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...l,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(l={}){let p,d,M,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));d||(d=this.onAccountsChanged.bind(this),a.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),a.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(u=>{if(u.code===f.code)throw u;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-DQx-sY_c.js"),__vite__mapDeps([26,6,4,7,8,1,3,5,18,10,11,19,9,12,13,14,15,16,17,20,21,25]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...l,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...l.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(l={}){let p,d;return T(M=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const u=M.chains.map(g=>z(g.id));l.connectAndSign||l.connectWith?(l.connectAndSign?n=(await e.connectAndSign({chainIds:u,message:l.connectAndSign})).signature:l.connectWith&&(i=(await e.connectWith({chainIds:u,method:l.connectWith.method,params:l.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:u})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const u=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(u==null?void 0:u.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(u=>({address:u,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!d){const t=(o=M.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!d){const e=(r=M.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await m(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=M.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){M.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);M.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);M.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||M.emitter.emit("disconnect")},onDisplayUri(r){M.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!d){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BkiAkXrA.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};d=o({...l,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(M.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:l.dapp??{...t,...l.dappMetadata},debug:l.debug??((r=l.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...l.ui,...l.headless!=null&&{headless:l.headless}},...l.mobile&&{mobile:l.mobile}})}p=await d}return p}}))}function ft(l={}){const p=d=>typeof d.on=="function"&&typeof d.removeListener=="function";return T(d=>{const M=d.chains??l.chains??[],r=d.transports?d.transports:l.transports;let o,t,e,c,a;return{async connect({chainId:n=M[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,u="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-DAWtxdNk.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...M.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?u?h:h.address:u?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...l,announceProvider:!1,chains:M,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwIDQyMiA0MjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI0MjIiIGhlaWdodD0iNDIyIiBmaWxsPSJibGFjayIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMV8xNSkiPgo8cGF0aCBkPSJNODEgMjg2LjM2NkM4MSAyODAuODkzIDg1LjQ1MDUgMjc2LjQ1NSA5MC45NDA0IDI3Ni40NTVIMzI5LjUxMUMzMzUuMDAxIDI3Ni40NTUgMzM5LjQ1MiAyODAuODkzIDMzOS40NTIgMjg2LjM2NlYzMDYuMTg4QzMzOS40NTIgMzExLjY2MiAzMzUuMDAxIDMxNi4wOTkgMzI5LjUxMSAzMTYuMDk5SDkwLjk0MDRDODUuNDUwNSAzMTYuMDk5IDgxIDMxMS42NjIgODEgMzA2LjE4OFYyODYuMzY2WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTAuOTQwNCAyMzQuODI4Qzg1LjQ1MDUgMjM0LjgyOCA4MSAyMzkuMjY2IDgxIDI0NC43MzlWMjcxLjUzMUM4My44NDMyIDI2OS42MzMgODcuMjYyMiAyNjguNTI2IDkwLjk0MDQgMjY4LjUyNkgzMjkuNTExQzMzMy4xODggMjY4LjUyNiAzMzYuNjA4IDI2OS42MzMgMzM5LjQ1MiAyNzEuNTMxVjI0NC43MzlDMzM5LjQ1MiAyMzkuMjY2IDMzNS4wMDEgMjM0LjgyOCAzMjkuNTExIDIzNC44MjhIOTAuOTQwNFpNMzM5LjQ1MiAyODYuMzY2QzMzOS40NTIgMjgwLjg5MyAzMzUuMDAxIDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTlDODEgMzExLjY2NCA4NS40NTA1IDMxNi4xMDEgOTAuOTQwNCAzMTYuMTAxSDMyOS41MTFDMzM1LjAwMSAzMTYuMTAxIDMzOS40NTIgMzExLjY2NCAzMzkuNDUyIDMwNi4xOVYyODYuMzY2WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTAuOTQwNCAxOTMuMjAxQzg1LjQ1MDUgMTkzLjIwMSA4MSAxOTcuNjM4IDgxIDIwMy4xMTJWMjI5LjkwM0M4My44NDMyIDIyOC4wMDYgODcuMjYyMiAyMjYuODk5IDkwLjk0MDQgMjI2Ljg5OUgzMjkuNTExQzMzMy4xODggMjI2Ljg5OSAzMzYuNjA4IDIyOC4wMDYgMzM5LjQ1MiAyMjkuOTAzVjIwMy4xMTJDMzM5LjQ1MiAxOTcuNjM4IDMzNS4wMDEgMTkzLjIwMSAzMjkuNTExIDE5My4yMDFIOTAuOTQwNFpNMzM5LjQ1MiAyNDQuNzM5QzMzOS40NTIgMjM5LjI2NSAzMzUuMDAxIDIzNC44MjggMzI5LjUxMSAyMzQuODI4SDkwLjk0MDRDODUuNDUwNSAyMzQuODI4IDgxIDIzOS4yNjUgODEgMjQ0LjczOVYyNzEuNTNDODEuMjE3NSAyNzEuMzg1IDgxLjQzODMgMjcxLjI0NSA4MS42NjI0IDI3MS4xMDlDODMuODMyNSAyNjkuNzk0IDg2LjMwNTQgMjY4LjkyNyA4OC45NTIzIDI2OC42MzVDODkuNjA1MSAyNjguNTYzIDkwLjI2ODQgMjY4LjUyNiA5MC45NDA0IDI2OC41MjZIMzI5LjUxMUMzMzAuMTgzIDI2OC41MjYgMzMwLjg0NiAyNjguNTYzIDMzMS40OTggMjY4LjYzNUMzMzQuNDE5IDI2OC45NTcgMzM3LjEyOCAyNjkuOTggMzM5LjQ1MiAyNzEuNTNWMjQ0LjczOVpNMzM5LjQ1MiAyODYuMzY2QzMzOS40NTIgMjgxLjAyMSAzMzUuMjA2IDI3Ni42NjMgMzI5Ljg5MyAyNzYuNDYyQzMyOS43NjcgMjc2LjQ1NyAzMjkuNjQgMjc2LjQ1NSAzMjkuNTExIDI3Ni40NTVIOTAuOTQwNEM4NS40NTA1IDI3Ni40NTUgODEgMjgwLjg5MyA4MSAyODYuMzY2VjMwNi4xODhDODEgMzExLjY2MiA4NS40NTA1IDMxNi4xMDEgOTAuOTQwNCAzMTYuMTAxSDMyOS41MTFDMzM1LjAwMSAzMTYuMTAxIDMzOS40NTIgMzExLjY2MiAzMzkuNDUyIDMwNi4xODhWMjg2LjM2NloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguMDE0NiAxMDRDODguNjE3NyAxMDQgODEgMTExLjU5NSA4MSAxMjAuOTY1VjE4OC4yNzZDODMuODQzMiAxODYuMzc5IDg3LjI2MjIgMTg1LjI3MiA5MC45NDA0IDE4NS4yNzJIMzI5LjUxMUMzMzMuMTg4IDE4NS4yNzIgMzM2LjYwOCAxODYuMzc5IDMzOS40NTIgMTg4LjI3NlYxMjAuOTY1QzMzOS40NTIgMTExLjU5NSAzMzEuODMzIDEwNCAzMjIuNDM3IDEwNEg5OC4wMTQ2Wk0zMzkuNDUyIDIwMy4xMTJDMzM5LjQ1MiAxOTcuNjM4IDMzNS4wMDEgMTkzLjIwMSAzMjkuNTExIDE5My4yMDFIOTAuOTQwNEM4NS40NTA1IDE5My4yMDEgODEgMTk3LjYzOCA4MSAyMDMuMTEyVjIyOS45MDNDODEuMjE3NSAyMjkuNzU4IDgxLjQzODMgMjI5LjYxOCA4MS42NjI0IDIyOS40ODJDODMuODMyNSAyMjguMTY3IDg2LjMwNTQgMjI3LjMgODguOTUyMyAyMjcuMDA4Qzg5LjYwNTEgMjI2LjkzNiA5MC4yNjg0IDIyNi44OTkgOTAuOTQwNCAyMjYuODk5SDMyOS41MTFDMzMwLjE4MyAyMjYuODk5IDMzMC44NDYgMjI2LjkzNiAzMzEuNDk4IDIyNy4wMDhDMzM0LjQxOSAyMjcuMzMgMzM3LjEyOCAyMjguMzUyIDMzOS40NTIgMjI5LjkwM1YyMDMuMTEyWk0zMzkuNDUyIDI0NC43MzlDMzM5LjQ1MiAyMzkuMzkzIDMzNS4yMDYgMjM1LjAzNiAzMjkuODkzIDIzNC44MzVDMzI5Ljc2NyAyMzQuODMgMzI5LjY0IDIzNC44MjggMzI5LjUxMSAyMzQuODI4SDkwLjk0MDRDODUuNDUwNSAyMzQuODI4IDgxIDIzOS4yNjUgODEgMjQ0LjczOVYyNzEuNTNMODEuMDcwNyAyNzEuNDgzQzgxLjI2NTMgMjcxLjM1NSA4MS40NjI1IDI3MS4yMyA4MS42NjI0IDI3MS4xMDlDODEuOTA4MyAyNzAuOTYgODIuMTU4MSAyNzAuODE3IDgyLjQxMTcgMjcwLjY3OUM4NC4zOTUzIDI2OS42MDUgODYuNjA1NCAyNjguODk0IDg4Ljk1MjMgMjY4LjYzNUM4OS4wMDUyIDI2OC42MjkgODkuMDU4IDI2OC42MjQgODkuMTExIDI2OC42MThDODkuNzEyNSAyNjguNTU3IDkwLjMyMjggMjY4LjUyNiA5MC45NDA0IDI2OC41MjZIMzI5LjUxMUMzMjkuNzM4IDI2OC41MjYgMzI5Ljk2NSAyNjguNTMgMzMwLjE5MiAyNjguNTM5QzMzMC42MzEgMjY4LjU1NSAzMzEuMDY3IDI2OC41ODcgMzMxLjQ5OCAyNjguNjM1QzMzNC40MTkgMjY4Ljk1NyAzMzcuMTI4IDI2OS45OCAzMzkuNDUyIDI3MS41M1YyNDQuNzM5Wk0zMzkuNDUyIDI4Ni4zNjZDMzM5LjQ1MiAyODEuMDIxIDMzNS4yMDYgMjc2LjY2MyAzMjkuODkzIDI3Ni40NjJMMzI5Ljg2NSAyNzYuNDYxQzMyOS43NDggMjc2LjQ1NyAzMjkuNjI5IDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTg4QzgxIDMxMS42NjIgODUuNDUwNSAzMTYuMTAxIDkwLjk0MDQgMzE2LjEwMUgzMjkuNTExQzMzNS4wMDEgMzE2LjEwMSAzMzkuNDUyIDMxMS42NjIgMzM5LjQ1MiAzMDYuMTg4VjI4Ni4zNjZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjY5Ljg2OCAxMzEuNzUyQzI2OS44NjggMTI2LjI3OCAyNzQuMzE4IDEyMS44NCAyNzkuODA4IDEyMS44NEgzMTEuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){d.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);d.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);d.emitter.emit("connect",{accounts:i,chainId:s});const u=await this.getProvider();p(u)&&(c&&(u.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),u.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),u.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();d.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=M.find(u=>u.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(l={}){const{shimDisconnect:p=!1}=l;let d,M;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return M||(M=this.onDisconnect.bind(this),t.on("disconnect",M)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;M&&(o.removeListener("disconnect",M),M=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!d){const{default:t}=await(()=>{try{return b(()=>import("./index-Qzch3HJ1.js"),__vite__mapDeps([27,28,10,11,7,4,6,8,20]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(l),c=await E(()=>e.safe.getInfo(),{timeout:l.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-DOTYPGXa.js").then(i=>i.i),__vite__mapDeps([29,4,28,30,7,15,6,8]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();d=new a(c,e)}return d}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const Dt="8.0.20";Z.type="walletConnect";function Z(l){const p=l.isNewChainsStale??!0;let d,M;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:u,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(C=>C.id!==I).map(C=>C.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(C=>C.id))}const A=(await h.enable()).map(N=>D(N));let v=await this.getChainId();if(s&&v!==s){const N=await this.switchChain({chainId:s}).catch(C=>{var S;if(C.code===f.code&&((S=C.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw C;return{id:v}});v=(N==null?void 0:N.id)??v}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:u?A.map(N=>({address:N,capabilities:{}})):A,chainId:v}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(u){if(!/No matching key/i.test(u.message))throw u}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(u=>D(u))},async getProvider({chainId:s}={}){var g;async function u(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-DnMpNe4m.js").then(h=>h.n),__vite__mapDeps([31,6,4,7,8,15,32,14,25,33,34,16]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...l,disableProviderPing:!0,optionalChains:w,projectId:l.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:l.showQrModal??!0})}return d||(M||(M=u()),d=await M,d==null||d.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),d},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,u]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&u.session?(await u.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:u}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===u);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(v=>{y=N=>{N.chainId===u&&(i.emitter.off("change",y),v())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(u)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,u]),w}catch(A){i.emitter.off("change",y);const v=A;if(/(user rejected)/i.test(v.message))throw new f(v);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let C;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?C=s.rpcUrls:C=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(u),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:C};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,u]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(u=>D(u))})},onChainChanged(s){const u=Number(s);i.emitter.emit("change",{chainId:u})},async onConnect(s){const u=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:u})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const u=await this.getProvider();o&&(u.removeListener("accountsChanged",o),o=void 0),t&&(u.removeListener("chainChanged",t),t=void 0),n&&(u.removeListener("disconnect",n),n=void 0),a&&(u.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),u.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var u,g,w;return d?((w=(g=(u=d.session)==null?void 0:u.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),u=this.getNamespaceChainsIds();if(u.length&&!u.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var u;await((u=i.storage)==null?void 0:u.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{yt as baseAccount,q as coinbaseWallet,zt as injected,R as metaMask,Q as mock,ft as porto,W as safe,It as tempoWallet,Dt as version,Z as walletConnect};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-pJLySSiV.js","assets/hooks.module-C4R15-Vr.js","assets/jsxRuntime.module-wfFNtqye.js","assets/index-CQB-2hib.js","assets/react-Vu6nbGi5.js","assets/index-COjgItKg.js","assets/index-CI_HQD35.js","assets/ethers-JeCAM1sd.js","assets/index-DCrqkiFN.css","assets/parseSignature-Cu4M83H5.js","assets/sendRawTransaction-YUhe5FDd.js","assets/NetworkUtil-DDES604E.js","assets/custom-BM-_NC1p.js","assets/W3MFrameProviderSingleton-DXEpVsCm.js","assets/index-BcyJUD4U.js","assets/index-C9P6N44e.js","assets/browser-ponyfill-rND5WOqr.js","assets/localBatchGatewayRequest-DVz1EzYT.js","assets/verifyHash-CnnSGyZz.js","assets/secp256k1-CrKymG_Q.js","assets/hashTypedData-CEYoWftx.js","assets/WebCryptoP256-B1xyhPdr.js","assets/zoraTestnet-BhynxBH0.js","assets/serializeTransaction-xu35AVgP.js","assets/writeContract-dj4TlIky.js","assets/index-nibyPLVP.js","assets/index-B11b--Yh.js","assets/index-BNsmSCur.js","assets/index-BV8s6ez1.js","assets/index-Dv6YT5k2.js","assets/native-C_y7cRlS.js","assets/index.es-BQrA1NgE.js","assets/index-Blc7OGRU.js","assets/index-CJdot1dH.js","assets/index.es-CbOKB2xh.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-CI_HQD35.js";import{c as T,C as O,a as G,P as k}from"./index-CS7PjWbj.js";import{i as zt}from"./index-CS7PjWbj.js";import{aI as D,aR as B,bh as F}from"./sendRawTransaction-YUhe5FDd.js";import{x as L,af as z,a5 as _,Y as f,u as x,al as H,r as Y}from"./NetworkUtil-DDES604E.js";import{G as J,w as m,a as E}from"./W3MFrameProviderSingleton-DXEpVsCm.js";import{a as P}from"./custom-BM-_NC1p.js";import"./react-Vu6nbGi5.js";import"./ethers-JeCAM1sd.js";import"./index-BcyJUD4U.js";import"./index-C9P6N44e.js";import"./browser-ponyfill-rND5WOqr.js";import"./index-CQB-2hib.js";import"./index-COjgItKg.js";import"./store-CraP4F4Y.js";import"./writeContract-dj4TlIky.js";function K(l,{body:p,onError:d,onResponse:M}){return l.request({body:p,onError:d,onResponse:M}),l}async function X(l,{body:p,timeout:d=1e4}){return l.requestAsync({body:p,timeout:d})}const U={http(l,p){return J(l).request(p)},webSocket:K,webSocketAsync:X};Q.type="mock";function Q(l){const p=new Map,d=l.features??{defaultConnected:!1};let M=d.defaultConnected,r;return T(o=>({id:"mock",name:"Mock Connector",type:Q.type,async setup(){r=o.chains[0].id},async connect({chainId:t,withCapabilities:e}={}){if(d.connectError)throw typeof d.connectError=="boolean"?new f(new Error("Failed to connect.")):d.connectError;const a=await(await this.getProvider()).request({method:"eth_requestAccounts"});let n=await this.getChainId();return t&&n!==t&&(n=(await this.switchChain({chainId:t})).id),M=!0,{accounts:e?a.map(i=>({address:D(i),capabilities:{foo:{bar:i}}})):a.map(i=>D(i)),chainId:n}},async disconnect(){M=!1},async getAccounts(){if(!M)throw new G;return(await(await this.getProvider()).request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return _(e,"number")},async isAuthorized(){return!d.reconnect||!M?!1:!!(await this.getAccounts()).length},async switchChain({chainId:t}){const e=await this.getProvider(),c=o.chains.find(a=>a.id===t);if(!c)throw new L(new O);return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:z(t)}]}),c},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect"),M=!1},async getProvider({chainId:t}={}){const c=(o.chains.find(n=>n.id===t)??o.chains[0]).rpcUrls.default.http[0];return P({request:async({method:n,params:i})=>{if(n==="eth_chainId")return z(r);if(n==="eth_accounts"||n==="eth_requestAccounts")return l.accounts;if(n==="eth_signTypedData_v4"&&d.signTypedDataError)throw typeof d.signTypedDataError=="boolean"?new f(new Error("Failed to sign typed data.")):d.signTypedDataError;if(n==="wallet_switchEthereumChain"){if(d.switchChainError)throw typeof d.switchChainError=="boolean"?new f(new Error("Failed to switch chain.")):d.switchChainError;r=_(i[0].chainId,"number"),this.onChainChanged(r.toString());return}if(n==="wallet_watchAsset"){if(d.watchAssetError)throw typeof d.watchAssetError=="boolean"?new f(new Error("Failed to switch chain.")):d.watchAssetError;return M}if(n==="wallet_getCapabilities")return{"0x2105":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"},sessionKeys:{supported:!0}},"0x14A34":{paymasterService:{supported:i[0]==="0x95132632579b073D12a6673e18Ab05777a6B86f8"}}};if(n==="wallet_sendCalls"){const w=[],y=i[0].calls,h=i[0].from;for(const j of y){const{result:A,error:v}=await U.http(c,{body:{method:"eth_sendTransaction",params:[{...j,...typeof h<"u"?{from:h}:{}}]}});if(v)throw new x({body:{method:n,params:i},error:v,url:c});w.push(A)}const I=B(H(JSON.stringify(y)));return p.set(I,w),{id:I}}if(n==="wallet_getCallsStatus"){const w=p.get(i[0]);if(!w)return{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"};const h=(await Promise.all(w.map(async I=>{const{result:j,error:A}=await U.http(c,{body:{method:"eth_getTransactionReceipt",params:[I],id:0}});if(A)throw new x({body:{method:n,params:i},error:A,url:c});return j?{blockHash:j.blockHash,blockNumber:j.blockNumber,gasUsed:j.gasUsed,logs:j.logs,status:j.status,transactionHash:j.transactionHash}:null}))).filter(I=>I!==null);return h.length===0?{atomic:!1,chainId:"0x1",id:i[0],status:100,receipts:[],version:"2.0.0"}:{atomic:!1,chainId:"0x1",id:i[0],status:200,receipts:h,version:"2.0.0"}}if(n==="wallet_showCallsStatus")return;if(n==="personal_sign"){if(d.signMessageError)throw typeof d.signMessageError=="boolean"?new f(new Error("Failed to sign message.")):d.signMessageError;n="eth_sign",i=[i[1],i[0]]}const s={method:n,params:i},{error:u,result:g}=await U.http(c,{body:s});if(u)throw new x({body:s,error:u,url:c});return g}})({retryCount:0})}}))}function $(l){var o,t,e;const{chain:p}=l,d=p.rpcUrls.default.http[0];if(!l.transports)return[d];const M=(t=(o=l.transports)==null?void 0:o[p.id])==null?void 0:t.call(o,{chain:p});return(((e=M==null?void 0:M.value)==null?void 0:e.transports)||[M]).map(({value:c})=>(c==null?void 0:c.url)||d)}const tt='data:image/svg+xml,<svg width="269" height="269" viewBox="0 0 269 269" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="269" height="269" fill="black"/><path d="M123.273 190.794H93.445L121.09 105.318H85.7334L93.445 80.2642H191.95L184.238 105.318H150.773L123.273 190.794Z" fill="white"/></svg>';function It(l={}){const{dialog:p,host:d,icon:M=tt,name:r,rdns:o,theme:t,...e}=l;return nt({createAdapter(c){return c.dialog({dialog:p,host:d,icon:M,name:r,rdns:o,theme:t})},icon:M,id:o??"xyz.tempo",name:r??"Tempo Wallet",providerParameters:e,rdns:o??"xyz.tempo",type:"injected"})}function nt(l){return T(p=>{const d=p.chains;let M,r,o,t,e;async function c(){return await b(()=>import("./core-BIHI7g3E.js"),[]).catch(()=>{throw new Error('dependency "accounts" not found')})}async function a(){return M??(M=(async()=>{const n=await c();return n.Provider.create({...l.providerParameters,adapter:l.createAdapter(n),chains:p.chains,transports:p.transports})})()),await M}return{icon:l.icon,id:l.id,name:l.name,rdns:l.rdns,type:l.type,async connect(n={}){const{chainId:i,isReconnecting:s,withCapabilities:u}=n,g="capabilities"in n?n.capabilities:void 0;let w=[],y;s&&(w=await this.getAccounts().then(h=>h.map(I=>({address:I,capabilities:{}}))).catch(()=>[]));try{if(!w.length&&!s&&(w=(await(await a()).request({method:"wallet_connect",params:[{...i?{chainId:i}:{},...g?{capabilities:g}:{}}]})).accounts),y??(y=await this.getChainId()),!y)throw new O;const h=await a();return t&&(h.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),h.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),h.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),h.on("disconnect",e)),{accounts:u?w:w.map(I=>I.address),chainId:y}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){var i;const n=await a();o&&(n.removeListener("chainChanged",o),o=void 0),e&&(n.removeListener("disconnect",e),e=void 0),t||(t=(i=this.onConnect)==null?void 0:i.bind(this),t&&n.on("connect",t)),await n.request({method:"wallet_disconnect"})},async getAccounts(){return await(await a()).request({method:"eth_accounts"})},async getChainId(){const n=await a();return Number(await n.request({method:"eth_chainId"}))},async getClient({chainId:n}={}){const i=await a(),{address:s}=i.getAccount({accessKey:!1});return Object.assign(i.getClient({chainId:n}),{account:F(s)})},async getProvider(){return await a()},async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},onAccountsChanged(n){p.emitter.emit("change",{accounts:n})},onChainChanged(n){p.emitter.emit("change",{chainId:Number(n)})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);p.emitter.emit("connect",{accounts:i,chainId:s});const u=await a();t&&(u.removeListener("connect",t),t=void 0),r||(r=this.onAccountsChanged.bind(this),u.on("accountsChanged",r)),o||(o=this.onChainChanged.bind(this),u.on("chainChanged",o)),e||(e=this.onDisconnect.bind(this),u.on("disconnect",e))},async onDisconnect(n){var s;const i=await a();p.emitter.emit("disconnect"),o&&(i.removeListener("chainChanged",o),o=void 0),e&&(i.removeListener("disconnect",e),e=void 0),t||(t=(s=this.onConnect)==null?void 0:s.bind(this),t&&i.on("connect",t))},async setup(){var n;if(!t){const i=await a();t=(n=this.onConnect)==null?void 0:n.bind(this),t&&i.on("connect",t)}},async switchChain({chainId:n}){const i=d.find(u=>u.id===n);if(!i)throw new L(new O);return await(await a()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i}}})}function yt(l={}){let p,d,M,r;return T(o=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...c}={}){var a;try{const n=await this.getProvider(),i=t??((a=o.chains[0])==null?void 0:a.id);if(!i)throw new O;let{accounts:s,currentChainId:u}=await(async()=>{if(c.isReconnecting)return{accounts:(await n.request({method:"eth_accounts",params:[]})).map(h=>({address:D(h)})),currentChainId:await this.getChainId()};const g=await n.request({method:"wallet_connect",params:[{capabilities:"capabilities"in c&&c.capabilities?c.capabilities:{},chainIds:[z(i),...o.chains.filter(h=>h.id!==i).map(h=>z(h.id))]}]});return{accounts:(await n.request({method:"eth_accounts"})).map(h=>g.accounts.find(I=>I.address===h)??{address:h}).map(h=>({address:D(h.address),capabilities:h.capabilities??{}})),currentChainId:Number(g.chainIds[0])}})();if(d||(d=this.onAccountsChanged.bind(this),n.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),n.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),n.on("disconnect",r)),t&&u!==t){const g=await this.switchChain({chainId:t}).catch(w=>{if(w.code===f.code)throw w;return{id:u}});u=(g==null?void 0:g.id)??u}return{accounts:e?s:s.map(g=>g.address),chainId:u}}catch(n){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message)?new f(n):n}},async disconnect(){const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const t=(()=>{var a;return typeof l.preference=="string"?{options:l.preference}:{...l.preference,options:((a=l.preference)==null?void 0:a.options)??"all"}})(),{createBaseAccountSDK:e}=await(()=>{try{return b(()=>import("./index-pJLySSiV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]))}catch{throw new Error('dependency "@base-org/account" not found')}})();p=e({...l,appChainIds:o.chains.map(a=>a.id),preference:t}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}q.type="coinbaseWallet";function q(l={}){let p,d,M,r;return T(o=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:q.type,async connect({chainId:t,withCapabilities:e,...c}={}){try{const a=await this.getProvider(),n=(await a.request({method:"eth_requestAccounts",params:"instantOnboarding"in c&&c.instantOnboarding?[{onboarding:"instant"}]:[]})).map(s=>D(s));d||(d=this.onAccountsChanged.bind(this),a.on("accountsChanged",d)),M||(M=this.onChainChanged.bind(this),a.on("chainChanged",M)),r||(r=this.onDisconnect.bind(this),a.on("disconnect",r));let i=await this.getChainId();if(t&&i!==t){const s=await this.switchChain({chainId:t}).catch(u=>{if(u.code===f.code)throw u;return{id:i}});i=(s==null?void 0:s.id)??i}return{accounts:e?n.map(s=>({address:s,capabilities:{}})):n,chainId:i}}catch(a){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(a.message)?new f(a):a}},async disconnect(){var e;const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),M&&(t.removeListener("chainChanged",M),M=void 0),r&&(t.removeListener("disconnect",r),r=void 0),t.disconnect(),(e=t.close)==null||e.call(t)},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>D(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!p){const{createCoinbaseWalletSDK:t}=await(()=>{try{return b(()=>import("./index-B11b--Yh.js"),__vite__mapDeps([26,6,4,7,8,1,3,5,18,10,11,19,9,12,13,14,15,16,17,20,21,25]))}catch{throw new Error('dependency "@coinbase/wallet-sdk" not found')}})();p=t({...l,appChainIds:o.chains.map(c=>c.id),preference:{options:"all",...l.preference??{}}}).getProvider()}return p},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var n,i,s,u;const c=o.chains.find(g=>g.id===e);if(!c)throw new L(new O);const a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:z(c.id)}]}),c}catch(g){if(g.code===4902)try{let w;t!=null&&t.blockExplorerUrls?w=t.blockExplorerUrls:w=(n=c.blockExplorers)!=null&&n.default.url?[(i=c.blockExplorers)==null?void 0:i.default.url]:[];let y;(s=t==null?void 0:t.rpcUrls)!=null&&s.length?y=t.rpcUrls:y=[((u=c.rpcUrls.default)==null?void 0:u.http[0])??""];const h={blockExplorerUrls:w,chainId:z(e),chainName:(t==null?void 0:t.chainName)??c.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:y};return await a.request({method:"wallet_addEthereumChain",params:[h]}),c}catch(w){throw new f(w)}throw new L(g)}},onAccountsChanged(t){t.length===0?this.onDisconnect():o.emitter.emit("change",{accounts:t.map(e=>D(e))})},onChainChanged(t){const e=Number(t);o.emitter.emit("change",{chainId:e})},async onDisconnect(t){o.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),M&&(e.removeListener("chainChanged",M),M=void 0),r&&(e.removeListener("disconnect",r),r=void 0)}}))}R.type="metaMask";function R(l={}){let p,d;return T(M=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:R.type,async connect({chainId:r,isReconnecting:o,withCapabilities:t}={}){const e=await this.getInstance(),c=e.getProvider();let a=[];o&&(a=await this.getAccounts().catch(()=>[]));try{let n,i;if(!(a!=null&&a.length)){const u=M.chains.map(g=>z(g.id));l.connectAndSign||l.connectWith?(l.connectAndSign?n=(await e.connectAndSign({chainIds:u,message:l.connectAndSign})).signature:l.connectWith&&(i=(await e.connectWith({chainIds:u,method:l.connectWith.method,params:l.connectWith.params})).result),a=await this.getAccounts()):a=(await e.connect({chainIds:u})).accounts.map(w=>D(w))}let s=await this.getChainId();if(r&&s!==r){const u=await this.switchChain({chainId:r}).catch(g=>{if(g.code===f.code)throw g;return{id:s}});s=(u==null?void 0:u.id)??s}return n?c.emit("connectAndSign",{accounts:a,chainId:z(s),signResponse:n}):i&&c.emit("connectWith",{accounts:a,chainId:z(s),connectWithResponse:i}),{accounts:t?a.map(u=>({address:u,capabilities:{}})):a,chainId:s}}catch(n){const i=n;throw i.code===f.code?new f(i):i.code===Y.code?new Y(i):i}},async disconnect(){return(await this.getInstance()).disconnect()},async getAccounts(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c)return(await c.request({method:"eth_accounts"})).map(n=>D(n))}const r=await this.getInstance();return r.accounts.length?r.accounts.map(c=>D(c)):(await r.getProvider().request({method:"eth_accounts"})).map(c=>D(c))},async getChainId(){var e;if(!p&&!d){const c=(e=M.providers[0])==null?void 0:e.provider;if(c){const a=await c.request({method:"eth_chainId"});return Number(a)}}const r=await this.getInstance();if(r.getChainId())return Number(r.getChainId());const t=await r.getProvider().request({method:"eth_chainId"});return Number(t)},async getProvider(){var o;if(!p&&!d){const t=(o=M.providers[0])==null?void 0:o.provider;if(t)return t}return(await this.getInstance()).getProvider()},async isAuthorized(){var r;try{if(!p&&!d){const e=(r=M.providers[0])==null?void 0:r.provider;if(e)return(await e.request({method:"eth_accounts"})).length>0}const o=10;return!!(await m(async()=>E(async()=>{const e=await this.getAccounts();if(!e.length)throw new Error("try again");return e},{timeout:o}),{delay:o+1,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:r,chainId:o}){var c,a;const t=M.chains.find(({id:n})=>n===Number(o));if(!t)throw new L(new O);const e=z(o);try{return await(await this.getInstance()).switchChain({chainId:e,chainConfiguration:{blockExplorerUrls:r!=null&&r.blockExplorerUrls?[...r.blockExplorerUrls]:(c=t.blockExplorers)!=null&&c.default.url?[t.blockExplorers.default.url]:void 0,chainId:e,chainName:(r==null?void 0:r.chainName)??t.name,iconUrls:r==null?void 0:r.iconUrls,nativeCurrency:(r==null?void 0:r.nativeCurrency)??t.nativeCurrency,rpcUrls:r!=null&&r.rpcUrls?[...r.rpcUrls]:(a=t.rpcUrls.default)!=null&&a.http?[...t.rpcUrls.default.http]:void 0}}),t}catch(n){const i=n;throw i.code===f.code?new f(i):new L(i)}},async onAccountsChanged(r){M.emitter.emit("change",{accounts:r.map(o=>D(o))})},onChainChanged(r){const o=Number(r);M.emitter.emit("change",{chainId:o})},async onConnect(r){const o=await this.getAccounts();if(o.length===0)return;const t=Number(r.chainId);M.emitter.emit("connect",{accounts:o,chainId:t})},async onDisconnect(r){r&&r.code===1013&&await this.getProvider()&&(await this.getAccounts()).length||M.emitter.emit("disconnect")},onDisplayUri(r){M.emitter.emit("message",{type:"display_uri",data:r})},async getInstance(){var r;if(!p){if(!d){const{createEVMClient:o}=await(async()=>{try{return b(()=>import("./connectors-BkiAkXrA.js"),[])}catch{throw new Error('dependency "@metamask/connect-evm" not found')}})(),t=typeof window>"u"?{name:"wagmi"}:{name:window.location.hostname,url:window.location.href};d=o({...l,skipAutoAnnounce:!0,api:{supportedNetworks:Object.fromEntries(M.chains.map(e=>{var c;return[z(e.id),((c=e.rpcUrls.default)==null?void 0:c.http[0])??""]}))},dapp:l.dapp??{...t,...l.dappMetadata},debug:l.debug??((r=l.logging)==null?void 0:r.sdk),eventHandlers:{accountsChanged:this.onAccountsChanged.bind(this),chainChanged:this.onChainChanged.bind(this),connect:this.onConnect.bind(this),disconnect:this.onDisconnect.bind(this),displayUri:this.onDisplayUri.bind(this)},analytics:{integrationType:"wagmi"},ui:{...l.ui,...l.headless!=null&&{headless:l.headless}},...l.mobile&&{mobile:l.mobile}})}p=await d}return p}}))}function ft(l={}){const p=d=>typeof d.on=="function"&&typeof d.removeListener=="function";return T(d=>{const M=d.chains??l.chains??[],r=d.transports?d.transports:l.transports;let o,t,e,c,a;return{async connect({chainId:n=M[0].id,...i}={}){const s="isReconnecting"in i&&i.isReconnecting||!1,u="withCapabilities"in i&&i.withCapabilities||!1;let g=[],w;if(s&&([g,w]=await Promise.all([this.getAccounts().catch(()=>[]),this.getChainId().catch(()=>{})]),n&&w!==n)){const h=await this.switchChain({chainId:n}).catch(I=>{if(I.code===f.code)throw I;return{id:w}});w=(h==null?void 0:h.id)??w}const y=await this.getProvider();try{if(!(g!=null&&g.length)&&!s){const{RpcSchema:h}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})(),{z:I}=await(()=>{try{return b(()=>import("./connectors-DAWtxdNk.js"),[])}catch{throw new Error('dependency "porto/internal" not found')}})(),j=await y.request({method:"wallet_connect",params:[{..."capabilities"in i?{capabilities:I.encode(h.wallet_connect.Capabilities,i.capabilities??{})}:{},chainIds:[z(n),...M.filter(A=>A.id!==n).map(A=>z(A.id))]}]});g=j.accounts,w=Number(j.chainIds[0])}if(!w)throw new O;return p(y)&&(c&&(y.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),y.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),y.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),y.on("disconnect",a))),{accounts:g.map(h=>typeof h=="object"?u?h:h.address:u?{address:h,capabilities:{}}:h),chainId:w}}catch(h){const I=h;throw I.code===f.code?new f(I):I}},async disconnect(){const n=await this.getProvider();p(n)&&(e&&(n.removeListener("chainChanged",e),e=void 0),a&&(n.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),n.on("connect",c))),await n.request({method:"wallet_disconnect"})},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(s=>D(s))},async getChainId(){const i=await(await this.getProvider()).request({method:"eth_chainId"});return Number(i)},async getPortoInstance(){return o??(o=(async()=>{const{Porto:n}=await(()=>{try{return b(()=>import("./connectors-mXb62Iam.js"),[])}catch{throw new Error('dependency "porto" not found')}})();return n.create({...l,announceProvider:!1,chains:M,transports:r})})()),await o},async getProvider(){return(await this.getPortoInstance()).provider},icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIyIiBoZWlnaHQ9IjQyMiIgdmlld0JveD0iMCAwIDQyMiA0MjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI0MjIiIGhlaWdodD0iNDIyIiBmaWxsPSJibGFjayIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMV8xNSkiPgo8cGF0aCBkPSJNODEgMjg2LjM2NkM4MSAyODAuODkzIDg1LjQ1MDUgMjc2LjQ1NSA5MC45NDA0IDI3Ni40NTVIMzI5LjUxMUMzMzUuMDAxIDI3Ni40NTUgMzM5LjQ1MiAyODAuODkzIDMzOS40NTIgMjg2LjM2NlYzMDYuMTg4QzMzOS40NTIgMzExLjY2MiAzMzUuMDAxIDMxNi4wOTkgMzI5LjUxMSAzMTYuMDk5SDkwLjk0MDRDODUuNDUwNSAzMTYuMDk5IDgxIDMxMS42NjIgODEgMzA2LjE4OFYyODYuMzY2WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTAuOTQwNCAyMzQuODI4Qzg1LjQ1MDUgMjM0LjgyOCA4MSAyMzkuMjY2IDgxIDI0NC43MzlWMjcxLjUzMUM4My44NDMyIDI2OS42MzMgODcuMjYyMiAyNjguNTI2IDkwLjk0MDQgMjY4LjUyNkgzMjkuNTExQzMzMy4xODggMjY4LjUyNiAzMzYuNjA4IDI2OS42MzMgMzM5LjQ1MiAyNzEuNTMxVjI0NC43MzlDMzM5LjQ1MiAyMzkuMjY2IDMzNS4wMDEgMjM0LjgyOCAzMjkuNTExIDIzNC44MjhIOTAuOTQwNFpNMzM5LjQ1MiAyODYuMzY2QzMzOS40NTIgMjgwLjg5MyAzMzUuMDAxIDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTlDODEgMzExLjY2NCA4NS40NTA1IDMxNi4xMDEgOTAuOTQwNCAzMTYuMTAxSDMyOS41MTFDMzM1LjAwMSAzMTYuMTAxIDMzOS40NTIgMzExLjY2NCAzMzkuNDUyIDMwNi4xOVYyODYuMzY2WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTAuOTQwNCAxOTMuMjAxQzg1LjQ1MDUgMTkzLjIwMSA4MSAxOTcuNjM4IDgxIDIwMy4xMTJWMjI5LjkwM0M4My44NDMyIDIyOC4wMDYgODcuMjYyMiAyMjYuODk5IDkwLjk0MDQgMjI2Ljg5OUgzMjkuNTExQzMzMy4xODggMjI2Ljg5OSAzMzYuNjA4IDIyOC4wMDYgMzM5LjQ1MiAyMjkuOTAzVjIwMy4xMTJDMzM5LjQ1MiAxOTcuNjM4IDMzNS4wMDEgMTkzLjIwMSAzMjkuNTExIDE5My4yMDFIOTAuOTQwNFpNMzM5LjQ1MiAyNDQuNzM5QzMzOS40NTIgMjM5LjI2NSAzMzUuMDAxIDIzNC44MjggMzI5LjUxMSAyMzQuODI4SDkwLjk0MDRDODUuNDUwNSAyMzQuODI4IDgxIDIzOS4yNjUgODEgMjQ0LjczOVYyNzEuNTNDODEuMjE3NSAyNzEuMzg1IDgxLjQzODMgMjcxLjI0NSA4MS42NjI0IDI3MS4xMDlDODMuODMyNSAyNjkuNzk0IDg2LjMwNTQgMjY4LjkyNyA4OC45NTIzIDI2OC42MzVDODkuNjA1MSAyNjguNTYzIDkwLjI2ODQgMjY4LjUyNiA5MC45NDA0IDI2OC41MjZIMzI5LjUxMUMzMzAuMTgzIDI2OC41MjYgMzMwLjg0NiAyNjguNTYzIDMzMS40OTggMjY4LjYzNUMzMzQuNDE5IDI2OC45NTcgMzM3LjEyOCAyNjkuOTggMzM5LjQ1MiAyNzEuNTNWMjQ0LjczOVpNMzM5LjQ1MiAyODYuMzY2QzMzOS40NTIgMjgxLjAyMSAzMzUuMjA2IDI3Ni42NjMgMzI5Ljg5MyAyNzYuNDYyQzMyOS43NjcgMjc2LjQ1NyAzMjkuNjQgMjc2LjQ1NSAzMjkuNTExIDI3Ni40NTVIOTAuOTQwNEM4NS40NTA1IDI3Ni40NTUgODEgMjgwLjg5MyA4MSAyODYuMzY2VjMwNi4xODhDODEgMzExLjY2MiA4NS40NTA1IDMxNi4xMDEgOTAuOTQwNCAzMTYuMTAxSDMyOS41MTFDMzM1LjAwMSAzMTYuMTAxIDMzOS40NTIgMzExLjY2MiAzMzkuNDUyIDMwNi4xODhWMjg2LjM2NloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguMDE0NiAxMDRDODguNjE3NyAxMDQgODEgMTExLjU5NSA4MSAxMjAuOTY1VjE4OC4yNzZDODMuODQzMiAxODYuMzc5IDg3LjI2MjIgMTg1LjI3MiA5MC45NDA0IDE4NS4yNzJIMzI5LjUxMUMzMzMuMTg4IDE4NS4yNzIgMzM2LjYwOCAxODYuMzc5IDMzOS40NTIgMTg4LjI3NlYxMjAuOTY1QzMzOS40NTIgMTExLjU5NSAzMzEuODMzIDEwNCAzMjIuNDM3IDEwNEg5OC4wMTQ2Wk0zMzkuNDUyIDIwMy4xMTJDMzM5LjQ1MiAxOTcuNjM4IDMzNS4wMDEgMTkzLjIwMSAzMjkuNTExIDE5My4yMDFIOTAuOTQwNEM4NS40NTA1IDE5My4yMDEgODEgMTk3LjYzOCA4MSAyMDMuMTEyVjIyOS45MDNDODEuMjE3NSAyMjkuNzU4IDgxLjQzODMgMjI5LjYxOCA4MS42NjI0IDIyOS40ODJDODMuODMyNSAyMjguMTY3IDg2LjMwNTQgMjI3LjMgODguOTUyMyAyMjcuMDA4Qzg5LjYwNTEgMjI2LjkzNiA5MC4yNjg0IDIyNi44OTkgOTAuOTQwNCAyMjYuODk5SDMyOS41MTFDMzMwLjE4MyAyMjYuODk5IDMzMC44NDYgMjI2LjkzNiAzMzEuNDk4IDIyNy4wMDhDMzM0LjQxOSAyMjcuMzMgMzM3LjEyOCAyMjguMzUyIDMzOS40NTIgMjI5LjkwM1YyMDMuMTEyWk0zMzkuNDUyIDI0NC43MzlDMzM5LjQ1MiAyMzkuMzkzIDMzNS4yMDYgMjM1LjAzNiAzMjkuODkzIDIzNC44MzVDMzI5Ljc2NyAyMzQuODMgMzI5LjY0IDIzNC44MjggMzI5LjUxMSAyMzQuODI4SDkwLjk0MDRDODUuNDUwNSAyMzQuODI4IDgxIDIzOS4yNjUgODEgMjQ0LjczOVYyNzEuNTNMODEuMDcwNyAyNzEuNDgzQzgxLjI2NTMgMjcxLjM1NSA4MS40NjI1IDI3MS4yMyA4MS42NjI0IDI3MS4xMDlDODEuOTA4MyAyNzAuOTYgODIuMTU4MSAyNzAuODE3IDgyLjQxMTcgMjcwLjY3OUM4NC4zOTUzIDI2OS42MDUgODYuNjA1NCAyNjguODk0IDg4Ljk1MjMgMjY4LjYzNUM4OS4wMDUyIDI2OC42MjkgODkuMDU4IDI2OC42MjQgODkuMTExIDI2OC42MThDODkuNzEyNSAyNjguNTU3IDkwLjMyMjggMjY4LjUyNiA5MC45NDA0IDI2OC41MjZIMzI5LjUxMUMzMjkuNzM4IDI2OC41MjYgMzI5Ljk2NSAyNjguNTMgMzMwLjE5MiAyNjguNTM5QzMzMC42MzEgMjY4LjU1NSAzMzEuMDY3IDI2OC41ODcgMzMxLjQ5OCAyNjguNjM1QzMzNC40MTkgMjY4Ljk1NyAzMzcuMTI4IDI2OS45OCAzMzkuNDUyIDI3MS41M1YyNDQuNzM5Wk0zMzkuNDUyIDI4Ni4zNjZDMzM5LjQ1MiAyODEuMDIxIDMzNS4yMDYgMjc2LjY2MyAzMjkuODkzIDI3Ni40NjJMMzI5Ljg2NSAyNzYuNDYxQzMyOS43NDggMjc2LjQ1NyAzMjkuNjI5IDI3Ni40NTUgMzI5LjUxMSAyNzYuNDU1SDkwLjk0MDRDODUuNDUwNSAyNzYuNDU1IDgxIDI4MC44OTMgODEgMjg2LjM2NlYzMDYuMTg4QzgxIDMxMS42NjIgODUuNDUwNSAzMTYuMTAxIDkwLjk0MDQgMzE2LjEwMUgzMjkuNTExQzMzNS4wMDEgMzE2LjEwMSAzMzkuNDUyIDMxMS42NjIgMzM5LjQ1MiAzMDYuMTg4VjI4Ni4zNjZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjY5Ljg2OCAxMzEuNzUyQzI2OS44NjggMTI2LjI3OCAyNzQuMzE4IDEyMS44NCAyNzkuODA4IDEyMS44NEgzMTEuNjE4QzMxNy4xMDggMTIxLjg0IDMyMS41NTggMTI2LjI3OCAzMjEuNTU4IDEzMS43NTJWMTYxLjQ4NUMzMjEuNTU4IDE2Ni45NTkgMzE3LjEwOCAxNzEuMzk2IDMxMS42MTggMTcxLjM5NkgyNzkuODA4QzI3NC4zMTggMTcxLjM5NiAyNjkuODY4IDE2Ni45NTkgMjY5Ljg2OCAxNjEuNDg1VjEzMS43NTJaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMTUiPgo8cmVjdCB3aWR0aD0iMjU5IiBoZWlnaHQ9IjIxMyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgxIDEwNCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",id:"xyz.ithaca.porto",async isAuthorized(){try{return!!(await m(()=>this.getAccounts())).length}catch{return!1}},name:"Porto",async onAccountsChanged(n){d.emitter.emit("change",{accounts:n.map(i=>D(i))})},onChainChanged(n){const i=Number(n);d.emitter.emit("change",{chainId:i})},async onConnect(n){const i=await this.getAccounts();if(i.length===0)return;const s=Number(n.chainId);d.emitter.emit("connect",{accounts:i,chainId:s});const u=await this.getProvider();p(u)&&(c&&(u.removeListener("connect",c),c=void 0),t||(t=this.onAccountsChanged.bind(this),u.on("accountsChanged",t)),e||(e=this.onChainChanged.bind(this),u.on("chainChanged",e)),a||(a=this.onDisconnect.bind(this),u.on("disconnect",a)))},async onDisconnect(n){const i=await this.getProvider();d.emitter.emit("disconnect"),p(i)&&(e&&(i.removeListener("chainChanged",e),e=void 0),a&&(i.removeListener("disconnect",a),a=void 0),c||(c=this.onConnect.bind(this),i.on("connect",c)))},async setup(){if(!c){const n=await this.getProvider();if(!p(n))return;c=this.onConnect.bind(this),n.on("connect",c)}},async switchChain({chainId:n}){const i=M.find(u=>u.id===n);if(!i)throw new L(new O);return await(await this.getProvider()).request({method:"wallet_switchEthereumChain",params:[{chainId:z(n)}]}),i},type:"injected"}})}W.type="safe";function W(l={}){const{shimDisconnect:p=!1}=l;let d,M;return T(r=>({id:"safe",name:"Safe",type:W.type,async connect({withCapabilities:o}={}){var a;const t=await this.getProvider();if(!t)throw new k;const e=await this.getAccounts(),c=await this.getChainId();return M||(M=this.onDisconnect.bind(this),t.on("disconnect",M)),p&&await((a=r.storage)==null?void 0:a.removeItem("safe.disconnected")),{accounts:o?e.map(n=>({address:n,capabilities:{}})):e,chainId:c}},async disconnect(){var t;const o=await this.getProvider();if(!o)throw new k;M&&(o.removeListener("disconnect",M),M=void 0),p&&await((t=r.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const o=await this.getProvider();if(!o)throw new k;return(await o.request({method:"eth_accounts"})).map(D)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!d){const{default:t}=await(()=>{try{return b(()=>import("./index-BNsmSCur.js"),__vite__mapDeps([27,28,10,11,7,4,6,8,20]))}catch{throw new Error('dependency "@safe-global/safe-apps-sdk" not found')}})(),e=new t(l),c=await E(()=>e.safe.getInfo(),{timeout:l.unstable_getInfoTimeout??10});if(!c)throw new Error("Could not load Safe information");const a=await(async()=>{const n=await(()=>{try{return b(()=>import("./index-Dv6YT5k2.js").then(i=>i.i),__vite__mapDeps([29,4,28,30,7,15,6,8]))}catch{throw new Error('dependency "@safe-global/safe-apps-provider" not found')}})();return typeof n.SafeAppProvider!="function"&&typeof n.default.SafeAppProvider=="function"?n.default.SafeAppProvider:n.SafeAppProvider})();d=new a(c,e)}return d}},async getChainId(){const o=await this.getProvider();if(!o)throw new k;return Number(o.chainId)},async isAuthorized(){var o;try{return p&&await((o=r.storage)==null?void 0:o.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}const Dt="8.0.20";Z.type="walletConnect";function Z(l){const p=l.isNewChainsStale??!0;let d,M;const r="eip155";let o,t,e,c,a,n;return T(i=>({id:"walletConnect",name:"WalletConnect",type:Z.type,async setup(){const s=await this.getProvider().catch(()=>null);s&&(e||(e=this.onConnect.bind(this),s.on("connect",e)),a||(a=this.onSessionDelete.bind(this),s.on("session_delete",a)))},async connect({chainId:s,withCapabilities:u,...g}={}){var w,y;try{const h=await this.getProvider();if(!h)throw new k;c||(c=this.onDisplayUri,h.on("display_uri",c));let I=s;if(!I){const N=await((w=i.storage)==null?void 0:w.getItem("state"))??{};i.chains.some(S=>S.id===N.chainId)?I=N.chainId:I=(y=i.chains[0])==null?void 0:y.id}if(!I)throw new Error("No chains found on connector.");const j=await this.isChainsStale();if(h.session&&j&&await h.disconnect(),!h.session||j){const N=i.chains.filter(C=>C.id!==I).map(C=>C.id);await h.connect({optionalChains:[I,...N],..."pairingTopic"in g?{pairingTopic:g.pairingTopic}:{}}),this.setRequestedChainsIds(i.chains.map(C=>C.id))}const A=(await h.enable()).map(N=>D(N));let v=await this.getChainId();if(s&&v!==s){const N=await this.switchChain({chainId:s}).catch(C=>{var S;if(C.code===f.code&&((S=C.cause)==null?void 0:S.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw C;return{id:v}});v=(N==null?void 0:N.id)??v}return c&&(h.removeListener("display_uri",c),c=void 0),e&&(h.removeListener("connect",e),e=void 0),o||(o=this.onAccountsChanged.bind(this),h.on("accountsChanged",o)),t||(t=this.onChainChanged.bind(this),h.on("chainChanged",t)),n||(n=this.onDisconnect.bind(this),h.on("disconnect",n)),a||(a=this.onSessionDelete.bind(this),h.on("session_delete",a)),{accounts:u?A.map(N=>({address:N,capabilities:{}})):A,chainId:v}}catch(h){throw/(user rejected|connection request reset)/i.test(h==null?void 0:h.message)?new f(h):h}},async disconnect(){const s=await this.getProvider();try{await(s==null?void 0:s.disconnect())}catch(u){if(!/No matching key/i.test(u.message))throw u}finally{t&&(s==null||s.removeListener("chainChanged",t),t=void 0),n&&(s==null||s.removeListener("disconnect",n),n=void 0),e||(e=this.onConnect.bind(this),s==null||s.on("connect",e)),o&&(s==null||s.removeListener("accountsChanged",o),o=void 0),a&&(s==null||s.removeListener("session_delete",a),a=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(u=>D(u))},async getProvider({chainId:s}={}){var g;async function u(){const w=i.chains.map(h=>h.id);if(!w.length)return;const{EthereumProvider:y}=await(()=>{try{return b(()=>import("./index.es-BQrA1NgE.js").then(h=>h.n),__vite__mapDeps([31,6,4,7,8,15,32,14,25,33,34,16]))}catch{throw new Error('dependency "@walletconnect/ethereum-provider" not found')}})();return await y.init({...l,disableProviderPing:!0,optionalChains:w,projectId:l.projectId,rpcMap:Object.fromEntries(i.chains.map(h=>{const[I]=$({chain:h,transports:i.transports});return[h.id,I]})),showQrModal:l.showQrModal??!0})}return d||(M||(M=u()),d=await M,d==null||d.events.setMaxListeners(Number.POSITIVE_INFINITY)),s&&await((g=this.switchChain)==null?void 0:g.call(this,{chainId:s})),d},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[s,u]=await Promise.all([this.getAccounts(),this.getProvider()]);return s.length?await this.isChainsStale()&&u.session?(await u.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:s,chainId:u}){var h,I,j;const g=await this.getProvider();if(!g)throw new k;const w=i.chains.find(A=>A.id===u);if(!w)throw new L(new O);let y=()=>{};try{await Promise.all([new Promise(v=>{y=N=>{N.chainId===u&&(i.emitter.off("change",y),v())},i.emitter.on("change",y)}),g.request({method:"wallet_switchEthereumChain",params:[{chainId:z(u)}]})]);const A=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...A,u]),w}catch(A){i.emitter.off("change",y);const v=A;if(/(user rejected)/i.test(v.message))throw new f(v);try{let N;s!=null&&s.blockExplorerUrls?N=s.blockExplorerUrls:N=(h=w.blockExplorers)!=null&&h.default.url?[(I=w.blockExplorers)==null?void 0:I.default.url]:[];let C;(j=s==null?void 0:s.rpcUrls)!=null&&j.length?C=s.rpcUrls:C=[...w.rpcUrls.default.http];const S={blockExplorerUrls:N,chainId:z(u),chainName:(s==null?void 0:s.chainName)??w.name,iconUrls:s==null?void 0:s.iconUrls,nativeCurrency:(s==null?void 0:s.nativeCurrency)??w.nativeCurrency,rpcUrls:C};await g.request({method:"wallet_addEthereumChain",params:[S]});const V=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...V,u]),w}catch(N){throw new f(N)}}},onAccountsChanged(s){s.length===0?this.onDisconnect():i.emitter.emit("change",{accounts:s.map(u=>D(u))})},onChainChanged(s){const u=Number(s);i.emitter.emit("change",{chainId:u})},async onConnect(s){const u=Number(s.chainId),g=await this.getAccounts();i.emitter.emit("connect",{accounts:g,chainId:u})},async onDisconnect(s){this.setRequestedChainsIds([]),i.emitter.emit("disconnect");const u=await this.getProvider();o&&(u.removeListener("accountsChanged",o),o=void 0),t&&(u.removeListener("chainChanged",t),t=void 0),n&&(u.removeListener("disconnect",n),n=void 0),a&&(u.removeListener("session_delete",a),a=void 0),e||(e=this.onConnect.bind(this),u.on("connect",e))},onDisplayUri(s){i.emitter.emit("message",{type:"display_uri",data:s})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var u,g,w;return d?((w=(g=(u=d.session)==null?void 0:u.namespaces[r])==null?void 0:g.accounts)==null?void 0:w.map(y=>Number.parseInt(y.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var s;return await((s=i.storage)==null?void 0:s.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!p)return!1;const s=i.chains.map(w=>w.id),u=this.getNamespaceChainsIds();if(u.length&&!u.some(w=>s.includes(w)))return!1;const g=await this.getRequestedChainsIds();return!s.every(w=>g.includes(w))},async setRequestedChainsIds(s){var u;await((u=i.storage)==null?void 0:u.setItem(this.requestedChainsStorageKey,s))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}export{yt as baseAccount,q as coinbaseWallet,zt as injected,R as metaMask,Q as mock,ft as porto,W as safe,It as tempoWallet,Dt as version,Z as walletConnect};
@@ -1 +1 @@
1
- import{r as i,j as e,R as Se}from"./react-Vu6nbGi5.js";import{n as $}from"./network-DsCGVBhE.js";import{c as j}from"./index-DjPU0-Js.js";import{n as t,S as Fe}from"./SvgIcon-Cg5l4LDh.js";import{b as C,n as s}from"./colors-LINLm1ux.js";import{k as oe}from"./generateUtilityClasses-BAjjhm6X.js";import"./index-C7-iTfFV.js";import"./ethers-DHDSyreX.js";function A(o){return Math.floor(o).toLocaleString("en-US")}const xe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),Ae=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),Ee=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),ne=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Re=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ge=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),He=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ie=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#credits-nav-g0)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#credits-nav-g1)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#credits-nav-g2)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"credits-nav-g0",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"credits-nav-g1",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"credits-nav-g2",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]})]})]})});const re=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),De=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),ze=new Set([1,5,42,4,3,11155111]),$e=new Set([137,80002,80001]),Pe={56:Ze,10:Oe,42161:Ne,250:Te,43114:Ve};function se({chainId:o,...n}){const a=Pe[o];return a?e.jsx(a,{...n}):ze.has(o)?e.jsx(re,{...n}):$e.has(o)?e.jsx(De,{...n}):e.jsx(re,{...n})}const Ce=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),Le=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Ge={signIn:"SIGN IN",signingIn:"SIGNING IN...",whatsOn:"Explore",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Ke(){const o=j.get("MARKETPLACE_URL"),n=j.get("BUILDER_URL"),a=j.get("EVENTS_URL"),h=j.get("CREATE_URL"),f=j.get("BLOG_URL"),m=j.get("MARKETPLACE_NAMES_URL"),L=j.get("MARKETPLACE_LANDS_URL");return{whatsOn:{label:"whatsOn",url:a},shop:{label:"shop",items:[{label:"shopAll",url:o},{label:"wearables",url:`${o}/browse?assetType=item&section=wearables&status=on_sale`},{label:"emotes",url:`${o}/browse?assetType=item&section=emotes&status=on_sale`},{label:"names",url:m},{label:"land",url:L},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:h},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`}]},learn:{label:"learn",url:f}}}let J=null;function be(){return J||(J=Ke()),J}let Q=null;function Ye(){return Q||(Q=[{label:"viewProfile",url:j.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:j.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:j.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:j.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),Q}const me=["shop","create"],we="Inter, Helvetica, Arial, sans-serif",S="@media (max-width: 991px)",x="@media (min-width: 992px)",Xe={navbar:1100},qe="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",P="rgba(38, 38, 38, 0.8)",ve="0.5px solid #5E5B67",G="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",je=oe({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),K=oe({from:{opacity:0},to:{opacity:1}}),Je=oe({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),Qe=t("nav")({position:"fixed",top:0,left:0,right:0,zIndex:Xe.navbar,fontFamily:we,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:qe,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[S]:{height:64,padding:"12px 16px"},[x]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),e1=t("div")({display:"flex",alignItems:"center",[S]:{gap:12},[x]:{gap:48},"& .mobile-only":{display:"flex",[x]:{display:"none"}},"& .desktop-only":{display:"none",[x]:{display:"flex"}}}),t1=t("div")({display:"flex",alignItems:"center",gap:16,[x]:{gap:48}}),o1=t("div")({display:"flex",alignItems:"center",gap:12,[x]:{gap:24}}),n1=t("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),i1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:s.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},[x]:{display:"none"}}),r1=t("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${s.softWhite}`,borderRadius:6,fontFamily:we,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:s.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),s1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:o?"auto":"none",backgroundColor:o?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[x]:{display:"none"}})),l1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:o?"calc(100vh - 64px)":0,overflowY:"auto",background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:o?G:"none",padding:o?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[x]:{display:"none"}})),ee=t("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),le=t("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,textDecoration:"none","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2}}),a1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,cursor:"pointer","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),d1=t("div")(({open:o})=>({maxHeight:o?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),c1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none","&:hover":{color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ye=i.memo(function({open:n,onClose:a,i18n:h}){const f=be(),[m,L]=i.useState(null),l=i.useCallback(u=>{L(d=>d===u?null:u)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(s1,{open:n,onClick:a}),e.jsxs(l1,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[e.jsx(ee,{children:e.jsx(le,{href:f.whatsOn.url,children:h[f.whatsOn.label]})}),me.map(u=>{var c;const d=f[u],g=m===u;return e.jsxs(ee,{children:[e.jsxs(a1,{onClick:()=>l(u),"aria-expanded":g,children:[h[d.label],g?e.jsx(Re,{}):e.jsx(ne,{})]}),e.jsx(d1,{open:g,children:(c=d.items)==null?void 0:c.map(p=>e.jsxs(c1,{href:p.url,target:p.isExternal?"_blank":void 0,rel:p.isExternal?"noopener noreferrer":void 0,children:[h[p.label],p.isExternal&&e.jsx(ge,{})]},p.label))})]},u)}),e.jsx(ee,{children:e.jsx(le,{href:f.learn.url,children:h[f.learn.label]})})]})]})});ye.displayName="MobileMenu";const p1=t("div")({display:"none",[x]:{display:"flex",alignItems:"center",gap:24}}),h1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),ae=t("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),u1=t(h1)({paddingRight:16}),f1=t("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),x1=t("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,padding:12,animation:`${K} 0.15s ease forwards`}),g1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ke=i.memo(function({desktopDropdown:n,onOpenDropdown:a,onScheduleCloseDropdown:h,activePage:f,i18n:m}){const L=be();return e.jsxs(p1,{children:[e.jsx(ae,{href:L.whatsOn.url,className:f==="whatsOn"?"active":void 0,children:m[L.whatsOn.label]}),me.map(l=>{var u;return e.jsxs(f1,{onMouseEnter:()=>a(l),onMouseLeave:h,children:[e.jsxs(u1,{className:f===l?"active":void 0,"aria-expanded":n===l,"aria-haspopup":"true",onClick:()=>{var g;const d=(g=L[l].items)==null?void 0:g[0];d&&window.open(d.url,"_self")},children:[m[L[l].label],e.jsx(ne,{style:{transform:n===l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===l&&e.jsx(x1,{children:(u=L[l].items)==null?void 0:u.map(d=>e.jsxs(g1,{href:d.url,target:d.isExternal?"_blank":void 0,rel:d.isExternal?"noopener noreferrer":void 0,children:[m[d.label],d.isExternal&&e.jsx(ge,{})]},d.label))})]},l)}),e.jsx(ae,{href:L.learn.url,className:f==="learn"?"active":void 0,children:m[L.learn.label]})]})});ke.displayName="NavLinks";const C1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[S]:{width:40,height:40},[x]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),L1=t("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),b1=t("div")({position:"relative"}),m1=t("div")({position:"fixed",top:92,right:54,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,display:"none",padding:12,gap:24,animation:`${K} 0.15s ease forwards`,minWidth:484,[x]:{display:"flex"}}),w1=t("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),v1=t("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),de=t("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[S]:{gap:12}}),j1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),y1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),k1=t("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),M1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),I1=t("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),te=t("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),S1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:C.primary},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),F1=t("button")(({selected:o})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:o?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:o?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...o?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),A1=t("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:G,padding:"24px 12px",animation:`${K} 0.15s ease forwards`,[x]:{display:"none"}}),E1=t("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),R1=t("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),H1=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),W1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),U1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),B1=t("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),_1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),D1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:s.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),N1=t("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),O1=t("div")({display:"flex",alignItems:"center",gap:6}),ce=t("div")(({clickable:o})=>({display:"flex",alignItems:"center",gap:2,cursor:o?"pointer":"default",color:"white"})),pe=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),Z1=t("div")({position:"relative"}),V1=t("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:s.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),T1=t("div")({width:16,height:16,display:"flex",flexShrink:0}),z1=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),$1={account:We,wearable:Ue,settings:Be,shopping:_e},P1="https://peer.decentraland.org/content/contents/";function he(o){if(o){if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("data:"))return o;if(/^[a-zA-Z0-9]+$/.test(o))return`${P1}${o}`}}const G1={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function ue(o){return G1[o]??`Chain ${o}`}const Me=i.memo(function({isLoadingProfile:n,address:a,avatar:h,userCardOpen:f,onToggleUserCard:m,onClickSignOut:L,selectedChain:l,chains:u,onSelectChain:d,manaBalances:g,onClickBalance:c,i18n:p}){var T,M,z,I;const v=he((M=(T=h==null?void 0:h.avatar)==null?void 0:T.snapshots)==null?void 0:M.face256),[R,Y]=i.useState(),[X,H]=i.useState(!1);i.useEffect(()=>{H(!1)},[v]);const q=v?R===v:!1,D=he((I=(z=h==null?void 0:h.avatar)==null?void 0:z.snapshots)==null?void 0:I.body),w=(h==null?void 0:h.name)||(a?`${a.slice(0,6)}...${a.slice(-4)}`:""),y=a?`${a.slice(0,6)}...${a.slice(-4)}`:"",[W,N]=i.useState(!1),[k,O]=i.useState(!1),F=i.useCallback(()=>{a&&navigator.clipboard.writeText(a).then(()=>{N(!0),setTimeout(()=>N(!1),2e3)}).catch(()=>{})},[a]),_=i.useCallback(r=>{r!==l&&(d==null||d(r)),O(!1)},[l,d]),U=l!==void 0&&u&&u.length>0||g&&Object.keys(g).length>0,Z=()=>U?e.jsxs(N1,{children:[g&&e.jsxs(O1,{children:[g.ETHEREUM!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.ETHEREUM),children:[e.jsx(Ce,{}),e.jsx(pe,{children:A(g.ETHEREUM)})]}),g.MATIC!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.MATIC),children:[e.jsx(Le,{}),e.jsx(pe,{children:A(g.MATIC)})]})]}),l!==void 0&&u&&u.length>0&&e.jsxs(Z1,{children:[e.jsxs(V1,{onClick:()=>O(r=>!r),children:[e.jsx(T1,{children:e.jsx(se,{chainId:l})}),e.jsx(z1,{children:ue(l)}),e.jsx(ne,{style:{width:20,height:20,flexShrink:0,color:"white",transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),k&&e.jsx(D1,{role:"listbox","aria-label":"Select chain",children:u.map(r=>{const b=r===l;return e.jsxs(F1,{selected:b,role:"option","aria-selected":b,onClick:()=>_(r),children:[e.jsx(se,{chainId:r}),ue(r)]},r)})})]})]}):null,B=()=>!v||X?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(xe,{style:{width:"100%",height:"100%"}})}):e.jsx(L1,{src:v,alt:"",onLoad:()=>Y(v),onError:()=>H(!0),style:{opacity:q?1:0}}),V=()=>e.jsxs(e.Fragment,{children:[Ye().map(r=>{const b=$1[r.icon];return e.jsxs(I1,{href:r.url,children:[b&&e.jsx(b,{}),p[r.label]]},r.label)}),e.jsx(te,{}),e.jsxs(S1,{onClick:L,children:[e.jsx(He,{}),p.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(b1,{children:[e.jsx(C1,{onClick:m,"aria-label":"User menu","aria-expanded":f,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&B()}),f&&e.jsxs(m1,{onClick:r=>r.stopPropagation(),children:[e.jsx(w1,{children:D?e.jsx(v1,{src:D,alt:""}):null}),e.jsxs(de,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(j1,{title:w,children:w}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(y1,{children:p.walletAddress}),e.jsxs(k1,{children:[W?p.addressCopied:y,e.jsx(M1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]})]}),Z()]}),e.jsx(te,{}),V()]})]})]}),f&&e.jsxs(A1,{"data-mobile-user-card":!0,onClick:r=>r.stopPropagation(),children:[e.jsxs(E1,{children:[e.jsx(R1,{className:n?"loading":void 0,children:!n&&B()}),e.jsxs(H1,{children:[e.jsx(W1,{title:w,children:w}),e.jsx(U1,{children:p.walletAddress}),e.jsxs(B1,{children:[W?p.addressCopied:y,e.jsx(_1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]}),Z()]})]}),e.jsx(te,{}),e.jsx(de,{children:V()})]})]})});Me.displayName="UserCardPanel";const K1=Se.memo(o=>e.jsx(Fe,{...o,children:e.jsxs("svg",{width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#paint0_linear_1048_15924)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#paint1_linear_1048_15924)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#paint2_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint3_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint4_linear_1048_15924)"}),e.jsx("ellipse",{cx:"71.8039",cy:"43.6779",rx:"4.2556",ry:"4.37564",transform:"rotate(29.3032 71.8039 43.6779)",fill:"white"}),e.jsx("ellipse",{cx:"79.7278",cy:"28.2715",rx:"4.80667",ry:"9.80885",transform:"rotate(29.3032 79.7278 28.2715)",fill:"white"}),e.jsx("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M151.392 93.1941L151.381 92.0695C151.252 79.4163 140.711 69.2321 127.796 69.3636C114.88 69.4951 104.549 79.8919 104.678 92.545L104.689 93.6697L96.1087 93.757C93.0489 93.7882 90.5044 96.0762 90.2087 99.0624L83.3993 167.822C83.0553 171.295 85.8595 174.293 89.4189 174.257L168.873 173.448C172.441 173.411 175.187 170.342 174.757 166.868L166.271 98.265C165.904 95.2956 163.318 93.0727 160.267 93.1037L151.392 93.1941ZM138.208 92.2036C138.152 86.6465 133.53 82.2212 127.927 82.2783C122.324 82.3353 117.794 86.8538 117.85 92.4109L117.862 93.5355L138.22 93.3282L138.208 92.2036ZM151.506 104.348L151.578 111.392C151.614 114.958 148.694 117.879 145.057 117.917C141.419 117.954 138.441 115.093 138.405 111.526L138.333 104.482L117.975 104.689L118.047 111.734C118.083 115.3 115.164 118.221 111.527 118.258C107.889 118.295 104.911 115.434 104.875 111.868L104.803 104.823L101.064 104.861L95.3026 163.042L162.738 162.356L155.557 104.306L151.506 104.348Z",fill:"url(#paint5_linear_1048_15924)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_1048_15924",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"paint1_linear_1048_15924",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_1048_15924",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]}),e.jsxs("linearGradient",{id:"paint3_linear_1048_15924",x1:"103.148",y1:"42.8184",x2:"132.876",y2:"134.167",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint4_linear_1048_15924",x1:"109.14",y1:"55.9116",x2:"124.459",y2:"109.497",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint5_linear_1048_15924",x1:"129.146",y1:"173.852",x2:"128.082",y2:"69.3607",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#6141A6"}),e.jsx("stop",{offset:"1",stopColor:"#6C84FF"})]})]})]})})),Y1=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[S]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[x]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),X1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),q1=t("div")({display:"flex",alignItems:"center",flexShrink:0,[S]:{gap:4},[x]:{gap:12}}),fe=t("button")(({clickable:o})=>({all:"unset",display:"flex",alignItems:"center",cursor:o?"pointer":"default",color:s.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":o?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},[S]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[x]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),J1=t("div")({display:"flex",flexShrink:0,[S]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[x]:{flexDirection:"row",alignItems:"center",gap:24}});function Q1(o){const n=o-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const et=i.memo(function({isSignedIn:n,isSigningIn:a,isLoadingProfile:h=!1,address:f,avatar:m,i18n:L,notificationSlot:l,selectedChain:u,chains:d,onSelectChain:g,manaBalances:c,onClickBalance:p,showManaBalancesInNavbar:v=!1,creditsBalance:R,onClickCredits:Y,activePage:X,onToggleUserCard:H,onClickSignIn:q,onClickSignOut:D}){const w={...Ge,...L},[y,W]=i.useState(!1),[N,k]=i.useState(null),[O,F]=i.useState(!1),_=i.useRef(null),U=i.useRef(null),Z=i.useCallback(()=>{W(r=>(r||(k(null),F(!1)),!r))},[]),B=i.useCallback(()=>{W(!1)},[]),V=i.useCallback(r=>{U.current&&(clearTimeout(U.current),U.current=null),k(r),F(!1)},[]),T=i.useCallback(()=>{U.current=setTimeout(()=>{k(null)},300)},[]),M=i.useCallback(()=>{k(null)},[]),z=i.useCallback(()=>{F(r=>{const b=!r;return b&&(k(null),W(!1)),H==null||H(b),b})},[H]),I=i.useCallback(()=>{F(!1)},[]);return i.useEffect(()=>{function r(b){const Ie=b.target;_.current&&!_.current.contains(Ie)&&(M(),I())}return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[M,I]),i.useEffect(()=>{const r=()=>{I(),M()};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[I,M]),i.useEffect(()=>{function r(b){b.key==="Escape"&&(M(),I(),B())}return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[M,I,B]),i.useEffect(()=>(y?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[y]),e.jsxs(e.Fragment,{children:[e.jsxs(Qe,{ref:_,children:[e.jsxs(e1,{children:[e.jsx(n1,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(xe,{})}),e.jsx(ke,{desktopDropdown:N,onOpenDropdown:V,onScheduleCloseDropdown:T,activePage:X,i18n:w})]}),e.jsxs(t1,{children:[n&&e.jsxs(o1,{children:[(R||v&&c)&&e.jsxs(J1,{children:[R&&e.jsxs(Y1,{onClick:Y,"aria-label":`${A(R.balance)} credits`,children:[e.jsx(K1,{}),A(R.balance),e.jsxs(X1,{className:"credits-tooltip",children:[w.creditsExpiringIn.replace("{days}",String(Q1(R.expiresAt))),e.jsx("br",{}),w.creditsValueNote]})]}),v&&c&&e.jsxs(q1,{children:[c.ETHEREUM!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.ETHEREUM):void 0,"aria-label":`${A(c.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(Ce,{}),A(c.ETHEREUM)]}),c.MATIC!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.MATIC):void 0,"aria-label":`${A(c.MATIC)} MANA on Polygon`,children:[e.jsx(Le,{}),A(c.MATIC)]})]})]}),l&&e.jsx("div",{onClick:()=>{F(!1),k(null)},children:l}),e.jsx(Me,{isLoadingProfile:h,address:f,avatar:m,userCardOpen:O,onToggleUserCard:z,onClickSignOut:D,selectedChain:u,chains:d,onSelectChain:g,manaBalances:v?void 0:c,onClickBalance:v?void 0:p,i18n:w})]}),!n&&e.jsx(r1,{onClick:q,disabled:a,children:a?w.signingIn:w.signIn}),e.jsx(i1,{onClick:Z,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,children:y?e.jsx(Ee,{}):e.jsx(Ae,{})})]})]}),e.jsx(ye,{open:y,onClose:B,i18n:w})]})});et.displayName="Navbar";const dt=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:s.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${Je} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),ct=t("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:C.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),pt=t("div")({position:"relative"}),ht=t("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${K} 0.15s ease forwards`,[S]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),ut=t("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),ft=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),xt=t("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),gt=t("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),Ct=t("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),Lt=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),bt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),mt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),wt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),vt=t("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),jt=t("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:s.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{dt as BellButton,et as Navbar,ct as NotificationBadge,vt as NotificationDot,jt as NotificationEmpty,ut as NotificationHeader,Lt as NotificationItemContent,mt as NotificationItemDescription,Ct as NotificationItemImage,wt as NotificationItemTime,bt as NotificationItemTitle,xt as NotificationList,gt as NotificationListItem,ht as NotificationPanel,ft as NotificationTitle,pt as NotificationWrapper};
1
+ import{r as i,j as e,R as Se}from"./react-Vu6nbGi5.js";import{n as $}from"./network-Bdkbzo_l.js";import{c as j}from"./index-BgtBi25O.js";import{n as t,S as Fe}from"./SvgIcon-DtxoFXOd.js";import{b as C,n as s}from"./colors-LINLm1ux.js";import{k as oe}from"./generateUtilityClasses-C3jgMIyn.js";import"./index-CI_HQD35.js";import"./ethers-JeCAM1sd.js";function A(o){return Math.floor(o).toLocaleString("en-US")}const xe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 89.9999C69.8528 89.9999 89.9999 69.8528 89.9999 45C89.9999 20.1472 69.8528 0 45 0C20.1472 0 0 20.1472 0 45C0 69.8528 20.1472 89.9999 45 89.9999Z",fill:"url(#dcl-nav0)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 80.9996C25.515 86.6471 34.875 89.9996 45 89.9996C55.125 89.9996 64.485 86.6471 72 80.9996H18Z",fill:"#FF2D55"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 71.9996C11.565 75.397 14.603 78.435 18 80.9996H72C75.398 78.435 78.435 75.397 81 71.9996H9Z",fill:"#FFA25A"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 62.9997H3.758C5.153 66.2172 6.93 69.2322 9 71.9997H60.39V62.9997H60.368Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.883 29.25V63H60.008L31.883 29.25Z",fill:"url(#dcl-nav1)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.758 63H31.883V29.25L3.758 63Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 47.25V72H81L60.368 47.25Z",fill:"url(#dcl-nav2)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.757 72H60.367V47.25L39.757 72Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.368 40.5C66.58 40.5 71.618 35.463 71.618 29.25C71.618 23.037 66.58 18 60.368 18C54.154 18 49.118 23.037 49.118 29.25C49.118 35.463 54.154 40.5 60.368 40.5Z",fill:"#FFC95B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.882 22.5C34.989 22.5 37.507 19.981 37.507 16.875C37.507 13.768 34.989 11.25 31.882 11.25C28.776 11.25 26.257 13.768 26.257 16.875C26.257 19.981 28.776 22.5 31.882 22.5Z",fill:"#FFC95B"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"dcl-nav0",x1:"45",y1:"-18.64",x2:"-18.64",y2:"45",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF2D55"}),e.jsx("stop",{offset:"1",stopColor:"#FFBC5B"})]}),e.jsxs("linearGradient",{id:"dcl-nav1",x1:"31.873",y1:"29.25",x2:"31.873",y2:"63",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]}),e.jsxs("linearGradient",{id:"dcl-nav2",x1:"60.36",y1:"47.25",x2:"60.36",y2:"72",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#A524B3"}),e.jsx("stop",{offset:"1",stopColor:"#FF2D55"})]})]})]})}),Ae=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M3 6H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M3 18H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),Ee=i.memo(function(n){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),ne=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),Re=i.memo(function(n){return e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M15 12.5L10 7.5L5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),ge=i.memo(function(n){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 2H14V6",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66699 9.33333L14.0003 2",stroke:"currentColor",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})]})}),He=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M7.5 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.333 14.1667L17.4997 10.0001L13.333 5.83337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.5 10H7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),ie=i.memo(function(n){return e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{x:"3.5",y:"3.5",width:"7",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1"}),e.jsx("path",{d:"M8.5 3.5V2C8.5 1.17157 7.82843 0.5 7 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V7C0.5 7.82843 1.17157 8.5 2 8.5H3.5",stroke:"currentColor",strokeWidth:"1"})]})}),We=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 10C11.3807 10 12.5 8.88071 12.5 7.5C12.5 6.11929 11.3807 5 10 5C8.61929 5 7.5 6.11929 7.5 7.5C7.5 8.88071 8.61929 10 10 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5 16.25C5 14.1789 7.23858 12.5 10 12.5C12.7614 12.5 15 14.1789 15 16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Ue=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M15.8333 7.5L13.3333 3.33337H6.66667L4.16667 7.5L2.5 16.6667H17.5L15.8333 7.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.66667 3.33337L7.5 7.50004L10 9.16671L12.5 7.50004L13.3333 3.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),Be=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16.1666 10C16.1666 9.58337 16.1249 9.16671 16.0416 8.75004L17.9166 7.27087L16.4166 4.72921L14.1666 5.52087C13.5416 4.97921 12.8124 4.56254 11.9999 4.31254L11.6666 1.66671H8.33325L7.99992 4.31254C7.18742 4.56254 6.45825 4.97921 5.83325 5.52087L3.58325 4.72921L2.08325 7.27087L3.95825 8.75004C3.87492 9.16671 3.83325 9.58337 3.83325 10C3.83325 10.4167 3.87492 10.8334 3.95825 11.25L2.08325 12.7292L3.58325 15.2709L5.83325 14.4792C6.45825 15.0209 7.18742 15.4375 7.99992 15.6875L8.33325 18.3334H11.6666L11.9999 15.6875C12.8124 15.4375 13.5416 15.0209 14.1666 14.4792L16.4166 15.2709L17.9166 12.7292L16.0416 11.25C16.1249 10.8334 16.1666 10.4167 16.1666 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),_e=i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M5 1.66663L2.5 4.99996V16.6666C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1577 3.72464 18.3333 4.16667 18.3333H15.8333C16.2754 18.3333 16.6993 18.1577 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6666V4.99996L15 1.66663H5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M13.3334 8.33337C13.3334 9.21743 12.9822 10.0653 12.3571 10.6904C11.7319 11.3155 10.8841 11.6667 10.0001 11.6667C9.11603 11.6667 8.26818 11.3155 7.64306 10.6904C7.01794 10.0653 6.66675 9.21743 6.66675 8.33337",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})});i.memo(function(n){return e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M12 21.75C13.1 21.75 14 20.85 14 19.75H10C10 20.85 10.89 21.75 12 21.75ZM18 15.75V10.75C18 7.68 16.36 5.11 13.5 4.43V3.75C13.5 2.92 12.83 2.25 12 2.25C11.17 2.25 10.5 2.92 10.5 3.75V4.43C7.63 5.11 6 7.67 6 10.75V15.75L4 17.75V18.75H20V17.75L18 15.75Z",fill:"#FCFCFC"})})});i.memo(function(n){return e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#credits-nav-g0)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#credits-nav-g1)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#credits-nav-g2)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"credits-nav-g0",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"credits-nav-g1",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"credits-nav-g2",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]})]})]})});const re=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40Z",fill:"#25292E"}),e.jsx("path",{d:"M11.7 21.1L20 26.0143L28.2857 21.1L20 32.8L11.7 21.1Z",fill:"white",fillOpacity:"0.8"}),e.jsx("path",{d:"M20 24.1857L11.7 19.2714L20 6.20001L28.3 19.2714L20 24.1857Z",fill:"white"})]})}),De=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("rect",{width:"40",height:"40",rx:"20",fill:"white"}),e.jsx("path",{d:"M20 0C9 0 0 9 0 20C0 31 8.85714 40 20 40C31.1429 40 40 31.1429 40 20C40 8.85714 31 0 20 0ZM31.8571 20.1429C31.8571 20.4286 31.7143 20.8571 31.4286 21L25.7143 24.2857C25.4286 24.4286 25 24.4286 24.7143 24.2857L22.5714 23V20L25.1429 21.5714L29.1429 19.2857V14.7143L25.1429 12.4286L21.4286 14.5714V26.2857C21.4286 26.5714 21.2857 27 21 27.1429L15.2857 30.4286C15 30.5714 14.5714 30.5714 14.2857 30.4286L8.57143 27.1429C8.28571 27 8.14286 26.7143 8.14286 26.2857V19.7143C8.14286 19.4286 8.28571 19 8.57143 18.8571L14.2857 15.5714C14.5714 15.4286 15 15.4286 15.2857 15.5714L17.4286 16.8571V20L14.8571 18.4286L10.8571 20.7143V25.2857L14.8571 27.5714L18.8571 25.2857V13.7143C18.8571 13.4286 19 13 19.2857 12.8571L25 9.57143C25.2857 9.42857 25.7143 9.42857 26 9.57143L31.4286 12.8571C31.7143 13 31.8571 13.2857 31.8571 13.7143V20.1429Z",fill:"#8247E5"})]})}),Ne=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 1C30.4286 1 39 9.57143 39 20C39 30.4286 30.4286 39 20 39C9.57143 39 1 30.4286 1 20C1 9.57143 9.57143 1 20 1Z",fill:"#2D374B",stroke:"#96BEDC",strokeWidth:"1.4"}),e.jsx("path",{d:"M16.4286 10.7143C14.2857 10.7143 12 11.2857 11 13L2 27L3 29L5 32L19 10.7143H16.4286Z",fill:"white"}),e.jsx("path",{d:"M20.8571 10.7143L7 33.5L9 36L11.5 37L27.4286 10.7143H20.8571Z",fill:"white"}),e.jsx("path",{d:"M20.1428 26.5714L27.5 37.5L32.5 34L23.8571 20.1429L20.1428 26.5714ZM36.8571 28.8571L38 27.5L28.4286 12.5714L25.1428 18.1429L34.5 33L36.4286 29.8571C36.7143 29.5714 36.8571 29.2857 37 28.8571C36.8571 29 36.8571 28.8571 36.8571 28.8571Z",fill:"#28A0F0"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0731 2.14834C10.1438 2.14834 2.14834 10.1438 2.14834 20.0731C2.14834 29.9915 10.133 37.8517 20.0731 37.8517C29.8616 37.8517 37.8517 29.9969 37.8517 20.0731C37.8517 10.133 29.9915 2.14834 20.0731 2.14834ZM0 20.0731C0 8.95736 8.95736 0 20.0731 0C31.1996 0 40 8.96822 40 20.0731C40 31.1942 31.0372 40 20.0731 40C8.96822 40 0 31.1996 0 20.0731Z",fill:"#96BEDC"})]})}),Oe=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20Z",fill:"#FF3131"}),e.jsx("path",{d:"M13.1714 26.2143C17.0286 26.2143 20.1143 23.0714 20.1143 18.5286C20.1143 15.4 18.0143 13.1 14.4286 13.1C10.5429 13.1 7.5 16.2429 7.5 20.7857C7.5 23.9286 9.64286 26.2143 13.1714 26.2143ZM14.3571 15.7143C15.8714 15.7143 16.8429 16.8714 16.8429 18.7143C16.8429 21.4286 15.2571 23.6 13.2571 23.6C11.7429 23.6 10.7714 22.4286 10.7714 20.6C10.7714 17.9 12.3571 15.7143 14.3429 15.7143H14.3571ZM23.4714 13.3143L20.7857 26H24.0143L24.8 22.2857H26.9C30.3714 22.2857 32.6286 20.3143 32.6286 17.1429C32.6286 14.8429 30.9571 13.3143 28.2 13.3143H23.4857H23.4714ZM26.1857 15.8H27.5286C28.7143 15.8 29.3857 16.3429 29.3857 17.4286C29.3857 18.8571 28.4143 19.8571 26.9 19.8571H25.3143L26.1714 15.8H26.1857Z",fill:"white"})]})}),Ze=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C31.0471 0 40 8.95286 40 20C40 31.0471 31.0471 40 20 40C8.95286 40 0 31.0471 0 20C0 8.95286 8.95286 0 20 0Z",fill:"#F0B90B"}),e.jsx("path",{d:"M10.9914 20L11.0057 25.2886L15.5 27.9314V31.0286L8.37714 26.8514V18.4543L10.9914 20ZM10.9914 14.7114V17.7929L8.37428 16.2457V13.1629L10.9914 11.6157L13.6214 13.1629L10.9929 14.7114H10.9914ZM17.3771 13.1629L19.9943 11.6157L22.6229 13.1629L19.9943 14.7114L17.3771 13.1629Z",fill:"white"}),e.jsx("path",{d:"M12.8829 24.1929V21.0957L15.5 22.6443V25.7257L12.8829 24.1929ZM17.3771 29.0414L19.9943 30.59L22.6229 29.0414V32.1229L19.9943 33.6714L17.3771 32.1229V29.0414ZM26.3771 13.1629L28.9943 11.6157L31.6229 13.1629V16.2457L28.9943 17.7929V14.7114L26.3771 13.1629ZM28.9943 25.2886L29.0086 20L31.6243 18.4514V26.85L24.5014 31.0272V27.9314L28.9943 25.2886Z",fill:"white"}),e.jsx("path",{d:"M27.1171 24.1928L24.5 25.7257V22.6443L27.1171 21.0957V24.1928Z",fill:"white"}),e.jsx("path",{d:"M27.1171 15.8072L27.1314 18.9043L22.6243 21.5472V26.85L20.0086 28.3829L17.3914 26.85V21.5486L12.8843 18.9043V15.8072L15.5129 14.26L19.9914 16.9172L24.4986 14.26L27.1271 15.8072H27.1171ZM12.8829 10.5214L19.9929 6.32858L27.1171 10.5214L24.5 12.0686L19.9943 9.41144L15.5 12.0686L12.8829 10.5214Z",fill:"white"})]})}),Ve=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#E84142"}),e.jsx("path",{d:"M27.0552 20.5197C27.7484 19.3226 28.8691 19.3226 29.5592 20.5197L33.8738 28.0946C34.567 29.291 34 30.2674 32.612 30.2674H23.9211C22.5513 30.2674 21.9842 29.291 22.6593 28.0946L27.0552 20.5197ZM18.709 5.93692C19.4014 4.74055 20.504 4.74055 21.1972 5.93692L22.1577 7.67194L24.4251 11.6562C24.6972 12.2182 24.8386 12.8346 24.8386 13.459C24.8386 14.0835 24.6972 14.6998 24.4251 15.2618L16.8186 28.4409C16.479 28.9688 16.0198 29.4093 15.4781 29.7267C14.9365 30.044 14.3277 30.2292 13.7011 30.2674H7.38566C6.00001 30.2674 5.43298 29.3068 6.12383 28.0946L18.709 5.93692Z",fill:"white"})]})}),Te=i.memo(function(n){return e.jsxs("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[e.jsx("path",{d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z",fill:"#13B5EC"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 16.125L26 13.5V18.75L21.5 16.125ZM26 27.375L20 30.875L14 27.375V21.25L20 24.75L26 21.25V27.375ZM14 13.5L18.5 16.125L14 18.75V13.5ZM20.75 17.375L25.25 20L20.75 22.625V17.375ZM19.25 22.625L14.75 20L19.25 17.375V22.625ZM25.25 12.25L20 15.25L14.75 12.25L20 9.125L25.25 12.25ZM12.5 11.75V28.125L20 32.375L27.5 28.125V11.75L20 7.5L12.5 11.75Z",fill:"white"})]})}),ze=new Set([1,5,42,4,3,11155111]),$e=new Set([137,80002,80001]),Pe={56:Ze,10:Oe,42161:Ne,250:Te,43114:Ve};function se({chainId:o,...n}){const a=Pe[o];return a?e.jsx(a,{...n}):ze.has(o)?e.jsx(re,{...n}):$e.has(o)?e.jsx(De,{...n}):e.jsx(re,{...n})}const Ce=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{d:"M9.864 6.952C9.864 4.968 8.264 3.32 6.28 3.32C4.296 3.32 2.696 4.968 2.696 6.952C2.696 8.92 4.296 10.52 6.28 10.52C8.264 10.52 9.864 8.92 9.864 6.952ZM9.032 6.952C9.032 8.456 7.688 9.688 6.28 9.688C4.728 9.688 3.528 8.488 3.528 6.952C3.528 5.432 4.728 4.152 6.28 4.152C7.704 4.152 9.032 5.432 9.032 6.952ZM12.248 10.424V3.544L6.28 0.12L0.312 3.544V10.424L6.28 13.848L12.248 10.424ZM11.192 9.832L6.296 12.632L1.368 9.832V4.184L6.28 1.336L11.192 4.184V9.832Z",fill:"#FF2D55"})})}),Le=i.memo(function(n){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0L24 12L12 24L0 12L12 0ZM12.0002 3.36001L20.6402 12L12.0002 20.64L3.36023 12L12.0002 3.36001ZM12.0009 16.32C14.3868 16.32 16.3209 14.3859 16.3209 12C16.3209 9.61415 14.3868 7.68002 12.0009 7.68002C9.61507 7.68002 7.68094 9.61415 7.68094 12C7.68094 14.3859 9.61507 16.32 12.0009 16.32Z",fill:"#FCFCFC"})})}),Ge={signIn:"SIGN IN",signingIn:"SIGNING IN...",whatsOn:"Explore",shop:"Shop",shopAll:"Shop All",wearables:"Wearables",emotes:"Emotes",names:"Names",land:"Land",merch:"Merch",create:"Create",createInDecentraland:"Create in Decentraland",publishWearablesEmotes:"Publish Wearables & Emotes",publishLand:"Manage Land",learn:"Learn",getStarted:"Get Started",startCreating:"Start Creating",seeWhatsNew:"See What's New",viewProfile:"View Profile",myAssets:"My Assets",accountSettings:"Account Settings",marketplaceAuthorizations:"Marketplace Authorizations",walletAddress:"User ID",addressCopied:"Copied!",logout:"Log Out",creditsExpiringIn:"Expiring in {days} days",creditsValueNote:"(1 Credit = 1 MANA in value)"};function Ke(){const o=j.get("MARKETPLACE_URL"),n=j.get("BUILDER_URL"),a=j.get("EVENTS_URL"),h=j.get("CREATE_URL"),f=j.get("BLOG_URL"),m=j.get("MARKETPLACE_NAMES_URL"),L=j.get("MARKETPLACE_LANDS_URL");return{whatsOn:{label:"whatsOn",url:a},shop:{label:"shop",items:[{label:"shopAll",url:o},{label:"wearables",url:`${o}/browse?assetType=item&section=wearables&status=on_sale`},{label:"emotes",url:`${o}/browse?assetType=item&section=emotes&status=on_sale`},{label:"names",url:m},{label:"land",url:L},{label:"merch",url:"https://store.decentraland.org/",isExternal:!0}]},create:{label:"create",items:[{label:"createInDecentraland",url:h},{label:"publishWearablesEmotes",url:`${n}/collections`},{label:"publishLand",url:`${n}/land`}]},learn:{label:"learn",url:f}}}let J=null;function be(){return J||(J=Ke()),J}let Q=null;function Ye(){return Q||(Q=[{label:"viewProfile",url:j.get("PROFILE_URL"),icon:"account"},{label:"myAssets",url:j.get("MARKETPLACE_MY_ASSETS_URL"),icon:"wearable"},{label:"accountSettings",url:j.get("ACCOUNT_URL"),icon:"settings"},{label:"marketplaceAuthorizations",url:j.get("MARKETPLACE_SETTINGS_URL"),icon:"shopping"}]),Q}const me=["shop","create"],we="Inter, Helvetica, Arial, sans-serif",S="@media (max-width: 991px)",x="@media (min-width: 992px)",Xe={navbar:1100},qe="0px 1.333px 24px rgba(0,0,0,0.12), 0px 8px 13.333px rgba(0,0,0,0.14), 0px 4px 6.667px rgba(0,0,0,0.2)",P="rgba(38, 38, 38, 0.8)",ve="0.5px solid #5E5B67",G="0 2px 20px 16px rgba(0, 0, 0, 0.25)",E="blur(12.5px)",je=oe({"0%":{opacity:1},"50%":{opacity:.5},"100%":{opacity:1}}),K=oe({from:{opacity:0},to:{opacity:1}}),Je=oe({"0%, 100%":{transform:"rotate(0deg)"},"25%":{transform:"rotate(8deg)"},"50%":{transform:"rotate(-8deg)"},"75%":{transform:"rotate(4deg)"}}),Qe=t("nav")({position:"fixed",top:0,left:0,right:0,zIndex:Xe.navbar,fontFamily:we,display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:-1,background:"rgba(22, 21, 24, 0.75)",boxShadow:qe,backdropFilter:"saturate(1.8) blur(20px)",WebkitBackdropFilter:"saturate(1.8) blur(20px)",transition:"background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease"},[S]:{height:64,padding:"12px 16px"},[x]:{height:92,padding:"16px 54px","&::before":{background:"rgba(22, 21, 24, 0.4)"}}}),e1=t("div")({display:"flex",alignItems:"center",[S]:{gap:12},[x]:{gap:48},"& .mobile-only":{display:"flex",[x]:{display:"none"}},"& .desktop-only":{display:"none",[x]:{display:"flex"}}}),t1=t("div")({display:"flex",alignItems:"center",gap:16,[x]:{gap:48}}),o1=t("div")({display:"flex",alignItems:"center",gap:12,[x]:{gap:24}}),n1=t("a")({display:"flex",alignItems:"center",flexShrink:0,width:40,height:40,"& svg":{width:"100%",height:"100%"}}),i1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:8,color:s.white,cursor:"pointer",flexShrink:0,transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},[x]:{display:"none"}}),r1=t("button")({all:"unset",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 22px",border:`1px solid ${s.softWhite}`,borderRadius:6,fontFamily:we,fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:s.softWhite,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.7)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.12)"},"&:disabled":{opacity:.5,pointerEvents:"none"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),s1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,bottom:0,zIndex:1099,pointerEvents:o?"auto":"none",backgroundColor:o?"rgba(0, 0, 0, 0.3)":"transparent",transition:"background-color 0.25s ease",[x]:{display:"none"}})),l1=t("div")(({open:o})=>({position:"fixed",top:64,left:0,right:0,zIndex:1100,maxHeight:o?"calc(100vh - 64px)":0,overflowY:"auto",background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:o?G:"none",padding:o?12:"0 12px",transition:"max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease",[x]:{display:"none"}})),ee=t("div")({borderBottom:"0.5px solid rgba(255, 255, 255, 0.1)"}),le=t("a")({display:"flex",alignItems:"center",padding:"24px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,textDecoration:"none","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2}}),a1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"24px 16px",boxSizing:"border-box",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:s.white,cursor:"pointer","&:hover":{color:s.gray5},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:20,height:20,flexShrink:0,transition:"transform 0.2s ease"}}),d1=t("div")(({open:o})=>({maxHeight:o?500:0,overflow:"hidden",transition:"max-height 0.25s ease"})),c1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none","&:hover":{color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ye=i.memo(function({open:n,onClose:a,i18n:h}){const f=be(),[m,L]=i.useState(null),l=i.useCallback(u=>{L(d=>d===u?null:u)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(s1,{open:n,onClick:a}),e.jsxs(l1,{open:n,role:"navigation","aria-label":"Mobile navigation",children:[e.jsx(ee,{children:e.jsx(le,{href:f.whatsOn.url,children:h[f.whatsOn.label]})}),me.map(u=>{var c;const d=f[u],g=m===u;return e.jsxs(ee,{children:[e.jsxs(a1,{onClick:()=>l(u),"aria-expanded":g,children:[h[d.label],g?e.jsx(Re,{}):e.jsx(ne,{})]}),e.jsx(d1,{open:g,children:(c=d.items)==null?void 0:c.map(p=>e.jsxs(c1,{href:p.url,target:p.isExternal?"_blank":void 0,rel:p.isExternal?"noopener noreferrer":void 0,children:[h[p.label],p.isExternal&&e.jsx(ge,{})]},p.label))})]},u)}),e.jsx(ee,{children:e.jsx(le,{href:f.learn.url,children:h[f.learn.label]})})]})]})});ye.displayName="MobileMenu";const p1=t("div")({display:"none",[x]:{display:"flex",alignItems:"center",gap:24}}),h1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,transition:"transform 0.2s ease",flexShrink:0}}),ae=t("a")({all:"unset",display:"flex",alignItems:"center",gap:4,padding:"8px 24px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray5,cursor:"pointer",borderRadius:8,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.08)",textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&.active":{color:s.white,textShadow:"0 0 0.5px currentColor, 0 0 0.5px currentColor"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2}}),u1=t(h1)({paddingRight:16}),f1=t("div")({position:"relative",paddingBottom:8,marginBottom:-8,cursor:"pointer"}),x1=t("div")({position:"absolute",top:"100%",left:0,marginTop:2,minWidth:220,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,padding:12,animation:`${K} 0.15s ease forwards`}),g1=t("a")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 16px",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,color:s.gray4,textDecoration:"none",borderRadius:12,whiteSpace:"nowrap",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:s.white},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:-2},"& svg":{width:16,height:16,flexShrink:0,opacity:.6}}),ke=i.memo(function({desktopDropdown:n,onOpenDropdown:a,onScheduleCloseDropdown:h,activePage:f,i18n:m}){const L=be();return e.jsxs(p1,{children:[e.jsx(ae,{href:L.whatsOn.url,className:f==="whatsOn"?"active":void 0,children:m[L.whatsOn.label]}),me.map(l=>{var u;return e.jsxs(f1,{onMouseEnter:()=>a(l),onMouseLeave:h,children:[e.jsxs(u1,{className:f===l?"active":void 0,"aria-expanded":n===l,"aria-haspopup":"true",onClick:()=>{var g;const d=(g=L[l].items)==null?void 0:g[0];d&&window.open(d.url,"_self")},children:[m[L[l].label],e.jsx(ne,{style:{transform:n===l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),n===l&&e.jsx(x1,{children:(u=L[l].items)==null?void 0:u.map(d=>e.jsxs(g1,{href:d.url,target:d.isExternal?"_blank":void 0,rel:d.isExternal?"noopener noreferrer":void 0,children:[m[d.label],d.isExternal&&e.jsx(ge,{})]},d.label))})]},l)}),e.jsx(ae,{href:L.learn.url,className:f==="learn"?"active":void 0,children:m[L.learn.label]})]})});ke.displayName="NavLinks";const C1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,borderRadius:100,backgroundColor:"#FF4BED",border:"2px solid rgba(255, 255, 255, 0.5)",overflow:"hidden",[S]:{width:40,height:40},[x]:{width:48,height:48},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),L1=t("img")({borderRadius:100,objectFit:"cover",width:"100%",height:"100%"}),b1=t("div")({position:"relative"}),m1=t("div")({position:"fixed",top:92,right:54,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,border:ve,borderRadius:12,boxShadow:G,display:"none",padding:12,gap:24,animation:`${K} 0.15s ease forwards`,minWidth:484,[x]:{display:"flex"}}),w1=t("div")({width:151,minHeight:240,borderRadius:12,border:"0.5px solid #c640cd",background:"linear-gradient(180deg, rgba(198, 64, 205, 0.2) 0%, rgba(105, 31, 169, 0.2) 100%)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0}),v1=t("img")({width:"100%",height:"auto",objectFit:"contain",objectPosition:"center"}),de=t("div")({display:"flex",flexDirection:"column",paddingRight:12,paddingTop:4,paddingBottom:4,flex:1,minWidth:0,[S]:{gap:12}}),j1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),y1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),k1=t("div")({display:"flex",alignItems:"center",gap:8,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),M1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,opacity:.7,transition:"opacity 0.15s ease","&:hover":{opacity:1}}),I1=t("a")({display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,textDecoration:"none",whiteSpace:"nowrap",cursor:"pointer",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:s.white,backgroundColor:"rgba(255, 255, 255, 0.05)"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:20,height:20,flexShrink:0}}),te=t("div")({height:.5,backgroundColor:"rgba(255, 255, 255, 0.1)",margin:"8px 0"}),S1=t("button")({all:"unset",display:"flex",alignItems:"center",gap:12,padding:"12px 16px",borderRadius:12,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:16,lineHeight:1.75,color:s.gray4,cursor:"pointer",whiteSpace:"nowrap",transition:"color 0.15s ease","&:hover":{color:C.primary},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:18,height:18}}),F1=t("button")(({selected:o})=>({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,width:"100%",boxSizing:"border-box",padding:"4px 16px",paddingLeft:16,borderRadius:4,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:12,fontWeight:400,letterSpacing:.46,textTransform:"uppercase",color:"white",cursor:"pointer",transition:"background-color 0.15s ease, color 0.15s ease",background:o?"rgba(255, 255, 255, 0.2)":"transparent","&:hover":{background:o?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.1)"},"& svg":{width:16,height:16,flexShrink:0},...o?{"&::before":{content:'""',position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:4,backgroundColor:"#34CE77"}}:{}})),A1=t("div")({position:"fixed",top:64,left:0,right:0,zIndex:1201,background:P,backdropFilter:E,WebkitBackdropFilter:E,boxShadow:G,padding:"24px 12px",animation:`${K} 0.15s ease forwards`,[x]:{display:"none"}}),E1=t("div")({display:"flex",alignItems:"center",gap:12,paddingBottom:8}),R1=t("div")({width:73,height:73,borderRadius:100,border:"3px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#FF4BED",overflow:"hidden",flexShrink:0,"&.loading":{animation:`${je} 1.5s ease-in-out infinite`}}),H1=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0}),W1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:s.softWhite,marginBottom:4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),U1=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.gray4}),B1=t("div")({display:"flex",alignItems:"center",gap:6,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:14,color:s.softWhite,lineHeight:1.75}),_1=t("button")({all:"unset",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:s.softWhite,transition:"opacity 0.15s ease","&:hover":{opacity:.7},"& svg":{width:20,height:20}}),D1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:0,minWidth:150,display:"flex",flexDirection:"column",gap:2,padding:4,background:s.gray0,backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:8,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",zIndex:10}),N1=t("div")({display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px 24px",paddingTop:8,width:"100%"}),O1=t("div")({display:"flex",alignItems:"center",gap:6}),ce=t("div")(({clickable:o})=>({display:"flex",alignItems:"center",gap:2,cursor:o?"pointer":"default",color:"white"})),pe=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:16,letterSpacing:-.8,whiteSpace:"nowrap"}),Z1=t("div")({position:"relative"}),V1=t("div")({display:"flex",alignItems:"center",gap:8,width:150,padding:"4px 4px 4px 8px",backgroundColor:s.gray0,borderRadius:8,cursor:"pointer",whiteSpace:"nowrap",boxSizing:"border-box"}),T1=t("div")({width:16,height:16,display:"flex",flexShrink:0}),z1=t("span")({fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:15,lineHeight:"24px",letterSpacing:.46,textTransform:"uppercase",color:"white",flex:1}),$1={account:We,wearable:Ue,settings:Be,shopping:_e},P1="https://peer.decentraland.org/content/contents/";function he(o){if(o){if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("data:"))return o;if(/^[a-zA-Z0-9]+$/.test(o))return`${P1}${o}`}}const G1={1:"Ethereum",11155111:"Sepolia",137:"Polygon",80002:"Amoy",56:"BSC",43114:"Avalanche",42161:"Arbitrum",10:"Optimism",250:"Fantom"};function ue(o){return G1[o]??`Chain ${o}`}const Me=i.memo(function({isLoadingProfile:n,address:a,avatar:h,userCardOpen:f,onToggleUserCard:m,onClickSignOut:L,selectedChain:l,chains:u,onSelectChain:d,manaBalances:g,onClickBalance:c,i18n:p}){var T,M,z,I;const v=he((M=(T=h==null?void 0:h.avatar)==null?void 0:T.snapshots)==null?void 0:M.face256),[R,Y]=i.useState(),[X,H]=i.useState(!1);i.useEffect(()=>{H(!1)},[v]);const q=v?R===v:!1,D=he((I=(z=h==null?void 0:h.avatar)==null?void 0:z.snapshots)==null?void 0:I.body),w=(h==null?void 0:h.name)||(a?`${a.slice(0,6)}...${a.slice(-4)}`:""),y=a?`${a.slice(0,6)}...${a.slice(-4)}`:"",[W,N]=i.useState(!1),[k,O]=i.useState(!1),F=i.useCallback(()=>{a&&navigator.clipboard.writeText(a).then(()=>{N(!0),setTimeout(()=>N(!1),2e3)}).catch(()=>{})},[a]),_=i.useCallback(r=>{r!==l&&(d==null||d(r)),O(!1)},[l,d]),U=l!==void 0&&u&&u.length>0||g&&Object.keys(g).length>0,Z=()=>U?e.jsxs(N1,{children:[g&&e.jsxs(O1,{children:[g.ETHEREUM!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.ETHEREUM),children:[e.jsx(Ce,{}),e.jsx(pe,{children:A(g.ETHEREUM)})]}),g.MATIC!==void 0&&e.jsxs(ce,{clickable:!!c,onClick:()=>c==null?void 0:c($.Network.MATIC),children:[e.jsx(Le,{}),e.jsx(pe,{children:A(g.MATIC)})]})]}),l!==void 0&&u&&u.length>0&&e.jsxs(Z1,{children:[e.jsxs(V1,{onClick:()=>O(r=>!r),children:[e.jsx(T1,{children:e.jsx(se,{chainId:l})}),e.jsx(z1,{children:ue(l)}),e.jsx(ne,{style:{width:20,height:20,flexShrink:0,color:"white",transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}),k&&e.jsx(D1,{role:"listbox","aria-label":"Select chain",children:u.map(r=>{const b=r===l;return e.jsxs(F1,{selected:b,role:"option","aria-selected":b,onClick:()=>_(r),children:[e.jsx(se,{chainId:r}),ue(r)]},r)})})]})]}):null,B=()=>!v||X?e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",padding:6},children:e.jsx(xe,{style:{width:"100%",height:"100%"}})}):e.jsx(L1,{src:v,alt:"",onLoad:()=>Y(v),onError:()=>H(!0),style:{opacity:q?1:0}}),V=()=>e.jsxs(e.Fragment,{children:[Ye().map(r=>{const b=$1[r.icon];return e.jsxs(I1,{href:r.url,children:[b&&e.jsx(b,{}),p[r.label]]},r.label)}),e.jsx(te,{}),e.jsxs(S1,{onClick:L,children:[e.jsx(He,{}),p.logout]})]});return e.jsxs(e.Fragment,{children:[e.jsxs(b1,{children:[e.jsx(C1,{onClick:m,"aria-label":"User menu","aria-expanded":f,"aria-haspopup":"true",className:n?"loading":void 0,children:!n&&B()}),f&&e.jsxs(m1,{onClick:r=>r.stopPropagation(),children:[e.jsx(w1,{children:D?e.jsx(v1,{src:D,alt:""}):null}),e.jsxs(de,{children:[e.jsxs("div",{style:{paddingLeft:16,paddingBottom:8,display:"flex",flexDirection:"column",gap:4},children:[e.jsx(j1,{title:w,children:w}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(y1,{children:p.walletAddress}),e.jsxs(k1,{children:[W?p.addressCopied:y,e.jsx(M1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]})]}),Z()]}),e.jsx(te,{}),V()]})]})]}),f&&e.jsxs(A1,{"data-mobile-user-card":!0,onClick:r=>r.stopPropagation(),children:[e.jsxs(E1,{children:[e.jsx(R1,{className:n?"loading":void 0,children:!n&&B()}),e.jsxs(H1,{children:[e.jsx(W1,{title:w,children:w}),e.jsx(U1,{children:p.walletAddress}),e.jsxs(B1,{children:[W?p.addressCopied:y,e.jsx(_1,{onClick:F,"aria-label":"Copy address",children:e.jsx(ie,{})})]}),Z()]})]}),e.jsx(te,{}),e.jsx(de,{children:V()})]})]})});Me.displayName="UserCardPanel";const K1=Se.memo(o=>e.jsx(Fe,{...o,children:e.jsxs("svg",{width:"256",height:"256",viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M25.5371 184.328C16.718 180.685 12.5221 170.582 16.1653 161.763L29.8558 128.622L16.1025 95.5076C12.4426 86.6954 16.6194 76.5848 25.4316 72.9248L58.5462 59.1716L72.2367 26.0312C75.8799 17.212 85.9827 13.0162 94.8018 16.6594L127.942 30.3498L161.057 16.5966C169.869 12.9367 179.98 17.1135 183.639 25.9257L197.393 59.0402L230.533 72.7308C239.352 76.374 243.548 86.4767 239.905 95.2958L226.215 128.436L239.968 161.551C243.628 170.363 239.451 180.474 230.639 184.134L197.524 197.887L183.834 231.027C180.19 239.846 170.088 244.042 161.269 240.399L128.128 226.709L95.0135 240.462C86.2013 244.122 76.0907 239.945 72.4307 231.133L58.6775 198.018L25.5371 184.328Z",fill:"url(#paint0_linear_1048_15924)"}),e.jsx("path",{d:"M39.4715 176.904C31.9127 173.782 28.3165 165.123 31.439 157.564L43.173 129.16L31.3852 100.777C28.2483 93.2245 31.8282 84.5587 39.3811 81.4219L67.7634 69.634L79.4974 41.2296C82.62 33.6708 91.279 30.0746 98.8377 33.1971L127.242 44.9312L155.624 33.1434C163.177 30.0065 171.843 33.5863 174.98 41.1392L186.768 69.5215L215.172 81.2555C222.731 84.3781 226.327 93.0371 223.205 100.596L211.471 129L223.258 157.383C226.395 164.935 222.815 173.601 215.262 176.738L186.88 188.526L175.146 216.93C172.024 224.489 163.365 228.085 155.806 224.963L127.401 213.229L99.0192 225.017C91.4664 228.153 82.8006 224.574 79.6637 217.021L67.8759 188.638L39.4715 176.904Z",fill:"url(#paint1_linear_1048_15924)"}),e.jsx("path",{d:"M54.4478 168.591C48.116 165.975 45.1036 158.722 47.7192 152.39L57.5484 128.596L47.6741 104.822C45.0465 98.4947 48.0452 91.2357 54.372 88.6081L78.147 78.7338L87.9762 54.9403C90.5919 48.6086 97.8452 45.5961 104.177 48.2118L127.97 58.041L151.745 48.1667C158.072 45.539 165.331 48.5378 167.959 54.8646L177.833 78.6395L201.627 88.4687C207.958 91.0844 210.971 98.3377 208.355 104.669L198.526 128.463L208.4 152.238C211.028 158.565 208.029 165.824 201.702 168.451L177.927 178.326L168.098 202.119C165.483 208.451 158.229 211.463 151.897 208.848L128.104 199.018L104.329 208.893C98.0022 211.52 90.7432 208.522 88.1155 202.195L78.2413 178.42L54.4478 168.591Z",fill:"url(#paint2_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint3_linear_1048_15924)"}),e.jsx("path",{d:"M62.1592 164.392C56.491 162.05 53.7942 155.557 56.1357 149.889L64.9349 128.589L56.0954 107.305C53.7431 101.641 56.4276 95.1432 62.0914 92.7908L83.3749 83.9513L92.1741 62.6512C94.5157 56.983 101.009 54.2862 106.677 56.6278L127.977 65.4269L149.261 56.5874C154.925 54.2351 161.423 56.9196 163.775 62.5834L172.615 83.8669L193.915 92.6661C199.583 95.0077 202.28 101.501 199.938 107.169L191.139 128.469L199.979 149.753C202.331 155.417 199.646 161.915 193.983 164.267L172.699 173.107L163.9 194.407C161.558 200.075 155.065 202.772 149.397 200.43L128.097 191.631L106.813 200.471C101.149 202.823 94.6511 200.138 92.2988 194.475L83.4593 173.191L62.1592 164.392Z",fill:"url(#paint4_linear_1048_15924)"}),e.jsx("ellipse",{cx:"71.8039",cy:"43.6779",rx:"4.2556",ry:"4.37564",transform:"rotate(29.3032 71.8039 43.6779)",fill:"white"}),e.jsx("ellipse",{cx:"79.7278",cy:"28.2715",rx:"4.80667",ry:"9.80885",transform:"rotate(29.3032 79.7278 28.2715)",fill:"white"}),e.jsx("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M151.392 93.1941L151.381 92.0695C151.252 79.4163 140.711 69.2321 127.796 69.3636C114.88 69.4951 104.549 79.8919 104.678 92.545L104.689 93.6697L96.1087 93.757C93.0489 93.7882 90.5044 96.0762 90.2087 99.0624L83.3993 167.822C83.0553 171.295 85.8595 174.293 89.4189 174.257L168.873 173.448C172.441 173.411 175.187 170.342 174.757 166.868L166.271 98.265C165.904 95.2956 163.318 93.0727 160.267 93.1037L151.392 93.1941ZM138.208 92.2036C138.152 86.6465 133.53 82.2212 127.927 82.2783C122.324 82.3353 117.794 86.8538 117.85 92.4109L117.862 93.5355L138.22 93.3282L138.208 92.2036ZM151.506 104.348L151.578 111.392C151.614 114.958 148.694 117.879 145.057 117.917C141.419 117.954 138.441 115.093 138.405 111.526L138.333 104.482L117.975 104.689L118.047 111.734C118.083 115.3 115.164 118.221 111.527 118.258C107.889 118.295 104.911 115.434 104.875 111.868L104.803 104.823L101.064 104.861L95.3026 163.042L162.738 162.356L155.557 104.306L151.506 104.348Z",fill:"url(#paint5_linear_1048_15924)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_1048_15924",x1:"211.108",y1:"218.484",x2:"77.4791",y2:"27.1647",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"0.885",stopColor:"#FFCBFF"}),e.jsx("stop",{offset:"1",stopColor:"#FDFCFF"})]}),e.jsxs("linearGradient",{id:"paint1_linear_1048_15924",x1:"225.88",y1:"218.975",x2:"71.9492",y2:"33.3822",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#5285BF"}),e.jsx("stop",{offset:"1",stopColor:"#AE66F0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_1048_15924",x1:"195.385",y1:"221.054",x2:"91.1662",y2:"16.6319",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#9BFFFF"}),e.jsx("stop",{offset:"0.5",stopColor:"#B8B9FF"}),e.jsx("stop",{offset:"1",stopColor:"#FFCBFF"})]}),e.jsxs("linearGradient",{id:"paint3_linear_1048_15924",x1:"103.148",y1:"42.8184",x2:"132.876",y2:"134.167",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint4_linear_1048_15924",x1:"109.14",y1:"55.9116",x2:"124.459",y2:"109.497",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"white"}),e.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"paint5_linear_1048_15924",x1:"129.146",y1:"173.852",x2:"128.082",y2:"69.3607",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#6141A6"}),e.jsx("stop",{offset:"1",stopColor:"#6C84FF"})]})]})]})})),Y1=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",gap:4,cursor:"pointer",color:"#A0ABFF",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,flexShrink:0,transition:"opacity 0.15s ease","&:hover":{opacity:.8},"&:hover .credits-tooltip":{opacity:1,pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},"&& svg":{flexShrink:0},[S]:{fontSize:12,letterSpacing:-.6,"&& svg":{width:14,height:14}},[x]:{fontSize:16,letterSpacing:-.8,"&& svg":{width:20,height:20}}}),X1=t("div")({position:"absolute",top:"calc(100% + 4px)",left:"50%",transform:"translateX(-50%)",background:"#43404A",padding:8,borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.3)",fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:1.4,color:"#ECEBED",whiteSpace:"normal",textAlign:"center",minWidth:140,opacity:0,pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:10}),q1=t("div")({display:"flex",alignItems:"center",flexShrink:0,[S]:{gap:4},[x]:{gap:12}}),fe=t("button")(({clickable:o})=>({all:"unset",display:"flex",alignItems:"center",cursor:o?"pointer":"default",color:s.softWhite,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,flexShrink:0,transition:"opacity 0.15s ease","&:hover":o?{opacity:.8}:void 0,"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2,borderRadius:4},[S]:{gap:2,fontSize:12,letterSpacing:-.6,"& svg":{width:14,height:14,flexShrink:0}},[x]:{gap:4,fontWeight:600,fontSize:16,letterSpacing:-.8,"& svg":{width:20,height:20,flexShrink:0}}})),J1=t("div")({display:"flex",flexShrink:0,[S]:{flexDirection:"column-reverse",alignItems:"flex-end",justifyContent:"center",gap:4},[x]:{flexDirection:"row",alignItems:"center",gap:24}});function Q1(o){const n=o-Date.now();return Math.max(0,Math.ceil(n/(1e3*60*60*24)))}const et=i.memo(function({isSignedIn:n,isSigningIn:a,isLoadingProfile:h=!1,address:f,avatar:m,i18n:L,notificationSlot:l,selectedChain:u,chains:d,onSelectChain:g,manaBalances:c,onClickBalance:p,showManaBalancesInNavbar:v=!1,creditsBalance:R,onClickCredits:Y,activePage:X,onToggleUserCard:H,onClickSignIn:q,onClickSignOut:D}){const w={...Ge,...L},[y,W]=i.useState(!1),[N,k]=i.useState(null),[O,F]=i.useState(!1),_=i.useRef(null),U=i.useRef(null),Z=i.useCallback(()=>{W(r=>(r||(k(null),F(!1)),!r))},[]),B=i.useCallback(()=>{W(!1)},[]),V=i.useCallback(r=>{U.current&&(clearTimeout(U.current),U.current=null),k(r),F(!1)},[]),T=i.useCallback(()=>{U.current=setTimeout(()=>{k(null)},300)},[]),M=i.useCallback(()=>{k(null)},[]),z=i.useCallback(()=>{F(r=>{const b=!r;return b&&(k(null),W(!1)),H==null||H(b),b})},[H]),I=i.useCallback(()=>{F(!1)},[]);return i.useEffect(()=>{function r(b){const Ie=b.target;_.current&&!_.current.contains(Ie)&&(M(),I())}return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[M,I]),i.useEffect(()=>{const r=()=>{I(),M()};return window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[I,M]),i.useEffect(()=>{function r(b){b.key==="Escape"&&(M(),I(),B())}return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[M,I,B]),i.useEffect(()=>(y?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[y]),e.jsxs(e.Fragment,{children:[e.jsxs(Qe,{ref:_,children:[e.jsxs(e1,{children:[e.jsx(n1,{href:"https://decentraland.org","aria-label":"Decentraland Home",children:e.jsx(xe,{})}),e.jsx(ke,{desktopDropdown:N,onOpenDropdown:V,onScheduleCloseDropdown:T,activePage:X,i18n:w})]}),e.jsxs(t1,{children:[n&&e.jsxs(o1,{children:[(R||v&&c)&&e.jsxs(J1,{children:[R&&e.jsxs(Y1,{onClick:Y,"aria-label":`${A(R.balance)} credits`,children:[e.jsx(K1,{}),A(R.balance),e.jsxs(X1,{className:"credits-tooltip",children:[w.creditsExpiringIn.replace("{days}",String(Q1(R.expiresAt))),e.jsx("br",{}),w.creditsValueNote]})]}),v&&c&&e.jsxs(q1,{children:[c.ETHEREUM!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.ETHEREUM):void 0,"aria-label":`${A(c.ETHEREUM)} MANA on Ethereum`,children:[e.jsx(Ce,{}),A(c.ETHEREUM)]}),c.MATIC!==void 0&&e.jsxs(fe,{clickable:!!p,onClick:p?()=>p($.Network.MATIC):void 0,"aria-label":`${A(c.MATIC)} MANA on Polygon`,children:[e.jsx(Le,{}),A(c.MATIC)]})]})]}),l&&e.jsx("div",{onClick:()=>{F(!1),k(null)},children:l}),e.jsx(Me,{isLoadingProfile:h,address:f,avatar:m,userCardOpen:O,onToggleUserCard:z,onClickSignOut:D,selectedChain:u,chains:d,onSelectChain:g,manaBalances:v?void 0:c,onClickBalance:v?void 0:p,i18n:w})]}),!n&&e.jsx(r1,{onClick:q,disabled:a,children:a?w.signingIn:w.signIn}),e.jsx(i1,{onClick:Z,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,children:y?e.jsx(Ee,{}):e.jsx(Ae,{})})]})]}),e.jsx(ye,{open:y,onClose:B,i18n:w})]})});et.displayName="Navbar";const dt=t("button")({all:"unset",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:s.white,cursor:"pointer",flexShrink:0,borderRadius:4,"&.has-unread":{animation:`${Je} 0.8s`,animationIterationCount:4},"&:focus-visible":{outline:`2px solid ${C.primary}`,outlineOffset:2},"& svg":{width:24,height:24}}),ct=t("span")({position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:8,backgroundColor:C.primary,color:"#fff",fontSize:10,fontWeight:700,fontFamily:"Inter, Helvetica, Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 4px",lineHeight:1,pointerEvents:"none"}),pt=t("div")({position:"relative"}),ht=t("div")({position:"absolute",top:"100%",right:-12,marginTop:16,width:390,maxHeight:"70vh",zIndex:1102,background:"rgba(38, 38, 38, 0.8)",backdropFilter:"blur(12.5px)",WebkitBackdropFilter:"blur(12.5px)",border:"0.5px solid #5E5B67",borderRadius:12,boxShadow:"0 2px 20px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:12,paddingBottom:24,animation:`${K} 0.15s ease forwards`,[S]:{position:"fixed",top:64,left:0,right:0,width:"auto",maxHeight:"calc(100vh - 64px)",borderRadius:0}}),ut=t("div")({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px 12px 24px",borderBottom:"0.5px solid #5E5B67"}),ft=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:20,color:"#FCFCFC"}),xt=t("div")({display:"flex",flexDirection:"column",overflowY:"auto",flex:1}),gt=t("div")({display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}}),Ct=t("div")({width:56,height:56,borderRadius:"50%",backgroundColor:"rgba(103, 99, 112, 0.4)",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& img, & svg":{width:48,height:48,objectFit:"cover"}}),Lt=t("div")({display:"flex",flexDirection:"column",gap:2,minWidth:0,flex:1}),bt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:600,fontSize:16,lineHeight:1.75,color:"#FCFCFC",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),mt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,lineHeight:"20px",color:"#ECEBED",maxWidth:280,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),wt=t("span")({fontFamily:"Inter, Helvetica, Arial, sans-serif",fontWeight:400,fontSize:12,color:"#A09BA8"}),vt=t("div")({width:8,height:8,borderRadius:4,backgroundColor:"#FF2D55",flexShrink:0,alignSelf:"center"}),jt=t("div")({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 80px",gap:8,color:s.gray3,fontFamily:"Inter, Helvetica, Arial, sans-serif",fontSize:16,textAlign:"center"});export{dt as BellButton,et as Navbar,ct as NotificationBadge,vt as NotificationDot,jt as NotificationEmpty,ut as NotificationHeader,Lt as NotificationItemContent,mt as NotificationItemDescription,Ct as NotificationItemImage,wt as NotificationItemTime,bt as NotificationItemTitle,xt as NotificationList,gt as NotificationListItem,ht as NotificationPanel,ft as NotificationTitle,pt as NotificationWrapper};
@@ -1,4 +1,4 @@
1
- import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BOQwd6ZB.js";import{d as m,r as f,e as v}from"./index-DIMSfymy.js";const h=m`
1
+ import{i as b,b as l}from"./lit-element-B3y9oplH.js";import{n as s}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BRAKTMPG.js";import{d as m,r as f,e as v}from"./index-BA1ToKo5.js";const h=m`
2
2
  button {
3
3
  border: none;
4
4
  background: transparent;
@@ -1,4 +1,4 @@
1
- import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-BOQwd6ZB.js";import{d as c}from"./index-DIMSfymy.js";const p=c`
1
+ import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-BRAKTMPG.js";import{d as c}from"./index-BA1ToKo5.js";const p=c`
2
2
  :host {
3
3
  display: block;
4
4
  background: linear-gradient(
@@ -1,4 +1,4 @@
1
- import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-DIMSfymy.js";import{c as x}from"./index-BOQwd6ZB.js";const g=d`
1
+ import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-BA1ToKo5.js";import{c as x}from"./index-BRAKTMPG.js";const g=d`
2
2
  :host {
3
3
  display: flex;
4
4
  }