@wormhole-foundation/wormhole-connect 3.0.1-beta.0-development → 3.0.1-beta.2-development

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 (323) hide show
  1. package/dist/assets/{add-Cy39EVaY.js → add-CA46SOZ1.js} +1 -1
  2. package/dist/assets/{all-wallets-BG4OMn19.js → all-wallets-B1qnLkOo.js} +1 -1
  3. package/dist/assets/{app-store-B2VJcnKc.js → app-store-NTpCK9MF.js} +1 -1
  4. package/dist/assets/{apple-6OWWifFn.js → apple-DRVt4JWr.js} +1 -1
  5. package/dist/assets/{aptos-gb8snog6.js → aptos-63ExGocu.js} +1 -1
  6. package/dist/assets/{aptos-BuLH7jck.js → aptos-DkSiRwPH.js} +3 -3
  7. package/dist/assets/{arrow-bottom-YGKzRes5.js → arrow-bottom-CPth9tFV.js} +1 -1
  8. package/dist/assets/{arrow-bottom-circle-BH-P4D_L.js → arrow-bottom-circle-BWo9DWoB.js} +1 -1
  9. package/dist/assets/{arrow-left-DF2t0i5J.js → arrow-left-P6RmBJWT.js} +1 -1
  10. package/dist/assets/{arrow-right-CP40LqnJ.js → arrow-right-BHHiE7kD.js} +1 -1
  11. package/dist/assets/{arrow-top-DnKSFz-5.js → arrow-top-D5GRFsZm.js} +1 -1
  12. package/dist/assets/{bank-BpG6sNAE.js → bank-C2WLfHR8.js} +1 -1
  13. package/dist/assets/{basic-CLnavz_q.js → basic-BCJkH5GS.js} +1 -1
  14. package/dist/assets/{blake2b-B2b685Yu.js → blake2b-Bb1VZYtg.js} +1 -1
  15. package/dist/assets/{browser-BhlgRcS6.js → browser-BPjT1bN5.js} +1 -1
  16. package/dist/assets/{card-BTep0Fm_.js → card-JaBku5Bf.js} +1 -1
  17. package/dist/assets/{ccip-By49zU3M.js → ccip-CTrUg8DF.js} +1 -1
  18. package/dist/assets/{chain-Du7paeNG.js → chain-DF9mIQM9.js} +1 -1
  19. package/dist/assets/{checkmark-UEyfqUU3.js → checkmark-BQL5JCw2.js} +1 -1
  20. package/dist/assets/{checkmark-bold-DMLl2gC5.js → checkmark-bold-DP1vE2RN.js} +1 -1
  21. package/dist/assets/{chevron-bottom-CPv_izmZ.js → chevron-bottom-BV0Au0hP.js} +1 -1
  22. package/dist/assets/{chevron-left-0a7IeWd5.js → chevron-left-C4v6Iui8.js} +1 -1
  23. package/dist/assets/{chevron-right-B-0wsh8g.js → chevron-right-CbVMuuvx.js} +1 -1
  24. package/dist/assets/{chevron-top-BHFncmmu.js → chevron-top-CuIo_USv.js} +1 -1
  25. package/dist/assets/{chrome-store-BIaI9-ba.js → chrome-store-fbydRQd1.js} +1 -1
  26. package/dist/assets/{chunk-KJH4KKG6-Po5MChR6.js → chunk-KJH4KKG6-B7DCZZVY.js} +1 -1
  27. package/dist/assets/{clock-BQdD9J7H.js → clock-D62L3EFP.js} +1 -1
  28. package/dist/assets/{close-Cjok36co.js → close-BLRqO6Zn.js} +1 -1
  29. package/dist/assets/{coinPlaceholder-CneTHrCz.js → coinPlaceholder-0tmFvYYj.js} +1 -1
  30. package/dist/assets/{compass-Dit7B215.js → compass-Ba8-RKca.js} +1 -1
  31. package/dist/assets/{contract-BhySpM-Z.js → contract-bGGxC9_m.js} +1 -1
  32. package/dist/assets/{copy-JvNImG5R.js → copy-CWqrh_sD.js} +1 -1
  33. package/dist/assets/{create-gkOVonha.js → create-CbRd6EbF.js} +1 -1
  34. package/dist/assets/{cursor-CSwolbdC.js → cursor-DFYzmUAe.js} +1 -1
  35. package/dist/assets/{cursor-transparent-DQ2bEHaM.js → cursor-transparent-IY3fA7aT.js} +1 -1
  36. package/dist/assets/{desktop-F3wMUZcL.js → desktop-DLudyYW3.js} +1 -1
  37. package/dist/assets/{disconnect-vvd6SXmG.js → disconnect-gShcPNrf.js} +1 -1
  38. package/dist/assets/{discord-mwjbbdll.js → discord-S8T3fJF7.js} +1 -1
  39. package/dist/assets/{etherscan-ZpIOVA81.js → etherscan-C-ODOYjC.js} +1 -1
  40. package/dist/assets/{evm-fcQsoqVd.js → evm-D65l_VUA.js} +4 -4
  41. package/dist/assets/{evm-CWAxZ2a7.js → evm-DwqzhXfk.js} +3 -3
  42. package/dist/assets/{exclamation-triangle-CrFNsvqc.js → exclamation-triangle-I4hrUAkj.js} +1 -1
  43. package/dist/assets/{extension-C_zCCj6H.js → extension-C2E94rju.js} +1 -1
  44. package/dist/assets/{external-link-B0LEq1D3.js → external-link-BE25aYRx.js} +1 -1
  45. package/dist/assets/{facebook-B_HaXZVY.js → facebook-VHvsuzqv.js} +1 -1
  46. package/dist/assets/{farcaster-C9d4q5--.js → farcaster-sG7oFC35.js} +1 -1
  47. package/dist/assets/{filters-Coi2MlO2.js → filters-D9VcvmFo.js} +1 -1
  48. package/dist/assets/{github-DiDkJ9-4.js → github-BLJyKdzw.js} +1 -1
  49. package/dist/assets/{google-BHKYD7dA.js → google-C4YbBNSv.js} +1 -1
  50. package/dist/assets/{help-circle-lf3f_u3Q.js → help-circle-CMmVaOnp.js} +1 -1
  51. package/dist/assets/{id-BoAkobNw.js → id-g_mC9xVi.js} +1 -1
  52. package/dist/assets/{image-C9_T15rA.js → image-nAeKstDS.js} +1 -1
  53. package/dist/assets/{index-BgLBca6k.js → index-BTkoFKAW.js} +1 -1
  54. package/dist/assets/{index-Bx8vjRmV.js → index-BUtdFAj3.js} +1 -1
  55. package/dist/assets/index-BZFyhaji.js +1 -0
  56. package/dist/assets/{index-BpI-Jtyb.js → index-BqLA4xTj.js} +3 -3
  57. package/dist/assets/{index-BE55BSK7.js → index-C0-WLpMA.js} +1 -1
  58. package/dist/assets/{index-zEIfo2_n.js → index-CCOXtJ1P.js} +1 -1
  59. package/dist/assets/{index--d0JCrsI.js → index-CKPf-3Vo.js} +1 -1
  60. package/dist/assets/{index-DSTd1tRp.js → index-COZ2cSR6.js} +1 -1
  61. package/dist/assets/{index-BedU_k3i.js → index-CVqQ68io.js} +1 -1
  62. package/dist/assets/{index-DZ96gAj4.js → index-CVqXQiSE.js} +1 -1
  63. package/dist/assets/{index-TYicGq2L.js → index-CYFq9U58.js} +1 -1
  64. package/dist/assets/{index-BYTZG2bF.js → index-C_YTupmk.js} +1 -1
  65. package/dist/assets/{index-BJYqkXUw.js → index-Cu0b-jgK.js} +1 -1
  66. package/dist/assets/{index-DB7g9m_R.js → index-DA4wR-ie.js} +1 -1
  67. package/dist/assets/{index-kF0xEQ0E.js → index-DC3x_AFd.js} +1 -1
  68. package/dist/assets/{index-DMWfYwZZ.js → index-DKdokzug.js} +1 -1
  69. package/dist/assets/{index-BZCSByFC.js → index-DusYxt7C.js} +3 -3
  70. package/dist/assets/{index-BjvqCh5g.js → index-DynC8vQ4.js} +1 -1
  71. package/dist/assets/{index-Breet2G4.js → index-GmuqTVr0.js} +1 -1
  72. package/dist/assets/index.es-CWMLsIMc.js +47 -0
  73. package/dist/assets/index.es-g5_0R3zE.js +15 -0
  74. package/dist/assets/{info-C0I2HHbp.js → info-P71aU507.js} +1 -1
  75. package/dist/assets/{info-circle-BJmxBusI.js → info-circle-D8ZhpY4M.js} +1 -1
  76. package/dist/assets/{lightbulb-Chfw09TV.js → lightbulb-CWL8Hapk.js} +1 -1
  77. package/dist/assets/{mail-BGqa051c.js → mail-BKdMRnR2.js} +1 -1
  78. package/dist/assets/{mobile-DkPjbMNa.js → mobile-Bw0EoBkW.js} +1 -1
  79. package/dist/assets/{more-f7FKhsyw.js → more-BSKGQd1b.js} +1 -1
  80. package/dist/assets/{network-placeholder-DyyxIB08.js → network-placeholder-B1xqyidN.js} +1 -1
  81. package/dist/assets/{nftPlaceholder-CfDPimUz.js → nftPlaceholder-CuCsNvkN.js} +1 -1
  82. package/dist/assets/{off-BvnUT7bh.js → off-BX6zoZuA.js} +1 -1
  83. package/dist/assets/{play-store-Dl8Di4Xz.js → play-store-CCveEK_B.js} +1 -1
  84. package/dist/assets/{plus-Dtc5pm0q.js → plus-C02SGp4V.js} +1 -1
  85. package/dist/assets/{provider-jsonrpc-CG-x8-V6.js → provider-jsonrpc-DTnJKzTS.js} +1 -1
  86. package/dist/assets/{qr-code-b5m8lMyQ.js → qr-code-DGe_aS_i.js} +1 -1
  87. package/dist/assets/{recycle-horizontal-DztIZMpd.js → recycle-horizontal-DtRomJbx.js} +1 -1
  88. package/dist/assets/{refresh-Z55s9i8s.js → refresh-DPABcpes.js} +1 -1
  89. package/dist/assets/{reown-logo-BVpI-nfV.js → reown-logo-DG2ULLka.js} +1 -1
  90. package/dist/assets/{search-CjKBf0db.js → search-EURxday_.js} +1 -1
  91. package/dist/assets/{secp256k1-BHTD1Qmp.js → secp256k1-D-G9AbtW.js} +1 -1
  92. package/dist/assets/{secp256k1-CCS9UBYD.js → secp256k1-DfnLU_Rr.js} +1 -1
  93. package/dist/assets/{send-DRsIh8XD.js → send-t6aoH9GB.js} +1 -1
  94. package/dist/assets/signer-7-tpWjBV.js +2 -0
  95. package/dist/assets/{solana-D0M1N7L4.js → solana-C-diloCa.js} +18 -18
  96. package/dist/assets/solana-C6mHMmQi.js +2 -0
  97. package/dist/assets/solanaEmbed.esm-DhAz8SOB.js +10 -0
  98. package/dist/assets/{sui-DXdm7DBB.js → sui-DXg2Lhyt.js} +4 -4
  99. package/dist/assets/{sui-CXoaI0gx.js → sui-Pc10JTxL.js} +2 -2
  100. package/dist/assets/{swapHorizontal-COY_WODc.js → swapHorizontal-Cd2Bq-oX.js} +1 -1
  101. package/dist/assets/{swapHorizontalBold-C0JXN9CW.js → swapHorizontalBold-CK6YXqcD.js} +1 -1
  102. package/dist/assets/{swapHorizontalMedium-DH34hVvb.js → swapHorizontalMedium-BCT4Hlrg.js} +1 -1
  103. package/dist/assets/{swapHorizontalRoundedBold-Cbu2lR_U.js → swapHorizontalRoundedBold-C-NDd7Fq.js} +1 -1
  104. package/dist/assets/{swapVertical-CjpRMkF_.js → swapVertical-BfKszPb9.js} +1 -1
  105. package/dist/assets/{telegram-DxmYoEg_.js → telegram-D5sYoBZp.js} +1 -1
  106. package/dist/assets/{three-dots-GsCsg39y.js → three-dots-qiTqAG0h.js} +1 -1
  107. package/dist/assets/{tokens-DNQKjj3l.js → tokens-BjeNFBPV.js} +2 -2
  108. package/dist/assets/{twitch-LH0w9yHE.js → twitch-1VH6BaUA.js} +1 -1
  109. package/dist/assets/{twitterIcon-Ci6YQIIR.js → twitterIcon-hIEIDwcz.js} +1 -1
  110. package/dist/assets/{verify-CLWJXQKG.js → verify-DxvRt34f.js} +1 -1
  111. package/dist/assets/{verify-filled-Bgbn2dT_.js → verify-filled-RtidYdgS.js} +1 -1
  112. package/dist/assets/{w3m-modal-BR4v9o5N.js → w3m-modal-DI_ypCY0.js} +1 -1
  113. package/dist/assets/{wallet-Dy9a13FP.js → wallet-Cb9kcAk9.js} +1 -1
  114. package/dist/assets/{wallet-placeholder-BlMcAG8z.js → wallet-placeholder-pTFD8Qr_.js} +1 -1
  115. package/dist/assets/{walletconnect-BmSWYy7N.js → walletconnect-DvJIx5jD.js} +1 -1
  116. package/dist/assets/{warning-circle-DUSLmVwm.js → warning-circle-CRzNiBlj.js} +1 -1
  117. package/dist/assets/{x-D-BfG-2C.js → x-Dk-mK5uZ.js} +1 -1
  118. package/dist/main.js +74 -74
  119. package/dist/src/utils/index.d.ts +1 -1
  120. package/dist/src/utils/index.d.ts.map +1 -1
  121. package/dist/src/utils/wallet/solana.d.ts.map +1 -1
  122. package/dist/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  123. package/dist/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  124. package/dist/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  125. package/lib/{add-k3ewuJUG.js → add-DVGSYBJf.js} +1 -1
  126. package/lib/{add-BPFasfGu.mjs → add-DrLWWjDN.mjs} +1 -1
  127. package/lib/{all-wallets-la-1zudw.mjs → all-wallets-CjzZMHCA.mjs} +1 -1
  128. package/lib/{all-wallets-DbhnhSgQ.js → all-wallets-DGVJQYa0.js} +1 -1
  129. package/lib/{app-store-DwyKNjnW.js → app-store-BABxSxrd.js} +1 -1
  130. package/lib/{app-store-doruxuZE.mjs → app-store-kpf503GR.mjs} +1 -1
  131. package/lib/{apple-Ba-W9z_L.mjs → apple-C0AtBJDu.mjs} +1 -1
  132. package/lib/{apple-f5EysyhV.js → apple-C962M6Ax.js} +1 -1
  133. package/lib/{aptos-ChgDZ9Bs.mjs → aptos-XxQj_uxF.mjs} +1 -1
  134. package/lib/{aptos-BYM651I5.js → aptos-uWJCRLoQ.js} +1 -1
  135. package/lib/{arrow-bottom-CyaXCpbT.js → arrow-bottom-CIZJcZfr.js} +1 -1
  136. package/lib/{arrow-bottom-CZPkUc3D.mjs → arrow-bottom-D0wK6uMJ.mjs} +1 -1
  137. package/lib/{arrow-bottom-circle-BOmrxjxV.mjs → arrow-bottom-circle-D5QwftYY.mjs} +1 -1
  138. package/lib/{arrow-bottom-circle-Kla1lJ0S.js → arrow-bottom-circle-iOl-NxXR.js} +1 -1
  139. package/lib/{arrow-left-Dqlhv2Qp.mjs → arrow-left-BL0dHjzy.mjs} +1 -1
  140. package/lib/{arrow-left-DtuOud7o.js → arrow-left-C-RAtnQ2.js} +1 -1
  141. package/lib/{arrow-right-W0IwU-6h.js → arrow-right-COiq03Wj.js} +1 -1
  142. package/lib/{arrow-right-glR4LxQL.mjs → arrow-right-DaZMOW_1.mjs} +1 -1
  143. package/lib/{arrow-top-DDcfmUYc.js → arrow-top-7Srj2XLP.js} +1 -1
  144. package/lib/{arrow-top-ChZhpBX5.mjs → arrow-top-QPVhK81o.mjs} +1 -1
  145. package/lib/{bank-2fSYiPNd.js → bank-Bp2l8LtZ.js} +1 -1
  146. package/lib/{bank-CeAxLFYE.mjs → bank-C5lNHVtL.mjs} +1 -1
  147. package/lib/{basic-DmAZdELt.mjs → basic-C5W71-rE.mjs} +2 -2
  148. package/lib/{basic-DATFcjGI.js → basic-DQ6ISwhI.js} +1 -1
  149. package/lib/{browser-CD59CQ82.mjs → browser-CJhUYmz6.mjs} +1 -1
  150. package/lib/{browser-DrdHogv9.js → browser-DV0hL_fK.js} +1 -1
  151. package/lib/{card-CR5E0M8J.mjs → card-DSeabGLV.mjs} +1 -1
  152. package/lib/{card-DsBOUpCN.js → card-yZLq1X6c.js} +1 -1
  153. package/lib/{ccip-BFa4y-oy.js → ccip-BCsOYNZd.js} +1 -1
  154. package/lib/{ccip-bLQYuHSY.mjs → ccip-CFqlillN.mjs} +1 -1
  155. package/lib/{checkmark-CsX9NZH7.js → checkmark-BW4NeFlB.js} +1 -1
  156. package/lib/{checkmark-CfNjLqyN.mjs → checkmark-DhgNpDof.mjs} +1 -1
  157. package/lib/{checkmark-bold-DY9T5oVa.mjs → checkmark-bold-CxJkyUOt.mjs} +1 -1
  158. package/lib/{checkmark-bold-BJIvwCmJ.js → checkmark-bold-DnEFF9eL.js} +1 -1
  159. package/lib/{chevron-bottom-BYoFClQQ.mjs → chevron-bottom-Pi9qTSKk.mjs} +1 -1
  160. package/lib/{chevron-bottom-Ditoq2xa.js → chevron-bottom-Tb5GYU7P.js} +1 -1
  161. package/lib/{chevron-left-3WnVWUcO.js → chevron-left-BRp6K_BQ.js} +1 -1
  162. package/lib/{chevron-left-CqVSZU9b.mjs → chevron-left-Cl35pkRv.mjs} +1 -1
  163. package/lib/{chevron-right-CJBuSXL6.js → chevron-right-D1Ic6C28.js} +1 -1
  164. package/lib/{chevron-right-X3OiwFgb.mjs → chevron-right-pjH-xKxB.mjs} +1 -1
  165. package/lib/{chevron-top-sE88QRY5.mjs → chevron-top-DSe-dX8z.mjs} +1 -1
  166. package/lib/{chevron-top-evdJz5l1.js → chevron-top-SdyRa8IE.js} +1 -1
  167. package/lib/{chrome-store-BE0d8gm3.js → chrome-store-0qgfQSAS.js} +1 -1
  168. package/lib/{chrome-store-CrGMC4Ms.mjs → chrome-store-ThoUGIhl.mjs} +1 -1
  169. package/lib/{clock-BQOPbXNd.js → clock-2HqPHolX.js} +1 -1
  170. package/lib/{clock-B2hRLLna.mjs → clock-B0sBEXQ5.mjs} +1 -1
  171. package/lib/{close-DwQUJGX9.js → close-BJQf5USo.js} +1 -1
  172. package/lib/{close-BAo2qofr.mjs → close-Bznv5frT.mjs} +1 -1
  173. package/lib/{coinPlaceholder-Cop9iL3O.mjs → coinPlaceholder-1gZoTAqN.mjs} +1 -1
  174. package/lib/{coinPlaceholder-D4XIXbUt.js → coinPlaceholder-CvvSiYI-.js} +1 -1
  175. package/lib/{compass-C1qPsOLt.js → compass-BBMA-82e.js} +1 -1
  176. package/lib/{compass-BirhgtWV.mjs → compass-BE99mJOV.mjs} +1 -1
  177. package/lib/constants-BDS32jve.js +1 -0
  178. package/lib/{constants-D9NeMoZZ.mjs → constants-Bp_337ur.mjs} +1 -1
  179. package/lib/{copy-DTprqw_x.js → copy-B_JboG8P.js} +1 -1
  180. package/lib/{copy-CEI12w7k.mjs → copy-Cwolsgnk.mjs} +1 -1
  181. package/lib/{cursor-BWYqc_Iy.mjs → cursor-0EyS6nH4.mjs} +1 -1
  182. package/lib/{cursor-CJNQd6s1.js → cursor-C2jyr1Tt.js} +1 -1
  183. package/lib/{cursor-transparent-BgDxhGZb.js → cursor-transparent-BaVE19A2.js} +1 -1
  184. package/lib/{cursor-transparent-DyUm_Gyl.mjs → cursor-transparent-ZUI7NwAo.mjs} +1 -1
  185. package/lib/{desktop-Donl6N-w.mjs → desktop-B1U1mc6q.mjs} +1 -1
  186. package/lib/{desktop-Dhc3ut6w.js → desktop-Dmz61Quh.js} +1 -1
  187. package/lib/{disconnect-BOkIc2nC.mjs → disconnect-8HUMogEY.mjs} +1 -1
  188. package/lib/{disconnect-BF1o-_4J.js → disconnect-Bn_0Td6c.js} +1 -1
  189. package/lib/{discord-Cr_4Cd1g.js → discord-4tBuPwio.js} +1 -1
  190. package/lib/{discord-3TAxBxMm.mjs → discord-DNMu-4pj.mjs} +1 -1
  191. package/lib/{etherscan-BdKsG3Bv.js → etherscan-CdfpxSFw.js} +1 -1
  192. package/lib/{etherscan-crtB48km.mjs → etherscan-DTafkFM9.mjs} +1 -1
  193. package/lib/{evm-BW-hVkAs.mjs → evm-B5SS0axR.mjs} +3 -3
  194. package/lib/{evm-BwVzzPhr.js → evm-BZKMUp6E.js} +3 -3
  195. package/lib/{exclamation-triangle-B8ouyGn5.mjs → exclamation-triangle-BLb5RCv9.mjs} +1 -1
  196. package/lib/{exclamation-triangle-CDWJ40KD.js → exclamation-triangle-W8wr4W3B.js} +1 -1
  197. package/lib/{extension-DdSvlDz-.js → extension-B3rp6j3f.js} +1 -1
  198. package/lib/{extension-CKbWDUFI.mjs → extension-DqXaH5V_.mjs} +1 -1
  199. package/lib/{external-link-DJvJgYIh.js → external-link-DWSOPcgR.js} +1 -1
  200. package/lib/{external-link-Ba6hY_g_.mjs → external-link-DupOMQca.mjs} +1 -1
  201. package/lib/{facebook-CFUYIcny.mjs → facebook-C25qgXgI.mjs} +1 -1
  202. package/lib/{facebook-A65A2Gkq.js → facebook-gaoSLwmV.js} +1 -1
  203. package/lib/{farcaster-BVmh2zDV.mjs → farcaster-BKQVbYft.mjs} +1 -1
  204. package/lib/{farcaster-qZSmV22m.js → farcaster-Dw_KFzSe.js} +1 -1
  205. package/lib/{filters-Uk-V5NfL.mjs → filters-BRj-u8fO.mjs} +1 -1
  206. package/lib/{filters-CNDKq3Qc.js → filters-BSv2GVWx.js} +1 -1
  207. package/lib/{github-CKyZTPiz.mjs → github-B8zYv5B1.mjs} +1 -1
  208. package/lib/{github-B34wWZJc.js → github-CVSqx81G.js} +1 -1
  209. package/lib/{google-D5l_b5at.mjs → google-CJy4jhj7.mjs} +1 -1
  210. package/lib/{google-CuY8LtEi.js → google-DWyFM_-_.js} +1 -1
  211. package/lib/{help-circle-B8yY3eo0.js → help-circle-BihX0QHp.js} +1 -1
  212. package/lib/{help-circle-CecVMIZq.mjs → help-circle-D2kyGnMD.mjs} +1 -1
  213. package/lib/hosted.js +1 -1
  214. package/lib/hosted.mjs +1 -1
  215. package/lib/{id-DTrVc-vC.mjs → id-BvDoX2i7.mjs} +1 -1
  216. package/lib/{id-DLcZPuZY.js → id-ZWI-bwNJ.js} +1 -1
  217. package/lib/{image-DTiFTFsi.mjs → image-BeWwKKKj.mjs} +1 -1
  218. package/lib/{image-Cwpi7jk6.js → image-CNQTgOF8.js} +1 -1
  219. package/lib/{index-CXkqbcY-.mjs → index-BXBTU3I5.mjs} +78 -78
  220. package/lib/{index-DoD0YukX.js → index-D2yjOpeA.js} +2 -2
  221. package/lib/{index-C8Ud7j_3.mjs → index-Dpl42t-y.mjs} +19180 -19176
  222. package/lib/index-DwMMfwYI.js +304 -0
  223. package/lib/{index.es-TJGl70mY.js → index.es-BvsB6Z8q.js} +1 -1
  224. package/lib/{index.es-DpOAk4i2.js → index.es-C2112Y2b.js} +1 -1
  225. package/lib/{index.es-CDEST0S7.mjs → index.es-C4KG3MSj.mjs} +1 -1
  226. package/lib/{index.es-BMIY5pYw.mjs → index.es-Cy_oFTNH.mjs} +3 -3
  227. package/lib/index.js +1 -1
  228. package/lib/index.mjs +1 -1
  229. package/lib/{info-DcQS8IpR.js → info-C73QOiqc.js} +1 -1
  230. package/lib/{info-t-enQ6Lr.mjs → info-CjKZyXW_.mjs} +1 -1
  231. package/lib/{info-circle-DT6JQVme.mjs → info-circle-CEpS6rzX.mjs} +1 -1
  232. package/lib/{info-circle-aXtdOOCE.js → info-circle-DE-EmffO.js} +1 -1
  233. package/lib/{lightbulb-CtbmuzLN.mjs → lightbulb-BVq3C-EG.mjs} +1 -1
  234. package/lib/{lightbulb-PXEUZBLD.js → lightbulb-Dm6Hsfd3.js} +1 -1
  235. package/lib/{mail-BeOHsaxl.mjs → mail-CqUQETIH.mjs} +1 -1
  236. package/lib/{mail-D9Wkb_fX.js → mail-GRon9tbg.js} +1 -1
  237. package/lib/{mobile-iCRio9M2.js → mobile-BmGmHmVh.js} +1 -1
  238. package/lib/{mobile-RJYQQ92x.mjs → mobile-CEbEFp0X.mjs} +1 -1
  239. package/lib/{more-CjmHuHR3.js → more-CnS-NcGa.js} +1 -1
  240. package/lib/{more-5fdnBWda.mjs → more-Cs0cmKvd.mjs} +1 -1
  241. package/lib/{network-placeholder-DfXy-pw6.js → network-placeholder-CjPyqfGa.js} +1 -1
  242. package/lib/{network-placeholder-xXksUrh5.mjs → network-placeholder-DYuB36S0.mjs} +1 -1
  243. package/lib/{nftPlaceholder-CsrQCxrs.mjs → nftPlaceholder-COJmgjQo.mjs} +1 -1
  244. package/lib/{nftPlaceholder-sAiBQkMk.js → nftPlaceholder-CoY2NOAz.js} +1 -1
  245. package/lib/{off-BqIL7yPu.js → off-B-WmBPpa.js} +1 -1
  246. package/lib/{off-BwM4HctO.mjs → off-CZo3LYgL.mjs} +1 -1
  247. package/lib/{play-store-CI-BG6p6.js → play-store-Chciiwp3.js} +1 -1
  248. package/lib/{play-store-DxNIHRp-.mjs → play-store-Edmxg3AX.mjs} +1 -1
  249. package/lib/{plus-C6x2EScU.js → plus-C93OSdaz.js} +1 -1
  250. package/lib/{plus-B7obWHt8.mjs → plus-D2jFkgs1.mjs} +1 -1
  251. package/lib/{qr-code-3DFC3Q4R.mjs → qr-code-c2tFySK0.mjs} +1 -1
  252. package/lib/{qr-code-DmjJRj0_.js → qr-code-y78Lk8wE.js} +1 -1
  253. package/lib/{recycle-horizontal-Bdxajrwe.mjs → recycle-horizontal-CWycpdDF.mjs} +1 -1
  254. package/lib/{recycle-horizontal-CG5av2fz.js → recycle-horizontal-PXk9BX3j.js} +1 -1
  255. package/lib/{refresh-Zr5AsEKU.mjs → refresh-C77_db2T.mjs} +1 -1
  256. package/lib/{refresh-Btbt-_sS.js → refresh-mky0B17c.js} +1 -1
  257. package/lib/{reown-logo-CR3PdJr3.mjs → reown-logo-0RkEf9EI.mjs} +1 -1
  258. package/lib/{reown-logo-CfO-XbUR.js → reown-logo-DceXhK36.js} +1 -1
  259. package/lib/{search-CSdDYgkF.mjs → search-BrMSW1-8.mjs} +1 -1
  260. package/lib/{search-CTbUM9lC.js → search-CWru3218.js} +1 -1
  261. package/lib/{secp256k1-BZjEFwP8.js → secp256k1-BU-UfBCB.js} +1 -1
  262. package/lib/{secp256k1-DWHMs4rw.mjs → secp256k1-C4P0dmMC.mjs} +1 -1
  263. package/lib/{secp256k1-DPqpw2CY.mjs → secp256k1-CI3_SM8F.mjs} +1 -1
  264. package/lib/{secp256k1-CnnROfkI.js → secp256k1-Cks0bicH.js} +1 -1
  265. package/lib/{send-B7xqmURU.js → send-CRyBVD1k.js} +1 -1
  266. package/lib/{send-DznbeEhx.mjs → send-DFkvxnIh.mjs} +1 -1
  267. package/lib/{solana-DLlqlTiO.js → solana-BVnMWq13.js} +14 -14
  268. package/lib/{solana-AxtnvbY3.mjs → solana-L02hbBDE.mjs} +387 -373
  269. package/lib/{solanaEmbed.esm-CAxFhfEV.js → solanaEmbed.esm-BG5cgKub.js} +1 -1
  270. package/lib/{solanaEmbed.esm-7UXGCmUk.mjs → solanaEmbed.esm-DSwNdsgx.mjs} +1 -1
  271. package/lib/src/utils/index.d.ts +1 -1
  272. package/lib/src/utils/index.d.ts.map +1 -1
  273. package/lib/src/utils/wallet/solana.d.ts.map +1 -1
  274. package/lib/src/views/v2/Bridge/AmountInput/index.d.ts.map +1 -1
  275. package/lib/src/views/v2/Redeem/TransactionDetails/index.d.ts.map +1 -1
  276. package/lib/src/views/v2/TxHistory/Item/index.d.ts.map +1 -1
  277. package/lib/{sui-hvPfY1xD.mjs → sui-CN1tZAOs.mjs} +1 -1
  278. package/lib/{sui-CBgZojMi.js → sui-Dv1p0XoG.js} +1 -1
  279. package/lib/{swapHorizontal-CD3pRzO9.js → swapHorizontal-BiCkAPre.js} +1 -1
  280. package/lib/{swapHorizontal-D794mX-0.mjs → swapHorizontal-Bo_-2U6j.mjs} +1 -1
  281. package/lib/{swapHorizontalBold-BNqV8D-B.mjs → swapHorizontalBold-BPL2XaSi.mjs} +1 -1
  282. package/lib/{swapHorizontalBold-DmkD9tJg.js → swapHorizontalBold-CWHbSIEu.js} +1 -1
  283. package/lib/{swapHorizontalMedium-mBKWLCjs.mjs → swapHorizontalMedium-CTsDFfzR.mjs} +1 -1
  284. package/lib/{swapHorizontalMedium-BAsprxHr.js → swapHorizontalMedium-D_2Z2Hfq.js} +1 -1
  285. package/lib/{swapHorizontalRoundedBold-TCs9zHMJ.mjs → swapHorizontalRoundedBold-8b5z2YJ_.mjs} +1 -1
  286. package/lib/{swapHorizontalRoundedBold-Bxkjq6qT.js → swapHorizontalRoundedBold-CDKFFagj.js} +1 -1
  287. package/lib/{swapVertical-DhTXBg3D.js → swapVertical-CNBatiM6.js} +1 -1
  288. package/lib/{swapVertical-l8Luks9S.mjs → swapVertical-UTCgpnIJ.mjs} +1 -1
  289. package/lib/{telegram-kWkcmqoP.mjs → telegram-CVvlgH_Z.mjs} +1 -1
  290. package/lib/{telegram-DL0uLP7b.js → telegram-lTj0r5My.js} +1 -1
  291. package/lib/{three-dots-DWHn78kh.js → three-dots-DQLgK82o.js} +1 -1
  292. package/lib/{three-dots-DrLoXyiQ.mjs → three-dots-KK4NyvR7.mjs} +1 -1
  293. package/lib/{tokens-BUz0LqoV.js → tokens-B2pmB4Ph.js} +1 -1
  294. package/lib/{tokens-CVWDocZl.mjs → tokens-BQHmitaT.mjs} +1 -1
  295. package/lib/{twitch-I4SDZ--W.mjs → twitch-CO4nmS5o.mjs} +1 -1
  296. package/lib/{twitch-DhKQH1oi.js → twitch-wV3Yc6kA.js} +1 -1
  297. package/lib/{twitterIcon-b32a7G08.mjs → twitterIcon-BU99IvD2.mjs} +1 -1
  298. package/lib/{twitterIcon-jhkqYcKG.js → twitterIcon-pCNPPny7.js} +1 -1
  299. package/lib/{verify-BHunOaoq.js → verify-B21LHiy7.js} +1 -1
  300. package/lib/{verify-BILic2OM.mjs → verify-Ci9XMhb8.mjs} +1 -1
  301. package/lib/{verify-filled-DaZqbtNa.js → verify-filled-DCMcHuAt.js} +1 -1
  302. package/lib/{verify-filled-DWED2hiA.mjs → verify-filled-LUtqUhbS.mjs} +1 -1
  303. package/lib/{w3m-modal-Cy1spBe9.mjs → w3m-modal-BJkuxcj8.mjs} +2 -2
  304. package/lib/{w3m-modal-FbJz8iZj.js → w3m-modal-DJRTg4Aa.js} +1 -1
  305. package/lib/{wallet-Bt7nP-Xo.js → wallet-BqBebKQF.js} +1 -1
  306. package/lib/{wallet-BcFzu16M.mjs → wallet-USpq1vKL.mjs} +1 -1
  307. package/lib/{wallet-placeholder-DgWC2b6z.mjs → wallet-placeholder-CL_evZUb.mjs} +1 -1
  308. package/lib/{wallet-placeholder-B4QUbZ9F.js → wallet-placeholder-Cf1u-2wB.js} +1 -1
  309. package/lib/{walletconnect-D0jqiSEY.mjs → walletconnect-3g5k3agX.mjs} +1 -1
  310. package/lib/{walletconnect-DJotTW4X.js → walletconnect-Da6ZdP8w.js} +1 -1
  311. package/lib/{warning-circle-Bj9uBvqX.mjs → warning-circle-B3ivLfCN.mjs} +1 -1
  312. package/lib/{warning-circle-B9it-2WD.js → warning-circle-CvTdOy7u.js} +1 -1
  313. package/lib/{x-uoxUEJo2.mjs → x-BOwtJrlH.mjs} +1 -1
  314. package/lib/{x-BLLVBVBO.js → x-DQCRmr2P.js} +1 -1
  315. package/package.json +1 -1
  316. package/dist/assets/index-Z3Xir6L3.js +0 -1
  317. package/dist/assets/index.es-3Tq6bjFW.js +0 -47
  318. package/dist/assets/index.es-CBqWEk7T.js +0 -15
  319. package/dist/assets/signer-BRan8q4C.js +0 -2
  320. package/dist/assets/solana-B3bc0p0T.js +0 -2
  321. package/dist/assets/solanaEmbed.esm-Mnq6o_qa.js +0 -10
  322. package/lib/constants-T5Vq_IiF.js +0 -1
  323. package/lib/index-BLJhpzbW.js +0 -304
@@ -1,14 +1,14 @@
1
1
  var iv = Object.defineProperty;
2
2
  var rv = (s, e, t) => e in s ? iv(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var Nt = (s, e, t) => rv(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { aa as nv, af as ei, d as A, aD as uh, b2 as dh, aZ as ov, an as td, b0 as av, ae as ym, c1 as cv } from "./address-BkeBsCZD.mjs";
5
- import { e as kt, n as lv, E as Wn, W as hv, o as sd, f as id, B as $a, l as rd, m as Mi, p as uv } from "./index-C8Ud7j_3.mjs";
4
+ import { aa as nv, af as ei, d as A, aD as uh, b2 as dh, aZ as ov, an as sd, b0 as av, ae as ym, c1 as cv } from "./address-BkeBsCZD.mjs";
5
+ import { e as kt, n as lv, E as Wn, W as hv, o as id, f as rd, B as $a, l as ph, m as Mi, p as uv } from "./index-Dpl42t-y.mjs";
6
6
  import { a as dv } from "./util--bw7gFPs.mjs";
7
7
  import { g as pv } from "./wallets-B2tqS5lZ.mjs";
8
- import { i as ph } from "./unsignedTransaction-DkC9OIgh.mjs";
8
+ import { i as gh } from "./unsignedTransaction-DkC9OIgh.mjs";
9
9
  import { d as gv, a as fv } from "./signer-CinqaaXD.mjs";
10
10
  import { a3 as E, a4 as bm, a5 as Wi, a6 as Uc, a7 as vm, f as mv, a1 as nd, a2 as ll, t as od } from "./index-CNWcuxPc.mjs";
11
- import { I as bs, d as Di, s as wi, a as Sr, c as Im, b as Em, k as Am, e as Nm, f as _m, g as yc, h as Ge, t as Ae, C as Cm, i as Sm, j as jn, l as Mn, r as wv, m as Gt, n as gs, o as st, p as $r, q as ad, u as yv, v as bv, w as aa, x as vv, y as yi, A as Iu, E as Ne, z as qe, D as Vn, B as Kn, F as Vi, P as bc, Q as $m, G as Pm, H as Iv, J as vt, K as qt, L as tt } from "./index.es-CDEST0S7.mjs";
11
+ import { I as bs, d as Di, s as wi, a as Sr, c as Im, b as Em, k as Am, e as Nm, f as _m, g as yc, h as Ge, t as Ae, C as Cm, i as Sm, j as jn, l as Mn, r as wv, m as Gt, n as gs, o as st, p as $r, q as ad, u as yv, v as bv, w as aa, x as vv, y as yi, A as Eu, E as Ne, z as qe, D as Vn, B as Kn, F as Vi, P as bc, Q as $m, G as Pm, H as Iv, J as vt, K as qt, L as tt } from "./index.es-C4KG3MSj.mjs";
12
12
  import "./browser-ponyfill-B32wgiqZ.mjs";
13
13
  class jt extends Error {
14
14
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
@@ -127,7 +127,7 @@ function ha(s) {
127
127
  function pi(s) {
128
128
  return "version" in s;
129
129
  }
130
- class Eu extends Mm {
130
+ class Au extends Mm {
131
131
  async sendTransaction(e, t, i = {}) {
132
132
  let r = !0;
133
133
  try {
@@ -170,7 +170,7 @@ class Eu extends Mm {
170
170
  return t;
171
171
  }
172
172
  }
173
- class ua extends Eu {
173
+ class ua extends Au {
174
174
  }
175
175
  const Oi = "solana:signAndSendTransaction", hl = "solana:signIn", io = "solana:signMessage", Mt = "solana:signTransaction", Om = "standard:connect", ld = "standard:disconnect", xm = "standard:events";
176
176
  function Nv(s) {
@@ -665,7 +665,7 @@ class Dv extends ua {
665
665
  }
666
666
  }
667
667
  const hd = "solana:mainnet", kv = "solana:devnet", jv = "solana:testnet", Rv = "solana:localnet", Lv = "Solong";
668
- class Uv extends Eu {
668
+ class Uv extends Au {
669
669
  constructor(e = {}) {
670
670
  super(), this.name = Lv, this.url = "https://solongwallet.io", this.icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAGlklEQVR4Ae3bA5DsyhfH8TNr49r2/du2bdu2bdu2zcdNrm3b9toz533rvctUn3Umk9p01WfdvVW/6nROBxJVS1rSkpa0pCUtaUlLWtKSpl4VXos3GJ4sujQFuUKfWl+qT730arzB8Ex9YksKcgXjFOCVeIPhBYydB8mawQ+yiGC8n0EN6zAVcgXhpQjoq1DDdsyDAAB9Pwo1HMC9INk0FIM8Bt1Qh9WohQQCvD+BtEMdtmC8I7y5aIE67MV0SBwDvB3qsE/UHwMJIpC/QB1OYiLEEeCPoQ7nMRcSwwDrao3Zl8aTIEGEUYlL0IAMXuQOr66UvsegDm+ExDJAPNiafSg0AlyIbmjAWX1aQzEkiH6T0QkNaEdpnAN8NNRhPcSF9e9el2ebBhyAuNBvGtLQgIuQOAd4D6jDMRQbM3AmOqEBDfq0xjJIEP3GohkakEFVjAP0y401sAsLnAE+pb6EsC5AA9J4sHsG+kX0PQR1eFJ8AwTWQh0+DjFm4a1Qh2/AOoz/BHX4ZdwD/CDU4aioX2GUMW+AOnB2bqiBBDHe86EOTYw5GRKJwQ/ijUM91OGTxgysxSmowzeNw7j08m5DHX4l7Igg2TY0g9hbLBZ+f7oxC98CdWjDvYzD+MVQh07GfEQsZyDgVWA71OGvorfnQQCAcqaYUFZDHW6j/itAoB70GcergzqsEa0rhGTTEA7mP0koK4xdyeOMmvBBhJU2zsjPMw7lu9O3zShpXheHk4hhcZ4w26AOG4RSxDiUfwZ12KdPqy+FBDHeV6EOZxizIg6HsMGbiQ5jdjzBXRfeefGg3tgbv9BYC0fhZE7sjUMY9Pf9rdcI5XtQh39BjBA/C3VYnM0zcgiDek+GOhzh93mQoMs7kIxze/eMhnxIEOPNM9bcFtTEeAb6I419axu/m2CsgxU4Aw1A/UxIUM/bO/9+cVkDDd5x42x8N1iH8Taow0NhHcZLoQ5Pi/MMzDMW+DTu7g6vIY9AdkAdHmaUMyn6roA6PD22AeLB6DbWplHG7LubfY+kfiIkiH5T0AJ1uFtMA1xUzOc1UIclzvCeXF+o7DygDlvds29RgVVzYj+K4xhgEX4NdcjgecE++rSL+ZdLmIxRB77Ose7l4XPIQB3eF8M60C/n8++ghltE/QLIFfqUiyUE8kOoYSW7jmLIFXeN4X0NaajDDlG/NG6XswrxKdxu+G/weh27j3wCej9uN9zEOjc3sObl4S243XBLhDfWE0mAMQjwZfhxDng7pG/8Sj4/ER/Gd/BdfBhPRGW2A/wxNAfcBOnFCHwZZ6GGs/gqapMAb/QEnIT20Uk8IQkQeB7aof3UihcM9wDvhyboANHXv1+IdWBOB2hsIftto+iSPEif8aGPcjrA50GHyPMiOIT9B/N5apaMgQT8D2poxMdwt8s+hkao4X9ZDxBTIdHwy/h8AeqQxhMhAU9BB9ThPMqHTYCYjU6owy3uPstSfL4Z6uZPC+Mk8gOomz8DEg3vXshAHb4MMXwZarhXGDPwa739w2j48623BPAniOFPUMPsMAL8INTw9AgDrLZOCmjFPEjA3WD1aUJVGAG+CGr4ECRCy6GGg3iyaF0+n/PwFByEGpaJ+qkw1sB7QA3/hUTozdBetFymvXhTWGVMOc7bp36/FhKRamNW9dcxZmpZiI+32ad+vAQSoWejGzpAXXh22Fek3wY1rDD2kVnijR3ExYQMPgkJOUB/nFW0Is3vnw6JhlHX9a4N70Iq/ACBv0MNu7J9WxHw7jaA2deFOtw32zeVHtHLWvMN0dtSkOzwS3spYy7iH1hx2d/wYdyTvnkR3BdeQjjerVBDN14JyZIfQWH5RC7e1rw32npZV54LCc+SPD5/HgqYD3WW5+gTqt6X+rA4v0701hRkKF0+bL+HTM9Hgv/MHH60wyvHWigsafwA1ZAhMguLoL34kbDcQEI1uAH8mcbuxPHImf8i5EMGxqvER9EI7cUqVMTl0Y6HoxHaBzvxNkyC9EEe7oEv4Sy0D/YQ+IS4ver1JNT38z7sWnwbb8TT8Cg8Gs/Gu/Ar7EEXtI/2ud7Ni0GAYCbiJDQiazA57k9nTcdqaJb9UtSvitXbmjavCJ9AMzRkJ/B80boUJBLhDe7Nw1/QCR1i9fgKRg6HByzvjZ/hInQQMjiCT2PSMHxC1a/l8wvwGxyG9kEaW/EtPI4xiiE5JcLrd6PxcLwM78SH8EG8Fc/H/UUXVUByGh8SSYBJgEmASYCJJMAkwBi6A3xCqZhiBz8+AAAAAElFTkSuQmCC", this.supportedTransactionVersions = null, this._readyState = typeof window > "u" || typeof document > "u" ? ne.Unsupported : ne.NotDetected, this._connecting = !1, this._wallet = null, this._publicKey = null, this._readyState !== ne.Unsupported && ha(() => window.solong ? (this._readyState = ne.Installed, this.emit("readyStateChange", this._readyState), !0) : !1);
671
671
  }
@@ -754,7 +754,7 @@ class Fv extends ua {
754
754
  this._connecting = !0;
755
755
  let e;
756
756
  try {
757
- e = (await import("./solanaEmbed.esm-7UXGCmUk.mjs")).default;
757
+ e = (await import("./solanaEmbed.esm-DSwNdsgx.mjs")).default;
758
758
  } catch (n) {
759
759
  throw new Ev(n == null ? void 0 : n.message, n);
760
760
  }
@@ -964,12 +964,12 @@ function ec(s) {
964
964
  return ec(s.toJSON());
965
965
  throw new Error("[unstorage] Cannot stringify value!");
966
966
  }
967
- const gh = "base64:";
967
+ const fh = "base64:";
968
968
  function Gv(s) {
969
- return typeof s == "string" ? s : gh + Zv(s);
969
+ return typeof s == "string" ? s : fh + Zv(s);
970
970
  }
971
971
  function Yv(s) {
972
- return typeof s != "string" || !s.startsWith(gh) ? s : Qv(s.slice(gh.length));
972
+ return typeof s != "string" || !s.startsWith(fh) ? s : Qv(s.slice(fh.length));
973
973
  }
974
974
  function Qv(s) {
975
975
  return globalThis.Buffer ? A.Buffer.from(s, "base64") : Uint8Array.from(
@@ -1527,13 +1527,13 @@ const jm = "2.23.2";
1527
1527
  let ro = {
1528
1528
  getDocsUrl: ({ docsBaseUrl: s, docsPath: e = "", docsSlug: t }) => e ? `${s ?? "https://viem.sh"}${e}${t ? `#${t}` : ""}` : void 0,
1529
1529
  version: `viem@${jm}`
1530
- }, Fc = class fh extends Error {
1530
+ }, Fc = class mh extends Error {
1531
1531
  constructor(e, t = {}) {
1532
1532
  var a;
1533
1533
  const i = (() => {
1534
1534
  var l;
1535
- return t.cause instanceof fh ? t.cause.details : (l = t.cause) != null && l.message ? t.cause.message : t.details;
1536
- })(), r = t.cause instanceof fh && t.cause.docsPath || t.docsPath, n = (a = ro.getDocsUrl) == null ? void 0 : a.call(ro, { ...t, docsPath: r }), o = [
1535
+ return t.cause instanceof mh ? t.cause.details : (l = t.cause) != null && l.message ? t.cause.message : t.details;
1536
+ })(), r = t.cause instanceof mh && t.cause.docsPath || t.docsPath, n = (a = ro.getDocsUrl) == null ? void 0 : a.call(ro, { ...t, docsPath: r }), o = [
1537
1537
  e || "An error occurred.",
1538
1538
  "",
1539
1539
  ...t.metaMessages ? [...t.metaMessages, ""] : [],
@@ -1633,7 +1633,7 @@ function Yn(s, { size: e }) {
1633
1633
  maxSize: e
1634
1634
  });
1635
1635
  }
1636
- function mh(s, e = {}) {
1636
+ function wh(s, e = {}) {
1637
1637
  const { signed: t } = e;
1638
1638
  e.size && Yn(s, { size: e.size });
1639
1639
  const i = BigInt(s);
@@ -1643,10 +1643,10 @@ function mh(s, e = {}) {
1643
1643
  return i <= n ? i : i - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
1644
1644
  }
1645
1645
  function k0(s, e = {}) {
1646
- return Number(mh(s, e));
1646
+ return Number(wh(s, e));
1647
1647
  }
1648
1648
  const j0 = /* @__PURE__ */ Array.from({ length: 256 }, (s, e) => e.toString(16).padStart(2, "0"));
1649
- function wh(s, e = {}) {
1649
+ function yh(s, e = {}) {
1650
1650
  return typeof s == "number" || typeof s == "bigint" ? zm(s, e) : typeof s == "string" ? U0(s, e) : typeof s == "boolean" ? R0(s, e) : Um(s, e);
1651
1651
  }
1652
1652
  function R0(s, e = {}) {
@@ -1929,7 +1929,7 @@ let uI = class Km extends tI {
1929
1929
  const dI = (s, e, t) => sI(() => new uI(e, s, t)), pI = /* @__PURE__ */ dI(1, 136, 256 / 8);
1930
1930
  function Gm(s, e) {
1931
1931
  const t = e || "hex", i = pI(Ko(s, { strict: !1 }) ? F0(s) : s);
1932
- return t === "bytes" ? i : wh(i);
1932
+ return t === "bytes" ? i : yh(i);
1933
1933
  }
1934
1934
  let gI = class extends Map {
1935
1935
  constructor(e) {
@@ -1967,13 +1967,13 @@ function mI(s) {
1967
1967
  return fI(`0x${e}`);
1968
1968
  }
1969
1969
  async function wI({ hash: s, signature: e }) {
1970
- const t = Ko(s) ? s : wh(s), { secp256k1: i } = await import("./secp256k1-DWHMs4rw.mjs");
1970
+ const t = Ko(s) ? s : yh(s), { secp256k1: i } = await import("./secp256k1-C4P0dmMC.mjs");
1971
1971
  return `0x${(() => {
1972
1972
  if (typeof e == "object" && "r" in e && "s" in e) {
1973
1973
  const { r: c, s: h, v: u, yParity: d } = e, p = Number(d ?? u), g = Nd(p);
1974
- return new i.Signature(mh(c), mh(h)).addRecoveryBit(g);
1974
+ return new i.Signature(wh(c), wh(h)).addRecoveryBit(g);
1975
1975
  }
1976
- const o = Ko(e) ? e : wh(e), a = k0(`0x${o.slice(130)}`), l = Nd(a);
1976
+ const o = Ko(e) ? e : yh(e), a = k0(`0x${o.slice(130)}`), l = Nd(a);
1977
1977
  return i.Signature.fromCompact(o.substring(2, 130)).addRecoveryBit(l);
1978
1978
  })().recoverPublicKey(t.substring(2)).toHex(!1)}`;
1979
1979
  }
@@ -2188,7 +2188,7 @@ function Sd() {
2188
2188
  return (s === "x" ? e : e & 3 | 8).toString(16);
2189
2189
  });
2190
2190
  }
2191
- function Au() {
2191
+ function Nu() {
2192
2192
  return typeof A.process < "u" && A.process.env.IS_VITEST === "true";
2193
2193
  }
2194
2194
  function DI() {
@@ -2221,7 +2221,7 @@ function Bc(s, ...e) {
2221
2221
  if (!LI(s)) throw new Error("Uint8Array expected");
2222
2222
  if (e.length > 0 && !e.includes(s.length)) throw new Error("Uint8Array expected of length " + e + ", got length=" + s.length);
2223
2223
  }
2224
- function Nu(s) {
2224
+ function _u(s) {
2225
2225
  if (typeof s != "function" || typeof s.create != "function") throw new Error("Hash should be wrapped by utils.wrapConstructor");
2226
2226
  Go(s.outputLen), Go(s.blockLen);
2227
2227
  }
@@ -2270,7 +2270,7 @@ function KI(s) {
2270
2270
  function Ln(s) {
2271
2271
  return typeof s == "string" && (s = KI(s)), Bc(s), s;
2272
2272
  }
2273
- let _u = class {
2273
+ let Cu = class {
2274
2274
  clone() {
2275
2275
  return this._cloneInto();
2276
2276
  }
@@ -2313,7 +2313,7 @@ function t1(s, e = 24) {
2313
2313
  }
2314
2314
  t.fill(0);
2315
2315
  }
2316
- let s1 = class hw extends _u {
2316
+ let s1 = class hw extends Cu {
2317
2317
  constructor(e, t, i, r = !1, n = 24) {
2318
2318
  if (super(), this.blockLen = e, this.suffix = t, this.outputLen = i, this.enableXOF = r, this.rounds = n, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, Go(i), 0 >= this.blockLen || this.blockLen >= 200) throw new Error("Sha3 supports only keccak-f1600 function");
2319
2319
  this.state = new Uint8Array(200), this.state32 = WI(this.state);
@@ -2408,19 +2408,19 @@ var h1 = Object.defineProperty, u1 = Object.defineProperties, d1 = Object.getOwn
2408
2408
  if (xd) for (var t of xd(e)) g1.call(e, t) && Dd(s, t, e[t]);
2409
2409
  return s;
2410
2410
  }, m1 = (s, e) => u1(s, d1(e));
2411
- const w1 = "did:pkh:", Cu = (s) => s == null ? void 0 : s.split(":"), y1 = (s) => {
2412
- const e = s && Cu(s);
2411
+ const w1 = "did:pkh:", Su = (s) => s == null ? void 0 : s.split(":"), y1 = (s) => {
2412
+ const e = s && Su(s);
2413
2413
  if (e) return s.includes(w1) ? e[3] : e[1];
2414
- }, yh = (s) => {
2415
- const e = s && Cu(s);
2414
+ }, bh = (s) => {
2415
+ const e = s && Su(s);
2416
2416
  if (e) return e[2] + ":" + e[3];
2417
2417
  }, Ac = (s) => {
2418
- const e = s && Cu(s);
2418
+ const e = s && Su(s);
2419
2419
  if (e) return e.pop();
2420
2420
  };
2421
2421
  async function kd(s) {
2422
2422
  const { cacao: e, projectId: t } = s, { s: i, p: r } = e, n = dw(r, r.iss), o = Ac(r.iss);
2423
- return await o1(o, n, i, yh(r.iss), t);
2423
+ return await o1(o, n, i, bh(r.iss), t);
2424
2424
  }
2425
2425
  const dw = (s, e) => {
2426
2426
  const t = `${s.domain} wants you to sign in with your Ethereum account:`, i = Ac(e);
@@ -2568,9 +2568,9 @@ function M1(s) {
2568
2568
  if (typeof s != "string") throw new Error("string expected");
2569
2569
  return new Uint8Array(new TextEncoder().encode(s));
2570
2570
  }
2571
- function bh(s) {
2571
+ function vh(s) {
2572
2572
  if (typeof s == "string") s = M1(s);
2573
- else if (gw(s)) s = vh(s);
2573
+ else if (gw(s)) s = Ih(s);
2574
2574
  else throw new Error("Uint8Array expected, got " + typeof s);
2575
2575
  return s;
2576
2576
  }
@@ -2624,7 +2624,7 @@ function Fd(s, e, t, i) {
2624
2624
  function k1(s) {
2625
2625
  return s.byteOffset % 4 === 0;
2626
2626
  }
2627
- function vh(s) {
2627
+ function Ih(s) {
2628
2628
  return Uint8Array.from(s);
2629
2629
  }
2630
2630
  function Un(...s) {
@@ -2634,12 +2634,12 @@ const fw = (s) => Uint8Array.from(s.split("").map((e) => e.charCodeAt(0))), j1 =
2634
2634
  function de(s, e) {
2635
2635
  return s << e | s >>> 32 - e;
2636
2636
  }
2637
- function Ih(s) {
2637
+ function Eh(s) {
2638
2638
  return s.byteOffset % 4 === 0;
2639
2639
  }
2640
2640
  const Oa = 64, z1 = 16, mw = 2 ** 32 - 1, qd = new Uint32Array();
2641
2641
  function F1(s, e, t, i, r, n, o, a) {
2642
- const l = r.length, c = new Uint8Array(Oa), h = zi(c), u = Ih(r) && Ih(n), d = u ? zi(r) : qd, p = u ? zi(n) : qd;
2642
+ const l = r.length, c = new Uint8Array(Oa), h = zi(c), u = Eh(r) && Eh(n), d = u ? zi(r) : qd, p = u ? zi(n) : qd;
2643
2643
  for (let g = 0; g < l; o++) {
2644
2644
  if (s(e, t, i, h, o, a), o >= mw) throw new Error("arx: counter overflow");
2645
2645
  const f = Math.min(Oa, l - g);
@@ -2664,10 +2664,10 @@ function q1(s, e) {
2664
2664
  if (h.length < d) throw new Error(`arx: output (${h.length}) is shorter than data (${d})`);
2665
2665
  const p = [];
2666
2666
  let g = a.length, f, y;
2667
- if (g === 32) p.push(f = vh(a)), y = U1;
2667
+ if (g === 32) p.push(f = Ih(a)), y = U1;
2668
2668
  else if (g === 16 && t) f = new Uint8Array(32), f.set(a), f.set(a, 16), y = L1, p.push(f);
2669
2669
  else throw new Error(`arx: invalid 32-byte key, got length=${g}`);
2670
- Ih(l) || p.push(l = vh(l));
2670
+ Eh(l) || p.push(l = Ih(l));
2671
2671
  const w = zi(f);
2672
2672
  if (i) {
2673
2673
  if (l.length !== 24) throw new Error("arx: extended nonce must be 24 bytes");
@@ -2686,7 +2686,7 @@ function q1(s, e) {
2686
2686
  const _t = (s, e) => s[e++] & 255 | (s[e++] & 255) << 8;
2687
2687
  let B1 = class {
2688
2688
  constructor(e) {
2689
- this.blockLen = 16, this.outputLen = 16, this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.pos = 0, this.finished = !1, e = bh(e), ds(e, 32);
2689
+ this.blockLen = 16, this.outputLen = 16, this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.pos = 0, this.finished = !1, e = vh(e), ds(e, 32);
2690
2690
  const t = _t(e, 0), i = _t(e, 2), r = _t(e, 4), n = _t(e, 6), o = _t(e, 8), a = _t(e, 10), l = _t(e, 12), c = _t(e, 14);
2691
2691
  this.r[0] = t & 8191, this.r[1] = (t >>> 13 | i << 3) & 8191, this.r[2] = (i >>> 10 | r << 6) & 7939, this.r[3] = (r >>> 7 | n << 9) & 8191, this.r[4] = (n >>> 4 | o << 12) & 255, this.r[5] = o >>> 1 & 8190, this.r[6] = (o >>> 14 | a << 2) & 8191, this.r[7] = (a >>> 11 | l << 5) & 8065, this.r[8] = (l >>> 8 | c << 8) & 8191, this.r[9] = c >>> 5 & 127;
2692
2692
  for (let h = 0; h < 8; h++) this.pad[h] = _t(e, 16 + 2 * h);
@@ -2735,7 +2735,7 @@ let B1 = class {
2735
2735
  update(e) {
2736
2736
  Ld(this);
2737
2737
  const { buffer: t, blockLen: i } = this;
2738
- e = bh(e);
2738
+ e = vh(e);
2739
2739
  const r = e.length;
2740
2740
  for (let n = 0; n < r; ) {
2741
2741
  const o = Math.min(i - this.pos, r - n);
@@ -2771,7 +2771,7 @@ let B1 = class {
2771
2771
  }
2772
2772
  };
2773
2773
  function H1(s) {
2774
- const e = (i, r) => s(r).update(bh(i)).digest(), t = s(new Uint8Array(32));
2774
+ const e = (i, r) => s(r).update(vh(i)).digest(), t = s(new Uint8Array(32));
2775
2775
  return e.outputLen = t.outputLen, e.blockLen = t.blockLen, e.create = (i) => s(i), e;
2776
2776
  }
2777
2777
  const W1 = H1((s) => new B1(s));
@@ -2807,9 +2807,9 @@ const Q1 = (s) => (e, t, i) => ({ encrypt(r, n) {
2807
2807
  if (!x1(a, l)) throw new Error("invalid tag");
2808
2808
  return n.set(r.subarray(0, -16)), s(e, t, n, n, 1), Un(l), n;
2809
2809
  } }), ww = D1({ blockSize: 64, nonceLength: 12, tagLength: 16 }, Q1(K1));
2810
- let yw = class extends _u {
2810
+ let yw = class extends Cu {
2811
2811
  constructor(e, t) {
2812
- super(), this.finished = !1, this.destroyed = !1, Nu(e);
2812
+ super(), this.finished = !1, this.destroyed = !1, _u(e);
2813
2813
  const i = Ln(t);
2814
2814
  if (this.iHash = e.create(), typeof this.iHash.update != "function") throw new Error("Expected instance of class which extends utils.Hash");
2815
2815
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
@@ -2839,17 +2839,17 @@ let yw = class extends _u {
2839
2839
  this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
2840
2840
  }
2841
2841
  };
2842
- const Su = (s, e, t) => new yw(s, e).update(t).digest();
2843
- Su.create = (s, e) => new yw(s, e);
2842
+ const $u = (s, e, t) => new yw(s, e).update(t).digest();
2843
+ $u.create = (s, e) => new yw(s, e);
2844
2844
  function Z1(s, e, t) {
2845
- return Nu(s), t === void 0 && (t = new Uint8Array(s.outputLen)), Su(s, Ln(t), Ln(e));
2845
+ return _u(s), t === void 0 && (t = new Uint8Array(s.outputLen)), $u(s, Ln(t), Ln(e));
2846
2846
  }
2847
2847
  const wl = new Uint8Array([0]), Wd = new Uint8Array();
2848
2848
  function J1(s, e, t, i = 32) {
2849
- if (Nu(s), Go(i), i > 255 * s.outputLen) throw new Error("Length should be <= 255*HashLen");
2849
+ if (_u(s), Go(i), i > 255 * s.outputLen) throw new Error("Length should be <= 255*HashLen");
2850
2850
  const r = Math.ceil(i / s.outputLen);
2851
2851
  t === void 0 && (t = Wd);
2852
- const n = new Uint8Array(r * s.outputLen), o = Su.create(s, e), a = o._cloneInto(), l = new Uint8Array(o.outputLen);
2852
+ const n = new Uint8Array(r * s.outputLen), o = $u.create(s, e), a = o._cloneInto(), l = new Uint8Array(o.outputLen);
2853
2853
  for (let c = 0; c < r; c++) wl[0] = c + 1, a.update(c === 0 ? Wd : l).update(t).update(wl).digestInto(l), n.set(l, s.outputLen * c), o._cloneInto(a);
2854
2854
  return o.destroy(), a.destroy(), l.fill(0), wl.fill(0), n.slice(0, i);
2855
2855
  }
@@ -2865,7 +2865,7 @@ function tE(s, e, t) {
2865
2865
  function sE(s, e, t) {
2866
2866
  return s & e ^ s & t ^ e & t;
2867
2867
  }
2868
- let iE = class extends _u {
2868
+ let iE = class extends Cu {
2869
2869
  constructor(e, t, i, r) {
2870
2870
  super(), this.blockLen = e, this.outputLen = t, this.padOffset = i, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = fl(this.buffer);
2871
2871
  }
@@ -2945,11 +2945,11 @@ let nE = class extends iE {
2945
2945
  const Hc = ow(() => new nE());
2946
2946
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2947
2947
  const bw = BigInt(0);
2948
- function $u(s) {
2948
+ function Pu(s) {
2949
2949
  return s instanceof Uint8Array || ArrayBuffer.isView(s) && s.constructor.name === "Uint8Array";
2950
2950
  }
2951
2951
  function vw(s) {
2952
- if (!$u(s)) throw new Error("Uint8Array expected");
2952
+ if (!Pu(s)) throw new Error("Uint8Array expected");
2953
2953
  }
2954
2954
  const oE = Array.from({ length: 256 }, (s, e) => e.toString(16).padStart(2, "0"));
2955
2955
  function aE(s) {
@@ -2999,7 +2999,7 @@ function Gd(s, e, t) {
2999
2999
  } catch (n) {
3000
3000
  throw new Error(s + " must be hex string or Uint8Array, cause: " + n);
3001
3001
  }
3002
- else if ($u(e)) i = Uint8Array.from(e);
3002
+ else if (Pu(e)) i = Uint8Array.from(e);
3003
3003
  else throw new Error(s + " must be hex string or Uint8Array");
3004
3004
  const r = i.length;
3005
3005
  if (typeof t == "number" && r !== t) throw new Error(s + " of length " + t + " expected, got " + r);
@@ -3012,7 +3012,7 @@ function uE(s, e, t) {
3012
3012
  function Yd(s, e, t, i) {
3013
3013
  if (!uE(e, t, i)) throw new Error("expected valid " + s + ": " + t + " <= n < " + i + ", got " + e);
3014
3014
  }
3015
- const dE = { bigint: (s) => typeof s == "bigint", function: (s) => typeof s == "function", boolean: (s) => typeof s == "boolean", string: (s) => typeof s == "string", stringOrUint8Array: (s) => typeof s == "string" || $u(s), isSafeInteger: (s) => Number.isSafeInteger(s), array: (s) => Array.isArray(s), field: (s, e) => e.Fp.isValid(s), hash: (s) => typeof s == "function" && Number.isSafeInteger(s.outputLen) };
3015
+ const dE = { bigint: (s) => typeof s == "bigint", function: (s) => typeof s == "function", boolean: (s) => typeof s == "boolean", string: (s) => typeof s == "string", stringOrUint8Array: (s) => typeof s == "string" || Pu(s), isSafeInteger: (s) => Number.isSafeInteger(s), array: (s) => Array.isArray(s), field: (s, e) => e.Fp.isValid(s), hash: (s) => typeof s == "function" && Number.isSafeInteger(s.outputLen) };
3016
3016
  function pE(s, e, t = {}) {
3017
3017
  const i = (r, n, o) => {
3018
3018
  const a = dE[n];
@@ -3094,31 +3094,31 @@ function mE(s) {
3094
3094
  }
3095
3095
  return { scalarMult: f, scalarMultBase: w, getSharedSecret: (m, b) => f(m, b), getPublicKey: (m) => w(m), utils: { randomPrivateKey: () => e.randomBytes(e.nByteLength) }, GuBytes: y };
3096
3096
  }
3097
- const Eh = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
3097
+ const Ah = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
3098
3098
  BigInt(0);
3099
3099
  const wE = BigInt(1), Qd = BigInt(2), yE = BigInt(3), bE = BigInt(5);
3100
3100
  BigInt(8);
3101
3101
  function vE(s) {
3102
- const e = BigInt(10), t = BigInt(20), i = BigInt(40), r = BigInt(80), n = Eh, o = s * s % n * s % n, a = Us(o, Qd, n) * o % n, l = Us(a, wE, n) * s % n, c = Us(l, bE, n) * l % n, h = Us(c, e, n) * c % n, u = Us(h, t, n) * h % n, d = Us(u, i, n) * u % n, p = Us(d, r, n) * d % n, g = Us(p, r, n) * d % n, f = Us(g, e, n) * c % n;
3102
+ const e = BigInt(10), t = BigInt(20), i = BigInt(40), r = BigInt(80), n = Ah, o = s * s % n * s % n, a = Us(o, Qd, n) * o % n, l = Us(a, wE, n) * s % n, c = Us(l, bE, n) * l % n, h = Us(c, e, n) * c % n, u = Us(h, t, n) * h % n, d = Us(u, i, n) * u % n, p = Us(d, r, n) * d % n, g = Us(p, r, n) * d % n, f = Us(g, e, n) * c % n;
3103
3103
  return { pow_p_5_8: Us(f, Qd, n) * s % n, b2: o };
3104
3104
  }
3105
3105
  function IE(s) {
3106
3106
  return s[0] &= 248, s[31] &= 127, s[31] |= 64, s;
3107
3107
  }
3108
- const Ah = mE({ P: Eh, a: BigInt(486662), montgomeryBits: 255, nByteLength: 32, Gu: BigInt(9), powPminus2: (s) => {
3109
- const e = Eh, { pow_p_5_8: t, b2: i } = vE(s);
3108
+ const Nh = mE({ P: Ah, a: BigInt(486662), montgomeryBits: 255, nByteLength: 32, Gu: BigInt(9), powPminus2: (s) => {
3109
+ const e = Ah, { pow_p_5_8: t, b2: i } = vE(s);
3110
3110
  return Ew(Us(t, yE, e) * i, e);
3111
- }, adjustScalarBytes: IE, randomBytes: ga }), Aw = "base10", Bt = "base16", ji = "base64pad", ao = "base64url", fa = "utf8", Nw = 0, gi = 1, ma = 2, EE = 0, Zd = 1, jo = 12, Pu = 32;
3111
+ }, adjustScalarBytes: IE, randomBytes: ga }), Aw = "base10", Bt = "base16", ji = "base64pad", ao = "base64url", fa = "utf8", Nw = 0, gi = 1, ma = 2, EE = 0, Zd = 1, jo = 12, Tu = 32;
3112
3112
  function AE() {
3113
- const s = Ah.utils.randomPrivateKey(), e = Ah.getPublicKey(s);
3113
+ const s = Nh.utils.randomPrivateKey(), e = Nh.getPublicKey(s);
3114
3114
  return { privateKey: Ae(s, Bt), publicKey: Ae(e, Bt) };
3115
3115
  }
3116
- function Nh() {
3117
- const s = ga(Pu);
3116
+ function _h() {
3117
+ const s = ga(Tu);
3118
3118
  return Ae(s, Bt);
3119
3119
  }
3120
3120
  function NE(s, e) {
3121
- const t = Ah.getSharedSecret(Ge(s, Bt), Ge(e, Bt)), i = X1(Hc, t, void 0, void 0, Pu);
3121
+ const t = Nh.getSharedSecret(Ge(s, Bt), Ge(e, Bt)), i = X1(Hc, t, void 0, void 0, Tu);
3122
3122
  return Ae(i, Bt);
3123
3123
  }
3124
3124
  function rc(s) {
@@ -3166,7 +3166,7 @@ function Cw(s) {
3166
3166
  function Qo(s) {
3167
3167
  const { encoded: e, encoding: t = ji } = s, i = Ge(e, t), r = i.slice(EE, Zd), n = Zd;
3168
3168
  if (br(r) === gi) {
3169
- const c = n + Pu, h = c + jo, u = i.slice(n, c), d = i.slice(c, h), p = i.slice(h);
3169
+ const c = n + Tu, h = c + jo, u = i.slice(n, c), d = i.slice(c, h), p = i.slice(h);
3170
3170
  return { type: r, sealed: p, iv: d, senderPublicKey: u };
3171
3171
  }
3172
3172
  if (br(r) === ma) {
@@ -3289,11 +3289,11 @@ function zE(s, e) {
3289
3289
  Qn(i.accounts).includes(e) && t.push(...i.events);
3290
3290
  }), t;
3291
3291
  }
3292
- function Tu(s) {
3292
+ function Mu(s) {
3293
3293
  return s.includes(":");
3294
3294
  }
3295
3295
  function Po(s) {
3296
- return Tu(s) ? s.split(":")[0] : s;
3296
+ return Mu(s) ? s.split(":")[0] : s;
3297
3297
  }
3298
3298
  function FE(s) {
3299
3299
  const e = {};
@@ -3330,7 +3330,7 @@ function Kt(s) {
3330
3330
  function it(s, e) {
3331
3331
  return e && Kt(s) ? !0 : typeof s == "string" && !!s.trim().length;
3332
3332
  }
3333
- function Mu(s, e) {
3333
+ function Ou(s, e) {
3334
3334
  return e && Kt(s) ? !0 : typeof s == "number" && !isNaN(s);
3335
3335
  }
3336
3336
  function HE(s, e) {
@@ -3463,13 +3463,13 @@ function is(s) {
3463
3463
  return typeof s < "u" && typeof s !== null;
3464
3464
  }
3465
3465
  function rA(s) {
3466
- return !(!s || typeof s != "object" || !s.code || !Mu(s.code, !1) || !s.message || !it(s.message, !1));
3466
+ return !(!s || typeof s != "object" || !s.code || !Ou(s.code, !1) || !s.message || !it(s.message, !1));
3467
3467
  }
3468
3468
  function nA(s) {
3469
3469
  return !(Kt(s) || !it(s.method, !1));
3470
3470
  }
3471
3471
  function oA(s) {
3472
- return !(Kt(s) || Kt(s.result) && Kt(s.error) || !Mu(s.id, !1) || !it(s.jsonrpc, !1));
3472
+ return !(Kt(s) || Kt(s.result) && Kt(s.error) || !Ou(s.id, !1) || !it(s.jsonrpc, !1));
3473
3473
  }
3474
3474
  function aA(s) {
3475
3475
  return !(Kt(s) || !it(s.name, !1));
@@ -3525,7 +3525,7 @@ function uA(s) {
3525
3525
  }), e;
3526
3526
  }
3527
3527
  function dA(s, e) {
3528
- return Mu(s, !1) && s <= e.max && s >= e.min;
3528
+ return Ou(s, !1) && s <= e.max && s >= e.min;
3529
3529
  }
3530
3530
  function ap() {
3531
3531
  const s = pa();
@@ -3744,7 +3744,7 @@ let Tw = class {
3744
3744
  return this.events.emit("register_error", t), t;
3745
3745
  }
3746
3746
  };
3747
- const Mw = "wc", Ow = 2, _h = "core", si = `${Mw}@2:${_h}:`, EA = { logger: "error" }, AA = { database: ":memory:" }, NA = "crypto", hp = "client_ed25519_seed", _A = E.ONE_DAY, CA = "keychain", SA = "0.3", $A = "messages", PA = "0.3", up = E.SIX_HOURS, TA = "publisher", xw = "irn", MA = "error", Dw = "wss://relay.walletconnect.org", OA = "relayer", It = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, xA = "_subscription", Is = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, DA = 0.1, Ch = "2.19.0", Ve = { link_mode: "link_mode", relay: "relay" }, kA = "0.3", jA = "WALLETCONNECT_CLIENT_ID", dp = "WALLETCONNECT_LINK_MODE_APPS", hs = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, RA = "subscription", LA = "0.3", UA = E.FIVE_SECONDS * 1e3, zA = "pairing", FA = "0.3", lo = { wc_pairingDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 0 } } }, cr = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, Os = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, qA = "history", BA = "0.3", HA = "expirer", Cs = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, WA = "0.3", VA = "verify-api", KA = "https://verify.walletconnect.com", kw = "https://verify.walletconnect.org", Ro = kw, GA = `${Ro}/v3`, YA = [KA, kw], QA = "echo", ZA = "https://echo.walletconnect.com", Zs = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, hi = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, xs = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success" }, Xi = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found" }, er = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, ho = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, JA = 0.1, XA = "event-client", eN = 86400, tN = "https://pulse.walletconnect.org/batch";
3747
+ const Mw = "wc", Ow = 2, Ch = "core", si = `${Mw}@2:${Ch}:`, EA = { logger: "error" }, AA = { database: ":memory:" }, NA = "crypto", hp = "client_ed25519_seed", _A = E.ONE_DAY, CA = "keychain", SA = "0.3", $A = "messages", PA = "0.3", up = E.SIX_HOURS, TA = "publisher", xw = "irn", MA = "error", Dw = "wss://relay.walletconnect.org", OA = "relayer", It = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, xA = "_subscription", Is = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, DA = 0.1, Sh = "2.19.0", Ve = { link_mode: "link_mode", relay: "relay" }, kA = "0.3", jA = "WALLETCONNECT_CLIENT_ID", dp = "WALLETCONNECT_LINK_MODE_APPS", hs = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, RA = "subscription", LA = "0.3", UA = E.FIVE_SECONDS * 1e3, zA = "pairing", FA = "0.3", lo = { wc_pairingDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 0 } } }, cr = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, Os = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, qA = "history", BA = "0.3", HA = "expirer", Cs = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, WA = "0.3", VA = "verify-api", KA = "https://verify.walletconnect.com", kw = "https://verify.walletconnect.org", Ro = kw, GA = `${Ro}/v3`, YA = [KA, kw], QA = "echo", ZA = "https://echo.walletconnect.com", Zs = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, hi = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, xs = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success" }, Xi = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found" }, er = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, ho = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, JA = 0.1, XA = "event-client", eN = 86400, tN = "https://pulse.walletconnect.org/batch";
3748
3748
  function sN(s, e) {
3749
3749
  if (s.length >= 255) throw new TypeError("Alphabet too long");
3750
3750
  for (var t = new Uint8Array(256), i = 0; i < t.length; i++) t[i] = 255;
@@ -3914,19 +3914,19 @@ function Uw(s, e, t) {
3914
3914
  for (; s & JN; ) e[t++] = s & 255 | pp, s >>>= 7;
3915
3915
  return e[t] = s | 0, Uw.bytes = t - i + 1, e;
3916
3916
  }
3917
- var e_ = Sh, t_ = 128, gp = 127;
3918
- function Sh(s, i) {
3917
+ var e_ = $h, t_ = 128, gp = 127;
3918
+ function $h(s, i) {
3919
3919
  var t = 0, i = i || 0, r = 0, n = i, o, a = s.length;
3920
3920
  do {
3921
- if (n >= a) throw Sh.bytes = 0, new RangeError("Could not decode varint");
3921
+ if (n >= a) throw $h.bytes = 0, new RangeError("Could not decode varint");
3922
3922
  o = s[n++], t += r < 28 ? (o & gp) << r : (o & gp) * Math.pow(2, r), r += 7;
3923
3923
  } while (o >= t_);
3924
- return Sh.bytes = n - i, t;
3924
+ return $h.bytes = n - i, t;
3925
3925
  }
3926
3926
  var s_ = Math.pow(2, 7), i_ = Math.pow(2, 14), r_ = Math.pow(2, 21), n_ = Math.pow(2, 28), o_ = Math.pow(2, 35), a_ = Math.pow(2, 42), c_ = Math.pow(2, 49), l_ = Math.pow(2, 56), h_ = Math.pow(2, 63), u_ = function(s) {
3927
3927
  return s < s_ ? 1 : s < i_ ? 2 : s < r_ ? 3 : s < n_ ? 4 : s < o_ ? 5 : s < a_ ? 6 : s < c_ ? 7 : s < l_ ? 8 : s < h_ ? 9 : 10;
3928
3928
  }, d_ = { encode: ZN, decode: e_, encodingLength: u_ }, zw = d_;
3929
- const fp = (s, e, t = 0) => (zw.encode(s, e, t), e), mp = (s) => zw.encodingLength(s), $h = (s, e) => {
3929
+ const fp = (s, e, t = 0) => (zw.encode(s, e, t), e), mp = (s) => zw.encodingLength(s), Ph = (s, e) => {
3930
3930
  const t = e.byteLength, i = mp(s), r = i + mp(t), n = new Uint8Array(r + t);
3931
3931
  return fp(s, n, 0), fp(t, n, i), n.set(e, r), new p_(s, t, e, n);
3932
3932
  };
@@ -3943,13 +3943,13 @@ let g_ = class {
3943
3943
  digest(e) {
3944
3944
  if (e instanceof Uint8Array) {
3945
3945
  const t = this.encode(e);
3946
- return t instanceof Uint8Array ? $h(this.code, t) : t.then((i) => $h(this.code, i));
3946
+ return t instanceof Uint8Array ? Ph(this.code, t) : t.then((i) => Ph(this.code, i));
3947
3947
  } else throw Error("Unknown type, must be binary type");
3948
3948
  }
3949
3949
  };
3950
3950
  const qw = (s) => async (e) => new Uint8Array(await crypto.subtle.digest(s, e)), f_ = Fw({ name: "sha2-256", code: 18, encode: qw("SHA-256") }), m_ = Fw({ name: "sha2-512", code: 19, encode: qw("SHA-512") });
3951
3951
  var w_ = Object.freeze({ __proto__: null, sha256: f_, sha512: m_ });
3952
- const Bw = 0, y_ = "identity", Hw = jw, b_ = (s) => $h(Bw, Hw(s)), v_ = { code: Bw, name: y_, encode: Hw, digest: b_ };
3952
+ const Bw = 0, y_ = "identity", Hw = jw, b_ = (s) => Ph(Bw, Hw(s)), v_ = { code: Bw, name: y_, encode: Hw, digest: b_ };
3953
3953
  var I_ = Object.freeze({ __proto__: null, identity: v_ });
3954
3954
  new TextEncoder(), new TextDecoder();
3955
3955
  const wp = { ...gN, ...mN, ...yN, ...vN, ...AN, ...xN, ...jN, ...UN, ...HN, ...QN };
@@ -4023,7 +4023,7 @@ let S_ = class {
4023
4023
  var $_ = Object.defineProperty, P_ = (s, e, t) => e in s ? $_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ct = (s, e, t) => P_(s, typeof e != "symbol" ? e + "" : e, t);
4024
4024
  let T_ = class {
4025
4025
  constructor(e, t, i) {
4026
- this.core = e, this.logger = t, Ct(this, "name", NA), Ct(this, "keychain"), Ct(this, "randomSessionIdentifier", Nh()), Ct(this, "initialized", !1), Ct(this, "init", async () => {
4026
+ this.core = e, this.logger = t, Ct(this, "name", NA), Ct(this, "keychain"), Ct(this, "randomSessionIdentifier", _h()), Ct(this, "initialized", !1), Ct(this, "init", async () => {
4027
4027
  this.initialized || (await this.keychain.init(), this.initialized = !0);
4028
4028
  }), Ct(this, "hasKeys", (r) => (this.isInitialized(), this.keychain.has(r))), Ct(this, "getClientId", async () => {
4029
4029
  this.isInitialized();
@@ -4098,7 +4098,7 @@ let T_ = class {
4098
4098
  try {
4099
4099
  e = this.keychain.get(hp);
4100
4100
  } catch {
4101
- e = Nh(), await this.keychain.set(hp, e);
4101
+ e = _h(), await this.keychain.set(hp, e);
4102
4102
  }
4103
4103
  return N_(e, "base16");
4104
4104
  }
@@ -4167,11 +4167,11 @@ let x_ = class extends E0 {
4167
4167
  }
4168
4168
  }
4169
4169
  };
4170
- var D_ = Object.defineProperty, k_ = Object.defineProperties, j_ = Object.getOwnPropertyDescriptors, bp = Object.getOwnPropertySymbols, R_ = Object.prototype.hasOwnProperty, L_ = Object.prototype.propertyIsEnumerable, Ph = (s, e, t) => e in s ? D_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, ka = (s, e) => {
4171
- for (var t in e || (e = {})) R_.call(e, t) && Ph(s, t, e[t]);
4172
- if (bp) for (var t of bp(e)) L_.call(e, t) && Ph(s, t, e[t]);
4170
+ var D_ = Object.defineProperty, k_ = Object.defineProperties, j_ = Object.getOwnPropertyDescriptors, bp = Object.getOwnPropertySymbols, R_ = Object.prototype.hasOwnProperty, L_ = Object.prototype.propertyIsEnumerable, Th = (s, e, t) => e in s ? D_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, ka = (s, e) => {
4171
+ for (var t in e || (e = {})) R_.call(e, t) && Th(s, t, e[t]);
4172
+ if (bp) for (var t of bp(e)) L_.call(e, t) && Th(s, t, e[t]);
4173
4173
  return s;
4174
- }, Al = (s, e) => k_(s, j_(e)), Ds = (s, e, t) => Ph(s, typeof e != "symbol" ? e + "" : e, t);
4174
+ }, Al = (s, e) => k_(s, j_(e)), Ds = (s, e, t) => Th(s, typeof e != "symbol" ? e + "" : e, t);
4175
4175
  let U_ = class extends A0 {
4176
4176
  constructor(e, t) {
4177
4177
  super(e, t), this.relayer = e, this.logger = t, Ds(this, "events", new kt.EventEmitter()), Ds(this, "name", TA), Ds(this, "queue", /* @__PURE__ */ new Map()), Ds(this, "publishTimeout", E.toMiliseconds(E.ONE_MINUTE)), Ds(this, "initialPublishTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), Ds(this, "needsTransportRestart", !1), Ds(this, "publish", async (i, r, n) => {
@@ -4272,11 +4272,11 @@ let q_ = class {
4272
4272
  return Array.from(this.map.keys());
4273
4273
  }
4274
4274
  };
4275
- var B_ = Object.defineProperty, H_ = Object.defineProperties, W_ = Object.getOwnPropertyDescriptors, vp = Object.getOwnPropertySymbols, V_ = Object.prototype.hasOwnProperty, K_ = Object.prototype.propertyIsEnumerable, Th = (s, e, t) => e in s ? B_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, uo = (s, e) => {
4276
- for (var t in e || (e = {})) V_.call(e, t) && Th(s, t, e[t]);
4277
- if (vp) for (var t of vp(e)) K_.call(e, t) && Th(s, t, e[t]);
4275
+ var B_ = Object.defineProperty, H_ = Object.defineProperties, W_ = Object.getOwnPropertyDescriptors, vp = Object.getOwnPropertySymbols, V_ = Object.prototype.hasOwnProperty, K_ = Object.prototype.propertyIsEnumerable, Mh = (s, e, t) => e in s ? B_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, uo = (s, e) => {
4276
+ for (var t in e || (e = {})) V_.call(e, t) && Mh(s, t, e[t]);
4277
+ if (vp) for (var t of vp(e)) K_.call(e, t) && Mh(s, t, e[t]);
4278
4278
  return s;
4279
- }, Nl = (s, e) => H_(s, W_(e)), Pe = (s, e, t) => Th(s, typeof e != "symbol" ? e + "" : e, t);
4279
+ }, Nl = (s, e) => H_(s, W_(e)), Pe = (s, e, t) => Mh(s, typeof e != "symbol" ? e + "" : e, t);
4280
4280
  let G_ = class extends C0 {
4281
4281
  constructor(e, t) {
4282
4282
  super(e, t), this.relayer = e, this.logger = t, Pe(this, "subscriptions", /* @__PURE__ */ new Map()), Pe(this, "topicMap", new q_()), Pe(this, "events", new kt.EventEmitter()), Pe(this, "name", RA), Pe(this, "version", LA), Pe(this, "pending", /* @__PURE__ */ new Map()), Pe(this, "cached", []), Pe(this, "initialized", !1), Pe(this, "pendingSubscriptionWatchLabel", "pending_sub_watch_label"), Pe(this, "pollingInterval", 20), Pe(this, "storagePrefix", si), Pe(this, "subscribeTimeout", E.toMiliseconds(E.ONE_MINUTE)), Pe(this, "initialSubscribeTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), Pe(this, "clientId"), Pe(this, "batchSubscribeTopicsLimit", 500), Pe(this, "init", async () => {
@@ -4544,11 +4544,11 @@ let G_ = class extends C0 {
4544
4544
  return di(e + await this.getClientId());
4545
4545
  }
4546
4546
  };
4547
- var Y_ = Object.defineProperty, Ip = Object.getOwnPropertySymbols, Q_ = Object.prototype.hasOwnProperty, Z_ = Object.prototype.propertyIsEnumerable, Mh = (s, e, t) => e in s ? Y_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ep = (s, e) => {
4548
- for (var t in e || (e = {})) Q_.call(e, t) && Mh(s, t, e[t]);
4549
- if (Ip) for (var t of Ip(e)) Z_.call(e, t) && Mh(s, t, e[t]);
4547
+ var Y_ = Object.defineProperty, Ip = Object.getOwnPropertySymbols, Q_ = Object.prototype.hasOwnProperty, Z_ = Object.prototype.propertyIsEnumerable, Oh = (s, e, t) => e in s ? Y_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ep = (s, e) => {
4548
+ for (var t in e || (e = {})) Q_.call(e, t) && Oh(s, t, e[t]);
4549
+ if (Ip) for (var t of Ip(e)) Z_.call(e, t) && Oh(s, t, e[t]);
4550
4550
  return s;
4551
- }, pe = (s, e, t) => Mh(s, typeof e != "symbol" ? e + "" : e, t);
4551
+ }, pe = (s, e, t) => Oh(s, typeof e != "symbol" ? e + "" : e, t);
4552
4552
  let J_ = class extends N0 {
4553
4553
  constructor(e) {
4554
4554
  super(e), pe(this, "protocol", "wc"), pe(this, "version", 2), pe(this, "core"), pe(this, "logger"), pe(this, "events", new kt.EventEmitter()), pe(this, "provider"), pe(this, "messages"), pe(this, "subscriber"), pe(this, "publisher"), pe(this, "name", OA), pe(this, "transportExplicitlyClosed", !1), pe(this, "initialized", !1), pe(this, "connectionAttemptInProgress", !1), pe(this, "relayUrl"), pe(this, "projectId"), pe(this, "packageName"), pe(this, "bundleId"), pe(this, "hasExperiencedNetworkDisruption", !1), pe(this, "pingTimeout"), pe(this, "heartBeatTimeout", E.toMiliseconds(E.THIRTY_SECONDS + E.FIVE_SECONDS)), pe(this, "reconnectTimeout"), pe(this, "connectPromise"), pe(this, "reconnectInProgress", !1), pe(this, "requestsInFlight", []), pe(this, "connectTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), pe(this, "request", async (t) => {
@@ -4735,7 +4735,7 @@ let J_ = class extends N0 {
4735
4735
  async createProvider() {
4736
4736
  this.provider.connection && this.unregisterProviderListeners();
4737
4737
  const e = await this.core.crypto.signJWT(this.relayUrl);
4738
- this.provider = new Ye(new Tw(SI({ sdkVersion: Ch, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: !0, bundleId: this.bundleId, packageName: this.packageName }))), this.registerProviderListeners();
4738
+ this.provider = new Ye(new Tw(SI({ sdkVersion: Sh, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: !0, bundleId: this.bundleId, packageName: this.packageName }))), this.registerProviderListeners();
4739
4739
  }
4740
4740
  async recordMessageEvent(e) {
4741
4741
  const { topic: t, message: i } = e;
@@ -4786,11 +4786,11 @@ let J_ = class extends N0 {
4786
4786
  await this.confirmOnlineStateOrThrow(), !this.connected && await this.connect();
4787
4787
  }
4788
4788
  };
4789
- var X_ = Object.defineProperty, Ap = Object.getOwnPropertySymbols, eC = Object.prototype.hasOwnProperty, tC = Object.prototype.propertyIsEnumerable, Oh = (s, e, t) => e in s ? X_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Np = (s, e) => {
4790
- for (var t in e || (e = {})) eC.call(e, t) && Oh(s, t, e[t]);
4791
- if (Ap) for (var t of Ap(e)) tC.call(e, t) && Oh(s, t, e[t]);
4789
+ var X_ = Object.defineProperty, Ap = Object.getOwnPropertySymbols, eC = Object.prototype.hasOwnProperty, tC = Object.prototype.propertyIsEnumerable, xh = (s, e, t) => e in s ? X_(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Np = (s, e) => {
4790
+ for (var t in e || (e = {})) eC.call(e, t) && xh(s, t, e[t]);
4791
+ if (Ap) for (var t of Ap(e)) tC.call(e, t) && xh(s, t, e[t]);
4792
4792
  return s;
4793
- }, Qt = (s, e, t) => Oh(s, typeof e != "symbol" ? e + "" : e, t);
4793
+ }, Qt = (s, e, t) => xh(s, typeof e != "symbol" ? e + "" : e, t);
4794
4794
  let Tr = class extends _0 {
4795
4795
  constructor(e, t, i, r = si, n = void 0) {
4796
4796
  super(e, t, i, r), this.core = e, this.logger = t, this.name = i, Qt(this, "map", /* @__PURE__ */ new Map()), Qt(this, "version", kA), Qt(this, "cached", []), Qt(this, "initialized", !1), Qt(this, "getKey"), Qt(this, "storagePrefix", si), Qt(this, "recentlyDeleted", []), Qt(this, "recentlyDeletedLimit", 200), Qt(this, "init", async () => {
@@ -4875,7 +4875,7 @@ let rC = class {
4875
4875
  this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...i])];
4876
4876
  }), ae(this, "create", async (i) => {
4877
4877
  this.isInitialized();
4878
- const r = Nh(), n = await this.core.crypto.setSymKey(r), o = ut(E.FIVE_MINUTES), a = { protocol: xw }, l = { topic: n, expiry: o, relay: a, active: !1, methods: i == null ? void 0 : i.methods }, c = tp({ protocol: this.core.protocol, version: this.core.version, topic: n, symKey: r, relay: a, expiryTimestamp: o, methods: i == null ? void 0 : i.methods });
4878
+ const r = _h(), n = await this.core.crypto.setSymKey(r), o = ut(E.FIVE_MINUTES), a = { protocol: xw }, l = { topic: n, expiry: o, relay: a, active: !1, methods: i == null ? void 0 : i.methods }, c = tp({ protocol: this.core.protocol, version: this.core.version, topic: n, symKey: r, relay: a, expiryTimestamp: o, methods: i == null ? void 0 : i.methods });
4879
4879
  return this.events.emit(cr.create, l), this.core.expirer.set(n, o), await this.pairings.set(n, l), await this.core.relayer.subscribe(n, { transportType: i == null ? void 0 : i.transportType }), { topic: n, uri: c };
4880
4880
  }), ae(this, "pair", async (i) => {
4881
4881
  this.isInitialized();
@@ -5401,7 +5401,7 @@ let pC = class extends $0 {
5401
5401
  const o = xE(r, n.publicKey), a = { hasExpired: E.toMiliseconds(o.exp) < Date.now(), payload: o };
5402
5402
  if (a.hasExpired) throw this.logger.warn("resolve: jwt attestation expired"), new Error("JWT attestation expired");
5403
5403
  return { origin: a.payload.origin, isScam: a.payload.isScam, isVerified: a.payload.isVerified };
5404
- }), this.logger = Ne(t, this.name), this.abortController = new AbortController(), this.isDevEnv = Au(), this.init();
5404
+ }), this.logger = Ne(t, this.name), this.abortController = new AbortController(), this.isDevEnv = Nu(), this.init();
5405
5405
  }
5406
5406
  get storeKey() {
5407
5407
  return this.storagePrefix + this.version + this.core.customStoragePrefix + "//verify:public:key";
@@ -5422,16 +5422,16 @@ let mC = class extends P0 {
5422
5422
  }), this.logger = Ne(t, this.context);
5423
5423
  }
5424
5424
  };
5425
- var wC = Object.defineProperty, Cp = Object.getOwnPropertySymbols, yC = Object.prototype.hasOwnProperty, bC = Object.prototype.propertyIsEnumerable, xh = (s, e, t) => e in s ? wC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, po = (s, e) => {
5426
- for (var t in e || (e = {})) yC.call(e, t) && xh(s, t, e[t]);
5427
- if (Cp) for (var t of Cp(e)) bC.call(e, t) && xh(s, t, e[t]);
5425
+ var wC = Object.defineProperty, Cp = Object.getOwnPropertySymbols, yC = Object.prototype.hasOwnProperty, bC = Object.prototype.propertyIsEnumerable, Dh = (s, e, t) => e in s ? wC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, po = (s, e) => {
5426
+ for (var t in e || (e = {})) yC.call(e, t) && Dh(s, t, e[t]);
5427
+ if (Cp) for (var t of Cp(e)) bC.call(e, t) && Dh(s, t, e[t]);
5428
5428
  return s;
5429
- }, gt = (s, e, t) => xh(s, typeof e != "symbol" ? e + "" : e, t);
5429
+ }, gt = (s, e, t) => Dh(s, typeof e != "symbol" ? e + "" : e, t);
5430
5430
  let vC = class extends T0 {
5431
5431
  constructor(e, t, i = !0) {
5432
5432
  super(e, t, i), this.core = e, this.logger = t, gt(this, "context", XA), gt(this, "storagePrefix", si), gt(this, "storageVersion", JA), gt(this, "events", /* @__PURE__ */ new Map()), gt(this, "shouldPersist", !1), gt(this, "init", async () => {
5433
- if (!Au()) try {
5434
- const r = { eventId: Sd(), timestamp: Date.now(), domain: this.getAppDomain(), props: { event: "INIT", type: "", properties: { client_id: await this.core.crypto.getClientId(), user_agent: Xm(this.core.relayer.protocol, this.core.relayer.version, Ch) } } };
5433
+ if (!Nu()) try {
5434
+ const r = { eventId: Sd(), timestamp: Date.now(), domain: this.getAppDomain(), props: { event: "INIT", type: "", properties: { client_id: await this.core.crypto.getClientId(), user_agent: Xm(this.core.relayer.protocol, this.core.relayer.version, Sh) } } };
5435
5435
  await this.sendEvent([r]);
5436
5436
  } catch (r) {
5437
5437
  this.logger.warn(r);
@@ -5482,7 +5482,7 @@ let vC = class extends T0 {
5482
5482
  }
5483
5483
  }), gt(this, "sendEvent", async (r) => {
5484
5484
  const n = this.getAppDomain() ? "" : "&sp=desktop";
5485
- return await fetch(`${tN}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${Ch}${n}`, { method: "POST", body: JSON.stringify(r) });
5485
+ return await fetch(`${tN}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${Sh}${n}`, { method: "POST", body: JSON.stringify(r) });
5486
5486
  }), gt(this, "getAppDomain", () => Jm().url), this.logger = Ne(t, this.context), this.telemetryEnabled = i, i ? this.restore().then(async () => {
5487
5487
  await this.submit(), this.setEventListeners();
5488
5488
  }) : this.persist();
@@ -5491,20 +5491,20 @@ let vC = class extends T0 {
5491
5491
  return this.storagePrefix + this.storageVersion + this.core.customStoragePrefix + "//" + this.context;
5492
5492
  }
5493
5493
  };
5494
- var IC = Object.defineProperty, Sp = Object.getOwnPropertySymbols, EC = Object.prototype.hasOwnProperty, AC = Object.prototype.propertyIsEnumerable, Dh = (s, e, t) => e in s ? IC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, $p = (s, e) => {
5495
- for (var t in e || (e = {})) EC.call(e, t) && Dh(s, t, e[t]);
5496
- if (Sp) for (var t of Sp(e)) AC.call(e, t) && Dh(s, t, e[t]);
5494
+ var IC = Object.defineProperty, Sp = Object.getOwnPropertySymbols, EC = Object.prototype.hasOwnProperty, AC = Object.prototype.propertyIsEnumerable, kh = (s, e, t) => e in s ? IC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, $p = (s, e) => {
5495
+ for (var t in e || (e = {})) EC.call(e, t) && kh(s, t, e[t]);
5496
+ if (Sp) for (var t of Sp(e)) AC.call(e, t) && kh(s, t, e[t]);
5497
5497
  return s;
5498
- }, ke = (s, e, t) => Dh(s, typeof e != "symbol" ? e + "" : e, t);
5498
+ }, ke = (s, e, t) => kh(s, typeof e != "symbol" ? e + "" : e, t);
5499
5499
  let NC = class Vw extends w0 {
5500
5500
  constructor(e) {
5501
5501
  var t;
5502
- super(e), ke(this, "protocol", Mw), ke(this, "version", Ow), ke(this, "name", _h), ke(this, "relayUrl"), ke(this, "projectId"), ke(this, "customStoragePrefix"), ke(this, "events", new kt.EventEmitter()), ke(this, "logger"), ke(this, "heartbeat"), ke(this, "relayer"), ke(this, "crypto"), ke(this, "storage"), ke(this, "history"), ke(this, "expirer"), ke(this, "pairing"), ke(this, "verify"), ke(this, "echoClient"), ke(this, "linkModeSupportedApps"), ke(this, "eventClient"), ke(this, "initialized", !1), ke(this, "logChunkController"), ke(this, "on", (o, a) => this.events.on(o, a)), ke(this, "once", (o, a) => this.events.once(o, a)), ke(this, "off", (o, a) => this.events.off(o, a)), ke(this, "removeListener", (o, a) => this.events.removeListener(o, a)), ke(this, "dispatchEnvelope", ({ topic: o, message: a, sessionExists: l }) => {
5502
+ super(e), ke(this, "protocol", Mw), ke(this, "version", Ow), ke(this, "name", Ch), ke(this, "relayUrl"), ke(this, "projectId"), ke(this, "customStoragePrefix"), ke(this, "events", new kt.EventEmitter()), ke(this, "logger"), ke(this, "heartbeat"), ke(this, "relayer"), ke(this, "crypto"), ke(this, "storage"), ke(this, "history"), ke(this, "expirer"), ke(this, "pairing"), ke(this, "verify"), ke(this, "echoClient"), ke(this, "linkModeSupportedApps"), ke(this, "eventClient"), ke(this, "initialized", !1), ke(this, "logChunkController"), ke(this, "on", (o, a) => this.events.on(o, a)), ke(this, "once", (o, a) => this.events.once(o, a)), ke(this, "off", (o, a) => this.events.off(o, a)), ke(this, "removeListener", (o, a) => this.events.removeListener(o, a)), ke(this, "dispatchEnvelope", ({ topic: o, message: a, sessionExists: l }) => {
5503
5503
  if (!o || !a) return;
5504
5504
  const c = { topic: o, message: a, publishedAt: Date.now(), transportType: Ve.link_mode };
5505
5505
  this.relayer.onLinkMessageEvent(c, { sessionExists: l });
5506
5506
  }), this.projectId = e == null ? void 0 : e.projectId, this.relayUrl = (e == null ? void 0 : e.relayUrl) || Dw, this.customStoragePrefix = e != null && e.customStoragePrefix ? `:${e.customStoragePrefix}` : "";
5507
- const i = yi({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : EA.logger, name: _h }), { logger: r, chunkLoggerController: n } = Iu({ opts: i, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger });
5507
+ const i = yi({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : EA.logger, name: Ch }), { logger: r, chunkLoggerController: n } = Eu({ opts: i, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger });
5508
5508
  this.logChunkController = n, (t = this.logChunkController) != null && t.downloadLogsBlobInBrowser && (window.downloadLogsBlobInBrowser = async () => {
5509
5509
  var o, a;
5510
5510
  (o = this.logChunkController) != null && o.downloadLogsBlobInBrowser && ((a = this.logChunkController) == null || a.downloadLogsBlobInBrowser({ clientId: await this.crypto.getClientId() }));
@@ -5549,12 +5549,12 @@ let $C = class {
5549
5549
  this.client = e;
5550
5550
  }
5551
5551
  };
5552
- const Kw = "wc", Gw = 2, Yw = "client", Ou = `${Kw}@${Gw}:${Yw}:`, _l = { name: Yw, logger: "error" }, Tp = "WALLETCONNECT_DEEPLINK_CHOICE", TC = "proposal", Mp = "Proposal expired", MC = "session", qr = E.SEVEN_DAYS, OC = "engine", ft = { wc_sessionPropose: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: E.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: E.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, Cl = { min: E.FIVE_MINUTES, max: E.SEVEN_DAYS }, Vs = { idle: "IDLE", active: "ACTIVE" }, Op = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" } }, xC = "request", DC = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], kC = "wc", jC = "auth", RC = "authKeys", LC = "pairingTopics", UC = "requests", Vc = `${kC}@${1.5}:${jC}:`, nc = `${Vc}:PUB_KEY`;
5553
- var zC = Object.defineProperty, FC = Object.defineProperties, qC = Object.getOwnPropertyDescriptors, xp = Object.getOwnPropertySymbols, BC = Object.prototype.hasOwnProperty, HC = Object.prototype.propertyIsEnumerable, kh = (s, e, t) => e in s ? zC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ze = (s, e) => {
5554
- for (var t in e || (e = {})) BC.call(e, t) && kh(s, t, e[t]);
5555
- if (xp) for (var t of xp(e)) HC.call(e, t) && kh(s, t, e[t]);
5552
+ const Kw = "wc", Gw = 2, Yw = "client", xu = `${Kw}@${Gw}:${Yw}:`, _l = { name: Yw, logger: "error" }, Tp = "WALLETCONNECT_DEEPLINK_CHOICE", TC = "proposal", Mp = "Proposal expired", MC = "session", qr = E.SEVEN_DAYS, OC = "engine", ft = { wc_sessionPropose: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: E.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: E.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, Cl = { min: E.FIVE_MINUTES, max: E.SEVEN_DAYS }, Vs = { idle: "IDLE", active: "ACTIVE" }, Op = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" } }, xC = "request", DC = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], kC = "wc", jC = "auth", RC = "authKeys", LC = "pairingTopics", UC = "requests", Vc = `${kC}@${1.5}:${jC}:`, nc = `${Vc}:PUB_KEY`;
5553
+ var zC = Object.defineProperty, FC = Object.defineProperties, qC = Object.getOwnPropertyDescriptors, xp = Object.getOwnPropertySymbols, BC = Object.prototype.hasOwnProperty, HC = Object.prototype.propertyIsEnumerable, jh = (s, e, t) => e in s ? zC(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ze = (s, e) => {
5554
+ for (var t in e || (e = {})) BC.call(e, t) && jh(s, t, e[t]);
5555
+ if (xp) for (var t of xp(e)) HC.call(e, t) && jh(s, t, e[t]);
5556
5556
  return s;
5557
- }, Zt = (s, e) => FC(s, qC(e)), x = (s, e, t) => kh(s, typeof e != "symbol" ? e + "" : e, t);
5557
+ }, Zt = (s, e) => FC(s, qC(e)), x = (s, e, t) => jh(s, typeof e != "symbol" ? e + "" : e, t);
5558
5558
  let WC = class extends PC {
5559
5559
  constructor(e) {
5560
5560
  super(e), x(this, "name", OC), x(this, "events", new Wn()), x(this, "initialized", !1), x(this, "requestQueue", { state: Vs.idle, queue: [] }), x(this, "sessionRequestQueue", { state: Vs.idle, queue: [] }), x(this, "requestQueueDelay", E.ONE_SECOND), x(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), x(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), x(this, "recentlyDeletedLimit", 200), x(this, "relayMessageCache", []), x(this, "pendingSessions", /* @__PURE__ */ new Map()), x(this, "init", async () => {
@@ -5764,7 +5764,7 @@ let WC = class extends PC {
5764
5764
  const { cacaos: be, responder: oe } = N.result, Oe = [], lt = [];
5765
5765
  for (const He of be) {
5766
5766
  await kd({ cacao: He, projectId: this.client.core.projectId }) || (this.client.logger.error(He, "Signature verification failed"), R(Te("SESSION_SETTLEMENT_FAILED", "Signature verification failed")));
5767
- const { p: Qi } = He, Zi = ic(Qi.resources), so = [yh(Qi.iss)], al = Ac(Qi.iss);
5767
+ const { p: Qi } = He, Zi = ic(Qi.resources), so = [bh(Qi.iss)], al = Ac(Qi.iss);
5768
5768
  if (Zi) {
5769
5769
  const Ji = jd(Zi), cl = Rd(Zi);
5770
5770
  Oe.push(...Ji), so.push(...cl);
@@ -5807,7 +5807,7 @@ let WC = class extends PC {
5807
5807
  throw await this.sendError({ id: i, topic: h, error: _, encodeOpts: u }), new Error(_.message);
5808
5808
  }
5809
5809
  n.addTrace(er.cacaos_verified);
5810
- const { p: w } = y, m = ic(w.resources), b = [yh(w.iss)], I = Ac(w.iss);
5810
+ const { p: w } = y, m = ic(w.resources), b = [bh(w.iss)], I = Ac(w.iss);
5811
5811
  if (m) {
5812
5812
  const _ = jd(m), $ = Rd(m);
5813
5813
  d.push(..._), b.push(...$);
@@ -6428,7 +6428,7 @@ let WC = class extends PC {
6428
6428
  n && this.client.session.update(i, { transportType: Ve.link_mode }), this.client.core.dispatchEnvelope({ topic: i, message: r, sessionExists: n });
6429
6429
  }), x(this, "registerLinkModeListeners", async () => {
6430
6430
  var t;
6431
- if (Au() || Gi() && (t = this.client.metadata.redirect) != null && t.linkMode) {
6431
+ if (Nu() || Gi() && (t = this.client.metadata.redirect) != null && t.linkMode) {
6432
6432
  const i = A.global == null ? void 0 : A.global.Linking;
6433
6433
  if (typeof i < "u") {
6434
6434
  i.addEventListener("url", this.handleLinkModeMessage, this.client.name);
@@ -6571,15 +6571,15 @@ let WC = class extends PC {
6571
6571
  }
6572
6572
  }, VC = class extends Tr {
6573
6573
  constructor(e, t) {
6574
- super(e, t, TC, Ou), this.core = e, this.logger = t;
6574
+ super(e, t, TC, xu), this.core = e, this.logger = t;
6575
6575
  }
6576
6576
  }, KC = class extends Tr {
6577
6577
  constructor(e, t) {
6578
- super(e, t, MC, Ou), this.core = e, this.logger = t;
6578
+ super(e, t, MC, xu), this.core = e, this.logger = t;
6579
6579
  }
6580
6580
  }, GC = class extends Tr {
6581
6581
  constructor(e, t) {
6582
- super(e, t, xC, Ou, (i) => i.id), this.core = e, this.logger = t;
6582
+ super(e, t, xC, xu, (i) => i.id), this.core = e, this.logger = t;
6583
6583
  }
6584
6584
  }, YC = class extends Tr {
6585
6585
  constructor(e, t) {
@@ -6824,7 +6824,7 @@ function p$(s) {
6824
6824
  var e = a$(s);
6825
6825
  return e == h$ || e == u$ || e == l$ || e == d$;
6826
6826
  }
6827
- var xu = p$, g$ = Zn, f$ = g$["__core-js_shared__"], m$ = f$, $l = m$, Up = function() {
6827
+ var Du = p$, g$ = Zn, f$ = g$["__core-js_shared__"], m$ = f$, $l = m$, Up = function() {
6828
6828
  var s = /[^.]+$/.exec($l && $l.keys && $l.keys.IE_PROTO || "");
6829
6829
  return s ? "Symbol(src)_1." + s : "";
6830
6830
  }();
@@ -6845,7 +6845,7 @@ function I$(s) {
6845
6845
  }
6846
6846
  return "";
6847
6847
  }
6848
- var E$ = I$, A$ = xu, N$ = y$, _$ = Mr, C$ = E$, S$ = /[\\^$.*+?()[\]{}|]/g, $$ = /^\[object .+?Constructor\]$/, P$ = Function.prototype, T$ = Object.prototype, M$ = P$.toString, O$ = T$.hasOwnProperty, x$ = RegExp("^" + M$.call(O$).replace(S$, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
6848
+ var E$ = I$, A$ = Du, N$ = y$, _$ = Mr, C$ = E$, S$ = /[\\^$.*+?()[\]{}|]/g, $$ = /^\[object .+?Constructor\]$/, P$ = Function.prototype, T$ = Object.prototype, M$ = P$.toString, O$ = T$.hasOwnProperty, x$ = RegExp("^" + M$.call(O$).replace(S$, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
6849
6849
  function D$(s) {
6850
6850
  if (!_$(s) || N$(s)) return !1;
6851
6851
  var e = A$(s) ? x$ : $$;
@@ -6860,7 +6860,7 @@ function z$(s, e) {
6860
6860
  var t = U$(s, e);
6861
6861
  return L$(t) ? t : void 0;
6862
6862
  }
6863
- var Du = z$, F$ = Du, q$ = Zn, B$ = F$(q$, "Map"), ty = B$, H$ = Du, W$ = H$(Object, "create"), Zc = W$, zp = Zc;
6863
+ var ku = z$, F$ = ku, q$ = Zn, B$ = F$(q$, "Map"), ty = B$, H$ = ku, W$ = H$(Object, "create"), Zc = W$, zp = Zc;
6864
6864
  function V$() {
6865
6865
  this.__data__ = zp ? zp(null) : {}, this.size = 0;
6866
6866
  }
@@ -6954,7 +6954,7 @@ function En(s) {
6954
6954
  this.size = e.size;
6955
6955
  }
6956
6956
  En.prototype.clear = QP, En.prototype.delete = ZP, En.prototype.get = JP, En.prototype.has = XP, En.prototype.set = eT;
6957
- var tT = En, sT = Du, iT = function() {
6957
+ var tT = En, sT = ku, iT = function() {
6958
6958
  try {
6959
6959
  var s = sT(Object, "defineProperty");
6960
6960
  return s({}, "", {}), s;
@@ -6964,7 +6964,7 @@ var tT = En, sT = Du, iT = function() {
6964
6964
  function rT(s, e, t) {
6965
6965
  e == "__proto__" && qp ? qp(s, e, { configurable: !0, enumerable: !0, value: t, writable: !0 }) : s[e] = t;
6966
6966
  }
6967
- var ku = rT, nT = ku, oT = Kc;
6967
+ var ju = rT, nT = ju, oT = Kc;
6968
6968
  function aT(s, e, t) {
6969
6969
  (t !== void 0 && !oT(s[e], t) || t === void 0 && !(e in s)) && nT(s, e, t);
6970
6970
  }
@@ -6978,7 +6978,7 @@ function cT(s) {
6978
6978
  return e;
6979
6979
  };
6980
6980
  }
6981
- var lT = cT, hT = lT, uT = hT(), dT = uT, jh = { exports: {} };
6981
+ var lT = cT, hT = lT, uT = hT(), dT = uT, Rh = { exports: {} };
6982
6982
  (function(s, e) {
6983
6983
  var t = Zn, i = e && !e.nodeType && e, r = i && !0 && s && !s.nodeType && s, n = r && r.exports === i, o = n ? t.Buffer : void 0, a = o ? o.allocUnsafe : void 0;
6984
6984
  function l(c, h) {
@@ -6987,7 +6987,7 @@ var lT = cT, hT = lT, uT = hT(), dT = uT, jh = { exports: {} };
6987
6987
  return c.copy(d), d;
6988
6988
  }
6989
6989
  s.exports = l;
6990
- })(jh, jh.exports);
6990
+ })(Rh, Rh.exports);
6991
6991
  var pT = Zn, gT = pT.Uint8Array, fT = gT, Bp = fT;
6992
6992
  function mT(s) {
6993
6993
  var e = new s.constructor(s.byteLength);
@@ -7045,11 +7045,11 @@ var qT = FT, Wp = qT, BT = ya, oy = Object.prototype, HT = oy.hasOwnProperty, WT
7045
7045
  function YT(s) {
7046
7046
  return typeof s == "number" && s > -1 && s % 1 == 0 && s <= GT;
7047
7047
  }
7048
- var ly = YT, QT = xu, ZT = ly;
7048
+ var ly = YT, QT = Du, ZT = ly;
7049
7049
  function JT(s) {
7050
7050
  return s != null && ZT(s.length) && !QT(s);
7051
7051
  }
7052
- var ju = JT, XT = ju, e2 = ya;
7052
+ var Ru = JT, XT = Ru, e2 = ya;
7053
7053
  function t2(s) {
7054
7054
  return e2(s) && XT(s);
7055
7055
  }
@@ -7081,7 +7081,7 @@ function H2(s) {
7081
7081
  return s(e);
7082
7082
  };
7083
7083
  }
7084
- var W2 = H2, Rh = { exports: {} };
7084
+ var W2 = H2, Lh = { exports: {} };
7085
7085
  (function(s, e) {
7086
7086
  var t = Jw, i = e && !e.nodeType && e, r = i && !0 && s && !s.nodeType && s, n = r && r.exports === i, o = n && t.process, a = function() {
7087
7087
  try {
@@ -7091,17 +7091,17 @@ var W2 = H2, Rh = { exports: {} };
7091
7091
  }
7092
7092
  }();
7093
7093
  s.exports = a;
7094
- })(Rh, Rh.exports);
7095
- var V2 = B2, K2 = W2, Vp = Rh.exports, Kp = Vp && Vp.isTypedArray, G2 = Kp ? K2(Kp) : V2, uy = G2;
7094
+ })(Lh, Lh.exports);
7095
+ var V2 = B2, K2 = W2, Vp = Lh.exports, Kp = Vp && Vp.isTypedArray, G2 = Kp ? K2(Kp) : V2, uy = G2;
7096
7096
  function Y2(s, e) {
7097
7097
  if (!(e === "constructor" && typeof s[e] == "function") && e != "__proto__") return s[e];
7098
7098
  }
7099
- var dy = Y2, Q2 = ku, Z2 = Kc, J2 = Object.prototype, X2 = J2.hasOwnProperty;
7099
+ var dy = Y2, Q2 = ju, Z2 = Kc, J2 = Object.prototype, X2 = J2.hasOwnProperty;
7100
7100
  function eM(s, e, t) {
7101
7101
  var i = s[e];
7102
7102
  (!(X2.call(s, e) && Z2(i, t)) || t === void 0 && !(e in s)) && Q2(s, e, t);
7103
7103
  }
7104
- var tM = eM, sM = tM, iM = ku;
7104
+ var tM = eM, sM = tM, iM = ju;
7105
7105
  function rM(s, e, t, i) {
7106
7106
  var r = !t;
7107
7107
  t || (t = {});
@@ -7140,7 +7140,7 @@ function $M(s) {
7140
7140
  for (var i in s) i == "constructor" && (e || !SM.call(s, i)) || t.push(i);
7141
7141
  return t;
7142
7142
  }
7143
- var PM = $M, TM = vM, MM = PM, OM = ju;
7143
+ var PM = $M, TM = vM, MM = PM, OM = Ru;
7144
7144
  function xM(s) {
7145
7145
  return OM(s) ? TM(s, !0) : MM(s);
7146
7146
  }
@@ -7148,7 +7148,7 @@ var gy = xM, DM = nM, kM = gy;
7148
7148
  function jM(s) {
7149
7149
  return DM(s, kM(s));
7150
7150
  }
7151
- var RM = jM, Gp = iy, LM = jh.exports, UM = vT, zM = ET, FM = jT, Yp = ay, Qp = cy, qM = s2, BM = Cc.exports, HM = xu, WM = Mr, VM = g2, KM = uy, Zp = dy, GM = RM;
7151
+ var RM = jM, Gp = iy, LM = Rh.exports, UM = vT, zM = ET, FM = jT, Yp = ay, Qp = cy, qM = s2, BM = Cc.exports, HM = Du, WM = Mr, VM = g2, KM = uy, Zp = dy, GM = RM;
7152
7152
  function YM(s, e, t, i, r, n, o) {
7153
7153
  var a = Zp(s, t), l = Zp(e, t), c = o.get(l);
7154
7154
  if (c) {
@@ -7222,7 +7222,7 @@ var IO = vO, EO = mO, AO = IO, NO = AO(EO), _O = NO, CO = my, SO = hO, $O = _O;
7222
7222
  function PO(s, e) {
7223
7223
  return $O(SO(s, e, CO), s + "");
7224
7224
  }
7225
- var TO = PO, MO = Kc, OO = ju, xO = py, DO = Mr;
7225
+ var TO = PO, MO = Kc, OO = Ru, xO = py, DO = Mr;
7226
7226
  function kO(s, e, t) {
7227
7227
  if (!DO(t)) return !1;
7228
7228
  var i = typeof e;
@@ -7275,7 +7275,7 @@ function sg(s) {
7275
7275
  const n = {};
7276
7276
  if (!Zo(s)) return n;
7277
7277
  for (const [o, a] of Object.entries(s)) {
7278
- const l = Tu(o) ? [o] : a.chains, c = a.methods || [], h = a.events || [], u = a.rpcMap || {}, d = Po(o);
7278
+ const l = Mu(o) ? [o] : a.chains, c = a.methods || [], h = a.events || [], u = a.rpcMap || {}, d = Po(o);
7279
7279
  n[d] = QO(Ra(Ra({}, n[d]), a), { chains: sc(l, (e = n[d]) == null ? void 0 : e.chains), methods: sc(c, (t = n[d]) == null ? void 0 : t.methods), events: sc(h, (i = n[d]) == null ? void 0 : i.events), rpcMap: Ra(Ra({}, u), (r = n[d]) == null ? void 0 : r.rpcMap) });
7280
7280
  }
7281
7281
  return n;
@@ -7286,7 +7286,7 @@ function JO(s) {
7286
7286
  function ig(s) {
7287
7287
  const e = {};
7288
7288
  for (const [t, i] of Object.entries(s)) {
7289
- const r = i.methods || [], n = i.events || [], o = i.accounts || [], a = Tu(t) ? [t] : i.chains ? i.chains : wy(i.accounts);
7289
+ const r = i.methods || [], n = i.events || [], o = i.accounts || [], a = Mu(t) ? [t] : i.chains ? i.chains : wy(i.accounts);
7290
7290
  e[t] = { chains: a, methods: r, events: n, accounts: o };
7291
7291
  }
7292
7292
  return e;
@@ -7348,11 +7348,11 @@ class tx {
7348
7348
  return new Ye(new tt(i, we("disableProviderPing")));
7349
7349
  }
7350
7350
  }
7351
- var sx = Object.defineProperty, ix = Object.defineProperties, rx = Object.getOwnPropertyDescriptors, rg = Object.getOwnPropertySymbols, nx = Object.prototype.hasOwnProperty, ox = Object.prototype.propertyIsEnumerable, Lh = (s, e, t) => e in s ? sx(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, ng = (s, e) => {
7352
- for (var t in e || (e = {})) nx.call(e, t) && Lh(s, t, e[t]);
7353
- if (rg) for (var t of rg(e)) ox.call(e, t) && Lh(s, t, e[t]);
7351
+ var sx = Object.defineProperty, ix = Object.defineProperties, rx = Object.getOwnPropertyDescriptors, rg = Object.getOwnPropertySymbols, nx = Object.prototype.hasOwnProperty, ox = Object.prototype.propertyIsEnumerable, Uh = (s, e, t) => e in s ? sx(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, ng = (s, e) => {
7352
+ for (var t in e || (e = {})) nx.call(e, t) && Uh(s, t, e[t]);
7353
+ if (rg) for (var t of rg(e)) ox.call(e, t) && Uh(s, t, e[t]);
7354
7354
  return s;
7355
- }, og = (s, e) => ix(s, rx(e)), Hr = (s, e, t) => Lh(s, typeof e != "symbol" ? e + "" : e, t);
7355
+ }, og = (s, e) => ix(s, rx(e)), Hr = (s, e, t) => Uh(s, typeof e != "symbol" ? e + "" : e, t);
7356
7356
  class ax {
7357
7357
  constructor(e) {
7358
7358
  Hr(this, "name", "eip155"), Hr(this, "client"), Hr(this, "chainId"), Hr(this, "namespace"), Hr(this, "httpProviders"), Hr(this, "events"), this.namespace = e.namespace, this.events = we("events"), this.client = we("client"), this.httpProviders = this.createHttpProviders(), this.chainId = parseInt(this.getDefaultChain());
@@ -7943,17 +7943,17 @@ class Dx {
7943
7943
  return new Ye(new tt(i, we("disableProviderPing")));
7944
7944
  }
7945
7945
  }
7946
- var kx = Object.defineProperty, jx = Object.defineProperties, Rx = Object.getOwnPropertyDescriptors, ag = Object.getOwnPropertySymbols, Lx = Object.prototype.hasOwnProperty, Ux = Object.prototype.propertyIsEnumerable, Uh = (s, e, t) => e in s ? kx(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, La = (s, e) => {
7947
- for (var t in e || (e = {})) Lx.call(e, t) && Uh(s, t, e[t]);
7948
- if (ag) for (var t of ag(e)) Ux.call(e, t) && Uh(s, t, e[t]);
7946
+ var kx = Object.defineProperty, jx = Object.defineProperties, Rx = Object.getOwnPropertyDescriptors, ag = Object.getOwnPropertySymbols, Lx = Object.prototype.hasOwnProperty, Ux = Object.prototype.propertyIsEnumerable, zh = (s, e, t) => e in s ? kx(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, La = (s, e) => {
7947
+ for (var t in e || (e = {})) Lx.call(e, t) && zh(s, t, e[t]);
7948
+ if (ag) for (var t of ag(e)) Ux.call(e, t) && zh(s, t, e[t]);
7949
7949
  return s;
7950
- }, Ol = (s, e) => jx(s, Rx(e)), ks = (s, e, t) => Uh(s, typeof e != "symbol" ? e + "" : e, t);
7951
- class Ru {
7950
+ }, Ol = (s, e) => jx(s, Rx(e)), ks = (s, e, t) => zh(s, typeof e != "symbol" ? e + "" : e, t);
7951
+ class Lu {
7952
7952
  constructor(e) {
7953
7953
  ks(this, "client"), ks(this, "namespaces"), ks(this, "optionalNamespaces"), ks(this, "sessionProperties"), ks(this, "events", new Wn()), ks(this, "rpcProviders", {}), ks(this, "session"), ks(this, "providerOpts"), ks(this, "logger"), ks(this, "uri"), ks(this, "disableProviderPing", !1), this.providerOpts = e, this.logger = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Vn(yi({ level: (e == null ? void 0 : e.logger) || Dp })), this.disableProviderPing = (e == null ? void 0 : e.disableProviderPing) || !1;
7954
7954
  }
7955
7955
  static async init(e) {
7956
- const t = new Ru(e);
7956
+ const t = new Lu(e);
7957
7957
  return await t.initialize(), t;
7958
7958
  }
7959
7959
  async request(e, t, i) {
@@ -8155,7 +8155,7 @@ class Ru {
8155
8155
  return await this.client.core.storage.getItem(`${kp}/${e}`);
8156
8156
  }
8157
8157
  }
8158
- const zx = Ru, by = {
8158
+ const zx = Lu, by = {
8159
8159
  caipNetworkIdToNumber(s) {
8160
8160
  return s ? Number(s.split(":")[1]) : void 0;
8161
8161
  },
@@ -8706,8 +8706,8 @@ function Ri(s, e) {
8706
8706
  "--w3m-background": "#121313"
8707
8707
  };
8708
8708
  }
8709
- const eD = Symbol(), cg = Object.getPrototypeOf, zh = /* @__PURE__ */ new WeakMap(), tD = (s) => s && (zh.has(s) ? zh.get(s) : cg(s) === Object.prototype || cg(s) === Array.prototype), sD = (s) => tD(s) && s[eD] || null, lg = (s, e = !0) => {
8710
- zh.set(s, e);
8709
+ const eD = Symbol(), cg = Object.getPrototypeOf, Fh = /* @__PURE__ */ new WeakMap(), tD = (s) => s && (Fh.has(s) ? Fh.get(s) : cg(s) === Object.prototype || cg(s) === Array.prototype), sD = (s) => tD(s) && s[eD] || null, lg = (s, e = !0) => {
8710
+ Fh.set(s, e);
8711
8711
  }, Sc = {}, Dl = (s) => typeof s == "object" && s !== null, $i = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakSet(), iD = (s = Object.is, e = (c, h) => new Proxy(c, h), t = (c) => Dl(c) && !Mo.has(c) && (Array.isArray(c) || !(Symbol.iterator in c)) && !(c instanceof WeakMap) && !(c instanceof WeakSet) && !(c instanceof Error) && !(c instanceof Number) && !(c instanceof Date) && !(c instanceof String) && !(c instanceof RegExp) && !(c instanceof ArrayBuffer), i = (c) => {
8712
8712
  switch (c.status) {
8713
8713
  case "fulfilled":
@@ -12662,12 +12662,12 @@ function ac(s) {
12662
12662
  return ac(s.toJSON());
12663
12663
  throw new Error("[unstorage] Cannot stringify value!");
12664
12664
  }
12665
- const Fh = "base64:";
12665
+ const qh = "base64:";
12666
12666
  function BD(s) {
12667
- return typeof s == "string" ? s : Fh + VD(s);
12667
+ return typeof s == "string" ? s : qh + VD(s);
12668
12668
  }
12669
12669
  function HD(s) {
12670
- return typeof s != "string" || !s.startsWith(Fh) ? s : WD(s.slice(Fh.length));
12670
+ return typeof s != "string" || !s.startsWith(qh) ? s : WD(s.slice(qh.length));
12671
12671
  }
12672
12672
  function WD(s) {
12673
12673
  return globalThis.Buffer ? A.Buffer.from(s, "base64") : Uint8Array.from(
@@ -13285,7 +13285,7 @@ function eo(s, { size: e }) {
13285
13285
  maxSize: e
13286
13286
  });
13287
13287
  }
13288
- function qh(s, e = {}) {
13288
+ function Bh(s, e = {}) {
13289
13289
  const { signed: t } = e;
13290
13290
  e.size && eo(s, { size: e.size });
13291
13291
  const i = BigInt(s);
@@ -13295,10 +13295,10 @@ function qh(s, e = {}) {
13295
13295
  return i <= n ? i : i - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
13296
13296
  }
13297
13297
  function gk(s, e = {}) {
13298
- return Number(qh(s, e));
13298
+ return Number(Bh(s, e));
13299
13299
  }
13300
13300
  const fk = /* @__PURE__ */ Array.from({ length: 256 }, (s, e) => e.toString(16).padStart(2, "0"));
13301
- function Bh(s, e = {}) {
13301
+ function Hh(s, e = {}) {
13302
13302
  return typeof s == "number" || typeof s == "bigint" ? Ty(s, e) : typeof s == "string" ? yk(s, e) : typeof s == "boolean" ? mk(s, e) : Py(s, e);
13303
13303
  }
13304
13304
  function mk(s, e = {}) {
@@ -13514,7 +13514,7 @@ function Bk(s, e = 24) {
13514
13514
  }
13515
13515
  t.fill(0);
13516
13516
  }
13517
- class Lu extends Dk {
13517
+ class Uu extends Dk {
13518
13518
  // NOTE: we accept arguments in bytes instead of bits here.
13519
13519
  constructor(e, t, i, r = !1, n = 24) {
13520
13520
  if (super(), this.blockLen = e, this.suffix = t, this.outputLen = i, this.enableXOF = r, this.rounds = n, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, $c(i), 0 >= this.blockLen || this.blockLen >= 200)
@@ -13575,13 +13575,13 @@ class Lu extends Dk {
13575
13575
  }
13576
13576
  _cloneInto(e) {
13577
13577
  const { blockLen: t, suffix: i, outputLen: r, rounds: n, enableXOF: o } = this;
13578
- return e || (e = new Lu(t, i, r, o, n)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = n, e.suffix = i, e.outputLen = r, e.enableXOF = o, e.destroyed = this.destroyed, e;
13578
+ return e || (e = new Uu(t, i, r, o, n)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = n, e.suffix = i, e.outputLen = r, e.enableXOF = o, e.destroyed = this.destroyed, e;
13579
13579
  }
13580
13580
  }
13581
- const Hk = (s, e, t) => kk(() => new Lu(e, s, t)), Wk = /* @__PURE__ */ Hk(1, 136, 256 / 8);
13581
+ const Hk = (s, e, t) => kk(() => new Uu(e, s, t)), Wk = /* @__PURE__ */ Hk(1, 136, 256 / 8);
13582
13582
  function Ry(s, e) {
13583
13583
  const t = e || "hex", i = Wk(Xo(s, { strict: !1 }) ? vk(s) : s);
13584
- return t === "bytes" ? i : Bh(i);
13584
+ return t === "bytes" ? i : Hh(i);
13585
13585
  }
13586
13586
  class Vk extends Map {
13587
13587
  constructor(e) {
@@ -13619,13 +13619,13 @@ function Gk(s) {
13619
13619
  return Kk(`0x${e}`);
13620
13620
  }
13621
13621
  async function Yk({ hash: s, signature: e }) {
13622
- const t = Xo(s) ? s : Bh(s), { secp256k1: i } = await import("./secp256k1-DPqpw2CY.mjs");
13622
+ const t = Xo(s) ? s : Hh(s), { secp256k1: i } = await import("./secp256k1-CI3_SM8F.mjs");
13623
13623
  return `0x${(() => {
13624
13624
  if (typeof e == "object" && "r" in e && "s" in e) {
13625
13625
  const { r: c, s: h, v: u, yParity: d } = e, p = Number(d ?? u), g = Sg(p);
13626
- return new i.Signature(qh(c), qh(h)).addRecoveryBit(g);
13626
+ return new i.Signature(Bh(c), Bh(h)).addRecoveryBit(g);
13627
13627
  }
13628
- const o = Xo(e) ? e : Bh(e), a = gk(`0x${o.slice(130)}`), l = Sg(a);
13628
+ const o = Xo(e) ? e : Hh(e), a = gk(`0x${o.slice(130)}`), l = Sg(a);
13629
13629
  return i.Signature.fromCompact(o.substring(2, 130)).addRecoveryBit(l);
13630
13630
  })().recoverPublicKey(t.substring(2)).toHex(!1)}`;
13631
13631
  }
@@ -13797,10 +13797,10 @@ function a3({ protocol: s, version: e, relayUrl: t, sdkVersion: i, auth: r, proj
13797
13797
  function pr(s, e) {
13798
13798
  return s.filter((t) => e.includes(t)).length === s.length;
13799
13799
  }
13800
- function Hh(s) {
13800
+ function Wh(s) {
13801
13801
  return Object.fromEntries(s.entries());
13802
13802
  }
13803
- function Wh(s) {
13803
+ function Vh(s) {
13804
13804
  return new Map(Object.entries(s));
13805
13805
  }
13806
13806
  function or(s = E.FIVE_MINUTES, e) {
@@ -13919,7 +13919,7 @@ function Tg() {
13919
13919
  return (s === "x" ? e : e & 3 | 8).toString(16);
13920
13920
  });
13921
13921
  }
13922
- function Uu() {
13922
+ function zu() {
13923
13923
  return typeof A.process < "u" && A.process.env.IS_VITEST === "true";
13924
13924
  }
13925
13925
  function g3() {
@@ -13952,7 +13952,7 @@ function sl(s, ...e) {
13952
13952
  if (!y3(s)) throw new Error("Uint8Array expected");
13953
13953
  if (e.length > 0 && !e.includes(s.length)) throw new Error("Uint8Array expected of length " + e + ", got length=" + s.length);
13954
13954
  }
13955
- function zu(s) {
13955
+ function Fu(s) {
13956
13956
  if (typeof s != "function" || typeof s.create != "function") throw new Error("Hash should be wrapped by utils.wrapConstructor");
13957
13957
  ea(s.outputLen), ea(s.blockLen);
13958
13958
  }
@@ -14001,7 +14001,7 @@ function S3(s) {
14001
14001
  function Fn(s) {
14002
14002
  return typeof s == "string" && (s = S3(s)), sl(s), s;
14003
14003
  }
14004
- let Fu = class {
14004
+ let qu = class {
14005
14005
  clone() {
14006
14006
  return this._cloneInto();
14007
14007
  }
@@ -14044,7 +14044,7 @@ function k3(s, e = 24) {
14044
14044
  }
14045
14045
  t.fill(0);
14046
14046
  }
14047
- let j3 = class Qy extends Fu {
14047
+ let j3 = class Qy extends qu {
14048
14048
  constructor(e, t, i, r = !1, n = 24) {
14049
14049
  if (super(), this.blockLen = e, this.suffix = t, this.outputLen = i, this.enableXOF = r, this.rounds = n, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, ea(i), 0 >= this.blockLen || this.blockLen >= 200) throw new Error("Sha3 supports only keccak-f1600 function");
14050
14050
  this.state = new Uint8Array(200), this.state32 = _3(this.state);
@@ -14150,19 +14150,19 @@ var W3 = Object.defineProperty, V3 = Object.defineProperties, K3 = Object.getOwn
14150
14150
  if (jg) for (var t of jg(e)) Y3.call(e, t) && Rg(s, t, e[t]);
14151
14151
  return s;
14152
14152
  }, Z3 = (s, e) => V3(s, K3(e));
14153
- const J3 = "did:pkh:", qu = (s) => s == null ? void 0 : s.split(":"), X3 = (s) => {
14154
- const e = s && qu(s);
14153
+ const J3 = "did:pkh:", Bu = (s) => s == null ? void 0 : s.split(":"), X3 = (s) => {
14154
+ const e = s && Bu(s);
14155
14155
  if (e) return s.includes(J3) ? e[3] : e[1];
14156
- }, Vh = (s) => {
14157
- const e = s && qu(s);
14156
+ }, Kh = (s) => {
14157
+ const e = s && Bu(s);
14158
14158
  if (e) return e[2] + ":" + e[3];
14159
14159
  }, Tc = (s) => {
14160
- const e = s && qu(s);
14160
+ const e = s && Bu(s);
14161
14161
  if (e) return e.pop();
14162
14162
  };
14163
14163
  async function Lg(s) {
14164
14164
  const { cacao: e, projectId: t } = s, { s: i, p: r } = e, n = Jy(r, r.iss), o = Tc(r.iss);
14165
- return await z3(o, n, i, Vh(r.iss), t);
14165
+ return await z3(o, n, i, Kh(r.iss), t);
14166
14166
  }
14167
14167
  const Jy = (s, e) => {
14168
14168
  const t = `${s.domain} wants you to sign in with your Ethereum account:`, i = Tc(e);
@@ -14310,9 +14310,9 @@ function d4(s) {
14310
14310
  if (typeof s != "string") throw new Error("string expected");
14311
14311
  return new Uint8Array(new TextEncoder().encode(s));
14312
14312
  }
14313
- function Kh(s) {
14313
+ function Gh(s) {
14314
14314
  if (typeof s == "string") s = d4(s);
14315
- else if (eb(s)) s = Gh(s);
14315
+ else if (eb(s)) s = Yh(s);
14316
14316
  else throw new Error("Uint8Array expected, got " + typeof s);
14317
14317
  return s;
14318
14318
  }
@@ -14366,7 +14366,7 @@ function Hg(s, e, t, i) {
14366
14366
  function m4(s) {
14367
14367
  return s.byteOffset % 4 === 0;
14368
14368
  }
14369
- function Gh(s) {
14369
+ function Yh(s) {
14370
14370
  return Uint8Array.from(s);
14371
14371
  }
14372
14372
  function qn(...s) {
@@ -14376,12 +14376,12 @@ const tb = (s) => Uint8Array.from(s.split("").map((e) => e.charCodeAt(0))), w4 =
14376
14376
  function ge(s, e) {
14377
14377
  return s << e | s >>> 32 - e;
14378
14378
  }
14379
- function Yh(s) {
14379
+ function Qh(s) {
14380
14380
  return s.byteOffset % 4 === 0;
14381
14381
  }
14382
14382
  const Wa = 64, I4 = 16, sb = 2 ** 32 - 1, Wg = new Uint32Array();
14383
14383
  function E4(s, e, t, i, r, n, o, a) {
14384
- const l = r.length, c = new Uint8Array(Wa), h = Fi(c), u = Yh(r) && Yh(n), d = u ? Fi(r) : Wg, p = u ? Fi(n) : Wg;
14384
+ const l = r.length, c = new Uint8Array(Wa), h = Fi(c), u = Qh(r) && Qh(n), d = u ? Fi(r) : Wg, p = u ? Fi(n) : Wg;
14385
14385
  for (let g = 0; g < l; o++) {
14386
14386
  if (s(e, t, i, h, o, a), o >= sb) throw new Error("arx: counter overflow");
14387
14387
  const f = Math.min(Wa, l - g);
@@ -14406,10 +14406,10 @@ function A4(s, e) {
14406
14406
  if (h.length < d) throw new Error(`arx: output (${h.length}) is shorter than data (${d})`);
14407
14407
  const p = [];
14408
14408
  let g = a.length, f, y;
14409
- if (g === 32) p.push(f = Gh(a)), y = v4;
14409
+ if (g === 32) p.push(f = Yh(a)), y = v4;
14410
14410
  else if (g === 16 && t) f = new Uint8Array(32), f.set(a), f.set(a, 16), y = b4, p.push(f);
14411
14411
  else throw new Error(`arx: invalid 32-byte key, got length=${g}`);
14412
- Yh(l) || p.push(l = Gh(l));
14412
+ Qh(l) || p.push(l = Yh(l));
14413
14413
  const w = Fi(f);
14414
14414
  if (i) {
14415
14415
  if (l.length !== 24) throw new Error("arx: extended nonce must be 24 bytes");
@@ -14428,7 +14428,7 @@ function A4(s, e) {
14428
14428
  const $t = (s, e) => s[e++] & 255 | (s[e++] & 255) << 8;
14429
14429
  let N4 = class {
14430
14430
  constructor(e) {
14431
- this.blockLen = 16, this.outputLen = 16, this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.pos = 0, this.finished = !1, e = Kh(e), ps(e, 32);
14431
+ this.blockLen = 16, this.outputLen = 16, this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.pos = 0, this.finished = !1, e = Gh(e), ps(e, 32);
14432
14432
  const t = $t(e, 0), i = $t(e, 2), r = $t(e, 4), n = $t(e, 6), o = $t(e, 8), a = $t(e, 10), l = $t(e, 12), c = $t(e, 14);
14433
14433
  this.r[0] = t & 8191, this.r[1] = (t >>> 13 | i << 3) & 8191, this.r[2] = (i >>> 10 | r << 6) & 7939, this.r[3] = (r >>> 7 | n << 9) & 8191, this.r[4] = (n >>> 4 | o << 12) & 255, this.r[5] = o >>> 1 & 8190, this.r[6] = (o >>> 14 | a << 2) & 8191, this.r[7] = (a >>> 11 | l << 5) & 8065, this.r[8] = (l >>> 8 | c << 8) & 8191, this.r[9] = c >>> 5 & 127;
14434
14434
  for (let h = 0; h < 8; h++) this.pad[h] = $t(e, 16 + 2 * h);
@@ -14477,7 +14477,7 @@ let N4 = class {
14477
14477
  update(e) {
14478
14478
  Fg(this);
14479
14479
  const { buffer: t, blockLen: i } = this;
14480
- e = Kh(e);
14480
+ e = Gh(e);
14481
14481
  const r = e.length;
14482
14482
  for (let n = 0; n < r; ) {
14483
14483
  const o = Math.min(i - this.pos, r - n);
@@ -14513,7 +14513,7 @@ let N4 = class {
14513
14513
  }
14514
14514
  };
14515
14515
  function _4(s) {
14516
- const e = (i, r) => s(r).update(Kh(i)).digest(), t = s(new Uint8Array(32));
14516
+ const e = (i, r) => s(r).update(Gh(i)).digest(), t = s(new Uint8Array(32));
14517
14517
  return e.outputLen = t.outputLen, e.blockLen = t.blockLen, e.create = (i) => s(i), e;
14518
14518
  }
14519
14519
  const C4 = _4((s) => new N4(s));
@@ -14549,9 +14549,9 @@ const M4 = (s) => (e, t, i) => ({ encrypt(r, n) {
14549
14549
  if (!g4(a, l)) throw new Error("invalid tag");
14550
14550
  return n.set(r.subarray(0, -16)), s(e, t, n, n, 1), qn(l), n;
14551
14551
  } }), ib = f4({ blockSize: 64, nonceLength: 12, tagLength: 16 }, M4($4));
14552
- let rb = class extends Fu {
14552
+ let rb = class extends qu {
14553
14553
  constructor(e, t) {
14554
- super(), this.finished = !1, this.destroyed = !1, zu(e);
14554
+ super(), this.finished = !1, this.destroyed = !1, Fu(e);
14555
14555
  const i = Fn(t);
14556
14556
  if (this.iHash = e.create(), typeof this.iHash.update != "function") throw new Error("Expected instance of class which extends utils.Hash");
14557
14557
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
@@ -14581,17 +14581,17 @@ let rb = class extends Fu {
14581
14581
  this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
14582
14582
  }
14583
14583
  };
14584
- const Bu = (s, e, t) => new rb(s, e).update(t).digest();
14585
- Bu.create = (s, e) => new rb(s, e);
14584
+ const Hu = (s, e, t) => new rb(s, e).update(t).digest();
14585
+ Hu.create = (s, e) => new rb(s, e);
14586
14586
  function O4(s, e, t) {
14587
- return zu(s), t === void 0 && (t = new Uint8Array(s.outputLen)), Bu(s, Fn(t), Fn(e));
14587
+ return Fu(s), t === void 0 && (t = new Uint8Array(s.outputLen)), Hu(s, Fn(t), Fn(e));
14588
14588
  }
14589
14589
  const Bl = new Uint8Array([0]), Gg = new Uint8Array();
14590
14590
  function x4(s, e, t, i = 32) {
14591
- if (zu(s), ea(i), i > 255 * s.outputLen) throw new Error("Length should be <= 255*HashLen");
14591
+ if (Fu(s), ea(i), i > 255 * s.outputLen) throw new Error("Length should be <= 255*HashLen");
14592
14592
  const r = Math.ceil(i / s.outputLen);
14593
14593
  t === void 0 && (t = Gg);
14594
- const n = new Uint8Array(r * s.outputLen), o = Bu.create(s, e), a = o._cloneInto(), l = new Uint8Array(o.outputLen);
14594
+ const n = new Uint8Array(r * s.outputLen), o = Hu.create(s, e), a = o._cloneInto(), l = new Uint8Array(o.outputLen);
14595
14595
  for (let c = 0; c < r; c++) Bl[0] = c + 1, a.update(c === 0 ? Gg : l).update(t).update(Bl).digestInto(l), n.set(l, s.outputLen * c), o._cloneInto(a);
14596
14596
  return o.destroy(), a.destroy(), l.fill(0), Bl.fill(0), n.slice(0, i);
14597
14597
  }
@@ -14607,7 +14607,7 @@ function j4(s, e, t) {
14607
14607
  function R4(s, e, t) {
14608
14608
  return s & e ^ s & t ^ e & t;
14609
14609
  }
14610
- class L4 extends Fu {
14610
+ class L4 extends qu {
14611
14611
  constructor(e, t, i, r) {
14612
14612
  super(), this.blockLen = e, this.outputLen = t, this.padOffset = i, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = Fl(this.buffer);
14613
14613
  }
@@ -14687,11 +14687,11 @@ let z4 = class extends L4 {
14687
14687
  const il = Vy(() => new z4());
14688
14688
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
14689
14689
  const nb = BigInt(0);
14690
- function Hu(s) {
14690
+ function Wu(s) {
14691
14691
  return s instanceof Uint8Array || ArrayBuffer.isView(s) && s.constructor.name === "Uint8Array";
14692
14692
  }
14693
14693
  function ob(s) {
14694
- if (!Hu(s)) throw new Error("Uint8Array expected");
14694
+ if (!Wu(s)) throw new Error("Uint8Array expected");
14695
14695
  }
14696
14696
  const F4 = Array.from({ length: 256 }, (s, e) => e.toString(16).padStart(2, "0"));
14697
14697
  function q4(s) {
@@ -14741,7 +14741,7 @@ function Zg(s, e, t) {
14741
14741
  } catch (n) {
14742
14742
  throw new Error(s + " must be hex string or Uint8Array, cause: " + n);
14743
14743
  }
14744
- else if (Hu(e)) i = Uint8Array.from(e);
14744
+ else if (Wu(e)) i = Uint8Array.from(e);
14745
14745
  else throw new Error(s + " must be hex string or Uint8Array");
14746
14746
  const r = i.length;
14747
14747
  if (typeof t == "number" && r !== t) throw new Error(s + " of length " + t + " expected, got " + r);
@@ -14754,7 +14754,7 @@ function V4(s, e, t) {
14754
14754
  function Jg(s, e, t, i) {
14755
14755
  if (!V4(e, t, i)) throw new Error("expected valid " + s + ": " + t + " <= n < " + i + ", got " + e);
14756
14756
  }
14757
- const K4 = { bigint: (s) => typeof s == "bigint", function: (s) => typeof s == "function", boolean: (s) => typeof s == "boolean", string: (s) => typeof s == "string", stringOrUint8Array: (s) => typeof s == "string" || Hu(s), isSafeInteger: (s) => Number.isSafeInteger(s), array: (s) => Array.isArray(s), field: (s, e) => e.Fp.isValid(s), hash: (s) => typeof s == "function" && Number.isSafeInteger(s.outputLen) };
14757
+ const K4 = { bigint: (s) => typeof s == "bigint", function: (s) => typeof s == "function", boolean: (s) => typeof s == "boolean", string: (s) => typeof s == "string", stringOrUint8Array: (s) => typeof s == "string" || Wu(s), isSafeInteger: (s) => Number.isSafeInteger(s), array: (s) => Array.isArray(s), field: (s, e) => e.Fp.isValid(s), hash: (s) => typeof s == "function" && Number.isSafeInteger(s.outputLen) };
14758
14758
  function G4(s, e, t = {}) {
14759
14759
  const i = (r, n, o) => {
14760
14760
  const a = K4[n];
@@ -14836,31 +14836,31 @@ function Z4(s) {
14836
14836
  }
14837
14837
  return { scalarMult: f, scalarMultBase: w, getSharedSecret: (m, b) => f(m, b), getPublicKey: (m) => w(m), utils: { randomPrivateKey: () => e.randomBytes(e.nByteLength) }, GuBytes: y };
14838
14838
  }
14839
- const Qh = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
14839
+ const Zh = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
14840
14840
  BigInt(0);
14841
14841
  const J4 = BigInt(1), Xg = BigInt(2), X4 = BigInt(3), ej = BigInt(5);
14842
14842
  BigInt(8);
14843
14843
  function tj(s) {
14844
- const e = BigInt(10), t = BigInt(20), i = BigInt(40), r = BigInt(80), n = Qh, o = s * s % n * s % n, a = zs(o, Xg, n) * o % n, l = zs(a, J4, n) * s % n, c = zs(l, ej, n) * l % n, h = zs(c, e, n) * c % n, u = zs(h, t, n) * h % n, d = zs(u, i, n) * u % n, p = zs(d, r, n) * d % n, g = zs(p, r, n) * d % n, f = zs(g, e, n) * c % n;
14844
+ const e = BigInt(10), t = BigInt(20), i = BigInt(40), r = BigInt(80), n = Zh, o = s * s % n * s % n, a = zs(o, Xg, n) * o % n, l = zs(a, J4, n) * s % n, c = zs(l, ej, n) * l % n, h = zs(c, e, n) * c % n, u = zs(h, t, n) * h % n, d = zs(u, i, n) * u % n, p = zs(d, r, n) * d % n, g = zs(p, r, n) * d % n, f = zs(g, e, n) * c % n;
14845
14845
  return { pow_p_5_8: zs(f, Xg, n) * s % n, b2: o };
14846
14846
  }
14847
14847
  function sj(s) {
14848
14848
  return s[0] &= 248, s[31] &= 127, s[31] |= 64, s;
14849
14849
  }
14850
- const Zh = Z4({ P: Qh, a: BigInt(486662), montgomeryBits: 255, nByteLength: 32, Gu: BigInt(9), powPminus2: (s) => {
14851
- const e = Qh, { pow_p_5_8: t, b2: i } = tj(s);
14850
+ const Jh = Z4({ P: Zh, a: BigInt(486662), montgomeryBits: 255, nByteLength: 32, Gu: BigInt(9), powPminus2: (s) => {
14851
+ const e = Zh, { pow_p_5_8: t, b2: i } = tj(s);
14852
14852
  return cb(zs(t, X4, e) * i, e);
14853
- }, adjustScalarBytes: sj, randomBytes: Ea }), lb = "base10", Ht = "base16", Ui = "base64pad", Io = "base64url", Aa = "utf8", hb = 0, mi = 1, Na = 2, ij = 0, ef = 1, Uo = 12, Wu = 32;
14853
+ }, adjustScalarBytes: sj, randomBytes: Ea }), lb = "base10", Ht = "base16", Ui = "base64pad", Io = "base64url", Aa = "utf8", hb = 0, mi = 1, Na = 2, ij = 0, ef = 1, Uo = 12, Vu = 32;
14854
14854
  function rj() {
14855
- const s = Zh.utils.randomPrivateKey(), e = Zh.getPublicKey(s);
14855
+ const s = Jh.utils.randomPrivateKey(), e = Jh.getPublicKey(s);
14856
14856
  return { privateKey: Ae(s, Ht), publicKey: Ae(e, Ht) };
14857
14857
  }
14858
- function Jh() {
14859
- const s = Ea(Wu);
14858
+ function Xh() {
14859
+ const s = Ea(Vu);
14860
14860
  return Ae(s, Ht);
14861
14861
  }
14862
14862
  function nj(s, e) {
14863
- const t = Zh.getSharedSecret(Ge(s, Ht), Ge(e, Ht)), i = D4(il, t, void 0, void 0, Wu);
14863
+ const t = Jh.getSharedSecret(Ge(s, Ht), Ge(e, Ht)), i = D4(il, t, void 0, void 0, Vu);
14864
14864
  return Ae(i, Ht);
14865
14865
  }
14866
14866
  function uc(s) {
@@ -14908,7 +14908,7 @@ function db(s) {
14908
14908
  function sa(s) {
14909
14909
  const { encoded: e, encoding: t = Ui } = s, i = Ge(e, t), r = i.slice(ij, ef), n = ef;
14910
14910
  if (Nr(r) === mi) {
14911
- const c = n + Wu, h = c + Uo, u = i.slice(n, c), d = i.slice(c, h), p = i.slice(h);
14911
+ const c = n + Vu, h = c + Uo, u = i.slice(n, c), d = i.slice(c, h), p = i.slice(h);
14912
14912
  return { type: r, sealed: p, iv: d, senderPublicKey: u };
14913
14913
  }
14914
14914
  if (Nr(r) === Na) {
@@ -15031,11 +15031,11 @@ function Ij(s, e) {
15031
15031
  to(i.accounts).includes(e) && t.push(...i.events);
15032
15032
  }), t;
15033
15033
  }
15034
- function Vu(s) {
15034
+ function Ku(s) {
15035
15035
  return s.includes(":");
15036
15036
  }
15037
15037
  function xo(s) {
15038
- return Vu(s) ? s.split(":")[0] : s;
15038
+ return Ku(s) ? s.split(":")[0] : s;
15039
15039
  }
15040
15040
  function Ej(s) {
15041
15041
  const e = {};
@@ -15072,7 +15072,7 @@ function Dt(s) {
15072
15072
  function at(s, e) {
15073
15073
  return e && Dt(s) ? !0 : typeof s == "string" && !!s.trim().length;
15074
15074
  }
15075
- function Ku(s, e) {
15075
+ function Gu(s, e) {
15076
15076
  return e && Dt(s) ? !0 : typeof s == "number" && !isNaN(s);
15077
15077
  }
15078
15078
  function _j(s, e) {
@@ -15205,13 +15205,13 @@ function rs(s) {
15205
15205
  return typeof s < "u" && typeof s !== null;
15206
15206
  }
15207
15207
  function Uj(s) {
15208
- return !(!s || typeof s != "object" || !s.code || !Ku(s.code, !1) || !s.message || !at(s.message, !1));
15208
+ return !(!s || typeof s != "object" || !s.code || !Gu(s.code, !1) || !s.message || !at(s.message, !1));
15209
15209
  }
15210
15210
  function zj(s) {
15211
15211
  return !(Dt(s) || !at(s.method, !1));
15212
15212
  }
15213
15213
  function Fj(s) {
15214
- return !(Dt(s) || Dt(s.result) && Dt(s.error) || !Ku(s.id, !1) || !at(s.jsonrpc, !1));
15214
+ return !(Dt(s) || Dt(s.result) && Dt(s.error) || !Gu(s.id, !1) || !at(s.jsonrpc, !1));
15215
15215
  }
15216
15216
  function qj(s) {
15217
15217
  return !(Dt(s) || !at(s.name, !1));
@@ -15267,7 +15267,7 @@ function Vj(s) {
15267
15267
  }), e;
15268
15268
  }
15269
15269
  function Kj(s, e) {
15270
- return Ku(s, !1) && s <= e.max && s >= e.min;
15270
+ return Gu(s, !1) && s <= e.max && s >= e.min;
15271
15271
  }
15272
15272
  function uf() {
15273
15273
  const s = Ia();
@@ -15329,7 +15329,7 @@ class Eo {
15329
15329
  delete Kl[e];
15330
15330
  }
15331
15331
  }
15332
- const mb = "wc", wb = 2, Xh = "core", ii = `${mb}@2:${Xh}:`, eR = { logger: "error" }, tR = { database: ":memory:" }, sR = "crypto", df = "client_ed25519_seed", iR = E.ONE_DAY, rR = "keychain", nR = "0.3", oR = "messages", aR = "0.3", pf = E.SIX_HOURS, cR = "publisher", yb = "irn", lR = "error", bb = "wss://relay.walletconnect.org", hR = "relayer", Et = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, uR = "_subscription", As = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, dR = 0.1, eu = "2.19.1", Ke = { link_mode: "link_mode", relay: "relay" }, dc = { inbound: "inbound", outbound: "outbound" }, pR = "0.3", gR = "WALLETCONNECT_CLIENT_ID", gf = "WALLETCONNECT_LINK_MODE_APPS", us = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, fR = "subscription", mR = "0.3", wR = "pairing", yR = "0.3", Ao = { wc_pairingDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 0 } } }, lr = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, js = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, bR = "history", vR = "0.3", IR = "expirer", Ss = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, ER = "0.3", AR = "verify-api", NR = "https://verify.walletconnect.com", vb = "https://verify.walletconnect.org", zo = vb, _R = `${zo}/v3`, CR = [NR, vb], SR = "echo", $R = "https://echo.walletconnect.com", Js = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, ui = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, Rs = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success" }, tr = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found" }, sr = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, No = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, PR = 0.1, TR = "event-client", MR = 86400, OR = "https://pulse.walletconnect.org/batch";
15332
+ const mb = "wc", wb = 2, eu = "core", ii = `${mb}@2:${eu}:`, eR = { logger: "error" }, tR = { database: ":memory:" }, sR = "crypto", df = "client_ed25519_seed", iR = E.ONE_DAY, rR = "keychain", nR = "0.3", oR = "messages", aR = "0.3", pf = E.SIX_HOURS, cR = "publisher", yb = "irn", lR = "error", bb = "wss://relay.walletconnect.org", hR = "relayer", Et = { message: "relayer_message", message_ack: "relayer_message_ack", connect: "relayer_connect", disconnect: "relayer_disconnect", error: "relayer_error", connection_stalled: "relayer_connection_stalled", transport_closed: "relayer_transport_closed", publish: "relayer_publish" }, uR = "_subscription", As = { payload: "payload", connect: "connect", disconnect: "disconnect", error: "error" }, dR = 0.1, tu = "2.19.1", Ke = { link_mode: "link_mode", relay: "relay" }, dc = { inbound: "inbound", outbound: "outbound" }, pR = "0.3", gR = "WALLETCONNECT_CLIENT_ID", gf = "WALLETCONNECT_LINK_MODE_APPS", us = { created: "subscription_created", deleted: "subscription_deleted", expired: "subscription_expired", disabled: "subscription_disabled", sync: "subscription_sync", resubscribed: "subscription_resubscribed" }, fR = "subscription", mR = "0.3", wR = "pairing", yR = "0.3", Ao = { wc_pairingDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1e3 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1001 } }, wc_pairingPing: { req: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1002 }, res: { ttl: E.THIRTY_SECONDS, prompt: !1, tag: 1003 } }, unregistered_method: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 0 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 0 } } }, lr = { create: "pairing_create", expire: "pairing_expire", delete: "pairing_delete", ping: "pairing_ping" }, js = { created: "history_created", updated: "history_updated", deleted: "history_deleted", sync: "history_sync" }, bR = "history", vR = "0.3", IR = "expirer", Ss = { created: "expirer_created", deleted: "expirer_deleted", expired: "expirer_expired", sync: "expirer_sync" }, ER = "0.3", AR = "verify-api", NR = "https://verify.walletconnect.com", vb = "https://verify.walletconnect.org", zo = vb, _R = `${zo}/v3`, CR = [NR, vb], SR = "echo", $R = "https://echo.walletconnect.com", Js = { pairing_started: "pairing_started", pairing_uri_validation_success: "pairing_uri_validation_success", pairing_uri_not_expired: "pairing_uri_not_expired", store_new_pairing: "store_new_pairing", subscribing_pairing_topic: "subscribing_pairing_topic", subscribe_pairing_topic_success: "subscribe_pairing_topic_success", existing_pairing: "existing_pairing", pairing_not_expired: "pairing_not_expired", emit_inactive_pairing: "emit_inactive_pairing", emit_session_proposal: "emit_session_proposal", subscribing_to_pairing_topic: "subscribing_to_pairing_topic" }, ui = { no_wss_connection: "no_wss_connection", no_internet_connection: "no_internet_connection", malformed_pairing_uri: "malformed_pairing_uri", active_pairing_already_exists: "active_pairing_already_exists", subscribe_pairing_topic_failure: "subscribe_pairing_topic_failure", pairing_expired: "pairing_expired", proposal_expired: "proposal_expired", proposal_listener_not_found: "proposal_listener_not_found" }, Rs = { session_approve_started: "session_approve_started", proposal_not_expired: "proposal_not_expired", session_namespaces_validation_success: "session_namespaces_validation_success", create_session_topic: "create_session_topic", subscribing_session_topic: "subscribing_session_topic", subscribe_session_topic_success: "subscribe_session_topic_success", publishing_session_approve: "publishing_session_approve", session_approve_publish_success: "session_approve_publish_success", store_session: "store_session", publishing_session_settle: "publishing_session_settle", session_settle_publish_success: "session_settle_publish_success" }, tr = { no_internet_connection: "no_internet_connection", no_wss_connection: "no_wss_connection", proposal_expired: "proposal_expired", subscribe_session_topic_failure: "subscribe_session_topic_failure", session_approve_publish_failure: "session_approve_publish_failure", session_settle_publish_failure: "session_settle_publish_failure", session_approve_namespace_validation_failure: "session_approve_namespace_validation_failure", proposal_not_found: "proposal_not_found" }, sr = { authenticated_session_approve_started: "authenticated_session_approve_started", create_authenticated_session_topic: "create_authenticated_session_topic", cacaos_verified: "cacaos_verified", store_authenticated_session: "store_authenticated_session", subscribing_authenticated_session_topic: "subscribing_authenticated_session_topic", subscribe_authenticated_session_topic_success: "subscribe_authenticated_session_topic_success", publishing_authenticated_session_approve: "publishing_authenticated_session_approve" }, No = { no_internet_connection: "no_internet_connection", invalid_cacao: "invalid_cacao", subscribe_authenticated_session_topic_failure: "subscribe_authenticated_session_topic_failure", authenticated_session_approve_publish_failure: "authenticated_session_approve_publish_failure", authenticated_session_pending_request_not_found: "authenticated_session_pending_request_not_found" }, PR = 0.1, TR = "event-client", MR = 86400, OR = "https://pulse.walletconnect.org/batch";
15333
15333
  function xR(s, e) {
15334
15334
  if (s.length >= 255) throw new TypeError("Alphabet too long");
15335
15335
  for (var t = new Uint8Array(256), i = 0; i < t.length; i++) t[i] = 255;
@@ -15501,19 +15501,19 @@ function Nb(s, e, t) {
15501
15501
  for (; s & P5; ) e[t++] = s & 255 | ff, s >>>= 7;
15502
15502
  return e[t] = s | 0, Nb.bytes = t - i + 1, e;
15503
15503
  }
15504
- var M5 = tu, O5 = 128, mf = 127;
15505
- function tu(s, i) {
15504
+ var M5 = su, O5 = 128, mf = 127;
15505
+ function su(s, i) {
15506
15506
  var t = 0, i = i || 0, r = 0, n = i, o, a = s.length;
15507
15507
  do {
15508
- if (n >= a) throw tu.bytes = 0, new RangeError("Could not decode varint");
15508
+ if (n >= a) throw su.bytes = 0, new RangeError("Could not decode varint");
15509
15509
  o = s[n++], t += r < 28 ? (o & mf) << r : (o & mf) * Math.pow(2, r), r += 7;
15510
15510
  } while (o >= O5);
15511
- return tu.bytes = n - i, t;
15511
+ return su.bytes = n - i, t;
15512
15512
  }
15513
15513
  var x5 = Math.pow(2, 7), D5 = Math.pow(2, 14), k5 = Math.pow(2, 21), j5 = Math.pow(2, 28), R5 = Math.pow(2, 35), L5 = Math.pow(2, 42), U5 = Math.pow(2, 49), z5 = Math.pow(2, 56), F5 = Math.pow(2, 63), q5 = function(s) {
15514
15514
  return s < x5 ? 1 : s < D5 ? 2 : s < k5 ? 3 : s < j5 ? 4 : s < R5 ? 5 : s < L5 ? 6 : s < U5 ? 7 : s < z5 ? 8 : s < F5 ? 9 : 10;
15515
15515
  }, B5 = { encode: $5, decode: M5, encodingLength: q5 }, _b = B5;
15516
- const wf = (s, e, t = 0) => (_b.encode(s, e, t), e), yf = (s) => _b.encodingLength(s), su = (s, e) => {
15516
+ const wf = (s, e, t = 0) => (_b.encode(s, e, t), e), yf = (s) => _b.encodingLength(s), iu = (s, e) => {
15517
15517
  const t = e.byteLength, i = yf(s), r = i + yf(t), n = new Uint8Array(r + t);
15518
15518
  return wf(s, n, 0), wf(t, n, i), n.set(e, r), new H5(s, t, e, n);
15519
15519
  };
@@ -15530,13 +15530,13 @@ class W5 {
15530
15530
  digest(e) {
15531
15531
  if (e instanceof Uint8Array) {
15532
15532
  const t = this.encode(e);
15533
- return t instanceof Uint8Array ? su(this.code, t) : t.then((i) => su(this.code, i));
15533
+ return t instanceof Uint8Array ? iu(this.code, t) : t.then((i) => iu(this.code, i));
15534
15534
  } else throw Error("Unknown type, must be binary type");
15535
15535
  }
15536
15536
  }
15537
15537
  const Sb = (s) => async (e) => new Uint8Array(await crypto.subtle.digest(s, e)), V5 = Cb({ name: "sha2-256", code: 18, encode: Sb("SHA-256") }), K5 = Cb({ name: "sha2-512", code: 19, encode: Sb("SHA-512") });
15538
15538
  var G5 = Object.freeze({ __proto__: null, sha256: V5, sha512: K5 });
15539
- const $b = 0, Y5 = "identity", Pb = Ib, Q5 = (s) => su($b, Pb(s)), Z5 = { code: $b, name: Y5, encode: Pb, digest: Q5 };
15539
+ const $b = 0, Y5 = "identity", Pb = Ib, Q5 = (s) => iu($b, Pb(s)), Z5 = { code: $b, name: Y5, encode: Pb, digest: Q5 };
15540
15540
  var J5 = Object.freeze({ __proto__: null, identity: Z5 });
15541
15541
  new TextEncoder(), new TextDecoder();
15542
15542
  const bf = { ...WR, ...KR, ...YR, ...ZR, ...e5, ...h5, ...p5, ...m5, ...I5, ...S5 };
@@ -15591,11 +15591,11 @@ class rL {
15591
15591
  return this.storagePrefix + this.version + this.core.customStoragePrefix + "//" + this.name;
15592
15592
  }
15593
15593
  async setKeyChain(e) {
15594
- await this.core.storage.setItem(this.storageKey, Hh(e));
15594
+ await this.core.storage.setItem(this.storageKey, Wh(e));
15595
15595
  }
15596
15596
  async getKeyChain() {
15597
15597
  const e = await this.core.storage.getItem(this.storageKey);
15598
- return typeof e < "u" ? Wh(e) : void 0;
15598
+ return typeof e < "u" ? Vh(e) : void 0;
15599
15599
  }
15600
15600
  async persist() {
15601
15601
  await this.setKeyChain(this.keychain);
@@ -15610,7 +15610,7 @@ class rL {
15610
15610
  var nL = Object.defineProperty, oL = (s, e, t) => e in s ? nL(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Pt = (s, e, t) => oL(s, typeof e != "symbol" ? e + "" : e, t);
15611
15611
  class aL {
15612
15612
  constructor(e, t, i) {
15613
- this.core = e, this.logger = t, Pt(this, "name", sR), Pt(this, "keychain"), Pt(this, "randomSessionIdentifier", Jh()), Pt(this, "initialized", !1), Pt(this, "init", async () => {
15613
+ this.core = e, this.logger = t, Pt(this, "name", sR), Pt(this, "keychain"), Pt(this, "randomSessionIdentifier", Xh()), Pt(this, "initialized", !1), Pt(this, "init", async () => {
15614
15614
  this.initialized || (await this.keychain.init(), this.initialized = !0);
15615
15615
  }), Pt(this, "hasKeys", (r) => (this.isInitialized(), this.keychain.has(r))), Pt(this, "getClientId", async () => {
15616
15616
  this.isInitialized();
@@ -15685,7 +15685,7 @@ class aL {
15685
15685
  try {
15686
15686
  e = this.keychain.get(df);
15687
15687
  } catch {
15688
- e = Jh(), await this.keychain.set(df, e);
15688
+ e = Xh(), await this.keychain.set(df, e);
15689
15689
  }
15690
15690
  return tL(e, "base16");
15691
15691
  }
@@ -15699,11 +15699,11 @@ class aL {
15699
15699
  }
15700
15700
  }
15701
15701
  }
15702
- var cL = Object.defineProperty, lL = Object.defineProperties, hL = Object.getOwnPropertyDescriptors, If = Object.getOwnPropertySymbols, uL = Object.prototype.hasOwnProperty, dL = Object.prototype.propertyIsEnumerable, iu = (s, e, t) => e in s ? cL(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, pL = (s, e) => {
15703
- for (var t in e || (e = {})) uL.call(e, t) && iu(s, t, e[t]);
15704
- if (If) for (var t of If(e)) dL.call(e, t) && iu(s, t, e[t]);
15702
+ var cL = Object.defineProperty, lL = Object.defineProperties, hL = Object.getOwnPropertyDescriptors, If = Object.getOwnPropertySymbols, uL = Object.prototype.hasOwnProperty, dL = Object.prototype.propertyIsEnumerable, ru = (s, e, t) => e in s ? cL(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, pL = (s, e) => {
15703
+ for (var t in e || (e = {})) uL.call(e, t) && ru(s, t, e[t]);
15704
+ if (If) for (var t of If(e)) dL.call(e, t) && ru(s, t, e[t]);
15705
15705
  return s;
15706
- }, gL = (s, e) => lL(s, hL(e)), ls = (s, e, t) => iu(s, typeof e != "symbol" ? e + "" : e, t);
15706
+ }, gL = (s, e) => lL(s, hL(e)), ls = (s, e, t) => ru(s, typeof e != "symbol" ? e + "" : e, t);
15707
15707
  class fL extends AD {
15708
15708
  constructor(e, t) {
15709
15709
  super(e, t), this.logger = e, this.core = t, ls(this, "messages", /* @__PURE__ */ new Map()), ls(this, "messagesWithoutClientAck", /* @__PURE__ */ new Map()), ls(this, "name", oR), ls(this, "version", aR), ls(this, "initialized", !1), ls(this, "storagePrefix", ii), ls(this, "init", async () => {
@@ -15766,18 +15766,18 @@ class fL extends AD {
15766
15766
  return this.storagePrefix + this.version + this.core.customStoragePrefix + "//" + this.name + "_withoutClientAck";
15767
15767
  }
15768
15768
  async setRelayerMessages(e) {
15769
- await this.core.storage.setItem(this.storageKey, Hh(e));
15769
+ await this.core.storage.setItem(this.storageKey, Wh(e));
15770
15770
  }
15771
15771
  async setRelayerMessagesWithoutClientAck(e) {
15772
- await this.core.storage.setItem(this.storageKeyWithoutClientAck, Hh(e));
15772
+ await this.core.storage.setItem(this.storageKeyWithoutClientAck, Wh(e));
15773
15773
  }
15774
15774
  async getRelayerMessages() {
15775
15775
  const e = await this.core.storage.getItem(this.storageKey);
15776
- return typeof e < "u" ? Wh(e) : void 0;
15776
+ return typeof e < "u" ? Vh(e) : void 0;
15777
15777
  }
15778
15778
  async getRelayerMessagesWithoutClientAck() {
15779
15779
  const e = await this.core.storage.getItem(this.storageKeyWithoutClientAck);
15780
- return typeof e < "u" ? Wh(e) : void 0;
15780
+ return typeof e < "u" ? Vh(e) : void 0;
15781
15781
  }
15782
15782
  async persist() {
15783
15783
  await this.setRelayerMessages(this.messages), await this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck);
@@ -15789,11 +15789,11 @@ class fL extends AD {
15789
15789
  }
15790
15790
  }
15791
15791
  }
15792
- var mL = Object.defineProperty, wL = Object.defineProperties, yL = Object.getOwnPropertyDescriptors, Ef = Object.getOwnPropertySymbols, bL = Object.prototype.hasOwnProperty, vL = Object.prototype.propertyIsEnumerable, ru = (s, e, t) => e in s ? mL(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ga = (s, e) => {
15793
- for (var t in e || (e = {})) bL.call(e, t) && ru(s, t, e[t]);
15794
- if (Ef) for (var t of Ef(e)) vL.call(e, t) && ru(s, t, e[t]);
15792
+ var mL = Object.defineProperty, wL = Object.defineProperties, yL = Object.getOwnPropertyDescriptors, Ef = Object.getOwnPropertySymbols, bL = Object.prototype.hasOwnProperty, vL = Object.prototype.propertyIsEnumerable, nu = (s, e, t) => e in s ? mL(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Ga = (s, e) => {
15793
+ for (var t in e || (e = {})) bL.call(e, t) && nu(s, t, e[t]);
15794
+ if (Ef) for (var t of Ef(e)) vL.call(e, t) && nu(s, t, e[t]);
15795
15795
  return s;
15796
- }, Yl = (s, e) => wL(s, yL(e)), Ls = (s, e, t) => ru(s, typeof e != "symbol" ? e + "" : e, t);
15796
+ }, Yl = (s, e) => wL(s, yL(e)), Ls = (s, e, t) => nu(s, typeof e != "symbol" ? e + "" : e, t);
15797
15797
  class IL extends ND {
15798
15798
  constructor(e, t) {
15799
15799
  super(e, t), this.relayer = e, this.logger = t, Ls(this, "events", new kt.EventEmitter()), Ls(this, "name", cR), Ls(this, "queue", /* @__PURE__ */ new Map()), Ls(this, "publishTimeout", E.toMiliseconds(E.ONE_MINUTE)), Ls(this, "initialPublishTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), Ls(this, "needsTransportRestart", !1), Ls(this, "publish", async (i, r, n) => {
@@ -15894,11 +15894,11 @@ class NL {
15894
15894
  return Array.from(this.map.keys());
15895
15895
  }
15896
15896
  }
15897
- var _L = Object.defineProperty, CL = Object.defineProperties, SL = Object.getOwnPropertyDescriptors, Af = Object.getOwnPropertySymbols, $L = Object.prototype.hasOwnProperty, PL = Object.prototype.propertyIsEnumerable, nu = (s, e, t) => e in s ? _L(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, _o = (s, e) => {
15898
- for (var t in e || (e = {})) $L.call(e, t) && nu(s, t, e[t]);
15899
- if (Af) for (var t of Af(e)) PL.call(e, t) && nu(s, t, e[t]);
15897
+ var _L = Object.defineProperty, CL = Object.defineProperties, SL = Object.getOwnPropertyDescriptors, Af = Object.getOwnPropertySymbols, $L = Object.prototype.hasOwnProperty, PL = Object.prototype.propertyIsEnumerable, ou = (s, e, t) => e in s ? _L(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, _o = (s, e) => {
15898
+ for (var t in e || (e = {})) $L.call(e, t) && ou(s, t, e[t]);
15899
+ if (Af) for (var t of Af(e)) PL.call(e, t) && ou(s, t, e[t]);
15900
15900
  return s;
15901
- }, Ql = (s, e) => CL(s, SL(e)), xe = (s, e, t) => nu(s, typeof e != "symbol" ? e + "" : e, t);
15901
+ }, Ql = (s, e) => CL(s, SL(e)), xe = (s, e, t) => ou(s, typeof e != "symbol" ? e + "" : e, t);
15902
15902
  class TL extends SD {
15903
15903
  constructor(e, t) {
15904
15904
  super(e, t), this.relayer = e, this.logger = t, xe(this, "subscriptions", /* @__PURE__ */ new Map()), xe(this, "topicMap", new NL()), xe(this, "events", new kt.EventEmitter()), xe(this, "name", fR), xe(this, "version", mR), xe(this, "pending", /* @__PURE__ */ new Map()), xe(this, "cached", []), xe(this, "initialized", !1), xe(this, "storagePrefix", ii), xe(this, "subscribeTimeout", E.toMiliseconds(E.ONE_MINUTE)), xe(this, "initialSubscribeTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), xe(this, "clientId"), xe(this, "batchSubscribeTopicsLimit", 500), xe(this, "init", async () => {
@@ -16160,11 +16160,11 @@ class TL extends SD {
16160
16160
  return Xs(e + await this.getClientId());
16161
16161
  }
16162
16162
  }
16163
- var ML = Object.defineProperty, Nf = Object.getOwnPropertySymbols, OL = Object.prototype.hasOwnProperty, xL = Object.prototype.propertyIsEnumerable, ou = (s, e, t) => e in s ? ML(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, _f = (s, e) => {
16164
- for (var t in e || (e = {})) OL.call(e, t) && ou(s, t, e[t]);
16165
- if (Nf) for (var t of Nf(e)) xL.call(e, t) && ou(s, t, e[t]);
16163
+ var ML = Object.defineProperty, Nf = Object.getOwnPropertySymbols, OL = Object.prototype.hasOwnProperty, xL = Object.prototype.propertyIsEnumerable, au = (s, e, t) => e in s ? ML(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, _f = (s, e) => {
16164
+ for (var t in e || (e = {})) OL.call(e, t) && au(s, t, e[t]);
16165
+ if (Nf) for (var t of Nf(e)) xL.call(e, t) && au(s, t, e[t]);
16166
16166
  return s;
16167
- }, fe = (s, e, t) => ou(s, typeof e != "symbol" ? e + "" : e, t);
16167
+ }, fe = (s, e, t) => au(s, typeof e != "symbol" ? e + "" : e, t);
16168
16168
  class DL extends _D {
16169
16169
  constructor(e) {
16170
16170
  super(e), fe(this, "protocol", "wc"), fe(this, "version", 2), fe(this, "core"), fe(this, "logger"), fe(this, "events", new kt.EventEmitter()), fe(this, "provider"), fe(this, "messages"), fe(this, "subscriber"), fe(this, "publisher"), fe(this, "name", hR), fe(this, "transportExplicitlyClosed", !1), fe(this, "initialized", !1), fe(this, "connectionAttemptInProgress", !1), fe(this, "relayUrl"), fe(this, "projectId"), fe(this, "packageName"), fe(this, "bundleId"), fe(this, "hasExperiencedNetworkDisruption", !1), fe(this, "pingTimeout"), fe(this, "heartBeatTimeout", E.toMiliseconds(E.THIRTY_SECONDS + E.FIVE_SECONDS)), fe(this, "reconnectTimeout"), fe(this, "connectPromise"), fe(this, "reconnectInProgress", !1), fe(this, "requestsInFlight", []), fe(this, "connectTimeout", E.toMiliseconds(E.ONE_SECOND * 15)), fe(this, "request", async (t) => {
@@ -16351,7 +16351,7 @@ class DL extends _D {
16351
16351
  async createProvider() {
16352
16352
  this.provider.connection && this.unregisterProviderListeners();
16353
16353
  const e = await this.core.crypto.signJWT(this.relayUrl);
16354
- this.provider = new Ye(new Tw(a3({ sdkVersion: eu, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: !0, bundleId: this.bundleId, packageName: this.packageName }))), this.registerProviderListeners();
16354
+ this.provider = new Ye(new Tw(a3({ sdkVersion: tu, protocol: this.protocol, version: this.version, relayUrl: this.relayUrl, projectId: this.projectId, auth: e, useOnCloseEvent: !0, bundleId: this.bundleId, packageName: this.packageName }))), this.registerProviderListeners();
16355
16355
  }
16356
16356
  async recordMessageEvent(e, t) {
16357
16357
  const { topic: i, message: r } = e;
@@ -16526,11 +16526,11 @@ function Fo(s, e, t, i) {
16526
16526
  function cU(s, e) {
16527
16527
  return aU(s, e, kL);
16528
16528
  }
16529
- var lU = Object.defineProperty, Tf = Object.getOwnPropertySymbols, hU = Object.prototype.hasOwnProperty, uU = Object.prototype.propertyIsEnumerable, au = (s, e, t) => e in s ? lU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Mf = (s, e) => {
16530
- for (var t in e || (e = {})) hU.call(e, t) && au(s, t, e[t]);
16531
- if (Tf) for (var t of Tf(e)) uU.call(e, t) && au(s, t, e[t]);
16529
+ var lU = Object.defineProperty, Tf = Object.getOwnPropertySymbols, hU = Object.prototype.hasOwnProperty, uU = Object.prototype.propertyIsEnumerable, cu = (s, e, t) => e in s ? lU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Mf = (s, e) => {
16530
+ for (var t in e || (e = {})) hU.call(e, t) && cu(s, t, e[t]);
16531
+ if (Tf) for (var t of Tf(e)) uU.call(e, t) && cu(s, t, e[t]);
16532
16532
  return s;
16533
- }, Xt = (s, e, t) => au(s, typeof e != "symbol" ? e + "" : e, t);
16533
+ }, Xt = (s, e, t) => cu(s, typeof e != "symbol" ? e + "" : e, t);
16534
16534
  class jr extends CD {
16535
16535
  constructor(e, t, i, r = ii, n = void 0) {
16536
16536
  super(e, t, i, r), this.core = e, this.logger = t, this.name = i, Xt(this, "map", /* @__PURE__ */ new Map()), Xt(this, "version", pR), Xt(this, "cached", []), Xt(this, "initialized", !1), Xt(this, "getKey"), Xt(this, "storagePrefix", ii), Xt(this, "recentlyDeleted", []), Xt(this, "recentlyDeletedLimit", 200), Xt(this, "init", async () => {
@@ -16615,7 +16615,7 @@ class gU {
16615
16615
  this.isInitialized(), this.registeredMethods = [.../* @__PURE__ */ new Set([...this.registeredMethods, ...i])];
16616
16616
  }), le(this, "create", async (i) => {
16617
16617
  this.isInitialized();
16618
- const r = Jh(), n = await this.core.crypto.setSymKey(r), o = dt(E.FIVE_MINUTES), a = { protocol: yb }, l = { topic: n, expiry: o, relay: a, active: !1, methods: i == null ? void 0 : i.methods }, c = nf({ protocol: this.core.protocol, version: this.core.version, topic: n, symKey: r, relay: a, expiryTimestamp: o, methods: i == null ? void 0 : i.methods });
16618
+ const r = Xh(), n = await this.core.crypto.setSymKey(r), o = dt(E.FIVE_MINUTES), a = { protocol: yb }, l = { topic: n, expiry: o, relay: a, active: !1, methods: i == null ? void 0 : i.methods }, c = nf({ protocol: this.core.protocol, version: this.core.version, topic: n, symKey: r, relay: a, expiryTimestamp: o, methods: i == null ? void 0 : i.methods });
16619
16619
  return this.events.emit(lr.create, l), this.core.expirer.set(n, o), await this.pairings.set(n, l), await this.core.relayer.subscribe(n, { transportType: i == null ? void 0 : i.transportType }), { topic: n, uri: c };
16620
16620
  }), le(this, "pair", async (i) => {
16621
16621
  this.isInitialized();
@@ -17140,7 +17140,7 @@ class AU extends PD {
17140
17140
  const o = gj(r, n.publicKey), a = { hasExpired: E.toMiliseconds(o.exp) < Date.now(), payload: o };
17141
17141
  if (a.hasExpired) throw this.logger.warn("resolve: jwt attestation expired"), new Error("JWT attestation expired");
17142
17142
  return { origin: a.payload.origin, isScam: a.payload.isScam, isVerified: a.payload.isVerified };
17143
- }), this.logger = Ne(t, this.name), this.abortController = new AbortController(), this.isDevEnv = Uu(), this.init();
17143
+ }), this.logger = Ne(t, this.name), this.abortController = new AbortController(), this.isDevEnv = zu(), this.init();
17144
17144
  }
17145
17145
  get storeKey() {
17146
17146
  return this.storagePrefix + this.version + this.core.customStoragePrefix + "//verify:public:key";
@@ -17161,16 +17161,16 @@ class CU extends TD {
17161
17161
  }), this.logger = Ne(t, this.context);
17162
17162
  }
17163
17163
  }
17164
- var SU = Object.defineProperty, xf = Object.getOwnPropertySymbols, $U = Object.prototype.hasOwnProperty, PU = Object.prototype.propertyIsEnumerable, cu = (s, e, t) => e in s ? SU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Co = (s, e) => {
17165
- for (var t in e || (e = {})) $U.call(e, t) && cu(s, t, e[t]);
17166
- if (xf) for (var t of xf(e)) PU.call(e, t) && cu(s, t, e[t]);
17164
+ var SU = Object.defineProperty, xf = Object.getOwnPropertySymbols, $U = Object.prototype.hasOwnProperty, PU = Object.prototype.propertyIsEnumerable, lu = (s, e, t) => e in s ? SU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Co = (s, e) => {
17165
+ for (var t in e || (e = {})) $U.call(e, t) && lu(s, t, e[t]);
17166
+ if (xf) for (var t of xf(e)) PU.call(e, t) && lu(s, t, e[t]);
17167
17167
  return s;
17168
- }, mt = (s, e, t) => cu(s, typeof e != "symbol" ? e + "" : e, t);
17168
+ }, mt = (s, e, t) => lu(s, typeof e != "symbol" ? e + "" : e, t);
17169
17169
  class TU extends MD {
17170
17170
  constructor(e, t, i = !0) {
17171
17171
  super(e, t, i), this.core = e, this.logger = t, mt(this, "context", TR), mt(this, "storagePrefix", ii), mt(this, "storageVersion", PR), mt(this, "events", /* @__PURE__ */ new Map()), mt(this, "shouldPersist", !1), mt(this, "init", async () => {
17172
- if (!Uu()) try {
17173
- const r = { eventId: Tg(), timestamp: Date.now(), domain: this.getAppDomain(), props: { event: "INIT", type: "", properties: { client_id: await this.core.crypto.getClientId(), user_agent: Fy(this.core.relayer.protocol, this.core.relayer.version, eu) } } };
17172
+ if (!zu()) try {
17173
+ const r = { eventId: Tg(), timestamp: Date.now(), domain: this.getAppDomain(), props: { event: "INIT", type: "", properties: { client_id: await this.core.crypto.getClientId(), user_agent: Fy(this.core.relayer.protocol, this.core.relayer.version, tu) } } };
17174
17174
  await this.sendEvent([r]);
17175
17175
  } catch (r) {
17176
17176
  this.logger.warn(r);
@@ -17221,7 +17221,7 @@ class TU extends MD {
17221
17221
  }
17222
17222
  }), mt(this, "sendEvent", async (r) => {
17223
17223
  const n = this.getAppDomain() ? "" : "&sp=desktop";
17224
- return await fetch(`${OR}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${eu}${n}`, { method: "POST", body: JSON.stringify(r) });
17224
+ return await fetch(`${OR}?projectId=${this.core.projectId}&st=events_sdk&sv=js-${tu}${n}`, { method: "POST", body: JSON.stringify(r) });
17225
17225
  }), mt(this, "getAppDomain", () => zy().url), this.logger = Ne(t, this.context), this.telemetryEnabled = i, i ? this.restore().then(async () => {
17226
17226
  await this.submit(), this.setEventListeners();
17227
17227
  }) : this.persist();
@@ -17230,20 +17230,20 @@ class TU extends MD {
17230
17230
  return this.storagePrefix + this.storageVersion + this.core.customStoragePrefix + "//" + this.context;
17231
17231
  }
17232
17232
  }
17233
- var MU = Object.defineProperty, Df = Object.getOwnPropertySymbols, OU = Object.prototype.hasOwnProperty, xU = Object.prototype.propertyIsEnumerable, lu = (s, e, t) => e in s ? MU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, kf = (s, e) => {
17234
- for (var t in e || (e = {})) OU.call(e, t) && lu(s, t, e[t]);
17235
- if (Df) for (var t of Df(e)) xU.call(e, t) && lu(s, t, e[t]);
17233
+ var MU = Object.defineProperty, Df = Object.getOwnPropertySymbols, OU = Object.prototype.hasOwnProperty, xU = Object.prototype.propertyIsEnumerable, hu = (s, e, t) => e in s ? MU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, kf = (s, e) => {
17234
+ for (var t in e || (e = {})) OU.call(e, t) && hu(s, t, e[t]);
17235
+ if (Df) for (var t of Df(e)) xU.call(e, t) && hu(s, t, e[t]);
17236
17236
  return s;
17237
- }, Le = (s, e, t) => lu(s, typeof e != "symbol" ? e + "" : e, t);
17237
+ }, Le = (s, e, t) => hu(s, typeof e != "symbol" ? e + "" : e, t);
17238
17238
  let DU = class Mb extends yD {
17239
17239
  constructor(e) {
17240
17240
  var t;
17241
- super(e), Le(this, "protocol", mb), Le(this, "version", wb), Le(this, "name", Xh), Le(this, "relayUrl"), Le(this, "projectId"), Le(this, "customStoragePrefix"), Le(this, "events", new kt.EventEmitter()), Le(this, "logger"), Le(this, "heartbeat"), Le(this, "relayer"), Le(this, "crypto"), Le(this, "storage"), Le(this, "history"), Le(this, "expirer"), Le(this, "pairing"), Le(this, "verify"), Le(this, "echoClient"), Le(this, "linkModeSupportedApps"), Le(this, "eventClient"), Le(this, "initialized", !1), Le(this, "logChunkController"), Le(this, "on", (o, a) => this.events.on(o, a)), Le(this, "once", (o, a) => this.events.once(o, a)), Le(this, "off", (o, a) => this.events.off(o, a)), Le(this, "removeListener", (o, a) => this.events.removeListener(o, a)), Le(this, "dispatchEnvelope", ({ topic: o, message: a, sessionExists: l }) => {
17241
+ super(e), Le(this, "protocol", mb), Le(this, "version", wb), Le(this, "name", eu), Le(this, "relayUrl"), Le(this, "projectId"), Le(this, "customStoragePrefix"), Le(this, "events", new kt.EventEmitter()), Le(this, "logger"), Le(this, "heartbeat"), Le(this, "relayer"), Le(this, "crypto"), Le(this, "storage"), Le(this, "history"), Le(this, "expirer"), Le(this, "pairing"), Le(this, "verify"), Le(this, "echoClient"), Le(this, "linkModeSupportedApps"), Le(this, "eventClient"), Le(this, "initialized", !1), Le(this, "logChunkController"), Le(this, "on", (o, a) => this.events.on(o, a)), Le(this, "once", (o, a) => this.events.once(o, a)), Le(this, "off", (o, a) => this.events.off(o, a)), Le(this, "removeListener", (o, a) => this.events.removeListener(o, a)), Le(this, "dispatchEnvelope", ({ topic: o, message: a, sessionExists: l }) => {
17242
17242
  if (!o || !a) return;
17243
17243
  const c = { topic: o, message: a, publishedAt: Date.now(), transportType: Ke.link_mode };
17244
17244
  this.relayer.onLinkMessageEvent(c, { sessionExists: l });
17245
17245
  }), this.projectId = e == null ? void 0 : e.projectId, this.relayUrl = (e == null ? void 0 : e.relayUrl) || bb, this.customStoragePrefix = e != null && e.customStoragePrefix ? `:${e.customStoragePrefix}` : "";
17246
- const i = yi({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : eR.logger, name: Xh }), { logger: r, chunkLoggerController: n } = Iu({ opts: i, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger });
17246
+ const i = yi({ level: typeof (e == null ? void 0 : e.logger) == "string" && e.logger ? e.logger : eR.logger, name: eu }), { logger: r, chunkLoggerController: n } = Eu({ opts: i, maxSizeInBytes: e == null ? void 0 : e.maxLogBlobSizeInBytes, loggerOverride: e == null ? void 0 : e.logger });
17247
17247
  this.logChunkController = n, (t = this.logChunkController) != null && t.downloadLogsBlobInBrowser && (window.downloadLogsBlobInBrowser = async () => {
17248
17248
  var o, a;
17249
17249
  (o = this.logChunkController) != null && o.downloadLogsBlobInBrowser && ((a = this.logChunkController) == null || a.downloadLogsBlobInBrowser({ clientId: await this.crypto.getClientId() }));
@@ -17277,12 +17277,12 @@ let DU = class Mb extends yD {
17277
17277
  }
17278
17278
  }
17279
17279
  };
17280
- const kU = DU, Ob = "wc", xb = 2, Db = "client", Gu = `${Ob}@${xb}:${Db}:`, Jl = { name: Db, logger: "error" }, jf = "WALLETCONNECT_DEEPLINK_CHOICE", jU = "proposal", Rf = "Proposal expired", RU = "session", on = E.SEVEN_DAYS, LU = "engine", wt = { wc_sessionPropose: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: E.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: E.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, Xl = { min: E.FIVE_MINUTES, max: E.SEVEN_DAYS }, Qs = { idle: "IDLE", active: "ACTIVE" }, Lf = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" } }, UU = "request", zU = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], FU = "wc", qU = "auth", BU = "authKeys", HU = "pairingTopics", WU = "requests", nl = `${FU}@${1.5}:${qU}:`, pc = `${nl}:PUB_KEY`;
17281
- var VU = Object.defineProperty, KU = Object.defineProperties, GU = Object.getOwnPropertyDescriptors, Uf = Object.getOwnPropertySymbols, YU = Object.prototype.hasOwnProperty, QU = Object.prototype.propertyIsEnumerable, hu = (s, e, t) => e in s ? VU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, De = (s, e) => {
17282
- for (var t in e || (e = {})) YU.call(e, t) && hu(s, t, e[t]);
17283
- if (Uf) for (var t of Uf(e)) QU.call(e, t) && hu(s, t, e[t]);
17280
+ const kU = DU, Ob = "wc", xb = 2, Db = "client", Yu = `${Ob}@${xb}:${Db}:`, Jl = { name: Db, logger: "error" }, jf = "WALLETCONNECT_DEEPLINK_CHOICE", jU = "proposal", Rf = "Proposal expired", RU = "session", on = E.SEVEN_DAYS, LU = "engine", wt = { wc_sessionPropose: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1100 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1101 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1120 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1121 } }, wc_sessionSettle: { req: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1102 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1103 } }, wc_sessionUpdate: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1104 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1105 } }, wc_sessionExtend: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1106 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1107 } }, wc_sessionRequest: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1108 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1109 } }, wc_sessionEvent: { req: { ttl: E.FIVE_MINUTES, prompt: !0, tag: 1110 }, res: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1111 } }, wc_sessionDelete: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1112 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1113 } }, wc_sessionPing: { req: { ttl: E.ONE_DAY, prompt: !1, tag: 1114 }, res: { ttl: E.ONE_DAY, prompt: !1, tag: 1115 } }, wc_sessionAuthenticate: { req: { ttl: E.ONE_HOUR, prompt: !0, tag: 1116 }, res: { ttl: E.ONE_HOUR, prompt: !1, tag: 1117 }, reject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1118 }, autoReject: { ttl: E.FIVE_MINUTES, prompt: !1, tag: 1119 } } }, Xl = { min: E.FIVE_MINUTES, max: E.SEVEN_DAYS }, Qs = { idle: "IDLE", active: "ACTIVE" }, Lf = { eth_sendTransaction: { key: "" }, eth_sendRawTransaction: { key: "" }, wallet_sendCalls: { key: "" }, solana_signTransaction: { key: "signature" }, solana_signAllTransactions: { key: "transactions" }, solana_signAndSendTransaction: { key: "signature" } }, UU = "request", zU = ["wc_sessionPropose", "wc_sessionRequest", "wc_authRequest", "wc_sessionAuthenticate"], FU = "wc", qU = "auth", BU = "authKeys", HU = "pairingTopics", WU = "requests", nl = `${FU}@${1.5}:${qU}:`, pc = `${nl}:PUB_KEY`;
17281
+ var VU = Object.defineProperty, KU = Object.defineProperties, GU = Object.getOwnPropertyDescriptors, Uf = Object.getOwnPropertySymbols, YU = Object.prototype.hasOwnProperty, QU = Object.prototype.propertyIsEnumerable, uu = (s, e, t) => e in s ? VU(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, De = (s, e) => {
17282
+ for (var t in e || (e = {})) YU.call(e, t) && uu(s, t, e[t]);
17283
+ if (Uf) for (var t of Uf(e)) QU.call(e, t) && uu(s, t, e[t]);
17284
17284
  return s;
17285
- }, Wt = (s, e) => KU(s, GU(e)), M = (s, e, t) => hu(s, typeof e != "symbol" ? e + "" : e, t);
17285
+ }, Wt = (s, e) => KU(s, GU(e)), M = (s, e, t) => uu(s, typeof e != "symbol" ? e + "" : e, t);
17286
17286
  class ZU extends kD {
17287
17287
  constructor(e) {
17288
17288
  super(e), M(this, "name", LU), M(this, "events", new Wn()), M(this, "initialized", !1), M(this, "requestQueue", { state: Qs.idle, queue: [] }), M(this, "sessionRequestQueue", { state: Qs.idle, queue: [] }), M(this, "requestQueueDelay", E.ONE_SECOND), M(this, "expectedPairingMethodMap", /* @__PURE__ */ new Map()), M(this, "recentlyDeletedMap", /* @__PURE__ */ new Map()), M(this, "recentlyDeletedLimit", 200), M(this, "relayMessageCache", []), M(this, "pendingSessions", /* @__PURE__ */ new Map()), M(this, "init", async () => {
@@ -17492,7 +17492,7 @@ class ZU extends kD {
17492
17492
  const { cacaos: be, responder: oe } = N.result, Oe = [], lt = [];
17493
17493
  for (const He of be) {
17494
17494
  await Lg({ cacao: He, projectId: this.client.core.projectId }) || (this.client.logger.error(He, "Signature verification failed"), R(Me("SESSION_SETTLEMENT_FAILED", "Signature verification failed")));
17495
- const { p: Qi } = He, Zi = hc(Qi.resources), so = [Vh(Qi.iss)], al = Tc(Qi.iss);
17495
+ const { p: Qi } = He, Zi = hc(Qi.resources), so = [Kh(Qi.iss)], al = Tc(Qi.iss);
17496
17496
  if (Zi) {
17497
17497
  const Ji = Ug(Zi), cl = zg(Zi);
17498
17498
  Oe.push(...Ji), so.push(...cl);
@@ -17535,7 +17535,7 @@ class ZU extends kD {
17535
17535
  throw await this.sendError({ id: i, topic: h, error: _, encodeOpts: u }), new Error(_.message);
17536
17536
  }
17537
17537
  n.addTrace(sr.cacaos_verified);
17538
- const { p: w } = y, m = hc(w.resources), b = [Vh(w.iss)], I = Tc(w.iss);
17538
+ const { p: w } = y, m = hc(w.resources), b = [Kh(w.iss)], I = Tc(w.iss);
17539
17539
  if (m) {
17540
17540
  const _ = Ug(m), $ = zg(m);
17541
17541
  d.push(..._), b.push(...$);
@@ -18166,7 +18166,7 @@ class ZU extends kD {
18166
18166
  n && this.client.session.update(i, { transportType: Ke.link_mode }), this.client.core.dispatchEnvelope({ topic: i, message: r, sessionExists: n });
18167
18167
  }), M(this, "registerLinkModeListeners", async () => {
18168
18168
  var t;
18169
- if (Uu() || Yi() && (t = this.client.metadata.redirect) != null && t.linkMode) {
18169
+ if (zu() || Yi() && (t = this.client.metadata.redirect) != null && t.linkMode) {
18170
18170
  const i = A.global == null ? void 0 : A.global.Linking;
18171
18171
  if (typeof i < "u") {
18172
18172
  i.addEventListener("url", this.handleLinkModeMessage, this.client.name);
@@ -18323,17 +18323,17 @@ class ZU extends kD {
18323
18323
  }
18324
18324
  class JU extends jr {
18325
18325
  constructor(e, t) {
18326
- super(e, t, jU, Gu), this.core = e, this.logger = t;
18326
+ super(e, t, jU, Yu), this.core = e, this.logger = t;
18327
18327
  }
18328
18328
  }
18329
18329
  let XU = class extends jr {
18330
18330
  constructor(e, t) {
18331
- super(e, t, RU, Gu), this.core = e, this.logger = t;
18331
+ super(e, t, RU, Yu), this.core = e, this.logger = t;
18332
18332
  }
18333
18333
  };
18334
18334
  class ez extends jr {
18335
18335
  constructor(e, t) {
18336
- super(e, t, UU, Gu, (i) => i.id), this.core = e, this.logger = t;
18336
+ super(e, t, UU, Yu, (i) => i.id), this.core = e, this.logger = t;
18337
18337
  }
18338
18338
  }
18339
18339
  class tz extends jr {
@@ -18493,15 +18493,15 @@ let lz = class kb extends DD {
18493
18493
  const zf = "error", hz = "wss://relay.walletconnect.org", uz = "wc", dz = "universal_provider", Ya = `${uz}@2:${dz}:`, jb = "https://rpc.walletconnect.org/v1/", An = "generic", pz = `${jb}bundler`, Ms = { DEFAULT_CHAIN_CHANGED: "default_chain_changed" };
18494
18494
  function gz() {
18495
18495
  }
18496
- function Yu(s) {
18496
+ function Qu(s) {
18497
18497
  return s == null || typeof s != "object" && typeof s != "function";
18498
18498
  }
18499
- function Qu(s) {
18499
+ function Zu(s) {
18500
18500
  return ArrayBuffer.isView(s) && !(s instanceof DataView);
18501
18501
  }
18502
18502
  function fz(s) {
18503
- if (Yu(s)) return s;
18504
- if (Array.isArray(s) || Qu(s) || s instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && s instanceof SharedArrayBuffer) return s.slice(0);
18503
+ if (Qu(s)) return s;
18504
+ if (Array.isArray(s) || Zu(s) || s instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && s instanceof SharedArrayBuffer) return s.slice(0);
18505
18505
  const e = Object.getPrototypeOf(s), t = e.constructor;
18506
18506
  if (s instanceof Date || s instanceof Map || s instanceof Set) return new t(s);
18507
18507
  if (s instanceof RegExp) {
@@ -18536,7 +18536,7 @@ function Dz(s, e) {
18536
18536
  function Pn(s, e, t, i = /* @__PURE__ */ new Map(), r = void 0) {
18537
18537
  const n = r == null ? void 0 : r(s, e, t, i);
18538
18538
  if (n != null) return n;
18539
- if (Yu(s)) return s;
18539
+ if (Qu(s)) return s;
18540
18540
  if (i.has(s)) return i.get(s);
18541
18541
  if (Array.isArray(s)) {
18542
18542
  const o = new Array(s.length);
@@ -18562,7 +18562,7 @@ function Pn(s, e, t, i = /* @__PURE__ */ new Map(), r = void 0) {
18562
18562
  return o;
18563
18563
  }
18564
18564
  if (typeof A.Buffer < "u" && A.Buffer.isBuffer(s)) return s.subarray();
18565
- if (Qu(s)) {
18565
+ if (Zu(s)) {
18566
18566
  const o = new (Object.getPrototypeOf(s)).constructor(s.length);
18567
18567
  i.set(s, o);
18568
18568
  for (let a = 0; a < s.length; a++) o[a] = Pn(s[a], a, t, i, r);
@@ -18652,7 +18652,7 @@ function Bf(s) {
18652
18652
  return s !== null && typeof s == "object" && Lb(s) === "[object Arguments]";
18653
18653
  }
18654
18654
  function Rz(s) {
18655
- return Qu(s);
18655
+ return Zu(s);
18656
18656
  }
18657
18657
  function Lz(s) {
18658
18658
  var t;
@@ -18671,12 +18671,12 @@ function Uz(s, ...e) {
18671
18671
  let r = s;
18672
18672
  for (let n = 0; n < t.length; n++) {
18673
18673
  const o = t[n];
18674
- r = uu(r, o, i, /* @__PURE__ */ new Map());
18674
+ r = du(r, o, i, /* @__PURE__ */ new Map());
18675
18675
  }
18676
18676
  return r;
18677
18677
  }
18678
- function uu(s, e, t, i) {
18679
- if (Yu(s) && (s = Object(s)), e == null || typeof e != "object") return s;
18678
+ function du(s, e, t, i) {
18679
+ if (Qu(s) && (s = Object(s)), e == null || typeof e != "object") return s;
18680
18680
  if (i.has(e)) return fz(i.get(e));
18681
18681
  if (i.set(e, s), Array.isArray(e)) {
18682
18682
  e = e.slice();
@@ -18695,7 +18695,7 @@ function uu(s, e, t, i) {
18695
18695
  l = h;
18696
18696
  } else l = [];
18697
18697
  const c = t(l, a, o, s, e, i);
18698
- c != null ? s[o] = c : Array.isArray(a) || Ff(l) && Ff(a) ? s[o] = uu(l, a, t, i) : l == null && Lz(a) ? s[o] = uu({}, a, t, i) : l == null && Rz(a) ? s[o] = qf(a) : (l === void 0 || a !== void 0) && (s[o] = a);
18698
+ c != null ? s[o] = c : Array.isArray(a) || Ff(l) && Ff(a) ? s[o] = du(l, a, t, i) : l == null && Lz(a) ? s[o] = du({}, a, t, i) : l == null && Rz(a) ? s[o] = qf(a) : (l === void 0 || a !== void 0) && (s[o] = a);
18699
18699
  }
18700
18700
  return s;
18701
18701
  }
@@ -18736,7 +18736,7 @@ function Vf(s) {
18736
18736
  const n = {};
18737
18737
  if (!ia(s)) return n;
18738
18738
  for (const [o, a] of Object.entries(s)) {
18739
- const l = Vu(o) ? [o] : a.chains, c = a.methods || [], h = a.events || [], u = a.rpcMap || {}, d = xo(o);
18739
+ const l = Ku(o) ? [o] : a.chains, c = a.methods || [], h = a.events || [], u = a.rpcMap || {}, d = xo(o);
18740
18740
  n[d] = Vz(Qa(Qa({}, n[d]), a), { chains: lc(l, (e = n[d]) == null ? void 0 : e.chains), methods: lc(c, (t = n[d]) == null ? void 0 : t.methods), events: lc(h, (i = n[d]) == null ? void 0 : i.events), rpcMap: Qa(Qa({}, u), (r = n[d]) == null ? void 0 : r.rpcMap) });
18741
18741
  }
18742
18742
  return n;
@@ -18747,7 +18747,7 @@ function Gz(s) {
18747
18747
  function Kf(s) {
18748
18748
  const e = {};
18749
18749
  for (const [t, i] of Object.entries(s)) {
18750
- const r = i.methods || [], n = i.events || [], o = i.accounts || [], a = Vu(t) ? [t] : i.chains ? i.chains : Bb(i.accounts);
18750
+ const r = i.methods || [], n = i.events || [], o = i.accounts || [], a = Ku(t) ? [t] : i.chains ? i.chains : Bb(i.accounts);
18751
18751
  e[t] = { chains: a, methods: r, events: n, accounts: o };
18752
18752
  }
18753
18753
  return e;
@@ -18809,11 +18809,11 @@ class Zz {
18809
18809
  return new Ye(new tt(i, ye("disableProviderPing")));
18810
18810
  }
18811
18811
  }
18812
- var Jz = Object.defineProperty, Xz = Object.defineProperties, e8 = Object.getOwnPropertyDescriptors, Gf = Object.getOwnPropertySymbols, t8 = Object.prototype.hasOwnProperty, s8 = Object.prototype.propertyIsEnumerable, du = (s, e, t) => e in s ? Jz(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Yf = (s, e) => {
18813
- for (var t in e || (e = {})) t8.call(e, t) && du(s, t, e[t]);
18814
- if (Gf) for (var t of Gf(e)) s8.call(e, t) && du(s, t, e[t]);
18812
+ var Jz = Object.defineProperty, Xz = Object.defineProperties, e8 = Object.getOwnPropertyDescriptors, Gf = Object.getOwnPropertySymbols, t8 = Object.prototype.hasOwnProperty, s8 = Object.prototype.propertyIsEnumerable, pu = (s, e, t) => e in s ? Jz(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Yf = (s, e) => {
18813
+ for (var t in e || (e = {})) t8.call(e, t) && pu(s, t, e[t]);
18814
+ if (Gf) for (var t of Gf(e)) s8.call(e, t) && pu(s, t, e[t]);
18815
18815
  return s;
18816
- }, Qf = (s, e) => Xz(s, e8(e)), cn = (s, e, t) => du(s, typeof e != "symbol" ? e + "" : e, t);
18816
+ }, Qf = (s, e) => Xz(s, e8(e)), cn = (s, e, t) => pu(s, typeof e != "symbol" ? e + "" : e, t);
18817
18817
  class i8 {
18818
18818
  constructor(e) {
18819
18819
  cn(this, "name", "eip155"), cn(this, "client"), cn(this, "chainId"), cn(this, "namespace"), cn(this, "httpProviders"), cn(this, "events"), this.namespace = e.namespace, this.events = ye("events"), this.client = ye("client"), this.httpProviders = this.createHttpProviders(), this.chainId = parseInt(this.getDefaultChain());
@@ -19404,11 +19404,11 @@ class T8 {
19404
19404
  return new Ye(new tt(i, ye("disableProviderPing")));
19405
19405
  }
19406
19406
  }
19407
- var M8 = Object.defineProperty, O8 = Object.defineProperties, x8 = Object.getOwnPropertyDescriptors, Zf = Object.getOwnPropertySymbols, D8 = Object.prototype.hasOwnProperty, k8 = Object.prototype.propertyIsEnumerable, pu = (s, e, t) => e in s ? M8(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Za = (s, e) => {
19408
- for (var t in e || (e = {})) D8.call(e, t) && pu(s, t, e[t]);
19409
- if (Zf) for (var t of Zf(e)) k8.call(e, t) && pu(s, t, e[t]);
19407
+ var M8 = Object.defineProperty, O8 = Object.defineProperties, x8 = Object.getOwnPropertyDescriptors, Zf = Object.getOwnPropertySymbols, D8 = Object.prototype.hasOwnProperty, k8 = Object.prototype.propertyIsEnumerable, gu = (s, e, t) => e in s ? M8(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Za = (s, e) => {
19408
+ for (var t in e || (e = {})) D8.call(e, t) && gu(s, t, e[t]);
19409
+ if (Zf) for (var t of Zf(e)) k8.call(e, t) && gu(s, t, e[t]);
19410
19410
  return s;
19411
- }, rh = (s, e) => O8(s, x8(e)), Ns = (s, e, t) => pu(s, typeof e != "symbol" ? e + "" : e, t);
19411
+ }, rh = (s, e) => O8(s, x8(e)), Ns = (s, e, t) => gu(s, typeof e != "symbol" ? e + "" : e, t);
19412
19412
  let j8 = class Wb {
19413
19413
  constructor(e) {
19414
19414
  Ns(this, "client"), Ns(this, "namespaces"), Ns(this, "optionalNamespaces"), Ns(this, "sessionProperties"), Ns(this, "scopedProperties"), Ns(this, "events", new Wn()), Ns(this, "rpcProviders", {}), Ns(this, "session"), Ns(this, "providerOpts"), Ns(this, "logger"), Ns(this, "uri"), Ns(this, "disableProviderPing", !1), this.providerOpts = e, this.logger = typeof (e == null ? void 0 : e.logger) < "u" && typeof (e == null ? void 0 : e.logger) != "string" ? e.logger : Vn(yi({ level: (e == null ? void 0 : e.logger) || zf })), this.disableProviderPing = (e == null ? void 0 : e.disableProviderPing) || !1;
@@ -19768,7 +19768,7 @@ const L8 = {
19768
19768
  createLogger(s, e = "error") {
19769
19769
  const t = yi({
19770
19770
  level: e
19771
- }), { logger: i } = Iu({
19771
+ }), { logger: i } = Eu({
19772
19772
  opts: t
19773
19773
  });
19774
19774
  return i.error = (...r) => {
@@ -19979,7 +19979,7 @@ const nh = [
19979
19979
  ModalHeight: 150,
19980
19980
  ViewTransition: 150
19981
19981
  }
19982
- }, gu = {
19982
+ }, fu = {
19983
19983
  filterOutDuplicatesByRDNS(s) {
19984
19984
  const e = D.state.enableEIP6963 ? te.state.connectors : [], t = G.getRecentWallets(), i = e.map((a) => {
19985
19985
  var l;
@@ -20019,7 +20019,7 @@ const nh = [
20019
20019
  }
20020
20020
  }, gc = {
20021
20021
  getConnectorsByType(s, e, t) {
20022
- const { customWallets: i } = D.state, r = G.getRecentWallets(), n = gu.filterOutDuplicateWallets(e), o = gu.filterOutDuplicateWallets(t), a = s.filter((u) => u.type === "MULTI_CHAIN"), l = s.filter((u) => u.type === "ANNOUNCED"), c = s.filter((u) => u.type === "INJECTED"), h = s.filter((u) => u.type === "EXTERNAL");
20022
+ const { customWallets: i } = D.state, r = G.getRecentWallets(), n = fu.filterOutDuplicateWallets(e), o = fu.filterOutDuplicateWallets(t), a = s.filter((u) => u.type === "MULTI_CHAIN"), l = s.filter((u) => u.type === "ANNOUNCED"), c = s.filter((u) => u.type === "INJECTED"), h = s.filter((u) => u.type === "EXTERNAL");
20023
20023
  return {
20024
20024
  custom: i,
20025
20025
  recent: r,
@@ -20057,16 +20057,16 @@ const nh = [
20057
20057
  * Copyright 2019 Google LLC
20058
20058
  * SPDX-License-Identifier: BSD-3-Clause
20059
20059
  */
20060
- const fc = globalThis, Zu = fc.ShadowRoot && (fc.ShadyCSS === void 0 || fc.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ju = Symbol(), Jf = /* @__PURE__ */ new WeakMap();
20060
+ const fc = globalThis, Ju = fc.ShadowRoot && (fc.ShadyCSS === void 0 || fc.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xu = Symbol(), Jf = /* @__PURE__ */ new WeakMap();
20061
20061
  let Kb = class {
20062
20062
  constructor(e, t, i) {
20063
- if (this._$cssResult$ = !0, i !== Ju) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20063
+ if (this._$cssResult$ = !0, i !== Xu) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20064
20064
  this.cssText = e, this.t = t;
20065
20065
  }
20066
20066
  get styleSheet() {
20067
20067
  let e = this.o;
20068
20068
  const t = this.t;
20069
- if (Zu && e === void 0) {
20069
+ if (Ju && e === void 0) {
20070
20070
  const i = t !== void 0 && t.length === 1;
20071
20071
  i && (e = Jf.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Jf.set(t, e));
20072
20072
  }
@@ -20076,20 +20076,20 @@ let Kb = class {
20076
20076
  return this.cssText;
20077
20077
  }
20078
20078
  };
20079
- const _s = (s) => new Kb(typeof s == "string" ? s : s + "", void 0, Ju), Dn = (s, ...e) => {
20079
+ const _s = (s) => new Kb(typeof s == "string" ? s : s + "", void 0, Xu), Dn = (s, ...e) => {
20080
20080
  const t = s.length === 1 ? s[0] : e.reduce((i, r, n) => i + ((o) => {
20081
20081
  if (o._$cssResult$ === !0) return o.cssText;
20082
20082
  if (typeof o == "number") return o;
20083
20083
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
20084
20084
  })(r) + s[n + 1], s[0]);
20085
- return new Kb(t, s, Ju);
20085
+ return new Kb(t, s, Xu);
20086
20086
  }, q8 = (s, e) => {
20087
- if (Zu) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
20087
+ if (Ju) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
20088
20088
  else for (const t of e) {
20089
20089
  const i = document.createElement("style"), r = fc.litNonce;
20090
20090
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = t.cssText, s.appendChild(i);
20091
20091
  }
20092
- }, Xf = Zu ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
20092
+ }, Xf = Ju ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
20093
20093
  let t = "";
20094
20094
  for (const i of e.cssRules) t += i.cssText;
20095
20095
  return _s(t);
@@ -20099,7 +20099,7 @@ const _s = (s) => new Kb(typeof s == "string" ? s : s + "", void 0, Ju), Dn = (s
20099
20099
  * Copyright 2017 Google LLC
20100
20100
  * SPDX-License-Identifier: BSD-3-Clause
20101
20101
  */
20102
- const { is: B8, defineProperty: H8, getOwnPropertyDescriptor: W8, getOwnPropertyNames: V8, getOwnPropertySymbols: K8, getPrototypeOf: G8 } = Object, qi = globalThis, em = qi.trustedTypes, Y8 = em ? em.emptyScript : "", oh = qi.reactiveElementPolyfillSupport, qo = (s, e) => s, fu = { toAttribute(s, e) {
20102
+ const { is: B8, defineProperty: H8, getOwnPropertyDescriptor: W8, getOwnPropertyNames: V8, getOwnPropertySymbols: K8, getPrototypeOf: G8 } = Object, qi = globalThis, em = qi.trustedTypes, Y8 = em ? em.emptyScript : "", oh = qi.reactiveElementPolyfillSupport, qo = (s, e) => s, mu = { toAttribute(s, e) {
20103
20103
  switch (e) {
20104
20104
  case Boolean:
20105
20105
  s = s ? Y8 : null;
@@ -20127,7 +20127,7 @@ const { is: B8, defineProperty: H8, getOwnPropertyDescriptor: W8, getOwnProperty
20127
20127
  }
20128
20128
  }
20129
20129
  return t;
20130
- } }, Gb = (s, e) => !B8(s, e), tm = { attribute: !0, type: String, converter: fu, reflect: !1, useDefault: !1, hasChanged: Gb };
20130
+ } }, Gb = (s, e) => !B8(s, e), tm = { attribute: !0, type: String, converter: mu, reflect: !1, useDefault: !1, hasChanged: Gb };
20131
20131
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), qi.litPropertyMetadata ?? (qi.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
20132
20132
  let _n = class extends HTMLElement {
20133
20133
  static addInitializer(e) {
@@ -20238,7 +20238,7 @@ let _n = class extends HTMLElement {
20238
20238
  var n;
20239
20239
  const i = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, i);
20240
20240
  if (r !== void 0 && i.reflect === !0) {
20241
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : fu).toAttribute(t, i.type);
20241
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : mu).toAttribute(t, i.type);
20242
20242
  this._$Em = e, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
20243
20243
  }
20244
20244
  }
@@ -20246,7 +20246,7 @@ let _n = class extends HTMLElement {
20246
20246
  var n, o;
20247
20247
  const i = this.constructor, r = i._$Eh.get(e);
20248
20248
  if (r !== void 0 && this._$Em !== r) {
20249
- const a = i.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : fu;
20249
+ const a = i.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : mu;
20250
20250
  this._$Em = r, this[r] = l.fromAttribute(t, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? null, this._$Em = null;
20251
20251
  }
20252
20252
  }
@@ -20336,11 +20336,11 @@ _n.elementStyles = [], _n.shadowRootOptions = { mode: "open" }, _n[qo("elementPr
20336
20336
  * Copyright 2017 Google LLC
20337
20337
  * SPDX-License-Identifier: BSD-3-Clause
20338
20338
  */
20339
- const Bo = globalThis, kc = Bo.trustedTypes, sm = kc ? kc.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Yb = "$lit$", xi = `lit$${Math.random().toFixed(9).slice(2)}$`, Qb = "?" + xi, Q8 = `<${Qb}>`, Cr = document, ra = () => Cr.createComment(""), na = (s) => s === null || typeof s != "object" && typeof s != "function", Xu = Array.isArray, Z8 = (s) => Xu(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ah = `[
20339
+ const Bo = globalThis, kc = Bo.trustedTypes, sm = kc ? kc.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Yb = "$lit$", xi = `lit$${Math.random().toFixed(9).slice(2)}$`, Qb = "?" + xi, Q8 = `<${Qb}>`, Cr = document, ra = () => Cr.createComment(""), na = (s) => s === null || typeof s != "object" && typeof s != "function", ed = Array.isArray, Z8 = (s) => ed(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ah = `[
20340
20340
  \f\r]`, So = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, im = /-->/g, rm = />/g, ir = RegExp(`>|${ah}(?:([^\\s"'>=/]+)(${ah}*=${ah}*(?:[^
20341
20341
  \f\r"'\`<>=]|("|')|))|$)`, "g"), nm = /'/g, om = /"/g, Zb = /^(?:script|style|textarea|title)$/i, Jb = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), Tq = Jb(1), Mq = Jb(2), Bn = Symbol.for("lit-noChange"), At = Symbol.for("lit-nothing"), am = /* @__PURE__ */ new WeakMap(), gr = Cr.createTreeWalker(Cr, 129);
20342
20342
  function Xb(s, e) {
20343
- if (!Xu(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
20343
+ if (!ed(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
20344
20344
  return sm !== void 0 ? sm.createHTML(e) : e;
20345
20345
  }
20346
20346
  const J8 = (s, e) => {
@@ -20472,7 +20472,7 @@ class Ca {
20472
20472
  return t === void 0 && am.set(e.strings, t = new oa(e)), t;
20473
20473
  }
20474
20474
  k(e) {
20475
- Xu(this._$AH) || (this._$AH = [], this._$AR());
20475
+ ed(this._$AH) || (this._$AH = [], this._$AR());
20476
20476
  const t = this._$AH;
20477
20477
  let i, r = 0;
20478
20478
  for (const n of e) r === t.length ? t.push(i = new Ca(this.O(ra()), this.O(ra()), this, this.options)) : i = t[r], i._$AI(n), r++;
@@ -21509,7 +21509,7 @@ function Sa(s) {
21509
21509
  ...s
21510
21510
  };
21511
21511
  }
21512
- const mu = Sa({
21512
+ const wu = Sa({
21513
21513
  id: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
21514
21514
  name: "Solana",
21515
21515
  network: "solana-mainnet",
@@ -21522,7 +21522,7 @@ const mu = Sa({
21522
21522
  chainNamespace: "solana",
21523
21523
  caipNetworkId: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
21524
21524
  deprecatedCaipNetworkId: "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"
21525
- }), wu = Sa({
21525
+ }), yu = Sa({
21526
21526
  id: "EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
21527
21527
  name: "Solana Devnet",
21528
21528
  network: "solana-devnet",
@@ -21658,12 +21658,12 @@ const a6 = {
21658
21658
  i[o] || (i[o] = this.createDefaultNamespace(o));
21659
21659
  const c = `${o}:${n}`, h = i[o];
21660
21660
  switch (h.chains.push(c), c) {
21661
- case mu.caipNetworkId:
21662
- h.chains.push(mu.deprecatedCaipNetworkId);
21663
- break;
21664
21661
  case wu.caipNetworkId:
21665
21662
  h.chains.push(wu.deprecatedCaipNetworkId);
21666
21663
  break;
21664
+ case yu.caipNetworkId:
21665
+ h.chains.push(yu.deprecatedCaipNetworkId);
21666
+ break;
21667
21667
  }
21668
21668
  return h != null && h.rpcMap && l && (h.rpcMap[n] = l), i;
21669
21669
  }, {});
@@ -22891,7 +22891,7 @@ class u6 {
22891
22891
  D.setSocialsOrder(e);
22892
22892
  }
22893
22893
  getConnectMethodsOrder() {
22894
- return gu.getConnectOrderMethod(D.state.features, te.getConnectors());
22894
+ return fu.getConnectOrderMethod(D.state.features, te.getConnectors());
22895
22895
  }
22896
22896
  /**
22897
22897
  * Removes an adapter from the AppKit.
@@ -22970,7 +22970,7 @@ class d6 extends u6 {
22970
22970
  }
22971
22971
  async injectModalUi() {
22972
22972
  if (!cm && se.isClient()) {
22973
- if (await import("./basic-DmAZdELt.mjs"), await import("./w3m-modal-Cy1spBe9.mjs"), !document.querySelector("w3m-modal")) {
22973
+ if (await import("./basic-C5W71-rE.mjs"), await import("./w3m-modal-BJkuxcj8.mjs"), !document.querySelector("w3m-modal")) {
22974
22974
  const t = document.createElement("w3m-modal");
22975
22975
  !D.state.disableAppend && !D.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", t);
22976
22976
  }
@@ -23110,9 +23110,9 @@ function y6(s) {
23110
23110
  }
23111
23111
  };
23112
23112
  }
23113
- class ed extends Error {
23113
+ class td extends Error {
23114
23114
  constructor() {
23115
- super("QR Code Modal was closed by user"), Object.setPrototypeOf(this, ed.prototype), this.name = "QRCodeModalError";
23115
+ super("QR Code Modal was closed by user"), Object.setPrototypeOf(this, td.prototype), this.name = "QRCodeModalError";
23116
23116
  }
23117
23117
  }
23118
23118
  class b6 {
@@ -23145,7 +23145,7 @@ class b6 {
23145
23145
  (r = this._modal) == null || r.open();
23146
23146
  const t = new AbortController(), i = t.signal;
23147
23147
  (n = this._modal) == null || n.subscribeState((h) => {
23148
- h.open || t.abort(new ed());
23148
+ h.open || t.abort(new td());
23149
23149
  });
23150
23150
  try {
23151
23151
  const h = await Promise.race([
@@ -23271,7 +23271,7 @@ class b6 {
23271
23271
  this._modal = g6({
23272
23272
  projectId: this._projectId,
23273
23273
  universalProvider: this._UniversalProvider,
23274
- networks: [mu, wu, o6],
23274
+ networks: [wu, yu, o6],
23275
23275
  manualWCControl: !0
23276
23276
  });
23277
23277
  }
@@ -23289,7 +23289,7 @@ class b6 {
23289
23289
  }
23290
23290
  }
23291
23291
  const v6 = "WalletConnect";
23292
- class I6 extends Eu {
23292
+ class I6 extends Au {
23293
23293
  constructor(t) {
23294
23294
  super();
23295
23295
  Nt(this, "name", v6);
@@ -23450,7 +23450,7 @@ class Ci extends hv {
23450
23450
  }), this.adapter.removeAllListeners(), this.emit("disconnect"));
23451
23451
  }
23452
23452
  getChainId() {
23453
- return sd;
23453
+ return id;
23454
23454
  }
23455
23455
  getAddress() {
23456
23456
  var e;
@@ -23501,9 +23501,9 @@ class Ci extends hv {
23501
23501
  }
23502
23502
  getWalletState() {
23503
23503
  const e = this.adapter.readyState;
23504
- if (!(e in id))
23504
+ if (!(e in rd))
23505
23505
  throw new Error(`Unknown wallet state ${e}`);
23506
- return id[e];
23506
+ return rd[e];
23507
23507
  }
23508
23508
  getFeatures() {
23509
23509
  const e = [
@@ -23513,7 +23513,7 @@ class Ci extends hv {
23513
23513
  return this.adapter.signTransaction && this.adapter.signAllTransactions && e.push($a.SignTransaction), this.adapter.signMessage && e.push($a.SignMessage), e;
23514
23514
  }
23515
23515
  supportsChain(e) {
23516
- return e === sd;
23516
+ return e === id;
23517
23517
  }
23518
23518
  }
23519
23519
  function C6(s) {
@@ -23610,7 +23610,7 @@ var V = function(s, e, t, i) {
23610
23610
  if (i === "a" && !r) throw new TypeError("Private accessor was defined without a setter");
23611
23611
  if (typeof e == "function" ? s !== e || !r : !e.has(s)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
23612
23612
  return i === "a" ? r.call(s, t) : r ? r.value = t : e.set(s, t), t;
23613
- }, Ot, ns, fr, mr, ar, ko, Rc, me, Lc, yu, wc, bu, Wo, vu, dm, pm, gm, fm;
23613
+ }, Ot, ns, fr, mr, ar, ko, Rc, me, Lc, bu, wc, vu, Wo, Iu, dm, pm, gm, fm;
23614
23614
  class P6 extends Mm {
23615
23615
  get name() {
23616
23616
  return V(this, me, "f").name;
@@ -23640,13 +23640,13 @@ class P6 extends Mm {
23640
23640
  return !0;
23641
23641
  }
23642
23642
  constructor({ wallet: e }) {
23643
- super(), Ot.add(this), ns.set(this, void 0), fr.set(this, void 0), mr.set(this, void 0), ar.set(this, void 0), ko.set(this, void 0), Rc.set(this, void 0), me.set(this, void 0), Lc.set(this, typeof window > "u" || typeof document > "u" ? ne.Unsupported : ne.Installed), vu.set(this, (t) => {
23643
+ super(), Ot.add(this), ns.set(this, void 0), fr.set(this, void 0), mr.set(this, void 0), ar.set(this, void 0), ko.set(this, void 0), Rc.set(this, void 0), me.set(this, void 0), Lc.set(this, typeof window > "u" || typeof document > "u" ? ne.Unsupported : ne.Installed), Iu.set(this, (t) => {
23644
23644
  if ("accounts" in t) {
23645
23645
  const i = V(this, me, "f").accounts[0];
23646
- V(this, ns, "f") && !V(this, ar, "f") && i !== V(this, ns, "f") && (i ? V(this, Ot, "m", wc).call(this, i) : (this.emit("error", new Tm()), V(this, Ot, "m", bu).call(this)));
23646
+ V(this, ns, "f") && !V(this, ar, "f") && i !== V(this, ns, "f") && (i ? V(this, Ot, "m", wc).call(this, i) : (this.emit("error", new Tm()), V(this, Ot, "m", vu).call(this)));
23647
23647
  }
23648
23648
  "features" in t && V(this, Ot, "m", Wo).call(this);
23649
- }), ot(this, me, e, "f"), ot(this, ns, null, "f"), ot(this, fr, null, "f"), ot(this, mr, !1, "f"), ot(this, ar, !1, "f"), ot(this, ko, V(this, me, "f").features[xm].on("change", V(this, vu, "f")), "f"), V(this, Ot, "m", Wo).call(this);
23649
+ }), ot(this, me, e, "f"), ot(this, ns, null, "f"), ot(this, fr, null, "f"), ot(this, mr, !1, "f"), ot(this, ar, !1, "f"), ot(this, ko, V(this, me, "f").features[xm].on("change", V(this, Iu, "f")), "f"), V(this, Ot, "m", Wo).call(this);
23650
23650
  }
23651
23651
  destroy() {
23652
23652
  ot(this, ns, null, "f"), ot(this, fr, null, "f"), ot(this, mr, !1, "f"), ot(this, ar, !1, "f");
@@ -23654,10 +23654,10 @@ class P6 extends Mm {
23654
23654
  e && (ot(this, ko, null, "f"), e());
23655
23655
  }
23656
23656
  async autoConnect() {
23657
- return V(this, Ot, "m", yu).call(this, { silent: !0 });
23657
+ return V(this, Ot, "m", bu).call(this, { silent: !0 });
23658
23658
  }
23659
23659
  async connect() {
23660
- return V(this, Ot, "m", yu).call(this);
23660
+ return V(this, Ot, "m", bu).call(this);
23661
23661
  }
23662
23662
  async disconnect() {
23663
23663
  if (ld in V(this, me, "f").features)
@@ -23668,7 +23668,7 @@ class P6 extends Mm {
23668
23668
  } finally {
23669
23669
  ot(this, ar, !1, "f");
23670
23670
  }
23671
- V(this, Ot, "m", bu).call(this);
23671
+ V(this, Ot, "m", vu).call(this);
23672
23672
  }
23673
23673
  async sendTransaction(e, t, i = {}) {
23674
23674
  try {
@@ -23734,7 +23734,7 @@ class P6 extends Mm {
23734
23734
  }
23735
23735
  }
23736
23736
  }
23737
- ns = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), vu = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakSet(), yu = async function(e) {
23737
+ ns = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Iu = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakSet(), bu = async function(e) {
23738
23738
  try {
23739
23739
  if (this.connected || this.connecting)
23740
23740
  return;
@@ -23763,7 +23763,7 @@ ns = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), mr = /*
23763
23763
  throw new Pr(i == null ? void 0 : i.message, i);
23764
23764
  }
23765
23765
  ot(this, ns, e, "f"), ot(this, fr, t, "f"), V(this, Ot, "m", Wo).call(this), this.emit("connect", t);
23766
- }, bu = function() {
23766
+ }, vu = function() {
23767
23767
  ot(this, ns, null, "f"), ot(this, fr, null, "f"), V(this, Ot, "m", Wo).call(this), this.emit("disconnect");
23768
23768
  }, Wo = function() {
23769
23769
  var t, i;
@@ -23865,7 +23865,7 @@ function M6(s) {
23865
23865
  }
23866
23866
  async function O6(s, e, t, i) {
23867
23867
  const r = i.transaction.transaction, n = (o) => o.programId.toString() !== "ComputeBudget111111111111111111111111111111";
23868
- if (ph(r)) {
23868
+ if (gh(r)) {
23869
23869
  const o = (await Promise.all(
23870
23870
  r.message.addressTableLookups.map(
23871
23871
  (l) => s.getAddressLookupTable(l.accountKey)
@@ -23888,22 +23888,22 @@ async function mm(s, e, t) {
23888
23888
  var w, m;
23889
23889
  let i = 2e5, r = 0;
23890
23890
  e: for (; ; ) {
23891
- if (ph(e) && !e.message.recentBlockhash) {
23891
+ if (gh(e) && !e.message.recentBlockhash) {
23892
23892
  const { blockhash: I } = await s.getLatestBlockhash(t);
23893
23893
  e.message.recentBlockhash = I;
23894
23894
  }
23895
- const b = await (ph(e) ? s.simulateTransaction(e, {
23895
+ const b = await (gh(e) ? s.simulateTransaction(e, {
23896
23896
  commitment: t,
23897
23897
  replaceRecentBlockhash: !0
23898
23898
  }) : s.simulateTransaction(e));
23899
23899
  if (b.value.err) {
23900
23900
  if (x6(b.value)) {
23901
23901
  if (r < 5) {
23902
- r++, await rd(1e3);
23902
+ r++, await ph(1e3);
23903
23903
  continue e;
23904
23904
  }
23905
23905
  } else if (r < 3) {
23906
- r++, await rd(1e3);
23906
+ r++, await ph(1e3);
23907
23907
  continue e;
23908
23908
  }
23909
23909
  throw new Error(
@@ -23919,7 +23919,7 @@ ${(b.value.logs || []).join(`
23919
23919
  }
23920
23920
  const n = Math.floor(i * 1.2), o = [];
23921
23921
  o.push(
23922
- td.setComputeUnitLimit({
23922
+ sd.setComputeUnitLimit({
23923
23923
  // Set compute budget to 120% of the units used in the simulated transaction
23924
23924
  units: n
23925
23925
  })
@@ -23977,7 +23977,7 @@ ${(b.value.logs || []).join(`
23977
23977
  "Priority fee": g,
23978
23978
  "Max fee in SOL": y
23979
23979
  }), o.push(
23980
- td.setComputeUnitPrice({ microLamports: g })
23980
+ sd.setComputeUnitPrice({ microLamports: g })
23981
23981
  ), o;
23982
23982
  }
23983
23983
  function x6(s) {
@@ -24036,37 +24036,51 @@ async function j6(s, e, t) {
24036
24036
  },
24037
24037
  i
24038
24038
  );
24039
- const f = 5e3;
24040
- for (; !c && (c = await Promise.race([
24041
- l,
24042
- new Promise(
24043
- (y) => setTimeout(() => {
24044
- y(null);
24045
- }, f)
24046
- )
24047
- ]), !c); ) {
24048
- console.log(
24049
- `Tx not confirmed after ${f * h++}ms, resending`
24050
- );
24051
- try {
24052
- await r.sendRawTransaction(p, g);
24053
- } catch (y) {
24054
- console.error("Failed to resend transaction:", y);
24039
+ try {
24040
+ for (; !c && (c = await Promise.race([
24041
+ l,
24042
+ new Promise(
24043
+ (y) => setTimeout(() => {
24044
+ y(null);
24045
+ }, 5e3)
24046
+ )
24047
+ ]), !c); ) {
24048
+ console.log(
24049
+ `Tx not confirmed after ${5e3 * h++}ms, resending`
24050
+ );
24051
+ try {
24052
+ await r.sendRawTransaction(p, g);
24053
+ } catch (y) {
24054
+ console.error("Failed to resend transaction:", y);
24055
+ }
24055
24056
  }
24057
+ } catch (f) {
24058
+ if (f instanceof Error && f.name === "TransactionExpiredBlockheightExceededError")
24059
+ for (let m = 0; m < 5; ++m) {
24060
+ try {
24061
+ if (await r.getTransaction(u, {
24062
+ commitment: "confirmed",
24063
+ maxSupportedTransactionVersion: 0
24064
+ })) return u;
24065
+ } catch {
24066
+ }
24067
+ await ph(2e3);
24068
+ }
24069
+ throw f;
24056
24070
  }
24057
24071
  if (c.value.err) {
24058
- let y = `Transaction failed: ${c.value.err}`;
24072
+ let f = `Transaction failed: ${c.value.err}`;
24059
24073
  if (typeof c.value.err == "object")
24060
24074
  try {
24061
- y = `Transaction failed: ${JSON.stringify(
24075
+ f = `Transaction failed: ${JSON.stringify(
24062
24076
  c.value.err,
24063
- (w, m) => typeof m == "bigint" ? m.toString() : m
24077
+ (y, w) => typeof w == "bigint" ? w.toString() : w
24064
24078
  // Handle bigint props
24065
24079
  )}`;
24066
24080
  } catch {
24067
- y = "Transaction failed: Unknown error";
24081
+ f = "Transaction failed: Unknown error";
24068
24082
  }
24069
- throw new Error(`Transaction failed: ${y}`);
24083
+ throw new Error(`Transaction failed: ${f}`);
24070
24084
  }
24071
24085
  return u;
24072
24086
  }
@@ -24099,7 +24113,7 @@ export {
24099
24113
  Vt as T,
24100
24114
  gF as U,
24101
24115
  Dk as V,
24102
- gu as W,
24116
+ fu as W,
24103
24117
  bq as X,
24104
24118
  Ig as Y,
24105
24119
  xy as Z,
@@ -24130,7 +24144,7 @@ export {
24130
24144
  xq as r,
24131
24145
  Xe as s,
24132
24146
  vs as t,
24133
- fu as u,
24147
+ mu as u,
24134
24148
  Yt as v,
24135
24149
  oc as w,
24136
24150
  Tq as x,