@dcl/shop 1.11.2-33050849044.commit-d710ef0 → 1.11.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 (228) hide show
  1. package/_assets/{Activity-Cb8UPooR.js → Activity-BhrsqnTy.js} +8 -8
  2. package/_assets/{AnimatedBackground-DTrZDJA8.js → AnimatedBackground-DB2urHfN.js} +2 -2
  3. package/_assets/{Assets-BeMy0zBm.js → Assets-CEOKXfHN.js} +3 -3
  4. package/_assets/{Authorizations-DncizvNg.js → Authorizations-zY_jkrdd.js} +2 -2
  5. package/_assets/{Cart-DT8eTjju.js → Cart-CD3QMZMU.js} +2 -2
  6. package/_assets/{Collection-DCZ3YJU4.js → Collection-fLHFUGHo.js} +2 -2
  7. package/_assets/{CollectionCarousel-0tR5Mlt1.js → CollectionCarousel-Cs01J4sG.js} +3 -3
  8. package/_assets/{Confetti-ViY_Tl_x.js → Confetti-DI93CkCr.js} +4 -4
  9. package/_assets/{ConstantsUtil-CPnBLCKC.js → ConstantsUtil-9orAwS_V.js} +2 -2
  10. package/_assets/{ContentClient-BkKFRXIG.js → ContentClient-Dr4IkAbb.js} +2 -2
  11. package/_assets/{Creator-eDokOdG6.js → Creator-DGT3lqoW.js} +2 -2
  12. package/_assets/{DeploymentBuilder-sKGEh439.js → DeploymentBuilder-BsQ4GIy9.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-Dhz63yAz.js → EmotePlaybackBar-WqjOzm12.js} +3 -3
  14. package/_assets/{ErrorNotice-CSHOj_36.js → ErrorNotice-BanVYx_o.js} +2 -2
  15. package/_assets/{ExchangeController-CsKQzi2K.js → ExchangeController-BWLF9BXM.js} +2 -2
  16. package/_assets/{Faq-DDRZibDb.js → Faq-Dt8RPaHZ.js} +2 -2
  17. package/_assets/{GetCredits-CpP-OsF7.js → GetCredits-BtM_F2J_.js} +2 -2
  18. package/_assets/{Grow-DCgFqXHz.js → Grow-DqnkmJ7j.js} +2 -2
  19. package/_assets/{HelpersUtil-iJ1yh8Qr.js → HelpersUtil-BtPtcaFe.js} +2 -2
  20. package/_assets/{ItemDetail-DwAqmdIu.js → ItemDetail-C28UgJKw.js} +2 -2
  21. package/_assets/{LoadMore-BwZO73du.js → LoadMore-hoiSVN2H.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-DGJbiC1Z.js → ManaPricingBanner.styles-rIYX7xjf.js} +2 -2
  23. package/_assets/{MyAssets-hcKLnv5g.js → MyAssets-BtAcjcuT.js} +2 -2
  24. package/_assets/{MyFavorites-Bp6GPtXE.js → MyFavorites-C3BVkIkn.js} +2 -2
  25. package/_assets/{NetworkUtil-DbL_V1jR.js → NetworkUtil-BIUbrPWa.js} +2 -2
  26. package/_assets/{NotFound-CTb_1gzv.js → NotFound-BgmQ5oFS.js} +2 -2
  27. package/_assets/{NotificationsBell--siTbfxL.js → NotificationsBell-Bjpu5hGT.js} +2 -2
  28. package/_assets/{OutfitDetail-pb_IcBaj.js → OutfitDetail-CIeX74fk.js} +2 -2
  29. package/_assets/{OutfitPreview-CSV0Ba-9.js → OutfitPreview-Clicok_x.js} +2 -2
  30. package/_assets/{OutfitStudio-CtmMGesj.js → OutfitStudio-DLStaax_.js} +2 -2
  31. package/_assets/{StoreSettings-8ag4TiMf.js → StoreSettings-DwoVLG99.js} +2 -2
  32. package/_assets/{Success-CYW7s5SU.js → Success-BKkeu6d7.js} +2 -2
  33. package/_assets/{SwapController-uLupOCWo.js → SwapController-Cnrhnusk.js} +2 -2
  34. package/_assets/{TradeService-CRFzT-Hr.js → TradeService-BgsoZh0O.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-Cb17Fn7X.js → W3MFrameProviderSingleton-DqaMm2mV.js} +4 -4
  36. package/_assets/{WebCryptoP256-CgN7P_px.js → WebCryptoP256-R5qc29Sl.js} +2 -2
  37. package/_assets/{authorizations-ChjDHhq0.js → authorizations-DC168PVR.js} +2 -2
  38. package/_assets/{basic-DJQVI2W6.js → basic-CcMC-Noe.js} +2 -2
  39. package/_assets/{biconomy-ZY5p1Lnz.js → biconomy-MuBR1fCG.js} +2 -2
  40. package/_assets/{browseLayout.styles-BGMKaxNl.js → browseLayout.styles-C_vn8XYJ.js} +2 -2
  41. package/_assets/{browser-DrZivzFf.js → browser-CTTbQgwQ.js} +2 -2
  42. package/_assets/{browser-ponyfill-BNOW_pBr.js → browser-ponyfill-2MY_3eYQ.js} +2 -2
  43. package/_assets/{builder-BfRqFJQ4.js → builder-CpxipFmE.js} +2 -2
  44. package/_assets/{buy-Cmc6VGNE.js → buy-C9vFcpIy.js} +2 -2
  45. package/_assets/{buy-gasless-SuVAuIoA.js → buy-gasless-Co1yjKqt.js} +2 -2
  46. package/_assets/{categories-CcQWbCI7.js → categories-DSulO5YB.js} +2 -2
  47. package/_assets/{ccip-DwiL0Ome.js → ccip-BGKWaLZd.js} +2 -2
  48. package/_assets/{ccip-DwRl-KxC.js → ccip-CIGFVe9f.js} +2 -2
  49. package/_assets/{chains-DsUWcPpA.js → chains-B_96BGTk.js} +2 -2
  50. package/_assets/collectionPage.styles-DUDsxvQH.js +40 -0
  51. package/_assets/{common-CraL5c5H.js → common-nayH6Qb7.js} +2 -2
  52. package/_assets/{controller-BuSjdOVC.js → controller-BoM50IGk.js} +3 -3
  53. package/_assets/{core-C68iFRG-.js → core-C6U0AzoB.js} +5 -5
  54. package/_assets/{createSvgIcon-CGmCpEG5.js → createSvgIcon-DLtjIgIX.js} +2 -2
  55. package/_assets/{custom-4GcYKxl5.js → custom-BDzyroM1.js} +2 -2
  56. package/_assets/{data-capture-Cyiav8vl.js → data-capture-Zb8-AfOh.js} +2 -2
  57. package/_assets/{dcl-schemas-Z_oWg9h9.js → dcl-schemas-OH8G4Ndl.js} +2 -2
  58. package/_assets/{decimals-Bq-S3aqE.js → decimals-DwmaOPpT.js} +2 -2
  59. package/_assets/{decimals-CArBdPn5.js → decimals-gxw11IoF.js} +2 -2
  60. package/_assets/{detectExtension-Dt_yYPg7.js → detectExtension-GZk2y11b.js} +2 -2
  61. package/_assets/{disposePreview-D4xN-rbE.js → disposePreview-CoU0o2LJ.js} +2 -2
  62. package/_assets/{email-CZ4jC6eQ.js → email-Bs2nQCjl.js} +2 -2
  63. package/_assets/{embedded-wallet-DZADS08N.js → embedded-wallet-DaMZY5wt.js} +2 -2
  64. package/_assets/{emotion-styled.browser.esm-beWfTrJ9.js → emotion-styled.browser.esm-pl53fr_X.js} +2 -2
  65. package/_assets/{engine-BSXxNgo0.js → engine-_-Y9EygX.js} +2 -2
  66. package/_assets/{errors-BOK5UzVJ.js → errors-ISVrHVty.js} +2 -2
  67. package/_assets/{estimate-l1-fee-GVxA6iNo.js → estimate-l1-fee-C2MojaUq.js} +2 -2
  68. package/_assets/{eth_estimateGas-etehgmZh.js → eth_estimateGas-ByaJEeM-.js} +2 -2
  69. package/_assets/{eth_getStorageAt-CbdzG1l_.js → eth_getStorageAt-CfRtAGD-.js} +2 -2
  70. package/_assets/{eth_getTransactionCount-B5PZdzoN.js → eth_getTransactionCount-DCx1pf2k.js} +2 -2
  71. package/_assets/{ethereum-CS-n5Xr7.js → ethereum-BgVZC6F_.js} +2 -2
  72. package/_assets/{ethers-Cpz0Q6xx.js → ethers-DwK2TdL6.js} +2 -2
  73. package/_assets/{events-DACjjuYo.js → events-CSIN-_05.js} +2 -2
  74. package/_assets/{execute-D9BdF3-v.js → execute-wmZZdldV.js} +3 -3
  75. package/_assets/{extractIPFS-nIeATqsF.js → extractIPFS-BS6I288E.js} +2 -2
  76. package/_assets/{features-C_LEXfeO.js → features-DimRp-1s.js} +2 -2
  77. package/_assets/{fetchTokenMetadata-0K65OHg2.js → fetchTokenMetadata-DZy_tSZt.js} +3 -3
  78. package/_assets/{field.styles-Cc8geV5i.js → field.styles-6_NAJBdz.js} +2 -2
  79. package/_assets/{fortmatic-BQvAbAE8.js → fortmatic-D-iEWKOV.js} +2 -2
  80. package/_assets/{get-bytecode-CUOf1h_g.js → get-bytecode-We_Yud0L.js} +2 -2
  81. package/_assets/{get-ecosystem-wallet-info-CRF2DpN6.js → get-ecosystem-wallet-info-CZ2Y-cLY.js} +2 -2
  82. package/_assets/{getBalance-CZZhOPZE.js → getBalance-SeTBLCzL.js} +3 -3
  83. package/_assets/{getInstalledModules-jGEvSZtN.js → getInstalledModules-Dj-K4xQC.js} +2 -2
  84. package/_assets/{getNFT-CitsyjuX.js → getNFT-BCYWBTK4.js} +3 -3
  85. package/_assets/{getNFT-WfSacIBg.js → getNFT-BiPo4cEC.js} +2 -2
  86. package/_assets/{grid.styles-BgULreOR.js → grid.styles-DlGaOCzf.js} +2 -2
  87. package/_assets/{hashTypedData-C6vCQMAc.js → hashTypedData-Dr6t3Q-D.js} +2 -2
  88. package/_assets/{hashTypedData-ByJYgeO9.js → hashTypedData-OCiZaYsv.js} +2 -2
  89. package/_assets/{in-app-DelW162t.js → in-app-CVvPAYT7.js} +2 -2
  90. package/_assets/{in-app-wallet-calls-GZEjZInR.js → in-app-wallet-calls-ChA73nJF.js} +2 -2
  91. package/_assets/{index-CFDDMQJK.js → index-2aK4zhJE.js} +2 -2
  92. package/_assets/{index-CIKEzKBH.js → index-ARGrbe3A.js} +3 -3
  93. package/_assets/{index-BhStT_cc.js → index-Axq2dKdE.js} +2 -2
  94. package/_assets/{index-_K5f8PeG.js → index-B0OkSRGZ.js} +2 -2
  95. package/_assets/{index-Cw7Rqo2-.js → index-B1wSCmue.js} +2 -2
  96. package/_assets/{index-D4aVxZvs.js → index-B2uxq6bU.js} +2 -2
  97. package/_assets/{index-C_qbG0dy.js → index-B3Ji4DRo.js} +2 -2
  98. package/_assets/{index-nlnz8IwV.js → index-B9Up_SK0.js} +2 -2
  99. package/_assets/{index-CPtUYput.js → index-BACBbqlk.js} +2 -2
  100. package/_assets/{index-DNVhmP-g.js → index-BDJuqgxU.js} +2 -2
  101. package/_assets/{index-Ch-uhgiT.js → index-BHbHN01N.js} +2 -2
  102. package/_assets/{index-DgrGQPbb.js → index-BJA_2Ynv.js} +2 -2
  103. package/_assets/{index-j6WPFSGW.js → index-BPQVwfa5.js} +2 -2
  104. package/_assets/{index-BfFqEUOq.js → index-BPinodm9.js} +2 -2
  105. package/_assets/{index-Q6NI03qq.js → index-BWEvNyOP.js} +2 -2
  106. package/_assets/{index-CUxOFwrr.js → index-BiAbz-7Q.js} +2 -2
  107. package/_assets/{index-CnKfDln2.js → index-BjdjqJv4.js} +4 -4
  108. package/_assets/{index-vSQyyLPX.js → index-BlorBoCd.js} +2 -2
  109. package/_assets/{index-06nAp6_P.js → index-C3LVhWuY.js} +2 -2
  110. package/_assets/{index-B3hIuOjX.js → index-CATjpM0W.js} +2 -2
  111. package/_assets/{index-Bzl3YxsW.js → index-CFGlj3ri.js} +2 -2
  112. package/_assets/{index-BiFC9g1V.js → index-CGdQ1CYx.js} +3 -3
  113. package/_assets/{index-nAcepwRH.js → index-CK4WqWqO.js} +2 -2
  114. package/_assets/{index-478kymCd.js → index-CO9qakt0.js} +2 -2
  115. package/_assets/{index-qNV8isBD.js → index-CQvLWK26.js} +2 -2
  116. package/_assets/{index-zyHGk9oP.js → index-CS1VnyR1.js} +2 -2
  117. package/_assets/{index-D6uAgsgt.js → index-CUa90VgH.js} +2 -2
  118. package/_assets/{index-DLfuFdyq.js → index-CWThS2BY.js} +2 -2
  119. package/_assets/{index-Btp9BlB2.js → index-CY38y8q8.js} +2 -2
  120. package/_assets/{index-6H7SIWE4.js → index-CbMw0H1W.js} +3 -3
  121. package/_assets/{index-BQcRovWk.js → index-ChNIU-k1.js} +2 -2
  122. package/_assets/{index-DKaHo61X.js → index-Cj5zg5gT.js} +2 -2
  123. package/_assets/{index-0drXYznK.js → index-CmcTFc5W.js} +4 -4
  124. package/_assets/{index-DZwiznKc.js → index-CmcvBNcU.js} +2 -2
  125. package/_assets/{index-B3Z7srlP.js → index-Cst1nEOO.js} +2 -2
  126. package/_assets/{index-DrtJak5c.js → index-Ct9dUkSX.js} +2 -2
  127. package/_assets/{index-KxXBUjbr.js → index-CtayMM8a.js} +4 -4
  128. package/_assets/{index-oUqiABFT.js → index-D0Wlf6gr.js} +2 -2
  129. package/_assets/{index-BBxO56gH.js → index-D0q045Px.js} +2 -2
  130. package/_assets/{index-B_2Mo4bu.js → index-D1jUYM4a.js} +2 -2
  131. package/_assets/{index-COOTjCVL.js → index-D2CYJ9zD.js} +2 -2
  132. package/_assets/{index-C9Nt4S9K.js → index-D7_zDlZP.js} +2 -2
  133. package/_assets/{index-BhuPVo5e.js → index-D8QWWYMI.js} +2 -2
  134. package/_assets/{index-DeqZWYRQ.js → index-DAqd6v3r.js} +2 -2
  135. package/_assets/{index-DSfy1hBC.js → index-DCE7JXu8.js} +2 -2
  136. package/_assets/{index-0GqxSgjs.js → index-DGUzkX-I.js} +2 -2
  137. package/_assets/{index-HKZSXNsr.js → index-DGwAzxg5.js} +2 -2
  138. package/_assets/{index-ZdJgkDfq.js → index-DJXUib_8.js} +2 -2
  139. package/_assets/{index-_YF7EieY.js → index-DKiFTtAe.js} +3 -3
  140. package/_assets/{index-DRS8NbOe.js → index-DLKAGp7r.js} +2 -2
  141. package/_assets/{index-BMxAuVf4.js → index-DRR34LYo.js} +2 -2
  142. package/_assets/{index-Oc8g3W54.js → index-DZcNiUa1.js} +2 -2
  143. package/_assets/{index-MVmOAy4C.js → index-DejzmYQv.js} +2 -2
  144. package/_assets/{index-8ROQzz_g.js → index-DibFNBla.js} +2 -2
  145. package/_assets/{index-7k0c5Qcy.js → index-Dn8vBHwo.js} +2 -2
  146. package/_assets/{index-1oZGCxrR.js → index-Dxe6AOQE.js} +2 -2
  147. package/_assets/{index-Zw_hjMg7.js → index-G5AacsmF.js} +2 -2
  148. package/_assets/{index-CHxIVaGD.js → index-MZXf7D1W.js} +2 -2
  149. package/_assets/{index-C-bEpZKt.js → index-_-VFmxzj.js} +2 -2
  150. package/_assets/{index-DO2w-wQR.js → index-bJXcZSYa.js} +12 -12
  151. package/_assets/{index-BqDmiiZ-.js → index-ficvqfHi.js} +2 -2
  152. package/_assets/{index-B0FVA0eZ.js → index-gAex9EE8.js} +2 -2
  153. package/_assets/{index-YBa5NFZw.js → index-gm_D0aNI.js} +2 -2
  154. package/_assets/{index-Bl045Uro.js → index-n4qOUE64.js} +2 -2
  155. package/_assets/{index-DtNLghFi.js → index-nQ3hptXe.js} +2 -2
  156. package/_assets/{index-D3bYCsfh.js → index-ncctYqB-.js} +2 -2
  157. package/_assets/{index-RB8sYWdK.js → index-zkaZwO7E.js} +2 -2
  158. package/_assets/{index.es-BPsWV599.js → index.es-4xrWWZcO.js} +2 -2
  159. package/_assets/{index.es-DxzKuifY.js → index.es-CstVHWlV.js} +5 -5
  160. package/_assets/{index.es-Tp1KZ2HQ.js → index.es-DYbPPtM5.js} +2 -2
  161. package/_assets/{index.es-BOCjx120.js → index.es-DzLQ6Fnb.js} +2 -2
  162. package/_assets/items-empty-CpzVwMne.js +2 -0
  163. package/_assets/{jump-DErRvLju.js → jump-CVtY0iTz.js} +2 -2
  164. package/_assets/{linkAccount-YghbSYWp.js → linkAccount-6NTQv8aT.js} +2 -2
  165. package/_assets/{localBatchGatewayRequest-BExIf5_1.js → localBatchGatewayRequest-Dks7VfkN.js} +2 -2
  166. package/_assets/{native-c1T6eoXp.js → native-CXAGKkI7.js} +2 -2
  167. package/_assets/{networks-B-wEMoJV.js → networks-DtT18tMT.js} +2 -2
  168. package/_assets/{onramp-CDCcNQHe.js → onramp-CUVL5AKN.js} +2 -2
  169. package/_assets/{openzeppelin-CpRja1Th.js → openzeppelin-C6HmSX5F.js} +2 -2
  170. package/_assets/{ownerOf-C70qi64U.js → ownerOf-iHeO-A0L.js} +2 -2
  171. package/_assets/{parseNft-CZOYTgLm.js → parseNft-_qkiBgGY.js} +3 -3
  172. package/_assets/{parseSignature-DzR-8mQD.js → parseSignature-DCX2Homx.js} +4 -4
  173. package/_assets/{parseSignature-BEsyV8el.js → parseSignature-DpYJxwtD.js} +2 -2
  174. package/_assets/{passkeys-yBovAv90.js → passkeys-CaDDwDfa.js} +2 -2
  175. package/_assets/{pay-with-exchange-7bhrHbog.js → pay-with-exchange-mjjMFDoB.js} +2 -2
  176. package/_assets/{prepare-contract-call-h84PINiM.js → prepare-contract-call-B3PEXjk8.js} +2 -2
  177. package/_assets/{qr-overlay-WkRjHKs6.js → qr-overlay-Dte-FwLF.js} +4 -4
  178. package/_assets/{react-C_gdQiCE.js → react-Io5Wove7.js} +2 -2
  179. package/_assets/{receive-Do89clPB.js → receive-BOylnCCD.js} +2 -2
  180. package/_assets/{resolveImplementation-B9JWy09W.js → resolveImplementation-eqKe_Jd_.js} +2 -2
  181. package/_assets/{resume-buy-BC0M_EmE.js → resume-buy-l-MsHDN-.js} +2 -2
  182. package/_assets/{rpc-BSS6zm8k.js → rpc-Bd3ag8E4.js} +2 -2
  183. package/_assets/{sales-empty-DYbL-9_y.js → sales-empty-71lDTBeo.js} +2 -2
  184. package/_assets/{search-empty-CZAYhXXz.js → search-empty-C2pIWVz4.js} +2 -2
  185. package/_assets/{secp256k1-BBFBLxON.js → secp256k1-BCTY01q6.js} +2 -2
  186. package/_assets/{secp256k1-ZJxm9Bys.js → secp256k1-ChjjZr2n.js} +2 -2
  187. package/_assets/{secp256k1-BYDa0XLp.js → secp256k1-D89skxyt.js} +2 -2
  188. package/_assets/{send-ClRYnajv.js → send-BoRH3tdn.js} +2 -2
  189. package/_assets/{send-batch-transaction-DwvLC0W4.js → send-batch-transaction-qs3ijcbz.js} +2 -2
  190. package/_assets/{send-eip712-transaction-DvY1NVgK.js → send-eip712-transaction-BLU365vg.js} +3 -3
  191. package/_assets/{send-gasless-transaction-o1auSTit.js → send-gasless-transaction-COE6PePF.js} +3 -3
  192. package/_assets/{send-transaction-Br2a0g7W.js → send-transaction-DWia223-.js} +3 -3
  193. package/_assets/{sendMetaTransaction-Bu8b5LeI.js → sendMetaTransaction-Bnb1e1Oo.js} +2 -2
  194. package/_assets/{sendRawTransaction-BpeJI0sp.js → sendRawTransaction-QUpRtv1T.js} +4 -4
  195. package/_assets/{sentry-Cxy688Uv.js → sentry-faeuEJiQ.js} +3 -3
  196. package/_assets/{serializeTransaction-FQ6RV9RE.js → serializeTransaction-Bzap5VIj.js} +2 -2
  197. package/_assets/{session-proposal-C6u2LdKL.js → session-proposal-BRPQA6_F.js} +2 -2
  198. package/_assets/{session-request-w0C1Tobh.js → session-request-DE3BfIwL.js} +3 -3
  199. package/_assets/{sha256-CTCuMrwW.js → sha256-my9t8oLg.js} +2 -2
  200. package/_assets/{signing-D3zt3At6.js → signing-BKRnKKdl.js} +4 -4
  201. package/_assets/{skeleton.styles-B1HNltmx.js → skeleton.styles-Cjpy58bn.js} +2 -2
  202. package/_assets/{socials-DfbgvKTd.js → socials-CHs46oCs.js} +2 -2
  203. package/_assets/{styled-Cuj3EyKZ.js → styled-3e6FPpFM.js} +2 -2
  204. package/_assets/{swaps-b1I3uEg7.js → swaps-BQAfj8hR.js} +2 -2
  205. package/_assets/{thirdweb-auekSJDk.js → thirdweb-I3ycy-sq.js} +4 -4
  206. package/_assets/{to-serializable-transaction-CfmjnNDu.js → to-serializable-transaction-D4JXNF6K.js} +3 -3
  207. package/_assets/{totalSupply-BUwJKf4f.js → totalSupply-RRjcgrsd.js} +2 -2
  208. package/_assets/{transaction-DnOh3Eg-.js → transaction-CpNDZT6H.js} +2 -2
  209. package/_assets/{transactionReceipt-CqUJCou2.js → transactionReceipt-BsGymDgp.js} +2 -2
  210. package/_assets/{transactions-C3x5-V61.js → transactions-ZyGjrTz1.js} +2 -2
  211. package/_assets/{useCreditPacks-DCsNOyZ8.js → useCreditPacks-RKaHRtDl.js} +2 -2
  212. package/_assets/{useInfiniteGrid-R77Z-ty5.js → useInfiniteGrid-CKUOL3of.js} +2 -2
  213. package/_assets/{useStore-D2qLhY6J.js → useStore-zwLaMv5E.js} +3 -3
  214. package/_assets/{useTheme-BGjlT7WM.js → useTheme-6lXtg_We.js} +2 -2
  215. package/_assets/{utils-BtZfUVLs.js → utils-DmCacC3Z.js} +2 -2
  216. package/_assets/{verifyHash-DPHC3ZIF.js → verifyHash-BnLy1LQ8.js} +2 -2
  217. package/_assets/{w3m-modal-CbZN_Q63.js → w3m-modal-CqeYEpsp.js} +2 -2
  218. package/_assets/{w3m-modal-D0JziRdg.js → w3m-modal-igkHA2Yg.js} +2 -2
  219. package/_assets/{wait-for-tx-receipt-DZiNnQbl.js → wait-for-tx-receipt-BBZ5JG62.js} +2 -2
  220. package/_assets/{wallets-rH1kVf3P.js → wallets-BUa02PiV.js} +6 -6
  221. package/_assets/{web-connector-COam_ETk.js → web-connector-C7j-Aqf_.js} +4 -4
  222. package/_assets/{writeContract-14h9tGQE.js → writeContract-DUS_4K4j.js} +2 -2
  223. package/_assets/{zora-sepolia-CutqFesD.js → zora-sepolia-CDPQd0aL.js} +2 -2
  224. package/_assets/{zoraTestnet-bXAN-i92.js → zoraTestnet-DzzH_a_k.js} +2 -2
  225. package/index.html +11 -11
  226. package/package.json +1 -1
  227. package/_assets/collectionPage.styles-DVsIiXb2.js +0 -40
  228. package/_assets/items-empty-x6ksK26N.js +0 -2
