@multiversx/sdk-dapp 3.0.0-alpha.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (696) hide show
  1. package/UI/Denominate/index.js +1 -1
  2. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  3. package/UI/ExplorerLink/index.js +1 -1
  4. package/UI/FormatAmount/FormatAmount.js +1 -1
  5. package/UI/FormatAmount/index.js +1 -1
  6. package/UI/NotificationModal/NotificationModal.js +1 -1
  7. package/UI/NotificationModal/index.js +1 -1
  8. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
  26. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  27. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  28. package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
  29. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  30. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  31. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  32. package/UI/SignTransactionsModals/SignWithIframeModal/SignWithIframeModal.js +1 -1
  33. package/UI/SignTransactionsModals/SignWithIframeModal/index.js +1 -1
  34. package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
  35. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  36. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  37. package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
  38. package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
  39. package/UI/SignTransactionsModals/SignWithPasskeyModal/SignWithPasskeyModal.js +1 -1
  40. package/UI/SignTransactionsModals/SignWithPasskeyModal/index.js +1 -1
  41. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  42. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  43. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  44. package/UI/SignTransactionsModals/components/index.js +1 -1
  45. package/UI/SignTransactionsModals/index.js +1 -1
  46. package/UI/TokenDetails/index.js +1 -1
  47. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  48. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  49. package/UI/TransactionDetails/components/index.js +1 -1
  50. package/UI/TransactionDetails/index.js +1 -1
  51. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  52. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  53. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  54. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  55. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  56. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  57. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  58. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  59. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  60. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  61. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  62. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  63. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  64. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  65. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  66. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  67. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  68. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  69. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  70. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  71. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  72. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  73. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  74. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  75. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  79. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  80. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  81. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  82. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  83. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  84. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  85. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  86. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  87. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  88. package/UI/TransactionInfo/components/index.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  110. package/UI/TransactionInfo/index.js +1 -1
  111. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  112. package/UI/TransactionsTable/components/AccountName.js +1 -1
  113. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  114. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  115. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  116. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  117. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  118. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  119. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  121. package/UI/TransactionsTable/components/index.js +1 -1
  122. package/UI/TransactionsTable/index.js +1 -1
  123. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  124. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  125. package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
  126. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  127. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  128. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  137. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  138. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  139. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  140. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  141. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  142. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  143. package/UI/TransactionsToastList/components/index.js +1 -1
  144. package/UI/TransactionsToastList/index.js +1 -1
  145. package/UI/Trim/Trim.js +1 -1
  146. package/UI/Trim/index.js +1 -1
  147. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  148. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  149. package/UI/iframe/IframeLoginButton/IframeButton.js +1 -1
  150. package/UI/iframe/IframeLoginButton/index.js +1 -1
  151. package/UI/index.js +1 -1
  152. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  153. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  154. package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
  155. package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
  156. package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
  157. package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
  158. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
  159. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
  160. package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
  161. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
  162. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
  163. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
  164. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
  165. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
  166. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
  167. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  168. package/UI/ledger/index.js +1 -1
  169. package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
  170. package/UI/metamask/MetamaskLoginButton/index.js +1 -1
  171. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  172. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  173. package/UI/pages/UnlockPage/index.js +1 -1
  174. package/UI/pages/index.js +1 -1
  175. package/UI/passkey/PasskeyLoginButton/PasskeyLoginButton.js +1 -1
  176. package/UI/passkey/PasskeyLoginButton/index.js +1 -1
  177. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  178. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  179. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
  180. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
  181. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
  182. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  183. package/UI/walletConnect/index.js +1 -1
  184. package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
  185. package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
  186. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  187. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  188. package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
  189. package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
  190. package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
  191. package/UI/webWallet/XaliasLoginButton/index.js +1 -1
  192. package/__chunks__/{chunk-B6BVGVPJ.js → chunk-25L7IZDM.js} +2 -2
  193. package/__chunks__/{chunk-FDLKDPZZ.js → chunk-2ATYKCGB.js} +2 -2
  194. package/__chunks__/{chunk-HWS32UTK.js → chunk-2FNEZBRV.js} +2 -2
  195. package/__chunks__/{chunk-WRE42QJ5.js → chunk-2LZNH2UQ.js} +2 -2
  196. package/__chunks__/{chunk-7BS3VZC6.js → chunk-3A7AOPKU.js} +2 -2
  197. package/__chunks__/{chunk-34DAWQRG.js → chunk-3LQRGHAQ.js} +2 -2
  198. package/__chunks__/{chunk-XNE7FKZB.js → chunk-3N53ML24.js} +2 -2
  199. package/__chunks__/{chunk-YJXPJXSQ.js → chunk-3O3EOJLM.js} +2 -2
  200. package/__chunks__/{chunk-FVPUNTSD.js → chunk-3S2JXXLR.js} +2 -2
  201. package/__chunks__/{chunk-MHZ3I3I7.js → chunk-3SKDMXLW.js} +2 -2
  202. package/__chunks__/{chunk-ZGYIUB3U.js → chunk-3SZDG3IC.js} +2 -2
  203. package/__chunks__/{chunk-7WV7CWTK.js → chunk-3ZGRB74U.js} +2 -2
  204. package/__chunks__/{chunk-TNMB25RB.js → chunk-3ZGRI5Z6.js} +2 -2
  205. package/__chunks__/{chunk-X2SXQXKS.js → chunk-423O7RDP.js} +2 -2
  206. package/__chunks__/{chunk-NNBOCVND.js → chunk-4D3VFJ4N.js} +2 -2
  207. package/__chunks__/{chunk-RFHOY3XV.js → chunk-4JRWDYQY.js} +2 -2
  208. package/__chunks__/chunk-4K27HID7.js +2 -0
  209. package/__chunks__/{chunk-ZRHUSVLX.js → chunk-4KZWFMF2.js} +2 -2
  210. package/__chunks__/{chunk-NNOACYLT.js → chunk-4MAAWE3L.js} +2 -2
  211. package/__chunks__/{chunk-C44UBDMI.js → chunk-4MDDY23W.js} +2 -2
  212. package/__chunks__/{chunk-F5YSW4FA.js → chunk-4PLX24OV.js} +2 -2
  213. package/__chunks__/{chunk-ZYZBE2PV.js → chunk-4SGFDL65.js} +2 -2
  214. package/__chunks__/{chunk-ISI3ULQP.js → chunk-4TD5FIVB.js} +2 -2
  215. package/__chunks__/chunk-4VFSYSRY.js +2 -0
  216. package/__chunks__/{chunk-QNJD2PWM.js → chunk-4Y35HUXC.js} +2 -2
  217. package/__chunks__/{chunk-YZJYFGDO.js → chunk-5EJAXO73.js} +2 -2
  218. package/__chunks__/chunk-5K6TUN5S.js +2 -0
  219. package/__chunks__/chunk-5LEAPGQG.js +2 -0
  220. package/__chunks__/{chunk-DU4LY7SM.js → chunk-5O2HPDMG.js} +2 -2
  221. package/__chunks__/{chunk-JOAVAPP5.js → chunk-5P3B3JFD.js} +2 -2
  222. package/__chunks__/{chunk-GQ2OMHAQ.js → chunk-5P4YZHO4.js} +2 -2
  223. package/__chunks__/{chunk-CMRQD2JD.js → chunk-5QJMA55P.js} +2 -2
  224. package/__chunks__/{chunk-7UG34UYU.js → chunk-5WD2FCPK.js} +2 -2
  225. package/__chunks__/{chunk-LQQO5VZ5.js → chunk-62ZE56ZS.js} +2 -2
  226. package/__chunks__/{chunk-NF6EVV6F.js → chunk-6325WGDX.js} +2 -2
  227. package/__chunks__/{chunk-6SYDVWO2.js → chunk-63RV57OA.js} +2 -2
  228. package/__chunks__/chunk-645DWPZT.js +2 -0
  229. package/__chunks__/{chunk-MEDQLP2Q.js → chunk-6B2DPF44.js} +2 -2
  230. package/__chunks__/{chunk-JKUPLZKE.js → chunk-6I3QCNU7.js} +2 -2
  231. package/__chunks__/{chunk-I7ZKYR4H.js → chunk-6VCT7NFZ.js} +2 -2
  232. package/__chunks__/{chunk-QX6S7Y47.js → chunk-6X4XD5JR.js} +2 -2
  233. package/__chunks__/{chunk-YTKWJVSF.js → chunk-72RVIWJ5.js} +2 -2
  234. package/__chunks__/{chunk-IN4QX2CN.js → chunk-7AOI7YRS.js} +2 -2
  235. package/__chunks__/{chunk-X6G5ECTG.js → chunk-7DZNIYGH.js} +2 -2
  236. package/__chunks__/{chunk-NMX634C2.js → chunk-7FWBOMIO.js} +2 -2
  237. package/__chunks__/{chunk-3YVAKZVC.js → chunk-7I2SBI2Y.js} +2 -2
  238. package/__chunks__/{chunk-BVRMHTSA.js → chunk-7NJ55HTM.js} +2 -2
  239. package/__chunks__/{chunk-BINXKJZV.js → chunk-7P5IMEZL.js} +2 -2
  240. package/__chunks__/{chunk-PFZ5QPR4.js → chunk-7TN3QCIW.js} +2 -2
  241. package/__chunks__/chunk-A7O56LYZ.js +2 -0
  242. package/__chunks__/{chunk-QKEUIW6T.js → chunk-ABDSBTSG.js} +2 -2
  243. package/__chunks__/{chunk-LLNM6OVQ.js → chunk-ABPOVQ3W.js} +2 -2
  244. package/__chunks__/{chunk-M747KCMO.js → chunk-AJ4UYTNK.js} +2 -2
  245. package/__chunks__/{chunk-EM5S23XI.js → chunk-AKVSPG7P.js} +2 -2
  246. package/__chunks__/{chunk-DDW6DF2Z.js → chunk-ANIN6OKM.js} +2 -2
  247. package/__chunks__/{chunk-WFEFBWTA.js → chunk-AOSERLA6.js} +2 -2
  248. package/__chunks__/{chunk-ICZKGQOA.js → chunk-AQKYZLJT.js} +2 -2
  249. package/__chunks__/{chunk-2CQCC7TZ.js → chunk-ATQJMMQO.js} +2 -2
  250. package/__chunks__/{chunk-MC2ABJ7O.js → chunk-AWIIPQNU.js} +2 -2
  251. package/__chunks__/{chunk-U2LTKLIB.js → chunk-AWXIPI7R.js} +2 -2
  252. package/__chunks__/{chunk-ZVUXRASX.js → chunk-AXZIQLEK.js} +2 -2
  253. package/__chunks__/{chunk-FWBJLHRD.js → chunk-B4QLF64A.js} +2 -2
  254. package/__chunks__/chunk-BIP6YZ7A.js +2 -0
  255. package/__chunks__/{chunk-KU3FRN46.js → chunk-BJAOZFBZ.js} +2 -2
  256. package/__chunks__/{chunk-SBRKIZH5.js → chunk-BLX22ZXC.js} +2 -2
  257. package/__chunks__/{chunk-BLKLULGS.js → chunk-BOAKOZGC.js} +2 -2
  258. package/__chunks__/{chunk-XOSOPHM7.js → chunk-BOY372PF.js} +2 -2
  259. package/__chunks__/{chunk-SD3OAXTT.js → chunk-BSJZTDFO.js} +2 -2
  260. package/__chunks__/{chunk-Y64S63H4.js → chunk-BTPFXZCI.js} +2 -2
  261. package/__chunks__/{chunk-BBMKPOAH.js → chunk-BX4AN77M.js} +2 -2
  262. package/__chunks__/{chunk-JQQT6UYX.js → chunk-BXJQSNND.js} +2 -2
  263. package/__chunks__/{chunk-CR3FRXR2.js → chunk-BXQXNWNH.js} +2 -2
  264. package/__chunks__/{chunk-Z264KPZR.js → chunk-C2JRKHGA.js} +2 -2
  265. package/__chunks__/{chunk-VKOU75I3.js → chunk-C2KLOP3D.js} +2 -2
  266. package/__chunks__/{chunk-NZSEKUAC.js → chunk-C46YOAQF.js} +2 -2
  267. package/__chunks__/{chunk-TYETGRMZ.js → chunk-C4JXRE6Y.js} +2 -2
  268. package/__chunks__/chunk-CA525IVP.js +2 -0
  269. package/__chunks__/chunk-CD7ZPINJ.js +2 -0
  270. package/__chunks__/chunk-CG7VKDFQ.js +2 -0
  271. package/__chunks__/{chunk-TACJAKWS.js → chunk-CGXUSPZ2.js} +2 -2
  272. package/__chunks__/{chunk-66EU5LLN.js → chunk-CJW765LU.js} +2 -2
  273. package/__chunks__/{chunk-XDMLHPPQ.js → chunk-D42SLIXZ.js} +2 -2
  274. package/__chunks__/{chunk-M2TJBLRM.js → chunk-DDE6PHYM.js} +2 -2
  275. package/__chunks__/{chunk-4JLMKKGK.js → chunk-DREO6JSY.js} +2 -2
  276. package/__chunks__/{chunk-2SBN6S4S.js → chunk-DS6Y6JTL.js} +2 -2
  277. package/__chunks__/{chunk-QISXIHAQ.js → chunk-DV3UAQYL.js} +2 -2
  278. package/__chunks__/{chunk-VAFC6KEB.js → chunk-DZOUIZ7F.js} +2 -2
  279. package/__chunks__/{chunk-LNSV5JQG.js → chunk-DZWAMJTL.js} +2 -2
  280. package/__chunks__/{chunk-2WAHWU32.js → chunk-E6YZVJWL.js} +2 -2
  281. package/__chunks__/{chunk-2HPVNKSQ.js → chunk-EGSHVDXJ.js} +2 -2
  282. package/__chunks__/{chunk-CJ2UH2A6.js → chunk-EMP6X4IU.js} +2 -2
  283. package/__chunks__/{chunk-YZT74GDG.js → chunk-EOEO2Z5W.js} +2 -2
  284. package/__chunks__/{chunk-5ZWWLIDN.js → chunk-EWWXP2ZS.js} +2 -2
  285. package/__chunks__/{chunk-2L2ALHSF.js → chunk-EXQGJPMF.js} +2 -2
  286. package/__chunks__/{chunk-446PGP6J.js → chunk-F5JL73NX.js} +2 -2
  287. package/__chunks__/{chunk-L4CDEEQN.js → chunk-F7NTH2JN.js} +2 -2
  288. package/__chunks__/{chunk-XZCRNJHQ.js → chunk-FHUNLDFQ.js} +2 -2
  289. package/__chunks__/{chunk-N7GV4EHP.js → chunk-FQIUOEIO.js} +2 -2
  290. package/__chunks__/{chunk-6PTVYVAG.js → chunk-FS5FLZEZ.js} +2 -2
  291. package/__chunks__/{chunk-CNBYXJ7X.js → chunk-FY45EXI5.js} +2 -2
  292. package/__chunks__/{chunk-KKVBXXLL.js → chunk-G23WZRHO.js} +2 -2
  293. package/__chunks__/{chunk-3WBXPWSE.js → chunk-G2WXXOSE.js} +2 -2
  294. package/__chunks__/{chunk-XT7QDYNI.js → chunk-G44SJ2JN.js} +2 -2
  295. package/__chunks__/chunk-G4WZN22T.js +2 -0
  296. package/__chunks__/{chunk-RNVBCRZ4.js → chunk-GAGPJWB2.js} +2 -2
  297. package/__chunks__/{chunk-DRDESUGC.js → chunk-GRV77DL4.js} +2 -2
  298. package/__chunks__/{chunk-QWIE2NNF.js → chunk-GUKMZLQN.js} +2 -2
  299. package/__chunks__/{chunk-HTHY6GW5.js → chunk-HBYKTGAC.js} +2 -2
  300. package/__chunks__/{chunk-3TJPHYLA.js → chunk-HCZNKWQM.js} +2 -2
  301. package/__chunks__/{chunk-4S5ZFUXE.js → chunk-HJZX43ZR.js} +2 -2
  302. package/__chunks__/{chunk-HVYI7TM4.js → chunk-HOFVGKSM.js} +2 -2
  303. package/__chunks__/chunk-HTPVOT3W.js +2 -0
  304. package/__chunks__/{chunk-TQCZUIOT.js → chunk-HWNBZM7R.js} +2 -2
  305. package/__chunks__/{chunk-UYVWKE3N.js → chunk-HXOPFVMD.js} +2 -2
  306. package/__chunks__/{chunk-RRECIGZO.js → chunk-I4XH47OA.js} +2 -2
  307. package/__chunks__/{chunk-DXMMIIBX.js → chunk-I7TYPKPA.js} +2 -2
  308. package/__chunks__/{chunk-V4S7JZIB.js → chunk-ICGYWRQH.js} +2 -2
  309. package/__chunks__/{chunk-DLCGS77C.js → chunk-IHRNWQYY.js} +2 -2
  310. package/__chunks__/chunk-IMBIGZHO.js +2 -0
  311. package/__chunks__/{chunk-NFKV5D4Y.js → chunk-IOQAOFRJ.js} +2 -2
  312. package/__chunks__/{chunk-K6Y75KPU.js → chunk-IR4VN7GM.js} +2 -2
  313. package/__chunks__/{chunk-LXPTO44V.js → chunk-IWAGLHLU.js} +2 -2
  314. package/__chunks__/{chunk-3AYE72MD.js → chunk-JAPWD7EJ.js} +2 -2
  315. package/__chunks__/{chunk-ASPJHXL6.js → chunk-JEX7CEL7.js} +2 -2
  316. package/__chunks__/{chunk-U6TPBTCI.js → chunk-JFXJEMSH.js} +2 -2
  317. package/__chunks__/{chunk-6GFZ3N7T.js → chunk-JJL53S63.js} +2 -2
  318. package/__chunks__/{chunk-CW74EAO3.js → chunk-KCXH7U2L.js} +2 -2
  319. package/__chunks__/{chunk-FHKM23Y2.js → chunk-KKC6BTXK.js} +2 -2
  320. package/__chunks__/{chunk-IM67JG6M.js → chunk-KLBXV3PJ.js} +2 -2
  321. package/__chunks__/{chunk-T7PS76ZQ.js → chunk-KREIVSIT.js} +2 -2
  322. package/__chunks__/{chunk-RY6UA3P4.js → chunk-KS4AASFA.js} +2 -2
  323. package/__chunks__/chunk-LAJYNNVC.js +2 -0
  324. package/__chunks__/{chunk-WLFPLW6U.js → chunk-LGAEP4GI.js} +2 -2
  325. package/__chunks__/{chunk-2ZFZ2QSL.js → chunk-LI6GYVLH.js} +2 -2
  326. package/__chunks__/{chunk-JKF536O4.js → chunk-LN73ZH2Q.js} +2 -2
  327. package/__chunks__/{chunk-FJIKDPRU.js → chunk-LZHZPT7D.js} +2 -2
  328. package/__chunks__/{chunk-ISNYSINM.js → chunk-MLEATNXF.js} +2 -2
  329. package/__chunks__/{chunk-TAVGMY7A.js → chunk-MOKYCADK.js} +2 -2
  330. package/__chunks__/{chunk-ZTH5UYUZ.js → chunk-MVEQXK77.js} +2 -2
  331. package/__chunks__/{chunk-S3BOPFAL.js → chunk-NC7BWKHD.js} +2 -2
  332. package/__chunks__/{chunk-MMN54ESD.js → chunk-NNQWUTBA.js} +2 -2
  333. package/__chunks__/{chunk-46E3TBBQ.js → chunk-NUFKQFQM.js} +2 -2
  334. package/__chunks__/{chunk-VOQ7WLNG.js → chunk-NV7DDVEQ.js} +2 -2
  335. package/__chunks__/{chunk-EJY323HW.js → chunk-NYF6KWNG.js} +2 -2
  336. package/__chunks__/{chunk-ENZ3UQ2P.js → chunk-NZOLXKXQ.js} +2 -2
  337. package/__chunks__/{chunk-73DVIAJV.js → chunk-OBOCDLNO.js} +2 -2
  338. package/__chunks__/{chunk-S6H3LE7N.js → chunk-ODJGCIZT.js} +2 -2
  339. package/__chunks__/{chunk-VJZSFFLW.js → chunk-OOFULDLP.js} +2 -2
  340. package/__chunks__/{chunk-6DZ2GJNI.js → chunk-P3E7FL4E.js} +2 -2
  341. package/__chunks__/{chunk-THBUOPW6.js → chunk-P45D2U7S.js} +2 -2
  342. package/__chunks__/{chunk-4G7663X7.js → chunk-PAI5ENRW.js} +2 -2
  343. package/__chunks__/{chunk-NZHGHXOB.js → chunk-PCDFMRYO.js} +2 -2
  344. package/__chunks__/{chunk-J5BMKMZ2.js → chunk-PFENVAR3.js} +2 -2
  345. package/__chunks__/chunk-PHC6WLKA.js +2 -0
  346. package/__chunks__/{chunk-D7KMQ3W2.js → chunk-PLTRPTOX.js} +2 -2
  347. package/__chunks__/{chunk-VYPBKYX2.js → chunk-PPTW2NVB.js} +2 -2
  348. package/__chunks__/chunk-PSSJLYJF.js +2 -0
  349. package/__chunks__/{chunk-RCIYAIWJ.js → chunk-PYGAHNOL.js} +2 -2
  350. package/__chunks__/{chunk-RZLI453S.js → chunk-PZNJ6B4D.js} +2 -2
  351. package/__chunks__/{chunk-RZFZAYGX.js → chunk-Q66SB5N5.js} +2 -2
  352. package/__chunks__/{chunk-MMHD6YBY.js → chunk-Q6DS3CZL.js} +2 -2
  353. package/__chunks__/{chunk-RMNKUWFR.js → chunk-QCBZYVN5.js} +2 -2
  354. package/__chunks__/chunk-QPR4QJ5Y.js +2 -0
  355. package/__chunks__/{chunk-XPNMPOQN.js → chunk-R2DO2M76.js} +2 -2
  356. package/__chunks__/{chunk-CNFLGMGD.js → chunk-R5ACMCHD.js} +2 -2
  357. package/__chunks__/{chunk-I6GX7A5C.js → chunk-RBOZXANJ.js} +2 -2
  358. package/__chunks__/{chunk-7HOV5FNS.js → chunk-RR6QYEQN.js} +2 -2
  359. package/__chunks__/{chunk-UUMXV4RK.js → chunk-RTS5VOSH.js} +2 -2
  360. package/__chunks__/{chunk-YDYC7V4G.js → chunk-RTSAJTV3.js} +2 -2
  361. package/__chunks__/{chunk-HW4XOYHF.js → chunk-RWW7CIM2.js} +2 -2
  362. package/__chunks__/{chunk-VU44OJSD.js → chunk-RXJAY766.js} +2 -2
  363. package/__chunks__/{chunk-QSGWIDUW.js → chunk-S6DU3J4U.js} +2 -2
  364. package/__chunks__/{chunk-UNUBTJGW.js → chunk-SI5WT7WD.js} +2 -2
  365. package/__chunks__/{chunk-LG35IPMG.js → chunk-SJEGVCFI.js} +2 -2
  366. package/__chunks__/{chunk-ZGUTEULF.js → chunk-SN3T3EIX.js} +2 -2
  367. package/__chunks__/{chunk-ZOYYJBJD.js → chunk-SP3C4H3X.js} +2 -2
  368. package/__chunks__/{chunk-RAOLUSLQ.js → chunk-SQDTQJEU.js} +2 -2
  369. package/__chunks__/{chunk-7UFTJRBW.js → chunk-SWMGUKLC.js} +2 -2
  370. package/__chunks__/{chunk-STZKRKTV.js → chunk-T57DJDCP.js} +2 -2
  371. package/__chunks__/{chunk-GWB2NNNN.js → chunk-TAUCAOY6.js} +2 -2
  372. package/__chunks__/{chunk-E3YOCEBO.js → chunk-TKA6T4ER.js} +2 -2
  373. package/__chunks__/{chunk-DV526JMU.js → chunk-TMNHB6I3.js} +2 -2
  374. package/__chunks__/{chunk-EKTXALBV.js → chunk-TPFSPQ7E.js} +2 -2
  375. package/__chunks__/{chunk-FOICBDAA.js → chunk-UI5VRZ5U.js} +2 -2
  376. package/__chunks__/{chunk-QHUCBLQJ.js → chunk-UKPU4PE5.js} +2 -2
  377. package/__chunks__/{chunk-HS5MWOBJ.js → chunk-ULXCOMWU.js} +2 -2
  378. package/__chunks__/chunk-UN7XR7DQ.js +2 -0
  379. package/__chunks__/{chunk-HLDHF5VR.js → chunk-UNZZI27D.js} +2 -2
  380. package/__chunks__/{chunk-T4XMTWQE.js → chunk-UQN5T4F2.js} +2 -2
  381. package/__chunks__/{chunk-JKZAAMK7.js → chunk-UTNS3FOU.js} +2 -2
  382. package/__chunks__/{chunk-B37WXW7E.js → chunk-UXBFUIXQ.js} +2 -2
  383. package/__chunks__/{chunk-J22IEYTM.js → chunk-V2IMLXEL.js} +2 -2
  384. package/__chunks__/{chunk-HAPFF7UG.js → chunk-VAPSGCMC.js} +2 -2
  385. package/__chunks__/{chunk-TPIC2NPB.js → chunk-VWAGM5N6.js} +2 -2
  386. package/__chunks__/{chunk-RC6CGPJV.js → chunk-VXSBEJ46.js} +2 -2
  387. package/__chunks__/{chunk-WGDZGDE5.js → chunk-W7MBFG5G.js} +2 -2
  388. package/__chunks__/{chunk-LYM66HVE.js → chunk-WBVUBJNS.js} +2 -2
  389. package/__chunks__/{chunk-SH5WCVMR.js → chunk-WCCLQK4E.js} +2 -2
  390. package/__chunks__/{chunk-2NEG6J5G.js → chunk-WCTMJQII.js} +2 -2
  391. package/__chunks__/{chunk-HAHILZQD.js → chunk-WL2O47XK.js} +2 -2
  392. package/__chunks__/{chunk-BQKHW6JT.js → chunk-WNNPLXCS.js} +2 -2
  393. package/__chunks__/{chunk-OQJ3RCPF.js → chunk-WS7I6I2C.js} +2 -2
  394. package/__chunks__/{chunk-GUDJCYBJ.js → chunk-X6I3KN72.js} +2 -2
  395. package/__chunks__/{chunk-34M6HH5C.js → chunk-XAS6PYGC.js} +2 -2
  396. package/__chunks__/{chunk-3GIXGAKV.js → chunk-XGTBA42T.js} +2 -2
  397. package/__chunks__/{chunk-VMH6KQLZ.js → chunk-XRWOXWRN.js} +2 -2
  398. package/__chunks__/{chunk-6BW2AKKH.js → chunk-Y2RNPDIY.js} +2 -2
  399. package/__chunks__/{chunk-3MIHDKBS.js → chunk-YM7JSJSB.js} +2 -2
  400. package/__chunks__/{chunk-GBQD43WV.js → chunk-YMB5Z6BA.js} +2 -2
  401. package/__chunks__/{chunk-AKI5JQDB.js → chunk-YOAMT4AV.js} +2 -2
  402. package/__chunks__/{chunk-TRBN3F6Y.js → chunk-YQJVTLCH.js} +2 -2
  403. package/__chunks__/{chunk-GTBYBX2Z.js → chunk-YVEAHF3A.js} +2 -2
  404. package/__chunks__/{chunk-SG5K6LLR.js → chunk-YZCZFZIS.js} +2 -2
  405. package/__chunks__/{chunk-YGQIILDA.js → chunk-Z2UM4V3T.js} +2 -2
  406. package/__chunks__/{chunk-QORHJVCA.js → chunk-ZD2JNZ37.js} +2 -2
  407. package/__chunks__/chunk-ZHBO2J3I.js +2 -0
  408. package/__chunks__/{chunk-KSWXLMYM.js → chunk-ZJ7Q3OQR.js} +2 -2
  409. package/__chunks__/{chunk-SJ5ZMOFS.js → chunk-ZLFQISW2.js} +2 -2
  410. package/__chunks__/{chunk-M4LRZMTT.js → chunk-ZOBZHFSC.js} +2 -2
  411. package/__chunks__/chunk-ZZXZCATV.js +2 -0
  412. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  413. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  414. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  415. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  416. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  417. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  418. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  419. package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
  420. package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
  421. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  422. package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
  423. package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
  424. package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +3 -3
  425. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +13 -13
  426. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +13 -13
  427. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +6 -6
  428. package/__commonjs/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +3 -3
  429. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +3 -3
  430. package/__commonjs/UI/iframe/IframeLoginButton/IframeButton.js +3 -3
  431. package/__commonjs/UI/iframe/IframeLoginButton/index.js +3 -3
  432. package/__commonjs/UI/index.js +79 -79
  433. package/__commonjs/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +7 -7
  434. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +7 -7
  435. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +7 -7
  436. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +6 -6
  437. package/__commonjs/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +6 -6
  438. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +7 -7
  439. package/__commonjs/UI/ledger/index.js +7 -7
  440. package/__commonjs/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +3 -3
  441. package/__commonjs/UI/metamask/MetamaskLoginButton/index.js +3 -3
  442. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +2 -2
  443. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +2 -2
  444. package/__commonjs/UI/pages/UnlockPage/index.js +5 -5
  445. package/__commonjs/UI/pages/index.js +5 -5
  446. package/__commonjs/UI/passkey/PasskeyLoginButton/PasskeyLoginButton.js +3 -3
  447. package/__commonjs/UI/passkey/PasskeyLoginButton/index.js +3 -3
  448. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +2 -2
  449. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +2 -2
  450. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +3 -3
  451. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +3 -3
  452. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +3 -3
  453. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +3 -3
  454. package/__commonjs/UI/walletConnect/index.js +2 -2
  455. package/__commonjs/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +2 -2
  456. package/__commonjs/UI/webWallet/CrossWindowLoginButton/index.js +2 -2
  457. package/__commonjs/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +2 -2
  458. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +2 -2
  459. package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +2 -2
  460. package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/index.js +2 -2
  461. package/__commonjs/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +2 -2
  462. package/__commonjs/UI/webWallet/XaliasLoginButton/index.js +2 -2
  463. package/__commonjs/__mocks__/index.js +2 -2
  464. package/__commonjs/__mocks__/utils/index.js +2 -2
  465. package/__commonjs/__mocks__/utils/renderWithProvider.js +2 -2
  466. package/__commonjs/components/ProviderInitializer/ProviderInitializer.js +1 -1
  467. package/__commonjs/components/ProviderInitializer/index.js +1 -1
  468. package/__commonjs/hooks/index.js +2 -2
  469. package/__commonjs/hooks/login/index.js +2 -2
  470. package/__commonjs/hooks/login/useCrossWindowLogin.js +1 -1
  471. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  472. package/__commonjs/hooks/login/useIframeLogin.js +1 -1
  473. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  474. package/__commonjs/hooks/login/useLoginService.d.ts +2 -2
  475. package/__commonjs/hooks/login/useLoginService.js +1 -1
  476. package/__commonjs/hooks/login/useMetamaskLogin.js +1 -1
  477. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  478. package/__commonjs/hooks/login/usePasskeyLogin.js +1 -1
  479. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  480. package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
  481. package/__commonjs/hooks/login/useXaliasLogin.js +1 -1
  482. package/__commonjs/hooks/signMessage/getVerifier.d.ts +1 -1
  483. package/__commonjs/hooks/signMessage/getVerifier.js +1 -1
  484. package/__commonjs/hooks/signMessage/index.js +1 -1
  485. package/__commonjs/hooks/signMessage/verifyMessage.js +1 -1
  486. package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  487. package/__commonjs/hooks/transactions/helpers/index.js +1 -1
  488. package/__commonjs/hooks/transactions/index.js +1 -1
  489. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  490. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  491. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  492. package/__commonjs/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  493. package/__commonjs/reduxStore/persistedRootReducer.d.ts +1 -1
  494. package/__commonjs/utils/index.js +4 -4
  495. package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
  496. package/__commonjs/utils/transactions/index.js +1 -1
  497. package/__commonjs/wrappers/DappProvider/DappProvider.js +2 -2
  498. package/__commonjs/wrappers/DappProvider/index.js +2 -2
  499. package/__commonjs/wrappers/index.js +2 -2
  500. package/__mocks__/index.js +1 -1
  501. package/__mocks__/utils/index.js +1 -1
  502. package/__mocks__/utils/renderWithProvider.js +1 -1
  503. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  504. package/apiCalls/accounts/index.js +1 -1
  505. package/apiCalls/accounts/useGetAccountFromApi.js +1 -1
  506. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  507. package/apiCalls/configuration/index.js +1 -1
  508. package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
  509. package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
  510. package/apiCalls/economics/getEconomicsInfo.js +1 -1
  511. package/apiCalls/economics/index.js +1 -1
  512. package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
  513. package/apiCalls/index.js +1 -1
  514. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  515. package/apiCalls/transactions/index.js +1 -1
  516. package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
  517. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  518. package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
  519. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  520. package/apiCalls/utils/getScamAddressData.js +1 -1
  521. package/apiCalls/utils/index.js +1 -1
  522. package/apiCalls/utils/useApiFetch.js +1 -1
  523. package/components/LogoutListener/LogoutListener.js +1 -1
  524. package/components/LogoutListener/helpers/index.js +1 -1
  525. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  526. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  527. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  528. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  529. package/components/LogoutListener/index.js +1 -1
  530. package/components/ProviderInitializer/ProviderInitializer.js +1 -1
  531. package/components/ProviderInitializer/helpers/index.js +1 -1
  532. package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
  533. package/components/ProviderInitializer/hooks/index.js +1 -1
  534. package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
  535. package/components/ProviderInitializer/index.js +1 -1
  536. package/components/TransactionSender/TransactionSender.js +1 -1
  537. package/components/TransactionSender/index.js +1 -1
  538. package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
  539. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  540. package/components/TransactionsTracker/index.js +1 -1
  541. package/hooks/account/index.js +1 -1
  542. package/hooks/account/useGetAccount.js +1 -1
  543. package/hooks/account/useGetAccountInfo.js +1 -1
  544. package/hooks/account/useGetBatchWebsocketEvent.js +1 -1
  545. package/hooks/account/useGetIsLoggedIn.js +1 -1
  546. package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
  547. package/hooks/account/useGetLoginInfo.js +1 -1
  548. package/hooks/account/useGetWebsocketEvent.js +1 -1
  549. package/hooks/economics/index.js +1 -1
  550. package/hooks/economics/useGetEgldPrice.js +1 -1
  551. package/hooks/index.js +1 -1
  552. package/hooks/login/index.js +1 -1
  553. package/hooks/login/useCrossWindowLogin.js +1 -1
  554. package/hooks/login/useExtensionLogin.js +1 -1
  555. package/hooks/login/useGetModalLoginMethods.js +1 -1
  556. package/hooks/login/useIframeLogin.js +1 -1
  557. package/hooks/login/useLedgerLogin.js +1 -1
  558. package/hooks/login/useLoginService.d.ts +2 -2
  559. package/hooks/login/useLoginService.js +1 -1
  560. package/hooks/login/useMetamaskLogin.js +1 -1
  561. package/hooks/login/useOperaLogin.js +1 -1
  562. package/hooks/login/usePasskeyLogin.js +1 -1
  563. package/hooks/login/useWalletConnectV2Login.js +1 -1
  564. package/hooks/login/useWebViewLogin.js +1 -1
  565. package/hooks/login/useWebWalletLogin.js +1 -1
  566. package/hooks/login/useXaliasLogin.js +1 -1
  567. package/hooks/signMessage/getVerifier.d.ts +1 -1
  568. package/hooks/signMessage/getVerifier.js +1 -1
  569. package/hooks/signMessage/index.js +1 -1
  570. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  571. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  572. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  573. package/hooks/signMessage/useSignMessage.js +1 -1
  574. package/hooks/signMessage/verifyMessage.js +1 -1
  575. package/hooks/toasts/index.js +1 -1
  576. package/hooks/toasts/useGetToasts.js +1 -1
  577. package/hooks/toasts/useTransactionsToasts.js +1 -1
  578. package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
  579. package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
  580. package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
  581. package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
  582. package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
  583. package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
  584. package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
  585. package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
  586. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  587. package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  588. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  589. package/hooks/transactions/helpers/index.js +1 -1
  590. package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
  591. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  592. package/hooks/transactions/index.js +1 -1
  593. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  594. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  595. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  596. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  597. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  598. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  599. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  600. package/hooks/transactions/useGetPollingInterval.js +1 -1
  601. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  602. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  603. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  604. package/hooks/transactions/useGetTokenDetails.js +1 -1
  605. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  606. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  607. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  608. package/hooks/transactions/useSignTransactions.js +1 -1
  609. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  610. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  611. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  612. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  613. package/hooks/transactions/useTransactionsTracker.js +1 -1
  614. package/hooks/useGetNetworkConfig.js +1 -1
  615. package/hooks/useGetNotification.js +1 -1
  616. package/hooks/websocketListener/index.js +1 -1
  617. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  618. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  619. package/package.json +5 -6
  620. package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
  621. package/providers/experimentalWebViewProvider/index.js +1 -1
  622. package/reduxStore/persistedRootReducer.d.ts +1 -1
  623. package/reduxStore/selectors/index.js +1 -1
  624. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  625. package/services/index.js +1 -1
  626. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  627. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  628. package/services/nativeAuth/helpers/index.js +1 -1
  629. package/services/transactions/clearTransactions.js +1 -1
  630. package/services/transactions/getBatchTransactionsStatus.js +1 -1
  631. package/services/transactions/getTransactionsDetails.js +1 -1
  632. package/services/transactions/index.js +1 -1
  633. package/services/transactions/sendBatchTransactions.js +1 -1
  634. package/services/transactions/sendBatchTransactions.test.js +1 -1
  635. package/services/transactions/sendTransactions.js +1 -1
  636. package/services/transactions/transformAndSignTransactions.js +1 -1
  637. package/services/transactions/utils/transformTransactionsToSign.js +1 -1
  638. package/utils/account/getAccount.js +1 -1
  639. package/utils/account/getAccountBalance.js +1 -1
  640. package/utils/account/getAccountShard.js +1 -1
  641. package/utils/account/getAddress.js +1 -1
  642. package/utils/account/getLatestNonce.js +1 -1
  643. package/utils/account/getWebviewToken.js +1 -1
  644. package/utils/account/index.js +1 -1
  645. package/utils/account/refreshAccount.js +1 -1
  646. package/utils/account/signMessage.js +1 -1
  647. package/utils/getIsLoggedIn.js +1 -1
  648. package/utils/index.js +1 -1
  649. package/utils/logout.js +1 -1
  650. package/utils/network/getChainID.js +1 -1
  651. package/utils/network/getEgldLabel.js +1 -1
  652. package/utils/network/getNetworkConfig.js +1 -1
  653. package/utils/network/index.js +1 -1
  654. package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
  655. package/utils/transactions/builtCallbackUrl.js +1 -1
  656. package/utils/transactions/getAllTransactionsLink.js +1 -1
  657. package/utils/transactions/getOperationsDetails.js +1 -1
  658. package/utils/transactions/getTransactionLink.js +1 -1
  659. package/utils/transactions/index.js +1 -1
  660. package/utils/waitForChainID.js +1 -1
  661. package/web/hooks/index.js +1 -1
  662. package/web/hooks/useIdleTimer.js +1 -1
  663. package/web/index.js +1 -1
  664. package/wrappers/AppInitializer.js +1 -1
  665. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  666. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  667. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  668. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  669. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  670. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  671. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  672. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  673. package/wrappers/DappProvider/CustomComponents.js +1 -1
  674. package/wrappers/DappProvider/DappProvider.js +1 -1
  675. package/wrappers/DappProvider/index.js +1 -1
  676. package/wrappers/index.js +1 -1
  677. package/__chunks__/chunk-3QSFD5FH.js +0 -2
  678. package/__chunks__/chunk-DEACCH2W.js +0 -2
  679. package/__chunks__/chunk-DNLA3GBM.js +0 -2
  680. package/__chunks__/chunk-ETQ74XMY.js +0 -2
  681. package/__chunks__/chunk-FKBGJ64V.js +0 -2
  682. package/__chunks__/chunk-G2DM76GJ.js +0 -2
  683. package/__chunks__/chunk-GYGTFOK2.js +0 -2
  684. package/__chunks__/chunk-HR2E3UWR.js +0 -2
  685. package/__chunks__/chunk-IM2CWSXZ.js +0 -2
  686. package/__chunks__/chunk-JRRXTQY4.js +0 -2
  687. package/__chunks__/chunk-KBU4NV72.js +0 -2
  688. package/__chunks__/chunk-KEDYYCMG.js +0 -2
  689. package/__chunks__/chunk-KLOAZGHX.js +0 -2
  690. package/__chunks__/chunk-ME3KTOQ6.js +0 -2
  691. package/__chunks__/chunk-P4ONIUOR.js +0 -2
  692. package/__chunks__/chunk-QBFFGZMD.js +0 -2
  693. package/__chunks__/chunk-VE5TQD7V.js +0 -2
  694. package/__chunks__/chunk-X7ZP6SZQ.js +0 -2
  695. package/__chunks__/chunk-YFQMCXFK.js +0 -2
  696. package/__chunks__/chunk-ZF3KDOXE.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Ns=Object.create;var Ce=Object.defineProperty,Cs=Object.defineProperties,Ds=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Xe=Object.getOwnPropertySymbols,Ms=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable;var Qr=(e,t,r)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Qr(e,r,t[r]);if(Xe)for(var r of Xe(t))en.call(t,r)&&Qr(e,r,t[r]);return e},S=(e,t)=>Cs(e,_s(t));var Ye=(e,t)=>{var r={};for(var o in e)jt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Xe)for(var o of Xe(e))t.indexOf(o)<0&&en.call(e,o)&&(r[o]=e[o]);return r};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),de=(e,t)=>{for(var r in t)Ce(e,r,{get:t[r],enumerable:!0})},tn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Os(t))!jt.call(e,c)&&c!==r&&Ce(e,c,{get:()=>t[c],enumerable:!(o=Ds(t,c))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Ns(Ms(e)):{},tn(t||!e||!e.__esModule?Ce(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>tn(Ce({},"__esModule",{value:!0}),e);var A=(e,t,r)=>new Promise((o,c)=>{var l=d=>{try{m(r.next(d))}catch(h){c(h)}},p=d=>{try{m(r.throw(d))}catch(h){c(h)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var on=D(Ze=>{"use strict";n();Ze.byteLength=Us;Ze.toByteArray=Ws;Ze.fromByteArray=Gs;var Y=[],G=[],Fs=typeof Uint8Array!="undefined"?Uint8Array:Array,qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(me=0,rn=qt.length;me<rn;++me)Y[me]=qt[me],G[qt.charCodeAt(me)]=me;var me,rn;G["-".charCodeAt(0)]=62;G["_".charCodeAt(0)]=63;function nn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Us(e){var t=nn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Bs(e,t,r){return(t+r)*3/4-r}function Ws(e){var t,r=nn(e),o=r[0],c=r[1],l=new Fs(Bs(e,o,c)),p=0,m=c>0?o-4:o,d;for(d=0;d<m;d+=4)t=G[e.charCodeAt(d)]<<18|G[e.charCodeAt(d+1)]<<12|G[e.charCodeAt(d+2)]<<6|G[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return c===2&&(t=G[e.charCodeAt(d)]<<2|G[e.charCodeAt(d+1)]>>4,l[p++]=t&255),c===1&&(t=G[e.charCodeAt(d)]<<10|G[e.charCodeAt(d+1)]<<4|G[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function $s(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function Vs(e,t,r){for(var o,c=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),c.push($s(o));return c.join("")}function Gs(e){for(var t,r=e.length,o=r%3,c=[],l=16383,p=0,m=r-o;p<m;p+=l)c.push(Vs(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],c.push(Y[t>>2]+Y[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],c.push(Y[t>>10]+Y[t>>4&63]+Y[t<<2&63]+"=")),c.join("")}});var sn=D(zt=>{n();zt.read=function(e,t,r,o,c){var l,p,m=c*8-o-1,d=(1<<m)-1,h=d>>1,x=-7,T=r?c-1:0,k=r?-1:1,E=e[t+T];for(T+=k,l=E&(1<<-x)-1,E>>=-x,x+=m;x>0;l=l*256+e[t+T],T+=k,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+T],T+=k,x-=8);if(l===0)l=1-h;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-h}return(E?-1:1)*p*Math.pow(2,l-o)};zt.write=function(e,t,r,o,c,l){var p,m,d,h=l*8-c-1,x=(1<<h)-1,T=x>>1,k=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=o?0:l-1,v=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=k/d:t+=k*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=x?(m=0,p=x):p+T>=1?(m=(t*d-1)*Math.pow(2,c),p=p+T):(m=t*Math.pow(2,T-1)*Math.pow(2,c),p=0));c>=8;e[r+E]=m&255,E+=v,m/=256,c-=8);for(p=p<<c|m,h+=c;h>0;e[r+E]=p&255,E+=v,p/=256,h-=8);e[r+E-v]|=N*128}});var xn=D(we=>{"use strict";n();var Kt=on(),Se=sn(),an=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;we.Buffer=u;we.SlowBuffer=Xs;we.INSPECT_MAX_BYTES=50;var Je=2147483647;we.kMaxLength=Je;u.TYPED_ARRAY_SUPPORT=Hs();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Hs(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function oe(e){if(e>Je)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jt(e)}return pn(e,t,r)}u.poolSize=8192;function pn(e,t,r){if(typeof e=="string")return qs(e,t);if(ArrayBuffer.isView(e))return zs(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return Yt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var c=Ks(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return pn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function un(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function js(e,t,r){return un(e),e<=0?oe(e):t!==void 0?typeof r=="string"?oe(e).fill(t,r):oe(e).fill(t):oe(e)}u.alloc=function(e,t,r){return js(e,t,r)};function Jt(e){return un(e),oe(e<0?0:Qt(e)|0)}u.allocUnsafe=function(e){return Jt(e)};u.allocUnsafeSlow=function(e){return Jt(e)};function qs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=dn(e,t)|0,o=oe(r),c=o.write(e,t);return c!==r&&(o=o.slice(0,c)),o}function Xt(e){for(var t=e.length<0?0:Qt(e.length)|0,r=oe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function zs(e){if(Z(e,Uint8Array)){var t=new Uint8Array(e);return Yt(t.buffer,t.byteOffset,t.byteLength)}return Xt(e)}function Yt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Ks(e){if(u.isBuffer(e)){var t=Qt(e.length)|0,r=oe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||er(e.length)?oe(0):Xt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Xt(e.data)}function Qt(e){if(e>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return e|0}function Xs(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Z(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,c=r.length,l=0,p=Math.min(o,c);l<p;++l)if(t[l]!==r[l]){o=t[l],c=r[l];break}return o<c?-1:c<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var c=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Z(p,Uint8Array))l+p.length>c.length?u.from(p).copy(c,l):Uint8Array.prototype.set.call(c,p,l);else if(u.isBuffer(p))p.copy(c,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return c};function dn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var c=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Zt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hn(e).length;default:if(c)return o?-1:Zt(e).length;t=(""+t).toLowerCase(),c=!0}}u.byteLength=dn;function Ys(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sa(this,t,r);case"utf8":case"utf-8":return gn(this,t,r);case"ascii":return oa(this,t,r);case"latin1":case"binary":return ia(this,t,r);case"base64":return ra(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aa(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ge(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ge(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ge(this,r,r+3),ge(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ge(this,r,r+7),ge(this,r+1,r+6),ge(this,r+2,r+5),ge(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?gn(this,0,t):Ys.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=we.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};an&&(u.prototype[an]=u.prototype.inspect);u.prototype.compare=function(t,r,o,c,l){if(Z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),c===void 0&&(c=0),l===void 0&&(l=this.length),r<0||o>t.length||c<0||l>this.length)throw new RangeError("out of range index");if(c>=l&&r>=o)return 0;if(c>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,c>>>=0,l>>>=0,this===t)return 0;for(var p=l-c,m=o-r,d=Math.min(p,m),h=this.slice(c,l),x=t.slice(r,o),T=0;T<d;++T)if(h[T]!==x[T]){p=h[T],m=x[T];break}return p<m?-1:m<p?1:0};function mn(e,t,r,o,c){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,er(r)&&(r=c?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(c)return-1;r=e.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:cn(e,t,r,o,c);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):cn(e,[t],r,o,c);throw new TypeError("val must be string, number or Buffer")}function cn(e,t,r,o,c){var l=1,p=e.length,m=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(E,v){return l===1?E[v]:E.readUInt16BE(v*l)}var h;if(c){var x=-1;for(h=r;h<p;h++)if(d(e,h)===d(t,x===-1?0:h-x)){if(x===-1&&(x=h),h-x+1===m)return x*l}else x!==-1&&(h-=h-x),x=-1}else for(r+m>p&&(r=p-m),h=r;h>=0;h--){for(var T=!0,k=0;k<m;k++)if(d(e,h+k)!==d(t,k)){T=!1;break}if(T)return h}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return mn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return mn(this,t,r,o,!1)};function Zs(e,t,r,o){r=Number(r)||0;var c=e.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(er(m))return p;e[r+p]=m}return p}function Js(e,t,r,o){return Qe(Zt(t,e.length-r),e,r,o)}function Qs(e,t,r,o){return Qe(pa(t),e,r,o)}function ea(e,t,r,o){return Qe(hn(t),e,r,o)}function ta(e,t,r,o){return Qe(ua(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,c){if(r===void 0)c="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")c=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,c===void 0&&(c="utf8")):(c=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var p=!1;;)switch(c){case"hex":return Zs(this,t,r,o);case"utf8":case"utf-8":return Js(this,t,r,o);case"ascii":case"latin1":case"binary":return Qs(this,t,r,o);case"base64":return ea(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ta(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ra(e,t,r){return t===0&&r===e.length?Kt.fromByteArray(e):Kt.fromByteArray(e.slice(t,r))}function gn(e,t,r){r=Math.min(e.length,r);for(var o=[],c=t;c<r;){var l=e[c],p=null,m=l>239?4:l>223?3:l>191?2:1;if(c+m<=r){var d,h,x,T;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[c+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[c+1],h=e[c+2],(d&192)===128&&(h&192)===128&&(T=(l&15)<<12|(d&63)<<6|h&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[c+1],h=e[c+2],x=e[c+3],(d&192)===128&&(h&192)===128&&(x&192)===128&&(T=(l&15)<<18|(d&63)<<12|(h&63)<<6|x&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),c+=m}return na(o)}var ln=4096;function na(e){var t=e.length;if(t<=ln)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=ln));return r}function oa(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]&127);return o}function ia(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]);return o}function sa(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var c="",l=t;l<r;++l)c+=da[e[l]];return c}function aa(e,t,r){for(var o=e.slice(t,r),c="",l=0;l<o.length-1;l+=2)c+=String.fromCharCode(o[l]+o[l+1]*256);return c}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var c=this.subarray(t,r);return Object.setPrototypeOf(c,u.prototype),c};function R(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return c};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t+--r],l=1;r>0&&(l*=256);)c+=this[t+--r]*l;return c};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return l*=128,c>=l&&(c-=Math.pow(2,8*r)),c};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=r,l=1,p=this[t+--c];c>0&&(l*=256);)p+=this[t+--c]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||R(t,4,this.length),Se.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),Se.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),Se.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),Se.read(this,t,!1,52,8)};function _(e,t,r,o,c,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>c||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;_(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);_(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fn(e,t,r,o,c,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Tn(e,t,r,o,c){return t=+t,r=r>>>0,c||fn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Se.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Tn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Tn(this,t,r,!1,o)};function yn(e,t,r,o,c){return t=+t,r=r>>>0,c||fn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Se.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return yn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return yn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,c){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!c&&c!==0&&(c=this.length),r>=t.length&&(r=t.length),r||(r=0),c>0&&c<o&&(c=o),c===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),t.length-r<c-o&&(c=t.length-r+o);var l=c-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,c):Uint8Array.prototype.set.call(t,this.subarray(o,c),r),l};u.prototype.fill=function(t,r,o,c){if(typeof t=="string"){if(typeof r=="string"?(c=r,r=0,o=this.length):typeof o=="string"&&(c=o,o=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!u.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(t.length===1){var l=t.charCodeAt(0);(c==="utf8"&&l<128||c==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,c),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var ca=/[^+/0-9A-Za-z-_]/g;function la(e){if(e=e.split("=")[0],e=e.trim().replace(ca,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Zt(e,t){t=t||1/0;for(var r,o=e.length,c=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!c){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}c=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(t-=3)>-1&&l.push(239,191,189);if(c=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function pa(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ua(e,t){for(var r,o,c,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,c=r%256,l.push(c),l.push(o);return l}function hn(e){return Kt.toByteArray(la(e))}function Qe(e,t,r,o){for(var c=0;c<o&&!(c+r>=t.length||c>=e.length);++c)t[c+r]=e[c];return c}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function er(e){return e!==e}var da=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,c=0;c<16;++c)t[o+c]=e[r]+e[c];return t}()});var bn=D((yp,vn)=>{n();var L=vn.exports={},J,Q;function tr(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?J=setTimeout:J=tr}catch(e){J=tr}try{typeof clearTimeout=="function"?Q=clearTimeout:Q=rr}catch(e){Q=rr}})();function Sn(e){if(J===setTimeout)return setTimeout(e,0);if((J===tr||!J)&&setTimeout)return J=setTimeout,setTimeout(e,0);try{return J(e,0)}catch(t){try{return J.call(null,e,0)}catch(r){return J.call(this,e,0)}}}function ma(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===rr||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{return Q(e)}catch(t){try{return Q.call(null,e)}catch(r){return Q.call(this,e)}}}var ie=[],Ae=!1,fe,et=-1;function ga(){!Ae||!fe||(Ae=!1,fe.length?ie=fe.concat(ie):et=-1,ie.length&&wn())}function wn(){if(!Ae){var e=Sn(ga);Ae=!0;for(var t=ie.length;t;){for(fe=ie,ie=[];++et<t;)fe&&fe[et].run();et=-1,t=ie.length}fe=null,Ae=!1,ma(e)}}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie.push(new An(e,t)),ie.length===1&&!Ae&&Sn(wn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function se(){}L.on=se;L.addListener=se;L.once=se;L.off=se;L.removeListener=se;L.removeAllListeners=se;L.emit=se;L.prependListener=se;L.prependOnceListener=se;L.listeners=function(e){return[]};L.binding=function(e){throw new Error("process.binding is not supported")};L.cwd=function(){return"/"};L.chdir=function(e){throw new Error("process.chdir is not supported")};L.umask=function(){return 0}});var i,a,fa,s,n=y(()=>{i=w(xn()),a=w(bn()),fa=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),s=fa});var In=y(()=>{"use strict";n()});var kn,nr=y(()=>{"use strict";n();kn="Action not allowed. User is logged in. Call logout() first"});var En=y(()=>{"use strict";n()});var or,Ln=y(()=>{"use strict";n();or=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(or||{})});var Pn=y(()=>{"use strict";n()});var ir=y(()=>{"use strict";n()});var Rn=y(()=>{"use strict";n()});var Nn=y(()=>{"use strict";n()});var Cn=y(()=>{"use strict";n()});var Dn=y(()=>{"use strict";n()});var _n,ve,sr=y(()=>{"use strict";n();_n=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),ve=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var On,Pp,Mn,Rp,H=y(()=>{"use strict";n();sr();On=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(On||{}),Pp=g(g({},ve.WindowProviderRequestEnums),On),Mn=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(Mn||{}),Rp=g(g({},ve.WindowProviderResponseEnums),Mn)});var Fn=y(()=>{"use strict";n()});var Un=y(()=>{"use strict";n()});var O=y(()=>{"use strict";n()});var Bn=y(()=>{"use strict";n()});var Wn=y(()=>{"use strict";n()});var $n=y(()=>{"use strict";n()});var M=y(()=>{"use strict";n();Nn();Cn();Dn();H();Fn();Un();O();Bn();Wn();$n()});var ar,Vn,zp,Gn,Kp,Hn,Xp,Yp,Zp,jn=y(()=>{"use strict";n();M();ar={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Vn,egldLabel:zp}=ar["devnet"],{chainId:Gn,egldLabel:Kp}=ar["testnet"],{chainId:Hn,egldLabel:Xp}=ar["mainnet"],Yp={["devnet"]:Vn,["testnet"]:Gn,["mainnet"]:Hn},Zp={[Vn]:"devnet",[Gn]:"testnet",[Hn]:"mainnet"}});var cr=y(()=>{"use strict";n()});var ee,qn=y(()=>{"use strict";n();ee=require("@multiversx/sdk-web-wallet-provider")});var be,tt=y(()=>{"use strict";n();be=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var zn,Kn,lr,nu,ou,Xn=y(()=>{"use strict";n();tt();lr=String((Kn=(zn=be.safeWindow)==null?void 0:zn.navigator)==null?void 0:Kn.userAgent),nu=/^((?!chrome|android).)*safari/i.test(lr),ou=/firefox/i.test(lr)&&/windows/i.test(lr)});var pr,ur,Yn,rt,Zn,Ie,b=y(()=>{"use strict";n();In();nr();En();Ln();Pn();ir();Rn();jn();cr();qn();Xn();pr=5e4,ur=1e9,Yn=1,rt="logout",Zn="login",Ie="0"});var ke,nt=y(()=>{"use strict";n();ke=()=>Date.now()/1e3});var Jn=y(()=>{"use strict";n()});var Qn=y(()=>{"use strict";n()});var dr=y(()=>{"use strict";n();nt();Jn();Qn()});var mr={};de(mr,{clear:()=>xa,getItem:()=>ya,localStorageKeys:()=>ue,removeItem:()=>ha,setItem:()=>Ta});var ue,ot,Ta,ya,ha,xa,Ee=y(()=>{"use strict";n();dr();ue={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ot=typeof localStorage!="undefined",Ta=({key:e,data:t,expires:r})=>{!ot||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ya=e=>{if(!ot)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ke()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ha=e=>{!ot||localStorage.removeItem(String(e))},xa=()=>{!ot||localStorage.clear()}});var gr={};de(gr,{clear:()=>no,getItem:()=>to,removeItem:()=>ro,setItem:()=>eo,storage:()=>Sa});var eo,to,ro,no,Sa,oo=y(()=>{"use strict";n();eo=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},to=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},ro=e=>sessionStorage.removeItem(String(e)),no=()=>sessionStorage.clear(),Sa={setItem:eo,getItem:to,removeItem:ro,clear:no}});var Te,Le=y(()=>{"use strict";n();Ee();oo();Te={session:gr,local:mr}});var fr,P,_e,W=y(()=>{"use strict";n();fr=require("@reduxjs/toolkit");b();P=(0,fr.createAction)(rt),_e=(0,fr.createAction)(Zn,e=>({payload:e}))});var yr,io,so,it,Tr,ao,hr,Ou,xr,Mu,Fu,Uu,Bu,Wu,$u,Vu,Gu,st,at=y(()=>{"use strict";n();yr=require("@multiversx/sdk-core"),io=require("@reduxjs/toolkit"),so=require("redux-persist");b();Le();Ee();W();it={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ie},Tr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":it},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},ao=(0,io.createSlice)({name:"accountInfoSlice",initialState:Tr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new yr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:it},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(Te.local.removeItem(ue.loginExpiresAt),Tr)),e.addCase(_e,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new yr.Address(o).hex()}),e.addCase(so.REHYDRATE,(t,r)=>{var h;if(!((h=r.payload)!=null&&h.account))return;let{account:o}=r.payload,{address:c,shard:l,accounts:p,publicKey:m}=o;t.address=c,t.shard=l;let d=p&&c in p;t.accounts=d?p:Tr.accounts,t.publicKey=m})}}),{setAccount:hr,setAddress:Ou,setAccountNonce:xr,setAccountShard:Mu,setLedgerAccount:Fu,updateLedgerAccount:Uu,setWalletConnectAccount:Bu,setIsAccountLoading:Wu,setAccountLoadingError:$u,setWebsocketEvent:Vu,setWebsocketBatchEvent:Gu}=ao.actions,st=ao.reducer});function Oe(){return new Date().setHours(new Date().getHours()+24)}function Me(e){Te.local.setItem({key:ue.loginExpiresAt,data:e,expires:e})}var Sr=y(()=>{"use strict";n();Le();Ee()});var lo,co,po,Qu,ed,td,ct,rd,uo,mo,nd,od,id,lt,pt=y(()=>{"use strict";n();lo=require("@reduxjs/toolkit");Sr();H();W();co={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},po=(0,lo.createSlice)({name:"loginInfoSlice",initialState:co,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(P,()=>co),e.addCase(_e,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,Me(Oe())})}}),{setLoginMethod:Qu,setWalletConnectLogin:ed,setLedgerLogin:td,setTokenLogin:ct,setTokenLoginSignature:rd,setWalletLogin:uo,invalidateLoginSession:mo,setLogoutRoute:nd,setIsWalletConnectV2Initialized:od,setWebviewLogin:id}=po.actions,lt=po.reducer});var fo,go,To,ld,pd,ud,dd,ut,dt=y(()=>{"use strict";n();fo=require("@reduxjs/toolkit");W();go={},To=(0,fo.createSlice)({name:"modalsSlice",initialState:go,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(P,()=>go)}}),{setTxSubmittedModal:ld,setNotificationModal:pd,clearTxSubmittedModal:ud,clearNotificationModal:dd}=To.actions,ut=To.reducer});var mt=y(()=>{"use strict";n()});var yo=y(()=>{"use strict";n();mt()});function ho(e){return e[Math.floor(Math.random()*e.length)]}var xo=y(()=>{"use strict";n()});var So=y(()=>{"use strict";n();ir()});var wo=y(()=>{"use strict";n();yo();xo();So()});var Ao,vo,bo,wr,va,Io,Pd,Rd,ko,gt,ft=y(()=>{"use strict";n();Ao=require("@reduxjs/toolkit"),vo=w(require("lodash.omit")),bo=require("redux-persist");cr();W();wo();wr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},va={network:wr},Io=(0,Ao.createSlice)({name:"appConfig",initialState:va,reducers:{initializeNetworkConfig:(e,t)=>{let r=ho(t.payload.walletConnectV2RelayAddresses),o=(0,vo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=g(g({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(P,t=>{t.network.customWalletAddress=void 0}),e.addCase(bo.REHYDRATE,(t,r)=>{var c,l;if(!((l=(c=r.payload)==null?void 0:c.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Pd,updateNetworkConfig:Rd,setCustomWalletAddress:ko}=Io.actions,gt=Io.reducer});var Eo,Ar,Lo,Md,Fd,Ud,Tt,yt=y(()=>{"use strict";n();Eo=require("@reduxjs/toolkit");M();W();Ar={isSigning:!1,signedSessions:{}},Lo=(0,Eo.createSlice)({name:"signedMessageInfoSliceState",initialState:Ar,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:c}=t.payload;c&&(e.errorMessage=c),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Ar},extraReducers:e=>{e.addCase(P,()=>Ar)}}),{setSignSession:Md,clearSignedMessageInfo:Fd,setSignSessionState:Ud}=Lo.actions,Tt=Lo.reducer});var Ro,No,Po,Co,ba,Ia,jd,qd,ht,xt=y(()=>{"use strict";n();Ro=require("@reduxjs/toolkit"),No=require("redux-persist");M();nt();W();Po={customToasts:[],transactionToasts:[]},Co=(0,Ro.createSlice)({name:"toastsSlice",initialState:Po,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(c=>c.toastId===r);if(o!==-1){e.customToasts[o]=S(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(S(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ke(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(P,()=>Po),e.addCase(No.REHYDRATE,(t,r)=>{var c,l;let o=(l=(c=r.customToasts)==null?void 0:c.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:ba,removeCustomToast:Ia,addTransactionToast:jd,removeTransactionToast:qd}=Co.actions,ht=Co.reducer});var Do,br,Ir,kr,ka,vr,_o,Yd,Zd,Jd,St,wt=y(()=>{"use strict";n();Do=require("@reduxjs/toolkit");W();br="Transaction failed",Ir="Transaction successful",kr="Processing transaction",ka="Transaction submitted",vr={},_o=(0,Do.createSlice)({name:"transactionsInfo",initialState:vr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||br,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||kr,submittedMessage:(o==null?void 0:o.submittedMessage)||ka,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>vr},extraReducers:e=>{e.addCase(P,()=>vr)}}),{clearTransactionsInfo:Yd,setTransactionsDisplayInfo:Zd,clearTransactionsInfoForSessionId:Jd}=_o.actions,St=_o.reducer});function Oo(e){return e!=null&&(Fa(e)||Va(e))}function At(e){return e!=null&&(Ua(e)||Ga(e))}function vt(e){return e!=null&&(Ba(e)||Ha(e))}function Mo(e){return e!=null&&(Wa(e)||ja(e))}function Fo(e){return e!=null&&$a(e)}function Fa(e){return e!=null&&La.includes(e)}function Ua(e){return e!=null&&Pa.includes(e)}function Ba(e){return e!=null&&Ra.includes(e)}function Wa(e){return e!=null&&Na.includes(e)}function $a(e){return e!=null&&Ca.includes(e)}function Va(e){return e!=null&&Da.includes(e)}function Ga(e){return e!=null&&_a.includes(e)}function Ha(e){return e!=null&&Oa.includes(e)}function ja(e){return e!=null&&Ma.includes(e)}var La,Pa,Ra,Na,Ca,Da,_a,Oa,Ma,Lr=y(()=>{"use strict";n();H();La=["sent"],Pa=["success"],Ra=["fail","cancelled","timedOut"],Na=["invalid"],Ca=["timedOut"],Da=["pending"],_a=["success"],Oa=["fail","invalid"],Ma=["not executed"]});var Uo,Bo,Ue,qa,Wo,am,cm,lm,pm,um,dm,mm,gm,fm,Tm,ym,bt,It=y(()=>{"use strict";n();Uo=require("@reduxjs/toolkit"),Bo=require("redux-persist");H();Lr();W();Ue={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},qa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Wo=(0,Uo.createSlice)({name:"transactionsSlice",initialState:Ue,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,h;let{sessionId:r,transactions:o,errorMessage:c,status:l,redirectRoute:p,customTransactionInformation:m}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},qa),((d=e.signedTransactions[r])==null?void 0:d.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:c,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),m!=null?m:{})},((h=e==null?void 0:e.transactionsToSign)==null?void 0:h.sessionId)===r&&(e.transactionsToSign=Ue.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:c,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,c!=null&&(e.signedTransactions[r].errorMessage=c),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var h,x,T,k,E,v,N,U;let{sessionId:r,status:o,errorMessage:c,transactionHash:l,serverTransaction:p,inTransit:m}=t.payload,d=(x=(h=e.signedTransactions)==null?void 0:h[r])==null?void 0:x.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(B=>B.hash===l?S(g(g({},p!=null?p:{}),B),{status:o,errorMessage:c,inTransit:m}):B);let q=(k=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:k.every(B=>At(B.status)),z=(v=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:v.some(B=>vt(B.status)),pe=(U=(N=e.signedTransactions[r])==null?void 0:N.transactions)==null?void 0:U.every(B=>Mo(B.status));q&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail"),pe&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ue.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ue.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(P,()=>Ue),e.addCase(Bo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:c}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,h])=>{let x=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-x>0||(m[d]=h),m},{});c!=null&&(t.customTransactionInformationForSessionId=c),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:am,updateSignedTransactions:cm,setTransactionsToSign:lm,clearAllTransactionsToSign:pm,clearAllSignedTransactions:um,clearSignedTransaction:dm,clearTransactionToSign:mm,setSignTransactionsError:gm,setSignTransactionsCancelMessage:fm,moveTransactionsToSignedState:Tm,updateSignedTransactionsCustomTransactionInformation:ym}=Wo.actions,bt=Wo.reducer});var $o,Pr,Vo,wm,Am,vm,bm,kt,Et=y(()=>{"use strict";n();$o=require("@reduxjs/toolkit");W();Pr={},Vo=(0,$o.createSlice)({name:"batchTransactionsSlice",initialState:Pr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Pr},extraReducers:e=>{e.addCase(P,()=>Pr)}}),{setBatchTransactions:wm,updateBatchTransactions:Am,clearBatchTransactions:vm,clearAllBatchTransactions:bm}=Vo.actions,kt=Vo.reducer});var Ho,Go,jo,Lm,qo,Rr=y(()=>{"use strict";n();Ho=require("@reduxjs/toolkit");W();Go={},jo=(0,Ho.createSlice)({name:"dappConfigSlice",initialState:Go,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(P,()=>Go)}}),{setDappConfig:Lm}=jo.actions,qo=jo.reducer});var K=y(()=>{"use strict";n();at();pt();dt();ft();yt();xt();wt();It();Et();Rr()});var Nr=y(()=>{"use strict";n()});var Xo,Ya,Za,ye,Rt=y(()=>{"use strict";n();Xo=require("@reduxjs/toolkit");Nr();at();Et();Rr();pt();dt();ft();yt();xt();wt();It();Ya={["account"]:st,["dappConfig"]:qo,["loginInfo"]:lt,["modals"]:ut,["networkConfig"]:gt,["signedMessageInfo"]:Tt,["toasts"]:ht,["transactionsInfo"]:St,["transactions"]:bt,["batchTransactions"]:kt},Za=(e={})=>(0,Xo.combineReducers)(g(g({},Ya),e)),ye=Za});var Qo={};de(Qo,{default:()=>mc,sessionStorageReducers:()=>Cr});function ae(e,t=[]){return{key:e,version:1,storage:Zo.default,blacklist:t}}var F,Yo,Zo,Ja,Be,Qa,ec,tc,rc,nc,oc,ic,sc,ac,cc,Jo,lc,Cr,pc,uc,dc,mc,ei=y(()=>{"use strict";n();F=require("redux-persist"),Yo=w(require("redux-persist/lib/storage")),Zo=w(require("redux-persist/lib/storage/session"));Rt();K();at();Et();pt();dt();ft();yt();xt();wt();It();Nr();Ja={persistReducersStorageType:"localStorage"},Be={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Qa=ae(Be["account"]),ec=ae(Be["loginInfo"]),tc=ae(Be["modals"]),rc=ae(Be["networkConfig"]),nc={2:e=>S(g({},e),{networkConfig:wr})};oc=ae("sdk-dapp-transactionsInfo"),ic=ae("sdk-dapp-transactions",["transactionsToSign"]),sc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),ac=ae("sdk-dapp-toasts"),cc=ae("sdk-dapp-signedMessageInfo"),Jo={key:"sdk-dapp-store",version:2,storage:Yo.default,whitelist:Object.keys(Be),migrate:(0,F.createMigrate)(nc,{debug:!1})},lc=S(g({},Jo),{whitelist:[]}),Cr={["toasts"]:(0,F.persistReducer)(ac,ht),["transactions"]:(0,F.persistReducer)(ic,bt),["transactionsInfo"]:(0,F.persistReducer)(oc,St),["batchTransactions"]:(0,F.persistReducer)(sc,kt),["signedMessageInfo"]:(0,F.persistReducer)(cc,Tt)},pc=S(g({},Cr),{["account"]:(0,F.persistReducer)(Qa,st),["loginInfo"]:(0,F.persistReducer)(ec,lt),["modals"]:(0,F.persistReducer)(tc,ut),["networkConfig"]:(0,F.persistReducer)(rc,gt)}),uc=Ja.persistReducersStorageType==="localStorage",dc=uc?(0,F.persistReducer)(Jo,ye(Cr)):(0,F.persistReducer)(lc,ye(pc)),mc=dc});var ti={};de(ti,{default:()=>gc});var gc,ri=y(()=>{"use strict";n();Rt();gc=ye()});var ni={};de(ni,{default:()=>Tc});var j,fc,Tc,oi=y(()=>{"use strict";n();j=require("redux-persist"),fc=[j.FLUSH,j.REHYDRATE,j.PAUSE,j.PERSIST,j.PURGE,j.REGISTER],Tc=fc});var ai={};de(ai,{default:()=>si});function si(e){return(0,ii.persistStore)(e)}var ii,ci=y(()=>{"use strict";n();ii=require("redux-persist")});var Gi=D((K0,Vi)=>{n();function Nl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Vi.exports=Nl});var Qi=D((jE,Ji)=>{n();var Fl=typeof s=="object"&&s&&s.Object===Object&&s;Ji.exports=Fl});var ts=D((qE,es)=>{n();var Ul=Qi(),Bl=typeof self=="object"&&self&&self.Object===Object&&self,Wl=Ul||Bl||Function("return this")();es.exports=Wl});var Kr=D((zE,rs)=>{n();var $l=ts(),Vl=$l.Symbol;rs.exports=Vl});var ss=D((KE,is)=>{n();var ns=Kr(),os=Object.prototype,Gl=os.hasOwnProperty,Hl=os.toString,qe=ns?ns.toStringTag:void 0;function jl(e){var t=Gl.call(e,qe),r=e[qe];try{e[qe]=void 0;var o=!0}catch(l){}var c=Hl.call(e);return o&&(t?e[qe]=r:delete e[qe]),c}is.exports=jl});var cs=D((XE,as)=>{n();var ql=Object.prototype,zl=ql.toString;function Kl(e){return zl.call(e)}as.exports=Kl});var ds=D((YE,us)=>{n();var ls=Kr(),Xl=ss(),Yl=cs(),Zl="[object Null]",Jl="[object Undefined]",ps=ls?ls.toStringTag:void 0;function Ql(e){return e==null?e===void 0?Jl:Zl:ps&&ps in Object(e)?Xl(e):Yl(e)}us.exports=Ql});var gs=D((ZE,ms)=>{n();var ep=Array.isArray;ms.exports=ep});var Ts=D((JE,fs)=>{n();function tp(e){return e!=null&&typeof e=="object"}fs.exports=tp});var hs=D((QE,ys)=>{n();var rp=ds(),np=gs(),op=Ts(),ip="[object String]";function sp(e){return typeof e=="string"||!np(e)&&op(e)&&rp(e)==ip}ys.exports=sp});var pp={};de(pp,{useXaliasLogin:()=>lp});module.exports=De(pp);n();n();var gi=require("react"),Pe=require("react-redux");n();var Dr=require("@reduxjs/toolkit"),di=require("react-redux/lib/utils/Subscription");K();n();var zo=w(require("lodash.throttle"));b();K();Sr();Le();Ee();var za=[rt],Lt=!1,Ka=(0,zo.default)(()=>{Me(Oe())},5e3),Ko=e=>t=>r=>{if(za.includes(r.type))return t(r);let o=e.getState(),c=Te.local.getItem(ue.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(c==null)return Me(Oe());let p=Date.now();return c-p<0&&!Lt?setTimeout(()=>{Lt=!0,e.dispatch(mo())},1e3):(Lt&&(Lt=!1),Ka()),t(r)};n();n();function Pt(){return typeof sessionStorage!="undefined"}var li=Pt()?(ei(),De(Qo)).default:(ri(),De(ti)).default,pi=Pt()?(oi(),De(ni)).default:[],ui=Pt()?(ci(),De(ai)).default:e=>e;Rt();var I=(0,Dr.configureStore)({reducer:li,middleware:e=>e({serializableCheck:{ignoredActions:[...pi,xr.type,hr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ko)}),mi=(0,di.createSubscription)(I),kg=ui(I),Eg=(0,Dr.configureStore)({reducer:ye});var yc={store:I,subscription:mi},_r=(0,gi.createContext)(yc),Ng=(0,Pe.createStoreHook)(_r),Nt=(0,Pe.createDispatchHook)(_r),C=(0,Pe.createSelectorHook)(_r);n();n();K();n();var fi=w(require("lodash.isequal")),Ct=require("reselect"),f=(0,Ct.createSelectorCreator)(Ct.defaultMemoize,fi.default);var te=e=>e.account,Dt=f(te,e=>e.address),Re=f(te,Dt,(e,t)=>t in e.accounts?e.accounts[t]:it),hc=f(te,Re,(e,t)=>{let c=e,{accounts:r}=c,o=Ye(c,["accounts"]);return S(g({},o),{address:t.address,account:t})}),Mg=f(Re,e=>e.balance),xc=f(Re,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Fg=f(te,e=>e.shard),Ug=f(te,e=>e.ledgerAccount),Bg=f(te,e=>e.walletConnectAccount),Wg=f(te,e=>e.isAccountLoading),$g=f(te,e=>e.accountLoadingError),Sc=f(te,e=>e.websocketEvent),wc=f(te,e=>e.websocketBatchEvent);n();var Ac=e=>e.dappConfig,Hg=f(Ac,e=>e.shouldUseWebViewProvider);n();var $=e=>e.loginInfo,Kg=f($,e=>e.loginMethod),_t=f($,Dt,(e,t)=>Boolean(t)),Xg=f($,e=>e.walletConnectLogin),Yg=f($,e=>e.ledgerLogin),vc=f($,e=>e.walletLogin),Zg=f($,e=>e.isLoginSessionInvalid),Ti=f($,e=>e.tokenLogin),Jg=f($,e=>e.logoutRoute),bc=f($,e=>e.isWalletConnectV2Initialized);n();var yi=e=>e.modals,tf=f(yi,e=>e.txSubmittedModal),rf=f(yi,e=>e.notificationModal);n();var ce=e=>e.networkConfig,hi=f(ce,e=>e.network.chainId),sf=f(ce,e=>e.network.roundDuration),af=f(ce,e=>e.network.walletConnectBridgeAddress),cf=f(ce,e=>e.network.walletConnectV2RelayAddress),lf=f(ce,e=>e.network.walletConnectV2ProjectId),pf=f(ce,e=>e.network.walletConnectV2Options),uf=f(ce,e=>e.network.walletConnectDeepLink),re=f(ce,e=>e.network),Ic=f(re,e=>e.apiAddress),xi=f(re,e=>e.explorerAddress),df=f(re,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Si=f(re,e=>e.xAliasAddress),kc=f(re,e=>e.egldLabel);n();var Ot=e=>e.signedMessageInfo,ff=f(Ot,e=>e.isSigning),Tf=f(Ot,e=>e.errorMessage),yf=f(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),hf=f(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var wi=e=>e.toasts,wf=f(wi,e=>e.customToasts),Af=f(wi,e=>e.transactionToasts);n();K();var Ai={errorMessage:br,successMessage:Ir,processingMessage:kr},Ec=e=>e.transactionsInfo,kf=f(Ec,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ai);n();n();var ne=require("@multiversx/sdk-core");b();n();var Or=require("@multiversx/sdk-core/out");n();n();function Mt(e){try{let t=atob(e),r=btoa(t),o=i.Buffer.from(e,"base64").toString(),c=i.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===c||c.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function he(e){return Mt(e)?atob(e):e}n();n();n();n();var vi=e=>{let t=e!=null?e:"";return Mt(t)?Or.TransactionPayload.fromEncoded(t):new Or.TransactionPayload(t)};n();b();var Ft=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(or).some(r=>e.startsWith(r)):!1;function Mr(e){var o,c,l;let t=g({},e);Ft({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new ne.Transaction(g(g(S(g(S(g({value:t.value.valueOf(),data:vi(t.data),nonce:t.nonce.valueOf(),receiver:new ne.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new ne.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:pr,gasPrice:(c=t.gasPrice.valueOf())!=null?c:ur,chainID:t.chainID.valueOf(),version:new ne.TransactionVersion((l=t.version)!=null?l:Yn)}),t.options?{options:new ne.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new ne.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(i.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(i.Buffer.from(t.signature,"hex")),r}n();n();b();n();n();n();var Nc=require("@multiversx/sdk-core/out");n();b();n();var bi=require("@multiversx/sdk-core");M();n();var Cc=require("@multiversx/sdk-core");n();n();n();var Dc=require("@multiversx/sdk-core"),_c=w(require("bignumber.js"));H();n();n();n();var Ur="blocks";n();n();n();n();O();n();n();O();n();n();n();var Wc=w(require("bignumber.js"));b();n();var Bc=require("@multiversx/sdk-core"),Br=w(require("bignumber.js"));b();n();var Fc=w(require("bignumber.js"));n();Br.default.config({ROUNDING_MODE:Br.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var $c=require("@multiversx/sdk-core");b();n();var $e=require("@multiversx/sdk-core"),Gc=w(require("bignumber.js"));b();n();n();var Vc=w(require("bignumber.js"));b();n();b();n();n();n();n();n();n();b();n();b();n();b();n();O();var jc=["reDelegateRewards","claimRewards","unBond"],qc=["wrapEgld","unwrapEgld"],zc=["unStake"],Kc=["unDelegate"];n();n();n();b();n();var Zc=w(require("bignumber.js"));n();n();O();n();var Qc=w(require("bignumber.js"));n();n();n();n();var tl=w(require("bignumber.js"));M();n();n();n();n();H();n();var ol=require("@multiversx/sdk-web-wallet-provider");b();n();var nl=w(require("qs"));n();n();n();n();n();var Ve=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var V=()=>{if(!Ve())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:c,search:l}}=window;return{pathname:t,hash:r,origin:o,href:c,search:l}};n();n();var xS={search:Ve()?window.location.search:"",removeParams:[]};n();n();n();n();O();n();n();n();var il=w(require("linkifyjs"));n();b();n();var sl=w(require("bignumber.js"));n();M();n();n();H();n();H();n();n();n();O();n();O();n();var al=w(require("bignumber.js"));b();O();n();O();n();var Ni=require("react");M();n();n();O();n();n();var cl=require("@multiversx/sdk-core/out"),ll=w(require("bignumber.js"));O();n();M();n();n();M();var mA=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ci=require("react");M();n();var ul=require("react");O();var wA=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Lr();n();var Wt=e=>e.transactions,Ge=f(Wt,e=>e.signedTransactions),uv=f(Wt,e=>e.signTransactionsError),dv=f(Wt,e=>e.signTransactionsCancelMessage),$t=e=>t=>Object.entries(t).reduce((r,[o,c])=>(e(c.status)&&(r[o]=c),r),{}),mv=f(Ge,$t(Oo)),gv=f(Ge,$t(At)),fv=f(Ge,$t(vt)),Tv=f(Ge,$t(Fo)),yv=f(Wt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Mr(r)))||[]})}),hv=f(Ge,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var Zr=require("react");nr();K();n();n();n();n();n();n();n();n();var Di=require("@lifeomic/axios-fetch"),Vr=w(require("axios")),Gr=(0,Di.buildAxiosFetch)(Vr.default),Hr=(e,t)=>A(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[c]=yield Promise.all([o]);return{data:c,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function dl(e,t,r){return A(this,null,function*(){try{let o=yield Gr(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return Hr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function ml(e,t){return A(this,null,function*(){try{let r=yield Gr(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Hr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function gl(e,t,r){return A(this,null,function*(){try{let o=yield Gr(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return Hr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var He=Vr.default.create();He.get=ml;He.post=dl;He.patch=gl;n();n();var fl=w(require("axios"));n();var yl=w(require("swr"));n();n();n();n();n();var xl=require("@multiversx/sdk-extension-provider"),Sl=require("@multiversx/sdk-hw-provider"),wl=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Al=require("@multiversx/sdk-opera-provider"),vl=require("@multiversx/sdk-passkey-provider/out"),bl=require("@multiversx/sdk-web-wallet-iframe-provider/out"),_i=require("@multiversx/sdk-web-wallet-provider");b();sr();H();n();var Il="/dapp/init";var Oi=e=>new _i.WalletProvider(`${e}${Il}`);var X=e=>`Unable to perform ${e}, Provider not initialized`,Vt=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(X("getAccount"))}setAccount(t){throw new Error(X(`setAccount: ${t}`))}login(t){throw new Error(X(`login with options: ${t}`))}logout(t){throw new Error(X(`logout with options: ${t}`))}getAddress(){throw new Error(X("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(X(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(X(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(X(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(X(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(X(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(X(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},kl=new Vt;n();H();n();n();n();n();n();W();M();n();K();n();K();n();var Fi=require("@multiversx/sdk-core");M();n();dr();n();n();var Ll=w(require("platform"));n();function Ui(){return _t(I.getState())}n();W();M();n();mt();Le();Ee();n();n();n();n();n();n();n();tt();H();n();n();var Pl=require("@multiversx/sdk-metamask-provider/out/metamaskProvider");n();n();mt();n();n();n();function Bi(e){return A(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var Wi=(e,t,r,o=0)=>A(void 0,null,function*(){try{return yield e(...r)}catch(c){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield Bi(t.delay)),yield Wi(e,t,r,o+1)):null}}),$i=(e,t={retries:5,delay:500})=>(...r)=>A(void 0,null,function*(){return yield Wi(e,t,r)});Le();n();n();n();K();n();n();var Rl=w(require("axios"));n();n();var Cl=w(Gi());tt();var Hi,ji,qi,Y0=(qi=(ji=(Hi=be.safeWindow)==null?void 0:Hi.location)==null?void 0:ji.origin)==null?void 0:qi.includes("localhost");n();n();var zi=(e,t=["address"])=>{let r=new URL(e),o=new URLSearchParams(r.search);t.forEach(p=>o.delete(p));let c=Array.from(o.values()).length>0?"?":"",l=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${l}${c}${o.toString()}${r.hash}`};n();var bs=require("react"),Ht=require("@multiversx/sdk-core");n();n();var qr=()=>C(Re);n();n();n();n();n();n();n();n();n();var je=w(require("react"));var Yk=(0,je.createContext)({}),Zk=I.getState();n();var Xi=w(require("react"));n();var zr=w(require("react")),Dl=w(require("axios"));n();n();K();n();n();var vs=require("@multiversx/sdk-native-auth-client");n();var Yi=w(require("axios"));var _l=4,Ol=3e4,Gt={current:null},xe={current:null},Ml=$i((e,t,r)=>A(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield Yi.default.get(`${e}/${Ur}?from=${_l}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[c]=o;return c}));function Zi(e,t,r,o){return A(this,null,function*(){if(e==null)throw new Error("missing api url");let c=Date.now();if(Gt.current!=null&&c<Gt.current.timestamp*1e3+Ol&&!o)return Gt.current;if(xe.current!=null)return yield xe.current;xe.current=Ml(e,t,r);try{let l=yield xe.current;if(l==null)throw xe.current=null,new Error("could not get block hash");return Gt.current={hash:l.hash,timestamp:l.timestamp},xe.current=null,l}catch(l){return xe.current=null,null}})}n();n();nt();n();n();var xs=w(hs());var Ss=e=>{if(!e||!(0,xs.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,c,l]=t,p=JSON.parse(he(l)),m=he(r);return{ttl:Number(c),extraInfo:p,origin:m,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function ap(e){return Object.prototype.toString.call(e)==="[object String]"}var ws=e=>{var r;if(!e||!ap(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,c,l]=t,p=he(o),m=he(c),d=Ss(m);if(!d)return{address:p,body:m,signature:l,blockHash:"",origin:"",ttl:0};let h=S(g({},d),{address:p,body:m,signature:l});return(r=d.extraInfo)!=null&&r.timestamp||delete h.extraInfo,h}catch(o){return null}};var Xr={isExpired:!1},As=e=>{if(!e)return Xr;let t=ws(e);if(!t)return Xr;let r=ke(),{ttl:o,extraInfo:c}=t,l=c==null?void 0:c.timestamp;if(!l)return Xr;let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};n();var ze={origin:V().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ke=e=>{var r,o,c,l,p,m;return e===!0?ze:{origin:(r=e==null?void 0:e.origin)!=null?r:ze.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:ze.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:ze.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:ze.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(m=e==null?void 0:e.extraRequestHeaders)!=null?m:{}}};var Yr=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:c,extraInfo:l,gatewayUrl:p,extraRequestHeaders:m}=Ke(e),d=new vs.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:c,gatewayUrl:p,extraRequestHeaders:m});return{getNativeAuthConfig:Ke,initialize:T=>A(void 0,null,function*(){var z,pe;if(!r||!t)return"";let k=()=>d.getCurrentBlockHash(),E=(z=T==null?void 0:T.latestBlockInfo)!=null?z:yield Zi(r,c,k,T==null?void 0:T.noCache),{hash:v,timestamp:N}=E,U=d.encodeValue(JSON.stringify(g(g({},(pe=T==null?void 0:T.extraInfo)!=null?pe:l),N?{timestamp:N}:{})));return`${d.encodeValue(t)}.${v}.${o}.${U}`}),getToken:({address:T,token:k,signature:E})=>d.getToken(T,k,E),getTokenExpiration:As}};var cp=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Is=e=>{let t=C(re),r=C(Ti),o=(0,bs.useRef)(r==null?void 0:r.loginToken),c=cp(t.apiAddress,e),l=Ke(g(g({},e===!0?{}:e),c?{apiAddress:c}:{})),p=Boolean(e),m=Yr(l),{address:d}=qr(),h=Nt(),x=v=>{o.current=v,h(ct(g(S(g({},r),{loginToken:v}),c?{nativeAuthConfig:l}:{})))},T=()=>{try{return m.initialize()}catch(v){console.error("Unable to get block. Login failed.",v);return}},k=({address:v,signature:N})=>{let U=o.current;if(!U)throw"Token not found. Call `setLoginToken` first.";if(!p){h(ct({loginToken:U,signature:N}));return}let q=m.getToken({address:v,token:U,signature:N});return h(ct(g({loginToken:U,signature:N,nativeAuthToken:q},c?{nativeAuthConfig:l}:{}))),q};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:T,setTokenLoginInfo:k,refreshNativeAuthTokenLogin:U=>A(void 0,[U],function*({signMessageCallback:v,nativeAuthClientConfig:N}){let z=yield Yr(N||l).initialize({noCache:Boolean(N)});if(o.current=z,!z)return;let pe=new Ht.SignableMessage({address:new Ht.Address(d),message:i.Buffer.from(`${d}${z}`)}),B=yield v(pe,{});return k({address:d,signature:B.getSignature().toString("hex")})})}};var ks=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100,customWalletAddress:c})=>{let[l,p]=(0,Zr.useState)(""),[m,d]=(0,Zr.useState)(!1),h=C(re),x=Nt(),T=Ui(),k=Boolean(r),E=Is(r),v=t;function N(){return A(this,null,function*(){if(T)throw new Error(kn);x(ko(c));try{d(!0);let q=Oi(c!=null?c:h.walletAddress),z=new Date,pe=z.setMinutes(z.getMinutes()+3)/1e3,B={data:{},expires:pe};if(k&&!v&&(v=yield E.getNativeAuthLoginToken(),!v)){console.warn("Login cancelled.");return}v&&E.setLoginToken(v);let{origin:Jr}=V(),Es=window!=null&&window.location?`${Jr}${e}`:`${e}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||x(uo(B));let Ls=zi(Es),Ps=encodeURIComponent(Ls),Rs=S(g({callbackUrl:Ps},v&&{token:v}),{redirectDelayMilliseconds:o});yield q.login(Rs)}catch(q){console.error(q),p("error logging in"+q.message)}finally{d(!1)}})}let U=Boolean(l);return[N,{error:l,loginFailed:U,isLoading:m&&!U,isLoggedIn:T&&!U}]};var lp=e=>{var r;let t=C(Si);return ks(S(g({},e),{customWalletAddress:(r=e.customWalletAddress)!=null?r:t}))};0&&(module.exports={useXaliasLogin});
1
+ "use strict";var Ns=Object.create;var Ce=Object.defineProperty,Cs=Object.defineProperties,Ds=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Xe=Object.getOwnPropertySymbols,Ms=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable;var Qr=(e,t,r)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Qr(e,r,t[r]);if(Xe)for(var r of Xe(t))en.call(t,r)&&Qr(e,r,t[r]);return e},S=(e,t)=>Cs(e,_s(t));var Ye=(e,t)=>{var r={};for(var o in e)jt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Xe)for(var o of Xe(e))t.indexOf(o)<0&&en.call(e,o)&&(r[o]=e[o]);return r};var y=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),de=(e,t)=>{for(var r in t)Ce(e,r,{get:t[r],enumerable:!0})},tn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Os(t))!jt.call(e,c)&&c!==r&&Ce(e,c,{get:()=>t[c],enumerable:!(o=Ds(t,c))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Ns(Ms(e)):{},tn(t||!e||!e.__esModule?Ce(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>tn(Ce({},"__esModule",{value:!0}),e);var A=(e,t,r)=>new Promise((o,c)=>{var l=d=>{try{m(r.next(d))}catch(h){c(h)}},p=d=>{try{m(r.throw(d))}catch(h){c(h)}},m=d=>d.done?o(d.value):Promise.resolve(d.value).then(l,p);m((r=r.apply(e,t)).next())});var on=_(Ze=>{"use strict";n();Ze.byteLength=Us;Ze.toByteArray=Ws;Ze.fromByteArray=Gs;var Y=[],G=[],Fs=typeof Uint8Array!="undefined"?Uint8Array:Array,qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(me=0,rn=qt.length;me<rn;++me)Y[me]=qt[me],G[qt.charCodeAt(me)]=me;var me,rn;G["-".charCodeAt(0)]=62;G["_".charCodeAt(0)]=63;function nn(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function Us(e){var t=nn(e),r=t[0],o=t[1];return(r+o)*3/4-o}function Bs(e,t,r){return(t+r)*3/4-r}function Ws(e){var t,r=nn(e),o=r[0],c=r[1],l=new Fs(Bs(e,o,c)),p=0,m=c>0?o-4:o,d;for(d=0;d<m;d+=4)t=G[e.charCodeAt(d)]<<18|G[e.charCodeAt(d+1)]<<12|G[e.charCodeAt(d+2)]<<6|G[e.charCodeAt(d+3)],l[p++]=t>>16&255,l[p++]=t>>8&255,l[p++]=t&255;return c===2&&(t=G[e.charCodeAt(d)]<<2|G[e.charCodeAt(d+1)]>>4,l[p++]=t&255),c===1&&(t=G[e.charCodeAt(d)]<<10|G[e.charCodeAt(d+1)]<<4|G[e.charCodeAt(d+2)]>>2,l[p++]=t>>8&255,l[p++]=t&255),l}function $s(e){return Y[e>>18&63]+Y[e>>12&63]+Y[e>>6&63]+Y[e&63]}function Vs(e,t,r){for(var o,c=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(e[l+2]&255),c.push($s(o));return c.join("")}function Gs(e){for(var t,r=e.length,o=r%3,c=[],l=16383,p=0,m=r-o;p<m;p+=l)c.push(Vs(e,p,p+l>m?m:p+l));return o===1?(t=e[r-1],c.push(Y[t>>2]+Y[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],c.push(Y[t>>10]+Y[t>>4&63]+Y[t<<2&63]+"=")),c.join("")}});var sn=_(zt=>{n();zt.read=function(e,t,r,o,c){var l,p,m=c*8-o-1,d=(1<<m)-1,h=d>>1,x=-7,T=r?c-1:0,k=r?-1:1,E=e[t+T];for(T+=k,l=E&(1<<-x)-1,E>>=-x,x+=m;x>0;l=l*256+e[t+T],T+=k,x-=8);for(p=l&(1<<-x)-1,l>>=-x,x+=o;x>0;p=p*256+e[t+T],T+=k,x-=8);if(l===0)l=1-h;else{if(l===d)return p?NaN:(E?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-h}return(E?-1:1)*p*Math.pow(2,l-o)};zt.write=function(e,t,r,o,c,l){var p,m,d,h=l*8-c-1,x=(1<<h)-1,T=x>>1,k=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=o?0:l-1,v=o?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(m=isNaN(t)?1:0,p=x):(p=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-p))<1&&(p--,d*=2),p+T>=1?t+=k/d:t+=k*Math.pow(2,1-T),t*d>=2&&(p++,d/=2),p+T>=x?(m=0,p=x):p+T>=1?(m=(t*d-1)*Math.pow(2,c),p=p+T):(m=t*Math.pow(2,T-1)*Math.pow(2,c),p=0));c>=8;e[r+E]=m&255,E+=v,m/=256,c-=8);for(p=p<<c|m,h+=c;h>0;e[r+E]=p&255,E+=v,p/=256,h-=8);e[r+E-v]|=N*128}});var xn=_(we=>{"use strict";n();var Kt=on(),Se=sn(),an=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;we.Buffer=u;we.SlowBuffer=Xs;we.INSPECT_MAX_BYTES=50;var Je=2147483647;we.kMaxLength=Je;u.TYPED_ARRAY_SUPPORT=Hs();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Hs(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(r){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function oe(e){if(e>Je)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jt(e)}return pn(e,t,r)}u.poolSize=8192;function pn(e,t,r){if(typeof e=="string")return qs(e,t);if(ArrayBuffer.isView(e))return zs(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return Yt(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return u.from(o,t,r);var c=Ks(e);if(c)return c;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,t,r){return pn(e,t,r)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function un(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function js(e,t,r){return un(e),e<=0?oe(e):t!==void 0?typeof r=="string"?oe(e).fill(t,r):oe(e).fill(t):oe(e)}u.alloc=function(e,t,r){return js(e,t,r)};function Jt(e){return un(e),oe(e<0?0:Qt(e)|0)}u.allocUnsafe=function(e){return Jt(e)};u.allocUnsafeSlow=function(e){return Jt(e)};function qs(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=dn(e,t)|0,o=oe(r),c=o.write(e,t);return c!==r&&(o=o.slice(0,c)),o}function Xt(e){for(var t=e.length<0?0:Qt(e.length)|0,r=oe(t),o=0;o<t;o+=1)r[o]=e[o]&255;return r}function zs(e){if(Z(e,Uint8Array)){var t=new Uint8Array(e);return Yt(t.buffer,t.byteOffset,t.byteLength)}return Xt(e)}function Yt(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return t===void 0&&r===void 0?o=new Uint8Array(e):r===void 0?o=new Uint8Array(e,t):o=new Uint8Array(e,t,r),Object.setPrototypeOf(o,u.prototype),o}function Ks(e){if(u.isBuffer(e)){var t=Qt(e.length)|0,r=oe(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||er(e.length)?oe(0):Xt(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Xt(e.data)}function Qt(e){if(e>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return e|0}function Xs(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype};u.compare=function(t,r){if(Z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Z(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var o=t.length,c=r.length,l=0,p=Math.min(o,c);l<p;++l)if(t[l]!==r[l]){o=t[l],c=r[l];break}return o<c?-1:c<o?1:0};u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);var o;if(r===void 0)for(r=0,o=0;o<t.length;++o)r+=t[o].length;var c=u.allocUnsafe(r),l=0;for(o=0;o<t.length;++o){var p=t[o];if(Z(p,Uint8Array))l+p.length>c.length?u.from(p).copy(c,l):Uint8Array.prototype.set.call(c,p,l);else if(u.isBuffer(p))p.copy(c,l);else throw new TypeError('"list" argument must be an Array of Buffers');l+=p.length}return c};function dn(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;for(var c=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Zt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return hn(e).length;default:if(c)return o?-1:Zt(e).length;t=(""+t).toLowerCase(),c=!0}}u.byteLength=dn;function Ys(e,t,r){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sa(this,t,r);case"utf8":case"utf-8":return gn(this,t,r);case"ascii":return oa(this,t,r);case"latin1":case"binary":return ia(this,t,r);case"base64":return ra(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aa(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function ge(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ge(this,r,r+1);return this};u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ge(this,r,r+3),ge(this,r+1,r+2);return this};u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ge(this,r,r+7),ge(this,r+1,r+6),ge(this,r+2,r+5),ge(this,r+3,r+4);return this};u.prototype.toString=function(){var t=this.length;return t===0?"":arguments.length===0?gn(this,0,t):Ys.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0};u.prototype.inspect=function(){var t="",r=we.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};an&&(u.prototype[an]=u.prototype.inspect);u.prototype.compare=function(t,r,o,c,l){if(Z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),o===void 0&&(o=t?t.length:0),c===void 0&&(c=0),l===void 0&&(l=this.length),r<0||o>t.length||c<0||l>this.length)throw new RangeError("out of range index");if(c>=l&&r>=o)return 0;if(c>=l)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,c>>>=0,l>>>=0,this===t)return 0;for(var p=l-c,m=o-r,d=Math.min(p,m),h=this.slice(c,l),x=t.slice(r,o),T=0;T<d;++T)if(h[T]!==x[T]){p=h[T],m=x[T];break}return p<m?-1:m<p?1:0};function mn(e,t,r,o,c){if(e.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,er(r)&&(r=c?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(c)return-1;r=e.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof t=="string"&&(t=u.from(t,o)),u.isBuffer(t))return t.length===0?-1:cn(e,t,r,o,c);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):cn(e,[t],r,o,c);throw new TypeError("val must be string, number or Buffer")}function cn(e,t,r,o,c){var l=1,p=e.length,m=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,m/=2,r/=2}function d(E,v){return l===1?E[v]:E.readUInt16BE(v*l)}var h;if(c){var x=-1;for(h=r;h<p;h++)if(d(e,h)===d(t,x===-1?0:h-x)){if(x===-1&&(x=h),h-x+1===m)return x*l}else x!==-1&&(h-=h-x),x=-1}else for(r+m>p&&(r=p-m),h=r;h>=0;h--){for(var T=!0,k=0;k<m;k++)if(d(e,h+k)!==d(t,k)){T=!1;break}if(T)return h}return-1}u.prototype.includes=function(t,r,o){return this.indexOf(t,r,o)!==-1};u.prototype.indexOf=function(t,r,o){return mn(this,t,r,o,!0)};u.prototype.lastIndexOf=function(t,r,o){return mn(this,t,r,o,!1)};function Zs(e,t,r,o){r=Number(r)||0;var c=e.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;var l=t.length;o>l/2&&(o=l/2);for(var p=0;p<o;++p){var m=parseInt(t.substr(p*2,2),16);if(er(m))return p;e[r+p]=m}return p}function Js(e,t,r,o){return Qe(Zt(t,e.length-r),e,r,o)}function Qs(e,t,r,o){return Qe(pa(t),e,r,o)}function ea(e,t,r,o){return Qe(hn(t),e,r,o)}function ta(e,t,r,o){return Qe(ua(t,e.length-r),e,r,o)}u.prototype.write=function(t,r,o,c){if(r===void 0)c="utf8",o=this.length,r=0;else if(o===void 0&&typeof r=="string")c=r,o=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(o)?(o=o>>>0,c===void 0&&(c="utf8")):(c=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-r;if((o===void 0||o>l)&&(o=l),t.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var p=!1;;)switch(c){case"hex":return Zs(this,t,r,o);case"utf8":case"utf-8":return Js(this,t,r,o);case"ascii":case"latin1":case"binary":return Qs(this,t,r,o);case"base64":return ea(this,t,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ta(this,t,r,o);default:if(p)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),p=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ra(e,t,r){return t===0&&r===e.length?Kt.fromByteArray(e):Kt.fromByteArray(e.slice(t,r))}function gn(e,t,r){r=Math.min(e.length,r);for(var o=[],c=t;c<r;){var l=e[c],p=null,m=l>239?4:l>223?3:l>191?2:1;if(c+m<=r){var d,h,x,T;switch(m){case 1:l<128&&(p=l);break;case 2:d=e[c+1],(d&192)===128&&(T=(l&31)<<6|d&63,T>127&&(p=T));break;case 3:d=e[c+1],h=e[c+2],(d&192)===128&&(h&192)===128&&(T=(l&15)<<12|(d&63)<<6|h&63,T>2047&&(T<55296||T>57343)&&(p=T));break;case 4:d=e[c+1],h=e[c+2],x=e[c+3],(d&192)===128&&(h&192)===128&&(x&192)===128&&(T=(l&15)<<18|(d&63)<<12|(h&63)<<6|x&63,T>65535&&T<1114112&&(p=T))}}p===null?(p=65533,m=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),c+=m}return na(o)}var ln=4096;function na(e){var t=e.length;if(t<=ln)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=ln));return r}function oa(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]&127);return o}function ia(e,t,r){var o="";r=Math.min(e.length,r);for(var c=t;c<r;++c)o+=String.fromCharCode(e[c]);return o}function sa(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var c="",l=t;l<r;++l)c+=da[e[l]];return c}function aa(e,t,r){for(var o=e.slice(t,r),c="",l=0;l<o.length-1;l+=2)c+=String.fromCharCode(o[l]+o[l+1]*256);return c}u.prototype.slice=function(t,r){var o=this.length;t=~~t,r=r===void 0?o:~~r,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),r<t&&(r=t);var c=this.subarray(t,r);return Object.setPrototypeOf(c,u.prototype),c};function R(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return c};u.prototype.readUintBE=u.prototype.readUIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t+--r],l=1;r>0&&(l*=256);)c+=this[t+--r]*l;return c};u.prototype.readUint8=u.prototype.readUInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]|this[t+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||R(t,2,this.length),this[t]<<8|this[t+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=this[t],l=1,p=0;++p<r&&(l*=256);)c+=this[t+p]*l;return l*=128,c>=l&&(c-=Math.pow(2,8*r)),c};u.prototype.readIntBE=function(t,r,o){t=t>>>0,r=r>>>0,o||R(t,r,this.length);for(var c=r,l=1,p=this[t+--c];c>0&&(l*=256);)p+=this[t+--c]*l;return l*=128,p>=l&&(p-=Math.pow(2,8*r)),p};u.prototype.readInt8=function(t,r){return t=t>>>0,r||R(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};u.prototype.readInt16LE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};u.prototype.readInt16BE=function(t,r){t=t>>>0,r||R(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};u.prototype.readInt32LE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function(t,r){return t=t>>>0,r||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function(t,r){return t=t>>>0,r||R(t,4,this.length),Se.read(this,t,!0,23,4)};u.prototype.readFloatBE=function(t,r){return t=t>>>0,r||R(t,4,this.length),Se.read(this,t,!1,23,4)};u.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||R(t,8,this.length),Se.read(this,t,!0,52,8)};u.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||R(t,8,this.length),Se.read(this,t,!1,52,8)};function O(e,t,r,o,c,l){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>c||t<l)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;O(this,t,r,o,l,0)}var p=1,m=0;for(this[r]=t&255;++m<o&&(p*=256);)this[r+m]=t/p&255;return r+o};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,o=o>>>0,!c){var l=Math.pow(2,8*o)-1;O(this,t,r,o,l,0)}var p=o-1,m=1;for(this[r+p]=t&255;--p>=0&&(m*=256);)this[r+p]=t/m&255;return r+o};u.prototype.writeUint8=u.prototype.writeUInt8=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,1,255,0),this[r]=t&255,r+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};u.prototype.writeIntLE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);O(this,t,r,o,l-1,-l)}var p=0,m=1,d=0;for(this[r]=t&255;++p<o&&(m*=256);)t<0&&d===0&&this[r+p-1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeIntBE=function(t,r,o,c){if(t=+t,r=r>>>0,!c){var l=Math.pow(2,8*o-1);O(this,t,r,o,l-1,-l)}var p=o-1,m=1,d=0;for(this[r+p]=t&255;--p>=0&&(m*=256);)t<0&&d===0&&this[r+p+1]!==0&&(d=1),this[r+p]=(t/m>>0)-d&255;return r+o};u.prototype.writeInt8=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};u.prototype.writeInt16LE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};u.prototype.writeInt16BE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};u.prototype.writeInt32LE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};u.prototype.writeInt32BE=function(t,r,o){return t=+t,r=r>>>0,o||O(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fn(e,t,r,o,c,l){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Tn(e,t,r,o,c){return t=+t,r=r>>>0,c||fn(e,t,r,4,34028234663852886e22,-34028234663852886e22),Se.write(e,t,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,r,o){return Tn(this,t,r,!0,o)};u.prototype.writeFloatBE=function(t,r,o){return Tn(this,t,r,!1,o)};function yn(e,t,r,o,c){return t=+t,r=r>>>0,c||fn(e,t,r,8,17976931348623157e292,-17976931348623157e292),Se.write(e,t,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,r,o){return yn(this,t,r,!0,o)};u.prototype.writeDoubleBE=function(t,r,o){return yn(this,t,r,!1,o)};u.prototype.copy=function(t,r,o,c){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!c&&c!==0&&(c=this.length),r>=t.length&&(r=t.length),r||(r=0),c>0&&c<o&&(c=o),c===o||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),t.length-r<c-o&&(c=t.length-r+o);var l=c-o;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,o,c):Uint8Array.prototype.set.call(t,this.subarray(o,c),r),l};u.prototype.fill=function(t,r,o,c){if(typeof t=="string"){if(typeof r=="string"?(c=r,r=0,o=this.length):typeof o=="string"&&(c=o,o=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!u.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(t.length===1){var l=t.charCodeAt(0);(c==="utf8"&&l<128||c==="latin1")&&(t=l)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<o)throw new RangeError("Out of range index");if(o<=r)return this;r=r>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);var p;if(typeof t=="number")for(p=r;p<o;++p)this[p]=t;else{var m=u.isBuffer(t)?t:u.from(t,c),d=m.length;if(d===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(p=0;p<o-r;++p)this[p+r]=m[p%d]}return this};var ca=/[^+/0-9A-Za-z-_]/g;function la(e){if(e=e.split("=")[0],e=e.trim().replace(ca,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Zt(e,t){t=t||1/0;for(var r,o=e.length,c=null,l=[],p=0;p<o;++p){if(r=e.charCodeAt(p),r>55295&&r<57344){if(!c){if(r>56319){(t-=3)>-1&&l.push(239,191,189);continue}else if(p+1===o){(t-=3)>-1&&l.push(239,191,189);continue}c=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(t-=3)>-1&&l.push(239,191,189);if(c=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return l}function pa(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ua(e,t){for(var r,o,c,l=[],p=0;p<e.length&&!((t-=2)<0);++p)r=e.charCodeAt(p),o=r>>8,c=r%256,l.push(c),l.push(o);return l}function hn(e){return Kt.toByteArray(la(e))}function Qe(e,t,r,o){for(var c=0;c<o&&!(c+r>=t.length||c>=e.length);++c)t[c+r]=e[c];return c}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function er(e){return e!==e}var da=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var o=r*16,c=0;c<16;++c)t[o+c]=e[r]+e[c];return t}()});var bn=_((yp,vn)=>{n();var L=vn.exports={},J,Q;function tr(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?J=setTimeout:J=tr}catch(e){J=tr}try{typeof clearTimeout=="function"?Q=clearTimeout:Q=rr}catch(e){Q=rr}})();function Sn(e){if(J===setTimeout)return setTimeout(e,0);if((J===tr||!J)&&setTimeout)return J=setTimeout,setTimeout(e,0);try{return J(e,0)}catch(t){try{return J.call(null,e,0)}catch(r){return J.call(this,e,0)}}}function ma(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===rr||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{return Q(e)}catch(t){try{return Q.call(null,e)}catch(r){return Q.call(this,e)}}}var ie=[],Ae=!1,fe,et=-1;function ga(){!Ae||!fe||(Ae=!1,fe.length?ie=fe.concat(ie):et=-1,ie.length&&wn())}function wn(){if(!Ae){var e=Sn(ga);Ae=!0;for(var t=ie.length;t;){for(fe=ie,ie=[];++et<t;)fe&&fe[et].run();et=-1,t=ie.length}fe=null,Ae=!1,ma(e)}}L.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ie.push(new An(e,t)),ie.length===1&&!Ae&&Sn(wn)};function An(e,t){this.fun=e,this.array=t}An.prototype.run=function(){this.fun.apply(null,this.array)};L.title="browser";L.browser=!0;L.env={};L.argv=[];L.version="";L.versions={};function se(){}L.on=se;L.addListener=se;L.once=se;L.off=se;L.removeListener=se;L.removeAllListeners=se;L.emit=se;L.prependListener=se;L.prependOnceListener=se;L.listeners=function(e){return[]};L.binding=function(e){throw new Error("process.binding is not supported")};L.cwd=function(){return"/"};L.chdir=function(e){throw new Error("process.chdir is not supported")};L.umask=function(){return 0}});var i,a,fa,s,n=y(()=>{i=w(xn()),a=w(bn()),fa=function(e){function t(){var o=this||self;return delete e.prototype.__magic__,o}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),s=fa});var In=y(()=>{"use strict";n()});var kn,nr=y(()=>{"use strict";n();kn="Action not allowed. User is logged in. Call logout() first"});var En=y(()=>{"use strict";n()});var or,Ln=y(()=>{"use strict";n();or=(o=>(o.SetGuardian="SetGuardian",o.GuardAccount="GuardAccount",o.UnGuardAccount="UnGuardAccount",o))(or||{})});var Pn=y(()=>{"use strict";n()});var ir=y(()=>{"use strict";n()});var Rn=y(()=>{"use strict";n()});var Nn=y(()=>{"use strict";n()});var Cn=y(()=>{"use strict";n()});var Dn=y(()=>{"use strict";n()});var _n,ve,sr=y(()=>{"use strict";n();_n=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),ve=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums")});var On,Pp,Mn,Rp,H=y(()=>{"use strict";n();sr();On=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(On||{}),Pp=g(g({},ve.WindowProviderRequestEnums),On),Mn=(t=>(t.reloginResponse="RELOGIN_RESPONSE",t))(Mn||{}),Rp=g(g({},ve.WindowProviderResponseEnums),Mn)});var Fn=y(()=>{"use strict";n()});var Un=y(()=>{"use strict";n()});var M=y(()=>{"use strict";n()});var Bn=y(()=>{"use strict";n()});var Wn=y(()=>{"use strict";n()});var $n=y(()=>{"use strict";n()});var F=y(()=>{"use strict";n();Nn();Cn();Dn();H();Fn();Un();M();Bn();Wn();$n()});var ar,Vn,zp,Gn,Kp,Hn,Xp,Yp,Zp,jn=y(()=>{"use strict";n();F();ar={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://snap-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Vn,egldLabel:zp}=ar["devnet"],{chainId:Gn,egldLabel:Kp}=ar["testnet"],{chainId:Hn,egldLabel:Xp}=ar["mainnet"],Yp={["devnet"]:Vn,["testnet"]:Gn,["mainnet"]:Hn},Zp={[Vn]:"devnet",[Gn]:"testnet",[Hn]:"mainnet"}});var cr=y(()=>{"use strict";n()});var ee,qn=y(()=>{"use strict";n();ee=require("@multiversx/sdk-web-wallet-provider")});var be,tt=y(()=>{"use strict";n();be=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants")});var zn,Kn,lr,nu,ou,Xn=y(()=>{"use strict";n();tt();lr=String((Kn=(zn=be.safeWindow)==null?void 0:zn.navigator)==null?void 0:Kn.userAgent),nu=/^((?!chrome|android).)*safari/i.test(lr),ou=/firefox/i.test(lr)&&/windows/i.test(lr)});var pr,ur,Yn,rt,Zn,Ie,b=y(()=>{"use strict";n();In();nr();En();Ln();Pn();ir();Rn();jn();cr();qn();Xn();pr=5e4,ur=1e9,Yn=1,rt="logout",Zn="login",Ie="0"});var ke,nt=y(()=>{"use strict";n();ke=()=>Date.now()/1e3});var Jn=y(()=>{"use strict";n()});var Qn=y(()=>{"use strict";n()});var dr=y(()=>{"use strict";n();nt();Jn();Qn()});var mr={};de(mr,{clear:()=>xa,getItem:()=>ya,localStorageKeys:()=>ue,removeItem:()=>ha,setItem:()=>Ta});var ue,ot,Ta,ya,ha,xa,Ee=y(()=>{"use strict";n();dr();ue={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ot=typeof localStorage!="undefined",Ta=({key:e,data:t,expires:r})=>{!ot||localStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},ya=e=>{if(!ot)return;let t=localStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:ke()>=r.expires?(localStorage.removeItem(String(e)),null):r.data},ha=e=>{!ot||localStorage.removeItem(String(e))},xa=()=>{!ot||localStorage.clear()}});var gr={};de(gr,{clear:()=>no,getItem:()=>to,removeItem:()=>ro,setItem:()=>eo,storage:()=>Sa});var eo,to,ro,no,Sa,oo=y(()=>{"use strict";n();eo=({key:e,data:t,expires:r})=>{sessionStorage.setItem(String(e),JSON.stringify({expires:r,data:t}))},to=e=>{let t=sessionStorage.getItem(String(e));if(!t)return null;let r=JSON.parse(t);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(e)),null):r.data},ro=e=>sessionStorage.removeItem(String(e)),no=()=>sessionStorage.clear(),Sa={setItem:eo,getItem:to,removeItem:ro,clear:no}});var Te,Le=y(()=>{"use strict";n();Ee();oo();Te={session:gr,local:mr}});var fr,P,_e,W=y(()=>{"use strict";n();fr=require("@reduxjs/toolkit");b();P=(0,fr.createAction)(rt),_e=(0,fr.createAction)(Zn,e=>({payload:e}))});var yr,io,so,it,Tr,ao,hr,Ou,xr,Mu,Fu,Uu,Bu,Wu,$u,Vu,Gu,st,at=y(()=>{"use strict";n();yr=require("@multiversx/sdk-core"),io=require("@reduxjs/toolkit"),so=require("redux-persist");b();Le();Ee();W();it={balance:"...",address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:Ie},Tr={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":it},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},ao=(0,io.createSlice)({name:"accountInfoSlice",initialState:Tr,reducers:{setAddress:(e,t)=>{let r=t.payload;e.address=r,e.publicKey=r?new yr.Address(r).hex():""},setAccount:(e,t)=>{let r=e.address===t.payload.address;e.accounts={[e.address]:r?t.payload:it},e.shard=t.payload.shard,e.isAccountLoading=!1,e.accountLoadingError=null},setAccountNonce:(e,t)=>{let{address:r}=e;e.accounts[r].nonce=t.payload},setAccountShard:(e,t)=>{e.shard=t.payload},setLedgerAccount:(e,t)=>{e.ledgerAccount=t.payload},updateLedgerAccount:(e,t)=>{e.ledgerAccount!=null&&(e.ledgerAccount.index=t.payload.index,e.ledgerAccount.address=t.payload.address)},setWalletConnectAccount:(e,t)=>{e.walletConnectAccount=t.payload},setIsAccountLoading:(e,t)=>{e.isAccountLoading=t.payload,e.accountLoadingError=null},setAccountLoadingError:(e,t)=>{e.accountLoadingError=t.payload,e.isAccountLoading=!1},setWebsocketEvent:(e,t)=>{e.websocketEvent={timestamp:Date.now(),message:t.payload}},setWebsocketBatchEvent:(e,t)=>{e.websocketBatchEvent={timestamp:Date.now(),data:t.payload}}},extraReducers:e=>{e.addCase(P,()=>(Te.local.removeItem(ue.loginExpiresAt),Tr)),e.addCase(_e,(t,r)=>{let{address:o}=r.payload;t.address=o,t.publicKey=new yr.Address(o).hex()}),e.addCase(so.REHYDRATE,(t,r)=>{var h;if(!((h=r.payload)!=null&&h.account))return;let{account:o}=r.payload,{address:c,shard:l,accounts:p,publicKey:m}=o;t.address=c,t.shard=l;let d=p&&c in p;t.accounts=d?p:Tr.accounts,t.publicKey=m})}}),{setAccount:hr,setAddress:Ou,setAccountNonce:xr,setAccountShard:Mu,setLedgerAccount:Fu,updateLedgerAccount:Uu,setWalletConnectAccount:Bu,setIsAccountLoading:Wu,setAccountLoadingError:$u,setWebsocketEvent:Vu,setWebsocketBatchEvent:Gu}=ao.actions,st=ao.reducer});function Oe(){return new Date().setHours(new Date().getHours()+24)}function Me(e){Te.local.setItem({key:ue.loginExpiresAt,data:e,expires:e})}var Sr=y(()=>{"use strict";n();Le();Ee()});var lo,co,po,Qu,ed,td,ct,rd,uo,mo,nd,od,id,lt,pt=y(()=>{"use strict";n();lo=require("@reduxjs/toolkit");Sr();H();W();co={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,passkeyLogin:null,operaLogin:null,crossWindowLogin:null,iframeWindowLogin:null,isLoginSessionInvalid:!1,webviewLogin:null},po=(0,lo.createSlice)({name:"loginInfoSlice",initialState:co,reducers:{setLoginMethod:(e,t)=>{e.loginMethod=t.payload},setTokenLogin:(e,t)=>{e.tokenLogin=t.payload},setTokenLoginSignature:(e,t)=>{(e==null?void 0:e.tokenLogin)!=null&&(e.tokenLogin.signature=t.payload)},setWalletLogin:(e,t)=>{e.walletLogin=t.payload},setWalletConnectLogin:(e,t)=>{e.walletConnectLogin=t.payload},setLedgerLogin:(e,t)=>{e.ledgerLogin=t.payload},setWebviewLogin:(e,t)=>{e.webviewLogin=t.payload},invalidateLoginSession:e=>{e.isLoginSessionInvalid=!0},setLogoutRoute:(e,t)=>{e.logoutRoute=t.payload},setIsWalletConnectV2Initialized:(e,t)=>{e.isWalletConnectV2Initialized=t.payload}},extraReducers:e=>{e.addCase(P,()=>co),e.addCase(_e,(t,r)=>{t.isLoginSessionInvalid=!1,t.loginMethod=r.payload.loginMethod,Me(Oe())})}}),{setLoginMethod:Qu,setWalletConnectLogin:ed,setLedgerLogin:td,setTokenLogin:ct,setTokenLoginSignature:rd,setWalletLogin:uo,invalidateLoginSession:mo,setLogoutRoute:nd,setIsWalletConnectV2Initialized:od,setWebviewLogin:id}=po.actions,lt=po.reducer});var fo,go,To,ld,pd,ud,dd,ut,dt=y(()=>{"use strict";n();fo=require("@reduxjs/toolkit");W();go={},To=(0,fo.createSlice)({name:"modalsSlice",initialState:go,reducers:{setTxSubmittedModal:(e,t)=>{e.txSubmittedModal=t.payload},setNotificationModal:(e,t)=>{e.notificationModal=t.payload},clearTxSubmittedModal:e=>{e.txSubmittedModal=void 0},clearNotificationModal:e=>{e.notificationModal=void 0}},extraReducers:e=>{e.addCase(P,()=>go)}}),{setTxSubmittedModal:ld,setNotificationModal:pd,clearTxSubmittedModal:ud,clearNotificationModal:dd}=To.actions,ut=To.reducer});var mt=y(()=>{"use strict";n()});var yo=y(()=>{"use strict";n();mt()});function ho(e){return e[Math.floor(Math.random()*e.length)]}var xo=y(()=>{"use strict";n()});var So=y(()=>{"use strict";n();ir()});var wo=y(()=>{"use strict";n();yo();xo();So()});var Ao,vo,bo,wr,va,Io,Pd,Rd,ko,gt,ft=y(()=>{"use strict";n();Ao=require("@reduxjs/toolkit"),vo=w(require("lodash.omit")),bo=require("redux-persist");cr();W();wo();wr={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000",roundDuration:6e3},va={network:wr},Io=(0,Ao.createSlice)({name:"appConfig",initialState:va,reducers:{initializeNetworkConfig:(e,t)=>{let r=ho(t.payload.walletConnectV2RelayAddresses),o=(0,vo.default)(t.payload,"walletConnectV2RelayAddresses");e.network=S(g(g({},e.network),o),{walletConnectV2RelayAddress:r})},updateNetworkConfig:(e,t)=>{e.network=g(g({},e.network),t.payload)},setCustomWalletAddress:(e,t)=>{e.network.customWalletAddress=t.payload}},extraReducers:e=>{e.addCase(P,t=>{t.network.customWalletAddress=void 0}),e.addCase(bo.REHYDRATE,(t,r)=>{var c,l;if(!((l=(c=r.payload)==null?void 0:c.network)!=null&&l.customWalletAddress))return;let{network:{customWalletAddress:o}}=r.payload;t.network.customWalletAddress=o})}}),{initializeNetworkConfig:Pd,updateNetworkConfig:Rd,setCustomWalletAddress:ko}=Io.actions,gt=Io.reducer});var Eo,Ar,Lo,Md,Fd,Ud,Tt,yt=y(()=>{"use strict";n();Eo=require("@reduxjs/toolkit");F();W();Ar={isSigning:!1,signedSessions:{}},Lo=(0,Eo.createSlice)({name:"signedMessageInfoSliceState",initialState:Ar,reducers:{setSignSession:(e,t)=>{let{sessionId:r,signedSession:o,errorMessage:c}=t.payload;c&&(e.errorMessage=c),e.isSigning=o.status==="pending",e.signedSessions[r]=g(g({},e.signedSessions[r]),o)},setSignSessionState:(e,t)=>g(g({},e),t.payload),clearSignedMessageInfo:()=>Ar},extraReducers:e=>{e.addCase(P,()=>Ar)}}),{setSignSession:Md,clearSignedMessageInfo:Fd,setSignSessionState:Ud}=Lo.actions,Tt=Lo.reducer});var Ro,No,Po,Co,ba,Ia,jd,qd,ht,xt=y(()=>{"use strict";n();Ro=require("@reduxjs/toolkit"),No=require("redux-persist");F();nt();W();Po={customToasts:[],transactionToasts:[]},Co=(0,Ro.createSlice)({name:"toastsSlice",initialState:Po,reducers:{addCustomToast:(e,t)=>{let r=t.payload.toastId||`custom-toast-${e.customToasts.length+1}`,o=e.customToasts.findIndex(c=>c.toastId===r);if(o!==-1){e.customToasts[o]=S(g(g({},e.customToasts[o]),t.payload),{type:"custom",toastId:r});return}e.customToasts.push(S(g({},t.payload),{type:"custom",toastId:r}))},removeCustomToast:(e,t)=>{e.customToasts=e.customToasts.filter(r=>r.toastId!==t.payload)},addTransactionToast:(e,t)=>{e.transactionToasts.push({type:"transaction",startTimestamp:ke(),toastId:t.payload||`custom-toast-${e.transactionToasts.length+1}`})},removeTransactionToast:(e,t)=>{e.transactionToasts=e.transactionToasts.filter(r=>r.toastId!==t.payload)}},extraReducers:e=>{e.addCase(P,()=>Po),e.addCase(No.REHYDRATE,(t,r)=>{var c,l;let o=(l=(c=r.customToasts)==null?void 0:c.filter(p=>!("component"in p)))!=null?l:[];t.customToasts=o})}}),{addCustomToast:ba,removeCustomToast:Ia,addTransactionToast:jd,removeTransactionToast:qd}=Co.actions,ht=Co.reducer});var Do,br,Ir,kr,ka,vr,_o,Yd,Zd,Jd,St,wt=y(()=>{"use strict";n();Do=require("@reduxjs/toolkit");W();br="Transaction failed",Ir="Transaction successful",kr="Processing transaction",ka="Transaction submitted",vr={},_o=(0,Do.createSlice)({name:"transactionsInfo",initialState:vr,reducers:{setTransactionsDisplayInfo(e,t){let{sessionId:r,transactionsDisplayInfo:o}=t.payload;r!=null&&(e[r]={errorMessage:(o==null?void 0:o.errorMessage)||br,successMessage:(o==null?void 0:o.successMessage)||Ir,processingMessage:(o==null?void 0:o.processingMessage)||kr,submittedMessage:(o==null?void 0:o.submittedMessage)||ka,transactionDuration:o==null?void 0:o.transactionDuration})},clearTransactionsInfoForSessionId(e,t){t.payload!=null&&delete e[t.payload]},clearTransactionsInfo:()=>vr},extraReducers:e=>{e.addCase(P,()=>vr)}}),{clearTransactionsInfo:Yd,setTransactionsDisplayInfo:Zd,clearTransactionsInfoForSessionId:Jd}=_o.actions,St=_o.reducer});function Oo(e){return e!=null&&(Fa(e)||Va(e))}function At(e){return e!=null&&(Ua(e)||Ga(e))}function vt(e){return e!=null&&(Ba(e)||Ha(e))}function Mo(e){return e!=null&&(Wa(e)||ja(e))}function Fo(e){return e!=null&&$a(e)}function Fa(e){return e!=null&&La.includes(e)}function Ua(e){return e!=null&&Pa.includes(e)}function Ba(e){return e!=null&&Ra.includes(e)}function Wa(e){return e!=null&&Na.includes(e)}function $a(e){return e!=null&&Ca.includes(e)}function Va(e){return e!=null&&Da.includes(e)}function Ga(e){return e!=null&&_a.includes(e)}function Ha(e){return e!=null&&Oa.includes(e)}function ja(e){return e!=null&&Ma.includes(e)}var La,Pa,Ra,Na,Ca,Da,_a,Oa,Ma,Lr=y(()=>{"use strict";n();H();La=["sent"],Pa=["success"],Ra=["fail","cancelled","timedOut"],Na=["invalid"],Ca=["timedOut"],Da=["pending"],_a=["success"],Oa=["fail","invalid"],Ma=["not executed"]});var Uo,Bo,Ue,qa,Wo,am,cm,lm,pm,um,dm,mm,gm,fm,Tm,ym,bt,It=y(()=>{"use strict";n();Uo=require("@reduxjs/toolkit"),Bo=require("redux-persist");H();Lr();W();Ue={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},qa={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Wo=(0,Uo.createSlice)({name:"transactionsSlice",initialState:Ue,reducers:{moveTransactionsToSignedState:(e,t)=>{var d,h;let{sessionId:r,transactions:o,errorMessage:c,status:l,redirectRoute:p,customTransactionInformation:m}=t.payload;e.customTransactionInformationForSessionId[r]=g(g(g({},qa),((d=e.signedTransactions[r])==null?void 0:d.customTransactionInformation)||{}),e.customTransactionInformationForSessionId[r]||{}),e.signedTransactions[r]={transactions:o,status:l,errorMessage:c,redirectRoute:p,customTransactionInformation:g(g({},e.customTransactionInformationForSessionId[r]),m!=null?m:{})},((h=e==null?void 0:e.transactionsToSign)==null?void 0:h.sessionId)===r&&(e.transactionsToSign=Ue.transactionsToSign)},clearSignedTransaction:(e,t)=>{e.signedTransactions[t.payload]&&delete e.signedTransactions[t.payload]},clearTransactionToSign:e=>{e!=null&&e.transactionsToSign&&(e.transactionsToSign=null)},updateSignedTransaction:(e,t)=>{e.signedTransactions=g(g({},e.signedTransactions),t.payload)},updateSignedTransactions:(e,t)=>{let{sessionId:r,status:o,errorMessage:c,transactions:l}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].status=o,c!=null&&(e.signedTransactions[r].errorMessage=c),l!=null&&(e.signedTransactions[r].transactions=l))},updateSignedTransactionStatus:(e,t)=>{var h,x,T,k,E,v,N,B;let{sessionId:r,status:o,errorMessage:c,transactionHash:l,serverTransaction:p,inTransit:m}=t.payload,d=(x=(h=e.signedTransactions)==null?void 0:h[r])==null?void 0:x.transactions;if(d!=null){e.signedTransactions[r].transactions=d.map(C=>C.hash===l?S(g(g({},p!=null?p:{}),C),{status:o,errorMessage:c,inTransit:m}):C);let q=(k=(T=e.signedTransactions[r])==null?void 0:T.transactions)==null?void 0:k.every(C=>At(C.status)),z=(v=(E=e.signedTransactions[r])==null?void 0:E.transactions)==null?void 0:v.some(C=>vt(C.status)),pe=(B=(N=e.signedTransactions[r])==null?void 0:N.transactions)==null?void 0:B.every(C=>Mo(C.status));q&&(e.signedTransactions[r].status="success"),z&&(e.signedTransactions[r].status="fail"),pe&&(e.signedTransactions[r].status="invalid")}},setTransactionsToSign:(e,t)=>{e.transactionsToSign=t.payload;let{sessionId:r,customTransactionInformation:o}=t.payload;e.customTransactionInformationForSessionId[r]=o,e.signTransactionsError=null},clearAllTransactionsToSign:e=>{e.transactionsToSign=Ue.transactionsToSign,e.signTransactionsError=null},clearAllSignedTransactions:e=>{e.signedTransactions=Ue.signedTransactions},setSignTransactionsError:(e,t)=>{e.signTransactionsError=t.payload},setSignTransactionsCancelMessage:(e,t)=>{e.signTransactionsCancelMessage=t.payload},updateSignedTransactionsCustomTransactionInformation:(e,t)=>{let{sessionId:r,customTransactionInformationOverrides:o}=t.payload;e.signedTransactions[r]!=null&&(e.signedTransactions[r].customTransactionInformation=g(g({},e.signedTransactions[r].customTransactionInformation),o))}},extraReducers:e=>{e.addCase(P,()=>Ue),e.addCase(Bo.REHYDRATE,(t,r)=>{var p;if(t.signTransactionsCancelMessage=null,!((p=r.payload)!=null&&p.transactions))return;let{signedTransactions:o,customTransactionInformationForSessionId:c}=r.payload.transactions,l=Object.entries(o).reduce((m,[d,h])=>{let x=new Date(d),T=new Date;return T.setHours(T.getHours()+5),T-x>0||(m[d]=h),m},{});c!=null&&(t.customTransactionInformationForSessionId=c),o!=null&&(t.signedTransactions=l)})}}),{updateSignedTransactionStatus:am,updateSignedTransactions:cm,setTransactionsToSign:lm,clearAllTransactionsToSign:pm,clearAllSignedTransactions:um,clearSignedTransaction:dm,clearTransactionToSign:mm,setSignTransactionsError:gm,setSignTransactionsCancelMessage:fm,moveTransactionsToSignedState:Tm,updateSignedTransactionsCustomTransactionInformation:ym}=Wo.actions,bt=Wo.reducer});var $o,Pr,Vo,wm,Am,vm,bm,kt,Et=y(()=>{"use strict";n();$o=require("@reduxjs/toolkit");W();Pr={},Vo=(0,$o.createSlice)({name:"batchTransactionsSlice",initialState:Pr,reducers:{setBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},updateBatchTransactions:(e,t)=>{e[t.payload.id]=t.payload},clearBatchTransactions:(e,t)=>{delete e[t.payload.batchId]},clearAllBatchTransactions:()=>Pr},extraReducers:e=>{e.addCase(P,()=>Pr)}}),{setBatchTransactions:wm,updateBatchTransactions:Am,clearBatchTransactions:vm,clearAllBatchTransactions:bm}=Vo.actions,kt=Vo.reducer});var Ho,Go,jo,Lm,qo,Rr=y(()=>{"use strict";n();Ho=require("@reduxjs/toolkit");W();Go={},jo=(0,Ho.createSlice)({name:"dappConfigSlice",initialState:Go,reducers:{setDappConfig:(e,t)=>t.payload},extraReducers:e=>{e.addCase(P,()=>Go)}}),{setDappConfig:Lm}=jo.actions,qo=jo.reducer});var K=y(()=>{"use strict";n();at();pt();dt();ft();yt();xt();wt();It();Et();Rr()});var Nr=y(()=>{"use strict";n()});var Xo,Ya,Za,ye,Rt=y(()=>{"use strict";n();Xo=require("@reduxjs/toolkit");Nr();at();Et();Rr();pt();dt();ft();yt();xt();wt();It();Ya={["account"]:st,["dappConfig"]:qo,["loginInfo"]:lt,["modals"]:ut,["networkConfig"]:gt,["signedMessageInfo"]:Tt,["toasts"]:ht,["transactionsInfo"]:St,["transactions"]:bt,["batchTransactions"]:kt},Za=(e={})=>(0,Xo.combineReducers)(g(g({},Ya),e)),ye=Za});var Qo={};de(Qo,{default:()=>mc,sessionStorageReducers:()=>Cr});function ae(e,t=[]){return{key:e,version:1,storage:Zo.default,blacklist:t}}var U,Yo,Zo,Ja,Be,Qa,ec,tc,rc,nc,oc,ic,sc,ac,cc,Jo,lc,Cr,pc,uc,dc,mc,ei=y(()=>{"use strict";n();U=require("redux-persist"),Yo=w(require("redux-persist/lib/storage")),Zo=w(require("redux-persist/lib/storage/session"));Rt();K();at();Et();pt();dt();ft();yt();xt();wt();It();Nr();Ja={persistReducersStorageType:"localStorage"},Be={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Qa=ae(Be["account"]),ec=ae(Be["loginInfo"]),tc=ae(Be["modals"]),rc=ae(Be["networkConfig"]),nc={2:e=>S(g({},e),{networkConfig:wr})};oc=ae("sdk-dapp-transactionsInfo"),ic=ae("sdk-dapp-transactions",["transactionsToSign"]),sc=ae("sdk-dapp-batchTransactions",["batchTransactions"]),ac=ae("sdk-dapp-toasts"),cc=ae("sdk-dapp-signedMessageInfo"),Jo={key:"sdk-dapp-store",version:2,storage:Yo.default,whitelist:Object.keys(Be),migrate:(0,U.createMigrate)(nc,{debug:!1})},lc=S(g({},Jo),{whitelist:[]}),Cr={["toasts"]:(0,U.persistReducer)(ac,ht),["transactions"]:(0,U.persistReducer)(ic,bt),["transactionsInfo"]:(0,U.persistReducer)(oc,St),["batchTransactions"]:(0,U.persistReducer)(sc,kt),["signedMessageInfo"]:(0,U.persistReducer)(cc,Tt)},pc=S(g({},Cr),{["account"]:(0,U.persistReducer)(Qa,st),["loginInfo"]:(0,U.persistReducer)(ec,lt),["modals"]:(0,U.persistReducer)(tc,ut),["networkConfig"]:(0,U.persistReducer)(rc,gt)}),uc=Ja.persistReducersStorageType==="localStorage",dc=uc?(0,U.persistReducer)(Jo,ye(Cr)):(0,U.persistReducer)(lc,ye(pc)),mc=dc});var ti={};de(ti,{default:()=>gc});var gc,ri=y(()=>{"use strict";n();Rt();gc=ye()});var ni={};de(ni,{default:()=>Tc});var j,fc,Tc,oi=y(()=>{"use strict";n();j=require("redux-persist"),fc=[j.FLUSH,j.REHYDRATE,j.PAUSE,j.PERSIST,j.PURGE,j.REGISTER],Tc=fc});var ai={};de(ai,{default:()=>si});function si(e){return(0,ii.persistStore)(e)}var ii,ci=y(()=>{"use strict";n();ii=require("redux-persist")});var Gi=_((K0,Vi)=>{n();function Nl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Vi.exports=Nl});var Qi=_((jE,Ji)=>{n();var Fl=typeof s=="object"&&s&&s.Object===Object&&s;Ji.exports=Fl});var ts=_((qE,es)=>{n();var Ul=Qi(),Bl=typeof self=="object"&&self&&self.Object===Object&&self,Wl=Ul||Bl||Function("return this")();es.exports=Wl});var Kr=_((zE,rs)=>{n();var $l=ts(),Vl=$l.Symbol;rs.exports=Vl});var ss=_((KE,is)=>{n();var ns=Kr(),os=Object.prototype,Gl=os.hasOwnProperty,Hl=os.toString,qe=ns?ns.toStringTag:void 0;function jl(e){var t=Gl.call(e,qe),r=e[qe];try{e[qe]=void 0;var o=!0}catch(l){}var c=Hl.call(e);return o&&(t?e[qe]=r:delete e[qe]),c}is.exports=jl});var cs=_((XE,as)=>{n();var ql=Object.prototype,zl=ql.toString;function Kl(e){return zl.call(e)}as.exports=Kl});var ds=_((YE,us)=>{n();var ls=Kr(),Xl=ss(),Yl=cs(),Zl="[object Null]",Jl="[object Undefined]",ps=ls?ls.toStringTag:void 0;function Ql(e){return e==null?e===void 0?Jl:Zl:ps&&ps in Object(e)?Xl(e):Yl(e)}us.exports=Ql});var gs=_((ZE,ms)=>{n();var ep=Array.isArray;ms.exports=ep});var Ts=_((JE,fs)=>{n();function tp(e){return e!=null&&typeof e=="object"}fs.exports=tp});var hs=_((QE,ys)=>{n();var rp=ds(),np=gs(),op=Ts(),ip="[object String]";function sp(e){return typeof e=="string"||!np(e)&&op(e)&&rp(e)==ip}ys.exports=sp});var pp={};de(pp,{useXaliasLogin:()=>lp});module.exports=De(pp);n();n();var gi=require("react"),Pe=require("react-redux");n();var Dr=require("@reduxjs/toolkit"),di=require("react-redux/lib/utils/Subscription");K();n();var zo=w(require("lodash.throttle"));b();K();Sr();Le();Ee();var za=[rt],Lt=!1,Ka=(0,zo.default)(()=>{Me(Oe())},5e3),Ko=e=>t=>r=>{if(za.includes(r.type))return t(r);let o=e.getState(),c=Te.local.getItem(ue.loginExpiresAt);if(!Boolean(o==null?void 0:o.account.address))return t(r);if(c==null)return Me(Oe());let p=Date.now();return c-p<0&&!Lt?setTimeout(()=>{Lt=!0,e.dispatch(mo())},1e3):(Lt&&(Lt=!1),Ka()),t(r)};n();n();function Pt(){return typeof sessionStorage!="undefined"}var li=Pt()?(ei(),De(Qo)).default:(ri(),De(ti)).default,pi=Pt()?(oi(),De(ni)).default:[],ui=Pt()?(ci(),De(ai)).default:e=>e;Rt();var I=(0,Dr.configureStore)({reducer:li,middleware:e=>e({serializableCheck:{ignoredActions:[...pi,xr.type,hr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Ko)}),mi=(0,di.createSubscription)(I),kg=ui(I),Eg=(0,Dr.configureStore)({reducer:ye});var yc={store:I,subscription:mi},_r=(0,gi.createContext)(yc),Ng=(0,Pe.createStoreHook)(_r),Nt=(0,Pe.createDispatchHook)(_r),D=(0,Pe.createSelectorHook)(_r);n();n();K();n();var fi=w(require("lodash.isequal")),Ct=require("reselect"),f=(0,Ct.createSelectorCreator)(Ct.defaultMemoize,fi.default);var te=e=>e.account,Dt=f(te,e=>e.address),Re=f(te,Dt,(e,t)=>t in e.accounts?e.accounts[t]:it),hc=f(te,Re,(e,t)=>{let c=e,{accounts:r}=c,o=Ye(c,["accounts"]);return S(g({},o),{address:t.address,account:t})}),Mg=f(Re,e=>e.balance),xc=f(Re,e=>{var t;return((t=e==null?void 0:e.nonce)==null?void 0:t.valueOf())||0}),Fg=f(te,e=>e.shard),Ug=f(te,e=>e.ledgerAccount),Bg=f(te,e=>e.walletConnectAccount),Wg=f(te,e=>e.isAccountLoading),$g=f(te,e=>e.accountLoadingError),Sc=f(te,e=>e.websocketEvent),wc=f(te,e=>e.websocketBatchEvent);n();var Ac=e=>e.dappConfig,Hg=f(Ac,e=>e.shouldUseWebViewProvider);n();var $=e=>e.loginInfo,Kg=f($,e=>e.loginMethod),_t=f($,Dt,(e,t)=>Boolean(t)),Xg=f($,e=>e.walletConnectLogin),Yg=f($,e=>e.ledgerLogin),vc=f($,e=>e.walletLogin),Zg=f($,e=>e.isLoginSessionInvalid),Ti=f($,e=>e.tokenLogin),Jg=f($,e=>e.logoutRoute),bc=f($,e=>e.isWalletConnectV2Initialized);n();var yi=e=>e.modals,tf=f(yi,e=>e.txSubmittedModal),rf=f(yi,e=>e.notificationModal);n();var ce=e=>e.networkConfig,hi=f(ce,e=>e.network.chainId),sf=f(ce,e=>e.network.roundDuration),af=f(ce,e=>e.network.walletConnectBridgeAddress),cf=f(ce,e=>e.network.walletConnectV2RelayAddress),lf=f(ce,e=>e.network.walletConnectV2ProjectId),pf=f(ce,e=>e.network.walletConnectV2Options),uf=f(ce,e=>e.network.walletConnectDeepLink),re=f(ce,e=>e.network),Ic=f(re,e=>e.apiAddress),xi=f(re,e=>e.explorerAddress),df=f(re,e=>{var t;return(t=e.customWalletAddress)!=null?t:e.walletAddress}),Si=f(re,e=>e.xAliasAddress),kc=f(re,e=>e.egldLabel);n();var Ot=e=>e.signedMessageInfo,ff=f(Ot,e=>e.isSigning),Tf=f(Ot,e=>e.errorMessage),yf=f(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return e.signedSessions[t[r-1]]}),hf=f(Ot,e=>{let t=Object.keys(e.signedSessions),r=t.length;return t.length>0?t[r-1]:""});n();var wi=e=>e.toasts,wf=f(wi,e=>e.customToasts),Af=f(wi,e=>e.transactionToasts);n();K();var Ai={errorMessage:br,successMessage:Ir,processingMessage:kr},Ec=e=>e.transactionsInfo,kf=f(Ec,(e,t)=>t,(e,t)=>t!=null&&(e==null?void 0:e[Number(t)])||Ai);n();n();var ne=require("@multiversx/sdk-core");b();n();var Or=require("@multiversx/sdk-core/out");n();n();function Mt(e){try{let t=atob(e),r=btoa(t),o=i.Buffer.from(e,"base64").toString(),c=i.Buffer.from(o).toString("base64"),l=e===r||r.startsWith(e),p=e===c||c.startsWith(e);if(l&&p)return!0}catch(t){return!1}return!1}function he(e){return Mt(e)?atob(e):e}n();n();n();n();var vi=e=>{let t=e!=null?e:"";return Mt(t)?Or.TransactionPayload.fromEncoded(t):new Or.TransactionPayload(t)};n();b();var Ft=({data:e,onlySetGuardian:t})=>e?t?e.startsWith("SetGuardian"):Object.values(or).some(r=>e.startsWith(r)):!1;function Mr(e){var o,c,l;let t=g({},e);Ft({data:t.data,onlySetGuardian:!0})&&(delete t.senderUsername,delete t.receiverUsername);let r=new ne.Transaction(g(g(S(g(S(g({value:t.value.valueOf(),data:vi(t.data),nonce:t.nonce.valueOf(),receiver:new ne.Address(t.receiver)},t.receiverUsername?{receiverUsername:t.receiverUsername}:{}),{sender:new ne.Address(t.sender)}),t.senderUsername?{senderUsername:t.senderUsername}:{}),{gasLimit:(o=t.gasLimit.valueOf())!=null?o:pr,gasPrice:(c=t.gasPrice.valueOf())!=null?c:ur,chainID:t.chainID.valueOf(),version:new ne.TransactionVersion((l=t.version)!=null?l:Yn)}),t.options?{options:new ne.TransactionOptions(t.options)}:{}),t.guardian?{guardian:new ne.Address(t.guardian)}:{}));return t.guardianSignature&&r.applyGuardianSignature(i.Buffer.from(t.guardianSignature,"hex")),t.signature&&r.applySignature(i.Buffer.from(t.signature,"hex")),r}n();n();b();n();n();n();var Nc=require("@multiversx/sdk-core/out");n();b();n();var bi=require("@multiversx/sdk-core");F();n();var Cc=require("@multiversx/sdk-core");n();n();n();var Dc=require("@multiversx/sdk-core"),_c=w(require("bignumber.js"));H();n();n();n();var Ur="blocks";n();n();n();n();M();n();n();M();n();n();n();var Wc=w(require("bignumber.js"));b();n();var Bc=require("@multiversx/sdk-core"),Br=w(require("bignumber.js"));b();n();var Fc=w(require("bignumber.js"));n();Br.default.config({ROUNDING_MODE:Br.default.ROUND_FLOOR});n();n();n();b();n();n();n();n();b();n();b();n();var $c=require("@multiversx/sdk-core");b();n();var $e=require("@multiversx/sdk-core"),Gc=w(require("bignumber.js"));b();n();n();var Vc=w(require("bignumber.js"));b();n();b();n();n();n();n();n();n();b();n();b();n();b();n();M();var jc=["reDelegateRewards","claimRewards","unBond"],qc=["wrapEgld","unwrapEgld"],zc=["unStake"],Kc=["unDelegate"];n();n();n();b();n();var Zc=w(require("bignumber.js"));n();n();M();n();var Qc=w(require("bignumber.js"));n();n();n();n();var tl=w(require("bignumber.js"));F();n();n();n();n();H();n();var ol=require("@multiversx/sdk-web-wallet-provider");b();n();var nl=w(require("qs"));n();n();n();n();n();var Ve=()=>typeof window!="undefined"&&typeof(window==null?void 0:window.location)!="undefined";var V=()=>{if(!Ve())return{pathname:"",hash:"",origin:"",href:"",search:""};let{location:{pathname:t,hash:r,origin:o,href:c,search:l}}=window;return{pathname:t,hash:r,origin:o,href:c,search:l}};n();n();var xS={search:Ve()?window.location.search:"",removeParams:[]};n();n();n();n();M();n();n();n();var il=w(require("linkifyjs"));n();b();n();var sl=w(require("bignumber.js"));n();F();n();n();H();n();H();n();n();n();M();n();M();n();var al=w(require("bignumber.js"));b();M();n();M();n();var Ni=require("react");F();n();n();M();n();n();var cl=require("@multiversx/sdk-core/out"),ll=w(require("bignumber.js"));M();n();F();n();n();F();var mA=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];n();var Ci=require("react");F();n();var ul=require("react");M();var wA=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];Lr();n();var Wt=e=>e.transactions,Ge=f(Wt,e=>e.signedTransactions),uv=f(Wt,e=>e.signTransactionsError),dv=f(Wt,e=>e.signTransactionsCancelMessage),$t=e=>t=>Object.entries(t).reduce((r,[o,c])=>(e(c.status)&&(r[o]=c),r),{}),mv=f(Ge,$t(Oo)),gv=f(Ge,$t(At)),fv=f(Ge,$t(vt)),Tv=f(Ge,$t(Fo)),yv=f(Wt,e=>{var t;return(e==null?void 0:e.transactionsToSign)==null?null:S(g({},e.transactionsToSign),{transactions:((t=e==null?void 0:e.transactionsToSign)==null?void 0:t.transactions.map(r=>Mr(r)))||[]})}),hv=f(Ge,(e,t)=>t,(e,t)=>t!=null?(e==null?void 0:e[t])||{}:{});n();var Zr=require("react");nr();K();n();n();n();n();n();n();n();n();var Di=require("@lifeomic/axios-fetch"),Vr=w(require("axios")),Gr=(0,Di.buildAxiosFetch)(Vr.default),Hr=(e,t)=>A(void 0,null,function*(){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);let o=e.clone().json(),[c]=yield Promise.all([o]);return{data:c,status:e.status,statusText:e.statusText,headers:e.headers,config:t}});function dl(e,t,r){return A(this,null,function*(){try{let o=yield Gr(e,g({method:"POST",body:t?JSON.stringify(t):void 0,headers:g({"Content-Type":"application/json"},(r==null?void 0:r.headers)||{})},r));return Hr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}function ml(e,t){return A(this,null,function*(){try{let r=yield Gr(e,t);if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return Hr(r,t)}catch(r){throw console.error("Fetch Error:",r),r}})}function gl(e,t,r){return A(this,null,function*(){try{let o=yield Gr(e,g({method:"PATCH",body:t?JSON.stringify(t):void 0,headers:(r==null?void 0:r.headers)||{}},r));if(!o.ok)throw new Error(`HTTP error! Status: ${o.status}`);return Hr(o,r)}catch(o){throw console.error("Fetch Error:",o),o}})}var He=Vr.default.create();He.get=ml;He.post=dl;He.patch=gl;n();n();var fl=w(require("axios"));n();var yl=w(require("swr"));n();n();n();n();n();var xl=require("@multiversx/sdk-extension-provider"),Sl=require("@multiversx/sdk-hw-provider"),wl=require("@multiversx/sdk-metamask-provider/out/metamaskProvider"),Al=require("@multiversx/sdk-opera-provider"),vl=require("@multiversx/sdk-passkey-provider/out"),bl=require("@multiversx/sdk-web-wallet-iframe-provider/out"),_i=require("@multiversx/sdk-web-wallet-provider");b();sr();H();n();var Il="/dapp/init";var Oi=e=>new _i.WalletProvider(`${e}${Il}`);var X=e=>`Unable to perform ${e}, Provider not initialized`,Vt=class{init(){return Promise.resolve(!1)}getAccount(){throw new Error(X("getAccount"))}setAccount(t){throw new Error(X(`setAccount: ${t}`))}login(t){throw new Error(X(`login with options: ${t}`))}logout(t){throw new Error(X(`logout with options: ${t}`))}getAddress(){throw new Error(X("getAddress"))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(t,r){throw new Error(X(`sendTransaction with transactions: ${t} options: ${r}`))}signTransaction(t,r){throw new Error(X(`signTransaction with transactions: ${t} options: ${r}`))}signTransactions(t,r){throw new Error(X(`signTransactions with transactions: ${t} options: ${r}`))}signMessage(t,r){throw new Error(X(`signTransactions with ${t} and options ${r}`))}sendCustomMessage({method:t,params:r}){throw new Error(X(`sendCustomMessage with method: ${t} params: ${r}`))}sendCustomRequest(t){throw new Error(X(`sendSessionEvent with options: ${t}`))}ping(){return Promise.resolve(!1)}},kl=new Vt;n();H();n();n();n();n();n();W();F();n();K();n();K();n();var Fi=require("@multiversx/sdk-core");F();n();dr();n();n();var Ll=w(require("platform"));n();function Ui(){return _t(I.getState())}n();W();F();n();mt();Le();Ee();n();n();n();n();n();n();n();tt();H();n();n();var Pl=require("@multiversx/sdk-metamask-provider/out/metamaskProvider");n();n();mt();n();n();n();function Bi(e){return A(this,null,function*(){return yield new Promise(t=>{setTimeout(()=>t(),e)})})}n();var Wi=(e,t,r,o=0)=>A(void 0,null,function*(){try{return yield e(...r)}catch(c){return o<t.retries?((t==null?void 0:t.delay)!=null&&(yield Bi(t.delay)),yield Wi(e,t,r,o+1)):null}}),$i=(e,t={retries:5,delay:500})=>(...r)=>A(void 0,null,function*(){return yield Wi(e,t,r)});Le();n();n();n();K();n();n();var Rl=w(require("axios"));n();n();var Cl=w(Gi());tt();var Hi,ji,qi,Y0=(qi=(ji=(Hi=be.safeWindow)==null?void 0:Hi.location)==null?void 0:ji.origin)==null?void 0:qi.includes("localhost");n();n();var zi=(e,t=["address"])=>{let r=new URL(e),o=new URLSearchParams(r.search);t.forEach(p=>o.delete(p));let c=Array.from(o.values()).length>0?"?":"",l=r.pathname==="/"&&!e.endsWith("/")?"":r.pathname;return r.protocol==="vscode:"?e:`${r.origin}${l}${c}${o.toString()}${r.hash}`};n();var bs=require("react"),Ht=require("@multiversx/sdk-core");n();n();var qr=()=>D(Re);n();n();n();n();n();n();n();n();n();var je=w(require("react"));var Yk=(0,je.createContext)({}),Zk=I.getState();n();var Xi=w(require("react"));n();var zr=w(require("react")),Dl=w(require("axios"));n();n();K();n();n();var vs=require("@multiversx/sdk-native-auth-client");n();var Yi=w(require("axios"));var _l=4,Ol=3e4,Gt={current:null},xe={current:null},Ml=$i((e,t,r)=>A(void 0,null,function*(){if(r){let l=Math.floor(Date.now()/1e3);return{hash:yield r(),timestamp:l}}let{data:o}=yield Yi.default.get(`${e}/${Ur}?from=${_l}&size=1&fields=hash,timestamp${t?"&shard="+t:""}`),[c]=o;return c}));function Zi(e,t,r,o){return A(this,null,function*(){if(e==null)throw new Error("missing api url");let c=Date.now();if(Gt.current!=null&&c<Gt.current.timestamp*1e3+Ol&&!o)return Gt.current;if(xe.current!=null)return yield xe.current;xe.current=Ml(e,t,r);try{let l=yield xe.current;if(l==null)throw xe.current=null,new Error("could not get block hash");return Gt.current={hash:l.hash,timestamp:l.timestamp},xe.current=null,l}catch(l){return xe.current=null,null}})}n();n();nt();n();n();var xs=w(hs());var Ss=e=>{if(!e||!(0,xs.default)(e))return null;let t=e.split(".");if(t.length!==4)return null;try{let[r,o,c,l]=t,p=JSON.parse(he(l)),m=he(r);return{ttl:Number(c),extraInfo:p,origin:m,blockHash:o}}catch(r){return console.error(`Error trying to decode ${e}:`,r),null}};function ap(e){return Object.prototype.toString.call(e)==="[object String]"}var ws=e=>{var r;if(!e||!ap(e))return null;let t=e.split(".");if(t.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[o,c,l]=t,p=he(o),m=he(c),d=Ss(m);if(!d)return{address:p,body:m,signature:l,blockHash:"",origin:"",ttl:0};let h=S(g({},d),{address:p,body:m,signature:l});return(r=d.extraInfo)!=null&&r.timestamp||delete h.extraInfo,h}catch(o){return null}};var Xr={isExpired:!1},As=e=>{if(!e)return Xr;let t=ws(e);if(!t)return Xr;let r=ke(),{ttl:o,extraInfo:c}=t,l=c==null?void 0:c.timestamp;if(!l)return Xr;let p=l+o,m=r>p,d=p-r;return{isExpired:m,expiresAt:p,secondsUntilExpires:d}};n();var ze={origin:V().origin,apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},Ke=e=>{var r,o,c,l,p,m;return e===!0?ze:{origin:(r=e==null?void 0:e.origin)!=null?r:ze.origin,blockHashShard:e==null?void 0:e.blockHashShard,expirySeconds:(o=e==null?void 0:e.expirySeconds)!=null?o:ze.expirySeconds,apiAddress:(c=e==null?void 0:e.apiAddress)!=null?c:ze.apiAddress,tokenExpirationToastWarningSeconds:(l=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?l:ze.tokenExpirationToastWarningSeconds,extraInfo:(p=e==null?void 0:e.extraInfo)!=null?p:{},gatewayUrl:e==null?void 0:e.gatewayUrl,extraRequestHeaders:(m=e==null?void 0:e.extraRequestHeaders)!=null?m:{}}};var Yr=e=>{let{origin:t,apiAddress:r,expirySeconds:o,blockHashShard:c,extraInfo:l,gatewayUrl:p,extraRequestHeaders:m}=Ke(e),d=new vs.NativeAuthClient({origin:t,apiUrl:r,expirySeconds:o,blockHashShard:c,gatewayUrl:p,extraRequestHeaders:m});return{getNativeAuthConfig:Ke,initialize:T=>A(void 0,null,function*(){var z,pe;if(!r||!t)return"";let k=()=>d.getCurrentBlockHash(),E=(z=T==null?void 0:T.latestBlockInfo)!=null?z:yield Zi(r,c,k,T==null?void 0:T.noCache),{hash:v,timestamp:N}=E,B=d.encodeValue(JSON.stringify(g(g({},(pe=T==null?void 0:T.extraInfo)!=null?pe:l),N?{timestamp:N}:{})));return`${d.encodeValue(t)}.${v}.${o}.${B}`}),getToken:({address:T,token:k,signature:E})=>d.getToken(T,k,E),getTokenExpiration:As}};var cp=(e,t)=>{var r;return t?t===!0?e:(r=t.apiAddress)!=null?r:e:null},Is=e=>{let t=D(re),r=D(Ti),o=(0,bs.useRef)(r==null?void 0:r.loginToken),c=cp(t.apiAddress,e),l=Ke(g(g({},e===!0?{}:e),c?{apiAddress:c}:{})),p=Boolean(e),m=Yr(l),{address:d}=qr(),h=Nt(),x=v=>{o.current=v,h(ct(g(S(g({},r),{loginToken:v}),c?{nativeAuthConfig:l}:{})))},T=()=>{try{return m.initialize()}catch(v){console.error("Unable to get block. Login failed.",v);return}},k=({address:v,signature:N})=>{let B=o.current;if(!B)throw"Token not found. Call `setLoginToken` first.";if(!p){h(ct({loginToken:B,signature:N}));return}let q=m.getToken({address:v,token:B,signature:N});return h(ct(g({loginToken:B,signature:N,nativeAuthToken:q},c?{nativeAuthConfig:l}:{}))),q};return{configuration:l,setLoginToken:x,getNativeAuthLoginToken:T,setTokenLoginInfo:k,refreshNativeAuthTokenLogin:B=>A(void 0,[B],function*({signMessageCallback:v,nativeAuthClientConfig:N}){let z=yield Yr(N||l).initialize({noCache:Boolean(N)});if(o.current=z,!z)return;let pe=new Ht.Message({address:new Ht.Address(d),data:i.Buffer.from(`${d}${z}`)}),C=yield v(pe,{});if(!(C!=null&&C.signature))throw"Message not signed";return k({address:d,signature:i.Buffer.from(C.signature).toString("hex")})})}};var ks=({callbackRoute:e,token:t,nativeAuth:r,redirectDelayMilliseconds:o=100,customWalletAddress:c})=>{let[l,p]=(0,Zr.useState)(""),[m,d]=(0,Zr.useState)(!1),h=D(re),x=Nt(),T=Ui(),k=Boolean(r),E=Is(r),v=t;function N(){return A(this,null,function*(){if(T)throw new Error(kn);x(ko(c));try{d(!0);let q=Oi(c!=null?c:h.walletAddress),z=new Date,pe=z.setMinutes(z.getMinutes()+3)/1e3,C={data:{},expires:pe};if(k&&!v&&(v=yield E.getNativeAuthLoginToken(),!v)){console.warn("Login cancelled.");return}v&&E.setLoginToken(v);let{origin:Jr}=V(),Es=window!=null&&window.location?`${Jr}${e}`:`${e}`;new URLSearchParams(document==null?void 0:document.location.search).get("address")||x(uo(C));let Ls=zi(Es),Ps=encodeURIComponent(Ls),Rs=S(g({callbackUrl:Ps},v&&{token:v}),{redirectDelayMilliseconds:o});yield q.login(Rs)}catch(q){console.error(q),p("error logging in"+q.message)}finally{d(!1)}})}let B=Boolean(l);return[N,{error:l,loginFailed:B,isLoading:m&&!B,isLoggedIn:T&&!B}]};var lp=e=>{var r;let t=D(Si);return ks(S(g({},e),{customWalletAddress:(r=e.customWalletAddress)!=null?r:t}))};0&&(module.exports={useXaliasLogin});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,3 +1,3 @@
1
- import { UserVerifier } from '@multiversx/sdk-wallet';
1
+ import { UserVerifier } from '@multiversx/sdk-core';
2
2
  export declare const getVerifier: (address: string) => UserVerifier;
3
3
  //# sourceMappingURL=getVerifier.d.ts.map
@@ -1,4 +1,4 @@
1
- "use strict";var dr=Object.create;var b=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Sr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var _r=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Mr=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sr(r))!Rr.call(e,n)&&n!==t&&b(e,n,{get:()=>r[n],enumerable:!(i=Cr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?dr(Lr(e)):{},tr(r||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),kr=e=>tr(b({},"__esModule",{value:!0}),e);var or=N(W=>{"use strict";F();W.byteLength=br;W.toByteArray=Wr;W.fromByteArray=Hr;var g=[],m=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,ir=G.length;d<ir;++d)g[d]=G[d],m[G.charCodeAt(d)]=d;var d,ir;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function br(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Nr(e,r,t){return(r+t)*3/4-t}function Wr(e){var r,t=nr(e),i=t[0],n=t[1],o=new Dr(Nr(e,i,n)),u=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,o[u++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Yr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function qr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Yr(i));return n.join("")}function Hr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,u=0,h=t-i;u<h;u+=o)n.push(qr(e,u,u+o>h?h:u+o));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var ur=N(K=>{F();K.read=function(e,r,t,i,n){var o,u,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,o=x&(1<<-l)-1,x>>=-l,l+=h;l>0;o=o*256+e[r+p],p+=E,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=i;l>0;u=u*256+e[r+p],p+=E,l-=8);if(o===0)o=1-c;else{if(o===f)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,i),o=o-c}return(x?-1:1)*u*Math.pow(2,o-i)};K.write=function(e,r,t,i,n,o){var u,h,f,c=o*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,L=i?1:-1,Ir=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),u+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(u++,f/=2),u+p>=l?(h=0,u=l):u+p>=1?(h=(r*f-1)*Math.pow(2,n),u=u+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),u=0));n>=8;e[t+x]=h&255,x+=L,h/=256,n-=8);for(u=u<<n|h,c+=n;c>0;e[t+x]=u&255,x+=L,u/=256,c-=8);e[t+x-L]|=Ir*128}});var Fr=N(_=>{"use strict";F();var z=or(),R=ur(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=Jr;_.INSPECT_MAX_BYTES=50;var q=2147483647;_.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=Vr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Vr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>q)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return Gr(e,r);if(ArrayBuffer.isView(e))return Kr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=zr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Xr(e,r,t){return cr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Xr(e,r,t)};function Z(e){return cr(e),U(e<0?0:$(e)|0)}a.allocUnsafe=function(e){return Z(e)};a.allocUnsafeSlow=function(e){return Z(e)};function Gr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:$(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Kr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function zr(e){if(a.isBuffer(e)){var r=$(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?U(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function $(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function Jr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,u=Math.min(i,n);o<u;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var u=r[i];if(B(u,Uint8Array))o+u.length>n.length?a.from(u).copy(n,o):Uint8Array.prototype.set.call(n,u,o);else if(a.isBuffer(u))u.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:O(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Qr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return nt(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return et(this,r,t);case"latin1":case"binary":return it(this,r,t);case"base64":return rt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Qr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var u=o-n,h=i-t,f=Math.min(u,h),c=this.slice(n,o),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){u=c[p],h=l[p];break}return u<h?-1:h<u?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var o=1,u=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,h/=2,t/=2}function f(x,L){return o===1?x[L]:x.readUInt16BE(L*o)}var c;if(n){var l=-1;for(c=t;c<u;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(t+h>u&&(t=u-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Or(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var u=0;u<i;++u){var h=parseInt(r.substr(u*2,2),16);if(P(h))return u;e[t+u]=h}return u}function Zr(e,r,t,i){return H(O(r,e.length-t),e,t,i)}function $r(e,r,t,i){return H(ht(r),e,t,i)}function Pr(e,r,t,i){return H(Er(r),e,t,i)}function jr(e,r,t,i){return H(ft(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return Or(this,r,t,i);case"utf8":case"utf-8":return Zr(this,r,t,i);case"ascii":case"latin1":case"binary":return $r(this,r,t,i);case"base64":return Pr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],u=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:o<128&&(u=o);break;case 2:f=e[n+1],(f&192)===128&&(p=(o&31)<<6|f&63,p>127&&(u=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(o&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(o&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|u&1023),i.push(u),n+=h}return tt(i)}var fr=4096;function tt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function it(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function nt(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=pt[e[o]];return n}function ot(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],o=1,u=0;++u<t&&(o*=256);)n+=this[r+u]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,o=1,u=this[r+--n];n>0&&(o*=256);)u+=this[r+--n]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=1,h=0;for(this[t]=r&255;++h<i&&(u*=256);)this[t+h]=r/u&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;y(this,r,t,i,o,0)}var u=i-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=0,h=1,f=0;for(this[t]=r&255;++u<i&&(h*=256);)r<0&&f===0&&this[t+u-1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);y(this,r,t,i,o-1,-o)}var u=i-1,h=1,f=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&f===0&&this[t+u+1]!==0&&(f=1),this[t+u]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<i;++u)this[u]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<i-t;++u)this[u+t]=h[u%f]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function at(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function O(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],u=0;u<i;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ht(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Er(e){return z.toByteArray(at(e))}function H(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var pt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Ur=N((Ft,vr)=>{F();var s=vr.exports={},A,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=j}catch(e){A=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===j||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function ct(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],M=!1,S,V=-1;function lt(){!M||!S||(M=!1,S.length?T=S.concat(T):V=-1,T.length&&Br())}function Br(){if(!M){var e=gr(lt);M=!0;for(var r=T.length;r;){for(S=T,T=[];++V<r;)S&&S[V].run();V=-1,r=T.length}S=null,M=!1,ct(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Ar(e,r)),T.length===1&&!M&&gr(Br)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var k,D,gt,F=_r(()=>{k=er(Fr()),D=er(Ur()),gt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var wt={};Mr(wt,{getVerifier:()=>st});module.exports=kr(wt);F();var Tr=require("@multiversx/sdk-core/out"),X=require("@multiversx/sdk-wallet"),st=e=>{let r=new X.UserPublicKey(Tr.Address.fromString(e).pubkey());return new X.UserVerifier(r)};0&&(module.exports={getVerifier});
1
+ "use strict";var Ir=Object.create;var N=Object.defineProperty;var dr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var Lr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty;var Rr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),_r=(e,r)=>{for(var t in r)N(e,t,{get:r[t],enumerable:!0})},tr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Cr(r))!Sr.call(e,n)&&n!==t&&N(e,n,{get:()=>r[n],enumerable:!(i=dr(r,n))||i.enumerable});return e};var er=(e,r,t)=>(t=e!=null?Ir(Lr(e)):{},tr(r||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)),Mr=e=>tr(N({},"__esModule",{value:!0}),e);var ur=W(Y=>{"use strict";F();Y.byteLength=Dr;Y.toByteArray=Nr;Y.fromByteArray=qr;var g=[],m=[],kr=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0,ir=G.length;d<ir;++d)g[d]=G[d],m[G.charCodeAt(d)]=d;var d,ir;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function nr(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Dr(e){var r=nr(e),t=r[0],i=r[1];return(t+i)*3/4-i}function br(e,r,t){return(r+t)*3/4-t}function Nr(e){var r,t=nr(e),i=t[0],n=t[1],u=new kr(br(e,i,n)),o=0,h=n>0?i-4:i,f;for(f=0;f<h;f+=4)r=m[e.charCodeAt(f)]<<18|m[e.charCodeAt(f+1)]<<12|m[e.charCodeAt(f+2)]<<6|m[e.charCodeAt(f+3)],u[o++]=r>>16&255,u[o++]=r>>8&255,u[o++]=r&255;return n===2&&(r=m[e.charCodeAt(f)]<<2|m[e.charCodeAt(f+1)]>>4,u[o++]=r&255),n===1&&(r=m[e.charCodeAt(f)]<<10|m[e.charCodeAt(f+1)]<<4|m[e.charCodeAt(f+2)]>>2,u[o++]=r>>8&255,u[o++]=r&255),u}function Wr(e){return g[e>>18&63]+g[e>>12&63]+g[e>>6&63]+g[e&63]}function Yr(e,r,t){for(var i,n=[],u=r;u<t;u+=3)i=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(e[u+2]&255),n.push(Wr(i));return n.join("")}function qr(e){for(var r,t=e.length,i=t%3,n=[],u=16383,o=0,h=t-i;o<h;o+=u)n.push(Yr(e,o,o+u>h?h:o+u));return i===1?(r=e[t-1],n.push(g[r>>2]+g[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(g[r>>10]+g[r>>4&63]+g[r<<2&63]+"=")),n.join("")}});var or=W(K=>{F();K.read=function(e,r,t,i,n){var u,o,h=n*8-i-1,f=(1<<h)-1,c=f>>1,l=-7,p=t?n-1:0,E=t?-1:1,x=e[r+p];for(p+=E,u=x&(1<<-l)-1,x>>=-l,l+=h;l>0;u=u*256+e[r+p],p+=E,l-=8);for(o=u&(1<<-l)-1,u>>=-l,l+=i;l>0;o=o*256+e[r+p],p+=E,l-=8);if(u===0)u=1-c;else{if(u===f)return o?NaN:(x?-1:1)*(1/0);o=o+Math.pow(2,i),u=u-c}return(x?-1:1)*o*Math.pow(2,u-i)};K.write=function(e,r,t,i,n,u){var o,h,f,c=u*8-n-1,l=(1<<c)-1,p=l>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:u-1,S=i?1:-1,Tr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,o=l):(o=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+p>=1?r+=E/f:r+=E*Math.pow(2,1-p),r*f>=2&&(o++,f/=2),o+p>=l?(h=0,o=l):o+p>=1?(h=(r*f-1)*Math.pow(2,n),o=o+p):(h=r*Math.pow(2,p-1)*Math.pow(2,n),o=0));n>=8;e[t+x]=h&255,x+=S,h/=256,n-=8);for(o=o<<n|h,c+=n;c>0;e[t+x]=o&255,x+=S,o/=256,c-=8);e[t+x-S]|=Tr*128}});var Fr=W(_=>{"use strict";F();var z=ur(),R=or(),ar=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=a;_.SlowBuffer=zr;_.INSPECT_MAX_BYTES=50;var H=2147483647;_.kMaxLength=H;a.TYPED_ARRAY_SUPPORT=Hr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Hr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(e)}return pr(e,r,t)}a.poolSize=8192;function pr(e,r,t){if(typeof e=="string")return Xr(e,r);if(ArrayBuffer.isView(e))return Gr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return Q(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return a.from(i,r,t);var n=Kr(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return pr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function cr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Vr(e,r,t){return cr(e),e<=0?U(e):r!==void 0?typeof t=="string"?U(e).fill(r,t):U(e).fill(r):U(e)}a.alloc=function(e,r,t){return Vr(e,r,t)};function Z(e){return cr(e),U(e<0?0:$(e)|0)}a.allocUnsafe=function(e){return Z(e)};a.allocUnsafeSlow=function(e){return Z(e)};function Xr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=lr(e,r)|0,i=U(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function J(e){for(var r=e.length<0?0:$(e.length)|0,t=U(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Gr(e){if(B(e,Uint8Array)){var r=new Uint8Array(e);return Q(r.buffer,r.byteOffset,r.byteLength)}return J(e)}function Q(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,a.prototype),i}function Kr(e){if(a.isBuffer(e)){var r=$(e.length)|0,t=U(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||P(e.length)?U(0):J(e);if(e.type==="Buffer"&&Array.isArray(e.data))return J(e.data)}function $(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function zr(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,t){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,u=0,o=Math.min(i,n);u<o;++u)if(r[u]!==t[u]){i=r[u],n=t[u];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=a.allocUnsafe(t),u=0;for(i=0;i<r.length;++i){var o=r[i];if(B(o,Uint8Array))u+o.length>n.length?a.from(o).copy(n,u):Uint8Array.prototype.set.call(n,o,u);else if(a.isBuffer(o))o.copy(n,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=o.length}return n};function lr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(e).length;default:if(n)return i?-1:O(e).length;r=(""+r).toLowerCase(),n=!0}}a.byteLength=lr;function Jr(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return it(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return tt(this,r,t);case"latin1":case"binary":return et(this,r,t);case"base64":return jr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):Jr.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",t=_.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};ar&&(a.prototype[ar]=a.prototype.inspect);a.prototype.compare=function(r,t,i,n,u){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),u===void 0&&(u=this.length),t<0||i>r.length||n<0||u>this.length)throw new RangeError("out of range index");if(n>=u&&t>=i)return 0;if(n>=u)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,u>>>=0,this===r)return 0;for(var o=u-n,h=i-t,f=Math.min(o,h),c=this.slice(n,u),l=r.slice(t,i),p=0;p<f;++p)if(c[p]!==l[p]){o=c[p],h=l[p];break}return o<h?-1:h<o?1:0};function sr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,P(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:hr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):hr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function hr(e,r,t,i,n){var u=1,o=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,o/=2,h/=2,t/=2}function f(x,S){return u===1?x[S]:x.readUInt16BE(S*u)}var c;if(n){var l=-1;for(c=t;c<o;c++)if(f(e,c)===f(r,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===h)return l*u}else l!==-1&&(c-=c-l),l=-1}else for(t+h>o&&(t=o-h),c=t;c>=0;c--){for(var p=!0,E=0;E<h;E++)if(f(e,c+E)!==f(r,E)){p=!1;break}if(p)return c}return-1}a.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};a.prototype.indexOf=function(r,t,i){return sr(this,r,t,i,!0)};a.prototype.lastIndexOf=function(r,t,i){return sr(this,r,t,i,!1)};function Qr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var u=r.length;i>u/2&&(i=u/2);for(var o=0;o<i;++o){var h=parseInt(r.substr(o*2,2),16);if(P(h))return o;e[t+o]=h}return o}function Or(e,r,t,i){return V(O(r,e.length-t),e,t,i)}function Zr(e,r,t,i){return V(at(r),e,t,i)}function $r(e,r,t,i){return V(Er(r),e,t,i)}function Pr(e,r,t,i){return V(ht(r,e.length-t),e,t,i)}a.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var u=this.length-t;if((i===void 0||i>u)&&(i=u),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Qr(this,r,t,i);case"utf8":case"utf-8":return Or(this,r,t,i);case"ascii":case"latin1":case"binary":return Zr(this,r,t,i);case"base64":return $r(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,r,t,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jr(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function wr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var u=e[n],o=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=t){var f,c,l,p;switch(h){case 1:u<128&&(o=u);break;case 2:f=e[n+1],(f&192)===128&&(p=(u&31)<<6|f&63,p>127&&(o=p));break;case 3:f=e[n+1],c=e[n+2],(f&192)===128&&(c&192)===128&&(p=(u&15)<<12|(f&63)<<6|c&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:f=e[n+1],c=e[n+2],l=e[n+3],(f&192)===128&&(c&192)===128&&(l&192)===128&&(p=(u&15)<<18|(f&63)<<12|(c&63)<<6|l&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,h=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=h}return rt(i)}var fr=4096;function rt(e){var r=e.length;if(r<=fr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=fr));return t}function tt(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function et(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function it(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",u=r;u<t;++u)n+=ft[e[u]];return n}function nt(e,r,t){for(var i=e.slice(r,t),n="",u=0;u<i.length-1;u+=2)n+=String.fromCharCode(i[u]+i[u+1]*256);return n}a.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,a.prototype),n};function w(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return n};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r+--t],u=1;t>0&&(u*=256);)n+=this[r+--t]*u;return n};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=this[r],u=1,o=0;++o<t&&(u*=256);)n+=this[r+o]*u;return u*=128,n>=u&&(n-=Math.pow(2,8*t)),n};a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||w(r,t,this.length);for(var n=t,u=1,o=this[r+--n];n>0&&(u*=256);)o+=this[r+--n]*u;return u*=128,o>=u&&(o-=Math.pow(2,8*t)),o};a.prototype.readInt8=function(r,t){return r=r>>>0,t||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||w(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||w(r,4,this.length),R.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||w(r,8,this.length),R.read(this,r,!1,52,8)};function y(e,r,t,i,n,u){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<u)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=1,h=0;for(this[t]=r&255;++h<i&&(o*=256);)this[t+h]=r/o&255;return t+i};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var u=Math.pow(2,8*i)-1;y(this,r,t,i,u,0)}var o=i-1,h=1;for(this[t+o]=r&255;--o>=0&&(h*=256);)this[t+o]=r/h&255;return t+i};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};a.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=0,h=1,f=0;for(this[t]=r&255;++o<i&&(h*=256);)r<0&&f===0&&this[t+o-1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var u=Math.pow(2,8*i-1);y(this,r,t,i,u-1,-u)}var o=i-1,h=1,f=0;for(this[t+o]=r&255;--o>=0&&(h*=256);)r<0&&f===0&&this[t+o+1]!==0&&(f=1),this[t+o]=(r/h>>0)-f&255;return t+i};a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||y(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function yr(e,r,t,i,n,u){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function xr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,4,34028234663852886e22,-34028234663852886e22),R.write(e,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return xr(this,r,t,!0,i)};a.prototype.writeFloatBE=function(r,t,i){return xr(this,r,t,!1,i)};function mr(e,r,t,i,n){return r=+r,t=t>>>0,n||yr(e,r,t,8,17976931348623157e292,-17976931348623157e292),R.write(e,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return mr(this,r,t,!0,i)};a.prototype.writeDoubleBE=function(r,t,i){return mr(this,r,t,!1,i)};a.prototype.copy=function(r,t,i,n){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var u=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),u};a.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var u=r.charCodeAt(0);(n==="utf8"&&u<128||n==="latin1")&&(r=u)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var o;if(typeof r=="number")for(o=t;o<i;++o)this[o]=r;else{var h=a.isBuffer(r)?r:a.from(r,n),f=h.length;if(f===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<i-t;++o)this[o+t]=h[o%f]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function ot(e){if(e=e.split("=")[0],e=e.trim().replace(ut,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function O(e,r){r=r||1/0;for(var t,i=e.length,n=null,u=[],o=0;o<i;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(o+1===i){(r-=3)>-1&&u.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&u.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function at(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ht(e,r){for(var t,i,n,u=[],o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),i=t>>8,n=t%256,u.push(n),u.push(i);return u}function Er(e){return z.toByteArray(ot(e))}function V(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function B(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function P(e){return e!==e}var ft=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Ur=W((Et,vr)=>{F();var s=vr.exports={},A,v;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=j}catch(e){A=j}try{typeof clearTimeout=="function"?v=clearTimeout:v=rr}catch(e){v=rr}})();function gr(e){if(A===setTimeout)return setTimeout(e,0);if((A===j||!A)&&setTimeout)return A=setTimeout,setTimeout(e,0);try{return A(e,0)}catch(r){try{return A.call(null,e,0)}catch(t){return A.call(this,e,0)}}}function pt(e){if(v===clearTimeout)return clearTimeout(e);if((v===rr||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch(r){try{return v.call(null,e)}catch(t){return v.call(this,e)}}}var T=[],M=!1,L,X=-1;function ct(){!M||!L||(M=!1,L.length?T=L.concat(T):X=-1,T.length&&Br())}function Br(){if(!M){var e=gr(ct);M=!0;for(var r=T.length;r;){for(L=T,T=[];++X<r;)L&&L[X].run();X=-1,r=T.length}L=null,M=!1,pt(e)}}s.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Ar(e,r)),T.length===1&&!M&&gr(Br)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function I(){}s.on=I;s.addListener=I;s.once=I;s.off=I;s.removeListener=I;s.removeAllListeners=I;s.emit=I;s.prependListener=I;s.prependOnceListener=I;s.listeners=function(e){return[]};s.binding=function(e){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(e){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var D,b,Ft,F=Rr(()=>{D=er(Fr()),b=er(Ur()),Ft=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var st={};_r(st,{getVerifier:()=>lt});module.exports=Mr(st);F();var k=require("@multiversx/sdk-core"),lt=e=>{let r=new k.UserPublicKey(new k.Address(e).pubkey());return new k.UserVerifier(r)};0&&(module.exports={getVerifier});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *