@dcl/shop 1.9.2-32490364182.commit-e2e4c6b → 1.9.2

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 (234) hide show
  1. package/_assets/{Activity-C4Kzn5fk.js → Activity-Dt6DfbvQ.js} +64 -64
  2. package/_assets/{AnimatedBackground-BwuwfNrk.js → AnimatedBackground-D9fqKZZL.js} +6 -6
  3. package/_assets/{Assets-CTbQPjcM.js → Assets-Cpt6sCyJ.js} +3 -3
  4. package/_assets/{Authorizations-N-jDljmP.js → Authorizations-QDcGhwOD.js} +4 -4
  5. package/_assets/{Cart-ywFlNL9H.js → Cart-k83ms4yR.js} +2 -2
  6. package/_assets/{CircularProgress-DPY51kqk.js → CircularProgress-Zi497kNF.js} +2 -2
  7. package/_assets/{Collection-BbPumsdq.js → Collection-DN9kyHxU.js} +11 -11
  8. package/_assets/{CollectionCarousel-CoM9Gv9s.js → CollectionCarousel-CiQjTUxK.js} +3 -3
  9. package/_assets/{Confetti-C0-okGdM.js → Confetti-BxjiVKPm.js} +4 -4
  10. package/_assets/{ConstantsUtil-BX0kJSLy.js → ConstantsUtil-DaE8obaZ.js} +2 -2
  11. package/_assets/{ContentClient-FkKb15O9.js → ContentClient-D0SQSgXF.js} +2 -2
  12. package/_assets/{Creator-B-q7Mpyx.js → Creator-DV2Q_EhN.js} +2 -2
  13. package/_assets/{DeploymentBuilder-B-vRvz4q.js → DeploymentBuilder-xN7K8y9o.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-DLxsISmS.js → EmotePlaybackBar-DiG0rn9W.js} +5 -5
  15. package/_assets/{ErrorNotice-Bwbke-jb.js → ErrorNotice-BW8aXw_7.js} +2 -2
  16. package/_assets/{ExchangeController-wLrEO73T.js → ExchangeController-B4BdmoV9.js} +2 -2
  17. package/_assets/{Faq-Bn3oD9jJ.js → Faq-CI78-N0I.js} +2 -2
  18. package/_assets/{GetCredits-1dwWdfH1.js → GetCredits-LUpSuIG_.js} +8 -8
  19. package/_assets/{Grow-A1ryBOre.js → Grow-CjEYi24F.js} +2 -2
  20. package/_assets/{HelpersUtil-zE-WUDXf.js → HelpersUtil-B76CBImb.js} +2 -2
  21. package/_assets/ItemDetail--_To60pF.js +3655 -0
  22. package/_assets/{LoadMore-D-zzUoTF.js → LoadMore-BXkJAed-.js} +2 -2
  23. package/_assets/{ManaPricingBanner.styles-CdSp5zDl.js → ManaPricingBanner.styles-C4fJtJh-.js} +28 -24
  24. package/_assets/{MyAssets-vSbkMz3D.js → MyAssets-1QA09uaq.js} +45 -45
  25. package/_assets/{MyFavorites-V0_oPzp8.js → MyFavorites-BGBd9cHu.js} +2 -2
  26. package/_assets/{NetworkUtil-C2E64C4n.js → NetworkUtil-CUhhiBwq.js} +2 -2
  27. package/_assets/{NotFound-BDte9RrV.js → NotFound-1d5l0fPQ.js} +2 -2
  28. package/_assets/{NotificationsBell-D2-6APUI.js → NotificationsBell-cuQUq5HL.js} +2 -2
  29. package/_assets/{OutfitDetail-2F7CkzM9.js → OutfitDetail-Hft483Ec.js} +2 -2
  30. package/_assets/{OutfitPreview-vLgRLTXf.js → OutfitPreview-WwPNEOjI.js} +2 -2
  31. package/_assets/{OutfitStudio-B7-5-HLr.js → OutfitStudio-Ccib9vIn.js} +2 -2
  32. package/_assets/{StoreSettings-DYpES0Qy.js → StoreSettings-CX45pls-.js} +3 -3
  33. package/_assets/{Success-CbxoRTGm.js → Success-C7bxhod-.js} +2 -2
  34. package/_assets/{SwapController-CNhuabdS.js → SwapController-2o6kQ91x.js} +2 -2
  35. package/_assets/{TradeService-Dq5kA3hU.js → TradeService-p9Z6Y0wD.js} +2 -2
  36. package/_assets/{W3MFrameProviderSingleton-qLuUEBFJ.js → W3MFrameProviderSingleton-Cil5qlaS.js} +4 -4
  37. package/_assets/{WebCryptoP256-BNgcFtmR.js → WebCryptoP256-BZht8npt.js} +2 -2
  38. package/_assets/{authorizations-Wa0_wT0Z.js → authorizations-CJLGounG.js} +2 -2
  39. package/_assets/{basic-CFDlu1LL.js → basic-CV4HIKM2.js} +2 -2
  40. package/_assets/{biconomy-CbaORytl.js → biconomy-C1M_WGYX.js} +2 -2
  41. package/_assets/{browseLayout.styles-CuE2syAy.js → browseLayout.styles-CbyAhCls.js} +2 -2
  42. package/_assets/{browser-XADW-5I9.js → browser-BsRaY-pm.js} +2 -2
  43. package/_assets/{browser-ponyfill-ByHh5PGV.js → browser-ponyfill--2nwarnr.js} +2 -2
  44. package/_assets/{builder-Cil_nXWA.js → builder-CeLuOnuM.js} +2 -2
  45. package/_assets/{buy-DAGs2gvU.js → buy-DymchWn5.js} +2 -2
  46. package/_assets/{buy-gasless-CXg0ob_0.js → buy-gasless-_tY7hzCY.js} +2 -2
  47. package/_assets/{categories-Bwi3LuIK.js → categories-CXj1P-ln.js} +2 -2
  48. package/_assets/{ccip-DxEPKiwF.js → ccip-CQiZ3-qM.js} +2 -2
  49. package/_assets/{ccip-CABvxDcN.js → ccip-FnhUFIYm.js} +2 -2
  50. package/_assets/{chains-CKHFLxhm.js → chains-DfMERfnW.js} +2 -2
  51. package/_assets/collectionPage.styles-ADf8X1pQ.js +40 -0
  52. package/_assets/{common-AHgzOdSB.js → common-C_ndt6fZ.js} +2 -2
  53. package/_assets/{controller-389ptNLt.js → controller-DDEQmJXP.js} +3 -3
  54. package/_assets/{core-CWqAJwp-.js → core-j77nIizU.js} +5 -5
  55. package/_assets/{createSvgIcon-RTgYqIT0.js → createSvgIcon-Du97wPGf.js} +3 -3
  56. package/_assets/{custom-B6FOcLFS.js → custom-Dxc1jEzQ.js} +2 -2
  57. package/_assets/{data-capture-DZoFqspx.js → data-capture-BU8pDw-T.js} +2 -2
  58. package/_assets/{dcl-schemas-CQsQxWYK.js → dcl-schemas-BBgGLe8k.js} +2 -2
  59. package/_assets/{decimals-B8ji3I9T.js → decimals-e9gwXexf.js} +2 -2
  60. package/_assets/{decimals-BrfaLWeO.js → decimals-letC916t.js} +2 -2
  61. package/_assets/{detectExtension-CBEeT0QS.js → detectExtension-C9d6YCCt.js} +2 -2
  62. package/_assets/{disposePreview-NijpZXe_.js → disposePreview-Dezrw02g.js} +2 -2
  63. package/_assets/{email-WN7zlIKb.js → email-DSscz4Vl.js} +2 -2
  64. package/_assets/{embedded-wallet-c9wepCXs.js → embedded-wallet-Kj2rnf5C.js} +2 -2
  65. package/_assets/{emotion-styled.browser.esm-CYlNKf9I.js → emotion-styled.browser.esm-JObVDgrH.js} +2 -2
  66. package/_assets/{engine-C91fSUt_.js → engine-HowSqiPZ.js} +2 -2
  67. package/_assets/{errors-DGWrzcZ2.js → errors-CqEjLz14.js} +2 -2
  68. package/_assets/{estimate-l1-fee-BscyCbli.js → estimate-l1-fee-4Nc3yCK1.js} +2 -2
  69. package/_assets/{eth_estimateGas-zf8E350c.js → eth_estimateGas-07hHMEkF.js} +2 -2
  70. package/_assets/{eth_getStorageAt-C7mDOh_o.js → eth_getStorageAt-B_6XaGoO.js} +2 -2
  71. package/_assets/{eth_getTransactionCount-BZuLOO7k.js → eth_getTransactionCount-BvPk5RHG.js} +2 -2
  72. package/_assets/{ethereum-RVBnTLaL.js → ethereum-eDYZBrz5.js} +2 -2
  73. package/_assets/{ethers-DXUQI3Ut.js → ethers-BKRWnjV9.js} +2 -2
  74. package/_assets/{events-DLLBOQYG.js → events-S6R_9oRG.js} +2 -2
  75. package/_assets/{execute-C57BG5lJ.js → execute-DxIYEcvB.js} +3 -3
  76. package/_assets/{extractIPFS-BKXzy-Rh.js → extractIPFS-DKyUVdVV.js} +2 -2
  77. package/_assets/{features-ALZAg55_.js → features-PyWxVTLV.js} +2 -2
  78. package/_assets/{fetchTokenMetadata-Cr3PV6X1.js → fetchTokenMetadata-DTgK8IFo.js} +3 -3
  79. package/_assets/{field.styles-1qNXB2de.js → field.styles-DKQS3oWo.js} +2 -2
  80. package/_assets/{fortmatic-VEuLc1E0.js → fortmatic-Cd8UWzR7.js} +2 -2
  81. package/_assets/{get-bytecode-Dgh4Jb3X.js → get-bytecode-CNrt-FoQ.js} +2 -2
  82. package/_assets/{get-ecosystem-wallet-info-Bo9paKe6.js → get-ecosystem-wallet-info-Ddh0TZp5.js} +2 -2
  83. package/_assets/{getBalance-BE7W--GK.js → getBalance-HweKqf1d.js} +3 -3
  84. package/_assets/{getInstalledModules-BQ_ILdNe.js → getInstalledModules-DIY2QXZg.js} +2 -2
  85. package/_assets/{getNFT-C4VCKNcO.js → getNFT--CbGnkWO.js} +2 -2
  86. package/_assets/{getNFT-BYOtm54v.js → getNFT-Dm-BLuw5.js} +3 -3
  87. package/_assets/{grid.styles-DzvODQdq.js → grid.styles-C24oAL5O.js} +2 -2
  88. package/_assets/{hashTypedData-X0KUMzG4.js → hashTypedData-Cs3JQ0er.js} +2 -2
  89. package/_assets/{hashTypedData-ChT5ZbgL.js → hashTypedData-DQ_Lbi0o.js} +2 -2
  90. package/_assets/{in-app-zluvfGQX.js → in-app-CW-TClWX.js} +2 -2
  91. package/_assets/{in-app-wallet-calls-BrnhR34A.js → in-app-wallet-calls-Td7jQu3N.js} +2 -2
  92. package/_assets/{index-D6hTzS8e.js → index--RzAwV6Q.js} +2 -2
  93. package/_assets/{index-C5onHlUQ.js → index-9jY2-EBG.js} +2 -2
  94. package/_assets/{index-BZPiWmJM.js → index-AiBvYRW5.js} +2 -2
  95. package/_assets/{index-B9WM1WTc.js → index-B0zOOgnV.js} +2 -2
  96. package/_assets/{index-C8H2vLAP.js → index-B3XA61Pm.js} +2 -2
  97. package/_assets/{index-BrC_okhM.js → index-B6SpJox_.js} +2 -2
  98. package/_assets/{index-CimY5gmO.js → index-B7lHpbYl.js} +2 -2
  99. package/_assets/{index-CLfKjViB.js → index-BCN8HQIT.js} +2 -2
  100. package/_assets/{index-D3jeiuFw.js → index-BEfcKQqS.js} +2 -2
  101. package/_assets/{index-SPFq-ZCl.js → index-BJ6Fw5Al.js} +2 -2
  102. package/_assets/{index-DvfEbLUY.js → index-BJITEOWs.js} +2 -2
  103. package/_assets/{index-DNuGqPWd.js → index-BKoIacqr.js} +3 -3
  104. package/_assets/{index-g_xcW_-R.js → index-BRF6gJ7Q.js} +2 -2
  105. package/_assets/{index-NJ_79PUz.js → index-BSzD0ncl.js} +2 -2
  106. package/_assets/{index-36NDvu3w.js → index-BTGMdjiQ.js} +2 -2
  107. package/_assets/{index-D_3daVMJ.js → index-BTdE-853.js} +2 -2
  108. package/_assets/{index-CarTIHBr.js → index-BTkKLFzm.js} +2 -2
  109. package/_assets/{index-CaHn1v4Y.js → index-BVuZOuvn.js} +3 -3
  110. package/_assets/{index-BAeUu19q.js → index-BXQ9FyQv.js} +3 -3
  111. package/_assets/{index-DJA_1O-1.js → index-BYZ634H2.js} +2 -2
  112. package/_assets/{index-CbZQowQ5.js → index-Bbs_JDF9.js} +6 -6
  113. package/_assets/{index-DDxLpm0Z.js → index-BdM6GuSo.js} +2 -2
  114. package/_assets/{index-OeIHT0cR.js → index-BfNdu86e.js} +2 -2
  115. package/_assets/index-BhsA-pb-.js +2 -0
  116. package/_assets/{index-DHM5xCcE.js → index-BjW_aHIh.js} +2 -2
  117. package/_assets/{index-Dbp8PJtv.js → index-BpCu9mM3.js} +17 -17
  118. package/_assets/{index-RYnkqAG_.js → index-C2gUP7Wd.js} +2 -2
  119. package/_assets/{index-C-cuJat3.js → index-C5UkgriS.js} +2 -2
  120. package/_assets/{index-BcpaMHLt.js → index-C7fDOFW2.js} +2 -2
  121. package/_assets/{index-DAuK57Cr.js → index-CGZa27zg.js} +2 -2
  122. package/_assets/index-CKGO8NWe.css +1 -0
  123. package/_assets/{index-BD0UDtYF.js → index-CMZjflvo.js} +2 -2
  124. package/_assets/{index-DCSeDwHz.js → index-CNbMuq6z.js} +2 -2
  125. package/_assets/{index-C0fNNzGI.js → index-CR-CF0bF.js} +2 -2
  126. package/_assets/{index-drol9D68.js → index-CWMBT2iW.js} +2 -2
  127. package/_assets/{index-2QDRSKTI.js → index-CZXqNGbb.js} +2 -2
  128. package/_assets/{index-BzhoSaGz.js → index-CdfCxJMq.js} +2 -2
  129. package/_assets/{index-CRP5QaPb.js → index-CeMa_Fpw.js} +2 -2
  130. package/_assets/{index-PPamm-Fm.js → index-CoCdUrpV.js} +2 -2
  131. package/_assets/{index-BpQETbke.js → index-CoFmUEdb.js} +4 -4
  132. package/_assets/{index-CSBo6qrQ.js → index-CuBLDtFZ.js} +4 -4
  133. package/_assets/{index-BuABw98X.js → index-CxkbKeKD.js} +2 -2
  134. package/_assets/{index-CZJQqq1_.js → index-CzbStCVl.js} +2 -2
  135. package/_assets/{index-CQ3eT5S4.js → index-CzuWMO-_.js} +2 -2
  136. package/_assets/{index-fKbajirP.js → index-D-M7F27b.js} +2 -2
  137. package/_assets/{index-Cx1edpy0.js → index-D2bN0_3y.js} +2 -2
  138. package/_assets/{index-BQ0ZshU5.js → index-D9kntTpl.js} +2 -2
  139. package/_assets/{index-CwlpUkJ3.js → index-DEOUkXMy.js} +2 -2
  140. package/_assets/{index-1nMFaDfq.js → index-DF089E3i.js} +2 -2
  141. package/_assets/{index-vnVB3yV9.js → index-DNROAxKm.js} +2 -2
  142. package/_assets/{index-4dXpSk57.js → index-DQdcxui0.js} +2 -2
  143. package/_assets/{index-Cwx8-XY7.js → index-DY6pIrBT.js} +2 -2
  144. package/_assets/{index-C4iYwCkM.js → index-D_nXvzND.js} +2 -2
  145. package/_assets/{index-DwCKhtFu.js → index-DjP3X3Jh.js} +2 -2
  146. package/_assets/{index-ioIg36Q5.js → index-Djpq4q5g.js} +4 -4
  147. package/_assets/{index-CTAs_Ona.js → index-DpMjDWPc.js} +2 -2
  148. package/_assets/{index-BN-bGk3n.js → index-Dq2Ka7mB.js} +3 -3
  149. package/_assets/{index-BGw5m7Uo.js → index-EW0m5fIH.js} +3 -3
  150. package/_assets/{index-DlWdq6Mw.js → index-FPMEVY0k.js} +2 -2
  151. package/_assets/{index-C-SyxpJI.js → index-Kerq77jm.js} +2 -2
  152. package/_assets/{index-BPpGc36z.js → index-YSCl74H6.js} +2 -2
  153. package/_assets/{index-DX-xaYge.js → index-_iT3UM2o.js} +2 -2
  154. package/_assets/{index-6m82mLa-.js → index-hGWc_5eF.js} +2 -2
  155. package/_assets/{index-D8CbiuvG.js → index-haPNmxuN.js} +2 -2
  156. package/_assets/{index-DVqruI7F.js → index-kizwd9je.js} +2 -2
  157. package/_assets/index-sQFfvNZX.js +4090 -0
  158. package/_assets/{index-CwSVzkMY.js → index-uVLu1nYC.js} +2 -2
  159. package/_assets/{index-BJ83OlRb.js → index-zyd0LxKG.js} +2 -2
  160. package/_assets/{index.es-BmijG_o0.js → index.es-CReVKXvk.js} +2 -2
  161. package/_assets/{index.es-Bmub6mvo.js → index.es-CnQERyF2.js} +2 -2
  162. package/_assets/{index.es-DW9WuktD.js → index.es-NKUXf-un.js} +5 -5
  163. package/_assets/{index.es-B7WIB4xs.js → index.es-iv8hf5ai.js} +2 -2
  164. package/_assets/items-empty-CJboE1w9.js +2 -0
  165. package/_assets/{jump-DpEhRseo.js → jump-CeInMpQz.js} +2 -2
  166. package/_assets/{linkAccount-Ce-F8zrz.js → linkAccount-CJSln8y3.js} +2 -2
  167. package/_assets/{localBatchGatewayRequest-Dx1kkAvc.js → localBatchGatewayRequest-C4ULrlUp.js} +2 -2
  168. package/_assets/{native-vLlkzvxI.js → native-d_18A6YH.js} +2 -2
  169. package/_assets/{networks-DZ7rrynN.js → networks-a6Oqotld.js} +2 -2
  170. package/_assets/{onramp-DLuIEWh8.js → onramp-CDgb9WlA.js} +2 -2
  171. package/_assets/{openzeppelin-B3-AW1et.js → openzeppelin-MXrpXJs9.js} +2 -2
  172. package/_assets/{ownerOf-Dj22dy0c.js → ownerOf-BSpUUDYN.js} +2 -2
  173. package/_assets/{parseNft-DIyPdcOK.js → parseNft-Dq5u9zmT.js} +3 -3
  174. package/_assets/{parseSignature-D8jGniDr.js → parseSignature-JDi4tHpL.js} +2 -2
  175. package/_assets/{parseSignature-xueulJgr.js → parseSignature-bTbb9ogg.js} +4 -4
  176. package/_assets/{passkeys-CZmD8fl-.js → passkeys-BeLLEm8_.js} +2 -2
  177. package/_assets/{pay-with-exchange-Bc61S8fk.js → pay-with-exchange-uspxaKYi.js} +2 -2
  178. package/_assets/{prepare-contract-call-a0euYGw1.js → prepare-contract-call-glyYfDZw.js} +2 -2
  179. package/_assets/{qr-overlay-Bxcymc80.js → qr-overlay-Cfm7lv4J.js} +4 -4
  180. package/_assets/{react-G9L2um0r.js → react-9aRvCYbm.js} +2 -2
  181. package/_assets/{receive-B2L8XUAK.js → receive-DzqSGOBo.js} +2 -2
  182. package/_assets/{resolveImplementation-CyW7nJOY.js → resolveImplementation-CGlyDT1c.js} +2 -2
  183. package/_assets/{resume-buy-DjsRBHGc.js → resume-buy-DzrSPRFa.js} +2 -2
  184. package/_assets/{rpc-HuV61zaY.js → rpc-B4vokLJn.js} +2 -2
  185. package/_assets/{sales-empty-C2d5fYtD.js → sales-empty-DqC1PsNb.js} +2 -2
  186. package/_assets/{search-empty-a5Cznk_m.js → search-empty-DCFe-ryo.js} +2 -2
  187. package/_assets/{secp256k1-D_V4Ye8O.js → secp256k1-0pYvee0N.js} +2 -2
  188. package/_assets/{secp256k1-DRRm-iBM.js → secp256k1-C-dCnxvN.js} +2 -2
  189. package/_assets/{secp256k1-DVs4vnDB.js → secp256k1-mA2HPwtH.js} +2 -2
  190. package/_assets/{send-7zzvm8CG.js → send-BhFWXDEQ.js} +2 -2
  191. package/_assets/{send-batch-transaction-DzSQ0vye.js → send-batch-transaction-ClbwXouE.js} +2 -2
  192. package/_assets/{send-eip712-transaction-C8xbqwl4.js → send-eip712-transaction-Cvujs_IY.js} +3 -3
  193. package/_assets/{send-gasless-transaction-BApkPjqX.js → send-gasless-transaction-o6WLUU8m.js} +3 -3
  194. package/_assets/{send-transaction-BWqOlzuO.js → send-transaction-brMtxtLa.js} +3 -3
  195. package/_assets/{sendMetaTransaction-DtqCFoTt.js → sendMetaTransaction-BO1lGCgN.js} +2 -2
  196. package/_assets/{sendRawTransaction-DxOSpPmA.js → sendRawTransaction-ClZJFTYs.js} +4 -4
  197. package/_assets/{sentry-RCtiQtjC.js → sentry-CJqFbG11.js} +3 -3
  198. package/_assets/{serializeTransaction-DMjWbKEY.js → serializeTransaction-CHRQ4nRc.js} +2 -2
  199. package/_assets/{session-proposal-CDANnhiF.js → session-proposal-DIVrgaZs.js} +2 -2
  200. package/_assets/{session-request-Bn0fkTkw.js → session-request-DQ1KJ9v-.js} +3 -3
  201. package/_assets/{sha256-Cbk06XOV.js → sha256-D95xpIOk.js} +2 -2
  202. package/_assets/{signing-BH_9uHTG.js → signing-CF8ZzSie.js} +4 -4
  203. package/_assets/{skeleton.styles-KSeN66We.js → skeleton.styles-CDClgQZa.js} +2 -2
  204. package/_assets/{socials-DGCX2gsj.js → socials-Bh2JNm2f.js} +2 -2
  205. package/_assets/{styled-K_r8RfK3.js → styled-BJAerMAa.js} +3 -3
  206. package/_assets/{swaps-CLkWisZt.js → swaps-CP0hsXom.js} +2 -2
  207. package/_assets/{thirdweb-DbdkDnGO.js → thirdweb-CvWXAZKa.js} +4 -4
  208. package/_assets/{to-serializable-transaction-DeE9YtTe.js → to-serializable-transaction-BKfOcqcV.js} +3 -3
  209. package/_assets/{totalSupply-f-_lj4s2.js → totalSupply-Civ1rKAR.js} +2 -2
  210. package/_assets/{transaction-fETmGUb_.js → transaction-LdbEZ3QP.js} +2 -2
  211. package/_assets/{transactionReceipt-BHye7StB.js → transactionReceipt-BWD_rE0W.js} +2 -2
  212. package/_assets/{transactions-DUAV8yRm.js → transactions-BTkg5Hbg.js} +2 -2
  213. package/_assets/{useCreditPacks-DFJcm3cB.js → useCreditPacks-DnU6Nk_-.js} +2 -2
  214. package/_assets/{useInfiniteGrid-CLHeOKn3.js → useInfiniteGrid-DvgTy6W_.js} +2 -2
  215. package/_assets/{useStore-BBUVWiPd.js → useStore-CgGE1SzL.js} +3 -3
  216. package/_assets/{useTheme-DD0IQ_3Z.js → useTheme-DCVzmxd7.js} +2 -2
  217. package/_assets/{utils-u4hNmxb_.js → utils-DF0qXAQT.js} +2 -2
  218. package/_assets/{verifyHash-CY-z2bj3.js → verifyHash-DbgcJwW2.js} +2 -2
  219. package/_assets/{w3m-modal-CAKNlWwi.js → w3m-modal-BCt908iO.js} +2 -2
  220. package/_assets/{w3m-modal-O6Eqk9dV.js → w3m-modal-MofBNC-s.js} +2 -2
  221. package/_assets/{wait-for-tx-receipt-1jFQBtZz.js → wait-for-tx-receipt-BWYdev56.js} +2 -2
  222. package/_assets/{wallets-D1PAyMOY.js → wallets-CyXKPtLh.js} +6 -6
  223. package/_assets/{web-connector-Dnqy9LKi.js → web-connector-CBmqwNC1.js} +4 -4
  224. package/_assets/{writeContract-V_-ojxW6.js → writeContract-U8xgcLR7.js} +2 -2
  225. package/_assets/{zora-sepolia-CIIRKC4C.js → zora-sepolia-BcoXfUYO.js} +2 -2
  226. package/_assets/{zoraTestnet-C2UcAlsp.js → zoraTestnet-CdLP96ll.js} +2 -2
  227. package/index.html +11 -11
  228. package/package.json +2 -2
  229. package/_assets/ItemDetail-DtAVOGXV.js +0 -3490
  230. package/_assets/collectionPage.styles-DZFdmcAO.js +0 -40
  231. package/_assets/index-CpeNCh1-.js +0 -2
  232. package/_assets/index-LDPyoGDo.js +0 -4090
  233. package/_assets/index-l2QjlKjX.css +0 -1
  234. package/_assets/items-empty-Bs5yNmsR.js +0 -2
@@ -1,2 +1,2 @@
1
- import{B as M}from"./dcl-schemas-CQsQxWYK.js";import{B as Tt,m as Mt,K as ot,o as J,q as Bt,Y as F,P as $t,F as B,V as R,r as z,t as At,u as Lt}from"./wallets-D1PAyMOY.js";import"./index-D6hTzS8e.js";import{b as Jt,o as g,c as Et}from"./index-C-SyxpJI.js";import{f as P}from"./index.es-BmijG_o0.js";import{N as zt}from"./index-CaHn1v4Y.js";import"./react-G9L2um0r.js";import"./signing-BH_9uHTG.js";import"./prepare-contract-call-a0euYGw1.js";import"./utils-u4hNmxb_.js";import"./sentry-RCtiQtjC.js";import"./index-LDPyoGDo.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-DeE9YtTe.js";import"./transaction-fETmGUb_.js";import"./get-bytecode-Dgh4Jb3X.js";import"./execute-C57BG5lJ.js";import"./detectExtension-CBEeT0QS.js";import"./linkAccount-Ce-F8zrz.js";import"./index-BpQETbke.js";import"./ethereum-RVBnTLaL.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-ChT5ZbgL.js";import"./send-transaction-BWqOlzuO.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-DVqruI7F.js";import"./index-CTAs_Ona.js";import"./browser-ponyfill-ByHh5PGV.js";import"./events-DLLBOQYG.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="0da9289d-7cbb-4cdb-af17-af077b0606b3",i._sentryDebugIdIdentifier="sentry-dbid-0da9289d-7cbb-4cdb-af17-af077b0606b3")}catch{}})();const ct="error",Gt="wss://relay.walletconnect.org",Vt="wc",Kt="universal_provider",x=`${Vt}@2:${Kt}:`,St="https://rpc.walletconnect.org/v1/",qt="generic",Wt=`${St}bundler`,_="call_status",Yt=86400,v={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function it(i){return i==null||typeof i!="object"&&typeof i!="function"}function Nt(i){return Object.getOwnPropertySymbols(i).filter(t=>Object.prototype.propertyIsEnumerable.call(i,t))}function Dt(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Qt="[object RegExp]",_t="[object String]",Ft="[object Number]",Rt="[object Boolean]",xt="[object Arguments]",Xt="[object Symbol]",Zt="[object Date]",te="[object Map]",ee="[object Set]",ie="[object Array]",se="[object ArrayBuffer]",re="[object Object]",ne="[object DataView]",ae="[object Uint8Array]",oe="[object Uint8ClampedArray]",ce="[object Uint16Array]",he="[object Uint32Array]",pe="[object Int8Array]",ue="[object Int16Array]",le="[object Int32Array]",de="[object Float32Array]",fe="[object Float64Array]";function st(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function me(i,t){return D(i,void 0,i,new Map,t)}function D(i,t,e,s=new Map,n=void 0){const a=n==null?void 0:n(i,t,e,s);if(a!=null)return a;if(it(i))return i;if(s.has(i))return s.get(i);if(Array.isArray(i)){const r=new Array(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return Object.hasOwn(i,"index")&&(r.index=i.index),Object.hasOwn(i,"input")&&(r.input=i.input),r}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const r=new RegExp(i.source,i.flags);return r.lastIndex=i.lastIndex,r}if(i instanceof Map){const r=new Map;s.set(i,r);for(const[o,c]of i)r.set(o,D(c,o,e,s,n));return r}if(i instanceof Set){const r=new Set;s.set(i,r);for(const o of i)r.add(D(o,void 0,e,s,n));return r}if(typeof M<"u"&&M.isBuffer(i))return i.subarray();if(st(i)){const r=new(Object.getPrototypeOf(i)).constructor(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return r}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const r=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return s.set(i,r),y(r,i,e,s,n),r}if(typeof File<"u"&&i instanceof File){const r=new File([i],i.name,{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Blob){const r=new Blob([i],{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Error){const r=new i.constructor;return s.set(i,r),r.message=i.message,r.name=i.name,r.stack=i.stack,r.cause=i.cause,y(r,i,e,s,n),r}if(typeof i=="object"&&ve(i)){const r=Object.create(Object.getPrototypeOf(i));return s.set(i,r),y(r,i,e,s,n),r}return i}function y(i,t,e=i,s,n){const a=[...Object.keys(t),...Nt(t)];for(let r=0;r<a.length;r++){const o=a[r],c=Object.getOwnPropertyDescriptor(i,o);(c==null||c.writable)&&(i[o]=D(t[o],o,e,s,n))}}function ve(i){switch(Dt(i)){case xt:case ie:case se:case ne:case Rt:case Zt:case de:case fe:case pe:case ue:case le:case te:case Ft:case re:case Qt:case ee:case _t:case Xt:case ae:case oe:case ce:case he:return!0;default:return!1}}function ge(i,t){return me(i,(e,s,n,a)=>{if(typeof i=="object")switch(Object.prototype.toString.call(i)){case Ft:case _t:case Rt:{const r=new i.constructor(i==null?void 0:i.valueOf());return y(r,i),r}case xt:{const r={};return y(r,i),r.length=i.length,r[Symbol.iterator]=i[Symbol.iterator],r}default:return}})}function ht(i){return ge(i)}function pt(i){return i!==null&&typeof i=="object"&&Dt(i)==="[object Arguments]"}function ut(i){return typeof i=="object"&&i!==null}function Pe(){}function we(i){return st(i)}function be(i){var e;if(typeof i!="object"||i==null)return!1;if(Object.getPrototypeOf(i)===null)return!0;if(Object.prototype.toString.call(i)!=="[object Object]"){const s=i[Symbol.toStringTag];return s==null||!((e=Object.getOwnPropertyDescriptor(i,Symbol.toStringTag))!=null&&e.writable)?!1:i.toString()===`[object ${s}]`}let t=i;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(i)===t}function ye(i){if(it(i))return i;if(Array.isArray(i)||st(i)||i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);const t=Object.getPrototypeOf(i),e=t.constructor;if(i instanceof Date||i instanceof Map||i instanceof Set)return new e(i);if(i instanceof RegExp){const s=new e(i);return s.lastIndex=i.lastIndex,s}if(i instanceof DataView)return new e(i.buffer.slice(0));if(i instanceof Error){const s=new e(i.message);return s.stack=i.stack,s.name=i.name,s.cause=i.cause,s}if(typeof File<"u"&&i instanceof File)return new e([i],i.name,{type:i.type,lastModified:i.lastModified});if(typeof i=="object"){const s=Object.create(t);return Object.assign(s,i)}return i}function Ie(i,...t){const e=t.slice(0,-1),s=t[t.length-1];let n=i;for(let a=0;a<e.length;a++){const r=e[a];n=Z(n,r,s,new Map)}return n}function Z(i,t,e,s){if(it(i)&&(i=Object(i)),t==null||typeof t!="object")return i;if(s.has(t))return ye(s.get(t));if(s.set(t,i),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...Nt(t)];for(let a=0;a<n.length;a++){const r=n[a];let o=t[r],c=i[r];if(pt(o)&&(o={...o}),pt(c)&&(c={...c}),typeof M<"u"&&M.isBuffer(o)&&(o=ht(o)),Array.isArray(o))if(typeof c=="object"&&c!=null){const l=[],h=Reflect.ownKeys(c);for(let w=0;w<h.length;w++){const d=h[w];l[d]=c[d]}c=l}else c=[];const u=e(c,o,r,i,t,s);u!=null?i[r]=u:Array.isArray(o)||ut(c)&&ut(o)?i[r]=Z(c,o,e,s):c==null&&be(o)?i[r]=Z({},o,e,s):c==null&&we(o)?i[r]=ht(o):(c===void 0||o!==void 0)&&(i[r]=o)}return i}function Ce(i,...t){return Ie(i,...t,Pe)}var Oe=Object.defineProperty,je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,dt=(i,t,e)=>t in i?Oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,U=(i,t)=>{for(var e in t||(t={}))$e.call(t,e)&&dt(i,e,t[e]);if(lt)for(var e of lt(t))Ae.call(t,e)&&dt(i,e,t[e]);return i},Ee=(i,t)=>je(i,He(t));function f(i,t,e){var s;const n=B(i);return((s=t.rpcMap)==null?void 0:s[n.reference])||`${St}?chainId=${n.namespace}:${n.reference}&projectId=${e}`}function I(i){return i.includes(":")?i.split(":")[1]:i}function Ut(i){return i.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function Se(i,t){const e=Object.keys(t.namespaces).filter(n=>n.includes(i));if(!e.length)return[];const s=[];return e.forEach(n=>{const a=t.namespaces[n].accounts;s.push(...a)}),s}function ft(i){return Object.fromEntries(Object.entries(i).filter(([t,e])=>{var s,n;return((s=e==null?void 0:e.chains)==null?void 0:s.length)&&((n=e==null?void 0:e.chains)==null?void 0:n.length)>0}))}function k(i={},t={}){const e=ft(mt(i)),s=ft(mt(t));return Ce(e,s)}function mt(i){var t,e,s,n,a;const r={};if(!R(i))return r;for(const[o,c]of Object.entries(i)){const u=$t(o)?[o]:c.chains,l=c.methods||[],h=c.events||[],w=c.rpcMap||{},d=F(o);r[d]=Ee(U(U({},r[d]),c),{chains:z(u,(t=r[d])==null?void 0:t.chains),methods:z(l,(e=r[d])==null?void 0:e.methods),events:z(h,(s=r[d])==null?void 0:s.events)}),(R(w)||R(((n=r[d])==null?void 0:n.rpcMap)||{}))&&(r[d].rpcMap=U(U({},w),(a=r[d])==null?void 0:a.rpcMap))}return r}function vt(i){return i.includes(":")?i.split(":")[2]:i}function gt(i){const t={};for(const[e,s]of Object.entries(i)){const n=s.methods||[],a=s.events||[],r=s.accounts||[],o=$t(e)?[e]:s.chains?s.chains:Ut(s.accounts);t[e]={chains:o,methods:n,events:a,accounts:r}}return t}function G(i){return typeof i=="number"?i:i.includes("0x")?parseInt(i,16):(i=i.includes(":")?i.split(":")[1]:i,isNaN(Number(i))?i:Number(i))}function qe(i){try{const t=JSON.parse(i);return typeof t=="object"&&t!==null&&!Array.isArray(t)}catch{return!1}}const kt={},p=i=>kt[i],V=(i,t)=>{kt[i]=t};var Ne=Object.defineProperty,Pt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,wt=(i,t,e)=>t in i?Ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,bt=(i,t)=>{for(var e in t||(t={}))De.call(t,e)&&wt(i,e,t[e]);if(Pt)for(var e of Pt(t))_e.call(t,e)&&wt(i,e,t[e]);return i};const yt="eip155",Fe=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],Re=i=>i&&i.startsWith("0x")?BigInt(i).toString(10):i,K=i=>i&&i.startsWith("0x")?i:`0x${BigInt(i).toString(16)}`,It=i=>Object.keys(i).filter(t=>Fe.includes(t)).reduce((t,e)=>(t[e]=xe(i[e]),t),{}),xe=i=>typeof i=="string"&&qe(i)?JSON.parse(i):i,Ue=(i,t,e)=>{const{sessionProperties:s={},scopedProperties:n={}}=i,a={};if(!R(n)&&!R(s))return;const r=It(s);for(const o of e){const c=Re(o);if(!c)continue;a[K(c)]=r;const u=n==null?void 0:n[`${yt}:${c}`];if(u){const l=u==null?void 0:u[`${yt}:${c}:${t}`];a[K(c)]=bt(bt({},a[K(c)]),It(l||u))}}for(const[o,c]of Object.entries(a))Object.keys(c).length===0&&delete a[o];return Object.keys(a).length>0?a:void 0};var ke=Object.defineProperty,Te=(i,t,e)=>t in i?ke(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Me=(i,t,e)=>Te(i,t+"",e);let W;class rt{constructor(t){Me(this,"storage"),this.storage=t}async getItem(t){return await this.storage.getItem(t)}async setItem(t,e){return await this.storage.setItem(t,e)}async removeItem(t){return await this.storage.removeItem(t)}static getStorage(t){return W||(W=new rt(t)),W}}var Be=Object.defineProperty,Le=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ot=(i,t,e)=>t in i?Be(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ve=(i,t)=>{for(var e in t||(t={}))ze.call(t,e)&&Ot(i,e,t[e]);if(Ct)for(var e of Ct(t))Ge.call(t,e)&&Ot(i,e,t[e]);return i},Ke=(i,t)=>Le(i,Je(t));async function We(i,t){const e=B(i.result.capabilities.caip345.caip2),s=i.result.capabilities.caip345.transactionHashes,n=await Promise.allSettled(s.map(h=>Ye(e.reference,h,t))),a=n.filter(h=>h.status==="fulfilled").map(h=>h.value).filter(h=>h);n.filter(h=>h.status==="rejected").forEach(h=>console.warn("Failed to fetch transaction receipt:",h.reason));const r=!a.length||a.some(h=>!h),o=a.every(h=>(h==null?void 0:h.status)==="0x1"),c=a.every(h=>(h==null?void 0:h.status)==="0x0"),u=a.some(h=>(h==null?void 0:h.status)==="0x0");let l;return r?l=100:o?l=200:c?l=500:u&&(l=600),{id:i.result.id,version:i.request.version,atomic:i.request.atomicRequired,chainId:i.request.chainId,capabilities:i.result.capabilities,receipts:a,status:l}}async function Ye(i,t,e){return await e(parseInt(i)).request(Et("eth_getTransactionReceipt",[t]))}async function Qe({sendCalls:i,storage:t}){const e=await t.getItem(_);await t.setItem(_,Ke(Ve({},e),{[i.result.id]:{request:i.request,result:i.result,expiry:Lt(Yt)}}))}async function Xe({resultId:i,storage:t}){const e=await t.getItem(_);if(e){delete e[i],await t.setItem(_,e);for(const s in e)At(e[s].expiry)&&delete e[s];await t.setItem(_,e)}}async function Ze({resultId:i,storage:t}){const e=await t.getItem(_),s=e==null?void 0:e[i];if(s&&!At(s.expiry))return s;await Xe({resultId:i,storage:t})}var ti=Object.defineProperty,ei=(i,t,e)=>t in i?ti(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,C=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){C(this,"name","polkadot"),C(this,"client"),C(this,"httpProviders"),C(this,"events"),C(this,"namespace"),C(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var si=Object.defineProperty,ri=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,tt=(i,t,e)=>t in i?si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Y=(i,t)=>{for(var e in t||(t={}))ai.call(t,e)&&tt(i,e,t[e]);if(jt)for(var e of jt(t))oi.call(t,e)&&tt(i,e,t[e]);return i},Q=(i,t)=>ri(i,ni(t)),b=(i,t,e)=>tt(i,typeof t!="symbol"?t+"":t,e);class ci{constructor(t){b(this,"name","eip155"),b(this,"client"),b(this,"chainId"),b(this,"namespace"),b(this,"httpProviders"),b(this,"events"),b(this,"storage"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=rt.getStorage(this.client.core.storage)}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t);case"wallet_sendCalls":return await this.sendCalls(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=parseInt(I(e));t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(t){const e=t||this.chainId;return this.httpProviders[e]||(this.httpProviders=Q(Y({},this.httpProviders),{[e]:this.createHttpProvider(e)}),this.httpProviders[e])}async handleSwitchChain(t){var e,s;let n=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const a=parseInt(n,16);if(this.isChainApproved(a))this.setDefaultChain(`${a}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${a}`);else throw new Error(`Failed to switch to chain 'eip155:${a}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,n,a,r;const o=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0],c=((a=(n=t.request)==null?void 0:n.params)==null?void 0:a[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const u=this.client.session.get(t.topic),l=((r=u==null?void 0:u.sessionProperties)==null?void 0:r.capabilities)||{},h=`${o}${c.join(",")}`,w=l==null?void 0:l[h];if(w)return w;let d;try{d=Ue(u,o,c)}catch(L){console.warn("Failed to extract capabilities from session",L)}if(d)return d;const at=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:Q(Y({},u.sessionProperties||{}),{capabilities:Q(Y({},l||{}),{[h]:at})})})}catch(L){console.warn("Failed to update session with capabilities",L)}return at}async getCallStatus(t){var e,s,n;const a=this.client.session.get(t.topic),r=(e=a.sessionProperties)==null?void 0:e.bundler_name;if(r){const u=this.getBundlerUrl(t.chainId,r);try{return await this.getUserOperationReceipt(u,t)}catch(l){console.warn("Failed to fetch call status from bundler",l,u)}}const o=(s=a.sessionProperties)==null?void 0:s.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,t)}catch(u){console.warn("Failed to fetch call status from custom bundler",u,o)}const c=await Ze({resultId:(n=t.request.params)==null?void 0:n[0],storage:this.storage});if(c)try{return await We(c,this.getHttpProvider.bind(this))}catch(u){console.warn("Failed to fetch call status from stored send calls",u,c)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const n=new URL(t),a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Et("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!a.ok)throw new Error(`Failed to fetch user operation receipt - ${a.status}`);return await a.json()}getBundlerUrl(t,e){return`${Wt}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}async sendCalls(t){var e,s,n;const a=await this.client.request(t),r=(e=t.request.params)==null?void 0:e[0],o=a==null?void 0:a.id,c=(a==null?void 0:a.capabilities)||{},u=(s=c==null?void 0:c.caip345)==null?void 0:s.caip2,l=(n=c==null?void 0:c.caip345)==null?void 0:n.transactionHashes;return!o||!u||!(l!=null&&l.length)||await Qe({sendCalls:{request:r,result:a},storage:this.storage}),a}}var hi=Object.defineProperty,pi=(i,t,e)=>t in i?hi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t,e)=>pi(i,typeof t!="symbol"?t+"":t,e);class ui{constructor(t){O(this,"name","solana"),O(this,"client"),O(this,"httpProviders"),O(this,"events"),O(this,"namespace"),O(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var li=Object.defineProperty,di=(i,t,e)=>t in i?li(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,j=(i,t,e)=>di(i,typeof t!="symbol"?t+"":t,e);class fi{constructor(t){j(this,"name","cosmos"),j(this,"client"),j(this,"httpProviders"),j(this,"events"),j(this,"namespace"),j(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var mi=Object.defineProperty,vi=(i,t,e)=>t in i?mi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t,e)=>vi(i,typeof t!="symbol"?t+"":t,e);class gi{constructor(t){H(this,"name","algorand"),H(this,"client"),H(this,"httpProviders"),H(this,"events"),H(this,"namespace"),H(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Pi=Object.defineProperty,wi=(i,t,e)=>t in i?Pi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$=(i,t,e)=>wi(i,typeof t!="symbol"?t+"":t,e);class bi{constructor(t){$(this,"name","cip34"),$(this,"client"),$(this,"httpProviders"),$(this,"events"),$(this,"namespace"),$(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),n=I(e);t[n]=this.createHttpProvider(n,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var yi=Object.defineProperty,Ii=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ii(i,typeof t!="symbol"?t+"":t,e);class Ci{constructor(t){A(this,"name","elrond"),A(this,"client"),A(this,"httpProviders"),A(this,"events"),A(this,"namespace"),A(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Oi=Object.defineProperty,ji=(i,t,e)=>t in i?Oi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,E=(i,t,e)=>ji(i,typeof t!="symbol"?t+"":t,e);class Hi{constructor(t){E(this,"name","multiversx"),E(this,"client"),E(this,"httpProviders"),E(this,"events"),E(this,"namespace"),E(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var $i=Object.defineProperty,Ai=(i,t,e)=>t in i?$i(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,S=(i,t,e)=>Ai(i,typeof t!="symbol"?t+"":t,e);class Ei{constructor(t){S(this,"name","near"),S(this,"client"),S(this,"httpProviders"),S(this,"events"),S(this,"namespace"),S(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Si=Object.defineProperty,qi=(i,t,e)=>t in i?Si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,q=(i,t,e)=>qi(i,typeof t!="symbol"?t+"":t,e);class Ni{constructor(t){q(this,"name","tezos"),q(this,"client"),q(this,"httpProviders"),q(this,"events"),q(this,"namespace"),q(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s))}}var Di=Object.defineProperty,_i=(i,t,e)=>t in i?Di(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,N=(i,t,e)=>_i(i,typeof t!="symbol"?t+"":t,e);class Fi{constructor(t){N(this,"name",qt),N(this,"client"),N(this,"httpProviders"),N(this,"events"),N(this,"namespace"),N(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getNamespaceName(){const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return B(t).namespace}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(n=>{const a=B(n);s[a.reference]=this.createHttpProvider(n)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Ri=Object.defineProperty,xi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,et=(i,t,e)=>t in i?Ri(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,T=(i,t)=>{for(var e in t||(t={}))ki.call(t,e)&&et(i,e,t[e]);if(Ht)for(var e of Ht(t))Ti.call(t,e)&&et(i,e,t[e]);return i},X=(i,t)=>xi(i,Ui(t)),m=(i,t,e)=>et(i,typeof t!="symbol"?t+"":t,e);class nt{constructor(t){m(this,"client"),m(this,"namespaces"),m(this,"optionalNamespaces"),m(this,"sessionProperties"),m(this,"scopedProperties"),m(this,"events",new zt),m(this,"rpcProviders",{}),m(this,"session"),m(this,"providerOpts"),m(this,"logger"),m(this,"uri"),m(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:Tt(Mt({level:(t==null?void 0:t.logger)||ct})),this.disableProviderPing=(t==null?void 0:t.disableProviderPing)||!1}static async init(t){const e=new nt(t);return await e.initialize(),e}async request(t,e,s){const[n,a]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:T({},t),chainId:`${n}:${a}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,n){const a=new Date().getTime();this.request(t,s,n).then(r=>e(null,Jt(a,r))).catch(r=>e(r,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:ot("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:n}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const a=await n();if(this.session=a.session,this.session){const r=gt(this.session.namespaces);this.namespaces=k(this.namespaces,r),await this.persist("namespaces",this.namespaces),this.onConnect()}return a}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){const{uri:e,approval:s}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});e&&(this.uri=e,this.events.emit("display_uri",e));const n=await s();this.session=n;const a=gt(n.namespaces);return this.namespaces=k(this.namespaces,a),await this.persist("namespaces",this.namespaces),await this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,n]=this.validateChain(t);this.getProvider(s).setDefaultChain(n,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){try{this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(!J(e))return;for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}catch(e){this.logger.warn("Failed to cleanup pending pairings",e)}}abortPairingAttempt(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}async checkStorage(){this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var t,e;if(this.client=this.providerOpts.client||await Bt.init({core:this.providerOpts.core,logger:this.providerOpts.logger||ct,relayUrl:this.providerOpts.relayUrl||Gt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(s){throw this.logger.error("Failed to get session",s),new Error(`The provided session: ${(e=(t=this.providerOpts)==null?void 0:t.session)==null?void 0:e.topic} doesn't exist in the Sign client`)}else{const s=this.client.session.getAll();this.session=s[0]}this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>F(e)))];V("client",this.client),V("events",this.events),V("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=Se(e,this.session);if((s==null?void 0:s.length)===0)return;const n=Ut(s),a=k(this.namespaces,this.optionalNamespaces),r=X(T({},a[e]),{accounts:s,chains:n});switch(e){case"eip155":this.rpcProviders[e]=new ci({namespace:r});break;case"algorand":this.rpcProviders[e]=new gi({namespace:r});break;case"solana":this.rpcProviders[e]=new ui({namespace:r});break;case"cosmos":this.rpcProviders[e]=new fi({namespace:r});break;case"polkadot":this.rpcProviders[e]=new ii({namespace:r});break;case"cip34":this.rpcProviders[e]=new bi({namespace:r});break;case"elrond":this.rpcProviders[e]=new Ci({namespace:r});break;case"multiversx":this.rpcProviders[e]=new Hi({namespace:r});break;case"near":this.rpcProviders[e]=new Ei({namespace:r});break;case"tezos":this.rpcProviders[e]=new Ni({namespace:r});break;default:this.rpcProviders[e]=new Fi({namespace:r})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{var e;const{topic:s}=t;s===((e=this.session)==null?void 0:e.topic)&&this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{var e;const{params:s,topic:n}=t;if(n!==((e=this.session)==null?void 0:e.topic))return;const{event:a}=s;if(a.name==="accountsChanged"){const r=a.data;r&&J(r)&&this.events.emit("accountsChanged",r.map(vt))}else if(a.name==="chainChanged"){const r=s.chainId,o=s.event.data,c=F(r),u=G(r)!==G(o)?`${c}:${G(o)}`:r;this.onChainChanged(u)}else this.events.emit(a.name,a.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s,n;if(t!==((s=this.session)==null?void 0:s.topic))return;const{namespaces:a}=e,r=(n=this.client)==null?void 0:n.session.get(t);this.session=X(T({},r),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{var e;t.topic===((e=this.session)==null?void 0:e.topic)&&(await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",X(T({},ot("USER_DISCONNECTED")),{data:t.topic})))}),this.on(v.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[qt]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e={},optionalNamespaces:s={},sessionProperties:n,scopedProperties:a}=t;this.optionalNamespaces=k(e,s),this.sessionProperties=n,this.scopedProperties=a}validateChain(t){const[e,s]=(t==null?void 0:t.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(r=>F(r)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const n=F(Object.keys(this.namespaces)[0]),a=this.rpcProviders[n].getDefaultChain();return[n,a]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}async onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,n]=this.validateChain(t);if(!n)return;this.updateNamespaceChain(s,n);const a=this.getProvider(s).getDefaultChain();e?(this.events.emit("chainChanged",n),this.emitAccountsChangedOnChainChange({namespace:s,previousChainId:a,newChainId:t})):this.getProvider(s).setDefaultChain(n),await this.persist("namespaces",this.namespaces)}emitAccountsChangedOnChainChange({namespace:t,previousChainId:e,newChainId:s}){var n,a;try{if(e===s)return;const r=(a=(n=this.session)==null?void 0:n.namespaces[t])==null?void 0:a.accounts;if(!r)return;const o=r.filter(c=>c.includes(`${s}:`)).map(vt);if(!J(o))return;this.events.emit("accountsChanged",o)}catch(r){this.logger.warn("Failed to emit accountsChanged on chain change",r)}}updateNamespaceChain(t,e){if(!this.namespaces)return;const s=this.namespaces[t]?t:`${t}:${e}`,n={chains:[],methods:[],events:[],defaultChain:e};this.namespaces[s]?this.namespaces[s]&&(this.namespaces[s].defaultChain=e):this.namespaces[s]=n}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore("namespaces"),await this.deleteFromStore("optionalNamespaces"),await this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(t,e){var s;const n=((s=this.session)==null?void 0:s.topic)||"";await this.client.core.storage.setItem(`${x}/${t}${n}`,e)}async getFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";return await this.client.core.storage.getItem(`${x}/${t}${s}`)}async deleteFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";await this.client.core.storage.removeItem(`${x}/${t}${s}`)}async cleanupStorage(){var t;try{if(((t=this.client)==null?void 0:t.session.length)>0)return;const e=await this.client.core.storage.getKeys();for(const s of e)s.startsWith(x)&&await this.client.core.storage.removeItem(s)}catch(e){this.logger.warn("Failed to cleanup storage",e)}}}const ws=nt;export{ws as UniversalProvider,nt as default};
2
- //# sourceMappingURL=index.es-B7WIB4xs.js.map
1
+ import{B as M}from"./dcl-schemas-BBgGLe8k.js";import{B as Tt,m as Mt,K as ot,o as J,q as Bt,Y as F,P as $t,F as B,V as R,r as z,t as At,u as Lt}from"./wallets-CyXKPtLh.js";import"./index--RzAwV6Q.js";import{b as Jt,o as g,c as Et}from"./index-Kerq77jm.js";import{f as P}from"./index.es-CReVKXvk.js";import{N as zt}from"./index-BVuZOuvn.js";import"./react-9aRvCYbm.js";import"./signing-CF8ZzSie.js";import"./prepare-contract-call-glyYfDZw.js";import"./utils-DF0qXAQT.js";import"./sentry-CJqFbG11.js";import"./index-sQFfvNZX.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-BKfOcqcV.js";import"./transaction-LdbEZ3QP.js";import"./get-bytecode-CNrt-FoQ.js";import"./execute-DxIYEcvB.js";import"./detectExtension-C9d6YCCt.js";import"./linkAccount-CJSln8y3.js";import"./index-CoFmUEdb.js";import"./ethereum-eDYZBrz5.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-DQ_Lbi0o.js";import"./send-transaction-brMtxtLa.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-kizwd9je.js";import"./index-DpMjDWPc.js";import"./browser-ponyfill--2nwarnr.js";import"./events-S6R_9oRG.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="0da9289d-7cbb-4cdb-af17-af077b0606b3",i._sentryDebugIdIdentifier="sentry-dbid-0da9289d-7cbb-4cdb-af17-af077b0606b3")}catch{}})();const ct="error",Gt="wss://relay.walletconnect.org",Vt="wc",Kt="universal_provider",x=`${Vt}@2:${Kt}:`,St="https://rpc.walletconnect.org/v1/",qt="generic",Wt=`${St}bundler`,_="call_status",Yt=86400,v={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function it(i){return i==null||typeof i!="object"&&typeof i!="function"}function Nt(i){return Object.getOwnPropertySymbols(i).filter(t=>Object.prototype.propertyIsEnumerable.call(i,t))}function Dt(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Qt="[object RegExp]",_t="[object String]",Ft="[object Number]",Rt="[object Boolean]",xt="[object Arguments]",Xt="[object Symbol]",Zt="[object Date]",te="[object Map]",ee="[object Set]",ie="[object Array]",se="[object ArrayBuffer]",re="[object Object]",ne="[object DataView]",ae="[object Uint8Array]",oe="[object Uint8ClampedArray]",ce="[object Uint16Array]",he="[object Uint32Array]",pe="[object Int8Array]",ue="[object Int16Array]",le="[object Int32Array]",de="[object Float32Array]",fe="[object Float64Array]";function st(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function me(i,t){return D(i,void 0,i,new Map,t)}function D(i,t,e,s=new Map,n=void 0){const a=n==null?void 0:n(i,t,e,s);if(a!=null)return a;if(it(i))return i;if(s.has(i))return s.get(i);if(Array.isArray(i)){const r=new Array(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return Object.hasOwn(i,"index")&&(r.index=i.index),Object.hasOwn(i,"input")&&(r.input=i.input),r}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const r=new RegExp(i.source,i.flags);return r.lastIndex=i.lastIndex,r}if(i instanceof Map){const r=new Map;s.set(i,r);for(const[o,c]of i)r.set(o,D(c,o,e,s,n));return r}if(i instanceof Set){const r=new Set;s.set(i,r);for(const o of i)r.add(D(o,void 0,e,s,n));return r}if(typeof M<"u"&&M.isBuffer(i))return i.subarray();if(st(i)){const r=new(Object.getPrototypeOf(i)).constructor(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return r}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const r=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return s.set(i,r),y(r,i,e,s,n),r}if(typeof File<"u"&&i instanceof File){const r=new File([i],i.name,{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Blob){const r=new Blob([i],{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Error){const r=new i.constructor;return s.set(i,r),r.message=i.message,r.name=i.name,r.stack=i.stack,r.cause=i.cause,y(r,i,e,s,n),r}if(typeof i=="object"&&ve(i)){const r=Object.create(Object.getPrototypeOf(i));return s.set(i,r),y(r,i,e,s,n),r}return i}function y(i,t,e=i,s,n){const a=[...Object.keys(t),...Nt(t)];for(let r=0;r<a.length;r++){const o=a[r],c=Object.getOwnPropertyDescriptor(i,o);(c==null||c.writable)&&(i[o]=D(t[o],o,e,s,n))}}function ve(i){switch(Dt(i)){case xt:case ie:case se:case ne:case Rt:case Zt:case de:case fe:case pe:case ue:case le:case te:case Ft:case re:case Qt:case ee:case _t:case Xt:case ae:case oe:case ce:case he:return!0;default:return!1}}function ge(i,t){return me(i,(e,s,n,a)=>{if(typeof i=="object")switch(Object.prototype.toString.call(i)){case Ft:case _t:case Rt:{const r=new i.constructor(i==null?void 0:i.valueOf());return y(r,i),r}case xt:{const r={};return y(r,i),r.length=i.length,r[Symbol.iterator]=i[Symbol.iterator],r}default:return}})}function ht(i){return ge(i)}function pt(i){return i!==null&&typeof i=="object"&&Dt(i)==="[object Arguments]"}function ut(i){return typeof i=="object"&&i!==null}function Pe(){}function we(i){return st(i)}function be(i){var e;if(typeof i!="object"||i==null)return!1;if(Object.getPrototypeOf(i)===null)return!0;if(Object.prototype.toString.call(i)!=="[object Object]"){const s=i[Symbol.toStringTag];return s==null||!((e=Object.getOwnPropertyDescriptor(i,Symbol.toStringTag))!=null&&e.writable)?!1:i.toString()===`[object ${s}]`}let t=i;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(i)===t}function ye(i){if(it(i))return i;if(Array.isArray(i)||st(i)||i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);const t=Object.getPrototypeOf(i),e=t.constructor;if(i instanceof Date||i instanceof Map||i instanceof Set)return new e(i);if(i instanceof RegExp){const s=new e(i);return s.lastIndex=i.lastIndex,s}if(i instanceof DataView)return new e(i.buffer.slice(0));if(i instanceof Error){const s=new e(i.message);return s.stack=i.stack,s.name=i.name,s.cause=i.cause,s}if(typeof File<"u"&&i instanceof File)return new e([i],i.name,{type:i.type,lastModified:i.lastModified});if(typeof i=="object"){const s=Object.create(t);return Object.assign(s,i)}return i}function Ie(i,...t){const e=t.slice(0,-1),s=t[t.length-1];let n=i;for(let a=0;a<e.length;a++){const r=e[a];n=Z(n,r,s,new Map)}return n}function Z(i,t,e,s){if(it(i)&&(i=Object(i)),t==null||typeof t!="object")return i;if(s.has(t))return ye(s.get(t));if(s.set(t,i),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...Nt(t)];for(let a=0;a<n.length;a++){const r=n[a];let o=t[r],c=i[r];if(pt(o)&&(o={...o}),pt(c)&&(c={...c}),typeof M<"u"&&M.isBuffer(o)&&(o=ht(o)),Array.isArray(o))if(typeof c=="object"&&c!=null){const l=[],h=Reflect.ownKeys(c);for(let w=0;w<h.length;w++){const d=h[w];l[d]=c[d]}c=l}else c=[];const u=e(c,o,r,i,t,s);u!=null?i[r]=u:Array.isArray(o)||ut(c)&&ut(o)?i[r]=Z(c,o,e,s):c==null&&be(o)?i[r]=Z({},o,e,s):c==null&&we(o)?i[r]=ht(o):(c===void 0||o!==void 0)&&(i[r]=o)}return i}function Ce(i,...t){return Ie(i,...t,Pe)}var Oe=Object.defineProperty,je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,dt=(i,t,e)=>t in i?Oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,U=(i,t)=>{for(var e in t||(t={}))$e.call(t,e)&&dt(i,e,t[e]);if(lt)for(var e of lt(t))Ae.call(t,e)&&dt(i,e,t[e]);return i},Ee=(i,t)=>je(i,He(t));function f(i,t,e){var s;const n=B(i);return((s=t.rpcMap)==null?void 0:s[n.reference])||`${St}?chainId=${n.namespace}:${n.reference}&projectId=${e}`}function I(i){return i.includes(":")?i.split(":")[1]:i}function Ut(i){return i.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function Se(i,t){const e=Object.keys(t.namespaces).filter(n=>n.includes(i));if(!e.length)return[];const s=[];return e.forEach(n=>{const a=t.namespaces[n].accounts;s.push(...a)}),s}function ft(i){return Object.fromEntries(Object.entries(i).filter(([t,e])=>{var s,n;return((s=e==null?void 0:e.chains)==null?void 0:s.length)&&((n=e==null?void 0:e.chains)==null?void 0:n.length)>0}))}function k(i={},t={}){const e=ft(mt(i)),s=ft(mt(t));return Ce(e,s)}function mt(i){var t,e,s,n,a;const r={};if(!R(i))return r;for(const[o,c]of Object.entries(i)){const u=$t(o)?[o]:c.chains,l=c.methods||[],h=c.events||[],w=c.rpcMap||{},d=F(o);r[d]=Ee(U(U({},r[d]),c),{chains:z(u,(t=r[d])==null?void 0:t.chains),methods:z(l,(e=r[d])==null?void 0:e.methods),events:z(h,(s=r[d])==null?void 0:s.events)}),(R(w)||R(((n=r[d])==null?void 0:n.rpcMap)||{}))&&(r[d].rpcMap=U(U({},w),(a=r[d])==null?void 0:a.rpcMap))}return r}function vt(i){return i.includes(":")?i.split(":")[2]:i}function gt(i){const t={};for(const[e,s]of Object.entries(i)){const n=s.methods||[],a=s.events||[],r=s.accounts||[],o=$t(e)?[e]:s.chains?s.chains:Ut(s.accounts);t[e]={chains:o,methods:n,events:a,accounts:r}}return t}function G(i){return typeof i=="number"?i:i.includes("0x")?parseInt(i,16):(i=i.includes(":")?i.split(":")[1]:i,isNaN(Number(i))?i:Number(i))}function qe(i){try{const t=JSON.parse(i);return typeof t=="object"&&t!==null&&!Array.isArray(t)}catch{return!1}}const kt={},p=i=>kt[i],V=(i,t)=>{kt[i]=t};var Ne=Object.defineProperty,Pt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,wt=(i,t,e)=>t in i?Ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,bt=(i,t)=>{for(var e in t||(t={}))De.call(t,e)&&wt(i,e,t[e]);if(Pt)for(var e of Pt(t))_e.call(t,e)&&wt(i,e,t[e]);return i};const yt="eip155",Fe=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],Re=i=>i&&i.startsWith("0x")?BigInt(i).toString(10):i,K=i=>i&&i.startsWith("0x")?i:`0x${BigInt(i).toString(16)}`,It=i=>Object.keys(i).filter(t=>Fe.includes(t)).reduce((t,e)=>(t[e]=xe(i[e]),t),{}),xe=i=>typeof i=="string"&&qe(i)?JSON.parse(i):i,Ue=(i,t,e)=>{const{sessionProperties:s={},scopedProperties:n={}}=i,a={};if(!R(n)&&!R(s))return;const r=It(s);for(const o of e){const c=Re(o);if(!c)continue;a[K(c)]=r;const u=n==null?void 0:n[`${yt}:${c}`];if(u){const l=u==null?void 0:u[`${yt}:${c}:${t}`];a[K(c)]=bt(bt({},a[K(c)]),It(l||u))}}for(const[o,c]of Object.entries(a))Object.keys(c).length===0&&delete a[o];return Object.keys(a).length>0?a:void 0};var ke=Object.defineProperty,Te=(i,t,e)=>t in i?ke(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Me=(i,t,e)=>Te(i,t+"",e);let W;class rt{constructor(t){Me(this,"storage"),this.storage=t}async getItem(t){return await this.storage.getItem(t)}async setItem(t,e){return await this.storage.setItem(t,e)}async removeItem(t){return await this.storage.removeItem(t)}static getStorage(t){return W||(W=new rt(t)),W}}var Be=Object.defineProperty,Le=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ot=(i,t,e)=>t in i?Be(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ve=(i,t)=>{for(var e in t||(t={}))ze.call(t,e)&&Ot(i,e,t[e]);if(Ct)for(var e of Ct(t))Ge.call(t,e)&&Ot(i,e,t[e]);return i},Ke=(i,t)=>Le(i,Je(t));async function We(i,t){const e=B(i.result.capabilities.caip345.caip2),s=i.result.capabilities.caip345.transactionHashes,n=await Promise.allSettled(s.map(h=>Ye(e.reference,h,t))),a=n.filter(h=>h.status==="fulfilled").map(h=>h.value).filter(h=>h);n.filter(h=>h.status==="rejected").forEach(h=>console.warn("Failed to fetch transaction receipt:",h.reason));const r=!a.length||a.some(h=>!h),o=a.every(h=>(h==null?void 0:h.status)==="0x1"),c=a.every(h=>(h==null?void 0:h.status)==="0x0"),u=a.some(h=>(h==null?void 0:h.status)==="0x0");let l;return r?l=100:o?l=200:c?l=500:u&&(l=600),{id:i.result.id,version:i.request.version,atomic:i.request.atomicRequired,chainId:i.request.chainId,capabilities:i.result.capabilities,receipts:a,status:l}}async function Ye(i,t,e){return await e(parseInt(i)).request(Et("eth_getTransactionReceipt",[t]))}async function Qe({sendCalls:i,storage:t}){const e=await t.getItem(_);await t.setItem(_,Ke(Ve({},e),{[i.result.id]:{request:i.request,result:i.result,expiry:Lt(Yt)}}))}async function Xe({resultId:i,storage:t}){const e=await t.getItem(_);if(e){delete e[i],await t.setItem(_,e);for(const s in e)At(e[s].expiry)&&delete e[s];await t.setItem(_,e)}}async function Ze({resultId:i,storage:t}){const e=await t.getItem(_),s=e==null?void 0:e[i];if(s&&!At(s.expiry))return s;await Xe({resultId:i,storage:t})}var ti=Object.defineProperty,ei=(i,t,e)=>t in i?ti(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,C=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){C(this,"name","polkadot"),C(this,"client"),C(this,"httpProviders"),C(this,"events"),C(this,"namespace"),C(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var si=Object.defineProperty,ri=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,tt=(i,t,e)=>t in i?si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Y=(i,t)=>{for(var e in t||(t={}))ai.call(t,e)&&tt(i,e,t[e]);if(jt)for(var e of jt(t))oi.call(t,e)&&tt(i,e,t[e]);return i},Q=(i,t)=>ri(i,ni(t)),b=(i,t,e)=>tt(i,typeof t!="symbol"?t+"":t,e);class ci{constructor(t){b(this,"name","eip155"),b(this,"client"),b(this,"chainId"),b(this,"namespace"),b(this,"httpProviders"),b(this,"events"),b(this,"storage"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=rt.getStorage(this.client.core.storage)}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t);case"wallet_sendCalls":return await this.sendCalls(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=parseInt(I(e));t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(t){const e=t||this.chainId;return this.httpProviders[e]||(this.httpProviders=Q(Y({},this.httpProviders),{[e]:this.createHttpProvider(e)}),this.httpProviders[e])}async handleSwitchChain(t){var e,s;let n=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const a=parseInt(n,16);if(this.isChainApproved(a))this.setDefaultChain(`${a}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${a}`);else throw new Error(`Failed to switch to chain 'eip155:${a}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,n,a,r;const o=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0],c=((a=(n=t.request)==null?void 0:n.params)==null?void 0:a[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const u=this.client.session.get(t.topic),l=((r=u==null?void 0:u.sessionProperties)==null?void 0:r.capabilities)||{},h=`${o}${c.join(",")}`,w=l==null?void 0:l[h];if(w)return w;let d;try{d=Ue(u,o,c)}catch(L){console.warn("Failed to extract capabilities from session",L)}if(d)return d;const at=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:Q(Y({},u.sessionProperties||{}),{capabilities:Q(Y({},l||{}),{[h]:at})})})}catch(L){console.warn("Failed to update session with capabilities",L)}return at}async getCallStatus(t){var e,s,n;const a=this.client.session.get(t.topic),r=(e=a.sessionProperties)==null?void 0:e.bundler_name;if(r){const u=this.getBundlerUrl(t.chainId,r);try{return await this.getUserOperationReceipt(u,t)}catch(l){console.warn("Failed to fetch call status from bundler",l,u)}}const o=(s=a.sessionProperties)==null?void 0:s.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,t)}catch(u){console.warn("Failed to fetch call status from custom bundler",u,o)}const c=await Ze({resultId:(n=t.request.params)==null?void 0:n[0],storage:this.storage});if(c)try{return await We(c,this.getHttpProvider.bind(this))}catch(u){console.warn("Failed to fetch call status from stored send calls",u,c)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const n=new URL(t),a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Et("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!a.ok)throw new Error(`Failed to fetch user operation receipt - ${a.status}`);return await a.json()}getBundlerUrl(t,e){return`${Wt}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}async sendCalls(t){var e,s,n;const a=await this.client.request(t),r=(e=t.request.params)==null?void 0:e[0],o=a==null?void 0:a.id,c=(a==null?void 0:a.capabilities)||{},u=(s=c==null?void 0:c.caip345)==null?void 0:s.caip2,l=(n=c==null?void 0:c.caip345)==null?void 0:n.transactionHashes;return!o||!u||!(l!=null&&l.length)||await Qe({sendCalls:{request:r,result:a},storage:this.storage}),a}}var hi=Object.defineProperty,pi=(i,t,e)=>t in i?hi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t,e)=>pi(i,typeof t!="symbol"?t+"":t,e);class ui{constructor(t){O(this,"name","solana"),O(this,"client"),O(this,"httpProviders"),O(this,"events"),O(this,"namespace"),O(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var li=Object.defineProperty,di=(i,t,e)=>t in i?li(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,j=(i,t,e)=>di(i,typeof t!="symbol"?t+"":t,e);class fi{constructor(t){j(this,"name","cosmos"),j(this,"client"),j(this,"httpProviders"),j(this,"events"),j(this,"namespace"),j(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var mi=Object.defineProperty,vi=(i,t,e)=>t in i?mi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t,e)=>vi(i,typeof t!="symbol"?t+"":t,e);class gi{constructor(t){H(this,"name","algorand"),H(this,"client"),H(this,"httpProviders"),H(this,"events"),H(this,"namespace"),H(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Pi=Object.defineProperty,wi=(i,t,e)=>t in i?Pi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$=(i,t,e)=>wi(i,typeof t!="symbol"?t+"":t,e);class bi{constructor(t){$(this,"name","cip34"),$(this,"client"),$(this,"httpProviders"),$(this,"events"),$(this,"namespace"),$(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),n=I(e);t[n]=this.createHttpProvider(n,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var yi=Object.defineProperty,Ii=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ii(i,typeof t!="symbol"?t+"":t,e);class Ci{constructor(t){A(this,"name","elrond"),A(this,"client"),A(this,"httpProviders"),A(this,"events"),A(this,"namespace"),A(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Oi=Object.defineProperty,ji=(i,t,e)=>t in i?Oi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,E=(i,t,e)=>ji(i,typeof t!="symbol"?t+"":t,e);class Hi{constructor(t){E(this,"name","multiversx"),E(this,"client"),E(this,"httpProviders"),E(this,"events"),E(this,"namespace"),E(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var $i=Object.defineProperty,Ai=(i,t,e)=>t in i?$i(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,S=(i,t,e)=>Ai(i,typeof t!="symbol"?t+"":t,e);class Ei{constructor(t){S(this,"name","near"),S(this,"client"),S(this,"httpProviders"),S(this,"events"),S(this,"namespace"),S(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Si=Object.defineProperty,qi=(i,t,e)=>t in i?Si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,q=(i,t,e)=>qi(i,typeof t!="symbol"?t+"":t,e);class Ni{constructor(t){q(this,"name","tezos"),q(this,"client"),q(this,"httpProviders"),q(this,"events"),q(this,"namespace"),q(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s))}}var Di=Object.defineProperty,_i=(i,t,e)=>t in i?Di(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,N=(i,t,e)=>_i(i,typeof t!="symbol"?t+"":t,e);class Fi{constructor(t){N(this,"name",qt),N(this,"client"),N(this,"httpProviders"),N(this,"events"),N(this,"namespace"),N(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getNamespaceName(){const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return B(t).namespace}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(n=>{const a=B(n);s[a.reference]=this.createHttpProvider(n)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Ri=Object.defineProperty,xi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,et=(i,t,e)=>t in i?Ri(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,T=(i,t)=>{for(var e in t||(t={}))ki.call(t,e)&&et(i,e,t[e]);if(Ht)for(var e of Ht(t))Ti.call(t,e)&&et(i,e,t[e]);return i},X=(i,t)=>xi(i,Ui(t)),m=(i,t,e)=>et(i,typeof t!="symbol"?t+"":t,e);class nt{constructor(t){m(this,"client"),m(this,"namespaces"),m(this,"optionalNamespaces"),m(this,"sessionProperties"),m(this,"scopedProperties"),m(this,"events",new zt),m(this,"rpcProviders",{}),m(this,"session"),m(this,"providerOpts"),m(this,"logger"),m(this,"uri"),m(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:Tt(Mt({level:(t==null?void 0:t.logger)||ct})),this.disableProviderPing=(t==null?void 0:t.disableProviderPing)||!1}static async init(t){const e=new nt(t);return await e.initialize(),e}async request(t,e,s){const[n,a]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:T({},t),chainId:`${n}:${a}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,n){const a=new Date().getTime();this.request(t,s,n).then(r=>e(null,Jt(a,r))).catch(r=>e(r,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:ot("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:n}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const a=await n();if(this.session=a.session,this.session){const r=gt(this.session.namespaces);this.namespaces=k(this.namespaces,r),await this.persist("namespaces",this.namespaces),this.onConnect()}return a}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){const{uri:e,approval:s}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});e&&(this.uri=e,this.events.emit("display_uri",e));const n=await s();this.session=n;const a=gt(n.namespaces);return this.namespaces=k(this.namespaces,a),await this.persist("namespaces",this.namespaces),await this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,n]=this.validateChain(t);this.getProvider(s).setDefaultChain(n,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){try{this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(!J(e))return;for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}catch(e){this.logger.warn("Failed to cleanup pending pairings",e)}}abortPairingAttempt(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}async checkStorage(){this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var t,e;if(this.client=this.providerOpts.client||await Bt.init({core:this.providerOpts.core,logger:this.providerOpts.logger||ct,relayUrl:this.providerOpts.relayUrl||Gt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(s){throw this.logger.error("Failed to get session",s),new Error(`The provided session: ${(e=(t=this.providerOpts)==null?void 0:t.session)==null?void 0:e.topic} doesn't exist in the Sign client`)}else{const s=this.client.session.getAll();this.session=s[0]}this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>F(e)))];V("client",this.client),V("events",this.events),V("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=Se(e,this.session);if((s==null?void 0:s.length)===0)return;const n=Ut(s),a=k(this.namespaces,this.optionalNamespaces),r=X(T({},a[e]),{accounts:s,chains:n});switch(e){case"eip155":this.rpcProviders[e]=new ci({namespace:r});break;case"algorand":this.rpcProviders[e]=new gi({namespace:r});break;case"solana":this.rpcProviders[e]=new ui({namespace:r});break;case"cosmos":this.rpcProviders[e]=new fi({namespace:r});break;case"polkadot":this.rpcProviders[e]=new ii({namespace:r});break;case"cip34":this.rpcProviders[e]=new bi({namespace:r});break;case"elrond":this.rpcProviders[e]=new Ci({namespace:r});break;case"multiversx":this.rpcProviders[e]=new Hi({namespace:r});break;case"near":this.rpcProviders[e]=new Ei({namespace:r});break;case"tezos":this.rpcProviders[e]=new Ni({namespace:r});break;default:this.rpcProviders[e]=new Fi({namespace:r})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{var e;const{topic:s}=t;s===((e=this.session)==null?void 0:e.topic)&&this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{var e;const{params:s,topic:n}=t;if(n!==((e=this.session)==null?void 0:e.topic))return;const{event:a}=s;if(a.name==="accountsChanged"){const r=a.data;r&&J(r)&&this.events.emit("accountsChanged",r.map(vt))}else if(a.name==="chainChanged"){const r=s.chainId,o=s.event.data,c=F(r),u=G(r)!==G(o)?`${c}:${G(o)}`:r;this.onChainChanged(u)}else this.events.emit(a.name,a.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s,n;if(t!==((s=this.session)==null?void 0:s.topic))return;const{namespaces:a}=e,r=(n=this.client)==null?void 0:n.session.get(t);this.session=X(T({},r),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{var e;t.topic===((e=this.session)==null?void 0:e.topic)&&(await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",X(T({},ot("USER_DISCONNECTED")),{data:t.topic})))}),this.on(v.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[qt]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e={},optionalNamespaces:s={},sessionProperties:n,scopedProperties:a}=t;this.optionalNamespaces=k(e,s),this.sessionProperties=n,this.scopedProperties=a}validateChain(t){const[e,s]=(t==null?void 0:t.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(r=>F(r)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const n=F(Object.keys(this.namespaces)[0]),a=this.rpcProviders[n].getDefaultChain();return[n,a]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}async onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,n]=this.validateChain(t);if(!n)return;this.updateNamespaceChain(s,n);const a=this.getProvider(s).getDefaultChain();e?(this.events.emit("chainChanged",n),this.emitAccountsChangedOnChainChange({namespace:s,previousChainId:a,newChainId:t})):this.getProvider(s).setDefaultChain(n),await this.persist("namespaces",this.namespaces)}emitAccountsChangedOnChainChange({namespace:t,previousChainId:e,newChainId:s}){var n,a;try{if(e===s)return;const r=(a=(n=this.session)==null?void 0:n.namespaces[t])==null?void 0:a.accounts;if(!r)return;const o=r.filter(c=>c.includes(`${s}:`)).map(vt);if(!J(o))return;this.events.emit("accountsChanged",o)}catch(r){this.logger.warn("Failed to emit accountsChanged on chain change",r)}}updateNamespaceChain(t,e){if(!this.namespaces)return;const s=this.namespaces[t]?t:`${t}:${e}`,n={chains:[],methods:[],events:[],defaultChain:e};this.namespaces[s]?this.namespaces[s]&&(this.namespaces[s].defaultChain=e):this.namespaces[s]=n}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore("namespaces"),await this.deleteFromStore("optionalNamespaces"),await this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(t,e){var s;const n=((s=this.session)==null?void 0:s.topic)||"";await this.client.core.storage.setItem(`${x}/${t}${n}`,e)}async getFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";return await this.client.core.storage.getItem(`${x}/${t}${s}`)}async deleteFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";await this.client.core.storage.removeItem(`${x}/${t}${s}`)}async cleanupStorage(){var t;try{if(((t=this.client)==null?void 0:t.session.length)>0)return;const e=await this.client.core.storage.getKeys();for(const s of e)s.startsWith(x)&&await this.client.core.storage.removeItem(s)}catch(e){this.logger.warn("Failed to cleanup storage",e)}}}const ws=nt;export{ws as UniversalProvider,nt as default};
2
+ //# sourceMappingURL=index.es-iv8hf5ai.js.map
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2a8aa08-dcc9-4271-8cfe-f294c79b7e61",e._sentryDebugIdIdentifier="sentry-dbid-f2a8aa08-dcc9-4271-8cfe-f294c79b7e61")}catch{}})();const s="https://cdn.decentraland.org/@dcl/shop/1.9.2/_assets/collections-empty-5cIoxSYD.svg",o="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100.208%2082.875V69.5C100.208%2062.4055%2097.3894%2055.6015%2092.3728%2050.5849C87.3562%2045.5683%2080.5522%2042.75%2073.4577%2042.75H60.0827V38.2917C60.0827%2035.9268%2061.0221%2033.6588%2062.6943%2031.9866C64.3665%2030.3144%2066.6345%2029.375%2068.9994%2029.375C71.3642%2029.375%2073.6322%2030.3144%2075.3044%2031.9866C76.9766%2033.6588%2077.916%2035.9268%2077.916%2038.2917V42.75M99.6326%20100.138C98.7987%20102.883%2097.1042%20105.287%2094.7994%20106.995C92.4946%20108.704%2089.7016%20109.626%2086.8327%20109.625H51.166C47.6188%20109.625%2044.2168%20108.216%2041.7085%20105.708C39.2002%20103.199%2037.791%2099.7973%2037.791%2096.25V69.5C37.7875%2065.4555%2038.7026%2061.4631%2040.4673%2057.8239C42.2321%2054.1848%2044.8003%2050.994%2047.9783%2048.4923'%20stroke='url(%23paint0_linear_1565_322568)'%20stroke-width='8.91667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M55.625%20109.625V91.7917C55.625%2089.4268%2056.5644%2087.1588%2058.2366%2085.4866C59.9088%2083.8144%2062.1768%2082.875%2064.5417%2082.875H73.4583C75.8232%2082.875%2078.0912%2083.8144%2079.7634%2085.4866C81.4356%2087.1588%2082.375%2089.4268%2082.375%2091.7917V109.625M28.875%2029.375L109.125%20109.625'%20stroke='url(%23paint1_linear_1565_322568)'%20stroke-width='8.91667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1565_322568'%20x1='35.8244'%20y1='69.5051'%20x2='146.296'%20y2='61.4101'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_1565_322568'%20x1='26.3464'%20y1='69.5051'%20x2='167.888'%20y2='56.17'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{s as c,o as i};
2
+ //# sourceMappingURL=items-empty-CJboE1w9.js.map
@@ -1,2 +1,2 @@
1
- import{j as t}from"./react-G9L2um0r.js";import{c as d}from"./index-LDPyoGDo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c8eec0d1-7f41-438c-b2e6-9acdb5bca106",e._sentryDebugIdIdentifier="sentry-dbid-c8eec0d1-7f41-438c-b2e6-9acdb5bca106")}catch{}})();function c(e){return t.jsxs("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none","aria-hidden":!0,...e,children:[t.jsx("rect",{width:"32.0012",height:"32.0012",rx:"8",fill:"#FF2D55"}),t.jsx("rect",{x:"1.2632",y:"1.2632",width:"29.4748",height:"29.4748",rx:"6.7368",stroke:"#FCFCFC",strokeOpacity:"0.5",strokeWidth:"2.52641"}),t.jsx("path",{d:"M27.3021 14.4254L19.4245 6.55186C18.0203 5.14831 15.657 6.14106 15.657 8.12658V10.7283C15.5885 10.7283 15.5543 10.7283 15.4858 10.7283H8.01351C6.74626 10.7283 5.71875 11.721 5.71875 12.9877V18.9784C5.71875 20.2451 6.74626 21.272 8.01351 21.272H15.4515C15.52 21.272 15.5543 21.272 15.6228 21.272V23.8738C15.6228 25.8593 18.0203 26.852 19.3903 25.4485L27.2678 17.5749C28.1583 16.6848 28.1583 15.2813 27.3021 14.4254Z",fill:"#FCFCFC"})]})}const o=d.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump";export{o as J,c as a};
2
- //# sourceMappingURL=jump-DpEhRseo.js.map
1
+ import{j as t}from"./react-9aRvCYbm.js";import{c as d}from"./index-sQFfvNZX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c8eec0d1-7f41-438c-b2e6-9acdb5bca106",e._sentryDebugIdIdentifier="sentry-dbid-c8eec0d1-7f41-438c-b2e6-9acdb5bca106")}catch{}})();function c(e){return t.jsxs("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none","aria-hidden":!0,...e,children:[t.jsx("rect",{width:"32.0012",height:"32.0012",rx:"8",fill:"#FF2D55"}),t.jsx("rect",{x:"1.2632",y:"1.2632",width:"29.4748",height:"29.4748",rx:"6.7368",stroke:"#FCFCFC",strokeOpacity:"0.5",strokeWidth:"2.52641"}),t.jsx("path",{d:"M27.3021 14.4254L19.4245 6.55186C18.0203 5.14831 15.657 6.14106 15.657 8.12658V10.7283C15.5885 10.7283 15.5543 10.7283 15.4858 10.7283H8.01351C6.74626 10.7283 5.71875 11.721 5.71875 12.9877V18.9784C5.71875 20.2451 6.74626 21.272 8.01351 21.272H15.4515C15.52 21.272 15.5543 21.272 15.6228 21.272V23.8738C15.6228 25.8593 18.0203 26.852 19.3903 25.4485L27.2678 17.5749C28.1583 16.6848 28.1583 15.2813 27.3021 14.4254Z",fill:"#FCFCFC"})]})}const o=d.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump";export{o as J,c as a};
2
+ //# sourceMappingURL=jump-CeInMpQz.js.map
@@ -1,2 +1,2 @@
1
- import{v as p,p as f,s as h}from"./prepare-contract-call-a0euYGw1.js";import{c as l,e as w}from"./utils-u4hNmxb_.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="85b63e78-49b6-494a-a531-da6030d92a37",n._sentryDebugIdIdentifier="sentry-dbid-85b63e78-49b6-494a-a531-da6030d92a37")}catch{}})();function y(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&p(t.chainId)&&(n.domain={...n.domain,chainId:f(n.domain.chainId)}),n}async function b({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=w(n,t),c=l("inAppWallet"),s=await r.getAuthCookie();if(!s)throw new Error("Failed to link account, no user logged in");const o={Authorization:`Bearer iaw-auth-token:${s}`,"Content-Type":"application/json"},a=await d(`${c}/api/2024-05-05/account/connect`,{body:h({accountAuthTokenToConnect:e}),headers:o,method:"POST"});if(!a.ok){const u=await a.json();throw new Error(u.message||"Failed to link account.")}const{linkedAccounts:i}=await a.json();return i??[]}async function m({client:n,ecosystem:t,profileToUnlink:e,allowAccountDeletion:r=!1,storage:d}){const c=w(n,t),s=l("inAppWallet"),o=await d.getAuthCookie();if(!o)throw new Error("Failed to unlink account, no user logged in");const a={Authorization:`Bearer iaw-auth-token:${o}`,"Content-Type":"application/json"},i=await c(`${s}/api/2024-05-05/account/disconnect`,{body:h({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const k=await i.json();throw new Error(k.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=w(n,t),d=l("inAppWallet"),c=await e.getAuthCookie();if(!c)throw new Error("Failed to get linked accounts, no user logged in");const s={Authorization:`Bearer iaw-auth-token:${c}`,"Content-Type":"application/json"},o=await r(`${d}/api/2024-05-05/accounts`,{headers:s,method:"GET"});if(!o.ok){const i=await o.json();throw new Error(i.message||"Failed to get linked accounts.")}const{linkedAccounts:a}=await o.json();return a??[]}export{I as g,b as l,y as p,m as u};
2
- //# sourceMappingURL=linkAccount-Ce-F8zrz.js.map
1
+ import{v as p,p as f,s as h}from"./prepare-contract-call-glyYfDZw.js";import{c as l,e as w}from"./utils-DF0qXAQT.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="85b63e78-49b6-494a-a531-da6030d92a37",n._sentryDebugIdIdentifier="sentry-dbid-85b63e78-49b6-494a-a531-da6030d92a37")}catch{}})();function y(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&p(t.chainId)&&(n.domain={...n.domain,chainId:f(n.domain.chainId)}),n}async function b({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=w(n,t),c=l("inAppWallet"),s=await r.getAuthCookie();if(!s)throw new Error("Failed to link account, no user logged in");const o={Authorization:`Bearer iaw-auth-token:${s}`,"Content-Type":"application/json"},a=await d(`${c}/api/2024-05-05/account/connect`,{body:h({accountAuthTokenToConnect:e}),headers:o,method:"POST"});if(!a.ok){const u=await a.json();throw new Error(u.message||"Failed to link account.")}const{linkedAccounts:i}=await a.json();return i??[]}async function m({client:n,ecosystem:t,profileToUnlink:e,allowAccountDeletion:r=!1,storage:d}){const c=w(n,t),s=l("inAppWallet"),o=await d.getAuthCookie();if(!o)throw new Error("Failed to unlink account, no user logged in");const a={Authorization:`Bearer iaw-auth-token:${o}`,"Content-Type":"application/json"},i=await c(`${s}/api/2024-05-05/account/disconnect`,{body:h({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const k=await i.json();throw new Error(k.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=w(n,t),d=l("inAppWallet"),c=await e.getAuthCookie();if(!c)throw new Error("Failed to get linked accounts, no user logged in");const s={Authorization:`Bearer iaw-auth-token:${c}`,"Content-Type":"application/json"},o=await r(`${d}/api/2024-05-05/accounts`,{headers:s,method:"GET"});if(!o.ok){const i=await o.json();throw new Error(i.message||"Failed to get linked accounts.")}const{linkedAccounts:a}=await o.json();return a??[]}export{I as g,b as l,y as p,m as u};
2
+ //# sourceMappingURL=linkAccount-CJSln8y3.js.map
@@ -1,2 +1,2 @@
1
- import{av as f}from"./NetworkUtil-C2E64C4n.js";import{a$ as l,aN as w,bn as p,o as E,an as A,aH as g,h as b,g as F,ax as y,am as N,m,n as I,O as P,bo as R}from"./sendRawTransaction-DxOSpPmA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4de35ede-a25f-499f-8a4c-6f4d03946ea8",e._sentryDebugIdIdentifier="sentry-dbid-4de35ede-a25f-499f-8a4c-6f4d03946ea8")}catch{}})();function D(e){const{abi:o,data:n}=e,a=l(n,0,4),t=o.find(r=>r.type==="function"&&a===w(p(r)));if(!t)throw new E(a,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?A(t.inputs,l(n,4)):void 0}}const u="/docs/contract/encodeErrorResult";function h(e){const{abi:o,errorName:n,args:a}=e;let t=o[0];if(n){const c=g({abi:o,args:a,name:n});if(!c)throw new b(n,{docsPath:u});t=c}if(t.type!=="error")throw new b(void 0,{docsPath:u});const r=p(t),s=w(r);let i="0x";if(a&&a.length>0){if(!t.inputs)throw new F(t.name,{docsPath:u});i=y(t.inputs,a)}return N([s,i])}const d="/docs/contract/encodeFunctionResult";function v(e){const{abi:o,functionName:n,result:a}=e;let t=o[0];if(n){const s=g({abi:o,name:n});if(!s)throw new m(n,{docsPath:d});t=s}if(t.type!=="function")throw new m(void 0,{docsPath:d});if(!t.outputs)throw new I(t.name,{docsPath:d});const r=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[a];if(Array.isArray(a))return a;throw new P(a)})();return y(t.outputs,r)}const x="x-batch-gateway:true";async function H(e){const{data:o,ccipRequest:n}=e,{args:[a]}=D({abi:f,data:o}),t=[],r=[];return await Promise.all(a.map(async(s,i)=>{try{r[i]=s.urls.includes(x)?await H({data:s.data,ccipRequest:n}):await n(s),t[i]=!1}catch(c){t[i]=!0,r[i]=_(c)}})),v({abi:f,functionName:"query",result:[t,r]})}function _(e){return e.name==="HttpRequestError"&&e.status?h({abi:f,errorName:"HttpError",args:[e.status,e.shortMessage]}):h({abi:[R],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}export{v as a,H as b,D as d,h as e,x as l};
2
- //# sourceMappingURL=localBatchGatewayRequest-Dx1kkAvc.js.map
1
+ import{av as f}from"./NetworkUtil-CUhhiBwq.js";import{a$ as l,aN as w,bn as p,o as E,an as A,aH as g,h as b,g as F,ax as y,am as N,m,n as I,O as P,bo as R}from"./sendRawTransaction-ClZJFTYs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4de35ede-a25f-499f-8a4c-6f4d03946ea8",e._sentryDebugIdIdentifier="sentry-dbid-4de35ede-a25f-499f-8a4c-6f4d03946ea8")}catch{}})();function D(e){const{abi:o,data:n}=e,a=l(n,0,4),t=o.find(r=>r.type==="function"&&a===w(p(r)));if(!t)throw new E(a,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?A(t.inputs,l(n,4)):void 0}}const u="/docs/contract/encodeErrorResult";function h(e){const{abi:o,errorName:n,args:a}=e;let t=o[0];if(n){const c=g({abi:o,args:a,name:n});if(!c)throw new b(n,{docsPath:u});t=c}if(t.type!=="error")throw new b(void 0,{docsPath:u});const r=p(t),s=w(r);let i="0x";if(a&&a.length>0){if(!t.inputs)throw new F(t.name,{docsPath:u});i=y(t.inputs,a)}return N([s,i])}const d="/docs/contract/encodeFunctionResult";function v(e){const{abi:o,functionName:n,result:a}=e;let t=o[0];if(n){const s=g({abi:o,name:n});if(!s)throw new m(n,{docsPath:d});t=s}if(t.type!=="function")throw new m(void 0,{docsPath:d});if(!t.outputs)throw new I(t.name,{docsPath:d});const r=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[a];if(Array.isArray(a))return a;throw new P(a)})();return y(t.outputs,r)}const x="x-batch-gateway:true";async function H(e){const{data:o,ccipRequest:n}=e,{args:[a]}=D({abi:f,data:o}),t=[],r=[];return await Promise.all(a.map(async(s,i)=>{try{r[i]=s.urls.includes(x)?await H({data:s.data,ccipRequest:n}):await n(s),t[i]=!1}catch(c){t[i]=!0,r[i]=_(c)}})),v({abi:f,functionName:"query",result:[t,r]})}function _(e){return e.name==="HttpRequestError"&&e.status?h({abi:f,errorName:"HttpError",args:[e.status,e.shortMessage]}):h({abi:[R],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}export{v as a,H as b,D as d,h as e,x as l};
2
+ //# sourceMappingURL=localBatchGatewayRequest-C4ULrlUp.js.map
@@ -1,2 +1,2 @@
1
- import{g as t}from"./sentry-RCtiQtjC.js";(function(){try{var e=typeof window<"u"?window:typeof t<"u"?t:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="307db27e-c364-44c8-9bac-a9a9aa31e23c",e._sentryDebugIdIdentifier="sentry-dbid-307db27e-c364-44c8-9bac-a9a9aa31e23c")}catch{}})();function o(){if(typeof WebSocket<"u")return WebSocket;if(typeof t.WebSocket<"u")return t.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const r=o(),i=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:r},Symbol.toStringTag,{value:"Module"}));export{i as n};
2
- //# sourceMappingURL=native-vLlkzvxI.js.map
1
+ import{g as t}from"./sentry-CJqFbG11.js";(function(){try{var e=typeof window<"u"?window:typeof t<"u"?t:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="307db27e-c364-44c8-9bac-a9a9aa31e23c",e._sentryDebugIdIdentifier="sentry-dbid-307db27e-c364-44c8-9bac-a9a9aa31e23c")}catch{}})();function o(){if(typeof WebSocket<"u")return WebSocket;if(typeof t.WebSocket<"u")return t.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const r=o(),i=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:r},Symbol.toStringTag,{value:"Module"}));export{i as n};
2
+ //# sourceMappingURL=native-d_18A6YH.js.map
@@ -1,2 +1,2 @@
1
- import{aw as z}from"./NetworkUtil-C2E64C4n.js";import{a as E,b as D,c as q,d as B,e as L,f as I,g as P,h as A,i as U,j as V,k as O,l as R,m as G,n as H,o as Z,p as K,q as X,r as Y,s as J,t as F,u as W,v as _,w as Q,x as $,y as aa,z as sa,A as ea,B as ta,C as na,D as ia,E as oa,F as ra,G as la,H as ca,I as ha,J as pa,K as da,L as ma,M as Ta,N as ua,O as ba,P as ka,Q as fa,R as ga,S as ya,T as va,U as ja,V as Sa,W as xa,X as wa,Y as Ca,Z as Na,_ as za,$ as Ma,a0 as Ea,a1 as Da,a2 as qa,a3 as Ba,a4 as La,a5 as Ia,a6 as Pa,a7 as Aa,a8 as Ua,a9 as Va,aa as Oa,ab as Ra,ac as Ga,ad as Ha,ae as Za,af as Ka,ag as Xa,ah as Ya,ai as Ja,aj as Fa,ak as Wa,al as _a,am as Qa,an as $a,ao as as,ap as ss,aq as es,ar as ts,as as ns,at as is,au as os,av as rs,aw as ls,ax as cs,ay as hs,az as ps,aA as ds,aB as ms,aC as Ts,aD as us,aE as bs,aF as ks,aG as fs,aH as gs,aI as ys,aJ as vs,aK as js,aL as Ss,aM as xs,aN as ws,aO as Cs,aP as Ns,aQ as zs,aR as Ms,aS as Es,aT as Ds,aU as qs,aV as Bs,aW as Ls,aX as Is,aY as Ps,aZ as As,a_ as Us,a$ as Vs,b0 as Os,b1 as Rs,b2 as Gs,b3 as Hs,b4 as Zs,b5 as Ks,b6 as Xs,b7 as Ys,b8 as Js,b9 as Fs,ba as Ws,bb as _s,bc as Qs,bd as $s,be as ae,bf as se,bg as ee,bh as te,bi as ne,bj as ie,bk as oe,bl as re,bm as le,bn as ce,bo as he,bp as pe,bq as de,br as me,bs as Te,bt as ue,bu as be,bv as ke,bw as fe,bx as ge,by as ye,bz as ve,bA as je,bB as Se,bC as xe,bD as we,bE as Ce,bF as Ne,bG as ze,bH as Me,bI as Ee,bJ as De,bK as qe,bL as Be,bM as Le,bN as Ie,bO as Pe,bP as Ae,bQ as Ue,bR as Ve,bS as Oe,bT as Re,bU as Ge,bV as He,bW as Ze,bX as Ke,bY as Xe,bZ as Ye,b_ as Je,b$ as Fe,c0 as We,c1 as _e,c2 as Qe,c3 as $e,c4 as at,c5 as st,c6 as et,c7 as tt,c8 as nt,c9 as it,ca as ot,cb as rt,cc as lt,cd as ct,ce as ht,cf as pt,cg as dt,ch as mt,ci as Tt,cj as ut,ck as bt,cl as kt,cm as ft,cn as gt,co as yt,cp as vt,cq as jt,cr as St,cs as xt,ct as wt,cu as Ct,cv as Nt,cw as zt,cx as Mt,cy as Et,cz as Dt,cA as qt,cB as Bt,cC as Lt,cD as It,cE as Pt,cF as At,cG as Ut,cH as Vt,cI as Ot,cJ as Rt,cK as Gt,cL as Ht,cM as Zt,cN as Kt,cO as Xt,cP as Yt,cQ as Jt,cR as Ft,cS as Wt,cT as _t,cU as Qt,cV as $t,cW as an,cX as sn,cY as en,cZ as tn,c_ as nn,c$ as on,d0 as rn,d1 as ln,d2 as cn,d3 as hn,d4 as pn,d5 as dn,d6 as mn,d7 as Tn,d8 as un,d9 as bn,da as kn,db as fn,dc as gn,dd as yn,de as vn,df as jn,dg as Sn,dh as xn,di as wn,dj as Cn,dk as Nn,dl as zn,dm as Mn,dn as En,dp as Dn,dq as qn,dr as Bn,ds as Ln,dt as In,du as Pn,dv as An,dw as Un,dx as Vn,dy as On,dy as Rn,dz as Gn,dA as Hn,dB as Zn,dC as Kn,dD as Xn,dE as Yn,dF as Jn,dG as Fn,dH as Wn,dI as _n,dJ as Qn,dK as $n,dL as ai,dM as si,dN as ei,dO as ti,dP as ni,dQ as ii,dR as oi,dS as ri,dT as li,dU as ci,dV as hi,dW as pi,dX as di,dY as mi,dZ as Ti,d_ as ui,d$ as bi,e0 as ki,e1 as fi,e2 as gi,e3 as yi,e4 as vi,e5 as ji,e6 as Si,e7 as xi,e8 as wi,e9 as Ci,ea as Ni,eb as zi,ec as Mi,ed as Ei,ee as Di,ef as qi,eg as Bi,eh as Li,ei as Ii,ej as Pi,ek as Ai,el as Ui,em as Vi,en as Oi,eo as Ri,ep as Gi,eq as Hi,er as Zi,es as Ki,et as Xi,eu as Yi,ev as Ji,ew as Fi,ex as Wi,ey as _i,ez as Qi,eA as $i,eB as ao,eC as so,eD as eo,eE as to,eF as no,eG as io,eH as oo,eI as ro,eJ as lo,eK as co,eL as ho,eM as po,eN as mo,eO as To,eP as uo,eQ as bo,eR as ko,eS as fo,eT as go,eU as yo,eV as vo,eW as jo,eX as So,eY as xo,eZ as wo,e_ as Co,e$ as No,f0 as zo,f1 as Mo,f2 as Eo,f3 as Do,f4 as qo,f5 as Bo,f6 as Lo,f7 as Io,f8 as Po,f9 as Ao,fa as Uo,fb as Vo,fc as Oo,fd as Ro,fe as Go,ff as Ho,fg as Zo,fh as Ko,fi as Xo,fj as Yo,fk as Jo,fl as Fo,fm as Wo,fn as _o,fo as Qo,fp as $o,fq as ar,fr as sr,fs as er,ft as tr,fu as nr,fv as ir,fw as or,fx as rr,fy as lr,fz as cr,fA as hr,fB as pr,fC as dr,fD as mr,fE as Tr,fF as ur,fG as br,fH as kr,fI as fr,fJ as gr,fK as yr,fL as vr,fM as jr,fN as Sr,fO as xr,fP as wr,fQ as Cr,fR as Nr,fS as zr,fT as Mr,fU as Er,fV as Dr,fW as qr,fX as Br,fY as Lr,fZ as Ir,f_ as Pr,f$ as Ar,g0 as Ur,g1 as Vr,g2 as Or,g3 as Rr,g4 as Gr,g5 as Hr,g6 as Zr,g7 as Kr,g8 as Xr,g9 as Yr,ga as Jr,gb as Fr,gc as Wr,gd as _r,ge as Qr,gf as $r,gg as al,gh as sl,gi as el,gj as tl,gk as nl,gl as il,gm as ol,gn as rl,go as ll,gp as cl,gq as hl,gr as pl,gs as dl,gt as ml,gu as Tl,gv as ul,gw as bl,gx as kl,gy as fl,gz as gl,gA as yl,gB as vl,gC as jl,gD as Sl,gE as xl,gF as wl,gG as Cl,gH as Nl,gI as zl,gJ as Ml,gK as El,gL as Dl,gM as ql,gN as Bl,gO as Ll,gP as Il,gQ as Pl,gR as Al,gS as Ul,gT as Vl,gU as Ol,gV as Rl,gW as Gl,gX as Hl,gY as Zl,gZ as Kl,g_ as Xl,g$ as Yl,h0 as Jl,h1 as Fl,h2 as Wl,h3 as _l,h4 as Ql,h5 as $l,h6 as ac,h7 as sc,h8 as ec,h9 as tc,ha as nc,hb as ic,hc as oc,hd as rc,he as lc,hf as cc,hg as hc,hh as pc,hi as dc,hj as mc,hk as Tc,hl as uc,hm as bc,hn as kc,ho as fc,hp as gc,hq as yc,hr as vc,hs as jc,ht as Sc,hu as xc,hv as wc,hw as Cc,hx as Nc,hy as zc,hz as Mc,hA as Ec,hB as Dc,hC as qc,hD as Bc,hE as Lc,hF as Ic,hG as Pc,hH as Ac,hI as Uc,hJ as Vc,hK as Oc,hL as Rc,hM as Gc,hN as Hc,hO as Zc,hP as Kc,hQ as Xc,hR as Yc,hS as Jc,hT as Fc,hU as Wc,hV as _c,hW as Qc,hX as $c,hY as ah,hZ as sh,h_ as eh,h$ as th,i0 as nh,i1 as ih,i2 as oh,i3 as rh,i4 as lh,i5 as ch,i6 as hh,i7 as ph,i8 as dh,i9 as mh,ia as Th,ib as uh,ib as bh,ic as kh,id as fh,ie as gh,ig as yh,ih as vh,ii as jh,ij as Sh,ik as xh,il as wh,im as Ch,io as Nh,ip as zh,iq as Mh,ir as Eh,is as Dh,it as qh,iu as Bh,iv as Lh,iw as Ih,ix as Ph,iy as Ah,iz as Uh,iA as Vh,iB as Oh,iC as Rh,iD as Gh,iE as Hh,iF as Zh,iG as Kh,iH as Xh,iI as Yh,iJ as Jh,iK as Fh,iL as Wh,iM as _h,iN as Qh,iO as $h,iM as ap,iP as sp,iP as ep,iQ as tp,iR as np,iS as ip,iT as op,iU as rp,iV as lp,iW as cp,iX as hp,iY as pp,iZ as dp,i_ as mp,i$ as Tp,j0 as up,j1 as bp,j2 as kp,j3 as fp,j4 as gp,j5 as yp,j6 as vp,j7 as jp,j8 as Sp,j9 as xp,ja as wp,jb as Cp,jc as Np,jd as zp,je as Mp,jf as Ep,jg as Dp,jh as qp,ji as Bp,jj as Lp,jk as Ip,jl as Pp,jm as Ap,jn as Up,jo as Vp,jp as Op,jq as Rp,jr as Gp,js as Hp,jt as Zp,ju as Kp,jv as Xp,jw as Yp,jx as Jp,jy as Fp,jz as Wp,jA as _p,jB as Qp,jC as $p,jD as ad,jC as sd,jE as ed,jF as td,jG as nd,jH as id,jI as od,jJ as rd,jK as ld,jL as cd,jM as hd,jN as pd,jO as dd,jP as md,jQ as Td,jR as ud,jS as bd,jT as kd,jU as fd,jV as gd,jW as yd,jX as vd,jY as jd,jZ as Sd,j_ as xd,j$ as wd,k0 as Cd,k1 as Nd,k2 as zd,k3 as Md,k4 as Ed,k5 as Dd,k6 as qd,k7 as Bd,k8 as Ld,k9 as Id,ka as Pd,kb as Ad,kc as Ud,kd as Vd,ke as Od,kf as Rd,kg as Gd,kb as Hd,kc as Zd,kh as Kd,ki as Xd,kj as Yd,kd as Jd,ke as Fd,kk as Wd,kl as _d,km as Qd}from"./zoraTestnet-C2UcAlsp.js";import"./sentry-RCtiQtjC.js";import"./react-G9L2um0r.js";import"./verifyHash-CY-z2bj3.js";import"./sendRawTransaction-DxOSpPmA.js";import"./index-LDPyoGDo.js";import"./dcl-schemas-CQsQxWYK.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./secp256k1-DRRm-iBM.js";import"./serializeTransaction-DMjWbKEY.js";import"./writeContract-V_-ojxW6.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="1ea8f342-ecef-444c-824e-ca5445992813",s._sentryDebugIdIdentifier="sentry-dbid-1ea8f342-ecef-444c-824e-ca5445992813")}catch{}})();function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const u=a({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),b=a({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"}),k=a({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),f=a({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),g=a({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),y=a({id:"00000008819873e925422c1ff0f99f7c",caipNetworkId:"bip122:00000008819873e925422c1ff0f99f7c",chainNamespace:"bip122",name:"Bitcoin Signet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),v=a({id:"-239",name:"TON",network:"ton-mainnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://tonscan.org"}},testnet:!1,chainNamespace:"ton",caipNetworkId:"ton:-239"}),j=a({id:"-3",name:"TON Testnet",network:"ton-testnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://testnet.tonscan.org"}},testnet:!0,chainNamespace:"ton",caipNetworkId:"ton:-3"}),S=a({id:"0x2b6653dc",name:"TRON",network:"tron-mainnet",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org"}},testnet:!1,chainNamespace:"tron",caipNetworkId:"tron:0x2b6653dc"}),x=a({id:"0x94a9059e",name:"TRON Shasta",network:"tron-shasta",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.shasta.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0x94a9059e"}),w=a({id:"0xcd8690dc",name:"TRON Nile",network:"tron-nile",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://nile.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0xcd8690dc"});export{z as AVAILABLE_NAMESPACES,E as abey,D as abstract,q as abstractTestnet,B as acala,L as acria,I as adf,P as adi,A as agungTestnet,U as aioz,V as alephZero,O as alephZeroTestnet,R as alienx,G as alienxHalTestnet,H as alpenTestnet,Z as ancient8,K as ancient8Sepolia,X as anvil,Y as apeChain,J as apexTestnet,F as apollo,W as arbitrum,_ as arbitrumGoerli,Q as arbitrumNova,$ as arbitrumSepolia,aa as arc,sa as arcTestnet,ea as arenaz,ta as areonNetwork,na as areonNetworkTestnet,ia as areum,oa as artelaTestnet,ra as arthera,la as artheraTestnet,ca as assetChain,ha as assetChainTestnet,pa as astar,da as astarZkEVM,ma as astarZkyoto,Ta as atletaOlympia,ua as aurora,ba as auroraTestnet,ka as auroria,fa as autheoTestnet,ga as avalanche,ya as avalancheFuji,va as b3,ja as b3Sepolia,Sa as bahamut,xa as base,wa as baseGoerli,Ca as basePreconf,Na as baseSepolia,za as baseSepoliaPreconf,Ma as basecampTestnet,Ea as battlechain,Da as battlechainTestnet,qa as beam,Ba as beamTestnet,La as bearNetworkChainMainnet,Ia as bearNetworkChainTestnet,Pa as berachain,Aa as berachainBepolia,Ua as berachainTestnet,Va as berachainTestnetbArtio,Oa as bevmMainnet,Ra as bifrost,Ga as birdlayer,Ha as bitTorrent,Za as bitTorrentTestnet,f as bitcoin,y as bitcoinSignet,g as bitcoinTestnet,Ka as bitgert,Xa as bitkub,Ya as bitkubTestnet,Ja as bitlayer,Fa as bitlayerTestnet,Wa as bitrock,_a as blast,Qa as blastSepolia,$a as bob,as as bobSepolia,ss as boba,es as bobaSepolia,ts as boolBetaMainnet,ns as botanix,is as botanixTestnet,os as bounceBit,rs as bounceBitTestnet,ls as bronos,cs as bronosTestnet,hs as bsc,ps as bscGreenfield,ds as bscTestnet,ms as bsquared,Ts as bsquaredTestnet,us as btr,bs as btrTestnet,ks as bxn,fs as bxnTestnet,gs as cannon,ys as canto,vs as celo,js as celoAlfajores,Ss as celoSepolia,xs as chang,ws as chiliz,Cs as chips,Ns as citrate,zs as citrea,Ms as citreaTestnet,Es as classic,Ds as codex,qs as codexTestnet,Bs as coinbit,Ls as coinex,Is as confluxESpace,Ps as confluxESpaceTestnet,As as coreDao,Us as coreTestnet1,Vs as coreTestnet2,Os as corn,Rs as cornTestnet,Gs as cpchain,Hs as crab,Zs as creatorTestnet,Ks as creditCoin3Devnet,Xs as creditCoin3Mainnet,Ys as creditCoin3Testnet,Js as cronos,Fs as cronosTestnet,Ws as cronoszkEVM,_s as cronoszkEVMTestnet,Qs as crossbell,$s as crossfi,ae as curtis,se as cyber,ee as cyberTestnet,te as dailyNetwork,ne as dailyNetworkTestnet,ie as darwinia,oe as datahavenTestnet,re as dbkchain,le as dchain,ce as dchainTestnet,he as defichainEvm,pe as defichainEvmTestnet,a as defineChain,de as degen,me as dfk,Te as diode,ue as disChain,be as dodochainTestnet,ke as dogechain,fe as domaTestnet,ge as donatuz,ye as dosChain,ve as dosChainTestnet,je as dreyerxMainnet,Se as dreyerxTestnet,xe as dustboyIoT,we as dymension,Ce as eden,Ne as edexa,ze as edexaTestnet,Me as edgeless,Ee as edgelessTestnet,De as edgeware,qe as edgewareTestnet,Be as eduChain,Le as eduChainTestnet,Ie as elastos,Pe as elastosTestnet,Ae as electroneum,Ue as electroneumTestnet,Ve as elysiumTestnet,Oe as energy,Re as eni,Ge as eniTestnet,He as enuls,Ze as eon,Ke as eos,Xe as eosTestnet,Ye as eteria,Je as etherlink,Fe as etherlinkShadownetTestnet,We as etherlinkTestnet,_e as ethernity,Qe as etp,$e as evmos,at as evmosTestnet,st as excelonMainnet,et as expanse,tt as exsat,nt as exsatTestnet,it as fantom,ot as fantomSonicTestnet,rt as fantomTestnet,lt as fibo,ct as filecoin,ht as filecoinCalibration,pt as filecoinHyperspace,dt as fireChain,mt as flame,Tt as flare,ut as flareTestnet,bt as flowMainnet,kt as flowPreviewnet,ft as flowTestnet,gt as fluence,yt as fluenceStage,vt as fluenceTestnet,jt as fluent,St as fluentDevnet,xt as fluentTestnet,wt as form,Ct as formTestnet,Nt as forma,zt as formicarium,Mt as forta,Et as foundry,Dt as fraxtal,qt as fraxtalTestnet,Bt as funkiMainnet,Lt as funkiSepolia,It as fuse,Pt as fuseSparknet,At as fusion,Ut as fusionTestnet,Vt as garnet,Ot as gatechain,Rt as geist,Gt as genesys,Ht as gensyn,Zt as giwaSepolia,Kt as giwaSepoliaPreconf,Xt as glideL1Protocol,Yt as glideL2Protocol,Jt as gnosis,Ft as gnosisChiado,Wt as goChain,_t as goat,Qt as gobi,$t as godwoken,an as goerli,sn as graphite,en as graphiteTestnet,tn as grav,nn as gravity,on as gunz,rn as guruNetwork,ln as guruTestnet,cn as ham,hn as happychainTestnet,pn as haqqMainnet,dn as haqqTestedge2,mn as hardhat,Tn as harmonyOne,un as hashkey,bn as hashkeyTestnet,kn as haustTestnet,fn as hedera,gn as hederaPreviewnet,yn as hederaTestnet,vn as hela,jn as heliosTestnet,Sn as hemi,xn as hemiSepolia,wn as henesys,Cn as holesky,Nn as hoodi,zn as horizenTestnet,Mn as hpb,En as hpp,Dn as hppSepolia,qn as huddle01Mainnet,Bn as huddle01Testnet,Ln as humanity,In as humanityTestnet,Pn as humanode,An as humanodeTestnet5,Un as hychain,Vn as hychainTestnet,On as hyperEvm,Rn as hyperliquid,Gn as hyperliquidEvmTestnet,Hn as iSunCoin,Zn as icbNetwork,Kn as idchain,Xn as igra,Yn as immutableZkEvm,Jn as immutableZkEvmTestnet,Fn as inEVM,Wn as initVerse,_n as initVerseGenesis,Qn as injective,$n as injectiveTestnet,ai as ink,si as inkSepolia,ei as iota,ti as iotaTestnet,ni as iotex,ii as iotexTestnet,oi as jasmyChain,ri as jasmyChainTestnet,li as jbc,ci as jbcTestnet,hi as jocMainnet,pi as jocTestnet,di as jovay,mi as jovaySepolia,Ti as juneo,ui as juneoBCH1Chain,bi as juneoDAI1Chain,ki as juneoDOGE1Chain,fi as juneoEUR1Chain,gi as juneoGLD1Chain,yi as juneoLINK1Chain,vi as juneoLTC1Chain,ji as juneoSGD1Chain,Si as juneoSocotraTestnet,xi as juneoUSD1Chain,wi as juneoUSDT1Chain,Ci as juneomBTC1Chain,Ni as kaia,zi as kairos,Mi as kakarotSepolia,Ei as kakarotStarknetSepolia,Di as kardiaChain,qi as karura,Bi as katana,Li as kava,Ii as kavaTestnet,Pi as kcc,Ai as kii,Ui as kiiTestnetOro,Vi as kinto,Oi as klaytn,Ri as klaytnBaobab,Gi as koi,Hi as kroma,Zi as kromaSepolia,Ki as krown,Xi as l3x,Yi as l3xTestnet,Ji as ladyChain,Fi as lavita,Wi as lens,_i as lensTestnet,Qi as lestnet,$i as lightlinkPegasus,ao as lightlinkPhoenix,so as linea,eo as lineaGoerli,to as lineaSepolia,no as lineaTestnet,io as lisk,oo as liskSepolia,ro as loadAlphanet,lo as localhost,co as loop,ho as lukso,po as luksoTestnet,mo as lumiaMainnet,To as lumiaTestnet,uo as lumoz,bo as lumozTestnet,ko as luxeports,fo as lycan,go as lyra,yo as mainnet,vo as mandala,jo as manta,So as mantaSepoliaTestnet,xo as mantaTestnet,wo as mantle,Co as mantleSepoliaTestnet,No as mantleTestnet,zo as mantraDuKongEVMTestnet,Mo as mantraEVM,Eo as mapProtocol,Do as marooTestnet,qo as matchain,Bo as matchainTestnet,Lo as mchVerse,Io as megaeth,Po as megaethTestnet,Ao as mekong,Uo as meld,Vo as memecore,Oo as merlin,Ro as merlinErigonTestnet,Go as metachain,Ho as metachainIstanbul,Zo as metadium,Ko as metalL2,Xo as meter,Yo as meterTestnet,Jo as metis,Fo as metisGoerli,Wo as metisSepolia,_o as mev,Qo as mevTestnet,$o as mezo,ar as mezoTestnet,sr as mint,er as mintSepoliaTestnet,tr as mitosisTestnet,nr as mizuhikiTestnetAwaji,ir as mode,or as modeTestnet,rr as monad,lr as monadTestnet,cr as moonbaseAlpha,hr as moonbeam,pr as moonbeamDev,dr as moonriver,mr as morph,Tr as morphHolesky,ur as morphSepolia,br as nahmii,kr as nautilus,fr as near,gr as nearTestnet,yr as neonDevnet,vr as neonMainnet,jr as neoxMainnet,Sr as neoxT4,xr as newton,wr as nexi,Cr as nexilix,Nr as nibiru,zr as nitrographTestnet,Mr as nomina,Er as oasisTestnet,Dr as oasys,qr as odysseyTestnet,Br as okc,Lr as omax,Ir as omni,Pr as omniOmega,Ar as oneWorld,Ur as oortMainnetDev,Vr as opBNB,Or as opBNBTestnet,Rr as openledger,Gr as optimism,Hr as optimismGoerli,Zr as optimismSepolia,Kr as optopia,Xr as optopiaTestnet,Yr as orderly,Jr as orderlySepolia,Fr as otimDevnet,Wr as palm,_r as palmTestnet,Qr as paseoPassetHub,$r as peaq,al as pgn,sl as pgnTestnet,el as phoenix,tl as planq,nl as plasma,il as plasmaDevnet,ol as plasmaTestnet,rl as playfiAlbireo,ll as plinga,cl as plume,hl as plumeDevnet,pl as plumeMainnet,dl as plumeSepolia,ml as plumeTestnet,Tl as polterTestnet,ul as polygon,bl as polygonAmoy,kl as polygonMumbai,fl as polygonZkEvm,gl as polygonZkEvmCardona,yl as polygonZkEvmTestnet,vl as polynomial,jl as polynomialSepolia,Sl as potos,xl as potosTestnet,wl as premiumBlockTestnet,Cl as pulsechain,Nl as pulsechainV4,zl as pumpfiTestnet,Ml as pyrope,El as qMainnet,Dl as qTestnet,ql as ql1,Bl as quai,Ll as quaiTestnet,Il as radius,Pl as radiusTestnet,Al as reactiveTestnet,Ul as real,Vl as redbellyMainnet,Ol as redbellyTestnet,Rl as reddio,Gl as reddioSepolia,Hl as redstone,Zl as rei,Kl as reyaNetwork,Xl as rise,Yl as riseTestnet,Jl as rivalz,Fl as rollux,Wl as rolluxTestnet,_l as ronin,Ql as root,$l as rootPorcini,ac as rootstock,sc as rootstockTestnet,ec as rss3,tc as rss3Sepolia,nc as saakuru,ic as saga,oc as saigon,rc as sanko,lc as sapphire,cc as sapphireTestnet,hc as satoshiVM,pc as satoshiVMTestnet,dc as scroll,mc as scrollSepolia,Tc as sei,uc as seiTestnet,bc as seismicDevnet,kc as sentrix,fc as sentrixTestnet,gc as sepolia,yc as shape,vc as shapeSepolia,jc as shardeum,Sc as shardeumSphinx,xc as shibarium,wc as shibariumTestnet,Cc as shiden,Nc as shimmer,zc as shimmerTestnet,Mc as sidraChain,Ec as silentData,Dc as silicon,qc as siliconSepolia,Bc as sixProtocol,Lc as skaleBase,Ic as skaleBaseSepoliaTestnet,Pc as skaleBlockBrawlers,Ac as skaleCalypso,Uc as skaleCalypsoTestnet,Vc as skaleCryptoBlades,Oc as skaleCryptoColosseum,Rc as skaleEuropa,Gc as skaleEuropaTestnet,Hc as skaleExorde,Zc as skaleHumanProtocol,Kc as skaleNebula,Xc as skaleNebulaTestnet,Yc as skaleRazor,Jc as skaleTitan,Fc as skaleTitanTestnet,Wc as sketchpad,_c as snax,Qc as snaxTestnet,u as solana,b as solanaDevnet,k as solanaTestnet,$c as somnia,ah as somniaTestnet,sh as soneium,eh as soneiumMinato,th as songbird,nh as songbirdTestnet,ih as sonic,oh as sonicBlazeTestnet,rh as sonicTestnet,lh as sophon,ch as sophonTestnet,hh as sova,ph as sovaSepolia,dh as spicy,mh as stable,Th as stableTestnet,uh as statusNetworkSepolia,bh as statusSepolia,kh as step,fh as story,gh as storyAeneid,yh as storyOdyssey,vh as storyTestnet,jh as stratis,Sh as subtensorEvm,xh as superlumio,wh as superposition,Ch as superseed,Nh as superseedSepolia,zh as surgeTestnet,Mh as swan,Eh as swanProximaTestnet,Dh as swanSaturnTestnet,qh as swellchain,Bh as swellchainTestnet,Lh as swissdlt,Ih as syscoin,Ph as syscoinTestnet,Ah as tac,Uh as tacSPB,Vh as taiko,Oh as taikoHekla,Rh as taikoHoodi,Gh as taikoJolnir,Hh as taikoKatla,Zh as taikoTestnetSepolia,Kh as taraxa,Xh as taraxaTestnet,Yh as teaSepolia,Jh as telcoinTestnet,Fh as telos,Wh as telosTestnet,_h as tempo,Qh as tempoDevnet,$h as tempoLocalnet,ap as tempoMainnet,sp as tempoModerato,ep as tempoTestnet,tp as tenet,np as ternoa,ip as thaiChain,op as that,rp as theta,lp as thetaTestnet,cp as thunderCore,hp as thunderTestnet,pp as tiktrixTestnet,dp as tomb,v as ton,j as tonTestnet,mp as treasure,Tp as treasureTopaz,up as tron,S as tronMainnet,bp as tronNile,w as tronNileTestnet,kp as tronShasta,x as tronShastaTestnet,fp as ubiq,gp as ultra,yp as ultraTestnet,vp as ultron,jp as ultronTestnet,Sp as unichain,xp as unichainSepolia,wp as unique,Cp as uniqueOpal,Np as uniqueQuartz,zp as unreal,Mp as valygoNft,Ep as valygoSmartchain,Dp as vana,qp as vanaMoksha,Bp as vanar,Lp as vechain,Ip as velas,Pp as viction,Ap as victionTestnet,Up as vision,Vp as visionTestnet,Op as wanchain,Rp as wanchainTestnet,Gp as weaveVMAlphanet,Hp as wemix,Zp as wemixTestnet,Kp as westendAssetHub,Xp as whitechain,Yp as whitechainSepolia,Jp as whitechainTestnet,Fp as wmcTestnet,Wp as worldLand,_p as worldchain,Qp as worldchainSepolia,$p as x1Testnet,ad as xLayer,sd as xLayerTestnet,ed as xai,td as xaiTestnet,nd as xdc,id as xdcTestnet,od as xgr,rd as xoneMainnet,ld as xoneTestnet,cd as xphereMainnet,hd as xphereTestnet,pd as xpla,dd as xrOne,md as xrSepolia,Td as xrplevm,ud as xrplevmDevnet,bd as xrplevmTestnet,kd as yooldoVerse,fd as yooldoVerseTestnet,gd as zenchainTestnet,yd as zeniq,vd as zeroG,jd as zeroGGalileoTestnet,Sd as zeroGMainnet,xd as zeroGTestnet,wd as zeroNetwork,Cd as zetachain,Nd as zetachainAthensTestnet,zd as zhejiang,Md as zilliqa,Ed as zilliqaTestnet,Dd as zircuit,qd as zircuitGarfieldTestnet,Bd as zkFair,Ld as zkFairTestnet,Id as zkLinkNova,Pd as zkLinkNovaSepoliaTestnet,Ad as zkSync,Ud as zkSyncInMemoryNode,Vd as zkSyncLocalNode,Od as zkSyncSepoliaTestnet,Rd as zkXPLA,Gd as zkXPLATestnet,Hd as zksync,Zd as zksyncInMemoryNode,Kd as zksyncLocalCustomHyperchain,Xd as zksyncLocalHyperchain,Yd as zksyncLocalHyperchainL1,Jd as zksyncLocalNode,Fd as zksyncSepoliaTestnet,Wd as zora,_d as zoraSepolia,Qd as zoraTestnet};
2
- //# sourceMappingURL=networks-DZ7rrynN.js.map
1
+ import{aw as z}from"./NetworkUtil-CUhhiBwq.js";import{a as E,b as D,c as q,d as B,e as L,f as I,g as P,h as A,i as U,j as V,k as O,l as R,m as G,n as H,o as Z,p as K,q as X,r as Y,s as J,t as F,u as W,v as _,w as Q,x as $,y as aa,z as sa,A as ea,B as ta,C as na,D as ia,E as oa,F as ra,G as la,H as ca,I as ha,J as pa,K as da,L as ma,M as Ta,N as ua,O as ba,P as ka,Q as fa,R as ga,S as ya,T as va,U as ja,V as Sa,W as xa,X as wa,Y as Ca,Z as Na,_ as za,$ as Ma,a0 as Ea,a1 as Da,a2 as qa,a3 as Ba,a4 as La,a5 as Ia,a6 as Pa,a7 as Aa,a8 as Ua,a9 as Va,aa as Oa,ab as Ra,ac as Ga,ad as Ha,ae as Za,af as Ka,ag as Xa,ah as Ya,ai as Ja,aj as Fa,ak as Wa,al as _a,am as Qa,an as $a,ao as as,ap as ss,aq as es,ar as ts,as as ns,at as is,au as os,av as rs,aw as ls,ax as cs,ay as hs,az as ps,aA as ds,aB as ms,aC as Ts,aD as us,aE as bs,aF as ks,aG as fs,aH as gs,aI as ys,aJ as vs,aK as js,aL as Ss,aM as xs,aN as ws,aO as Cs,aP as Ns,aQ as zs,aR as Ms,aS as Es,aT as Ds,aU as qs,aV as Bs,aW as Ls,aX as Is,aY as Ps,aZ as As,a_ as Us,a$ as Vs,b0 as Os,b1 as Rs,b2 as Gs,b3 as Hs,b4 as Zs,b5 as Ks,b6 as Xs,b7 as Ys,b8 as Js,b9 as Fs,ba as Ws,bb as _s,bc as Qs,bd as $s,be as ae,bf as se,bg as ee,bh as te,bi as ne,bj as ie,bk as oe,bl as re,bm as le,bn as ce,bo as he,bp as pe,bq as de,br as me,bs as Te,bt as ue,bu as be,bv as ke,bw as fe,bx as ge,by as ye,bz as ve,bA as je,bB as Se,bC as xe,bD as we,bE as Ce,bF as Ne,bG as ze,bH as Me,bI as Ee,bJ as De,bK as qe,bL as Be,bM as Le,bN as Ie,bO as Pe,bP as Ae,bQ as Ue,bR as Ve,bS as Oe,bT as Re,bU as Ge,bV as He,bW as Ze,bX as Ke,bY as Xe,bZ as Ye,b_ as Je,b$ as Fe,c0 as We,c1 as _e,c2 as Qe,c3 as $e,c4 as at,c5 as st,c6 as et,c7 as tt,c8 as nt,c9 as it,ca as ot,cb as rt,cc as lt,cd as ct,ce as ht,cf as pt,cg as dt,ch as mt,ci as Tt,cj as ut,ck as bt,cl as kt,cm as ft,cn as gt,co as yt,cp as vt,cq as jt,cr as St,cs as xt,ct as wt,cu as Ct,cv as Nt,cw as zt,cx as Mt,cy as Et,cz as Dt,cA as qt,cB as Bt,cC as Lt,cD as It,cE as Pt,cF as At,cG as Ut,cH as Vt,cI as Ot,cJ as Rt,cK as Gt,cL as Ht,cM as Zt,cN as Kt,cO as Xt,cP as Yt,cQ as Jt,cR as Ft,cS as Wt,cT as _t,cU as Qt,cV as $t,cW as an,cX as sn,cY as en,cZ as tn,c_ as nn,c$ as on,d0 as rn,d1 as ln,d2 as cn,d3 as hn,d4 as pn,d5 as dn,d6 as mn,d7 as Tn,d8 as un,d9 as bn,da as kn,db as fn,dc as gn,dd as yn,de as vn,df as jn,dg as Sn,dh as xn,di as wn,dj as Cn,dk as Nn,dl as zn,dm as Mn,dn as En,dp as Dn,dq as qn,dr as Bn,ds as Ln,dt as In,du as Pn,dv as An,dw as Un,dx as Vn,dy as On,dy as Rn,dz as Gn,dA as Hn,dB as Zn,dC as Kn,dD as Xn,dE as Yn,dF as Jn,dG as Fn,dH as Wn,dI as _n,dJ as Qn,dK as $n,dL as ai,dM as si,dN as ei,dO as ti,dP as ni,dQ as ii,dR as oi,dS as ri,dT as li,dU as ci,dV as hi,dW as pi,dX as di,dY as mi,dZ as Ti,d_ as ui,d$ as bi,e0 as ki,e1 as fi,e2 as gi,e3 as yi,e4 as vi,e5 as ji,e6 as Si,e7 as xi,e8 as wi,e9 as Ci,ea as Ni,eb as zi,ec as Mi,ed as Ei,ee as Di,ef as qi,eg as Bi,eh as Li,ei as Ii,ej as Pi,ek as Ai,el as Ui,em as Vi,en as Oi,eo as Ri,ep as Gi,eq as Hi,er as Zi,es as Ki,et as Xi,eu as Yi,ev as Ji,ew as Fi,ex as Wi,ey as _i,ez as Qi,eA as $i,eB as ao,eC as so,eD as eo,eE as to,eF as no,eG as io,eH as oo,eI as ro,eJ as lo,eK as co,eL as ho,eM as po,eN as mo,eO as To,eP as uo,eQ as bo,eR as ko,eS as fo,eT as go,eU as yo,eV as vo,eW as jo,eX as So,eY as xo,eZ as wo,e_ as Co,e$ as No,f0 as zo,f1 as Mo,f2 as Eo,f3 as Do,f4 as qo,f5 as Bo,f6 as Lo,f7 as Io,f8 as Po,f9 as Ao,fa as Uo,fb as Vo,fc as Oo,fd as Ro,fe as Go,ff as Ho,fg as Zo,fh as Ko,fi as Xo,fj as Yo,fk as Jo,fl as Fo,fm as Wo,fn as _o,fo as Qo,fp as $o,fq as ar,fr as sr,fs as er,ft as tr,fu as nr,fv as ir,fw as or,fx as rr,fy as lr,fz as cr,fA as hr,fB as pr,fC as dr,fD as mr,fE as Tr,fF as ur,fG as br,fH as kr,fI as fr,fJ as gr,fK as yr,fL as vr,fM as jr,fN as Sr,fO as xr,fP as wr,fQ as Cr,fR as Nr,fS as zr,fT as Mr,fU as Er,fV as Dr,fW as qr,fX as Br,fY as Lr,fZ as Ir,f_ as Pr,f$ as Ar,g0 as Ur,g1 as Vr,g2 as Or,g3 as Rr,g4 as Gr,g5 as Hr,g6 as Zr,g7 as Kr,g8 as Xr,g9 as Yr,ga as Jr,gb as Fr,gc as Wr,gd as _r,ge as Qr,gf as $r,gg as al,gh as sl,gi as el,gj as tl,gk as nl,gl as il,gm as ol,gn as rl,go as ll,gp as cl,gq as hl,gr as pl,gs as dl,gt as ml,gu as Tl,gv as ul,gw as bl,gx as kl,gy as fl,gz as gl,gA as yl,gB as vl,gC as jl,gD as Sl,gE as xl,gF as wl,gG as Cl,gH as Nl,gI as zl,gJ as Ml,gK as El,gL as Dl,gM as ql,gN as Bl,gO as Ll,gP as Il,gQ as Pl,gR as Al,gS as Ul,gT as Vl,gU as Ol,gV as Rl,gW as Gl,gX as Hl,gY as Zl,gZ as Kl,g_ as Xl,g$ as Yl,h0 as Jl,h1 as Fl,h2 as Wl,h3 as _l,h4 as Ql,h5 as $l,h6 as ac,h7 as sc,h8 as ec,h9 as tc,ha as nc,hb as ic,hc as oc,hd as rc,he as lc,hf as cc,hg as hc,hh as pc,hi as dc,hj as mc,hk as Tc,hl as uc,hm as bc,hn as kc,ho as fc,hp as gc,hq as yc,hr as vc,hs as jc,ht as Sc,hu as xc,hv as wc,hw as Cc,hx as Nc,hy as zc,hz as Mc,hA as Ec,hB as Dc,hC as qc,hD as Bc,hE as Lc,hF as Ic,hG as Pc,hH as Ac,hI as Uc,hJ as Vc,hK as Oc,hL as Rc,hM as Gc,hN as Hc,hO as Zc,hP as Kc,hQ as Xc,hR as Yc,hS as Jc,hT as Fc,hU as Wc,hV as _c,hW as Qc,hX as $c,hY as ah,hZ as sh,h_ as eh,h$ as th,i0 as nh,i1 as ih,i2 as oh,i3 as rh,i4 as lh,i5 as ch,i6 as hh,i7 as ph,i8 as dh,i9 as mh,ia as Th,ib as uh,ib as bh,ic as kh,id as fh,ie as gh,ig as yh,ih as vh,ii as jh,ij as Sh,ik as xh,il as wh,im as Ch,io as Nh,ip as zh,iq as Mh,ir as Eh,is as Dh,it as qh,iu as Bh,iv as Lh,iw as Ih,ix as Ph,iy as Ah,iz as Uh,iA as Vh,iB as Oh,iC as Rh,iD as Gh,iE as Hh,iF as Zh,iG as Kh,iH as Xh,iI as Yh,iJ as Jh,iK as Fh,iL as Wh,iM as _h,iN as Qh,iO as $h,iM as ap,iP as sp,iP as ep,iQ as tp,iR as np,iS as ip,iT as op,iU as rp,iV as lp,iW as cp,iX as hp,iY as pp,iZ as dp,i_ as mp,i$ as Tp,j0 as up,j1 as bp,j2 as kp,j3 as fp,j4 as gp,j5 as yp,j6 as vp,j7 as jp,j8 as Sp,j9 as xp,ja as wp,jb as Cp,jc as Np,jd as zp,je as Mp,jf as Ep,jg as Dp,jh as qp,ji as Bp,jj as Lp,jk as Ip,jl as Pp,jm as Ap,jn as Up,jo as Vp,jp as Op,jq as Rp,jr as Gp,js as Hp,jt as Zp,ju as Kp,jv as Xp,jw as Yp,jx as Jp,jy as Fp,jz as Wp,jA as _p,jB as Qp,jC as $p,jD as ad,jC as sd,jE as ed,jF as td,jG as nd,jH as id,jI as od,jJ as rd,jK as ld,jL as cd,jM as hd,jN as pd,jO as dd,jP as md,jQ as Td,jR as ud,jS as bd,jT as kd,jU as fd,jV as gd,jW as yd,jX as vd,jY as jd,jZ as Sd,j_ as xd,j$ as wd,k0 as Cd,k1 as Nd,k2 as zd,k3 as Md,k4 as Ed,k5 as Dd,k6 as qd,k7 as Bd,k8 as Ld,k9 as Id,ka as Pd,kb as Ad,kc as Ud,kd as Vd,ke as Od,kf as Rd,kg as Gd,kb as Hd,kc as Zd,kh as Kd,ki as Xd,kj as Yd,kd as Jd,ke as Fd,kk as Wd,kl as _d,km as Qd}from"./zoraTestnet-CdLP96ll.js";import"./sentry-CJqFbG11.js";import"./react-9aRvCYbm.js";import"./verifyHash-DbgcJwW2.js";import"./sendRawTransaction-ClZJFTYs.js";import"./index-sQFfvNZX.js";import"./dcl-schemas-BBgGLe8k.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./secp256k1-C-dCnxvN.js";import"./serializeTransaction-CHRQ4nRc.js";import"./writeContract-U8xgcLR7.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="1ea8f342-ecef-444c-824e-ca5445992813",s._sentryDebugIdIdentifier="sentry-dbid-1ea8f342-ecef-444c-824e-ca5445992813")}catch{}})();function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const u=a({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),b=a({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"}),k=a({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),f=a({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),g=a({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),y=a({id:"00000008819873e925422c1ff0f99f7c",caipNetworkId:"bip122:00000008819873e925422c1ff0f99f7c",chainNamespace:"bip122",name:"Bitcoin Signet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),v=a({id:"-239",name:"TON",network:"ton-mainnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://tonscan.org"}},testnet:!1,chainNamespace:"ton",caipNetworkId:"ton:-239"}),j=a({id:"-3",name:"TON Testnet",network:"ton-testnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://testnet.tonscan.org"}},testnet:!0,chainNamespace:"ton",caipNetworkId:"ton:-3"}),S=a({id:"0x2b6653dc",name:"TRON",network:"tron-mainnet",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org"}},testnet:!1,chainNamespace:"tron",caipNetworkId:"tron:0x2b6653dc"}),x=a({id:"0x94a9059e",name:"TRON Shasta",network:"tron-shasta",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.shasta.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0x94a9059e"}),w=a({id:"0xcd8690dc",name:"TRON Nile",network:"tron-nile",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://nile.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0xcd8690dc"});export{z as AVAILABLE_NAMESPACES,E as abey,D as abstract,q as abstractTestnet,B as acala,L as acria,I as adf,P as adi,A as agungTestnet,U as aioz,V as alephZero,O as alephZeroTestnet,R as alienx,G as alienxHalTestnet,H as alpenTestnet,Z as ancient8,K as ancient8Sepolia,X as anvil,Y as apeChain,J as apexTestnet,F as apollo,W as arbitrum,_ as arbitrumGoerli,Q as arbitrumNova,$ as arbitrumSepolia,aa as arc,sa as arcTestnet,ea as arenaz,ta as areonNetwork,na as areonNetworkTestnet,ia as areum,oa as artelaTestnet,ra as arthera,la as artheraTestnet,ca as assetChain,ha as assetChainTestnet,pa as astar,da as astarZkEVM,ma as astarZkyoto,Ta as atletaOlympia,ua as aurora,ba as auroraTestnet,ka as auroria,fa as autheoTestnet,ga as avalanche,ya as avalancheFuji,va as b3,ja as b3Sepolia,Sa as bahamut,xa as base,wa as baseGoerli,Ca as basePreconf,Na as baseSepolia,za as baseSepoliaPreconf,Ma as basecampTestnet,Ea as battlechain,Da as battlechainTestnet,qa as beam,Ba as beamTestnet,La as bearNetworkChainMainnet,Ia as bearNetworkChainTestnet,Pa as berachain,Aa as berachainBepolia,Ua as berachainTestnet,Va as berachainTestnetbArtio,Oa as bevmMainnet,Ra as bifrost,Ga as birdlayer,Ha as bitTorrent,Za as bitTorrentTestnet,f as bitcoin,y as bitcoinSignet,g as bitcoinTestnet,Ka as bitgert,Xa as bitkub,Ya as bitkubTestnet,Ja as bitlayer,Fa as bitlayerTestnet,Wa as bitrock,_a as blast,Qa as blastSepolia,$a as bob,as as bobSepolia,ss as boba,es as bobaSepolia,ts as boolBetaMainnet,ns as botanix,is as botanixTestnet,os as bounceBit,rs as bounceBitTestnet,ls as bronos,cs as bronosTestnet,hs as bsc,ps as bscGreenfield,ds as bscTestnet,ms as bsquared,Ts as bsquaredTestnet,us as btr,bs as btrTestnet,ks as bxn,fs as bxnTestnet,gs as cannon,ys as canto,vs as celo,js as celoAlfajores,Ss as celoSepolia,xs as chang,ws as chiliz,Cs as chips,Ns as citrate,zs as citrea,Ms as citreaTestnet,Es as classic,Ds as codex,qs as codexTestnet,Bs as coinbit,Ls as coinex,Is as confluxESpace,Ps as confluxESpaceTestnet,As as coreDao,Us as coreTestnet1,Vs as coreTestnet2,Os as corn,Rs as cornTestnet,Gs as cpchain,Hs as crab,Zs as creatorTestnet,Ks as creditCoin3Devnet,Xs as creditCoin3Mainnet,Ys as creditCoin3Testnet,Js as cronos,Fs as cronosTestnet,Ws as cronoszkEVM,_s as cronoszkEVMTestnet,Qs as crossbell,$s as crossfi,ae as curtis,se as cyber,ee as cyberTestnet,te as dailyNetwork,ne as dailyNetworkTestnet,ie as darwinia,oe as datahavenTestnet,re as dbkchain,le as dchain,ce as dchainTestnet,he as defichainEvm,pe as defichainEvmTestnet,a as defineChain,de as degen,me as dfk,Te as diode,ue as disChain,be as dodochainTestnet,ke as dogechain,fe as domaTestnet,ge as donatuz,ye as dosChain,ve as dosChainTestnet,je as dreyerxMainnet,Se as dreyerxTestnet,xe as dustboyIoT,we as dymension,Ce as eden,Ne as edexa,ze as edexaTestnet,Me as edgeless,Ee as edgelessTestnet,De as edgeware,qe as edgewareTestnet,Be as eduChain,Le as eduChainTestnet,Ie as elastos,Pe as elastosTestnet,Ae as electroneum,Ue as electroneumTestnet,Ve as elysiumTestnet,Oe as energy,Re as eni,Ge as eniTestnet,He as enuls,Ze as eon,Ke as eos,Xe as eosTestnet,Ye as eteria,Je as etherlink,Fe as etherlinkShadownetTestnet,We as etherlinkTestnet,_e as ethernity,Qe as etp,$e as evmos,at as evmosTestnet,st as excelonMainnet,et as expanse,tt as exsat,nt as exsatTestnet,it as fantom,ot as fantomSonicTestnet,rt as fantomTestnet,lt as fibo,ct as filecoin,ht as filecoinCalibration,pt as filecoinHyperspace,dt as fireChain,mt as flame,Tt as flare,ut as flareTestnet,bt as flowMainnet,kt as flowPreviewnet,ft as flowTestnet,gt as fluence,yt as fluenceStage,vt as fluenceTestnet,jt as fluent,St as fluentDevnet,xt as fluentTestnet,wt as form,Ct as formTestnet,Nt as forma,zt as formicarium,Mt as forta,Et as foundry,Dt as fraxtal,qt as fraxtalTestnet,Bt as funkiMainnet,Lt as funkiSepolia,It as fuse,Pt as fuseSparknet,At as fusion,Ut as fusionTestnet,Vt as garnet,Ot as gatechain,Rt as geist,Gt as genesys,Ht as gensyn,Zt as giwaSepolia,Kt as giwaSepoliaPreconf,Xt as glideL1Protocol,Yt as glideL2Protocol,Jt as gnosis,Ft as gnosisChiado,Wt as goChain,_t as goat,Qt as gobi,$t as godwoken,an as goerli,sn as graphite,en as graphiteTestnet,tn as grav,nn as gravity,on as gunz,rn as guruNetwork,ln as guruTestnet,cn as ham,hn as happychainTestnet,pn as haqqMainnet,dn as haqqTestedge2,mn as hardhat,Tn as harmonyOne,un as hashkey,bn as hashkeyTestnet,kn as haustTestnet,fn as hedera,gn as hederaPreviewnet,yn as hederaTestnet,vn as hela,jn as heliosTestnet,Sn as hemi,xn as hemiSepolia,wn as henesys,Cn as holesky,Nn as hoodi,zn as horizenTestnet,Mn as hpb,En as hpp,Dn as hppSepolia,qn as huddle01Mainnet,Bn as huddle01Testnet,Ln as humanity,In as humanityTestnet,Pn as humanode,An as humanodeTestnet5,Un as hychain,Vn as hychainTestnet,On as hyperEvm,Rn as hyperliquid,Gn as hyperliquidEvmTestnet,Hn as iSunCoin,Zn as icbNetwork,Kn as idchain,Xn as igra,Yn as immutableZkEvm,Jn as immutableZkEvmTestnet,Fn as inEVM,Wn as initVerse,_n as initVerseGenesis,Qn as injective,$n as injectiveTestnet,ai as ink,si as inkSepolia,ei as iota,ti as iotaTestnet,ni as iotex,ii as iotexTestnet,oi as jasmyChain,ri as jasmyChainTestnet,li as jbc,ci as jbcTestnet,hi as jocMainnet,pi as jocTestnet,di as jovay,mi as jovaySepolia,Ti as juneo,ui as juneoBCH1Chain,bi as juneoDAI1Chain,ki as juneoDOGE1Chain,fi as juneoEUR1Chain,gi as juneoGLD1Chain,yi as juneoLINK1Chain,vi as juneoLTC1Chain,ji as juneoSGD1Chain,Si as juneoSocotraTestnet,xi as juneoUSD1Chain,wi as juneoUSDT1Chain,Ci as juneomBTC1Chain,Ni as kaia,zi as kairos,Mi as kakarotSepolia,Ei as kakarotStarknetSepolia,Di as kardiaChain,qi as karura,Bi as katana,Li as kava,Ii as kavaTestnet,Pi as kcc,Ai as kii,Ui as kiiTestnetOro,Vi as kinto,Oi as klaytn,Ri as klaytnBaobab,Gi as koi,Hi as kroma,Zi as kromaSepolia,Ki as krown,Xi as l3x,Yi as l3xTestnet,Ji as ladyChain,Fi as lavita,Wi as lens,_i as lensTestnet,Qi as lestnet,$i as lightlinkPegasus,ao as lightlinkPhoenix,so as linea,eo as lineaGoerli,to as lineaSepolia,no as lineaTestnet,io as lisk,oo as liskSepolia,ro as loadAlphanet,lo as localhost,co as loop,ho as lukso,po as luksoTestnet,mo as lumiaMainnet,To as lumiaTestnet,uo as lumoz,bo as lumozTestnet,ko as luxeports,fo as lycan,go as lyra,yo as mainnet,vo as mandala,jo as manta,So as mantaSepoliaTestnet,xo as mantaTestnet,wo as mantle,Co as mantleSepoliaTestnet,No as mantleTestnet,zo as mantraDuKongEVMTestnet,Mo as mantraEVM,Eo as mapProtocol,Do as marooTestnet,qo as matchain,Bo as matchainTestnet,Lo as mchVerse,Io as megaeth,Po as megaethTestnet,Ao as mekong,Uo as meld,Vo as memecore,Oo as merlin,Ro as merlinErigonTestnet,Go as metachain,Ho as metachainIstanbul,Zo as metadium,Ko as metalL2,Xo as meter,Yo as meterTestnet,Jo as metis,Fo as metisGoerli,Wo as metisSepolia,_o as mev,Qo as mevTestnet,$o as mezo,ar as mezoTestnet,sr as mint,er as mintSepoliaTestnet,tr as mitosisTestnet,nr as mizuhikiTestnetAwaji,ir as mode,or as modeTestnet,rr as monad,lr as monadTestnet,cr as moonbaseAlpha,hr as moonbeam,pr as moonbeamDev,dr as moonriver,mr as morph,Tr as morphHolesky,ur as morphSepolia,br as nahmii,kr as nautilus,fr as near,gr as nearTestnet,yr as neonDevnet,vr as neonMainnet,jr as neoxMainnet,Sr as neoxT4,xr as newton,wr as nexi,Cr as nexilix,Nr as nibiru,zr as nitrographTestnet,Mr as nomina,Er as oasisTestnet,Dr as oasys,qr as odysseyTestnet,Br as okc,Lr as omax,Ir as omni,Pr as omniOmega,Ar as oneWorld,Ur as oortMainnetDev,Vr as opBNB,Or as opBNBTestnet,Rr as openledger,Gr as optimism,Hr as optimismGoerli,Zr as optimismSepolia,Kr as optopia,Xr as optopiaTestnet,Yr as orderly,Jr as orderlySepolia,Fr as otimDevnet,Wr as palm,_r as palmTestnet,Qr as paseoPassetHub,$r as peaq,al as pgn,sl as pgnTestnet,el as phoenix,tl as planq,nl as plasma,il as plasmaDevnet,ol as plasmaTestnet,rl as playfiAlbireo,ll as plinga,cl as plume,hl as plumeDevnet,pl as plumeMainnet,dl as plumeSepolia,ml as plumeTestnet,Tl as polterTestnet,ul as polygon,bl as polygonAmoy,kl as polygonMumbai,fl as polygonZkEvm,gl as polygonZkEvmCardona,yl as polygonZkEvmTestnet,vl as polynomial,jl as polynomialSepolia,Sl as potos,xl as potosTestnet,wl as premiumBlockTestnet,Cl as pulsechain,Nl as pulsechainV4,zl as pumpfiTestnet,Ml as pyrope,El as qMainnet,Dl as qTestnet,ql as ql1,Bl as quai,Ll as quaiTestnet,Il as radius,Pl as radiusTestnet,Al as reactiveTestnet,Ul as real,Vl as redbellyMainnet,Ol as redbellyTestnet,Rl as reddio,Gl as reddioSepolia,Hl as redstone,Zl as rei,Kl as reyaNetwork,Xl as rise,Yl as riseTestnet,Jl as rivalz,Fl as rollux,Wl as rolluxTestnet,_l as ronin,Ql as root,$l as rootPorcini,ac as rootstock,sc as rootstockTestnet,ec as rss3,tc as rss3Sepolia,nc as saakuru,ic as saga,oc as saigon,rc as sanko,lc as sapphire,cc as sapphireTestnet,hc as satoshiVM,pc as satoshiVMTestnet,dc as scroll,mc as scrollSepolia,Tc as sei,uc as seiTestnet,bc as seismicDevnet,kc as sentrix,fc as sentrixTestnet,gc as sepolia,yc as shape,vc as shapeSepolia,jc as shardeum,Sc as shardeumSphinx,xc as shibarium,wc as shibariumTestnet,Cc as shiden,Nc as shimmer,zc as shimmerTestnet,Mc as sidraChain,Ec as silentData,Dc as silicon,qc as siliconSepolia,Bc as sixProtocol,Lc as skaleBase,Ic as skaleBaseSepoliaTestnet,Pc as skaleBlockBrawlers,Ac as skaleCalypso,Uc as skaleCalypsoTestnet,Vc as skaleCryptoBlades,Oc as skaleCryptoColosseum,Rc as skaleEuropa,Gc as skaleEuropaTestnet,Hc as skaleExorde,Zc as skaleHumanProtocol,Kc as skaleNebula,Xc as skaleNebulaTestnet,Yc as skaleRazor,Jc as skaleTitan,Fc as skaleTitanTestnet,Wc as sketchpad,_c as snax,Qc as snaxTestnet,u as solana,b as solanaDevnet,k as solanaTestnet,$c as somnia,ah as somniaTestnet,sh as soneium,eh as soneiumMinato,th as songbird,nh as songbirdTestnet,ih as sonic,oh as sonicBlazeTestnet,rh as sonicTestnet,lh as sophon,ch as sophonTestnet,hh as sova,ph as sovaSepolia,dh as spicy,mh as stable,Th as stableTestnet,uh as statusNetworkSepolia,bh as statusSepolia,kh as step,fh as story,gh as storyAeneid,yh as storyOdyssey,vh as storyTestnet,jh as stratis,Sh as subtensorEvm,xh as superlumio,wh as superposition,Ch as superseed,Nh as superseedSepolia,zh as surgeTestnet,Mh as swan,Eh as swanProximaTestnet,Dh as swanSaturnTestnet,qh as swellchain,Bh as swellchainTestnet,Lh as swissdlt,Ih as syscoin,Ph as syscoinTestnet,Ah as tac,Uh as tacSPB,Vh as taiko,Oh as taikoHekla,Rh as taikoHoodi,Gh as taikoJolnir,Hh as taikoKatla,Zh as taikoTestnetSepolia,Kh as taraxa,Xh as taraxaTestnet,Yh as teaSepolia,Jh as telcoinTestnet,Fh as telos,Wh as telosTestnet,_h as tempo,Qh as tempoDevnet,$h as tempoLocalnet,ap as tempoMainnet,sp as tempoModerato,ep as tempoTestnet,tp as tenet,np as ternoa,ip as thaiChain,op as that,rp as theta,lp as thetaTestnet,cp as thunderCore,hp as thunderTestnet,pp as tiktrixTestnet,dp as tomb,v as ton,j as tonTestnet,mp as treasure,Tp as treasureTopaz,up as tron,S as tronMainnet,bp as tronNile,w as tronNileTestnet,kp as tronShasta,x as tronShastaTestnet,fp as ubiq,gp as ultra,yp as ultraTestnet,vp as ultron,jp as ultronTestnet,Sp as unichain,xp as unichainSepolia,wp as unique,Cp as uniqueOpal,Np as uniqueQuartz,zp as unreal,Mp as valygoNft,Ep as valygoSmartchain,Dp as vana,qp as vanaMoksha,Bp as vanar,Lp as vechain,Ip as velas,Pp as viction,Ap as victionTestnet,Up as vision,Vp as visionTestnet,Op as wanchain,Rp as wanchainTestnet,Gp as weaveVMAlphanet,Hp as wemix,Zp as wemixTestnet,Kp as westendAssetHub,Xp as whitechain,Yp as whitechainSepolia,Jp as whitechainTestnet,Fp as wmcTestnet,Wp as worldLand,_p as worldchain,Qp as worldchainSepolia,$p as x1Testnet,ad as xLayer,sd as xLayerTestnet,ed as xai,td as xaiTestnet,nd as xdc,id as xdcTestnet,od as xgr,rd as xoneMainnet,ld as xoneTestnet,cd as xphereMainnet,hd as xphereTestnet,pd as xpla,dd as xrOne,md as xrSepolia,Td as xrplevm,ud as xrplevmDevnet,bd as xrplevmTestnet,kd as yooldoVerse,fd as yooldoVerseTestnet,gd as zenchainTestnet,yd as zeniq,vd as zeroG,jd as zeroGGalileoTestnet,Sd as zeroGMainnet,xd as zeroGTestnet,wd as zeroNetwork,Cd as zetachain,Nd as zetachainAthensTestnet,zd as zhejiang,Md as zilliqa,Ed as zilliqaTestnet,Dd as zircuit,qd as zircuitGarfieldTestnet,Bd as zkFair,Ld as zkFairTestnet,Id as zkLinkNova,Pd as zkLinkNovaSepoliaTestnet,Ad as zkSync,Ud as zkSyncInMemoryNode,Vd as zkSyncLocalNode,Od as zkSyncSepoliaTestnet,Rd as zkXPLA,Gd as zkXPLATestnet,Hd as zksync,Zd as zksyncInMemoryNode,Kd as zksyncLocalCustomHyperchain,Xd as zksyncLocalHyperchain,Yd as zksyncLocalHyperchainL1,Jd as zksyncLocalNode,Fd as zksyncSepoliaTestnet,Wd as zora,_d as zoraSepolia,Qd as zoraTestnet};
2
+ //# sourceMappingURL=networks-a6Oqotld.js.map
@@ -1,4 +1,4 @@
1
- import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p}from"./class-map-DopF_Eyi.js";import{d as I,O as c}from"./index-CSBo6qrQ.js";import{c as g}from"./index-BrC_okhM.js";import"./index-drol9D68.js";import{O as T}from"./index-1nMFaDfq.js";import{L as C,O as j,M as $,C as O,q as E,R as U,b as B,E as z,l as V,W as M,k as K,T as q,S as W}from"./W3MFrameProviderSingleton-qLuUEBFJ.js";import"./index-OeIHT0cR.js";import"./index-C5onHlUQ.js";import"./index-Cx1edpy0.js";import"./index-DDxLpm0Z.js";import"./index-RYnkqAG_.js";import"./index-BPpGc36z.js";import"./index-Cwx8-XY7.js";import"./index-CwlpUkJ3.js";import"./index-LDPyoGDo.js";import"./react-G9L2um0r.js";import"./dcl-schemas-CQsQxWYK.js";import"./sentry-RCtiQtjC.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./index-CaHn1v4Y.js";import"./events-DLLBOQYG.js";import"./index-C-SyxpJI.js";import"./index-D6hTzS8e.js";import"./index-OpYIGLSa.js";import"./index-CTAs_Ona.js";import"./index.es-BmijG_o0.js";import"./browser-ponyfill-ByHh5PGV.js";import"./NetworkUtil-C2E64C4n.js";import"./ref-Uk7bJ2Ii.js";import"./async-directive-BF5rCMgn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="03ecfe0f-e974-43a7-b5c5-efdd30ffa0ac",t._sentryDebugIdIdentifier="sentry-dbid-03ecfe0f-e974-43a7-b5c5-efdd30ffa0ac")}catch{}})();const F=I`
1
+ import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p}from"./class-map-DopF_Eyi.js";import{d as I,O as c}from"./index-CuBLDtFZ.js";import{c as g}from"./index-B6SpJox_.js";import"./index-CWMBT2iW.js";import{O as T}from"./index-DF089E3i.js";import{L as C,O as j,M as $,C as O,q as E,R as U,b as B,E as z,l as V,W as M,k as K,T as q,S as W}from"./W3MFrameProviderSingleton-Cil5qlaS.js";import"./index-BfNdu86e.js";import"./index-9jY2-EBG.js";import"./index-D2bN0_3y.js";import"./index-BdM6GuSo.js";import"./index-C2gUP7Wd.js";import"./index-YSCl74H6.js";import"./index-DY6pIrBT.js";import"./index-DEOUkXMy.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./index-BVuZOuvn.js";import"./events-S6R_9oRG.js";import"./index-Kerq77jm.js";import"./index--RzAwV6Q.js";import"./index-OpYIGLSa.js";import"./index-DpMjDWPc.js";import"./index.es-CReVKXvk.js";import"./browser-ponyfill--2nwarnr.js";import"./NetworkUtil-CUhhiBwq.js";import"./ref-Uk7bJ2Ii.js";import"./async-directive-BF5rCMgn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="03ecfe0f-e974-43a7-b5c5-efdd30ffa0ac",t._sentryDebugIdIdentifier="sentry-dbid-03ecfe0f-e974-43a7-b5c5-efdd30ffa0ac")}catch{}})();const F=I`
2
2
  :host > wui-grid {
3
3
  max-height: 360px;
4
4
  overflow: auto;
@@ -420,4 +420,4 @@ import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p
420
420
  >
421
421
  Connect wallet
422
422
  </wui-button>`}getQuotes(){this.loading||$.open({view:"OnRampProviders"})}openModal(){$.open({view:"Connect"})}async onPaymentAmountChange(e){c.setPaymentAmount(Number(e.detail)),await c.getQuote()}async selectPresetAmount(e){c.setPaymentAmount(e),await c.getQuote()}};f.styles=G;x([p({type:Boolean})],f.prototype,"disabled",void 0);x([l()],f.prototype,"caipAddress",void 0);x([l()],f.prototype,"loading",void 0);x([l()],f.prototype,"paymentCurrency",void 0);x([l()],f.prototype,"paymentAmount",void 0);x([l()],f.prototype,"purchaseAmount",void 0);x([l()],f.prototype,"quoteLoading",void 0);f=x([g("w3m-onramp-widget")],f);export{d as W3mBuyInProgressView,D as W3mOnRampProvidersView,P as W3mOnrampFiatSelectView,k as W3mOnrampTokensView,f as W3mOnrampWidget,L as W3mWhatIsABuyView};
423
- //# sourceMappingURL=onramp-DLuIEWh8.js.map
423
+ //# sourceMappingURL=onramp-CDgb9WlA.js.map
@@ -1,2 +1,2 @@
1
- import{g as y}from"./to-serializable-transaction-DeE9YtTe.js";import{s as p,f,r as c}from"./prepare-contract-call-a0euYGw1.js";import"./index-LDPyoGDo.js";import"./react-G9L2um0r.js";import"./dcl-schemas-CQsQxWYK.js";import"./sentry-RCtiQtjC.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./transaction-fETmGUb_.js";import"./utils-u4hNmxb_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bff08934-4456-471b-b652-b4bff5691e7b",e._sentryDebugIdIdentifier="sentry-dbid-bff08934-4456-471b-b652-b4bff5691e7b")}catch{}})();async function u({account:e,serializableTransaction:t,transaction:r,gasless:s}){const a=y({address:s.relayerForwarderAddress,chain:r.chain,client:r.client}),n=await c({contract:a,method:"function getNonce(address) view returns (uint256)",params:[e.address]}),[o,m]=await(async()=>{if(!t.to)throw new Error("OpenZeppelin transactions must have a 'to' address");if(!t.gas)throw new Error("OpenZeppelin transactions must have a 'gas' value");if(!t.data)throw new Error("OpenZeppelin transactions must have a 'data' value");if(s.experimentalChainlessSupport){const i={chainid:BigInt(r.chain.id),data:t.data,from:e.address,gas:t.gas,nonce:n,to:t.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),i]}const d={data:t.data,from:e.address,gas:t.gas,nonce:n,to:t.to,value:0n};return[await e.signTypedData({domain:{chainId:r.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:w}}),d]})();return{message:m,messageType:"forward",signature:o}}const w=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function R(e){const{message:t,messageType:r,signature:s}=await u(e),a=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:t,signature:s,type:r}),method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const n=await a.json();if(!n.result)throw new Error(`Relay transaction failed: ${n.message}`);const o=JSON.parse(n.result).txHash;if(f(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(n)}`)}export{u as prepareOpenZeppelinTransaction,R as relayOpenZeppelinTransaction};
2
- //# sourceMappingURL=openzeppelin-B3-AW1et.js.map
1
+ import{g as y}from"./to-serializable-transaction-BKfOcqcV.js";import{s as p,f,r as c}from"./prepare-contract-call-glyYfDZw.js";import"./index-sQFfvNZX.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./transaction-LdbEZ3QP.js";import"./utils-DF0qXAQT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bff08934-4456-471b-b652-b4bff5691e7b",e._sentryDebugIdIdentifier="sentry-dbid-bff08934-4456-471b-b652-b4bff5691e7b")}catch{}})();async function u({account:e,serializableTransaction:t,transaction:r,gasless:s}){const a=y({address:s.relayerForwarderAddress,chain:r.chain,client:r.client}),n=await c({contract:a,method:"function getNonce(address) view returns (uint256)",params:[e.address]}),[o,m]=await(async()=>{if(!t.to)throw new Error("OpenZeppelin transactions must have a 'to' address");if(!t.gas)throw new Error("OpenZeppelin transactions must have a 'gas' value");if(!t.data)throw new Error("OpenZeppelin transactions must have a 'data' value");if(s.experimentalChainlessSupport){const i={chainid:BigInt(r.chain.id),data:t.data,from:e.address,gas:t.gas,nonce:n,to:t.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),i]}const d={data:t.data,from:e.address,gas:t.gas,nonce:n,to:t.to,value:0n};return[await e.signTypedData({domain:{chainId:r.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:w}}),d]})();return{message:m,messageType:"forward",signature:o}}const w=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function R(e){const{message:t,messageType:r,signature:s}=await u(e),a=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:t,signature:s,type:r}),method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const n=await a.json();if(!n.result)throw new Error(`Relay transaction failed: ${n.message}`);const o=JSON.parse(n.result).txHash;if(f(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(n)}`)}export{u as prepareOpenZeppelinTransaction,R as relayOpenZeppelinTransaction};
2
+ //# sourceMappingURL=openzeppelin-MXrpXJs9.js.map
@@ -1,2 +1,2 @@
1
- import{d as o,e as c,r as a}from"./prepare-contract-call-a0euYGw1.js";import{d as s}from"./detectExtension-CBEeT0QS.js";import"./utils-u4hNmxb_.js";import"./sentry-RCtiQtjC.js";import"./react-G9L2um0r.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d27a3e6e-62cd-4e10-a234-5948e9f29bfc",e._sentryDebugIdIdentifier="sentry-dbid-d27a3e6e-62cd-4e10-a234-5948e9f29bfc")}catch{}})();const t="0x6352211e",n=[{name:"tokenId",type:"uint256"}],r=[{type:"address"}];function O(e){return s({availableSelectors:e,method:[t,n,r]})}function f(e){return c(n,[e.tokenId])}function w(e){return t+f(e).slice(2)}function I(e){return o(r,e)[0]}async function l(e){return a({contract:e.contract,method:[t,n,r],params:[e.tokenId]})}export{t as FN_SELECTOR,I as decodeOwnerOfResult,w as encodeOwnerOf,f as encodeOwnerOfParams,O as isOwnerOfSupported,l as ownerOf};
2
- //# sourceMappingURL=ownerOf-Dj22dy0c.js.map
1
+ import{d as o,e as c,r as a}from"./prepare-contract-call-glyYfDZw.js";import{d as s}from"./detectExtension-C9d6YCCt.js";import"./utils-DF0qXAQT.js";import"./sentry-CJqFbG11.js";import"./react-9aRvCYbm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d27a3e6e-62cd-4e10-a234-5948e9f29bfc",e._sentryDebugIdIdentifier="sentry-dbid-d27a3e6e-62cd-4e10-a234-5948e9f29bfc")}catch{}})();const t="0x6352211e",n=[{name:"tokenId",type:"uint256"}],r=[{type:"address"}];function O(e){return s({availableSelectors:e,method:[t,n,r]})}function f(e){return c(n,[e.tokenId])}function w(e){return t+f(e).slice(2)}function I(e){return o(r,e)[0]}async function l(e){return a({contract:e.contract,method:[t,n,r],params:[e.tokenId]})}export{t as FN_SELECTOR,I as decodeOwnerOfResult,w as encodeOwnerOf,f as encodeOwnerOfParams,O as isOwnerOfSupported,l as ownerOf};
2
+ //# sourceMappingURL=ownerOf-BSpUUDYN.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-BYOtm54v.js","_assets/index-LDPyoGDo.js","_assets/react-G9L2um0r.js","_assets/dcl-schemas-CQsQxWYK.js","_assets/sentry-RCtiQtjC.js","_assets/ethers-DXUQI3Ut.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/fetchTokenMetadata-Cr3PV6X1.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-a0euYGw1.js","_assets/utils-u4hNmxb_.js","_assets/thirdweb-DbdkDnGO.js","_assets/signing-BH_9uHTG.js","_assets/to-serializable-transaction-DeE9YtTe.js","_assets/transaction-fETmGUb_.js","_assets/get-bytecode-Dgh4Jb3X.js","_assets/wait-for-tx-receipt-1jFQBtZz.js","_assets/transactionReceipt-BHye7StB.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-zf8E350c.js","_assets/eth_getStorageAt-C7mDOh_o.js","_assets/eth_getTransactionCount-BZuLOO7k.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-B8ji3I9T.js","_assets/decimals-BrfaLWeO.js","_assets/zora-sepolia-CIIRKC4C.js","_assets/send-batch-transaction-DzSQ0vye.js","_assets/send-transaction-BWqOlzuO.js","_assets/getNFT-C4VCKNcO.js","_assets/totalSupply-f-_lj4s2.js","_assets/detectExtension-CBEeT0QS.js"])))=>i.map(i=>d[i]);
2
- import{_ as u}from"./index-LDPyoGDo.js";import{a as I}from"./utils-u4hNmxb_.js";import{g as _}from"./to-serializable-transaction-DeE9YtTe.js";import{i as g}from"./prepare-contract-call-a0euYGw1.js";import"./react-G9L2um0r.js";import"./dcl-schemas-CQsQxWYK.js";import"./sentry-RCtiQtjC.js";import"./ethers-DXUQI3Ut.js";import"./intl-AKLEHPeO.js";import"./transaction-fETmGUb_.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f047a17a-c02d-4d82-90bb-7cd7dbfad8e3",t._sentryDebugIdIdentifier="sentry-dbid-f047a17a-c02d-4d82-90bb-7cd7dbfad8e3")}catch{}})();function A(t,e){switch(e.type){case"ERC721":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};case"ERC1155":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,supply:e.supply,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};default:throw new Error("Invalid NFT type")}}async function N(t){let e=t.uri;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[i="",l="",r=""]=e.split("/"),[a,s]=i.split(":"),[o,n]=l.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${a}"`);if(!s)throw new Error("Chain ID not found");if(!n||!g(n))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const w=I(Number(s)),f=_({address:n,chain:w,client:t.client});switch(o){case"erc721":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-BYOtm54v.js");return{getNFT:c}},__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,26,27,28]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}case"erc1155":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-C4VCKNcO.js");return{getNFT:c}},__vite__mapDeps([29,12,11,4,2,10,13,1,3,5,6,7,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,8,9,30,31]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}default:throw new Error(`Invalid ERC namespace, expected ERC721 or ERC1155, got: "${o}"`)}}export{A as parseNFT,N as parseNftUri};
3
- //# sourceMappingURL=parseNft-DIyPdcOK.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-Dm-BLuw5.js","_assets/index-sQFfvNZX.js","_assets/react-9aRvCYbm.js","_assets/dcl-schemas-BBgGLe8k.js","_assets/sentry-CJqFbG11.js","_assets/ethers-BKRWnjV9.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/fetchTokenMetadata-DTgK8IFo.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-glyYfDZw.js","_assets/utils-DF0qXAQT.js","_assets/thirdweb-CvWXAZKa.js","_assets/signing-CF8ZzSie.js","_assets/to-serializable-transaction-BKfOcqcV.js","_assets/transaction-LdbEZ3QP.js","_assets/get-bytecode-CNrt-FoQ.js","_assets/wait-for-tx-receipt-BWYdev56.js","_assets/transactionReceipt-BWD_rE0W.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-07hHMEkF.js","_assets/eth_getStorageAt-B_6XaGoO.js","_assets/eth_getTransactionCount-BvPk5RHG.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-e9gwXexf.js","_assets/decimals-letC916t.js","_assets/zora-sepolia-BcoXfUYO.js","_assets/send-batch-transaction-ClbwXouE.js","_assets/send-transaction-brMtxtLa.js","_assets/getNFT--CbGnkWO.js","_assets/totalSupply-Civ1rKAR.js","_assets/detectExtension-C9d6YCCt.js"])))=>i.map(i=>d[i]);
2
+ import{_ as u}from"./index-sQFfvNZX.js";import{a as I}from"./utils-DF0qXAQT.js";import{g as _}from"./to-serializable-transaction-BKfOcqcV.js";import{i as g}from"./prepare-contract-call-glyYfDZw.js";import"./react-9aRvCYbm.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./transaction-LdbEZ3QP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f047a17a-c02d-4d82-90bb-7cd7dbfad8e3",t._sentryDebugIdIdentifier="sentry-dbid-f047a17a-c02d-4d82-90bb-7cd7dbfad8e3")}catch{}})();function A(t,e){switch(e.type){case"ERC721":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};case"ERC1155":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,supply:e.supply,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};default:throw new Error("Invalid NFT type")}}async function N(t){let e=t.uri;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[i="",l="",r=""]=e.split("/"),[a,s]=i.split(":"),[o,n]=l.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${a}"`);if(!s)throw new Error("Chain ID not found");if(!n||!g(n))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const w=I(Number(s)),f=_({address:n,chain:w,client:t.client});switch(o){case"erc721":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-Dm-BLuw5.js");return{getNFT:c}},__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,26,27,28]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}case"erc1155":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT--CbGnkWO.js");return{getNFT:c}},__vite__mapDeps([29,12,11,4,2,10,13,1,3,5,6,7,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,8,9,30,31]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}default:throw new Error(`Invalid ERC namespace, expected ERC721 or ERC1155, got: "${o}"`)}}export{A as parseNFT,N as parseNftUri};
3
+ //# sourceMappingURL=parseNft-Dq5u9zmT.js.map