@@ -1,2 +1,2 @@
1
- import{e as v}from"./index-CIKEzKBH.js";import{o}from"./browser-ponyfill-BNOW_pBr.js";import{i as a,s as l,a as b,f as u,p as y}from"./index-qNV8isBD.js";import"./index-DKaHo61X.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]="55b920a6-528c-447e-8af2-0f3804567b5a",s._sentryDebugIdIdentifier="sentry-dbid-55b920a6-528c-447e-8af2-0f3804567b5a")}catch{}})();var m=Object.defineProperty,w=Object.defineProperties,P=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,c=(s,e,t)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,f=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(h)for(var t of h(e))O.call(e,t)&&c(s,t,e[t]);return s},p=(s,e)=>w(s,P(e));const L={Accept:"application/json","Content-Type":"application/json"},j="POST",d={headers:L,method:j},g=10;class M{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new v.EventEmitter,this.isAvailable=!1,this.registering=!1,!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const t=l(e),r=await(await o(this.url,p(f({},d),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((r,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));r()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const t=l({id:1,jsonrpc:"2.0",method:"test",params:[]});await o(e,p(f({},d),{body:t}))}this.onOpen()}catch(t){const r=this.parseError(t);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const t=typeof e.data=="string"?b(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=r.message||r.toString(),n=u(e,i);this.events.emit("payload",n)}parseError(e,t=this.url){return y(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>g&&this.events.setMaxListeners(g)}}export{M as f};
2
- //# sourceMappingURL=index.es-Tp1KZ2HQ.js.map
1
+ import{e as v}from"./index-ARGrbe3A.js";import{o}from"./browser-ponyfill-2MY_3eYQ.js";import{i as a,s as l,a as b,f as u,p as y}from"./index-CQvLWK26.js";import"./index-Cj5zg5gT.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]="55b920a6-528c-447e-8af2-0f3804567b5a",s._sentryDebugIdIdentifier="sentry-dbid-55b920a6-528c-447e-8af2-0f3804567b5a")}catch{}})();var m=Object.defineProperty,w=Object.defineProperties,P=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,c=(s,e,t)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,f=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(h)for(var t of h(e))O.call(e,t)&&c(s,t,e[t]);return s},p=(s,e)=>w(s,P(e));const L={Accept:"application/json","Content-Type":"application/json"},j="POST",d={headers:L,method:j},g=10;class M{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new v.EventEmitter,this.isAvailable=!1,this.registering=!1,!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const t=l(e),r=await(await o(this.url,p(f({},d),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((r,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));r()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const t=l({id:1,jsonrpc:"2.0",method:"test",params:[]});await o(e,p(f({},d),{body:t}))}this.onOpen()}catch(t){const r=this.parseError(t);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const t=typeof e.data=="string"?b(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=r.message||r.toString(),n=u(e,i);this.events.emit("payload",n)}parseError(e,t=this.url){return y(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>g&&this.events.setMaxListeners(g)}}export{M as f};
2
+ //# sourceMappingURL=index.es-DYbPPtM5.js.map
@@ -1,2 +1,2 @@
1
- import{B as M}from"./dcl-schemas-Z_oWg9h9.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-rH1kVf3P.js";import"./index-DKaHo61X.js";import{b as Jt,o as g,c as Et}from"./index-qNV8isBD.js";import{f as P}from"./index.es-Tp1KZ2HQ.js";import{N as zt}from"./index-CIKEzKBH.js";import"./react-C_gdQiCE.js";import"./signing-D3zt3At6.js";import"./prepare-contract-call-h84PINiM.js";import"./utils-BtZfUVLs.js";import"./sentry-Cxy688Uv.js";import"./index-DO2w-wQR.js";import"./ethers-Cpz0Q6xx.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-CfmjnNDu.js";import"./transaction-DnOh3Eg-.js";import"./get-bytecode-CUOf1h_g.js";import"./execute-D9BdF3-v.js";import"./detectExtension-Dt_yYPg7.js";import"./linkAccount-YghbSYWp.js";import"./index-CnKfDln2.js";import"./ethereum-CS-n5Xr7.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-ByJYgeO9.js";import"./send-transaction-Br2a0g7W.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-B3Z7srlP.js";import"./index-DSfy1hBC.js";import"./browser-ponyfill-BNOW_pBr.js";import"./events-DACjjuYo.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-BOCjx120.js.map
1
+ import{B as M}from"./dcl-schemas-OH8G4Ndl.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-BUa02PiV.js";import"./index-Cj5zg5gT.js";import{b as Jt,o as g,c as Et}from"./index-CQvLWK26.js";import{f as P}from"./index.es-DYbPPtM5.js";import{N as zt}from"./index-ARGrbe3A.js";import"./react-Io5Wove7.js";import"./signing-BKRnKKdl.js";import"./prepare-contract-call-B3PEXjk8.js";import"./utils-DmCacC3Z.js";import"./sentry-faeuEJiQ.js";import"./index-bJXcZSYa.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-D4JXNF6K.js";import"./transaction-CpNDZT6H.js";import"./get-bytecode-We_Yud0L.js";import"./execute-wmZZdldV.js";import"./detectExtension-GZk2y11b.js";import"./linkAccount-6NTQv8aT.js";import"./index-BjdjqJv4.js";import"./ethereum-BgVZC6F_.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-OCiZaYsv.js";import"./send-transaction-DWia223-.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-Cst1nEOO.js";import"./index-DCE7JXu8.js";import"./browser-ponyfill-2MY_3eYQ.js";import"./events-CSIN-_05.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-DzLQ6Fnb.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]="9299661f-add3-48f8-953f-0ca8b1bca8bf",e._sentryDebugIdIdentifier="sentry-dbid-9299661f-add3-48f8-953f-0ca8b1bca8bf")}catch{}})();const s="https://cdn.decentraland.org/@dcl/shop/1.11.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-CpzVwMne.js.map
@@ -1,2 +1,2 @@
1
- import{j as t}from"./react-C_gdQiCE.js";import{c as d}from"./index-DO2w-wQR.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-DErRvLju.js.map
1
+ import{j as t}from"./react-Io5Wove7.js";import{c as d}from"./index-bJXcZSYa.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-CVtY0iTz.js.map
@@ -1,2 +1,2 @@
1
- import{v as p,p as f,s as h}from"./prepare-contract-call-h84PINiM.js";import{c as l,e as w}from"./utils-BtZfUVLs.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-YghbSYWp.js.map
1
+ import{v as p,p as f,s as h}from"./prepare-contract-call-B3PEXjk8.js";import{c as l,e as w}from"./utils-DmCacC3Z.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-6NTQv8aT.js.map
@@ -1,2 +1,2 @@
1
- import{av as f}from"./NetworkUtil-DbL_V1jR.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-BpeJI0sp.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-BExIf5_1.js.map
1
+ import{av as f}from"./NetworkUtil-BIUbrPWa.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-QUpRtv1T.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-Dks7VfkN.js.map
@@ -1,2 +1,2 @@
1
- import{g as t}from"./sentry-Cxy688Uv.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-c1T6eoXp.js.map
1
+ import{g as t}from"./sentry-faeuEJiQ.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-CXAGKkI7.js.map
@@ -1,2 +1,2 @@
1
- import{aw as z}from"./NetworkUtil-DbL_V1jR.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-bXAN-i92.js";import"./sentry-Cxy688Uv.js";import"./react-C_gdQiCE.js";import"./verifyHash-DPHC3ZIF.js";import"./sendRawTransaction-BpeJI0sp.js";import"./index-DO2w-wQR.js";import"./dcl-schemas-Z_oWg9h9.js";import"./ethers-Cpz0Q6xx.js";import"./intl-AKLEHPeO.js";import"./secp256k1-BYDa0XLp.js";import"./serializeTransaction-FQ6RV9RE.js";import"./writeContract-14h9tGQE.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]="aba45adc-12f8-4d7f-aa3b-985e5ce164de",s._sentryDebugIdIdentifier="sentry-dbid-aba45adc-12f8-4d7f-aa3b-985e5ce164de")}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-B-wEMoJV.js.map
1
+ import{aw as z}from"./NetworkUtil-BIUbrPWa.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-DzzH_a_k.js";import"./sentry-faeuEJiQ.js";import"./react-Io5Wove7.js";import"./verifyHash-BnLy1LQ8.js";import"./sendRawTransaction-QUpRtv1T.js";import"./index-bJXcZSYa.js";import"./dcl-schemas-OH8G4Ndl.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./secp256k1-D89skxyt.js";import"./serializeTransaction-Bzap5VIj.js";import"./writeContract-DUS_4K4j.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]="aba45adc-12f8-4d7f-aa3b-985e5ce164de",s._sentryDebugIdIdentifier="sentry-dbid-aba45adc-12f8-4d7f-aa3b-985e5ce164de")}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-DtT18tMT.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-KxXBUjbr.js";import{c as g}from"./index-oUqiABFT.js";import"./index-B0FVA0eZ.js";import{O as T}from"./index-RB8sYWdK.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-Cb17Fn7X.js";import"./index-Bzl3YxsW.js";import"./index-BfFqEUOq.js";import"./index-Cw7Rqo2-.js";import"./index-MVmOAy4C.js";import"./index-ZdJgkDfq.js";import"./index-DNVhmP-g.js";import"./index-BhuPVo5e.js";import"./index-YBa5NFZw.js";import"./index-DO2w-wQR.js";import"./react-C_gdQiCE.js";import"./dcl-schemas-Z_oWg9h9.js";import"./sentry-Cxy688Uv.js";import"./ethers-Cpz0Q6xx.js";import"./intl-AKLEHPeO.js";import"./index-CIKEzKBH.js";import"./events-DACjjuYo.js";import"./index-qNV8isBD.js";import"./index-DKaHo61X.js";import"./index-OpYIGLSa.js";import"./index-DSfy1hBC.js";import"./index.es-Tp1KZ2HQ.js";import"./browser-ponyfill-BNOW_pBr.js";import"./NetworkUtil-DbL_V1jR.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]="da51f156-e0c7-4a7a-9b70-b4a26f25aa0f",t._sentryDebugIdIdentifier="sentry-dbid-da51f156-e0c7-4a7a-9b70-b4a26f25aa0f")}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-CtayMM8a.js";import{c as g}from"./index-D0Wlf6gr.js";import"./index-gAex9EE8.js";import{O as T}from"./index-zkaZwO7E.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-DqaMm2mV.js";import"./index-CFGlj3ri.js";import"./index-BPinodm9.js";import"./index-B1wSCmue.js";import"./index-DejzmYQv.js";import"./index-DJXUib_8.js";import"./index-BDJuqgxU.js";import"./index-D8QWWYMI.js";import"./index-gm_D0aNI.js";import"./index-bJXcZSYa.js";import"./react-Io5Wove7.js";import"./dcl-schemas-OH8G4Ndl.js";import"./sentry-faeuEJiQ.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./index-ARGrbe3A.js";import"./events-CSIN-_05.js";import"./index-CQvLWK26.js";import"./index-Cj5zg5gT.js";import"./index-OpYIGLSa.js";import"./index-DCE7JXu8.js";import"./index.es-DYbPPtM5.js";import"./browser-ponyfill-2MY_3eYQ.js";import"./NetworkUtil-BIUbrPWa.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]="da51f156-e0c7-4a7a-9b70-b4a26f25aa0f",t._sentryDebugIdIdentifier="sentry-dbid-da51f156-e0c7-4a7a-9b70-b4a26f25aa0f")}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-CDCcNQHe.js.map
423
+ //# sourceMappingURL=onramp-CUVL5AKN.js.map
@@ -1,2 +1,2 @@
1
- import{g as y}from"./to-serializable-transaction-CfmjnNDu.js";import{s as p,f,r as c}from"./prepare-contract-call-h84PINiM.js";import"./index-DO2w-wQR.js";import"./react-C_gdQiCE.js";import"./dcl-schemas-Z_oWg9h9.js";import"./sentry-Cxy688Uv.js";import"./ethers-Cpz0Q6xx.js";import"./intl-AKLEHPeO.js";import"./transaction-DnOh3Eg-.js";import"./utils-BtZfUVLs.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-CpRja1Th.js.map
1
+ import{g as y}from"./to-serializable-transaction-D4JXNF6K.js";import{s as p,f,r as c}from"./prepare-contract-call-B3PEXjk8.js";import"./index-bJXcZSYa.js";import"./react-Io5Wove7.js";import"./dcl-schemas-OH8G4Ndl.js";import"./sentry-faeuEJiQ.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./transaction-CpNDZT6H.js";import"./utils-DmCacC3Z.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-C6HmSX5F.js.map
@@ -1,2 +1,2 @@
1
- import{d as o,e as c,r as a}from"./prepare-contract-call-h84PINiM.js";import{d as s}from"./detectExtension-Dt_yYPg7.js";import"./utils-BtZfUVLs.js";import"./sentry-Cxy688Uv.js";import"./react-C_gdQiCE.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-C70qi64U.js.map
1
+ import{d as o,e as c,r as a}from"./prepare-contract-call-B3PEXjk8.js";import{d as s}from"./detectExtension-GZk2y11b.js";import"./utils-DmCacC3Z.js";import"./sentry-faeuEJiQ.js";import"./react-Io5Wove7.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-iHeO-A0L.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-CitsyjuX.js","_assets/index-DO2w-wQR.js","_assets/react-C_gdQiCE.js","_assets/dcl-schemas-Z_oWg9h9.js","_assets/sentry-Cxy688Uv.js","_assets/ethers-Cpz0Q6xx.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/fetchTokenMetadata-0K65OHg2.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-h84PINiM.js","_assets/utils-BtZfUVLs.js","_assets/thirdweb-auekSJDk.js","_assets/signing-D3zt3At6.js","_assets/to-serializable-transaction-CfmjnNDu.js","_assets/transaction-DnOh3Eg-.js","_assets/get-bytecode-CUOf1h_g.js","_assets/wait-for-tx-receipt-DZiNnQbl.js","_assets/transactionReceipt-CqUJCou2.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-etehgmZh.js","_assets/eth_getStorageAt-CbdzG1l_.js","_assets/eth_getTransactionCount-B5PZdzoN.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-Bq-S3aqE.js","_assets/decimals-CArBdPn5.js","_assets/zora-sepolia-CutqFesD.js","_assets/send-batch-transaction-DwvLC0W4.js","_assets/send-transaction-Br2a0g7W.js","_assets/getNFT-WfSacIBg.js","_assets/totalSupply-BUwJKf4f.js","_assets/detectExtension-Dt_yYPg7.js"])))=>i.map(i=>d[i]);
2
- import{_ as u}from"./index-DO2w-wQR.js";import{a as I}from"./utils-BtZfUVLs.js";import{g as _}from"./to-serializable-transaction-CfmjnNDu.js";import{i as g}from"./prepare-contract-call-h84PINiM.js";import"./react-C_gdQiCE.js";import"./dcl-schemas-Z_oWg9h9.js";import"./sentry-Cxy688Uv.js";import"./ethers-Cpz0Q6xx.js";import"./intl-AKLEHPeO.js";import"./transaction-DnOh3Eg-.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-CitsyjuX.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-WfSacIBg.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-CZOYTgLm.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-BCYWBTK4.js","_assets/index-bJXcZSYa.js","_assets/react-Io5Wove7.js","_assets/dcl-schemas-OH8G4Ndl.js","_assets/sentry-faeuEJiQ.js","_assets/ethers-DwK2TdL6.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/fetchTokenMetadata-DZy_tSZt.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-B3PEXjk8.js","_assets/utils-DmCacC3Z.js","_assets/thirdweb-I3ycy-sq.js","_assets/signing-BKRnKKdl.js","_assets/to-serializable-transaction-D4JXNF6K.js","_assets/transaction-CpNDZT6H.js","_assets/get-bytecode-We_Yud0L.js","_assets/wait-for-tx-receipt-BBZ5JG62.js","_assets/transactionReceipt-BsGymDgp.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-ByaJEeM-.js","_assets/eth_getStorageAt-CfRtAGD-.js","_assets/eth_getTransactionCount-DCx1pf2k.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-DwmaOPpT.js","_assets/decimals-gxw11IoF.js","_assets/zora-sepolia-CDPQd0aL.js","_assets/send-batch-transaction-qs3ijcbz.js","_assets/send-transaction-DWia223-.js","_assets/getNFT-BiPo4cEC.js","_assets/totalSupply-RRjcgrsd.js","_assets/detectExtension-GZk2y11b.js"])))=>i.map(i=>d[i]);
2
+ import{_ as u}from"./index-bJXcZSYa.js";import{a as I}from"./utils-DmCacC3Z.js";import{g as _}from"./to-serializable-transaction-D4JXNF6K.js";import{i as g}from"./prepare-contract-call-B3PEXjk8.js";import"./react-Io5Wove7.js";import"./dcl-schemas-OH8G4Ndl.js";import"./sentry-faeuEJiQ.js";import"./ethers-DwK2TdL6.js";import"./intl-AKLEHPeO.js";import"./transaction-CpNDZT6H.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-BCYWBTK4.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-BiPo4cEC.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-_qkiBgGY.js.map