@dcl/shop 1.18.2-36637356847.commit-825c9d5 → 1.18.2-36699317496.commit-01b8efb

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 (247) hide show
  1. package/_assets/{Activity-BOaDB-SB.js → Activity-Cv8PEDCM.js} +4 -4
  2. package/_assets/{AnimatedBackground-DCBZ7BDw.js → AnimatedBackground-DU8dE9Vn.js} +6 -6
  3. package/_assets/{Assets-B8E0h7qR.js → Assets-CXqob4KH.js} +3 -3
  4. package/_assets/Cart-ERtGuzM7.js +826 -0
  5. package/_assets/{Collection-D6kIIQ6_.js → Collection-Py2Ivr9p.js} +2 -2
  6. package/_assets/{CollectionCarousel-Dehf1Thf.js → CollectionCarousel-88Pkalip.js} +5 -5
  7. package/_assets/{Confetti-BPJScoAz.js → Confetti-eieA8ns-.js} +4 -4
  8. package/_assets/{ConstantsUtil-D7hfpXqQ.js → ConstantsUtil-1_1F1v6q.js} +2 -2
  9. package/_assets/{ContentClient-BcbapA9s.js → ContentClient--aUkwTQk.js} +2 -2
  10. package/_assets/{Creator-BBriAgWf.js → Creator-BQNKujnt.js} +2 -2
  11. package/_assets/{CreditPackPicker-D69V0CD6.js → CreditPackPicker-BJh7gVyM.js} +2 -2
  12. package/_assets/{CreditRate-B-k7N3m3.js → CreditRate-DhVy8SW0.js} +2 -2
  13. package/_assets/{DeploymentBuilder-CXecggpJ.js → DeploymentBuilder-CgN_VFxE.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-DYPCyQ4y.js → EmotePlaybackBar-KdJuV-TR.js} +3 -3
  15. package/_assets/{ErrorNotice-CKxii-tV.js → ErrorNotice-DtXBOdpx.js} +2 -2
  16. package/_assets/{Event-B8OGa99x.js → Event-2yLCQeRh.js} +2 -2
  17. package/_assets/{ExchangeController-t2bX9veN.js → ExchangeController-KJye0wPi.js} +2 -2
  18. package/_assets/{Faq-LSM4lPCJ.js → Faq-Didhrv12.js} +2 -2
  19. package/_assets/{Filters-DV_qJCwA.js → Filters-CW5QDWVD.js} +2 -2
  20. package/_assets/{GetCredits-ChO_EQm7.js → GetCredits-D4lcj4Ru.js} +2 -2
  21. package/_assets/{Grow-DJZgG82m.js → Grow-CvvkHqAX.js} +2 -2
  22. package/_assets/{HelpersUtil-Dj1-XrCJ.js → HelpersUtil-kIgw5TTS.js} +2 -2
  23. package/_assets/{IssueModal-BDe6sPy3.js → IssueModal-9eOYi4Sj.js} +2 -2
  24. package/_assets/{ItemDetail-ca62wEjs.js → ItemDetail-X0NkykeE.js} +2 -2
  25. package/_assets/{LoadMore-B0Bi3u4a.js → LoadMore-BSPvXjEq.js} +2 -2
  26. package/_assets/{ManaPricingBanner-CjIkhbPq.js → ManaPricingBanner-DigbTeg8.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-DVJ01x1X.js → ManaPricingBanner.styles-Dc3fA-wN.js} +2 -2
  28. package/_assets/{MyAssets-DhEBGqnz.js → MyAssets-B4OLB5Ra.js} +2 -2
  29. package/_assets/{MyFavorites-BWQ0kvqP.js → MyFavorites-DtMQgdd2.js} +2 -2
  30. package/_assets/MyStore-CdTXUo-D.js +2324 -0
  31. package/_assets/{NetworkUtil-BH3_oYP8.js → NetworkUtil-D1pm9LAf.js} +2 -2
  32. package/_assets/{NotFound-CIkoFDZU.js → NotFound-CdsGhw3A.js} +2 -2
  33. package/_assets/{NotificationsBell-DIOthP5u.js → NotificationsBell-BsIxlK--.js} +2 -2
  34. package/_assets/{OutfitDetail-D4lmP80k.js → OutfitDetail-Dplq-yw0.js} +2 -2
  35. package/_assets/{OutfitPreview-DmTaYZFo.js → OutfitPreview-C8aKVg-G.js} +2 -2
  36. package/_assets/{OutfitStudio-5cnXZS39.js → OutfitStudio-SPKmHfra.js} +2 -2
  37. package/_assets/{PaymentMethodStep-CAh_5kV3.js → PaymentMethodStep-ExP5RaVg.js} +2 -2
  38. package/_assets/{SaleCountdown-DjBevuJq.js → SaleCountdown-DZs8FLI1.js} +2 -2
  39. package/_assets/{Spinner-ULhhBHPm.js → Spinner-G33nBiZc.js} +2 -2
  40. package/_assets/{StoreSettings-h6jsL1PV.js → StoreSettings-yRVUj9gn.js} +2 -2
  41. package/_assets/{Success-D6Bavntm.js → Success-B-akppan.js} +2 -2
  42. package/_assets/{SwapController-B1fnL8H3.js → SwapController-BLUipOVv.js} +2 -2
  43. package/_assets/{Tooltip-C1GRffaf.js → Tooltip-BLMUNUCw.js} +2 -2
  44. package/_assets/{TradeService-CA7g8s_N.js → TradeService-B9JX1BzC.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-lQPmplQ2.js → W3MFrameProviderSingleton-CVJxzwXU.js} +4 -4
  46. package/_assets/{WebCryptoP256-2Fvt-3iX.js → WebCryptoP256-CydbHReO.js} +2 -2
  47. package/_assets/{basic-WGnG5Ctv.js → basic-C8sbouX1.js} +2 -2
  48. package/_assets/{biconomy-DAdWCRE2.js → biconomy-D3_yfqL3.js} +2 -2
  49. package/_assets/{browseLayout.styles-CegyKe9B.js → browseLayout.styles-CyC4WPSY.js} +2 -2
  50. package/_assets/{browser-DDtzznZI.js → browser-27gwVLEC.js} +2 -2
  51. package/_assets/{browser-DeveOmzA.js → browser-DyD2zvSB.js} +2 -2
  52. package/_assets/{browser-ponyfill-jzbj-jA4.js → browser-ponyfill-B_nEXG4k.js} +2 -2
  53. package/_assets/{buy-DL6aFS_N.js → buy-BvYZcaDE.js} +2 -2
  54. package/_assets/{buy-gasless-akN-WrYj.js → buy-gasless-CavNsthw.js} +2 -2
  55. package/_assets/{ccip-DVdHD9LQ.js → ccip-DOltnJAd.js} +2 -2
  56. package/_assets/{ccip-Dn4li1J3.js → ccip-W2RahrQP.js} +2 -2
  57. package/_assets/{chains-DhvEOFYj.js → chains-2ZkFuyps.js} +2 -2
  58. package/_assets/collectionPage.styles-CpLxZSFb.js +41 -0
  59. package/_assets/{common-1xlKyxii.js → common-MNBB5OG1.js} +2 -2
  60. package/_assets/{controller-Cl08Da2J.js → controller-DtgzPHCQ.js} +3 -3
  61. package/_assets/{core-BDZisDBX.js → core-CNLia4ok.js} +5 -5
  62. package/_assets/{createSvgIcon-D-NeJHpD.js → createSvgIcon-DDd5PhO1.js} +2 -2
  63. package/_assets/{crumbs.styles-Dm-SKOog.js → crumbs.styles-DoKQEwMj.js} +2 -2
  64. package/_assets/{custom-DhOMKJIO.js → custom-CZJsO_mx.js} +2 -2
  65. package/_assets/{data-capture-BZFWqywn.js → data-capture-COmMo0De.js} +2 -2
  66. package/_assets/{dcl-schemas-OgkR3Xnp.js → dcl-schemas-BqHUwNqd.js} +2 -2
  67. package/_assets/{decimals-yDLHDrDe.js → decimals-BRG44LM_.js} +2 -2
  68. package/_assets/{decimals-DVR7Gv-J.js → decimals-DrtoVrkw.js} +2 -2
  69. package/_assets/{detectExtension-BaFl5dmt.js → detectExtension-DZU1ap38.js} +2 -2
  70. package/_assets/{disposePreview-CON1sitU.js → disposePreview-BBU3P8er.js} +2 -2
  71. package/_assets/{email-C8B3uV55.js → email-vOHWF_-s.js} +2 -2
  72. package/_assets/{embedded-wallet-dtLreoAu.js → embedded-wallet-DlBCCX_e.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-DPYok2W8.js → emotion-styled.browser.esm-ChHUrxdv.js} +2 -2
  74. package/_assets/{engine-8Z0r8sBN.js → engine-CiqeVLfK.js} +2 -2
  75. package/_assets/{errors-BjM9HeNz.js → errors-s3lXv01b.js} +2 -2
  76. package/_assets/{estimate-l1-fee-BoPGIBih.js → estimate-l1-fee-lSQd-x6M.js} +2 -2
  77. package/_assets/{eth_estimateGas-BCdsyBNm.js → eth_estimateGas-CqaBNuVy.js} +2 -2
  78. package/_assets/{eth_getStorageAt-crNxQf4F.js → eth_getStorageAt-b0qFnAmB.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-AvgV55ar.js → eth_getTransactionCount-DpDXw0cy.js} +2 -2
  80. package/_assets/{ethereum-DlBOC201.js → ethereum-DA11u6-H.js} +2 -2
  81. package/_assets/{ethers-DqHzeHuT.js → ethers-FMLh2To0.js} +2 -2
  82. package/_assets/{events-VcRW8MP7.js → events-xR4CLJ6O.js} +2 -2
  83. package/_assets/{execute-vAVWh3cq.js → execute-BVxFrl50.js} +3 -3
  84. package/_assets/{extractIPFS-Dq3YHYdL.js → extractIPFS-D_xvC5ei.js} +2 -2
  85. package/_assets/{features-VnBmyyV1.js → features-BVugtMuy.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-BKSOlGrn.js → fetchTokenMetadata-DmNDVtCc.js} +3 -3
  87. package/_assets/{field.styles-Dl9mum16.js → field.styles-BjJqCKP8.js} +2 -2
  88. package/_assets/{fortmatic-DLZii_1J.js → fortmatic-khHFakQE.js} +2 -2
  89. package/_assets/{get-bytecode-X-2IhAtj.js → get-bytecode-CF5rPNUA.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-f36NBunu.js → get-ecosystem-wallet-info-DT7Fgi_0.js} +2 -2
  91. package/_assets/{getBalance-BftrT0-h.js → getBalance-UV4g55-g.js} +3 -3
  92. package/_assets/{getInstalledModules-DPTTTcBw.js → getInstalledModules-JQ9sgXI7.js} +2 -2
  93. package/_assets/{getNFT-C_cJwHF2.js → getNFT-BEQVQQ6_.js} +2 -2
  94. package/_assets/{getNFT-DjGsZPMG.js → getNFT-CQ4EoTzX.js} +3 -3
  95. package/_assets/{grid.styles-BO5hvrUj.js → grid.styles-C8epOWb6.js} +2 -2
  96. package/_assets/{hashTypedData-vZpJz8B-.js → hashTypedData-BNjpWpj2.js} +2 -2
  97. package/_assets/{hashTypedData-DAgXidRT.js → hashTypedData-Dzq_vr-Y.js} +2 -2
  98. package/_assets/{import-Yr1lXrln.js → import-C32aUwJ-.js} +2 -2
  99. package/_assets/{in-app-CkVGPZSJ.js → in-app-1tdAC6_d.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-Cpl9jNx_.js → in-app-wallet-calls-rFyHb7zx.js} +2 -2
  101. package/_assets/{index-Bn7T_CNN.js → index--HKM17KR.js} +2 -2
  102. package/_assets/{index-D1-jMfxh.js → index--m8yqDmI.js} +2 -2
  103. package/_assets/{index-rHvlGRCv.js → index-0thrSFb1.js} +2 -2
  104. package/_assets/{index-7qIkCapA.js → index-1GnqLAI_.js} +2 -2
  105. package/_assets/{index-HS7_UPOd.js → index-B27__oz0.js} +2 -2
  106. package/_assets/{index-DwQFPClc.js → index-B2XvL1Ec.js} +2 -2
  107. package/_assets/{index-BPBo8wh2.js → index-B6JLypyJ.js} +2 -2
  108. package/_assets/{index-FchR7gSb.js → index-B6nOuJQV.js} +2 -2
  109. package/_assets/{index-C8wSYeVO.js → index-BKmKxQIC.js} +2 -2
  110. package/_assets/{index-DJNx4cK1.js → index-BLlk1TdE.js} +2 -2
  111. package/_assets/{index-B_Ew-epk.js → index-BQyoN2fu.js} +2 -2
  112. package/_assets/{index-BZe9O30I.js → index-BU5FCydW.js} +279 -279
  113. package/_assets/{index-D72ddkdN.js → index-BU9L1jph.js} +2 -2
  114. package/_assets/{index-w0a4GNJO.js → index-BZFDlbpe.js} +2 -2
  115. package/_assets/{index-B4TtInR3.js → index-B_nBv8l9.js} +2 -2
  116. package/_assets/{index-B2uF3DJM.js → index-BdN3DWUA.js} +2 -2
  117. package/_assets/{index-BU6C8CpN.js → index-BfJnZxH1.js} +2 -2
  118. package/_assets/{index-DO7AMeoa.js → index-BiRgI2bT.js} +2 -2
  119. package/_assets/{index-BY3o0_Rg.js → index-BimshxFa.js} +3 -3
  120. package/_assets/{index-Cc9ETBk-.js → index-BjFb2_7h.js} +2 -2
  121. package/_assets/{index-ztZTfizM.js → index-Bsoaz1KO.js} +2 -2
  122. package/_assets/{index-BqDPSWiR.js → index-C4T5szPC.js} +2 -2
  123. package/_assets/{index-DDMXNW4L.js → index-C6OXQaIJ.js} +2 -2
  124. package/_assets/{index-z7I5BqcT.js → index-C7ToCPZ0.js} +2 -2
  125. package/_assets/{index-B3ZXdhup.js → index-C9JKi6C9.js} +2 -2
  126. package/_assets/{index-DWhX9gtv.js → index-CDwNT0Gi.js} +2 -2
  127. package/_assets/{index-CQy_yJhb.js → index-CEXPD6wn.js} +2 -2
  128. package/_assets/{index-Bu0NJDwa.js → index-CLSqZUbP.js} +2 -2
  129. package/_assets/{index-CYmJbQez.js → index-CM5PSkXg.js} +3 -3
  130. package/_assets/{index-BXOSJuGz.js → index-CYO3wfTs.js} +2 -2
  131. package/_assets/{index-DQivOzo2.js → index-CZ9K15YN.js} +2 -2
  132. package/_assets/{index-Bb5cZSRf.js → index-CdlIZMru.js} +2 -2
  133. package/_assets/{index-L9UD0UUT.js → index-Cf_2QCy8.js} +2 -2
  134. package/_assets/{index-sxlMTD1e.js → index-Cjt8y837.js} +2 -2
  135. package/_assets/{index-CvYhIjIw.js → index-CpN5BttZ.js} +2 -2
  136. package/_assets/{index-BGW18IEb.js → index-CtvKNtpi.js} +2 -2
  137. package/_assets/{index-DZaOsJFK.js → index-D-Qq7AFM.js} +2 -2
  138. package/_assets/{index-CV_jtXEI.js → index-D4y5uZ-J.js} +2 -2
  139. package/_assets/{index-CZfjcTrs.js → index-D7IdVQiv.js} +2 -2
  140. package/_assets/{index-CE5dloga.js → index-D7aMhNYR.js} +2 -2
  141. package/_assets/{index-Cfw0sRIj.js → index-DALUGT_-.js} +2 -2
  142. package/_assets/{index-Bns4uVVf.js → index-DCj1afij.js} +3 -3
  143. package/_assets/{index-CwjUycdS.js → index-DLAQxPYM.js} +2 -2
  144. package/_assets/{index-CWsg9Kvt.js → index-DMU8WwyK.js} +2 -2
  145. package/_assets/{index-BvTadfAU.js → index-DRpp-9Ax.js} +2 -2
  146. package/_assets/{index-Dfjp4UIp.js → index-DSMfYjcn.js} +2 -2
  147. package/_assets/{index-CTkFfEW6.js → index-DSVgVGvw.js} +2 -2
  148. package/_assets/{index-CE9TvnNz.js → index-D_qyhQlq.js} +2 -2
  149. package/_assets/{index-B8oQm36C.js → index-Db0M_X2k.js} +2 -2
  150. package/_assets/{index-BXwe5uMy.js → index-Db3NFX6H.js} +2 -2
  151. package/_assets/{index-DEcoW3Fj.js → index-DeS2QcS_.js} +3 -3
  152. package/_assets/{index-DKTFxU8r.js → index-Dg7VM7nf.js} +2 -2
  153. package/_assets/{index-f9OSlngA.js → index-Dx1gD9vs.js} +2 -2
  154. package/_assets/{index-BEPNCFGX.js → index-H7ep9Rq4.js} +2 -2
  155. package/_assets/{index-DQiGofV2.js → index-HR3pY-sM.js} +2 -2
  156. package/_assets/{index-C5Wm4k9d.js → index-Kh_O1AQU.js} +2 -2
  157. package/_assets/{index-B_ej9BPC.js → index-MAY9er2c.js} +4 -4
  158. package/_assets/{index-DSz4o4Je.js → index-NpmhmugW.js} +2 -2
  159. package/_assets/{index-DObjyPbH.js → index-X-5mK4Th.js} +2 -2
  160. package/_assets/{index-D7uzT9v-.js → index-YSJKoltZ.js} +2 -2
  161. package/_assets/{index-D8nZ-jDW.js → index-ZmSlRnwW.js} +2 -2
  162. package/_assets/{index-YEbRJWkl.js → index-c9Fqa9I4.js} +2 -2
  163. package/_assets/{index-scJRzKFi.js → index-jii8dSH9.js} +4 -4
  164. package/_assets/{index-BfD3vhaf.js → index-r0znEyMN.js} +2 -2
  165. package/_assets/{index-D-7yBxzc.js → index-sh1QPtHZ.js} +2 -2
  166. package/_assets/index-un_saWbe.css +1 -0
  167. package/_assets/{index-ROlx3Pmh.js → index-yT2R0MOZ.js} +4 -4
  168. package/_assets/{index-Bgzd-o7-.js → index-zWHwK8LP.js} +2 -2
  169. package/_assets/{index.es-CHzsJBZX.js → index.es-BA44R-Xa.js} +2 -2
  170. package/_assets/{index.es-BcA_HmLy.js → index.es-CSamVR2I.js} +5 -5
  171. package/_assets/{index.es-3yhT-afv.js → index.es-QXK-eANc.js} +2 -2
  172. package/_assets/{index.es-CWw1jqy2.js → index.es-dUdsfw4t.js} +2 -2
  173. package/_assets/{items-empty-8_aTRszf.js → items-empty-rSd_Iik6.js} +2 -2
  174. package/_assets/{jump-C1l2pbYY.js → jump-D2HbRr2q.js} +2 -2
  175. package/_assets/{linkAccount-CSENce9R.js → linkAccount-CNxRauTe.js} +2 -2
  176. package/_assets/{loader-logo-Ctl7jE4d.js → loader-logo-xHBruJq3.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-LQwWSW0t.js → localBatchGatewayRequest-ClHJb64u.js} +2 -2
  178. package/_assets/{modal.styles-DCTumybB.js → modal.styles-BB1k2W3W.js} +2 -2
  179. package/_assets/{native-DEdJNx2w.js → native-BcUvcFQf.js} +2 -2
  180. package/_assets/{networks-BTxPNDnS.js → networks-BP4WLO6B.js} +2 -2
  181. package/_assets/{onramp-BLPNmKGS.js → onramp-CDRtIxCM.js} +2 -2
  182. package/_assets/{openzeppelin-Dh3FauvL.js → openzeppelin--odnQm_c.js} +2 -2
  183. package/_assets/{ownerOf-Dd0qwlc6.js → ownerOf-CS2S4HKY.js} +2 -2
  184. package/_assets/{parseNft-DEUUZOq-.js → parseNft-uChPEm1I.js} +3 -3
  185. package/_assets/{parseSignature-P8a9Zsvp.js → parseSignature-BN4JZzva.js} +4 -4
  186. package/_assets/{parseSignature-DAsMpuQz.js → parseSignature-BuJ1wZqH.js} +2 -2
  187. package/_assets/{passkeys-BrR4wD46.js → passkeys-DHsT5Nmm.js} +2 -2
  188. package/_assets/{pay-with-exchange-ftgVAhdm.js → pay-with-exchange-DYokda-c.js} +2 -2
  189. package/_assets/{prepare-contract-call-BLAPB3co.js → prepare-contract-call-rQrMVz6Q.js} +2 -2
  190. package/_assets/{qr-overlay-BFEwwNm_.js → qr-overlay-B0egTFoT.js} +4 -4
  191. package/_assets/{react-BUrQZkQz.js → react-DUeL1qp6.js} +2 -2
  192. package/_assets/{receive-uLX7VZbx.js → receive-pYQvjqFB.js} +2 -2
  193. package/_assets/{resolveImplementation-Boph8OZd.js → resolveImplementation-Bm7aHAcg.js} +2 -2
  194. package/_assets/{resume-buy-C7PQctXb.js → resume-buy-BPHZDw7c.js} +2 -2
  195. package/_assets/{resume-name-CMSdNFnn.js → resume-name-BSxtavJ3.js} +2 -2
  196. package/_assets/{rpc-QRauRlVM.js → rpc-B-OcEn7S.js} +2 -2
  197. package/_assets/{sales-empty-RO4M61Bi.js → sales-empty-5sV_8BjH.js} +2 -2
  198. package/_assets/{search-empty-CSUAho6H.js → search-empty-H6-ff5sq.js} +2 -2
  199. package/_assets/{secp256k1-ByDS1yIu.js → secp256k1-BLSkGxtg.js} +2 -2
  200. package/_assets/{secp256k1-DoZCtomu.js → secp256k1-CgBKAU1K.js} +2 -2
  201. package/_assets/{secp256k1-BCu4fIsA.js → secp256k1-DLm8Os8y.js} +2 -2
  202. package/_assets/{send-_f-tnJ7l.js → send-GXeKBaeq.js} +2 -2
  203. package/_assets/{send-batch-transaction-COicQUlJ.js → send-batch-transaction-DmYSGBzU.js} +2 -2
  204. package/_assets/{send-eip712-transaction-CbLSn4MP.js → send-eip712-transaction-B3g4mZmi.js} +3 -3
  205. package/_assets/{send-gasless-transaction-DBTdCbHy.js → send-gasless-transaction-DooK6oIE.js} +3 -3
  206. package/_assets/{send-transaction-eS3cn1U6.js → send-transaction-C6Wu4coH.js} +3 -3
  207. package/_assets/{sendMetaTransaction-CIpZZkUk.js → sendMetaTransaction-B5ZO9jvL.js} +2 -2
  208. package/_assets/{sendRawTransaction-BJhaPoFM.js → sendRawTransaction-DT2Th3au.js} +4 -4
  209. package/_assets/{sentry-DyLfTiSb.js → sentry-CXljof2R.js} +3 -3
  210. package/_assets/{serializeTransaction-Cg0Mu0rp.js → serializeTransaction-AM7lBsFk.js} +2 -2
  211. package/_assets/{session-proposal-CTjJUlbV.js → session-proposal-DVtQPrvD.js} +2 -2
  212. package/_assets/{session-request-BxpWrkMB.js → session-request-BorxnSb-.js} +3 -3
  213. package/_assets/{sha256-CnPmFRlr.js → sha256-CKDpyd5j.js} +2 -2
  214. package/_assets/{sha3-DzF74Fsc.js → sha3-Ddr1Yh2t.js} +2 -2
  215. package/_assets/signin-empty-BEsGFkKt.js +2 -0
  216. package/_assets/{signing-CXQFnhbL.js → signing-PbT8rOK5.js} +4 -4
  217. package/_assets/{skeleton.styles-CSK9oM8z.js → skeleton.styles-Bg8kRALo.js} +2 -2
  218. package/_assets/{socials-DXrH7mfq.js → socials-Bq-GWj8b.js} +2 -2
  219. package/_assets/{styled-e10E42am.js → styled-CKnuvISQ.js} +2 -2
  220. package/_assets/{swaps-BVOOQJtb.js → swaps-CXoZforC.js} +2 -2
  221. package/_assets/{thirdweb-CqXTMLMh.js → thirdweb-DuwS2_Z5.js} +4 -4
  222. package/_assets/{to-serializable-transaction-Rj3zkFd_.js → to-serializable-transaction-Bifleqz-.js} +3 -3
  223. package/_assets/{totalSupply-BRxEH93C.js → totalSupply-CVYVSeL1.js} +2 -2
  224. package/_assets/{trade-encoding-DfPRc5Jc.js → trade-encoding-9VxkSLUE.js} +2 -2
  225. package/_assets/{transaction-CrhlWCWj.js → transaction-2jjZedBE.js} +2 -2
  226. package/_assets/{transactionReceipt-GPDArFY8.js → transactionReceipt-D-Yy8IeO.js} +2 -2
  227. package/_assets/{transactions-C_6jqb5f.js → transactions-BQz7OrAF.js} +2 -2
  228. package/_assets/{useInfiniteGrid-CTLLOXuj.js → useInfiniteGrid-DxgAT_kc.js} +2 -2
  229. package/_assets/{useStore-DRNMRbrq.js → useStore-DvWx61co.js} +3 -3
  230. package/_assets/{useTheme-Bz-O5SoV.js → useTheme-eQmEuyuH.js} +2 -2
  231. package/_assets/{utils-Dp9zU4fq.js → utils-C7Ok6jYM.js} +2 -2
  232. package/_assets/{verifyHash-BuQb0nyx.js → verifyHash-621Z04dc.js} +2 -2
  233. package/_assets/{w3m-modal-BQhVkoUu.js → w3m-modal-B3osBOPJ.js} +2 -2
  234. package/_assets/{w3m-modal-Cx58A78Q.js → w3m-modal-CLdcq1yd.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-Cq2bVMbq.js → wait-for-tx-receipt-B0jsH53r.js} +2 -2
  236. package/_assets/{wallets-BOYud1KV.js → wallets-CpTLFdBc.js} +6 -6
  237. package/_assets/{web-connector-DVSwza9m.js → web-connector-BWApdRbV.js} +4 -4
  238. package/_assets/{writeContract-QfoBI3jg.js → writeContract-D0ic7xMc.js} +2 -2
  239. package/_assets/{zora-sepolia-D5dvAbrT.js → zora-sepolia-6Qf6jPe0.js} +2 -2
  240. package/_assets/{zoraTestnet-CliKS5z3.js → zoraTestnet-DE24U8mH.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/Cart-DM05_xNx.js +0 -748
  244. package/_assets/MyStore-BE12t5gb.js +0 -2218
  245. package/_assets/collectionPage.styles-D8fndBEc.js +0 -41
  246. package/_assets/index-BJvJlfNW.css +0 -1
  247. package/_assets/signin-empty-RkHxV8yP.js +0 -2
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-Bns4uVVf.js";import{h as nn}from"./react-BUrQZkQz.js";import{p as Se,g as ue}from"./sentry-DyLfTiSb.js";import{c as on}from"./index-BGW18IEb.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0fc709f8-b9fc-4f7f-bbd6-00efc9b23841",e._sentryDebugIdIdentifier="sentry-dbid-0fc709f8-b9fc-4f7f-bbd6-00efc9b23841")}catch{}})();var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-DCj1afij.js";import{h as nn}from"./react-DUeL1qp6.js";import{p as Se,g as ue}from"./sentry-CXljof2R.js";import{c as on}from"./index-CtvKNtpi.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0fc709f8-b9fc-4f7f-bbd6-00efc9b23841",e._sentryDebugIdIdentifier="sentry-dbid-0fc709f8-b9fc-4f7f-bbd6-00efc9b23841")}catch{}})();var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */var Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},Je(e,t)};function sn(e,t){Je(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ze=function(){return Ze=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ze.apply(this,arguments)};function un(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function an(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function cn(e,t){return function(r,n){t(r,n,e)}}function fn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ln(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(a){try{f(n.next(a))}catch(d){s(d)}}function u(a){try{f(n.throw(a))}catch(d){s(d)}}function f(a){a.done?i(a.value):o(a.value).then(c,u)}f((n=n.apply(e,t||[])).next())})}function hn(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(a){return u([f,a])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(a){f=[6,a],o=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function dn(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Dn(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Xe(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ur(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function bn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ur(arguments[t]));return e}function pn(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,c=i.length;s<c;s++,o++)n[o]=i[s];return n}function Ee(e){return this instanceof Ee?(this.v=e,this):new Ee(e)}function gn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(D){n[D]&&(o[D]=function(b){return new Promise(function(l,p){i.push([D,b,l,p])>1||c(D,b)})})}function c(D,b){try{u(n[D](b))}catch(l){d(i[0][3],l)}}function u(D){D.value instanceof Ee?Promise.resolve(D.value.v).then(f,a):d(i[0][2],D)}function f(D){c("next",D)}function a(D){c("throw",D)}function d(D,b){D(b),i.shift(),i.length&&c(i[0][0],i[0][1])}}function wn(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Ee(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function En(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Xe=="function"?Xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(c,u){s=e[i](s),o(c,u,s.done,s.value)})}}function o(i,s,c,u){Promise.resolve(u).then(function(f){i({value:f,done:c})},s)}}function yn(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Fn(e){return e&&e.__esModule?e:{default:e}}function _n(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function vn(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const An=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Ze},__asyncDelegator:wn,__asyncGenerator:gn,__asyncValues:En,__await:Ee,__awaiter:ln,__classPrivateFieldGet:_n,__classPrivateFieldSet:vn,__createBinding:dn,__decorate:an,__exportStar:Dn,__extends:sn,__generator:hn,__importDefault:Fn,__importStar:mn,__makeTemplateObject:yn,__metadata:fn,__param:cn,__read:ur,__rest:un,__spread:bn,__spreadArrays:pn,__values:Xe},Symbol.toStringTag,{value:"Module"})),Be=nn(An);var je={},De={},_t;function Sn(){if(_t)return De;_t=1,Object.defineProperty(De,"__esModule",{value:!0}),De.delay=void 0;function e(t){return new Promise(r=>{setTimeout(()=>{r(!0)},t)})}return De.delay=e,De}var oe={},Le={},ie={},vt;function Cn(){return vt||(vt=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.ONE_THOUSAND=ie.ONE_HUNDRED=void 0,ie.ONE_HUNDRED=100,ie.ONE_THOUSAND=1e3),ie}var We={},At;function On(){return At||(At=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365})(We)),We}var St;function ar(){return St||(St=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Cn(),e),t.__exportStar(On(),e)})(Le)),Le}var Ct;function xn(){if(Ct)return oe;Ct=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.fromMiliseconds=oe.toMiliseconds=void 0;const e=ar();function t(n){return n*e.ONE_THOUSAND}oe.toMiliseconds=t;function r(n){return Math.floor(n/e.ONE_THOUSAND)}return oe.fromMiliseconds=r,oe}var Ot;function Bn(){return Ot||(Ot=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Sn(),e),t.__exportStar(xn(),e)})(je)),je}var fe={},xt;function Rn(){if(xt)return fe;xt=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(r){if(this.timestamps.has(r))throw new Error(`Watch already started for label: ${r}`);this.timestamps.set(r,{started:Date.now()})}stop(r){const n=this.get(r);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${r}`);const o=Date.now()-n.started;this.timestamps.set(r,{started:n.started,elapsed:o})}get(r){const n=this.timestamps.get(r);if(typeof n>"u")throw new Error(`No timestamp found for label: ${r}`);return n}elapsed(r){const n=this.get(r);return n.elapsed||Date.now()-n.started}}return fe.Watch=e,fe.default=e,fe}var ke={},be={},Bt;function Nn(){if(Bt)return be;Bt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.IWatch=void 0;class e{}return be.IWatch=e,be}var Rt;function Tn(){return Rt||(Rt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Be.__exportStar(Nn(),e)})(ke)),ke}var Nt;function Un(){return Nt||(Nt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Bn(),e),t.__exportStar(Rn(),e),t.__exportStar(Tn(),e),t.__exportStar(ar(),e)})(Pe)),Pe}var it=Un();class In{}let Mn=class extends In{constructor(t){super()}};const Tt=it.FIVE_SECONDS,Pn={pulse:"heartbeat_pulse"};class cr extends Mn{constructor(t){super(t),this.events=new ot.EventEmitter,this.interval=Tt,this.interval=(t==null?void 0:t.interval)||Tt}static async init(t){const r=new cr(t);return await r.init(),r}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),it.toMiliseconds(this.interval))}pulse(){this.events.emit(Pn.pulse)}}const jn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ln=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Wn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function kn(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){zn(e);return}return t}function zn(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function _a(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Wn.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jn.test(e)||Ln.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,kn)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const Hn=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),$n=e=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,o)=>typeof o=="string"&&o.match(/^\d+n$/)?BigInt(o.substring(0,o.length-1)):o)};function fr(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return $n(e)}catch{return e}}function lr(e){return typeof e=="string"?e:Hn(e)||""}function qn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function hr(e,...t){if(!qn(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Ut(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Vn(e,t){hr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const le=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ze=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Yn(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function dr(e){return typeof e=="string"&&(e=Yn(e)),hr(e),e}class Kn{clone(){return this._cloneInto()}}function Gn(e){const t=n=>e().update(dr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dr(e=32){if(le&&typeof le.getRandomValues=="function")return le.getRandomValues(new Uint8Array(e));if(le&&typeof le.randomBytes=="function")return le.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Jn(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),c=Number(r&i),u=n?4:0,f=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+f,c,n)}class Zn extends Kn{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ze(this.buffer)}update(t){Ut(this);const{view:r,buffer:n,blockLen:o}=this;t=dr(t);const i=t.length;for(let s=0;s<i;){const c=Math.min(o-this.pos,i-s);if(c===o){const u=ze(t);for(;o<=i-s;s+=o)this.process(u,s);continue}n.set(t.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ut(this),Vn(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(n,0),s=0);for(let d=s;d<o;d++)r[d]=0;Jn(n,o-8,BigInt(this.length*8),i),this.process(n,0);const c=ze(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=u/4,a=this.get();if(f>a.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<f;d++)c.setUint32(4*d,a[d],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:s,pos:c}=this;return t.length=o,t.pos=c,t.finished=i,t.destroyed=s,o%r&&t.buffer.set(n),t}}const _e=BigInt(2**32-1),Qe=BigInt(32);function br(e,t=!1){return t?{h:Number(e&_e),l:Number(e>>Qe&_e)}:{h:Number(e>>Qe&_e)|0,l:Number(e&_e)|0}}function Xn(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:i,l:s}=br(e[o],t);[r[o],n[o]]=[i,s]}return[r,n]}const Qn=(e,t)=>BigInt(e>>>0)<<Qe|BigInt(t>>>0),eo=(e,t,r)=>e>>>r,to=(e,t,r)=>e<<32-r|t>>>r,ro=(e,t,r)=>e>>>r|t<<32-r,no=(e,t,r)=>e<<32-r|t>>>r,oo=(e,t,r)=>e<<64-r|t>>>r-32,io=(e,t,r)=>e>>>r-32|t<<64-r,so=(e,t)=>t,uo=(e,t)=>e,ao=(e,t,r)=>e<<r|t>>>32-r,co=(e,t,r)=>t<<r|e>>>32-r,fo=(e,t,r)=>t<<r-32|e>>>64-r,lo=(e,t,r)=>e<<r-32|t>>>64-r;function ho(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Do=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),bo=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,po=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),go=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,wo=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Eo=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,A={fromBig:br,split:Xn,toBig:Qn,shrSH:eo,shrSL:to,rotrSH:ro,rotrSL:no,rotrBH:oo,rotrBL:io,rotr32H:so,rotr32L:uo,rotlSH:ao,rotlSL:co,rotlBH:fo,rotlBL:lo,add:ho,add3L:Do,add3H:bo,add4L:po,add4H:go,add5H:Eo,add5L:wo},[yo,mo]=A.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),ee=new Uint32Array(80),te=new Uint32Array(80);class Fo extends Zn{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:s,Dh:c,Dl:u,Eh:f,El:a,Fh:d,Fl:D,Gh:b,Gl:l,Hh:p,Hl:m}=this;return[t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m]}set(t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=c|0,this.Dl=u|0,this.Eh=f|0,this.El=a|0,this.Fh=d|0,this.Fl=D|0,this.Gh=b|0,this.Gl=l|0,this.Hh=p|0,this.Hl=m|0}process(t,r){for(let h=0;h<16;h++,r+=4)ee[h]=t.getUint32(r),te[h]=t.getUint32(r+=4);for(let h=16;h<80;h++){const E=ee[h-15]|0,S=te[h-15]|0,T=A.rotrSH(E,S,1)^A.rotrSH(E,S,8)^A.shrSH(E,S,7),B=A.rotrSL(E,S,1)^A.rotrSL(E,S,8)^A.shrSL(E,S,7),C=ee[h-2]|0,I=te[h-2]|0,ae=A.rotrSH(C,I,19)^A.rotrBH(C,I,61)^A.shrSH(C,I,6),re=A.rotrSL(C,I,19)^A.rotrBL(C,I,61)^A.shrSL(C,I,6),ce=A.add4L(B,re,te[h-7],te[h-16]),de=A.add4H(ce,T,ae,ee[h-7],ee[h-16]);ee[h]=de|0,te[h]=ce|0}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:c,Cl:u,Dh:f,Dl:a,Eh:d,El:D,Fh:b,Fl:l,Gh:p,Gl:m,Hh:F,Hl:w}=this;for(let h=0;h<80;h++){const E=A.rotrSH(d,D,14)^A.rotrSH(d,D,18)^A.rotrBH(d,D,41),S=A.rotrSL(d,D,14)^A.rotrSL(d,D,18)^A.rotrBL(d,D,41),T=d&b^~d&p,B=D&l^~D&m,C=A.add5L(w,S,B,mo[h],te[h]),I=A.add5H(C,F,E,T,yo[h],ee[h]),ae=C|0,re=A.rotrSH(n,o,28)^A.rotrBH(n,o,34)^A.rotrBH(n,o,39),ce=A.rotrSL(n,o,28)^A.rotrBL(n,o,34)^A.rotrBL(n,o,39),de=n&i^n&c^i&c,Ie=o&s^o&u^s&u;F=p|0,w=m|0,p=b|0,m=l|0,b=d|0,l=D|0,{h:d,l:D}=A.add(f|0,a|0,I|0,ae|0),f=c|0,a=u|0,c=i|0,u=s|0,i=n|0,s=o|0;const _=A.add3L(ae,ce,Ie);n=A.add3H(_,I,re,de),o=_|0}({h:n,l:o}=A.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:s}=A.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:c,l:u}=A.add(this.Ch|0,this.Cl|0,c|0,u|0),{h:f,l:a}=A.add(this.Dh|0,this.Dl|0,f|0,a|0),{h:d,l:D}=A.add(this.Eh|0,this.El|0,d|0,D|0),{h:b,l}=A.add(this.Fh|0,this.Fl|0,b|0,l|0),{h:p,l:m}=A.add(this.Gh|0,this.Gl|0,p|0,m|0),{h:F,l:w}=A.add(this.Hh|0,this.Hl|0,F|0,w|0),this.set(n,o,i,s,c,u,f,a,d,D,b,l,p,m,F,w)}roundClean(){ee.fill(0),te.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const _o=Gn(()=>new Fo);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const st=BigInt(0),pr=BigInt(1),vo=BigInt(2);function ut(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function at(e){if(!ut(e))throw new Error("Uint8Array expected")}function He(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const Ao=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ct(e){at(e);let t="";for(let r=0;r<e.length;r++)t+=Ao[e[r]];return t}function gr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?st:BigInt("0x"+e)}const Z={_0:48,_9:57,A:65,F:70,a:97,f:102};function It(e){if(e>=Z._0&&e<=Z._9)return e-Z._0;if(e>=Z.A&&e<=Z.F)return e-(Z.A-10);if(e>=Z.a&&e<=Z.f)return e-(Z.a-10)}function wr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let o=0,i=0;o<r;o++,i+=2){const s=It(e.charCodeAt(i)),c=It(e.charCodeAt(i+1));if(s===void 0||c===void 0){const u=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+i)}n[o]=s*16+c}return n}function So(e){return gr(ct(e))}function Ce(e){return at(e),gr(ct(Uint8Array.from(e).reverse()))}function Er(e,t){return wr(e.toString(16).padStart(t*2,"0"))}function et(e,t){return Er(e,t).reverse()}function X(e,t,r){let n;if(typeof t=="string")try{n=wr(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(ut(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=n.length;if(typeof r=="number"&&o!==r)throw new Error(e+" of length "+r+" expected, got "+o);return n}function Mt(...e){let t=0;for(let n=0;n<e.length;n++){const o=e[n];at(o),t+=o.length}const r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){const i=e[n];r.set(i,o),o+=i.length}return r}const $e=e=>typeof e=="bigint"&&st<=e;function Co(e,t,r){return $e(e)&&$e(t)&&$e(r)&&t<=e&&e<r}function pe(e,t,r,n){if(!Co(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function Oo(e){let t;for(t=0;e>st;e>>=pr,t+=1);return t}const xo=e=>(vo<<BigInt(e-1))-pr,Bo={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ut(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ft(e,t,r={}){const n=(o,i,s)=>{const c=Bo[i];if(typeof c!="function")throw new Error("invalid validator function");const u=e[o];if(!(s&&u===void 0)&&!c(u,e))throw new Error("param "+String(o)+" is invalid. Expected "+i+", got "+u)};for(const[o,i]of Object.entries(t))n(o,i,!1);for(const[o,i]of Object.entries(r))n(o,i,!0);return e}function Pt(e){const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(o!==void 0)return o;const i=e(r,...n);return t.set(r,i),i}}const W=BigInt(0),j=BigInt(1),se=BigInt(2),Ro=BigInt(3),tt=BigInt(4),jt=BigInt(5),Lt=BigInt(8);function L(e,t){const r=e%t;return r>=W?r:t+r}function No(e,t,r){if(t<W)throw new Error("invalid exponent, negatives unsupported");if(r<=W)throw new Error("invalid modulus");if(r===j)return W;let n=j;for(;t>W;)t&j&&(n=n*e%r),e=e*e%r,t>>=j;return n}function K(e,t,r){let n=e;for(;t-- >W;)n*=n,n%=r;return n}function Wt(e,t){if(e===W)throw new Error("invert: expected non-zero number");if(t<=W)throw new Error("invert: expected positive modulus, got "+t);let r=L(e,t),n=t,o=W,i=j;for(;r!==W;){const s=n/r,c=n%r,u=o-i*s;n=r,r=c,o=i,i=u}if(n!==j)throw new Error("invert: does not exist");return L(o,t)}function To(e){const t=(e-j)/se;let r,n,o;for(r=e-j,n=0;r%se===W;r/=se,n++);for(o=se;o<e&&No(o,t,e)!==e-j;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const s=(e+j)/tt;return function(c,u){const f=c.pow(u,s);if(!c.eql(c.sqr(f),u))throw new Error("Cannot find square root");return f}}const i=(r+j)/se;return function(s,c){if(s.pow(c,t)===s.neg(s.ONE))throw new Error("Cannot find square root");let u=n,f=s.pow(s.mul(s.ONE,o),r),a=s.pow(c,i),d=s.pow(c,r);for(;!s.eql(d,s.ONE);){if(s.eql(d,s.ZERO))return s.ZERO;let D=1;for(let l=s.sqr(d);D<u&&!s.eql(l,s.ONE);D++)l=s.sqr(l);const b=s.pow(f,j<<BigInt(u-D-1));f=s.sqr(b),a=s.mul(a,b),d=s.mul(d,f),u=D}return a}}function Uo(e){if(e%tt===Ro){const t=(e+j)/tt;return function(r,n){const o=r.pow(n,t);if(!r.eql(r.sqr(o),n))throw new Error("Cannot find square root");return o}}if(e%Lt===jt){const t=(e-jt)/Lt;return function(r,n){const o=r.mul(n,se),i=r.pow(o,t),s=r.mul(n,i),c=r.mul(r.mul(s,se),i),u=r.mul(s,r.sub(c,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return To(e)}const Io=(e,t)=>(L(e,t)&j)===j,Mo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Po(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Mo.reduce((n,o)=>(n[o]="function",n),t);return ft(e,r)}function jo(e,t,r){if(r<W)throw new Error("invalid exponent, negatives unsupported");if(r===W)return e.ONE;if(r===j)return t;let n=e.ONE,o=t;for(;r>W;)r&j&&(n=e.mul(n,o)),o=e.sqr(o),r>>=j;return n}function Lo(e,t){const r=new Array(t.length),n=t.reduce((i,s,c)=>e.is0(s)?i:(r[c]=i,e.mul(i,s)),e.ONE),o=e.inv(n);return t.reduceRight((i,s,c)=>e.is0(s)?i:(r[c]=e.mul(i,r[c]),e.mul(i,s)),o),r}function yr(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function mr(e,t,r=!1,n={}){if(e<=W)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:i}=yr(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:i,MASK:xo(o),ZERO:W,ONE:j,create:u=>L(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return W<=u&&u<e},is0:u=>u===W,isOdd:u=>(u&j)===j,neg:u=>L(-u,e),eql:(u,f)=>u===f,sqr:u=>L(u*u,e),add:(u,f)=>L(u+f,e),sub:(u,f)=>L(u-f,e),mul:(u,f)=>L(u*f,e),pow:(u,f)=>jo(c,u,f),div:(u,f)=>L(u*Wt(f,e),e),sqrN:u=>u*u,addN:(u,f)=>u+f,subN:(u,f)=>u-f,mulN:(u,f)=>u*f,inv:u=>Wt(u,e),sqrt:n.sqrt||(u=>(s||(s=Uo(e)),s(c,u))),invertBatch:u=>Lo(c,u),cmov:(u,f,a)=>a?f:u,toBytes:u=>r?et(u,i):Er(u,i),fromBytes:u=>{if(u.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+u.length);return r?Ce(u):So(u)}});return Object.freeze(c)}const kt=BigInt(0),ve=BigInt(1);function qe(e,t){const r=t.negate();return e?r:t}function Fr(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ve(e,t){Fr(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Wo(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function ko(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const Ye=new WeakMap,_r=new WeakMap;function Ke(e){return _r.get(e)||1}function zo(e,t){return{constTimeNegate:qe,hasPrecomputes(r){return Ke(r)!==1},unsafeLadder(r,n,o=e.ZERO){let i=r;for(;n>kt;)n&ve&&(o=o.add(i)),i=i.double(),n>>=ve;return o},precomputeWindow(r,n){const{windows:o,windowSize:i}=Ve(n,t),s=[];let c=r,u=c;for(let f=0;f<o;f++){u=c,s.push(u);for(let a=1;a<i;a++)u=u.add(c),s.push(u);c=u.double()}return s},wNAF(r,n,o){const{windows:i,windowSize:s}=Ve(r,t);let c=e.ZERO,u=e.BASE;const f=BigInt(2**r-1),a=2**r,d=BigInt(r);for(let D=0;D<i;D++){const b=D*s;let l=Number(o&f);o>>=d,l>s&&(l-=a,o+=ve);const p=b,m=b+Math.abs(l)-1,F=D%2!==0,w=l<0;l===0?u=u.add(qe(F,n[p])):c=c.add(qe(w,n[m]))}return{p:c,f:u}},wNAFUnsafe(r,n,o,i=e.ZERO){const{windows:s,windowSize:c}=Ve(r,t),u=BigInt(2**r-1),f=2**r,a=BigInt(r);for(let d=0;d<s;d++){const D=d*c;if(o===kt)break;let b=Number(o&u);if(o>>=a,b>c&&(b-=f,o+=ve),b===0)continue;let l=n[D+Math.abs(b)-1];b<0&&(l=l.negate()),i=i.add(l)}return i},getPrecomputes(r,n,o){let i=Ye.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&Ye.set(n,o(i))),i},wNAFCached(r,n,o){const i=Ke(r);return this.wNAF(i,this.getPrecomputes(i,r,o),n)},wNAFCachedUnsafe(r,n,o,i){const s=Ke(r);return s===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(s,this.getPrecomputes(s,r,o),n,i)},setWindowSize(r,n){Fr(n,t),_r.set(r,n),Ye.delete(r)}}}function Ho(e,t,r,n){if(Wo(r,e),ko(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,i=Oo(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,c=(1<<s)-1,u=new Array(c+1).fill(o),f=Math.floor((t.BITS-1)/s)*s;let a=o;for(let d=f;d>=0;d-=s){u.fill(o);for(let b=0;b<n.length;b++){const l=n[b],p=Number(l>>BigInt(d)&BigInt(c));u[p]=u[p].add(r[b])}let D=o;for(let b=u.length-1,l=o;b>0;b--)l=l.add(u[b]),D=D.add(l);if(a=a.add(D),d!==0)for(let b=0;b<s;b++)a=a.double()}return a}function $o(e){return Po(e.Fp),ft(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...yr(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const Y=BigInt(0),q=BigInt(1),Ae=BigInt(2),qo=BigInt(8),Vo={zip215:!0};function Yo(e){const t=$o(e);return ft(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function Ko(e){const t=Yo(e),{Fp:r,n,prehash:o,hash:i,randomBytes:s,nByteLength:c,h:u}=t,f=Ae<<BigInt(c*8)-q,a=r.create,d=mr(t.n,t.nBitLength),D=t.uvRatio||((_,g)=>{try{return{isValid:!0,value:r.sqrt(_*r.inv(g))}}catch{return{isValid:!1,value:Y}}}),b=t.adjustScalarBytes||(_=>_),l=t.domain||((_,g,y)=>{if(He("phflag",y),g.length||y)throw new Error("Contexts/pre-hash are not supported");return _});function p(_,g){pe("coordinate "+_,g,Y,f)}function m(_){if(!(_ instanceof h))throw new Error("ExtendedPoint expected")}const F=Pt((_,g)=>{const{ex:y,ey:v,ez:O}=_,x=_.is0();g==null&&(g=x?qo:r.inv(O));const R=a(y*g),M=a(v*g),U=a(O*g);if(x)return{x:Y,y:q};if(U!==q)throw new Error("invZ was invalid");return{x:R,y:M}}),w=Pt(_=>{const{a:g,d:y}=t;if(_.is0())throw new Error("bad point: ZERO");const{ex:v,ey:O,ez:x,et:R}=_,M=a(v*v),U=a(O*O),P=a(x*x),k=a(P*P),$=a(M*g),G=a(P*a($+U)),J=a(k+a(y*a(M*U)));if(G!==J)throw new Error("bad point: equation left != right (1)");const V=a(v*O),Q=a(x*R);if(V!==Q)throw new Error("bad point: equation left != right (2)");return!0});class h{constructor(g,y,v,O){this.ex=g,this.ey=y,this.ez=v,this.et=O,p("x",g),p("y",y),p("z",v),p("t",O),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(g){if(g instanceof h)throw new Error("extended point not allowed");const{x:y,y:v}=g||{};return p("x",y),p("y",v),new h(y,v,q,a(y*v))}static normalizeZ(g){const y=r.invertBatch(g.map(v=>v.ez));return g.map((v,O)=>v.toAffine(y[O])).map(h.fromAffine)}static msm(g,y){return Ho(h,d,g,y)}_setWindowSize(g){T.setWindowSize(this,g)}assertValidity(){w(this)}equals(g){m(g);const{ex:y,ey:v,ez:O}=this,{ex:x,ey:R,ez:M}=g,U=a(y*M),P=a(x*O),k=a(v*M),$=a(R*O);return U===P&&k===$}is0(){return this.equals(h.ZERO)}negate(){return new h(a(-this.ex),this.ey,this.ez,a(-this.et))}double(){const{a:g}=t,{ex:y,ey:v,ez:O}=this,x=a(y*y),R=a(v*v),M=a(Ae*a(O*O)),U=a(g*x),P=y+v,k=a(a(P*P)-x-R),$=U+R,G=$-M,J=U-R,V=a(k*G),Q=a($*J),ne=a(k*J),Fe=a(G*$);return new h(V,Q,Fe,ne)}add(g){m(g);const{a:y,d:v}=t,{ex:O,ey:x,ez:R,et:M}=this,{ex:U,ey:P,ez:k,et:$}=g;if(y===BigInt(-1)){const pt=a((x-O)*(P+U)),gt=a((x+O)*(P-U)),Me=a(gt-pt);if(Me===Y)return this.double();const wt=a(R*Ae*$),Et=a(M*Ae*k),yt=Et+wt,mt=gt+pt,Ft=Et-wt,Qr=a(yt*Me),en=a(mt*Ft),tn=a(yt*Ft),rn=a(Me*mt);return new h(Qr,en,rn,tn)}const G=a(O*U),J=a(x*P),V=a(M*v*$),Q=a(R*k),ne=a((O+x)*(U+P)-G-J),Fe=Q-V,Dt=Q+V,bt=a(J-y*G),Gr=a(ne*Fe),Jr=a(Dt*bt),Zr=a(ne*bt),Xr=a(Fe*Dt);return new h(Gr,Jr,Xr,Zr)}subtract(g){return this.add(g.negate())}wNAF(g){return T.wNAFCached(this,g,h.normalizeZ)}multiply(g){const y=g;pe("scalar",y,q,n);const{p:v,f:O}=this.wNAF(y);return h.normalizeZ([v,O])[0]}multiplyUnsafe(g,y=h.ZERO){const v=g;return pe("scalar",v,Y,n),v===Y?S:this.is0()||v===q?this:T.wNAFCachedUnsafe(this,v,h.normalizeZ,y)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return T.unsafeLadder(this,n).is0()}toAffine(g){return F(this,g)}clearCofactor(){const{h:g}=t;return g===q?this:this.multiplyUnsafe(g)}static fromHex(g,y=!1){const{d:v,a:O}=t,x=r.BYTES;g=X("pointHex",g,x),He("zip215",y);const R=g.slice(),M=g[x-1];R[x-1]=M&-129;const U=Ce(R),P=y?f:r.ORDER;pe("pointHex.y",U,Y,P);const k=a(U*U),$=a(k-q),G=a(v*k-O);let{isValid:J,value:V}=D($,G);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const Q=(V&q)===q,ne=(M&128)!==0;if(!y&&V===Y&&ne)throw new Error("Point.fromHex: x=0 and x_0=1");return ne!==Q&&(V=a(-V)),h.fromAffine({x:V,y:U})}static fromPrivateKey(g){return I(g).point}toRawBytes(){const{x:g,y}=this.toAffine(),v=et(y,r.BYTES);return v[v.length-1]|=g&q?128:0,v}toHex(){return ct(this.toRawBytes())}}h.BASE=new h(t.Gx,t.Gy,q,a(t.Gx*t.Gy)),h.ZERO=new h(Y,q,q,Y);const{BASE:E,ZERO:S}=h,T=zo(h,c*8);function B(_){return L(_,n)}function C(_){return B(Ce(_))}function I(_){const g=r.BYTES;_=X("private key",_,g);const y=X("hashed private key",i(_),2*g),v=b(y.slice(0,g)),O=y.slice(g,2*g),x=C(v),R=E.multiply(x),M=R.toRawBytes();return{head:v,prefix:O,scalar:x,point:R,pointBytes:M}}function ae(_){return I(_).pointBytes}function re(_=new Uint8Array,...g){const y=Mt(...g);return C(i(l(y,X("context",_),!!o)))}function ce(_,g,y={}){_=X("message",_),o&&(_=o(_));const{prefix:v,scalar:O,pointBytes:x}=I(g),R=re(y.context,v,_),M=E.multiply(R).toRawBytes(),U=re(y.context,M,x,_),P=B(R+U*O);pe("signature.s",P,Y,n);const k=Mt(M,et(P,r.BYTES));return X("result",k,r.BYTES*2)}const de=Vo;function Ie(_,g,y,v=de){const{context:O,zip215:x}=v,R=r.BYTES;_=X("signature",_,2*R),g=X("message",g),y=X("publicKey",y,R),x!==void 0&&He("zip215",x),o&&(g=o(g));const M=Ce(_.slice(R,2*R));let U,P,k;try{U=h.fromHex(y,x),P=h.fromHex(_.slice(0,R),x),k=E.multiplyUnsafe(M)}catch{return!1}if(!x&&U.isSmallOrder())return!1;const $=re(O,P.toRawBytes(),U.toRawBytes(),g);return P.add(U.multiplyUnsafe($)).subtract(k).clearCofactor().equals(h.ZERO)}return E._setWindowSize(8),{CURVE:t,getPublicKey:ae,sign:ce,verify:Ie,ExtendedPoint:h,utils:{getExtendedPublicKey:I,randomPrivateKey:()=>s(r.BYTES),precompute(_=8,g=h.BASE){return g._setWindowSize(_),g.multiply(BigInt(3)),g}}}}BigInt(0),BigInt(1);const lt=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),zt=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Go=BigInt(1),Ht=BigInt(2);BigInt(3);const Jo=BigInt(5),Zo=BigInt(8);function Xo(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),o=BigInt(80),i=lt,s=e*e%i*e%i,c=K(s,Ht,i)*s%i,u=K(c,Go,i)*e%i,f=K(u,Jo,i)*u%i,a=K(f,t,i)*f%i,d=K(a,r,i)*a%i,D=K(d,n,i)*d%i,b=K(D,o,i)*D%i,l=K(b,o,i)*D%i,p=K(l,t,i)*f%i;return{pow_p_5_8:K(p,Ht,i)*e%i,b2:s}}function Qo(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function ei(e,t){const r=lt,n=L(t*t*t,r),o=L(n*n*t,r),i=Xo(e*o).pow_p_5_8;let s=L(e*n*i,r);const c=L(t*s*s,r),u=s,f=L(s*zt,r),a=c===e,d=c===L(-e,r),D=c===L(-e*zt,r);return a&&(s=u),(d||D)&&(s=f),Io(s,r)&&(s=L(-s,r)),{isValid:a||d,value:s}}const ti=mr(lt,void 0,!0),ri={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ti,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Zo,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:_o,randomBytes:Dr,adjustScalarBytes:Qo,uvRatio:ei},vr=Ko(ri),ni="EdDSA",oi="JWT",Oe=".",Re="base64url",Ar="utf8",Sr="utf8",ii=":",si="did",ui="key",$t="base58btc",ai="z",ci="K36",fi=32;function ht(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Cr(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?ht(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Or(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));const r=Cr(t);let n=0;for(const o of e)r.set(o,n),n+=o.length;return ht(r)}function li(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var hi=li,di=hi;const xr=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Di=e=>new TextEncoder().encode(e),bi=e=>new TextDecoder().decode(e);class pi{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class gi{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Br(this,t)}}class wi{constructor(t){this.decoders=t}or(t){return Br(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Br=(e,t)=>new wi({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class Ei{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new pi(t,r,n),this.decoder=new gi(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ne=({name:e,prefix:t,encode:r,decode:n})=>new Ei(e,t,r,n),ye=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=di(r,t);return Ne({prefix:e,name:t,encode:n,decode:i=>xr(o(i))})},yi=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},mi=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},z=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ne({prefix:t,name:e,encode(o){return mi(o,n,r)},decode(o){return yi(o,n,r,e)}}),Fi=Ne({prefix:"\0",name:"identity",encode:e=>bi(e),decode:e=>Di(e)});var _i=Object.freeze({__proto__:null,identity:Fi});const vi=z({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Ai=Object.freeze({__proto__:null,base2:vi});const Si=z({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ci=Object.freeze({__proto__:null,base8:Si});const Oi=ye({prefix:"9",name:"base10",alphabet:"0123456789"});var xi=Object.freeze({__proto__:null,base10:Oi});const Bi=z({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ri=z({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ni=Object.freeze({__proto__:null,base16:Bi,base16upper:Ri});const Ti=z({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ui=z({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ii=z({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Mi=z({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Pi=z({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ji=z({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Li=z({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Wi=z({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ki=z({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var zi=Object.freeze({__proto__:null,base32:Ti,base32upper:Ui,base32pad:Ii,base32padupper:Mi,base32hex:Pi,base32hexupper:ji,base32hexpad:Li,base32hexpadupper:Wi,base32z:ki});const Hi=ye({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),$i=ye({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var qi=Object.freeze({__proto__:null,base36:Hi,base36upper:$i});const Vi=ye({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Yi=ye({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ki=Object.freeze({__proto__:null,base58btc:Vi,base58flickr:Yi});const Gi=z({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ji=z({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Zi=z({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Xi=z({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Qi=Object.freeze({__proto__:null,base64:Gi,base64pad:Ji,base64url:Zi,base64urlpad:Xi});const Rr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),es=Rr.reduce((e,t,r)=>(e[r]=t,e),[]),ts=Rr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function rs(e){return e.reduce((t,r)=>(t+=es[r],t),"")}function ns(e){const t=[];for(const r of e){const n=ts[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const os=Ne({prefix:"🚀",name:"base256emoji",encode:rs,decode:ns});var is=Object.freeze({__proto__:null,base256emoji:os}),ss=Nr,qt=128,us=-128,as=Math.pow(2,31);function Nr(e,t,r){t=t||[],r=r||0;for(var n=r;e>=as;)t[r++]=e&255|qt,e/=128;for(;e&us;)t[r++]=e&255|qt,e>>>=7;return t[r]=e|0,Nr.bytes=r-n+1,t}var cs=rt,fs=128,Vt=127;function rt(e,n){var r=0,n=n||0,o=0,i=n,s,c=e.length;do{if(i>=c)throw rt.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&Vt)<<o:(s&Vt)*Math.pow(2,o),o+=7}while(s>=fs);return rt.bytes=i-n,r}var ls=Math.pow(2,7),hs=Math.pow(2,14),ds=Math.pow(2,21),Ds=Math.pow(2,28),bs=Math.pow(2,35),ps=Math.pow(2,42),gs=Math.pow(2,49),ws=Math.pow(2,56),Es=Math.pow(2,63),ys=function(e){return e<ls?1:e<hs?2:e<ds?3:e<Ds?4:e<bs?5:e<ps?6:e<gs?7:e<ws?8:e<Es?9:10},ms={encode:ss,decode:cs,encodingLength:ys},Tr=ms;const Yt=(e,t,r=0)=>(Tr.encode(e,t,r),t),Kt=e=>Tr.encodingLength(e),nt=(e,t)=>{const r=t.byteLength,n=Kt(e),o=n+Kt(r),i=new Uint8Array(o+r);return Yt(e,i,0),Yt(r,i,n),i.set(t,o),new Fs(e,r,t,i)};class Fs{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}}const Ur=({name:e,code:t,encode:r})=>new _s(e,t,r);class _s{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?nt(this.code,r):r.then(n=>nt(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ir=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),vs=Ur({name:"sha2-256",code:18,encode:Ir("SHA-256")}),As=Ur({name:"sha2-512",code:19,encode:Ir("SHA-512")});var Ss=Object.freeze({__proto__:null,sha256:vs,sha512:As});const Mr=0,Cs="identity",Pr=xr,Os=e=>nt(Mr,Pr(e)),xs={code:Mr,name:Cs,encode:Pr,digest:Os};var Bs=Object.freeze({__proto__:null,identity:xs});new TextEncoder,new TextDecoder;const Gt={..._i,...Ai,...Ci,...xi,...Ni,...zi,...qi,...Ki,...Qi,...is};({...Ss,...Bs});function jr(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Jt=jr("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Ge=jr("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Cr(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Lr={utf8:Jt,"utf-8":Jt,hex:Gt.base16,latin1:Ge,ascii:Ge,binary:Ge,...Gt};function Te(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function he(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?ht(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function Zt(e){return fr(Te(he(e,Re),Ar))}function xe(e){return Te(he(lr(e),Ar),Re)}function Rs(e){const t=he(ci,$t),r=ai+Te(Or([t,e]),$t);return[si,ui,r].join(ii)}function Ns(e){return Te(e,Re)}function Ts(e){return he(e,Re)}function Us(e){return he([xe(e.header),xe(e.payload)].join(Oe),Sr)}function Is(e){return[xe(e.header),xe(e.payload),Ns(e.signature)].join(Oe)}function va(e){const t=e.split(Oe),r=Zt(t[0]),n=Zt(t[1]),o=Ts(t[2]),i=he(t.slice(0,2).join(Oe),Sr);return{header:r,payload:n,signature:o,data:i}}function Aa(e=Dr(fi)){const t=vr.getPublicKey(e);return{secretKey:Or([e,t]),publicKey:t}}async function Sa(e,t,r,n,o=it.fromMiliseconds(Date.now())){const i={alg:ni,typ:oi},s=Rs(n.publicKey),c=o+r,u={iss:s,sub:e,aud:t,iat:o,exp:c},f=Us({header:i,payload:u}),a=vr.sign(f,n.secretKey.slice(0,32));return Is({header:i,payload:u,signature:a})}var Xt=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Ms=(function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e})(),Ps=(function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=Se.platform}return e})(),js=(function(){function e(t,r,n,o){this.name=t,this.version=r,this.os=n,this.bot=o,this.type="bot-device"}return e})(),Ls=(function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e})(),Ws=(function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e})(),ks=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,zs=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Qt=3,Hs=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ks]],er=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Ca(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ws:typeof navigator<"u"?qs(navigator.userAgent):Ys()}function $s(e){return e!==""&&Hs.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1)}function qs(e){var t=$s(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Ls;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?o.length<Qt&&(o=Xt(Xt([],o,!0),Ks(Qt-o.length),!0)):o=[];var i=o.join("."),s=Vs(e),c=zs.exec(e);return c&&c[1]?new js(r,i,s,c[1]):new Ms(r,i,s)}function Vs(e){for(var t=0,r=er.length;t<r;t++){var n=er[t],o=n[0],i=n[1],s=i.exec(e);if(s)return o}return null}function Ys(){var e=typeof Se<"u"&&Se.version;return e?new Ps(Se.version.slice(1)):null}function Ks(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var N={},tr;function Wr(){if(tr)return N;tr=1,Object.defineProperty(N,"__esModule",{value:!0}),N.getLocalStorage=N.getLocalStorageOrThrow=N.getCrypto=N.getCryptoOrThrow=N.getLocation=N.getLocationOrThrow=N.getNavigator=N.getNavigatorOrThrow=N.getDocument=N.getDocumentOrThrow=N.getFromWindowOrThrow=N.getFromWindow=void 0;function e(D){let b;return typeof window<"u"&&typeof window[D]<"u"&&(b=window[D]),b}N.getFromWindow=e;function t(D){const b=e(D);if(!b)throw new Error(`${D} is not defined in Window`);return b}N.getFromWindowOrThrow=t;function r(){return t("document")}N.getDocumentOrThrow=r;function n(){return e("document")}N.getDocument=n;function o(){return t("navigator")}N.getNavigatorOrThrow=o;function i(){return e("navigator")}N.getNavigator=i;function s(){return t("location")}N.getLocationOrThrow=s;function c(){return e("location")}N.getLocation=c;function u(){return t("crypto")}N.getCryptoOrThrow=u;function f(){return e("crypto")}N.getCrypto=f;function a(){return t("localStorage")}N.getLocalStorageOrThrow=a;function d(){return e("localStorage")}return N.getLocalStorage=d,N}var Oa=Wr(),ge={},rr;function Gs(){if(rr)return ge;rr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.getWindowMetadata=void 0;const e=Wr();function t(){let r,n;try{r=e.getDocumentOrThrow(),n=e.getLocationOrThrow()}catch{return null}function o(){const b=r.getElementsByTagName("link"),l=[];for(let p=0;p<b.length;p++){const m=b[p],F=m.getAttribute("rel");if(F&&F.toLowerCase().indexOf("icon")>-1){const w=m.getAttribute("href");if(w)if(w.toLowerCase().indexOf("https:")===-1&&w.toLowerCase().indexOf("http:")===-1&&w.indexOf("//")!==0){let h=n.protocol+"//"+n.host;if(w.indexOf("/")===0)h+=w;else{const E=n.pathname.split("/");E.pop();const S=E.join("/");h+=S+"/"+w}l.push(h)}else if(w.indexOf("//")===0){const h=n.protocol+w;l.push(h)}else l.push(w)}}return l}function i(...b){const l=r.getElementsByTagName("meta");for(let p=0;p<l.length;p++){const m=l[p],F=["itemprop","property","name"].map(w=>m.getAttribute(w)).filter(w=>w?b.includes(w):!1);if(F.length&&F){const w=m.getAttribute("content");if(w)return w}}return""}function s(){let b=i("name","og:site_name","og:title","twitter:title");return b||(b=r.title),b}function c(){return i("description","og:description","twitter:description","keywords")}const u=s(),f=c(),a=n.origin,d=o();return{description:f,url:a,icons:d,name:u}}return ge.getWindowMetadata=t,ge}var xa=Gs();function Js(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var Zs=Js,Xs=Zs;const Qs=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},eu=e=>new TextEncoder().encode(e),tu=e=>new TextDecoder().decode(e);class ru{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class nu{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return kr(this,t)}}class ou{constructor(t){this.decoders=t}or(t){return kr(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const kr=(e,t)=>new ou({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new ru(t,r,n),this.decoder=new nu(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ue=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),me=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=Xs(r,t);return Ue({prefix:e,name:t,encode:n,decode:i=>Qs(o(i))})},su=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},uu=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},H=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ue({prefix:t,name:e,encode(o){return uu(o,n,r)},decode(o){return su(o,n,r,e)}}),au=Ue({prefix:"\0",name:"identity",encode:e=>tu(e),decode:e=>eu(e)}),cu=Object.freeze(Object.defineProperty({__proto__:null,identity:au},Symbol.toStringTag,{value:"Module"})),fu=H({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),lu=Object.freeze(Object.defineProperty({__proto__:null,base2:fu},Symbol.toStringTag,{value:"Module"})),hu=H({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),du=Object.freeze(Object.defineProperty({__proto__:null,base8:hu},Symbol.toStringTag,{value:"Module"})),Du=me({prefix:"9",name:"base10",alphabet:"0123456789"}),bu=Object.freeze(Object.defineProperty({__proto__:null,base10:Du},Symbol.toStringTag,{value:"Module"})),pu=H({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=H({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),wu=Object.freeze(Object.defineProperty({__proto__:null,base16:pu,base16upper:gu},Symbol.toStringTag,{value:"Module"})),Eu=H({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),yu=H({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),mu=H({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Fu=H({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),_u=H({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),vu=H({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Au=H({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Su=H({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Cu=H({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Ou=Object.freeze(Object.defineProperty({__proto__:null,base32:Eu,base32hex:_u,base32hexpad:Au,base32hexpadupper:Su,base32hexupper:vu,base32pad:mu,base32padupper:Fu,base32upper:yu,base32z:Cu},Symbol.toStringTag,{value:"Module"})),xu=me({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Bu=me({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Ru=Object.freeze(Object.defineProperty({__proto__:null,base36:xu,base36upper:Bu},Symbol.toStringTag,{value:"Module"})),Nu=me({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Tu=me({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Uu=Object.freeze(Object.defineProperty({__proto__:null,base58btc:Nu,base58flickr:Tu},Symbol.toStringTag,{value:"Module"})),Iu=H({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Mu=H({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Pu=H({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ju=H({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Lu=Object.freeze(Object.defineProperty({__proto__:null,base64:Iu,base64pad:Mu,base64url:Pu,base64urlpad:ju},Symbol.toStringTag,{value:"Module"})),zr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Wu=zr.reduce((e,t,r)=>(e[r]=t,e),[]),ku=zr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function zu(e){return e.reduce((t,r)=>(t+=Wu[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=ku[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const $u=Ue({prefix:"🚀",name:"base256emoji",encode:zu,decode:Hu}),qu=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:$u},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const Ba={...cu,...lu,...du,...bu,...wu,...Ou,...Ru,...Uu,...Lu,...qu},Ra={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},Vu="PARSE_ERROR",Yu="INVALID_REQUEST",Ku="METHOD_NOT_FOUND",Gu="INVALID_PARAMS",Hr="INTERNAL_ERROR",dt="SERVER_ERROR",Ju=[-32700,-32600,-32601,-32602,-32603],we={[Vu]:{code:-32700,message:"Parse error"},[Yu]:{code:-32600,message:"Invalid Request"},[Ku]:{code:-32601,message:"Method not found"},[Gu]:{code:-32602,message:"Invalid params"},[Hr]:{code:-32603,message:"Internal error"},[dt]:{code:-32e3,message:"Server error"}},$r=dt;function Zu(e){return Ju.includes(e)}function nr(e){return Object.keys(we).includes(e)?we[e]:we[$r]}function Xu(e){const t=Object.values(we).find(r=>r.code===e);return t||we[$r]}function Qu(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}function qr(e=3){const t=Date.now()*Math.pow(10,e),r=Math.floor(Math.random()*Math.pow(10,e));return t+r}function ea(e=6){return BigInt(qr(e))}function ta(e,t,r){return{id:r||qr(),jsonrpc:"2.0",method:e,params:t}}function Na(e,t){return{id:e,jsonrpc:"2.0",result:t}}function ra(e,t,r){return{id:e,jsonrpc:"2.0",error:na(t)}}function na(e,t){return typeof e>"u"?nr(Hr):(typeof e=="string"&&(e=Object.assign(Object.assign({},nr(dt)),{message:e})),Zu(e.code)&&(e=Xu(e.code)),e)}class oa{}class ia extends oa{constructor(){super()}}class sa extends ia{constructor(t){super()}}const ua="^https?:",aa="^wss?:";function ca(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Vr(e,t){const r=ca(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function Ta(e){return Vr(e,ua)}function or(e){return Vr(e,aa)}function fa(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}function Yr(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Ua(e){return Yr(e)&&"method"in e}function la(e){return Yr(e)&&(ha(e)||Kr(e))}function ha(e){return"result"in e}function Kr(e){return"error"in e}class Ia extends sa{constructor(t){super(t),this.events=new ot.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(ta(t.method,t.params||[],t.id||ea().toString()),r)}async requestStrict(t,r){return new Promise(async(n,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${t.id}`,i=>{Kr(i)?o(i.error):n(i.result)});try{await this.connection.send(t,r)}catch(i){o(i)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),la(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const da=()=>typeof WebSocket<"u"?WebSocket:typeof ue<"u"&&typeof ue.WebSocket<"u"?ue.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Da=()=>typeof WebSocket<"u"||typeof ue<"u"&&typeof ue.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",ir=e=>e.split("?")[0],sr=10,ba=da();class Ma{constructor(t){if(this.url=t,this.events=new ot.EventEmitter,this.registering=!1,!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),t()},this.socket.close()})}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(lr(t))}catch(r){this.onError(t.id,r)}}register(t=this.url){if(!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,o)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),o(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{const o=on.isReactNative()?void 0:{rejectUnauthorized:!fa(t)},i=new ba(t,[],o);Da()?i.onerror=s=>{const c=s;n(this.emitError(c.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),r(i)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=r=>this.onClose(r),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const r=typeof t.data=="string"?fr(t.data):t.data;this.events.emit("payload",r)}onError(t,r){const n=this.parseError(r),o=n.message||n.toString(),i=ra(t,o);this.events.emit("payload",i)}parseError(t,r=this.url){return Qu(t,ir(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>sr&&this.events.setMaxListeners(sr)}emitError(t){const r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for host: ${ir(this.url)}`));return this.events.emit("register_error",r),r}}function pa(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let f=0;f<t.length;f++)t[f]=255;for(let f=0;f<e.length;f++){const a=e.charAt(f),d=a.charCodeAt(0);if(t[d]!==255)throw new TypeError(a+" is ambiguous");t[d]=f}const r=e.length,n=e.charAt(0),o=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function s(f){if(f instanceof Uint8Array||(ArrayBuffer.isView(f)?f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):Array.isArray(f)&&(f=Uint8Array.from(f))),!(f instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length===0)return"";let a=0,d=0,D=0;const b=f.length;for(;D!==b&&f[D]===0;)D++,a++;const l=(b-D)*i+1>>>0,p=new Uint8Array(l);for(;D!==b;){let w=f[D],h=0;for(let E=l-1;(w!==0||h<d)&&E!==-1;E--,h++)w+=256*p[E]>>>0,p[E]=w%r>>>0,w=w/r>>>0;if(w!==0)throw new Error("Non-zero carry");d=h,D++}let m=l-d;for(;m!==l&&p[m]===0;)m++;let F=n.repeat(a);for(;m<l;++m)F+=e.charAt(p[m]);return F}function c(f){if(typeof f!="string")throw new TypeError("Expected String");if(f.length===0)return new Uint8Array;let a=0,d=0,D=0;for(;f[a]===n;)d++,a++;const b=(f.length-a)*o+1>>>0,l=new Uint8Array(b);for(;a<f.length;){const w=f.charCodeAt(a);if(w>255)return;let h=t[w];if(h===255)return;let E=0;for(let S=b-1;(h!==0||E<D)&&S!==-1;S--,E++)h+=r*l[S]>>>0,l[S]=h%256>>>0,h=h/256>>>0;if(h!==0)throw new Error("Non-zero carry");D=E,a++}let p=b-D;for(;p!==b&&l[p]===0;)p++;const m=new Uint8Array(d+(b-p));let F=d;for(;p!==b;)m[F++]=l[p++];return m}function u(f){const a=c(f);if(a)return a;throw new Error("Non-base"+r+" character")}return{encode:s,decodeUnsafe:c,decode:u}}var ga="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Pa=pa(ga);export{Ra as C,In as I,Aa as P,Rs as Q,fr as a,Na as b,ta as c,Ba as d,xa as e,ra as f,it as g,Oa as h,Ta as i,Ca as j,va as k,Pa as l,_a as m,cr as n,Ia as o,Qu as p,Ma as q,Pn as r,lr as s,Ua as t,la as u,Sa as v,ea as w,ha as x,Kr as y,qr as z};
15
- //# sourceMappingURL=index-HS7_UPOd.js.map
15
+ //# sourceMappingURL=index-B27__oz0.js.map
@@ -1,2 +1,2 @@
1
- import{c as s}from"./parseSignature-DAsMpuQz.js";import{B as A,E as I,a as S,b as F,F as R,W as x,d as C,e as B,f as N,g as D,p as P,l as w,n as U,p as L,h as M,s as H,z as k}from"./parseSignature-DAsMpuQz.js";import{I as q,c as V,a as O,p as G,w as j}from"./custom-DhOMKJIO.js";import{h as n}from"./W3MFrameProviderSingleton-lQPmplQ2.js";import{U as _,c as K,f as Z,s as J,w as Q,a as X}from"./W3MFrameProviderSingleton-lQPmplQ2.js";import{A as $,a as aa,B as ra,b as oa,C as ea,D as sa,E as ta,F as na,c as ia,H as ca,I as da,d as Ea,e as ua,f as pa,g as la,h as ma,i as ba,j as ga,k as Ta,l as fa,J as ha,L as ya,M as va,m as Aa,N as Ia,n as Sa,o as Fa,P as Ra,p as xa,q as Ca,R as Ba,r as Na,s as Da,t as Pa,u as wa,S as Ua,v as La,w as Ma,x as Ha,T as ka,y as za,z as qa,G as Va,U as Oa,K as Ga,O as ja,Q as Wa,V as _a,W as Ka,X as Za,Y as Ja,Z as Qa,_ as Xa,$ as Ya,a0 as $a,a1 as ar,a2 as rr,a3 as or,a4 as er,a5 as sr,a6 as tr,a7 as nr,a8 as ir,a9 as cr,aa as dr,ab as Er,ac as ur,ad as pr,ae as lr,af as mr,ag as br,ah as gr,ai as Tr,aj as fr,ak as hr,al as yr,am as vr,an as Ar,ao as Ir,ap as Sr,a1 as Fr}from"./NetworkUtil-BH3_oYP8.js";import{A as xr,a as Cr,b as Br,c as Nr,d as Dr,e as Pr,f as wr,g as Ur,h as Lr,i as Mr,j as Hr,k as kr,l as zr,m as qr,n as Vr,o as Or,p as Gr,B as jr,q as Wr,r as _r,C as Kr,s as Zr,t as Jr,u as Qr,v as Xr,w as Yr,x as $r,y as ao,z as ro,D as oo,E as eo,F as so,G as to,H as no,I as io,J as co,K as Eo,L as uo,M as po,N as lo,O as mo,P as bo,Q as go,R as To,S as fo,T as ho,U as yo,V as vo,W as Ao,X as Io,Y as So,Z as Fo,_ as Ro,$ as xo,a0 as Co,a1 as Bo,a2 as No,a3 as Do,a4 as Po,a5 as wo,a6 as Uo,a7 as Lo,a8 as Mo,a9 as Ho,aa as ko,ab as zo,ac as qo,ad as Vo,ae as Oo,af as Go,ag as jo,ah as Wo,ai as _o,aj as Ko,ak as Zo,al as Jo,am as Qo,an as Xo,ao as Yo,ap as $o,aq as ae,ar as re,as as oe,at as ee,au as se,av as te,aw as ne,ax as ie,ay as ce,az as de,aA as Ee,aB as ue,aC as pe,aD as le,aE as me,aF as be,aG as ge,aH as Te,aI as fe,aJ as he,aK as ye,aL as ve,aM as Ae,aN as Ie,aM as Se,aO as Fe,aP as Re,aQ as xe,aR as Ce,aS as Be,aT as Ne,aU as De,aV as Pe,aW as we,aX as Ue,aY as Le,aZ as Me,a_ as He,a$ as ke,b0 as ze,b1 as qe,b2 as Ve,b3 as Oe,b4 as Ge,aL as je,aM as We,b4 as _e,aN as Ke,aM as Ze,b5 as Je,b6 as Qe,aA as Xe}from"./sendRawTransaction-BJhaPoFM.js";import{I as $e,a as as,b as rs,g as os,h as es,c as ss,d as ts,e as ns,p as is,t as cs,v as ds}from"./hashTypedData-DAgXidRT.js";import{d as us,e as ps,a as ls}from"./localBatchGatewayRequest-LQwWSW0t.js";import{ccipRequest as bs,ccipRequest as gs,offchainLookup as Ts,offchainLookupAbiItem as fs,offchainLookupSignature as hs}from"./ccip-DVdHD9LQ.js";import{d as c}from"./verifyHash-BuQb0nyx.js";import{e as vs,p as As,a as Is,s as Ss,s as Fs}from"./verifyHash-BuQb0nyx.js";import{a as xs,b as Cs,c as Bs,s as Ns,d as Ds}from"./serializeTransaction-Cg0Mu0rp.js";import"./secp256k1-DoZCtomu.js";import"./dcl-schemas-OgkR3Xnp.js";import"./react-BUrQZkQz.js";import"./index-BGW18IEb.js";import"./sentry-DyLfTiSb.js";import"./index-Bns4uVVf.js";import"./events-VcRW8MP7.js";import"./index-BZe9O30I.js";import"./ethers-DqHzeHuT.js";import"./intl-AKLEHPeO.js";import"./browser-ponyfill-jzbj-jA4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="350eb5d4-f9d4-484a-ae91-67f310bfbf27",a._sentryDebugIdIdentifier="sentry-dbid-350eb5d4-f9d4-484a-ae91-67f310bfbf27")}catch{}})();export{xr as AbiConstructorNotFoundError,Cr as AbiConstructorParamsNotFoundError,Br as AbiDecodingDataSizeTooSmallError,Nr as AbiDecodingZeroDataError,Dr as AbiEncodingArrayLengthMismatchError,Pr as AbiEncodingBytesSizeMismatchError,wr as AbiEncodingLengthMismatchError,Ur as AbiErrorInputsNotFoundError,Lr as AbiErrorNotFoundError,Mr as AbiErrorSignatureNotFoundError,Hr as AbiEventNotFoundError,kr as AbiEventSignatureEmptyTopicsError,zr as AbiEventSignatureNotFoundError,qr as AbiFunctionNotFoundError,Vr as AbiFunctionOutputsNotFoundError,Or as AbiFunctionSignatureNotFoundError,Gr as AccountStateConflictError,$ as AtomicReadyWalletRejectedUpgradeError,aa as AtomicityNotSupportedError,ra as BaseError,jr as BaseFeeScalarError,Wr as BlockNotFoundError,A as BundleFailedError,oa as BundleTooLargeError,_r as BytesSizeMismatchError,Kr as CallExecutionError,ea as ChainDisconnectedError,Zr as ChainDoesNotSupportContract,Jr as ChainMismatchError,Qr as ChainNotFoundError,Xr as CircularReferenceError,Yr as ClientChainNotConfiguredError,$r as ContractFunctionExecutionError,ao as ContractFunctionRevertedError,ro as ContractFunctionZeroDataError,oo as CounterfactualDeploymentFailedError,eo as DecodeLogDataMismatch,so as DecodeLogTopicsMismatch,sa as DuplicateIdError,to as Eip1559FeesNotSupportedError,I as EnsAvatarInvalidNftUriError,S as EnsAvatarUnsupportedNamespaceError,F as EnsAvatarUriResolutionError,no as EstimateGasExecutionError,ta as ExecutionRevertedError,na as FeeCapTooHighError,ia as FeeCapTooLowError,R as FilterTypeNotSupportedError,ca as HttpRequestError,da as InsufficientFundsError,Ea as IntegerOutOfRangeError,ua as InternalRpcError,pa as IntrinsicGasTooHighError,la as IntrinsicGasTooLowError,io as InvalidAbiDecodingTypeError,co as InvalidAbiEncodingTypeError,Eo as InvalidAbiItemError,uo as InvalidAbiParametersError,po as InvalidAbiTypeParameterError,lo as InvalidAddressError,mo as InvalidArrayError,ma as InvalidBytesBooleanError,bo as InvalidChainIdError,q as InvalidDecimalNumberError,go as InvalidDefinitionTypeError,$e as InvalidDomainError,To as InvalidFunctionModifierError,ba as InvalidHexBooleanError,ga as InvalidInputRpcError,fo as InvalidLegacyVError,ho as InvalidModifierError,yo as InvalidParameterError,Ta as InvalidParamsRpcError,vo as InvalidParenthesisError,as as InvalidPrimaryTypeError,fa as InvalidRequestRpcError,Ao as InvalidSerializableTransactionError,Io as InvalidSignatureError,So as InvalidStorageKeySizeError,Fo as InvalidStructSignatureError,rs as InvalidStructTypeError,ha as JsonRpcVersionUnsupportedError,ya as LimitExceededRpcError,Ro as MaxFeePerGasTooLowError,va as MethodNotFoundRpcError,Aa as MethodNotSupportedRpcError,Ia as NonceMaxValueError,Sa as NonceTooHighError,Fa as NonceTooLowError,Ra as ParseRpcError,xa as ProviderDisconnectedError,Ca as ProviderRpcError,xo as RawContractError,Ba as ResourceNotFoundRpcError,Na as ResourceUnavailableRpcError,Da as ResponseBodyTooLargeError,Pa as RpcError,wa as RpcRequestError,Ua as SizeExceedsPaddingSizeError,La as SizeOverflowError,Ma as SliceOffsetOutOfBoundsError,Co as SolidityProtectedKeywordError,Bo as StateAssignmentConflictError,Ha as SwitchChainError,ka as TimeoutError,za as TipAboveFeeCapError,No as TransactionExecutionError,Do as TransactionNotFoundError,Po as TransactionReceiptNotFoundError,qa as TransactionRejectedRpcError,Va as TransactionTypeNotSupportedError,Oa as UnauthorizedProviderError,Ga as UnknownBundleIdError,ja as UnknownNodeError,Wa as UnknownRpcError,wo as UnknownSignatureError,Uo as UnknownTypeError,_a as UnsupportedChainIdError,Ka as UnsupportedNonOptionalCapabilityError,Lo as UnsupportedPackedAbiType,Za as UnsupportedProviderMethodError,_ as UrlRequiredError,Ja as UserRejectedRequestError,x as WaitForCallsStatusTimeoutError,Mo as WaitForTransactionReceiptTimeoutError,Ho as assertCurrentChain,ko as assertRequest,xs as assertTransactionEIP1559,Cs as assertTransactionEIP2930,Bs as assertTransactionLegacy,zo as blobsToCommitments,qo as blobsToProofs,Qa as boolToBytes,Xa as boolToHex,Vo as bytesToBigInt,Oo as bytesToBool,Ya as bytesToHex,Go as bytesToNumber,jo as bytesToString,bs as ccipFetch,gs as ccipRequest,Wo as checksumAddress,_o as commitmentToVersionedHash,Ko as commitmentsToVersionedHashes,Zo as concat,Jo as concatBytes,Qo as concatHex,V as createClient,C as createNonceManager,s as createPublicClient,K as createTransport,O as custom,Xo as decodeAbiParameters,Yo as decodeErrorResult,$o as decodeEventLog,us as decodeFunctionData,ae as decodeFunctionResult,re as defineBlock,c as defineChain,oe as defineTransaction,ee as defineTransactionReceipt,se as defineTransactionRequest,te as deploylessCallViaBytecodeBytecode,ne as deploylessCallViaFactoryBytecode,ie as encodeAbiParameters,ce as encodeDeployData,ps as encodeErrorResult,B as encodeEventTopics,de as encodeFunctionData,ls as encodeFunctionResult,N as encodePacked,$a as erc20Abi,ar as erc6492SignatureValidatorAbi,Ee as erc6492SignatureValidatorByteCode,D as ethAddress,rr as etherUnits,vs as extendSchema,Z as fallback,ue as formatBlock,pe as formatEther,or as formatGwei,le as formatLog,me as formatTransaction,be as formatTransactionReceipt,ge as formatTransactionRequest,er as formatUnits,sr as fromHex,Te as getAbiItem,fe as getAddress,he as getChainContractAddress,ye as getContractError,ve as getEventSelector,Ae as getEventSignature,Ie as getFunctionSelector,Se as getFunctionSignature,Fe as getTransactionType,os as getTypesForEIP712Domain,tr as gweiUnits,es as hashDomain,ss as hashMessage,ts as hashStruct,ns as hashTypedData,nr as hexToBigInt,ir as hexToBool,cr as hexToBytes,dr as hexToNumber,P as hexToSignature,Er as hexToString,n as http,Re as isAddress,xe as isAddressEqual,ur as isHex,Ce as keccak256,w as labelhash,Be as maxUint16,Ne as maxUint256,pr as multicall3Abi,U as namehash,lr as numberToBytes,mr as numberToHex,Ts as offchainLookup,fs as offchainLookupAbiItem,hs as offchainLookupSignature,br as pad,gr as padBytes,Tr as padHex,De as parseAbi,As as parseAbiItem,Is as parseAbiParameters,Pe as parseEventLogs,L as parseSignature,G as parseUnits,we as prepareEncodeFunctionData,is as presignMessagePrefix,M as publicActions,Ue as recoverAddress,Le as recoverPublicKey,Me as rpcTransactionType,Ns as serializeAccessList,H as serializeErc6492Signature,Ss as serializeSignature,Ds as serializeTransaction,He as sha256,J as shouldThrow,Fs as signatureToHex,fr as size,ke as slice,ze as sliceBytes,qe as sliceHex,hr as stringToBytes,yr as stringToHex,vr as stringify,Ve as toBlobSidecars,Oe as toBlobs,Ar as toBytes,Ge as toEventHash,je as toEventSelector,We as toEventSignature,_e as toFunctionHash,Ke as toFunctionSelector,Ze as toFunctionSignature,Ir as toHex,cs as toPrefixedMessage,Je as toRlp,Qe as transactionType,Sr as trim,Fr as universalSignatureValidatorAbi,Xe as universalSignatureValidatorByteCode,ds as validateTypedData,j as withCache,Q as withRetry,X as withTimeout,k as zeroAddress};
2
- //# sourceMappingURL=index-DwQFPClc.js.map
1
+ import{c as s}from"./parseSignature-BuJ1wZqH.js";import{B as A,E as I,a as S,b as F,F as R,W as x,d as C,e as B,f as N,g as D,p as P,l as w,n as U,p as L,h as M,s as H,z as k}from"./parseSignature-BuJ1wZqH.js";import{I as q,c as V,a as O,p as G,w as j}from"./custom-CZJsO_mx.js";import{h as n}from"./W3MFrameProviderSingleton-CVJxzwXU.js";import{U as _,c as K,f as Z,s as J,w as Q,a as X}from"./W3MFrameProviderSingleton-CVJxzwXU.js";import{A as $,a as aa,B as ra,b as oa,C as ea,D as sa,E as ta,F as na,c as ia,H as ca,I as da,d as Ea,e as ua,f as pa,g as la,h as ma,i as ba,j as ga,k as Ta,l as fa,J as ha,L as ya,M as va,m as Aa,N as Ia,n as Sa,o as Fa,P as Ra,p as xa,q as Ca,R as Ba,r as Na,s as Da,t as Pa,u as wa,S as Ua,v as La,w as Ma,x as Ha,T as ka,y as za,z as qa,G as Va,U as Oa,K as Ga,O as ja,Q as Wa,V as _a,W as Ka,X as Za,Y as Ja,Z as Qa,_ as Xa,$ as Ya,a0 as $a,a1 as ar,a2 as rr,a3 as or,a4 as er,a5 as sr,a6 as tr,a7 as nr,a8 as ir,a9 as cr,aa as dr,ab as Er,ac as ur,ad as pr,ae as lr,af as mr,ag as br,ah as gr,ai as Tr,aj as fr,ak as hr,al as yr,am as vr,an as Ar,ao as Ir,ap as Sr,a1 as Fr}from"./NetworkUtil-D1pm9LAf.js";import{A as xr,a as Cr,b as Br,c as Nr,d as Dr,e as Pr,f as wr,g as Ur,h as Lr,i as Mr,j as Hr,k as kr,l as zr,m as qr,n as Vr,o as Or,p as Gr,B as jr,q as Wr,r as _r,C as Kr,s as Zr,t as Jr,u as Qr,v as Xr,w as Yr,x as $r,y as ao,z as ro,D as oo,E as eo,F as so,G as to,H as no,I as io,J as co,K as Eo,L as uo,M as po,N as lo,O as mo,P as bo,Q as go,R as To,S as fo,T as ho,U as yo,V as vo,W as Ao,X as Io,Y as So,Z as Fo,_ as Ro,$ as xo,a0 as Co,a1 as Bo,a2 as No,a3 as Do,a4 as Po,a5 as wo,a6 as Uo,a7 as Lo,a8 as Mo,a9 as Ho,aa as ko,ab as zo,ac as qo,ad as Vo,ae as Oo,af as Go,ag as jo,ah as Wo,ai as _o,aj as Ko,ak as Zo,al as Jo,am as Qo,an as Xo,ao as Yo,ap as $o,aq as ae,ar as re,as as oe,at as ee,au as se,av as te,aw as ne,ax as ie,ay as ce,az as de,aA as Ee,aB as ue,aC as pe,aD as le,aE as me,aF as be,aG as ge,aH as Te,aI as fe,aJ as he,aK as ye,aL as ve,aM as Ae,aN as Ie,aM as Se,aO as Fe,aP as Re,aQ as xe,aR as Ce,aS as Be,aT as Ne,aU as De,aV as Pe,aW as we,aX as Ue,aY as Le,aZ as Me,a_ as He,a$ as ke,b0 as ze,b1 as qe,b2 as Ve,b3 as Oe,b4 as Ge,aL as je,aM as We,b4 as _e,aN as Ke,aM as Ze,b5 as Je,b6 as Qe,aA as Xe}from"./sendRawTransaction-DT2Th3au.js";import{I as $e,a as as,b as rs,g as os,h as es,c as ss,d as ts,e as ns,p as is,t as cs,v as ds}from"./hashTypedData-Dzq_vr-Y.js";import{d as us,e as ps,a as ls}from"./localBatchGatewayRequest-ClHJb64u.js";import{ccipRequest as bs,ccipRequest as gs,offchainLookup as Ts,offchainLookupAbiItem as fs,offchainLookupSignature as hs}from"./ccip-DOltnJAd.js";import{d as c}from"./verifyHash-621Z04dc.js";import{e as vs,p as As,a as Is,s as Ss,s as Fs}from"./verifyHash-621Z04dc.js";import{a as xs,b as Cs,c as Bs,s as Ns,d as Ds}from"./serializeTransaction-AM7lBsFk.js";import"./secp256k1-CgBKAU1K.js";import"./dcl-schemas-BqHUwNqd.js";import"./react-DUeL1qp6.js";import"./index-CtvKNtpi.js";import"./sentry-CXljof2R.js";import"./index-DCj1afij.js";import"./events-xR4CLJ6O.js";import"./index-BU5FCydW.js";import"./ethers-FMLh2To0.js";import"./intl-AKLEHPeO.js";import"./browser-ponyfill-B_nEXG4k.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="350eb5d4-f9d4-484a-ae91-67f310bfbf27",a._sentryDebugIdIdentifier="sentry-dbid-350eb5d4-f9d4-484a-ae91-67f310bfbf27")}catch{}})();export{xr as AbiConstructorNotFoundError,Cr as AbiConstructorParamsNotFoundError,Br as AbiDecodingDataSizeTooSmallError,Nr as AbiDecodingZeroDataError,Dr as AbiEncodingArrayLengthMismatchError,Pr as AbiEncodingBytesSizeMismatchError,wr as AbiEncodingLengthMismatchError,Ur as AbiErrorInputsNotFoundError,Lr as AbiErrorNotFoundError,Mr as AbiErrorSignatureNotFoundError,Hr as AbiEventNotFoundError,kr as AbiEventSignatureEmptyTopicsError,zr as AbiEventSignatureNotFoundError,qr as AbiFunctionNotFoundError,Vr as AbiFunctionOutputsNotFoundError,Or as AbiFunctionSignatureNotFoundError,Gr as AccountStateConflictError,$ as AtomicReadyWalletRejectedUpgradeError,aa as AtomicityNotSupportedError,ra as BaseError,jr as BaseFeeScalarError,Wr as BlockNotFoundError,A as BundleFailedError,oa as BundleTooLargeError,_r as BytesSizeMismatchError,Kr as CallExecutionError,ea as ChainDisconnectedError,Zr as ChainDoesNotSupportContract,Jr as ChainMismatchError,Qr as ChainNotFoundError,Xr as CircularReferenceError,Yr as ClientChainNotConfiguredError,$r as ContractFunctionExecutionError,ao as ContractFunctionRevertedError,ro as ContractFunctionZeroDataError,oo as CounterfactualDeploymentFailedError,eo as DecodeLogDataMismatch,so as DecodeLogTopicsMismatch,sa as DuplicateIdError,to as Eip1559FeesNotSupportedError,I as EnsAvatarInvalidNftUriError,S as EnsAvatarUnsupportedNamespaceError,F as EnsAvatarUriResolutionError,no as EstimateGasExecutionError,ta as ExecutionRevertedError,na as FeeCapTooHighError,ia as FeeCapTooLowError,R as FilterTypeNotSupportedError,ca as HttpRequestError,da as InsufficientFundsError,Ea as IntegerOutOfRangeError,ua as InternalRpcError,pa as IntrinsicGasTooHighError,la as IntrinsicGasTooLowError,io as InvalidAbiDecodingTypeError,co as InvalidAbiEncodingTypeError,Eo as InvalidAbiItemError,uo as InvalidAbiParametersError,po as InvalidAbiTypeParameterError,lo as InvalidAddressError,mo as InvalidArrayError,ma as InvalidBytesBooleanError,bo as InvalidChainIdError,q as InvalidDecimalNumberError,go as InvalidDefinitionTypeError,$e as InvalidDomainError,To as InvalidFunctionModifierError,ba as InvalidHexBooleanError,ga as InvalidInputRpcError,fo as InvalidLegacyVError,ho as InvalidModifierError,yo as InvalidParameterError,Ta as InvalidParamsRpcError,vo as InvalidParenthesisError,as as InvalidPrimaryTypeError,fa as InvalidRequestRpcError,Ao as InvalidSerializableTransactionError,Io as InvalidSignatureError,So as InvalidStorageKeySizeError,Fo as InvalidStructSignatureError,rs as InvalidStructTypeError,ha as JsonRpcVersionUnsupportedError,ya as LimitExceededRpcError,Ro as MaxFeePerGasTooLowError,va as MethodNotFoundRpcError,Aa as MethodNotSupportedRpcError,Ia as NonceMaxValueError,Sa as NonceTooHighError,Fa as NonceTooLowError,Ra as ParseRpcError,xa as ProviderDisconnectedError,Ca as ProviderRpcError,xo as RawContractError,Ba as ResourceNotFoundRpcError,Na as ResourceUnavailableRpcError,Da as ResponseBodyTooLargeError,Pa as RpcError,wa as RpcRequestError,Ua as SizeExceedsPaddingSizeError,La as SizeOverflowError,Ma as SliceOffsetOutOfBoundsError,Co as SolidityProtectedKeywordError,Bo as StateAssignmentConflictError,Ha as SwitchChainError,ka as TimeoutError,za as TipAboveFeeCapError,No as TransactionExecutionError,Do as TransactionNotFoundError,Po as TransactionReceiptNotFoundError,qa as TransactionRejectedRpcError,Va as TransactionTypeNotSupportedError,Oa as UnauthorizedProviderError,Ga as UnknownBundleIdError,ja as UnknownNodeError,Wa as UnknownRpcError,wo as UnknownSignatureError,Uo as UnknownTypeError,_a as UnsupportedChainIdError,Ka as UnsupportedNonOptionalCapabilityError,Lo as UnsupportedPackedAbiType,Za as UnsupportedProviderMethodError,_ as UrlRequiredError,Ja as UserRejectedRequestError,x as WaitForCallsStatusTimeoutError,Mo as WaitForTransactionReceiptTimeoutError,Ho as assertCurrentChain,ko as assertRequest,xs as assertTransactionEIP1559,Cs as assertTransactionEIP2930,Bs as assertTransactionLegacy,zo as blobsToCommitments,qo as blobsToProofs,Qa as boolToBytes,Xa as boolToHex,Vo as bytesToBigInt,Oo as bytesToBool,Ya as bytesToHex,Go as bytesToNumber,jo as bytesToString,bs as ccipFetch,gs as ccipRequest,Wo as checksumAddress,_o as commitmentToVersionedHash,Ko as commitmentsToVersionedHashes,Zo as concat,Jo as concatBytes,Qo as concatHex,V as createClient,C as createNonceManager,s as createPublicClient,K as createTransport,O as custom,Xo as decodeAbiParameters,Yo as decodeErrorResult,$o as decodeEventLog,us as decodeFunctionData,ae as decodeFunctionResult,re as defineBlock,c as defineChain,oe as defineTransaction,ee as defineTransactionReceipt,se as defineTransactionRequest,te as deploylessCallViaBytecodeBytecode,ne as deploylessCallViaFactoryBytecode,ie as encodeAbiParameters,ce as encodeDeployData,ps as encodeErrorResult,B as encodeEventTopics,de as encodeFunctionData,ls as encodeFunctionResult,N as encodePacked,$a as erc20Abi,ar as erc6492SignatureValidatorAbi,Ee as erc6492SignatureValidatorByteCode,D as ethAddress,rr as etherUnits,vs as extendSchema,Z as fallback,ue as formatBlock,pe as formatEther,or as formatGwei,le as formatLog,me as formatTransaction,be as formatTransactionReceipt,ge as formatTransactionRequest,er as formatUnits,sr as fromHex,Te as getAbiItem,fe as getAddress,he as getChainContractAddress,ye as getContractError,ve as getEventSelector,Ae as getEventSignature,Ie as getFunctionSelector,Se as getFunctionSignature,Fe as getTransactionType,os as getTypesForEIP712Domain,tr as gweiUnits,es as hashDomain,ss as hashMessage,ts as hashStruct,ns as hashTypedData,nr as hexToBigInt,ir as hexToBool,cr as hexToBytes,dr as hexToNumber,P as hexToSignature,Er as hexToString,n as http,Re as isAddress,xe as isAddressEqual,ur as isHex,Ce as keccak256,w as labelhash,Be as maxUint16,Ne as maxUint256,pr as multicall3Abi,U as namehash,lr as numberToBytes,mr as numberToHex,Ts as offchainLookup,fs as offchainLookupAbiItem,hs as offchainLookupSignature,br as pad,gr as padBytes,Tr as padHex,De as parseAbi,As as parseAbiItem,Is as parseAbiParameters,Pe as parseEventLogs,L as parseSignature,G as parseUnits,we as prepareEncodeFunctionData,is as presignMessagePrefix,M as publicActions,Ue as recoverAddress,Le as recoverPublicKey,Me as rpcTransactionType,Ns as serializeAccessList,H as serializeErc6492Signature,Ss as serializeSignature,Ds as serializeTransaction,He as sha256,J as shouldThrow,Fs as signatureToHex,fr as size,ke as slice,ze as sliceBytes,qe as sliceHex,hr as stringToBytes,yr as stringToHex,vr as stringify,Ve as toBlobSidecars,Oe as toBlobs,Ar as toBytes,Ge as toEventHash,je as toEventSelector,We as toEventSignature,_e as toFunctionHash,Ke as toFunctionSelector,Ze as toFunctionSignature,Ir as toHex,cs as toPrefixedMessage,Je as toRlp,Qe as transactionType,Sr as trim,Fr as universalSignatureValidatorAbi,Xe as universalSignatureValidatorByteCode,ds as validateTypedData,j as withCache,Q as withRetry,X as withTimeout,k as zeroAddress};
2
+ //# sourceMappingURL=index-B2XvL1Ec.js.map
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/add-C46RTTNX.js","_assets/lit-element-wjYUA6aF.js","_assets/all-wallets-byTNDEq1.js","_assets/arrow-bottom-circle-Bv2eZVEF.js","_assets/app-store-CaKIhI-8.js","_assets/apple-DAMB_3Lk.js","_assets/arrow-bottom-Cx66u8_t.js","_assets/arrow-left-D0I0JXz4.js","_assets/arrow-right-BHc70exa.js","_assets/arrow-top-uM_hNW8Z.js","_assets/bank-CQUOEuRq.js","_assets/browser-Bh67F6hL.js","_assets/card-DcQ1wkCr.js","_assets/checkmark-GDL9YfL4.js","_assets/checkmark-bold-B-Sg0XJy.js","_assets/chevron-bottom-CLuKI9LQ.js","_assets/chevron-left-B_RU4s1F.js","_assets/chevron-right-C6ckznAo.js","_assets/chevron-top-CJOmtrv2.js","_assets/chrome-store-s39Q_LJM.js","_assets/clock-DmJj-grN.js","_assets/close-D4d1U5NV.js","_assets/compass-O2jaVbub.js","_assets/coinPlaceholder-VDdmV3rm.js","_assets/copy-D2eE3KCY.js","_assets/cursor-DSrN7SuI.js","_assets/cursor-transparent-DxuBEx9O.js","_assets/desktop-DwZtv9fm.js","_assets/disconnect-BbwiqFJ2.js","_assets/discord-qWAUKbRO.js","_assets/etherscan-TUQ32gbU.js","_assets/extension-DoOVmXmT.js","_assets/external-link-BEPN-Y2j.js","_assets/facebook-BmPLPVaB.js","_assets/farcaster-BLIAglQl.js","_assets/filters-DWaFeZ95.js","_assets/github-BiA5cQMJ.js","_assets/google-CsF9xgle.js","_assets/help-circle-Bwgxn3Vn.js","_assets/image-CbhOQpP5.js","_assets/id-O5raZ1NS.js","_assets/info-circle-DtEY-DDD.js","_assets/lightbulb-ByedgZqO.js","_assets/mail-B2wBPliw.js","_assets/mobile-COGIkuHo.js","_assets/more-zcriamqw.js","_assets/network-placeholder-Cm-6akxX.js","_assets/nftPlaceholder-vZdYCYRL.js","_assets/off-CLF8R11w.js","_assets/play-store-CAbJYmXD.js","_assets/plus-DWQF9t2p.js","_assets/qr-code-Br4VphwV.js","_assets/recycle-horizontal-DdAImjTL.js","_assets/refresh-S-H2nzPq.js","_assets/search-f6j421fJ.js","_assets/send-BAUrBF6z.js","_assets/swapHorizontal-BXjIGAcZ.js","_assets/swapHorizontalMedium-DLFo4hRx.js","_assets/swapHorizontalBold-BzueHopN.js","_assets/swapHorizontalRoundedBold-BddBy7OL.js","_assets/swapVertical-DYkySTmy.js","_assets/telegram-D8ymSABf.js","_assets/three-dots-CiS9iH0H.js","_assets/twitch-BJQCmiGz.js","_assets/x-CwtQDczS.js","_assets/twitterIcon-B78o99Zv.js","_assets/verify-CrYE2kna.js","_assets/verify-filled-CwwnY5h6.js","_assets/wallet-EosqBoq7.js","_assets/walletconnect-CauX9cVK.js","_assets/wallet-placeholder-DL8kIY2O.js","_assets/warning-circle-BrcBx24p.js","_assets/info-B91xCNqh.js","_assets/exclamation-triangle-ETkxexlo.js","_assets/reown-logo-D5L2QY4i.js"])))=>i.map(i=>d[i]);
2
- import{a as S,i as b,b as f,E as z}from"./lit-element-wjYUA6aF.js";import{n as l,e as W,a as H}from"./class-map-BxMzgOIb.js";import{r as E,c as B,e as F}from"./core-BDZisDBX.js";import{_ as i}from"./index-BZe9O30I.js";import{f as G,n as M}from"./async-directive-CeCQAQEH.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]="9d63893e-4f62-4b1b-8260-74dbaa0d13b5",t._sentryDebugIdIdentifier="sentry-dbid-9d63893e-4f62-4b1b-8260-74dbaa0d13b5")}catch{}})();const h={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:r,truncate:a}){return t.length<=e+r?t:a==="end"?`${t.substring(0,e)}...`:a==="start"?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(t){const r=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),a=this.hexToRgb(r),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(n==null?void 0:n.replace("px","")),c=`${s}% ${s}% at 65% 40%`,u=[];for(let p=0;p<5;p+=1){const w=this.tintColor(a,.15*p);u.push(`rgb(${w[0]}, ${w[1]}, ${w[2]})`)}return`
2
+ import{a as S,i as b,b as f,E as z}from"./lit-element-wjYUA6aF.js";import{n as l,e as W,a as H}from"./class-map-BxMzgOIb.js";import{r as E,c as B,e as F}from"./core-CNLia4ok.js";import{_ as i}from"./index-BU5FCydW.js";import{f as G,n as M}from"./async-directive-CeCQAQEH.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]="9d63893e-4f62-4b1b-8260-74dbaa0d13b5",t._sentryDebugIdIdentifier="sentry-dbid-9d63893e-4f62-4b1b-8260-74dbaa0d13b5")}catch{}})();const h={getSpacingStyles(t,e){if(Array.isArray(t))return t[e]?`var(--wui-spacing-${t[e]})`:void 0;if(typeof t=="string")return`var(--wui-spacing-${t})`},getFormattedDate(t){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)},getHostName(t){try{return new URL(t).hostname}catch{return""}},getTruncateString({string:t,charsStart:e,charsEnd:r,truncate:a}){return t.length<=e+r?t:a==="end"?`${t.substring(0,e)}...`:a==="start"?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`},generateAvatarColors(t){const r=t.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),a=this.hexToRgb(r),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),s=100-3*Number(n==null?void 0:n.replace("px","")),c=`${s}% ${s}% at 65% 40%`,u=[];for(let p=0;p<5;p+=1){const w=this.tintColor(a,.15*p);u.push(`rgb(${w[0]}, ${w[1]}, ${w[2]})`)}return`
3
3
  --local-color-1: ${u[0]};
4
4
  --local-color-2: ${u[1]};
5
5
  --local-color-3: ${u[2]};
@@ -365,4 +365,4 @@ import{a as S,i as b,b as f,E as z}from"./lit-element-wjYUA6aF.js";import{n as l
365
365
  `;var C=function(t,e,r,a){var n=arguments.length,o=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};let P=class extends b{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${this.color==="inherit"?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,f`<svg viewBox="25 25 50 50">
366
366
  <circle r="20" cy="50" cx="50"></circle>
367
367
  </svg>`}};P.styles=[E,at];C([l()],P.prototype,"color",void 0);C([l()],P.prototype,"size",void 0);P=C([x("wui-loading-spinner")],P);export{h as U,x as c};
368
- //# sourceMappingURL=index-BPBo8wh2.js.map
368
+ //# sourceMappingURL=index-B6JLypyJ.js.map
@@ -1,4 +1,4 @@
1
- import{r as n,j as s,l as U,g as q}from"./react-BUrQZkQz.js";import{h as C}from"./dcl-schemas-OgkR3Xnp.js";import{cB as Ee,cj as fe,ck as be,cl as d,cm as u,dW as D,n as me,k as he,de as F,dZ as ze}from"./index-BZe9O30I.js";import{B as Se,r as G,e as Re}from"./createSvgIcon-D-NeJHpD.js";import{a as xe,g as ye,c as re,b as Ce,n as $}from"./emotion-styled.browser.esm-DPYok2W8.js";import{s as N,a as Me}from"./styled-e10E42am.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]="db9840e0-4ec1-428a-ae83-417a90c2192d",e._sentryDebugIdIdentifier="sentry-dbid-db9840e0-4ec1-428a-ae83-417a90c2192d")}catch{}})();function _e(e){return xe("MuiButton",e)}const W=ye("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),$e=n.createContext({}),Ne=n.createContext(void 0),Ae=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],je=e=>{const{color:o,disableElevation:r,fullWidth:i,size:c,variant:l,classes:g}=e,v={root:["root",l,`${l}${u(o)}`,`size${u(c)}`,`${l}Size${u(c)}`,`color${u(o)}`,r&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${u(c)}`],endIcon:["icon","endIcon",`iconSize${u(c)}`]},y=Ce(v,_e,g);return d({},g,y)},Ie=e=>d({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Te=N(Se,{shouldForwardProp:e=>Me(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,o[r.variant],o[`${r.variant}${u(r.color)}`],o[`size${u(r.size)}`],o[`${r.variant}Size${u(r.size)}`],r.color==="inherit"&&o.colorInherit,r.disableElevation&&o.disableElevation,r.fullWidth&&o.fullWidth]}})(({theme:e,ownerState:o})=>{var r,i;const c=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return d({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":d({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[o.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}),"&:active":d({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${W.focusVisible}`]:d({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${W.disabled}`]:d({color:(e.vars||e).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${D.alpha(e.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(i=e.palette).getContrastText)==null?void 0:r.call(i,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:c,boxShadow:(e.vars||e).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${W.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${W.disabled}`]:{boxShadow:"none"}}),Be=N("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.startIcon,o[`iconSize${u(r.size)}`]]}})(({ownerState:e})=>d({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Ie(e))),Oe=N("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.endIcon,o[`iconSize${u(r.size)}`]]}})(({ownerState:e})=>d({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Ie(e))),Le=n.forwardRef(function(o,r){const i=n.useContext($e),c=n.useContext(Ne),l=Ee(i,o),g=fe({props:l,name:"MuiButton"}),{children:v,color:y="primary",component:f="button",className:b,disabled:t=!1,disableElevation:M=!1,disableFocusRipple:m=!1,endIcon:x,focusVisibleClassName:h,fullWidth:k=!1,size:p="medium",startIcon:z,type:I,variant:Y="text"}=g,_=be(g,Ae),S=d({},g,{color:y,component:f,disabled:t,disableElevation:M,disableFocusRipple:m,fullWidth:k,size:p,type:I,variant:Y}),P=je(S),O=z&&s.jsx(Be,{className:P.startIcon,ownerState:S,children:z}),L=x&&s.jsx(Oe,{className:P.endIcon,ownerState:S,children:x}),w=c||"";return s.jsxs(Te,d({ownerState:S,className:re(i.className,P.root,b,w),component:f,disabled:t,focusRipple:!m,focusVisibleClassName:re(P.focusVisible,h),ref:r,type:I},_,{classes:P,children:[O,v,L]}))});function we(e){return xe("MuiCircularProgress",e)}ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ve=["className","color","disableShrink","size","style","thickness","value","variant"];let H=e=>e,se,le,ce,de;const E=44,De=he(se||(se=H`
1
+ import{r as n,j as s,l as U,g as q}from"./react-DUeL1qp6.js";import{h as C}from"./dcl-schemas-BqHUwNqd.js";import{cB as Ee,cj as fe,ck as be,cl as d,cm as u,dW as D,n as me,k as he,de as F,dZ as ze}from"./index-BU5FCydW.js";import{B as Se,r as G,e as Re}from"./createSvgIcon-DDd5PhO1.js";import{a as xe,g as ye,c as re,b as Ce,n as $}from"./emotion-styled.browser.esm-ChHUrxdv.js";import{s as N,a as Me}from"./styled-CKnuvISQ.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]="db9840e0-4ec1-428a-ae83-417a90c2192d",e._sentryDebugIdIdentifier="sentry-dbid-db9840e0-4ec1-428a-ae83-417a90c2192d")}catch{}})();function _e(e){return xe("MuiButton",e)}const W=ye("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),$e=n.createContext({}),Ne=n.createContext(void 0),Ae=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],je=e=>{const{color:o,disableElevation:r,fullWidth:i,size:c,variant:l,classes:g}=e,v={root:["root",l,`${l}${u(o)}`,`size${u(c)}`,`${l}Size${u(c)}`,`color${u(o)}`,r&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${u(c)}`],endIcon:["icon","endIcon",`iconSize${u(c)}`]},y=Ce(v,_e,g);return d({},g,y)},Ie=e=>d({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Te=N(Se,{shouldForwardProp:e=>Me(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,o[r.variant],o[`${r.variant}${u(r.color)}`],o[`size${u(r.size)}`],o[`${r.variant}Size${u(r.size)}`],r.color==="inherit"&&o.colorInherit,r.disableElevation&&o.disableElevation,r.fullWidth&&o.fullWidth]}})(({theme:e,ownerState:o})=>{var r,i;const c=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return d({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":d({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="text"&&o.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="outlined"&&o.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[o.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:D.alpha(e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},o.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},o.variant==="contained"&&o.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[o.color].main}}),"&:active":d({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${W.focusVisible}`]:d({},o.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${W.disabled}`]:d({color:(e.vars||e).palette.action.disabled},o.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},o.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},o.variant==="text"&&{padding:"6px 8px"},o.variant==="text"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main},o.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},o.variant==="outlined"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[o.color].mainChannel} / 0.5)`:`1px solid ${D.alpha(e.palette[o.color].main,.5)}`},o.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(i=e.palette).getContrastText)==null?void 0:r.call(i,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:c,boxShadow:(e.vars||e).shadows[2]},o.variant==="contained"&&o.color!=="inherit"&&{color:(e.vars||e).palette[o.color].contrastText,backgroundColor:(e.vars||e).palette[o.color].main},o.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},o.size==="small"&&o.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},o.size==="small"&&o.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},o.size==="large"&&o.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${W.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${W.disabled}`]:{boxShadow:"none"}}),Be=N("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.startIcon,o[`iconSize${u(r.size)}`]]}})(({ownerState:e})=>d({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Ie(e))),Oe=N("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.endIcon,o[`iconSize${u(r.size)}`]]}})(({ownerState:e})=>d({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Ie(e))),Le=n.forwardRef(function(o,r){const i=n.useContext($e),c=n.useContext(Ne),l=Ee(i,o),g=fe({props:l,name:"MuiButton"}),{children:v,color:y="primary",component:f="button",className:b,disabled:t=!1,disableElevation:M=!1,disableFocusRipple:m=!1,endIcon:x,focusVisibleClassName:h,fullWidth:k=!1,size:p="medium",startIcon:z,type:I,variant:Y="text"}=g,_=be(g,Ae),S=d({},g,{color:y,component:f,disabled:t,disableElevation:M,disableFocusRipple:m,fullWidth:k,size:p,type:I,variant:Y}),P=je(S),O=z&&s.jsx(Be,{className:P.startIcon,ownerState:S,children:z}),L=x&&s.jsx(Oe,{className:P.endIcon,ownerState:S,children:x}),w=c||"";return s.jsxs(Te,d({ownerState:S,className:re(i.className,P.root,b,w),component:f,disabled:t,focusRipple:!m,focusVisibleClassName:re(P.focusVisible,h),ref:r,type:I},_,{classes:P,children:[O,v,L]}))});function we(e){return xe("MuiCircularProgress",e)}ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ve=["className","color","disableShrink","size","style","thickness","value","variant"];let H=e=>e,se,le,ce,de;const E=44,De=he(se||(se=H`
2
2
  0% {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -26,4 +26,4 @@ import{r as n,j as s,l as U,g as q}from"./react-BUrQZkQz.js";import{h as C}from"
26
26
  `),De)),Fe=N("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Ge=N("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.circle,o[`circle${u(r.variant)}`],r.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>d({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&me(de||(de=H`
27
27
  animation: ${0} 1.4s ease-in-out infinite;
28
28
  `),We)),He=n.forwardRef(function(o,r){const i=fe({props:o,name:"MuiCircularProgress"}),{className:c,color:l="primary",disableShrink:g=!1,size:v=40,style:y,thickness:f=3.6,value:b=0,variant:t="indeterminate"}=i,M=be(i,Ve),m=d({},i,{color:l,disableShrink:g,size:v,thickness:f,value:b,variant:t}),x=Ue(m),h={},k={},p={};if(t==="determinate"){const z=2*Math.PI*((E-f)/2);h.strokeDasharray=z.toFixed(3),p["aria-valuenow"]=Math.round(b),h.strokeDashoffset=`${((100-b)/100*z).toFixed(3)}px`,k.transform="rotate(-90deg)"}return s.jsx(qe,d({className:re(x.root,c),style:d({width:v,height:v},k,y),ownerState:m,ref:r,role:"progressbar"},p,M,{children:s.jsx(Fe,{className:x.svg,ownerState:m,viewBox:`${E/2} ${E/2} ${E} ${E}`,children:s.jsx(Ge,{className:x.circle,style:h,ownerState:m,cx:E,cy:E,r:(E-f)/2,fill:"none",strokeWidth:f})})}))});var A={},ue;function Ye(){if(ue)return A;ue=1;var e=F();Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var o=e(G()),r=U();return A.default=(0,o.default)((0,r.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),A}var Ze=Ye();const Ke=q(Ze);var j={},pe;function Je(){if(pe)return j;pe=1;var e=F();Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var o=e(G()),r=U();return j.default=(0,o.default)((0,r.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),j}var Qe=Je();const Xe=q(Qe);var T={},ve;function eo(){if(ve)return T;ve=1;var e=F();Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var o=e(G()),r=U();return T.default=(0,o.default)((0,r.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),T}var oo=eo();const ro=q(oo);var B={},ge;function ao(){if(ge)return B;ge=1;var e=F();Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var o=e(G()),r=U();return B.default=(0,o.default)((0,r.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),B}var to=ao();const no=q(to),io={small:16,medium:20,large:24},ke=({children:e,startIcon:o,endIcon:r,loading:i=!1,loadingIcon:c,loadingPosition:l="center",disabled:g=!1,size:v="medium",...y})=>{const f=s.jsx(He,{color:"inherit",size:io[v]}),b=c||f,t=i&&l==="center"?b:e;return s.jsx(Le,{disabled:g||i,startIcon:i&&l==="start"?b:o,endIcon:i&&l==="end"?b:r,size:v,...y,children:t})},so=$(Re)(({theme:e})=>({display:"flex",position:"absolute",width:"100%",bottom:0,margin:`${e.spacing(2)} 0`,padding:`0 ${e.spacing(3)}`,gap:e.spacing(2)})),lo=$(ke)(({theme:e})=>({width:56,height:44,padding:0,minWidth:"unset",background:"rgba(0, 0, 0, 0.64) !important","& svg":{marginLeft:e.spacing(.5)}})),co=$(ke)(({theme:e,muted:o})=>({marginLeft:e.spacing(2.5),minWidth:25,background:"none",padding:0,opacity:o?.5:1})),uo=$("input")(({theme:e})=>({flex:1,width:"100%",background:"none",WebkitAppearance:"none","&:focus":{outline:"none"},"&::-webkit-slider-thumb":{WebkitAppearance:"none",width:24,height:24,borderRadius:10,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",paddingBottom:e.spacing(.625),marginTop:e.spacing(-.5)},"&::-moz-range-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",border:"none"},"&::-ms-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer"},"&::-webkit-slider-runnable-track":{width:300,height:15,background:"rgba(115, 110, 125, 0.32)",border:"none",borderRadius:10},"&::-moz-range-track":{width:"100%",height:15,borderRadius:10,cursor:"pointer",background:"rgba(115, 110, 125, 0.32)"}})),po=$("div")({display:"flex",alignItems:"center"}),vo=$("input")({width:56,height:44,borderRadius:5,background:"transparent",border:"1px solid rgba(115, 110, 125, 0.4)",color:"white",textAlign:"center","&:focus-visible":{outline:"1px solid"}}),go=({wearablePreviewId:e,className:o,hideFrameInput:r,hideProgressInput:i,hidePlayButton:c,hideSoundButton:l,wearablePreviewController:g,renderPlayButton:v,renderSoundButton:y,renderProgressBar:f,renderFrameInput:b})=>{const{controllerRef:t,isReady:M}=ze(e,g),[m,x]=n.useState(0),[h,k]=n.useState(!1),[p,z]=n.useState(void 0),[I,Y]=n.useState(!0),[_,S]=n.useState(void 0),[P,O]=n.useState(!1),[L,w]=n.useState(!1),Z=n.useCallback(()=>{x(0)},[]),K=n.useCallback(()=>{k(!1),x(a=>a>=Math.floor((p??0)*100)?0:a)},[p]),J=n.useCallback(()=>{k(!1)},[]),Q=n.useCallback(async()=>{if(!L){let a=p;!p&&t.current&&(a=await t.current.emote.getLength()),k(!0),z(a)}},[p,L,t]),X=n.useCallback(({length:a})=>{x(Math.ceil((a??0)*100))},[]);n.useEffect(()=>{const a=t.current;if(a)return a.emote.events.on(C.PreviewEmoteEventType.ANIMATION_PLAY,Q),a.emote.events.on(C.PreviewEmoteEventType.ANIMATION_PLAYING,X),a.emote.events.on(C.PreviewEmoteEventType.ANIMATION_END,K),a.emote.events.on(C.PreviewEmoteEventType.ANIMATION_PAUSE,J),a.emote.events.on(C.PreviewEmoteEventType.ANIMATION_LOOP,Z),()=>{a.emote.events.off(C.PreviewEmoteEventType.ANIMATION_PLAY,Q),a.emote.events.off(C.PreviewEmoteEventType.ANIMATION_PLAYING,X),a.emote.events.off(C.PreviewEmoteEventType.ANIMATION_END,K),a.emote.events.off(C.PreviewEmoteEventType.ANIMATION_PAUSE,J),a.emote.events.off(C.PreviewEmoteEventType.ANIMATION_LOOP,Z)}},[t,Q,X,K,J,Z]),n.useEffect(()=>{_===void 0&&M&&t.current&&t.current.emote.hasSound().then(a=>S(a)).catch(a=>{console.error("Error checking sound:",a),S(!1)})},[_,M,t]);const ee=n.useCallback(async()=>{if(t.current)try{await t.current.emote.play()}catch(a){console.error("Error playing emote:",a)}},[t]),oe=n.useCallback(async()=>{if(t.current)try{await t.current.emote.pause()}catch(a){console.error("Error pausing emote:",a)}},[t]),ae=n.useCallback(async()=>{h?await oe():await ee()},[h,ee,oe]),te=n.useCallback(()=>{var a,R;I?(a=t.current)==null||a.emote.disableSound():(R=t.current)==null||R.emote.enableSound(),Y(!I)},[I,t]),V=n.useCallback(async a=>{if(isNaN(a)||!t.current)return;let R=a;const ie=p??0;ie*100<a&&(R=ie*100),x(R),w(!0);try{h&&(await t.current.emote.pause(),O(!0)),await t.current.emote.goTo(R/100)}catch(Pe){console.error("Error changing frame:",Pe)}},[p,h,t]),ne=n.useCallback(async()=>{if(w(!1),P&&t.current){try{await t.current.emote.play()}catch(a){console.error("Error resuming play:",a)}O(!1)}},[P,t]);return s.jsxs(so,{className:o,children:[c?null:v?v({isPlaying:h,onPlay:ee,onPause:oe,onToggle:ae}):s.jsx(lo,{onClick:ae,children:h?s.jsx(Ke,{}):s.jsx(Xe,{})}),i?null:f?f({frame:m,length:p??0,onChange:V,onMouseUp:ne}):s.jsx(uo,{type:"range",value:m,max:Math.ceil((p??0)*100),min:0,step:1,onChange:a=>V(Number(a.target.value)),onMouseUp:ne}),r?null:s.jsx(po,{children:b?b({frame:Math.round(m/100),onChange:a=>V(a*100)}):s.jsx(vo,{type:"number",value:Math.round(m/100),onChange:a=>V(Number(a.target.value)*100)})}),l||!_?null:y?y({isSoundEnabled:I,hasSound:_,onToggle:te}):s.jsx(co,{muted:!I,onClick:te,children:I?s.jsx(no,{}):s.jsx(ro,{})})]})},Co=Object.freeze(Object.defineProperty({__proto__:null,EmoteControls:go},Symbol.toStringTag,{value:"Module"}));export{$e as B,go as E,Ne as a,Le as b,ke as c,Co as i};
29
- //# sourceMappingURL=index-FchR7gSb.js.map
29
+ //# sourceMappingURL=index-B6nOuJQV.js.map
@@ -1,2 +1,2 @@
1
- import"./react-BUrQZkQz.js";import{r as I}from"./index-Bu0NJDwa.js";import{az as w}from"./sendRawTransaction-BJhaPoFM.js";import{c as k,e as v}from"./hashTypedData-DAgXidRT.js";import"./NetworkUtil-BH3_oYP8.js";import"./sentry-DyLfTiSb.js";import"./index-BZe9O30I.js";import"./dcl-schemas-OgkR3Xnp.js";import"./ethers-DqHzeHuT.js";import"./intl-AKLEHPeO.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]="1f6bc92c-a923-4b30-8d60-6ee17edfa453",t._sentryDebugIdIdentifier="sentry-dbid-1f6bc92c-a923-4b30-8d60-6ee17edfa453")}catch{}})();const q=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:q()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=I();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!_(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},d={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,d.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return k(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return v({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),_(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}D([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new S(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
- //# sourceMappingURL=index-C8wSYeVO.js.map
1
+ import"./react-DUeL1qp6.js";import{r as I}from"./index-CLSqZUbP.js";import{az as w}from"./sendRawTransaction-DT2Th3au.js";import{c as k,e as v}from"./hashTypedData-Dzq_vr-Y.js";import"./NetworkUtil-D1pm9LAf.js";import"./sentry-CXljof2R.js";import"./index-BU5FCydW.js";import"./dcl-schemas-BqHUwNqd.js";import"./ethers-FMLh2To0.js";import"./intl-AKLEHPeO.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]="1f6bc92c-a923-4b30-8d60-6ee17edfa453",t._sentryDebugIdIdentifier="sentry-dbid-1f6bc92c-a923-4b30-8d60-6ee17edfa453")}catch{}})();const q=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:q()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=I();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!_(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},d={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,d.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return k(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return v({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),_(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}D([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new S(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
+ //# sourceMappingURL=index-BKmKxQIC.js.map
@@ -1,4 +1,4 @@
1
- import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-BxMzgOIb.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-B_ej9BPC.js";import{c as C,U as _e}from"./index-B8oQm36C.js";import"./index-DSz4o4Je.js";import"./index-DQivOzo2.js";import"./index-w0a4GNJO.js";import"./index-BXOSJuGz.js";import"./index-D-7yBxzc.js";import"./index-B2uF3DJM.js";import"./index-YEbRJWkl.js";import{$ as Ce,k as T,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as v,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-lQPmplQ2.js";import{au as I}from"./NetworkUtil-BH3_oYP8.js";import"./index-Cc9ETBk-.js";import{M as ge}from"./MathUtil-BvP0JcjY.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]="75dfd22d-06a2-4092-945e-2dd00aac036e",t._sentryDebugIdIdentifier="sentry-dbid-75dfd22d-06a2-4092-945e-2dd00aac036e")}catch{}})();const De=U`
1
+ import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-BxMzgOIb.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-MAY9er2c.js";import{c as C,U as _e}from"./index-Db0M_X2k.js";import"./index-NpmhmugW.js";import"./index-CZ9K15YN.js";import"./index-BZFDlbpe.js";import"./index-CYO3wfTs.js";import"./index-sh1QPtHZ.js";import"./index-BdN3DWUA.js";import"./index-c9Fqa9I4.js";import{$ as Ce,k as T,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as v,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-CVJxzwXU.js";import{au as I}from"./NetworkUtil-D1pm9LAf.js";import"./index-BjFb2_7h.js";import{M as ge}from"./MathUtil-BvP0JcjY.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]="75dfd22d-06a2-4092-945e-2dd00aac036e",t._sentryDebugIdIdentifier="sentry-dbid-75dfd22d-06a2-4092-945e-2dd00aac036e")}catch{}})();const De=U`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1062,4 +1062,4 @@ import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as
1062
1062
  ></wui-icon>`}
1063
1063
  </wui-button>
1064
1064
  `}getPaymentAssetFromTokenBalances(){return this.namespace?(this.tokenBalances[this.namespace]??[]).map(i=>{try{return tt(i)}catch{return null}}).filter(i=>!!i).filter(i=>{const{chainId:a}=y.parseCaipNetworkId(i.network),{chainId:o}=y.parseCaipNetworkId(this.paymentAsset.network);return N.isLowerCaseMatch(i.asset,this.paymentAsset.asset)?!0:this.selectedExchange?!N.isLowerCaseMatch(a.toString(),o.toString()):!0}):[]}onTokenBalancesChanged(e){this.tokenBalances=e;const[n]=this.getPaymentAssetFromTokenBalances();n&&u.setSelectedPaymentAsset(n)}async onConnectOtherWallet(){await P.connect(),await G.open({view:"PayQuote"})}onAccountStateChanged(e){const{address:n}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};if(this.caipAddress=e==null?void 0:e.caipAddress,this.profileName=(e==null?void 0:e.profileName)??null,n){const{address:s}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};s?N.isLowerCaseMatch(s,n)||(this.resetAssetsState(),this.resetQuoteState(),this.fetchTokens()):G.close()}}onSelectedPaymentAssetChanged(e){this.isFetchingQuote||u.setSelectedPaymentAsset(e)}async onTransfer(){var n,s,i;const e=ie(this.quote);if(e){if(!N.isLowerCaseMatch((n=this.selectedPaymentAsset)==null?void 0:n.asset,e.deposit.currency))throw new Error("Quote asset is not the same as the selected payment asset");const o=((s=this.selectedPaymentAsset)==null?void 0:s.amount)??"0",c=A.formatNumber(e.deposit.amount,{decimals:((i=this.selectedPaymentAsset)==null?void 0:i.metadata.decimals)??0}).toString();if(!A.bigNumber(o).gte(c)){R.showError("Insufficient funds");return}if(this.quote&&this.selectedPaymentAsset&&this.caipAddress&&this.namespace){const{address:L}=y.parseCaipAddress(this.caipAddress);await u.onTransfer({chainNamespace:this.namespace,fromAddress:L,toAddress:e.deposit.receiver,amount:c,paymentAsset:this.selectedPaymentAsset}),u.setRequestId(e.requestId),z.push("PayLoading")}}}async onSendTransactions(){var o,c,g;const e=((o=this.selectedPaymentAsset)==null?void 0:o.amount)??"0",n=A.formatNumber(((c=this.quote)==null?void 0:c.origin.amount)??0,{decimals:((g=this.selectedPaymentAsset)==null?void 0:g.metadata.decimals)??0}).toString();if(!A.bigNumber(e).gte(n)){R.showError("Insufficient funds");return}const i=te(this.quote),[a]=te(this.quote,this.completedTransactionsCount);a&&this.namespace&&(await u.onSendTransaction({namespace:this.namespace,transactionStep:a}),this.completedTransactionsCount+=1,this.completedTransactionsCount===i.length&&(u.setRequestId(a.requestId),z.push("PayLoading")))}onPayWithExchange(){if(this.exchangeUrlForQuote){const e=O.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!e)throw new Error("Could not create popup window");e.location.href=this.exchangeUrlForQuote;const n=ie(this.quote);n&&u.setRequestId(n.requestId),u.initiatePayment(),z.push("PayLoading")}}resetAssetsState(){u.setSelectedPaymentAsset(null)}resetQuoteState(){u.resetQuoteState()}};w.styles=Nt;b([h()],w.prototype,"profileName",void 0);b([h()],w.prototype,"paymentAsset",void 0);b([h()],w.prototype,"namespace",void 0);b([h()],w.prototype,"caipAddress",void 0);b([h()],w.prototype,"amount",void 0);b([h()],w.prototype,"recipient",void 0);b([h()],w.prototype,"activeConnectorIds",void 0);b([h()],w.prototype,"selectedPaymentAsset",void 0);b([h()],w.prototype,"selectedExchange",void 0);b([h()],w.prototype,"isFetchingQuote",void 0);b([h()],w.prototype,"quoteError",void 0);b([h()],w.prototype,"quote",void 0);b([h()],w.prototype,"isFetchingTokenBalances",void 0);b([h()],w.prototype,"tokenBalances",void 0);b([h()],w.prototype,"isPaymentInProgress",void 0);b([h()],w.prototype,"exchangeUrlForQuote",void 0);b([h()],w.prototype,"completedTransactionsCount",void 0);w=b([C("w3m-pay-quote-view")],w);export{p as A,u as P,E as W,d as a,w as b,k as c};
1065
- //# sourceMappingURL=index-DJNx4cK1.js.map
1065
+ //# sourceMappingURL=index-BLlk1TdE.js.map