@dcl/shop 1.6.2-31375397616.commit-5c6323a → 1.6.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 (229) hide show
  1. package/_assets/{Activity-C1_aWENv.js → Activity-BmQYXcG8.js} +5 -5
  2. package/_assets/{AnimatedBackground-Cu3G_Zji.js → AnimatedBackground-Cp5gOAsG.js} +3 -3
  3. package/_assets/{Assets-BXOJ5dQa.js → Assets-8Vp1rrhZ.js} +3 -3
  4. package/_assets/{Assets.styles-D0uSWABP.js → Assets.styles-Dcrmtg5A.js} +2 -2
  5. package/_assets/{Authorizations-BFGGkLTw.js → Authorizations-D5Q1vK4d.js} +2 -2
  6. package/_assets/{Cart-C87QyVCC.js → Cart-BObIWN-S.js} +2 -2
  7. package/_assets/{CircularProgress-BhbqJDu-.js → CircularProgress-D-1CdAFC.js} +2 -2
  8. package/_assets/{Collection-BGJONgQH.js → Collection-BXVDE0H8.js} +2 -2
  9. package/_assets/{CollectionCarousel-CPLXMRpF.js → CollectionCarousel-CuYPYfsx.js} +3 -3
  10. package/_assets/{Confetti-DAFErSdE.js → Confetti-7Pj-YFGO.js} +4 -4
  11. package/_assets/{ConstantsUtil-pveNrZQQ.js → ConstantsUtil-DOQT8QjB.js} +2 -2
  12. package/_assets/{ContentClient-DnV4wAcX.js → ContentClient-CP30kTGC.js} +2 -2
  13. package/_assets/{Creator-DjcxC1Oh.js → Creator-CL5-9wt8.js} +2 -2
  14. package/_assets/{DeploymentBuilder-CPCsPb6m.js → DeploymentBuilder-CBZcZRxi.js} +2 -2
  15. package/_assets/{ErrorNotice-MUyYxF6M.js → ErrorNotice-hBQmSZ6-.js} +2 -2
  16. package/_assets/{ExchangeController-Dz89U6XZ.js → ExchangeController-D8HU_NYC.js} +2 -2
  17. package/_assets/{Faq-CCYkFD_b.js → Faq-BQrzHqNG.js} +2 -2
  18. package/_assets/{GetCredits-Bjixra5O.js → GetCredits-ygbuw7u7.js} +2 -2
  19. package/_assets/{Grow-CQ1sqXe9.js → Grow-BukjLeqq.js} +2 -2
  20. package/_assets/{HelpersUtil-BfHUOV9-.js → HelpersUtil-DQZPVnGd.js} +2 -2
  21. package/_assets/{ItemDetail-xmqEeh1X.js → ItemDetail-DRYClvFH.js} +2 -2
  22. package/_assets/{JumpInIcon-coe1CG9v.js → JumpInIcon-Cl5YIChT.js} +2 -2
  23. package/_assets/LazyEmoteControls-biIY6i1F.js +3 -0
  24. package/_assets/{LoadMore-CmFZiMCE.js → LoadMore-K3-v7nFb.js} +2 -2
  25. package/_assets/{ManaPricingBanner.styles-BZ1km3to.js → ManaPricingBanner.styles-fqgzCjHO.js} +2 -2
  26. package/_assets/{MyAssets-C9_rKrBZ.js → MyAssets-CwAfA9JG.js} +5 -5
  27. package/_assets/{MyFavorites-C9UVXsHV.js → MyFavorites-C7rFPSVw.js} +2 -2
  28. package/_assets/{NetworkUtil-BlguztEt.js → NetworkUtil-f9jGDeMT.js} +2 -2
  29. package/_assets/{NotFound-Q_5k4_eb.js → NotFound-Bx4Ct8Ma.js} +2 -2
  30. package/_assets/{NotificationsBell-B_MNycqA.js → NotificationsBell-CpnwVfKL.js} +2 -2
  31. package/_assets/{OutfitDetail-gJ35x0yV.js → OutfitDetail-CT4xUcaW.js} +2 -2
  32. package/_assets/{OutfitPreview-B_x1WY9d.js → OutfitPreview-Cv5six9R.js} +2 -2
  33. package/_assets/{OutfitStudio-C79BORm8.js → OutfitStudio-Bi9wked4.js} +2 -2
  34. package/_assets/{StoreSettings-BygT1Y4x.js → StoreSettings-BTpTw_QH.js} +2 -2
  35. package/_assets/{Success-Cxe9uUJK.js → Success-BsO7Oqa9.js} +2 -2
  36. package/_assets/{SwapController-eYh-GZIn.js → SwapController-CCDvSVZw.js} +2 -2
  37. package/_assets/{Tooltip-B17cDJlj.js → Tooltip-FbDeNHgE.js} +2 -2
  38. package/_assets/{TradeService-DOciVjsi.js → TradeService-DF614pXt.js} +2 -2
  39. package/_assets/{W3MFrameProviderSingleton-DHdetABb.js → W3MFrameProviderSingleton-DNdgBjm3.js} +4 -4
  40. package/_assets/{WebCryptoP256-DR-SS-Ao.js → WebCryptoP256-BiF_WZmK.js} +2 -2
  41. package/_assets/{authorizations-DzRbl3Uf.js → authorizations-COaeSxyj.js} +2 -2
  42. package/_assets/{basic-BYQWv__-.js → basic-Da5ip3dN.js} +2 -2
  43. package/_assets/{biconomy-S0Q3AAjj.js → biconomy-BBLRbFU5.js} +2 -2
  44. package/_assets/{browser-3hb1mttJ.js → browser-GL38zsBc.js} +2 -2
  45. package/_assets/{browser-ponyfill-Bo4s2Sut.js → browser-ponyfill-CCLQ_lzS.js} +2 -2
  46. package/_assets/{builder-9t5QwCN8.js → builder-BhFMeRdB.js} +2 -2
  47. package/_assets/{buy-BxviCTMw.js → buy-BxFFcAZZ.js} +2 -2
  48. package/_assets/{buy-gasless-BihmCrQ5.js → buy-gasless-DYr2Vni1.js} +2 -2
  49. package/_assets/{categories-CB1bl6rE.js → categories-B0H2Zy7N.js} +2 -2
  50. package/_assets/{ccip-CDxkjxNZ.js → ccip-Cy0gmhxI.js} +2 -2
  51. package/_assets/{ccip-CeL7J9Wp.js → ccip-YIm0Hjru.js} +2 -2
  52. package/_assets/{chains-jL97Saqw.js → chains-QfFptk6u.js} +2 -2
  53. package/_assets/collectionPage.styles-B60NuBHe.js +33 -0
  54. package/_assets/{common-BWP8CW6K.js → common-pubFB5wO.js} +2 -2
  55. package/_assets/{controller-DDc7Wu3k.js → controller-DKzxhv44.js} +3 -3
  56. package/_assets/{core-CyTycrix.js → core-BO30Mb0n.js} +5 -5
  57. package/_assets/{createSvgIcon-BXeueRmY.js → createSvgIcon-D-vzSvs5.js} +2 -2
  58. package/_assets/{custom-CN5K0Rsx.js → custom-BBevYh09.js} +2 -2
  59. package/_assets/{data-capture-KXu8rmaK.js → data-capture-DyOym9gv.js} +2 -2
  60. package/_assets/{dcl-schemas-Di56bVOC.js → dcl-schemas-rRgEodwV.js} +2 -2
  61. package/_assets/{decimals-C94QC_d1.js → decimals-BWyYn_GC.js} +2 -2
  62. package/_assets/{decimals-8pLgnpGf.js → decimals-DraOdj29.js} +2 -2
  63. package/_assets/{detectExtension-CFBn3w2l.js → detectExtension-CYZ0BZR3.js} +2 -2
  64. package/_assets/{disposePreview-CAmfPwuH.js → disposePreview-CLOn1byi.js} +2 -2
  65. package/_assets/{email-DciZhIBG.js → email-BLUXC6jA.js} +2 -2
  66. package/_assets/{embedded-wallet-CG-kjzWi.js → embedded-wallet-BaCBAOE_.js} +2 -2
  67. package/_assets/{emotion-styled.browser.esm-ijDWtqkc.js → emotion-styled.browser.esm-DDVjFQef.js} +2 -2
  68. package/_assets/{engine-TPE7kIA8.js → engine-DDqGz-47.js} +2 -2
  69. package/_assets/{errors-BpNmnSV5.js → errors-D4QBpuQp.js} +2 -2
  70. package/_assets/{estimate-l1-fee-238kdxhw.js → estimate-l1-fee-By1kr7gc.js} +2 -2
  71. package/_assets/{eth_estimateGas-BWsans1G.js → eth_estimateGas-BQolTH27.js} +2 -2
  72. package/_assets/{eth_getStorageAt-B3AYUuTx.js → eth_getStorageAt-8TXY-Y6k.js} +2 -2
  73. package/_assets/{eth_getTransactionCount-Ddk4R9qW.js → eth_getTransactionCount-LNQAx49w.js} +2 -2
  74. package/_assets/{ethereum-CEDZTIAN.js → ethereum-DjJ9E9Uy.js} +2 -2
  75. package/_assets/{ethers-ZJfPUY9n.js → ethers-I-AWJ0yN.js} +2 -2
  76. package/_assets/{events-B6nd2he6.js → events-_9TL08nf.js} +2 -2
  77. package/_assets/{execute-C8LfApIK.js → execute-CFGG-uaC.js} +3 -3
  78. package/_assets/{extractIPFS-DFTb5uFe.js → extractIPFS-CkcgXisF.js} +2 -2
  79. package/_assets/{features-CERWJhNa.js → features-D23o-Qlv.js} +2 -2
  80. package/_assets/{fetchTokenMetadata-DOElRUZS.js → fetchTokenMetadata-DzRNvmd1.js} +3 -3
  81. package/_assets/{field.styles-Bev7vjaJ.js → field.styles-DLaLs4aV.js} +2 -2
  82. package/_assets/{fortmatic-PNEHntx3.js → fortmatic-nIEP89xV.js} +2 -2
  83. package/_assets/{get-bytecode-C7J0U60a.js → get-bytecode-T6S-qWDg.js} +2 -2
  84. package/_assets/{get-ecosystem-wallet-info-DiX1zq1N.js → get-ecosystem-wallet-info-BdTGSMmb.js} +2 -2
  85. package/_assets/{getBalance-DAPx9sbz.js → getBalance-B-KGwUVb.js} +3 -3
  86. package/_assets/{getInstalledModules-BQlkplIf.js → getInstalledModules-B5zxrfRx.js} +2 -2
  87. package/_assets/{getNFT-yWmGFCJD.js → getNFT-D42WqdiE.js} +2 -2
  88. package/_assets/{getNFT-CRkuabKC.js → getNFT-kOBqsD0s.js} +3 -3
  89. package/_assets/{grid.styles-CArbKt7C.js → grid.styles-DvImG0tJ.js} +2 -2
  90. package/_assets/{hashTypedData-B3DtVOyQ.js → hashTypedData-CKs1CieO.js} +2 -2
  91. package/_assets/{hashTypedData-Bz8ERvIM.js → hashTypedData-DS7yeaQ_.js} +2 -2
  92. package/_assets/{in-app-BS5JQplZ.js → in-app-qI6giYWT.js} +2 -2
  93. package/_assets/{in-app-wallet-calls-BmsgSPGq.js → in-app-wallet-calls-DhXu1kmZ.js} +2 -2
  94. package/_assets/{index-LZwqOCTm.js → index-7RcHpl2m.js} +4 -4
  95. package/_assets/{index-qi5nnz09.js → index-8w4VTqCe.js} +2 -2
  96. package/_assets/{index-CNqag3Vp.js → index-B1tKYi-_.js} +2 -2
  97. package/_assets/{index-347DsB_C.js → index-B2grWswj.js} +2 -2
  98. package/_assets/{index-z64MuH31.js → index-B4qiqHB2.js} +2 -2
  99. package/_assets/{index-C3tJb3b8.js → index-BASywYZC.js} +2 -2
  100. package/_assets/{index-BVAyzsVH.js → index-BAkbFURw.js} +2 -2
  101. package/_assets/{index-DaMXT6tC.js → index-BAsCCK6D.js} +2 -2
  102. package/_assets/{index-ByR1_zI6.js → index-BDvetOHD.js} +2 -2
  103. package/_assets/{index-k0R5JvPG.js → index-BIdEX3Aj.js} +3 -3
  104. package/_assets/{index-9LWq0_mt.js → index-BKgFGP4Z.js} +2 -2
  105. package/_assets/{index-CTmUd6pE.js → index-BRDLRKnI.js} +2 -2
  106. package/_assets/{index-DoQvTAhA.js → index-BVZ2BCE0.js} +2 -2
  107. package/_assets/{index-BxqIuJP-.js → index-BXN5C244.js} +2 -2
  108. package/_assets/{index-BbcdJaho.js → index-BZVogiMb.js} +2 -2
  109. package/_assets/{index-BSAZwIyt.js → index-BZthWUVz.js} +2 -2
  110. package/_assets/{index-0EQCZTV1.js → index-BaGa2ngS.js} +3 -3
  111. package/_assets/{index-8PjnG2TK.js → index-BbwQy8gt.js} +2 -2
  112. package/_assets/{index-a_2nFMNd.js → index-Bc32c0SO.js} +2 -2
  113. package/_assets/{index-DIHKWE4g.js → index-BfT4xJoU.js} +2 -2
  114. package/_assets/{index-BzLSPpal.js → index-BmI7kaHT.js} +4 -4
  115. package/_assets/{index-B4YsaHis.js → index-Bo71FRPI.js} +2 -2
  116. package/_assets/{index-CURHv4B8.js → index-BwHwOSef.js} +2 -2
  117. package/_assets/{index-CazgTU5d.js → index-Bx6FWc9w.js} +2 -2
  118. package/_assets/{index-DlQgvHdX.js → index-BxoMEiBs.js} +2 -2
  119. package/_assets/{index-B9nIuEZp.js → index-Bz-cBXjA.js} +2 -2
  120. package/_assets/{index-Dej46644.js → index-Bz9-mgxI.js} +2 -2
  121. package/_assets/{index-BvPZvoWl.js → index-C37hMmgX.js} +2 -2
  122. package/_assets/{index-DBo16uqR.js → index-C55jjLcH.js} +2 -2
  123. package/_assets/{index-CPPpVKWm.js → index-C8olfgnT.js} +2 -2
  124. package/_assets/{index-B2NLYAKP.js → index-C95by_nd.js} +12 -12
  125. package/_assets/{index-BowuOYXu.js → index-CAfc7Si6.js} +2 -2
  126. package/_assets/{index-BQEl1m44.js → index-CIpIBG2l.js} +2 -2
  127. package/_assets/{index-MPblnUEi.js → index-CJdGteOt.js} +2 -2
  128. package/_assets/{index-Ueb4oFdT.js → index-CJmXYJSQ.js} +2 -2
  129. package/_assets/{index-CepmWofh.js → index-Cf4qilLE.js} +2 -2
  130. package/_assets/{index-CV70Z8vl.js → index-CihPZf_2.js} +2 -2
  131. package/_assets/{index-DpIiH3qH.js → index-CobpTgR7.js} +2 -2
  132. package/_assets/{index-DiVOQepE.js → index-CpU2_Hdp.js} +2 -2
  133. package/_assets/{index-Hzkh-kAd.js → index-Cq2ywtZp.js} +2 -2
  134. package/_assets/{index-CwW13eCB.js → index-CvOyUt7s.js} +2 -2
  135. package/_assets/{index-Dr_mNF24.js → index-CwpZN99m.js} +2 -2
  136. package/_assets/{index-DP69342q.js → index-CxZ4lmqQ.js} +2 -2
  137. package/_assets/{index-JUqvZekh.js → index-D0zQ6XU1.js} +2 -2
  138. package/_assets/{index-DTeCjpRI.js → index-D1vDEGxf.js} +2 -2
  139. package/_assets/{index-DIprvyD4.js → index-D21N5UFA.js} +2 -2
  140. package/_assets/{index-DBHlqk6u.js → index-D6zI7Viz.js} +2 -2
  141. package/_assets/{index-C9K4h6NH.js → index-DJ-lRvoa.js} +3 -3
  142. package/_assets/{index-dqq5Nf7n.js → index-DP1q7A9E.js} +2 -2
  143. package/_assets/{index-D3-DN9JZ.js → index-DU_zGodc.js} +2 -2
  144. package/_assets/{index-DVrO7Ou9.js → index-DYa64o3S.js} +2 -2
  145. package/_assets/{index-DEsqs8-w.js → index-D_9Xd6lL.js} +2 -2
  146. package/_assets/{index-BApRgCGp.js → index-DbV9oc9j.js} +2 -2
  147. package/_assets/{index-0UrPB7mg.js → index-DcbOU41E.js} +2 -2
  148. package/_assets/{index-CtsW7sYw.js → index-Dh9BVxww.js} +2 -2
  149. package/_assets/{index-C7G1O4nd.js → index-HAaWMxq3.js} +2 -2
  150. package/_assets/{index-BYx0oDku.js → index-NjqKRGql.js} +2 -2
  151. package/_assets/{index-Bxexvngk.js → index-RwAzhZ9F.js} +2 -2
  152. package/_assets/{index-BDXA1W6w.js → index-WX0xM9nR.js} +2 -2
  153. package/_assets/{index-CpLEqSy7.js → index-YLzUH1O6.js} +3 -3
  154. package/_assets/{index-BG_CVN7E.js → index-ZuhaIzUS.js} +4 -4
  155. package/_assets/{index-C-f2gZyt.js → index-lm4kmYVf.js} +2 -2
  156. package/_assets/{index-BUEBVyvp.js → index-mykvqk-N.js} +2 -2
  157. package/_assets/{index-D7qrqXNT.js → index-obuKV-iG.js} +2 -2
  158. package/_assets/{index-DdC5YxQ1.js → index-pq1YwDoV.js} +2 -2
  159. package/_assets/{index-Ckh9Ox1T.js → index-sNU3aV5D.js} +2 -2
  160. package/_assets/{index-DX-D9H-I.js → index-xw5n3NZp.js} +2 -2
  161. package/_assets/{index.es-BNbYiox4.js → index.es-3cCizRPh.js} +2 -2
  162. package/_assets/{index.es-DCinjde-.js → index.es-CCUvHU8r.js} +2 -2
  163. package/_assets/{index.es-Bh3CC5Cr.js → index.es-jBCJphZQ.js} +5 -5
  164. package/_assets/{index.es-ce8yr6Cu.js → index.es-yHHQjCmc.js} +2 -2
  165. package/_assets/{linkAccount-CYLamtmX.js → linkAccount-Bta19TNy.js} +2 -2
  166. package/_assets/{localBatchGatewayRequest-BGDlNeRH.js → localBatchGatewayRequest-BbksyLVj.js} +2 -2
  167. package/_assets/{native-Pa82vD-9.js → native-B5UFxb45.js} +2 -2
  168. package/_assets/{networks-1YsZeevq.js → networks-CgpgXKDz.js} +2 -2
  169. package/_assets/{onramp-Dih0_wWx.js → onramp-XjJDC1c4.js} +2 -2
  170. package/_assets/{openzeppelin-Bplfgera.js → openzeppelin-DUV4Icd9.js} +2 -2
  171. package/_assets/{ownerOf-BMf1ddLW.js → ownerOf-Cs_ogLg-.js} +2 -2
  172. package/_assets/{parseNft-C0cnyqRa.js → parseNft-CBPQ3LJE.js} +3 -3
  173. package/_assets/{parseSignature-zSNOXnbP.js → parseSignature-BP4e1Upa.js} +2 -2
  174. package/_assets/{parseSignature-D4IvHj27.js → parseSignature-CExyayjK.js} +4 -4
  175. package/_assets/{passkeys-ExBXo0wk.js → passkeys-DgCEtlaS.js} +2 -2
  176. package/_assets/{pay-with-exchange-nFrmWl2W.js → pay-with-exchange-DLOc9-39.js} +2 -2
  177. package/_assets/{prepare-contract-call-SCy4Crqp.js → prepare-contract-call-C00e98h3.js} +2 -2
  178. package/_assets/{qr-overlay-DZ-GePr7.js → qr-overlay-CKKFzooS.js} +4 -4
  179. package/_assets/{react-DfWw00n2.js → react-DEDBuQyX.js} +2 -2
  180. package/_assets/{receive-D4LiRk4L.js → receive-DVmCB5fD.js} +2 -2
  181. package/_assets/{resolveImplementation-Dhma2Bds.js → resolveImplementation-CAHD-9zO.js} +2 -2
  182. package/_assets/{resume-buy-B2F2Q1wS.js → resume-buy-BpKd_SKY.js} +2 -2
  183. package/_assets/{rpc-D4PAUpeQ.js → rpc-CbKNMs6x.js} +2 -2
  184. package/_assets/{secp256k1-rkwyWNKP.js → secp256k1-BZ5Nqh-r.js} +2 -2
  185. package/_assets/{secp256k1-C527rgBh.js → secp256k1-CcNGHtG4.js} +2 -2
  186. package/_assets/{secp256k1-Dzjakbzi.js → secp256k1-DvijEf7b.js} +2 -2
  187. package/_assets/{send-DhnPnbgG.js → send-CGNrp6p8.js} +2 -2
  188. package/_assets/{send-batch-transaction-CXbyIZQo.js → send-batch-transaction-U7mCgvb2.js} +2 -2
  189. package/_assets/{send-eip712-transaction-DBiKaByM.js → send-eip712-transaction-CJM0DKi_.js} +3 -3
  190. package/_assets/{send-gasless-transaction-aNBmb-R7.js → send-gasless-transaction-BLQB4OUk.js} +3 -3
  191. package/_assets/{send-transaction-SoJ_roci.js → send-transaction-D1Wj6Pyz.js} +3 -3
  192. package/_assets/{sendMetaTransaction-AbllpIQb.js → sendMetaTransaction-C60fXzSz.js} +2 -2
  193. package/_assets/{sendRawTransaction-CRxiA16v.js → sendRawTransaction-31arHEir.js} +4 -4
  194. package/_assets/{sentry-B9vIXOxS.js → sentry-B9JQuOUS.js} +3 -3
  195. package/_assets/{serializeTransaction-BTAZTBWt.js → serializeTransaction-DyVHuqDl.js} +2 -2
  196. package/_assets/{session-proposal-BqZq34e7.js → session-proposal-yFqvK059.js} +2 -2
  197. package/_assets/{session-request-BdY58C5K.js → session-request-BpQPShMh.js} +3 -3
  198. package/_assets/{sha256-KvAq7G6k.js → sha256-CZjTdMqq.js} +2 -2
  199. package/_assets/{signing-Bne0TCUl.js → signing-BVGwQAA3.js} +4 -4
  200. package/_assets/{skeleton.styles-BW4h7v3V.js → skeleton.styles-CX1NNl5b.js} +2 -2
  201. package/_assets/{socials-E1AAwjjf.js → socials-DIZXYb6i.js} +2 -2
  202. package/_assets/{styled-DGFiY_vh.js → styled-D2HPRVxs.js} +2 -2
  203. package/_assets/{swaps-y81pa_gZ.js → swaps-C4NOGbt9.js} +2 -2
  204. package/_assets/{thirdweb-BfozZU7-.js → thirdweb-kQURuS8x.js} +4 -4
  205. package/_assets/{to-serializable-transaction-BUZTH_DZ.js → to-serializable-transaction-CHGq8vN5.js} +3 -3
  206. package/_assets/{totalSupply-BhvNPorj.js → totalSupply-DgfIqjUQ.js} +2 -2
  207. package/_assets/{transaction-BxYu1-g9.js → transaction-BPl6u0MP.js} +2 -2
  208. package/_assets/{transactionReceipt-BdLClfyQ.js → transactionReceipt-DTKCzsCV.js} +2 -2
  209. package/_assets/{transactions-BgeBtFYY.js → transactions-BkPdpmZs.js} +2 -2
  210. package/_assets/{useCreditPacks-W7-PjyGq.js → useCreditPacks-5bsFilKk.js} +2 -2
  211. package/_assets/{useImportable-BbHqojQb.js → useImportable-A8pm0BCc.js} +2 -2
  212. package/_assets/{useInfiniteGrid-CeDwZm4w.js → useInfiniteGrid-B51FKHEU.js} +2 -2
  213. package/_assets/{useStore-rwtAnqQL.js → useStore-BVJetRLB.js} +3 -3
  214. package/_assets/{useTheme-ByWRK686.js → useTheme-BNx17lGp.js} +2 -2
  215. package/_assets/{useUrlFilters-Cz-FFv6D.js → useUrlFilters-dJpCby1d.js} +2 -2
  216. package/_assets/{utils-CNAE_Nu-.js → utils-DI62evWY.js} +2 -2
  217. package/_assets/{verifyHash-UQGc7tMl.js → verifyHash-Ub-7mo4v.js} +2 -2
  218. package/_assets/{w3m-modal-Ckais0sR.js → w3m-modal-IuHK7Vzl.js} +2 -2
  219. package/_assets/{w3m-modal-Bc2fa9O5.js → w3m-modal-wT2H8d0h.js} +2 -2
  220. package/_assets/{wait-for-tx-receipt-owY7GcLi.js → wait-for-tx-receipt-Dg5o9KEQ.js} +2 -2
  221. package/_assets/{wallets-azmUAMMr.js → wallets-BuMm_yGX.js} +6 -6
  222. package/_assets/{web-connector-Bp4-jzNh.js → web-connector-CGgj9WFL.js} +4 -4
  223. package/_assets/{writeContract-Cyo5u-dK.js → writeContract-Drz32GzX.js} +2 -2
  224. package/_assets/{zora-sepolia-BjpkKwB9.js → zora-sepolia-D5YQPaLB.js} +2 -2
  225. package/_assets/{zoraTestnet-1e3wJgZT.js → zoraTestnet-CgH53I_-.js} +2 -2
  226. package/index.html +11 -11
  227. package/package.json +1 -1
  228. package/_assets/LazyEmoteControls-BsP_P6nD.js +0 -3
  229. package/_assets/collectionPage.styles-D60Iu3-g.js +0 -33
@@ -1,2 +1,2 @@
1
- import{B as M}from"./dcl-schemas-Di56bVOC.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-azmUAMMr.js";import"./index-BvPZvoWl.js";import{b as Jt,o as g,c as Et}from"./index-DIHKWE4g.js";import{f as P}from"./index.es-BNbYiox4.js";import{N as zt}from"./index-k0R5JvPG.js";import"./react-DfWw00n2.js";import"./signing-Bne0TCUl.js";import"./prepare-contract-call-SCy4Crqp.js";import"./utils-CNAE_Nu-.js";import"./sentry-B9vIXOxS.js";import"./index-B2NLYAKP.js";import"./ethers-ZJfPUY9n.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-BUZTH_DZ.js";import"./transaction-BxYu1-g9.js";import"./get-bytecode-C7J0U60a.js";import"./execute-C8LfApIK.js";import"./detectExtension-CFBn3w2l.js";import"./linkAccount-CYLamtmX.js";import"./index-BG_CVN7E.js";import"./ethereum-CEDZTIAN.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-Bz8ERvIM.js";import"./send-transaction-SoJ_roci.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-DaMXT6tC.js";import"./index-CV70Z8vl.js";import"./browser-ponyfill-Bo4s2Sut.js";import"./events-B6nd2he6.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]="e50039d1-d22d-417d-a61c-b4ef1a985373",i._sentryDebugIdIdentifier="sentry-dbid-e50039d1-d22d-417d-a61c-b4ef1a985373")}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-ce8yr6Cu.js.map
1
+ import{B as M}from"./dcl-schemas-rRgEodwV.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-BuMm_yGX.js";import"./index-C37hMmgX.js";import{b as Jt,o as g,c as Et}from"./index-BfT4xJoU.js";import{f as P}from"./index.es-3cCizRPh.js";import{N as zt}from"./index-BIdEX3Aj.js";import"./react-DEDBuQyX.js";import"./signing-BVGwQAA3.js";import"./prepare-contract-call-C00e98h3.js";import"./utils-DI62evWY.js";import"./sentry-B9JQuOUS.js";import"./index-C95by_nd.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-CHGq8vN5.js";import"./transaction-BPl6u0MP.js";import"./get-bytecode-T6S-qWDg.js";import"./execute-CFGG-uaC.js";import"./detectExtension-CYZ0BZR3.js";import"./linkAccount-Bta19TNy.js";import"./index-ZuhaIzUS.js";import"./ethereum-DjJ9E9Uy.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-DS7yeaQ_.js";import"./send-transaction-D1Wj6Pyz.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-BAsCCK6D.js";import"./index-CihPZf_2.js";import"./browser-ponyfill-CCLQ_lzS.js";import"./events-_9TL08nf.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]="e50039d1-d22d-417d-a61c-b4ef1a985373",i._sentryDebugIdIdentifier="sentry-dbid-e50039d1-d22d-417d-a61c-b4ef1a985373")}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-yHHQjCmc.js.map
@@ -1,2 +1,2 @@
1
- import{v as k,p,s as w}from"./prepare-contract-call-SCy4Crqp.js";import{c as l,e as f}from"./utils-CNAE_Nu-.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]="f03aec7a-981f-497f-85ba-8c05fdb32410",n._sentryDebugIdIdentifier="sentry-dbid-f03aec7a-981f-497f-85ba-8c05fdb32410")}catch{}})();function y(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&k(t.chainId)&&(n.domain={...n.domain,chainId:p(n.domain.chainId)}),n}async function b({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=f(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:w({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=f(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:w({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const h=await i.json();throw new Error(h.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=f(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-CYLamtmX.js.map
1
+ import{v as k,p,s as w}from"./prepare-contract-call-C00e98h3.js";import{c as l,e as f}from"./utils-DI62evWY.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]="f03aec7a-981f-497f-85ba-8c05fdb32410",n._sentryDebugIdIdentifier="sentry-dbid-f03aec7a-981f-497f-85ba-8c05fdb32410")}catch{}})();function y(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&k(t.chainId)&&(n.domain={...n.domain,chainId:p(n.domain.chainId)}),n}async function b({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=f(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:w({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=f(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:w({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const h=await i.json();throw new Error(h.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=f(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-Bta19TNy.js.map
@@ -1,2 +1,2 @@
1
- import{av as f}from"./NetworkUtil-BlguztEt.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-CRxiA16v.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-BGDlNeRH.js.map
1
+ import{av as f}from"./NetworkUtil-f9jGDeMT.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-31arHEir.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-BbksyLVj.js.map
@@ -1,2 +1,2 @@
1
- import{g as t}from"./sentry-B9vIXOxS.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-Pa82vD-9.js.map
1
+ import{g as t}from"./sentry-B9JQuOUS.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-B5UFxb45.js.map
@@ -1,2 +1,2 @@
1
- import{aw as z}from"./NetworkUtil-BlguztEt.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-1e3wJgZT.js";import"./sentry-B9vIXOxS.js";import"./react-DfWw00n2.js";import"./verifyHash-UQGc7tMl.js";import"./sendRawTransaction-CRxiA16v.js";import"./index-B2NLYAKP.js";import"./dcl-schemas-Di56bVOC.js";import"./ethers-ZJfPUY9n.js";import"./intl-AKLEHPeO.js";import"./secp256k1-rkwyWNKP.js";import"./serializeTransaction-BTAZTBWt.js";import"./writeContract-Cyo5u-dK.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]="4a47aafe-7f43-41a1-aaaf-ee25ae328f91",s._sentryDebugIdIdentifier="sentry-dbid-4a47aafe-7f43-41a1-aaaf-ee25ae328f91")}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-1YsZeevq.js.map
1
+ import{aw as z}from"./NetworkUtil-f9jGDeMT.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-CgH53I_-.js";import"./sentry-B9JQuOUS.js";import"./react-DEDBuQyX.js";import"./verifyHash-Ub-7mo4v.js";import"./sendRawTransaction-31arHEir.js";import"./index-C95by_nd.js";import"./dcl-schemas-rRgEodwV.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./secp256k1-BZ5Nqh-r.js";import"./serializeTransaction-DyVHuqDl.js";import"./writeContract-Drz32GzX.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]="4a47aafe-7f43-41a1-aaaf-ee25ae328f91",s._sentryDebugIdIdentifier="sentry-dbid-4a47aafe-7f43-41a1-aaaf-ee25ae328f91")}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-CgpgXKDz.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-HS20q_81.js";import{d as I,O as c}from"./index-LZwqOCTm.js";import{c as g}from"./index-B4YsaHis.js";import"./index-DVrO7Ou9.js";import{O as T}from"./index-BUEBVyvp.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-DHdetABb.js";import"./index-ByR1_zI6.js";import"./index-DoQvTAhA.js";import"./index-D3-DN9JZ.js";import"./index-JUqvZekh.js";import"./index-DX-D9H-I.js";import"./index-BApRgCGp.js";import"./index-BYx0oDku.js";import"./index-DP69342q.js";import"./index-B2NLYAKP.js";import"./react-DfWw00n2.js";import"./dcl-schemas-Di56bVOC.js";import"./sentry-B9vIXOxS.js";import"./ethers-ZJfPUY9n.js";import"./intl-AKLEHPeO.js";import"./index-k0R5JvPG.js";import"./events-B6nd2he6.js";import"./index-DIHKWE4g.js";import"./index-BvPZvoWl.js";import"./index-OpYIGLSa.js";import"./index-CV70Z8vl.js";import"./index.es-BNbYiox4.js";import"./browser-ponyfill-Bo4s2Sut.js";import"./NetworkUtil-BlguztEt.js";import"./ref-CRG-0jL7.js";import"./async-directive-DVKyJ8n3.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]="aa68b275-b354-4a75-8fc7-1d3d3b050de1",t._sentryDebugIdIdentifier="sentry-dbid-aa68b275-b354-4a75-8fc7-1d3d3b050de1")}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-HS20q_81.js";import{d as I,O as c}from"./index-7RcHpl2m.js";import{c as g}from"./index-Bo71FRPI.js";import"./index-DYa64o3S.js";import{O as T}from"./index-mykvqk-N.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-DNdgBjm3.js";import"./index-BDvetOHD.js";import"./index-BVZ2BCE0.js";import"./index-DU_zGodc.js";import"./index-D0zQ6XU1.js";import"./index-xw5n3NZp.js";import"./index-DbV9oc9j.js";import"./index-NjqKRGql.js";import"./index-CxZ4lmqQ.js";import"./index-C95by_nd.js";import"./react-DEDBuQyX.js";import"./dcl-schemas-rRgEodwV.js";import"./sentry-B9JQuOUS.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./index-BIdEX3Aj.js";import"./events-_9TL08nf.js";import"./index-BfT4xJoU.js";import"./index-C37hMmgX.js";import"./index-OpYIGLSa.js";import"./index-CihPZf_2.js";import"./index.es-3cCizRPh.js";import"./browser-ponyfill-CCLQ_lzS.js";import"./NetworkUtil-f9jGDeMT.js";import"./ref-CRG-0jL7.js";import"./async-directive-DVKyJ8n3.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]="aa68b275-b354-4a75-8fc7-1d3d3b050de1",t._sentryDebugIdIdentifier="sentry-dbid-aa68b275-b354-4a75-8fc7-1d3d3b050de1")}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-Dih0_wWx.js.map
423
+ //# sourceMappingURL=onramp-XjJDC1c4.js.map
@@ -1,2 +1,2 @@
1
- import{g as y}from"./to-serializable-transaction-BUZTH_DZ.js";import{s as p,f as c,r as u}from"./prepare-contract-call-SCy4Crqp.js";import"./index-B2NLYAKP.js";import"./react-DfWw00n2.js";import"./dcl-schemas-Di56bVOC.js";import"./sentry-B9vIXOxS.js";import"./ethers-ZJfPUY9n.js";import"./intl-AKLEHPeO.js";import"./transaction-BxYu1-g9.js";import"./utils-CNAE_Nu-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f24d7aba-caeb-45cc-a835-44a16246e295",e._sentryDebugIdIdentifier="sentry-dbid-f24d7aba-caeb-45cc-a835-44a16246e295")}catch{}})();async function w({account:e,serializableTransaction:a,transaction:t,gasless:s}){const r=y({address:s.relayerForwarderAddress,chain:t.chain,client:t.client}),n=await u({contract:r,method:"function getNonce(address) view returns (uint256)",params:[e.address]}),[o,m]=await(async()=>{if(!a.to)throw new Error("OpenZeppelin transactions must have a 'to' address");if(!a.gas)throw new Error("OpenZeppelin transactions must have a 'gas' value");if(!a.data)throw new Error("OpenZeppelin transactions must have a 'data' value");if(s.experimentalChainlessSupport){const i={chainid:BigInt(t.chain.id),data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:r.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),i]}const d={data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{chainId:t.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:r.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:f}}),d]})();return{message:m,messageType:"forward",signature:o}}const f=[{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:a,messageType:t,signature:s}=await w(e),r=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:a,signature:s,type:t}),method:"POST"});if(!r.ok)throw new Error(`Failed to send transaction: ${await r.text()}`);const n=await r.json();if(!n.result)throw new Error(`Relay transaction failed: ${n.message}`);const o=JSON.parse(n.result).txHash;if(c(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(n)}`)}export{w as prepareOpenZeppelinTransaction,R as relayOpenZeppelinTransaction};
2
- //# sourceMappingURL=openzeppelin-Bplfgera.js.map
1
+ import{g as y}from"./to-serializable-transaction-CHGq8vN5.js";import{s as p,f as c,r as u}from"./prepare-contract-call-C00e98h3.js";import"./index-C95by_nd.js";import"./react-DEDBuQyX.js";import"./dcl-schemas-rRgEodwV.js";import"./sentry-B9JQuOUS.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./transaction-BPl6u0MP.js";import"./utils-DI62evWY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f24d7aba-caeb-45cc-a835-44a16246e295",e._sentryDebugIdIdentifier="sentry-dbid-f24d7aba-caeb-45cc-a835-44a16246e295")}catch{}})();async function w({account:e,serializableTransaction:a,transaction:t,gasless:s}){const r=y({address:s.relayerForwarderAddress,chain:t.chain,client:t.client}),n=await u({contract:r,method:"function getNonce(address) view returns (uint256)",params:[e.address]}),[o,m]=await(async()=>{if(!a.to)throw new Error("OpenZeppelin transactions must have a 'to' address");if(!a.gas)throw new Error("OpenZeppelin transactions must have a 'gas' value");if(!a.data)throw new Error("OpenZeppelin transactions must have a 'data' value");if(s.experimentalChainlessSupport){const i={chainid:BigInt(t.chain.id),data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:r.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),i]}const d={data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{chainId:t.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:r.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:f}}),d]})();return{message:m,messageType:"forward",signature:o}}const f=[{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:a,messageType:t,signature:s}=await w(e),r=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:a,signature:s,type:t}),method:"POST"});if(!r.ok)throw new Error(`Failed to send transaction: ${await r.text()}`);const n=await r.json();if(!n.result)throw new Error(`Relay transaction failed: ${n.message}`);const o=JSON.parse(n.result).txHash;if(c(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(n)}`)}export{w as prepareOpenZeppelinTransaction,R as relayOpenZeppelinTransaction};
2
+ //# sourceMappingURL=openzeppelin-DUV4Icd9.js.map
@@ -1,2 +1,2 @@
1
- import{d as o,e as c,r as s}from"./prepare-contract-call-SCy4Crqp.js";import{d as f}from"./detectExtension-CFBn3w2l.js";import"./utils-CNAE_Nu-.js";import"./sentry-B9vIXOxS.js";import"./react-DfWw00n2.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]="e52b2071-d81c-44fe-9731-cb345d5f9217",e._sentryDebugIdIdentifier="sentry-dbid-e52b2071-d81c-44fe-9731-cb345d5f9217")}catch{}})();const t="0x6352211e",n=[{name:"tokenId",type:"uint256"}],r=[{type:"address"}];function O(e){return f({availableSelectors:e,method:[t,n,r]})}function a(e){return c(n,[e.tokenId])}function w(e){return t+a(e).slice(2)}function I(e){return o(r,e)[0]}async function l(e){return s({contract:e.contract,method:[t,n,r],params:[e.tokenId]})}export{t as FN_SELECTOR,I as decodeOwnerOfResult,w as encodeOwnerOf,a as encodeOwnerOfParams,O as isOwnerOfSupported,l as ownerOf};
2
- //# sourceMappingURL=ownerOf-BMf1ddLW.js.map
1
+ import{d as o,e as c,r as s}from"./prepare-contract-call-C00e98h3.js";import{d as f}from"./detectExtension-CYZ0BZR3.js";import"./utils-DI62evWY.js";import"./sentry-B9JQuOUS.js";import"./react-DEDBuQyX.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]="e52b2071-d81c-44fe-9731-cb345d5f9217",e._sentryDebugIdIdentifier="sentry-dbid-e52b2071-d81c-44fe-9731-cb345d5f9217")}catch{}})();const t="0x6352211e",n=[{name:"tokenId",type:"uint256"}],r=[{type:"address"}];function O(e){return f({availableSelectors:e,method:[t,n,r]})}function a(e){return c(n,[e.tokenId])}function w(e){return t+a(e).slice(2)}function I(e){return o(r,e)[0]}async function l(e){return s({contract:e.contract,method:[t,n,r],params:[e.tokenId]})}export{t as FN_SELECTOR,I as decodeOwnerOfResult,w as encodeOwnerOf,a as encodeOwnerOfParams,O as isOwnerOfSupported,l as ownerOf};
2
+ //# sourceMappingURL=ownerOf-Cs_ogLg-.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-CRkuabKC.js","_assets/index-B2NLYAKP.js","_assets/react-DfWw00n2.js","_assets/dcl-schemas-Di56bVOC.js","_assets/sentry-B9vIXOxS.js","_assets/ethers-ZJfPUY9n.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/fetchTokenMetadata-DOElRUZS.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-SCy4Crqp.js","_assets/utils-CNAE_Nu-.js","_assets/thirdweb-BfozZU7-.js","_assets/signing-Bne0TCUl.js","_assets/to-serializable-transaction-BUZTH_DZ.js","_assets/transaction-BxYu1-g9.js","_assets/get-bytecode-C7J0U60a.js","_assets/wait-for-tx-receipt-owY7GcLi.js","_assets/transactionReceipt-BdLClfyQ.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-BWsans1G.js","_assets/eth_getStorageAt-B3AYUuTx.js","_assets/eth_getTransactionCount-Ddk4R9qW.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-8pLgnpGf.js","_assets/decimals-C94QC_d1.js","_assets/zora-sepolia-BjpkKwB9.js","_assets/send-batch-transaction-CXbyIZQo.js","_assets/send-transaction-SoJ_roci.js","_assets/getNFT-yWmGFCJD.js","_assets/totalSupply-BhvNPorj.js","_assets/detectExtension-CFBn3w2l.js"])))=>i.map(i=>d[i]);
2
- import{_ as u}from"./index-B2NLYAKP.js";import{a as I}from"./utils-CNAE_Nu-.js";import{g as _}from"./to-serializable-transaction-BUZTH_DZ.js";import{i as g}from"./prepare-contract-call-SCy4Crqp.js";import"./react-DfWw00n2.js";import"./dcl-schemas-Di56bVOC.js";import"./sentry-B9vIXOxS.js";import"./ethers-ZJfPUY9n.js";import"./intl-AKLEHPeO.js";import"./transaction-BxYu1-g9.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]="2bfe9ace-7943-4c9b-8d92-1f0672fc5532",t._sentryDebugIdIdentifier="sentry-dbid-2bfe9ace-7943-4c9b-8d92-1f0672fc5532")}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("/"),[n,s]=i.split(":"),[o,a]=l.split(":");if(!n||n.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${n}"`);if(!s)throw new Error("Chain ID not found");if(!a||!g(a))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const w=I(Number(s)),f=_({address:a,chain:w,client:t.client});switch(o){case"erc721":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-CRkuabKC.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-yWmGFCJD.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-C0cnyqRa.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-kOBqsD0s.js","_assets/index-C95by_nd.js","_assets/react-DEDBuQyX.js","_assets/dcl-schemas-rRgEodwV.js","_assets/sentry-B9JQuOUS.js","_assets/ethers-I-AWJ0yN.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/fetchTokenMetadata-DzRNvmd1.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-C00e98h3.js","_assets/utils-DI62evWY.js","_assets/thirdweb-kQURuS8x.js","_assets/signing-BVGwQAA3.js","_assets/to-serializable-transaction-CHGq8vN5.js","_assets/transaction-BPl6u0MP.js","_assets/get-bytecode-T6S-qWDg.js","_assets/wait-for-tx-receipt-Dg5o9KEQ.js","_assets/transactionReceipt-DTKCzsCV.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-BQolTH27.js","_assets/eth_getStorageAt-8TXY-Y6k.js","_assets/eth_getTransactionCount-LNQAx49w.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-DraOdj29.js","_assets/decimals-BWyYn_GC.js","_assets/zora-sepolia-D5YQPaLB.js","_assets/send-batch-transaction-U7mCgvb2.js","_assets/send-transaction-D1Wj6Pyz.js","_assets/getNFT-D42WqdiE.js","_assets/totalSupply-DgfIqjUQ.js","_assets/detectExtension-CYZ0BZR3.js"])))=>i.map(i=>d[i]);
2
+ import{_ as u}from"./index-C95by_nd.js";import{a as I}from"./utils-DI62evWY.js";import{g as _}from"./to-serializable-transaction-CHGq8vN5.js";import{i as g}from"./prepare-contract-call-C00e98h3.js";import"./react-DEDBuQyX.js";import"./dcl-schemas-rRgEodwV.js";import"./sentry-B9JQuOUS.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./transaction-BPl6u0MP.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]="2bfe9ace-7943-4c9b-8d92-1f0672fc5532",t._sentryDebugIdIdentifier="sentry-dbid-2bfe9ace-7943-4c9b-8d92-1f0672fc5532")}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("/"),[n,s]=i.split(":"),[o,a]=l.split(":");if(!n||n.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${n}"`);if(!s)throw new Error("Chain ID not found");if(!a||!g(a))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const w=I(Number(s)),f=_({address:a,chain:w,client:t.client});switch(o){case"erc721":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-kOBqsD0s.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-D42WqdiE.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-CBPQ3LJE.js.map