@multiversx/sdk-dapp 2.9.4 → 2.10.0

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 (830) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/Denominate/index.js +1 -1
  5. package/UI/ExplorerLink/ExplorerLink.js +1 -1
  6. package/UI/ExplorerLink/index.js +1 -1
  7. package/UI/FormatAmount/FormatAmount.js +1 -1
  8. package/UI/FormatAmount/index.js +1 -1
  9. package/UI/ModalContainer/ModalContainer.js +1 -1
  10. package/UI/ModalContainer/index.js +1 -1
  11. package/UI/NotificationModal/index.js +1 -1
  12. package/UI/ScamPhishingAlert/ScamPhishingAlert.d.ts +6 -0
  13. package/UI/ScamPhishingAlert/ScamPhishingAlert.js +1 -1
  14. package/UI/ScamPhishingAlert/index.js +1 -1
  15. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  23. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  24. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  25. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  26. package/UI/SignTransactionsModals/components/index.js +1 -1
  27. package/UI/SignTransactionsModals/index.js +1 -1
  28. package/UI/TokenDetails/index.js +1 -1
  29. package/UI/TransactionData/index.js +1 -1
  30. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  31. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  32. package/UI/TransactionDetails/components/index.js +1 -1
  33. package/UI/TransactionDetails/index.js +1 -1
  34. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  35. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  36. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  37. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  38. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  39. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  40. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  41. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  42. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  43. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  44. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  45. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  46. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  47. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  48. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  49. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  50. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  51. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  52. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  53. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  54. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  55. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  56. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  57. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  58. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  59. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  60. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  61. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  62. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  63. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  64. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  65. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  66. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  67. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  68. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  69. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  70. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  71. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  72. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  73. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  74. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  75. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  76. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  77. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  78. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  79. package/UI/TransactionInfo/components/index.js +1 -1
  80. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  81. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  82. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  83. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  84. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  85. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  86. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  87. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  88. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  89. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  90. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  91. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  92. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  93. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  94. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  95. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  96. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  97. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  98. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  99. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  100. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  101. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  102. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  103. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  104. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  105. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  106. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  107. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  108. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  109. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  110. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  111. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  112. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  113. package/UI/TransactionInfo/index.js +1 -1
  114. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  115. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  116. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  117. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  118. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  119. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  120. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  121. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  122. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  123. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  124. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  125. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  126. package/UI/TransactionsTable/components/index.js +1 -1
  127. package/UI/TransactionsTable/index.js +1 -1
  128. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  129. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  130. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  131. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  132. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  133. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  134. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  135. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  136. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  137. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  138. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  139. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  140. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  141. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  142. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  143. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  144. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  145. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  146. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  147. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  148. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  149. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  150. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  151. package/UI/TransactionsToastList/components/index.js +1 -1
  152. package/UI/TransactionsToastList/index.js +1 -1
  153. package/UI/UsdValue/UsdValue.js +1 -1
  154. package/UI/UsdValue/index.js +1 -1
  155. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  156. package/UI/index.js +1 -1
  157. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  158. package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
  159. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  160. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  161. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  162. package/UI/ledger/index.js +1 -1
  163. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  164. package/UI/pages/UnlockPage/index.js +1 -1
  165. package/UI/pages/index.js +1 -1
  166. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  167. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  168. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  169. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  170. package/UI/walletConnect/index.js +1 -1
  171. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  172. package/__chunks__/chunk-24L47LFC.js +2 -0
  173. package/__chunks__/chunk-24NXBISC.js +2 -0
  174. package/__chunks__/{chunk-CKON224P.js → chunk-275ET3MG.js} +2 -2
  175. package/__chunks__/chunk-27FOVSG4.js +2 -0
  176. package/__chunks__/{chunk-DJE62XNL.js → chunk-2AUVCAY2.js} +2 -2
  177. package/__chunks__/{chunk-ZJLU56XW.js → chunk-2C4D4BXB.js} +2 -2
  178. package/__chunks__/{chunk-MUARPNJ4.js → chunk-2F2F6SXB.js} +2 -2
  179. package/__chunks__/{chunk-6D3XECJF.js → chunk-2GRUAWVQ.js} +2 -2
  180. package/__chunks__/{chunk-OGM64QGG.js → chunk-2OGSUSTF.js} +2 -2
  181. package/__chunks__/{chunk-YMALAD3K.js → chunk-2VZDXZQ5.js} +2 -2
  182. package/__chunks__/{chunk-QNBNTXIT.js → chunk-2W2FXPJN.js} +2 -2
  183. package/__chunks__/{chunk-KJDC7FVK.js → chunk-33RUZW2A.js} +2 -2
  184. package/__chunks__/{chunk-LT2FAIWS.js → chunk-3FTRTVML.js} +2 -2
  185. package/__chunks__/{chunk-TXKLIAKR.js → chunk-3JKM5GE5.js} +2 -2
  186. package/__chunks__/{chunk-OYESXIST.js → chunk-3LZDI5TU.js} +2 -2
  187. package/__chunks__/{chunk-4BNSTWCX.js → chunk-3M4SIGZT.js} +2 -2
  188. package/__chunks__/{chunk-JZ2Y7SFA.js → chunk-3Z3XQSPU.js} +2 -2
  189. package/__chunks__/{chunk-R7JGMLFZ.js → chunk-45AZIANS.js} +2 -2
  190. package/__chunks__/{chunk-YZSCV3FW.js → chunk-463NLZJE.js} +2 -2
  191. package/__chunks__/{chunk-HLEXPOK5.js → chunk-4BE3NFUD.js} +2 -2
  192. package/__chunks__/chunk-4JUSV4O3.js +2 -0
  193. package/__chunks__/{chunk-BYYVJIPP.js → chunk-4NK74AZF.js} +2 -2
  194. package/__chunks__/{chunk-MSXSTSBP.js → chunk-4PBGN6HU.js} +2 -2
  195. package/__chunks__/{chunk-7XL5MCJK.js → chunk-4QT63WFQ.js} +2 -2
  196. package/__chunks__/{chunk-ZGQSC36F.js → chunk-4QVOURVU.js} +2 -2
  197. package/__chunks__/{chunk-BBQMKL5D.js → chunk-4XDCRJFT.js} +2 -2
  198. package/__chunks__/{chunk-4AOEMKED.js → chunk-5DATHNGR.js} +2 -2
  199. package/__chunks__/chunk-5HEC3YLM.js +2 -0
  200. package/__chunks__/{chunk-BAG2O7IE.js → chunk-5KGYQ5YJ.js} +2 -2
  201. package/__chunks__/{chunk-5CTSV7TH.js → chunk-5LVOAS3B.js} +2 -2
  202. package/__chunks__/{chunk-NHNWAEZU.js → chunk-5MYSV4SO.js} +2 -2
  203. package/__chunks__/{chunk-ESYXEFZ7.js → chunk-5OLXKR6C.js} +2 -2
  204. package/__chunks__/{chunk-H2H3IXYD.js → chunk-5RTST5UL.js} +2 -2
  205. package/__chunks__/{chunk-PYG3OL3F.js → chunk-5VRKUYL5.js} +2 -2
  206. package/__chunks__/{chunk-5MRTWQBG.js → chunk-5ZMUR7H7.js} +2 -2
  207. package/__chunks__/{chunk-DQ2DOR6B.js → chunk-64FKZVXB.js} +2 -2
  208. package/__chunks__/{chunk-AMM27AEW.js → chunk-6D35ISCH.js} +2 -2
  209. package/__chunks__/{chunk-PHI6WXH3.js → chunk-6DXP6E4O.js} +2 -2
  210. package/__chunks__/{chunk-7EY74WNI.js → chunk-6GTXZ4FY.js} +2 -2
  211. package/__chunks__/{chunk-GFGHEH4C.js → chunk-6HLEIPL4.js} +2 -2
  212. package/__chunks__/chunk-6LYP3E7T.js +2 -0
  213. package/__chunks__/{chunk-J5EWZ734.js → chunk-6MI5GXXO.js} +2 -2
  214. package/__chunks__/chunk-6PH5XEI7.js +2 -0
  215. package/__chunks__/{chunk-OT2NVXBU.js → chunk-6QEOI4LP.js} +2 -2
  216. package/__chunks__/{chunk-D2O5MZMR.js → chunk-6QYMQVME.js} +2 -2
  217. package/__chunks__/{chunk-JJP72MAJ.js → chunk-6RHGIGMZ.js} +2 -2
  218. package/__chunks__/{chunk-ZLERNDUF.js → chunk-6ROKDWR7.js} +2 -2
  219. package/__chunks__/{chunk-VEAORVA6.js → chunk-74Q5MYVW.js} +2 -2
  220. package/__chunks__/chunk-7AEDPEBX.js +2 -0
  221. package/__chunks__/{chunk-JS2HC4SX.js → chunk-7WE7OBCZ.js} +2 -2
  222. package/__chunks__/{chunk-SA2UKCJX.js → chunk-7YH5VZS2.js} +2 -2
  223. package/__chunks__/{chunk-KMDMJSTX.js → chunk-A3XBAFZH.js} +2 -2
  224. package/__chunks__/chunk-AE66JOMW.js +2 -0
  225. package/__chunks__/{chunk-JI2RQZZD.js → chunk-AIL4PBA7.js} +2 -2
  226. package/__chunks__/chunk-AL2J7KB6.js +2 -0
  227. package/__chunks__/{chunk-5ZW4DA22.js → chunk-AQ3UNMCA.js} +2 -2
  228. package/__chunks__/chunk-AVGHJOI6.js +2 -0
  229. package/__chunks__/{chunk-UMK6DGBB.js → chunk-AWEYI553.js} +2 -2
  230. package/__chunks__/{chunk-M5D23LEL.js → chunk-B3M2FLWF.js} +2 -2
  231. package/__chunks__/{chunk-WUZCRVSU.js → chunk-B4WCXVUI.js} +2 -2
  232. package/__chunks__/{chunk-U63TNTLR.js → chunk-B7U7C44X.js} +2 -2
  233. package/__chunks__/{chunk-ALN2ZAQY.js → chunk-BGHY6J4G.js} +2 -2
  234. package/__chunks__/{chunk-4B4D6PRI.js → chunk-BHXTZPBC.js} +2 -2
  235. package/__chunks__/{chunk-XXJ64HPL.js → chunk-BK5NO33M.js} +2 -2
  236. package/__chunks__/{chunk-L2UUUYJG.js → chunk-BMHV4H76.js} +2 -2
  237. package/__chunks__/{chunk-Z2ZEUHYK.js → chunk-BTPDVQON.js} +2 -2
  238. package/__chunks__/{chunk-V6H2IJKH.js → chunk-BUPVEQ5J.js} +2 -2
  239. package/__chunks__/chunk-C2H5OPTX.js +2 -0
  240. package/__chunks__/{chunk-VMNKME5Q.js → chunk-C34CKSUX.js} +2 -2
  241. package/__chunks__/chunk-C4MQO6LF.js +2 -0
  242. package/__chunks__/{chunk-DUPCI6XE.js → chunk-C5CGNL6I.js} +2 -2
  243. package/__chunks__/{chunk-N6WFQG55.js → chunk-C6XUZNBO.js} +2 -2
  244. package/__chunks__/{chunk-RGS2R63F.js → chunk-CA4Q4MT7.js} +2 -2
  245. package/__chunks__/{chunk-XWRW4TO4.js → chunk-CFRQE7JG.js} +2 -2
  246. package/__chunks__/{chunk-VNODUVFK.js → chunk-CGM7WOQF.js} +2 -2
  247. package/__chunks__/{chunk-KTUPMIFX.js → chunk-CLB447PY.js} +2 -2
  248. package/__chunks__/{chunk-KYEQ3HY7.js → chunk-CLY5MAPE.js} +2 -2
  249. package/__chunks__/{chunk-RUDUNU34.js → chunk-CNPDPX2F.js} +2 -2
  250. package/__chunks__/{chunk-TGRX3YCF.js → chunk-CQGYS7PC.js} +2 -2
  251. package/__chunks__/{chunk-WQ22KG5Y.js → chunk-CZJRRY2I.js} +2 -2
  252. package/__chunks__/{chunk-24SJCJRG.js → chunk-D2DOX7XX.js} +2 -2
  253. package/__chunks__/{chunk-7JLRHOSP.js → chunk-DHHFPYRR.js} +2 -2
  254. package/__chunks__/{chunk-WVNUK67H.js → chunk-DI67V6VC.js} +2 -2
  255. package/__chunks__/{chunk-VOLUHLVM.js → chunk-DNIYPVUV.js} +2 -2
  256. package/__chunks__/chunk-DNOXON3M.js +2 -0
  257. package/__chunks__/chunk-DSFJO624.js +2 -0
  258. package/__chunks__/{chunk-5EGPVDYI.js → chunk-DVOTPSUB.js} +2 -2
  259. package/__chunks__/chunk-DY7CS3RG.js +2 -0
  260. package/__chunks__/{chunk-65KFD325.js → chunk-E2NBQFIC.js} +2 -2
  261. package/__chunks__/{chunk-RFVFASBJ.js → chunk-E5KECQYG.js} +2 -2
  262. package/__chunks__/{chunk-LGYW2J5J.js → chunk-E7ZJLCWM.js} +2 -2
  263. package/__chunks__/{chunk-LVOMPLSI.js → chunk-EAVICDCR.js} +2 -2
  264. package/__chunks__/chunk-EBEYQZIS.js +2 -0
  265. package/__chunks__/{chunk-RRXC3HFG.js → chunk-ECNBTR2P.js} +2 -2
  266. package/__chunks__/chunk-EHBEIKPT.js +2 -0
  267. package/__chunks__/{chunk-BN5PQAN2.js → chunk-ELJRZBUP.js} +2 -2
  268. package/__chunks__/{chunk-OPDO5T3P.js → chunk-ESY2WJZF.js} +2 -2
  269. package/__chunks__/{chunk-VGPEWMQW.js → chunk-EU3M2TPH.js} +2 -2
  270. package/__chunks__/{chunk-SPLIL3ZF.js → chunk-EVHHLVIO.js} +2 -2
  271. package/__chunks__/{chunk-7KR7Q4BZ.js → chunk-EVKVW6OP.js} +2 -2
  272. package/__chunks__/{chunk-EFQAZJYN.js → chunk-F4LPQWRK.js} +2 -2
  273. package/__chunks__/{chunk-JGZCNGRV.js → chunk-FDG3CTJQ.js} +2 -2
  274. package/__chunks__/{chunk-DXOQOQTD.js → chunk-FG7U2ZRB.js} +2 -2
  275. package/__chunks__/{chunk-5XELCN7M.js → chunk-FITCOASE.js} +2 -2
  276. package/__chunks__/chunk-FL42ANFT.js +2 -0
  277. package/__chunks__/chunk-FT6XZQFL.js +2 -0
  278. package/__chunks__/{chunk-52ECK57H.js → chunk-FUMYEVN5.js} +2 -2
  279. package/__chunks__/{chunk-PUO4W3JY.js → chunk-FWTCHRN5.js} +2 -2
  280. package/__chunks__/{chunk-LTDUS257.js → chunk-G5T5SM4B.js} +2 -2
  281. package/__chunks__/{chunk-72FDUWXP.js → chunk-GDEIDSQC.js} +2 -2
  282. package/__chunks__/chunk-GFAN5STZ.js +2 -0
  283. package/__chunks__/{chunk-35VZ6NCK.js → chunk-GHTSBIH4.js} +2 -2
  284. package/__chunks__/chunk-GKSVI6Q5.js +2 -0
  285. package/__chunks__/{chunk-6CORFLG2.js → chunk-GO7NXC6I.js} +2 -2
  286. package/__chunks__/{chunk-OPAGSP3Y.js → chunk-GPQOL7GB.js} +2 -2
  287. package/__chunks__/chunk-GQX2AXPF.js +2 -0
  288. package/__chunks__/{chunk-JP736RXG.js → chunk-GZ7UARPP.js} +2 -2
  289. package/__chunks__/{chunk-XJVQOJZB.js → chunk-H5VMN2B4.js} +2 -2
  290. package/__chunks__/{chunk-KLLXNFCE.js → chunk-HCBNUJGK.js} +2 -2
  291. package/__chunks__/{chunk-J3POMKPU.js → chunk-HCG2PO6Z.js} +2 -2
  292. package/__chunks__/{chunk-FZ3BVOID.js → chunk-HFD6SX7K.js} +2 -2
  293. package/__chunks__/{chunk-NHLZWMC2.js → chunk-HHL5UDTQ.js} +2 -2
  294. package/__chunks__/chunk-HHNOK5PG.js +2 -0
  295. package/__chunks__/{chunk-KFKU4K4H.js → chunk-HKO35JVE.js} +2 -2
  296. package/__chunks__/chunk-HYUP22HC.js +2 -0
  297. package/__chunks__/{chunk-LKJPV45E.js → chunk-I4VYIHJD.js} +2 -2
  298. package/__chunks__/{chunk-TGQUDIQS.js → chunk-I5VKTCVW.js} +2 -2
  299. package/__chunks__/{chunk-IMNJMWNY.js → chunk-ID3NTT4Z.js} +2 -2
  300. package/__chunks__/{chunk-MIUU5UXK.js → chunk-IFVVHVQM.js} +2 -2
  301. package/__chunks__/{chunk-VKLTH4PZ.js → chunk-IJIYT3QB.js} +2 -2
  302. package/__chunks__/chunk-IRBTPHUB.js +2 -0
  303. package/__chunks__/{chunk-FT2IN7BT.js → chunk-ITUIM5G6.js} +2 -2
  304. package/__chunks__/{chunk-5KK3CLWQ.js → chunk-IUSZYBUQ.js} +2 -2
  305. package/__chunks__/{chunk-CLAUUCCC.js → chunk-IWAB24AH.js} +2 -2
  306. package/__chunks__/{chunk-7S7LAS32.js → chunk-J32KR5O6.js} +2 -2
  307. package/__chunks__/{chunk-6LGKAMXK.js → chunk-J56U5IAV.js} +2 -2
  308. package/__chunks__/{chunk-5DV7AOX4.js → chunk-J7M5HUAD.js} +2 -2
  309. package/__chunks__/{chunk-JCMBU43R.js → chunk-JDCJAJD4.js} +2 -2
  310. package/__chunks__/{chunk-SRVNBVIN.js → chunk-JHQFA6YK.js} +2 -2
  311. package/__chunks__/{chunk-PNXAVAWX.js → chunk-JMCMYELN.js} +2 -2
  312. package/__chunks__/{chunk-QQS7BRLY.js → chunk-JNMLUSOK.js} +2 -2
  313. package/__chunks__/{chunk-HEQQ64B6.js → chunk-JPJTXA2G.js} +2 -2
  314. package/__chunks__/{chunk-PADNJI6W.js → chunk-JQYERTXG.js} +2 -2
  315. package/__chunks__/{chunk-32JTIMBG.js → chunk-JUURLCJI.js} +2 -2
  316. package/__chunks__/chunk-JVSYNX7I.js +2 -0
  317. package/__chunks__/{chunk-6IBZJR36.js → chunk-JY3HMAMR.js} +2 -2
  318. package/__chunks__/{chunk-46PCNA3N.js → chunk-JZNLILZQ.js} +2 -2
  319. package/__chunks__/{chunk-QN2Y4SM6.js → chunk-K7WZNW5X.js} +2 -2
  320. package/__chunks__/{chunk-YKNQQTMV.js → chunk-KN53GKZX.js} +2 -2
  321. package/__chunks__/{chunk-JR6NRUWF.js → chunk-KOQXMQSP.js} +2 -2
  322. package/__chunks__/{chunk-OJC5LON4.js → chunk-KV4BYCDF.js} +2 -2
  323. package/__chunks__/{chunk-TDYVMPIO.js → chunk-KWMPPLTR.js} +2 -2
  324. package/__chunks__/{chunk-TF77GIBC.js → chunk-LNOKECRH.js} +2 -2
  325. package/__chunks__/{chunk-CXMSIGN3.js → chunk-LTJVHYYW.js} +2 -2
  326. package/__chunks__/{chunk-EWWRMWGQ.js → chunk-LVWF5CKD.js} +2 -2
  327. package/__chunks__/chunk-LW7U3EUB.js +2 -0
  328. package/__chunks__/{chunk-R6OGIXW3.js → chunk-LWAL5OMN.js} +2 -2
  329. package/__chunks__/{chunk-TMUOMOCN.js → chunk-LYN37XH5.js} +2 -2
  330. package/__chunks__/{chunk-BPPVSU25.js → chunk-M233YJDK.js} +1 -1
  331. package/__chunks__/{chunk-CILXKB6B.js → chunk-M3DCFIB7.js} +2 -2
  332. package/__chunks__/{chunk-NUNUM2A2.js → chunk-M5BOIA6B.js} +2 -2
  333. package/__chunks__/chunk-M7T4AUBP.js +2 -0
  334. package/__chunks__/{chunk-QH27B2OC.js → chunk-MC7RXBF4.js} +2 -2
  335. package/__chunks__/{chunk-VLHTKYIW.js → chunk-ME4CQMKT.js} +2 -2
  336. package/__chunks__/chunk-MFT36UPJ.js +2 -0
  337. package/__chunks__/{chunk-CQVMLDWA.js → chunk-MM5XW7VA.js} +2 -2
  338. package/__chunks__/{chunk-Z4CVKFHQ.js → chunk-MTWKFHRA.js} +2 -2
  339. package/__chunks__/chunk-MX3CY6TB.js +2 -0
  340. package/__chunks__/{chunk-PBXY5VMX.js → chunk-MXMO5VOA.js} +2 -2
  341. package/__chunks__/{chunk-YTSEILVL.js → chunk-MY5N6ROI.js} +2 -2
  342. package/__chunks__/chunk-N5EEQD2P.js +2 -0
  343. package/__chunks__/{chunk-7FIOYGVQ.js → chunk-NA7BBONT.js} +2 -2
  344. package/__chunks__/{chunk-RLOOYBXD.js → chunk-NALUFJK4.js} +2 -2
  345. package/__chunks__/chunk-NHZC5PWW.js +2 -0
  346. package/__chunks__/{chunk-X7KSFJQK.js → chunk-NKWA6FJW.js} +2 -2
  347. package/__chunks__/{chunk-CVSHXU7I.js → chunk-NTPWI3LZ.js} +2 -2
  348. package/__chunks__/chunk-NUQWOH62.js +2 -0
  349. package/__chunks__/chunk-O76SO5NN.js +2 -0
  350. package/__chunks__/chunk-OBCFAKCR.js +2 -0
  351. package/__chunks__/chunk-OCH5X6XJ.js +2 -0
  352. package/__chunks__/{chunk-ZUXEYBK5.js → chunk-OCIFQ26I.js} +2 -2
  353. package/__chunks__/{chunk-LO3RIUS3.js → chunk-OGY2VJHG.js} +2 -2
  354. package/__chunks__/{chunk-NR5NGCMG.js → chunk-OJUAVBN4.js} +2 -2
  355. package/__chunks__/chunk-OKGLECMC.js +2 -0
  356. package/__chunks__/chunk-OLI3TNCJ.js +2 -0
  357. package/__chunks__/{chunk-HED7LZVU.js → chunk-OQ2YXDWR.js} +2 -2
  358. package/__chunks__/{chunk-YANNTW2Q.js → chunk-OQ3JVDP4.js} +2 -2
  359. package/__chunks__/{chunk-UORGIPVL.js → chunk-OQUCU64T.js} +2 -2
  360. package/__chunks__/{chunk-BACKWDOJ.js → chunk-ORCYEIJZ.js} +2 -2
  361. package/__chunks__/chunk-OT7R2NEQ.js +2 -0
  362. package/__chunks__/chunk-OZBDF76V.js +2 -0
  363. package/__chunks__/{chunk-PDWYQFPS.js → chunk-P24VSIZF.js} +2 -2
  364. package/__chunks__/{chunk-W4GZJ24H.js → chunk-P2KRF4TX.js} +2 -2
  365. package/__chunks__/{chunk-TLCTBY2K.js → chunk-P4ZLCGAX.js} +2 -2
  366. package/__chunks__/chunk-PLVN6R4K.js +2 -0
  367. package/__chunks__/{chunk-CSSOPAY3.js → chunk-PRBT2JHG.js} +2 -2
  368. package/__chunks__/chunk-PV4P32HG.js +2 -0
  369. package/__chunks__/{chunk-QB77NCQP.js → chunk-PXLDGKC4.js} +2 -2
  370. package/__chunks__/{chunk-KBFFGMRC.js → chunk-PYNDT3DJ.js} +2 -2
  371. package/__chunks__/{chunk-CWCTVSSE.js → chunk-Q7HPUVKJ.js} +2 -2
  372. package/__chunks__/{chunk-UY7WU4RX.js → chunk-QE6MZGN5.js} +2 -2
  373. package/__chunks__/{chunk-ZGUGCPPH.js → chunk-QFLGG2EQ.js} +2 -2
  374. package/__chunks__/{chunk-D5K7WBRB.js → chunk-QGZR4AIT.js} +2 -2
  375. package/__chunks__/{chunk-O3DTNAEY.js → chunk-QSHIJADJ.js} +2 -2
  376. package/__chunks__/{chunk-RCHL72K4.js → chunk-QWWOCHOY.js} +2 -2
  377. package/__chunks__/{chunk-G2OLVYAC.js → chunk-QWZX4YJN.js} +2 -2
  378. package/__chunks__/{chunk-CEU34V6N.js → chunk-R2TDBDEX.js} +2 -2
  379. package/__chunks__/{chunk-3F3GOL42.js → chunk-R5AZ5VME.js} +2 -2
  380. package/__chunks__/chunk-RF7HMR74.js +2 -0
  381. package/__chunks__/{chunk-GBAACFEX.js → chunk-RYJFVB3O.js} +2 -2
  382. package/__chunks__/{chunk-FQ72GI3P.js → chunk-SF4HPDHQ.js} +2 -2
  383. package/__chunks__/{chunk-K5EF6Y3F.js → chunk-SHWQX35Z.js} +2 -2
  384. package/__chunks__/{chunk-EEI35GZT.js → chunk-SK3C6ZOZ.js} +2 -2
  385. package/__chunks__/{chunk-3M4QTTV7.js → chunk-SMYUEECP.js} +2 -2
  386. package/__chunks__/{chunk-S75EYWKY.js → chunk-SP5SBX3P.js} +2 -2
  387. package/__chunks__/{chunk-XX2BDOLP.js → chunk-SPD45ZEH.js} +2 -2
  388. package/__chunks__/{chunk-N4WBG64L.js → chunk-SQDL2UBG.js} +2 -2
  389. package/__chunks__/chunk-SW27GSXL.js +2 -0
  390. package/__chunks__/{chunk-THATLRXI.js → chunk-TKGUBRTO.js} +2 -2
  391. package/__chunks__/{chunk-ONX2WKS4.js → chunk-TMIKWYU6.js} +2 -2
  392. package/__chunks__/chunk-TQPEOA25.js +2 -0
  393. package/__chunks__/{chunk-NQVKUO5J.js → chunk-TR2J6DEL.js} +2 -2
  394. package/__chunks__/{chunk-PKNLHLMK.js → chunk-TU5N4L3F.js} +2 -2
  395. package/__chunks__/{chunk-FKIKFBN6.js → chunk-TWBQ7KS3.js} +2 -2
  396. package/__chunks__/{chunk-CV6LTYEN.js → chunk-UB4DU6IY.js} +2 -2
  397. package/__chunks__/{chunk-ZUBYGCI6.js → chunk-UGG4ZVT7.js} +2 -2
  398. package/__chunks__/{chunk-HUHBWTGV.js → chunk-UHNAW66J.js} +2 -2
  399. package/__chunks__/{chunk-W4BJGGSU.js → chunk-UIMOFTYA.js} +2 -2
  400. package/__chunks__/{chunk-VP5L3R3J.js → chunk-UJNUZKVY.js} +2 -2
  401. package/__chunks__/{chunk-WL5XAOJQ.js → chunk-UNC4ZPZ7.js} +2 -2
  402. package/__chunks__/{chunk-QXVU5FGO.js → chunk-USGR36BQ.js} +2 -2
  403. package/__chunks__/{chunk-SNGAFUP6.js → chunk-UV3BQKFK.js} +2 -2
  404. package/__chunks__/{chunk-HKOVN6MG.js → chunk-V3X7UG2C.js} +2 -2
  405. package/__chunks__/{chunk-COUZONBL.js → chunk-V5QSDNY3.js} +2 -2
  406. package/__chunks__/{chunk-XMM4AD2U.js → chunk-V7ACSO4O.js} +2 -2
  407. package/__chunks__/chunk-VMD67BF6.js +2 -0
  408. package/__chunks__/{chunk-JJ5TU65J.js → chunk-VXWN2IY4.js} +2 -2
  409. package/__chunks__/{chunk-KXYOZZWH.js → chunk-WA5XP3EV.js} +2 -2
  410. package/__chunks__/{chunk-QMFN5L42.js → chunk-WEA4C5X7.js} +2 -2
  411. package/__chunks__/{chunk-IINAI2T7.js → chunk-WFMSTO6P.js} +2 -2
  412. package/__chunks__/{chunk-4UQWT5ZQ.js → chunk-WHJDOGU7.js} +2 -2
  413. package/__chunks__/{chunk-YNWHJAAC.js → chunk-WJF3CIOE.js} +2 -2
  414. package/__chunks__/{chunk-7ATRC2HC.js → chunk-WNSPURWS.js} +2 -2
  415. package/__chunks__/{chunk-GDDIVHLD.js → chunk-WOHL234A.js} +2 -2
  416. package/__chunks__/chunk-WQV4NSZG.js +2 -0
  417. package/__chunks__/{chunk-AUMJWTVL.js → chunk-WRO6THDA.js} +2 -2
  418. package/__chunks__/chunk-WTMHDI3F.js +2 -0
  419. package/__chunks__/{chunk-7VAMMQBW.js → chunk-WXYQ5GK4.js} +2 -2
  420. package/__chunks__/{chunk-FULWXGZA.js → chunk-X2VKBIHG.js} +2 -2
  421. package/__chunks__/{chunk-LPOKARPF.js → chunk-XCEK2L6C.js} +2 -2
  422. package/__chunks__/{chunk-G5FPMOKK.js → chunk-XHD63UMY.js} +2 -2
  423. package/__chunks__/{chunk-BJLACGZ2.js → chunk-XKG6MJJF.js} +2 -2
  424. package/__chunks__/{chunk-GZH3R2XH.js → chunk-XRI4KXUU.js} +2 -2
  425. package/__chunks__/{chunk-65PTUMFW.js → chunk-XW22FF2X.js} +2 -2
  426. package/__chunks__/{chunk-N5TBTK3M.js → chunk-XWZAWT7G.js} +2 -2
  427. package/__chunks__/{chunk-QX22NYVR.js → chunk-Y3NLPZAR.js} +2 -2
  428. package/__chunks__/{chunk-RULY5VOQ.js → chunk-YB4BVMRP.js} +2 -2
  429. package/__chunks__/{chunk-C5LKGARX.js → chunk-YPXBAXJG.js} +2 -2
  430. package/__chunks__/{chunk-JSOZJSKF.js → chunk-YRXFSVU4.js} +2 -2
  431. package/__chunks__/chunk-YSQKUC2C.js +2 -0
  432. package/__chunks__/{chunk-RQJTGIXR.js → chunk-YT6MEERZ.js} +2 -2
  433. package/__chunks__/{chunk-RHJRKQLW.js → chunk-YUW6HFTC.js} +2 -2
  434. package/__chunks__/{chunk-JH6JZ4CB.js → chunk-YZLRTQIA.js} +2 -2
  435. package/__chunks__/{chunk-TKL5MHDO.js → chunk-Z2W42GR6.js} +2 -2
  436. package/__chunks__/{chunk-2L5WU6KF.js → chunk-Z5HOLA7Z.js} +2 -2
  437. package/__chunks__/{chunk-GVQUOFTI.js → chunk-ZEN5RLW4.js} +2 -2
  438. package/__chunks__/{chunk-7YQ54JUZ.js → chunk-ZERBKBEF.js} +2 -2
  439. package/__chunks__/{chunk-BOW2EG2N.js → chunk-ZFOGJLJ6.js} +2 -2
  440. package/__chunks__/{chunk-HWHFIUZU.js → chunk-ZJ6WAYTZ.js} +2 -2
  441. package/__chunks__/{chunk-RVISUG5T.js → chunk-ZXAUVMQ6.js} +2 -2
  442. package/__chunks__/{chunk-GSMMBXTD.js → chunk-ZYBZKJ66.js} +2 -2
  443. package/__chunks__/{chunk-NL2BF2BK.js → chunk-ZYXYZADX.js} +2 -2
  444. package/__chunks__/{chunk-5RYOEKY5.js → chunk-ZZ4XEJL7.js} +2 -2
  445. package/__commonjs/UI/DappModal/hooks/index.js +1 -1
  446. package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
  447. package/__commonjs/UI/DappModal/index.js +1 -1
  448. package/__commonjs/UI/ModalContainer/ModalContainer.js +1 -1
  449. package/__commonjs/UI/ModalContainer/index.js +1 -1
  450. package/__commonjs/UI/NotificationModal/index.js +1 -1
  451. package/__commonjs/UI/ScamPhishingAlert/ScamPhishingAlert.js +2 -2
  452. package/__commonjs/UI/ScamPhishingAlert/index.js +2 -2
  453. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
  454. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  455. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  456. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  457. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  458. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  459. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +4 -4
  460. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  461. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  462. package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
  463. package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
  464. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +1 -1
  465. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  466. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  467. package/__commonjs/UI/TransactionInfo/components/index.js +1 -1
  468. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  469. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  470. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  471. package/__commonjs/UI/TransactionInfo/index.js +1 -1
  472. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +1 -1
  473. package/__commonjs/UI/TransactionsTable/index.js +1 -1
  474. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  475. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +8 -8
  476. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +2 -2
  477. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +8 -8
  478. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  479. package/__commonjs/UI/TransactionsToastList/components/index.js +1 -1
  480. package/__commonjs/UI/TransactionsToastList/index.js +1 -1
  481. package/__commonjs/UI/extension/ExtensionLoginButton/index.js +1 -1
  482. package/__commonjs/UI/index.js +69 -69
  483. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +15 -15
  484. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  485. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +14 -14
  486. package/__commonjs/UI/ledger/index.js +15 -15
  487. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  488. package/__commonjs/UI/pages/UnlockPage/index.js +18 -18
  489. package/__commonjs/UI/pages/index.js +18 -18
  490. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +7 -7
  491. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +6 -6
  492. package/__commonjs/UI/walletConnect/index.js +7 -7
  493. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  494. package/__commonjs/__mocks__/index.js +1 -1
  495. package/__commonjs/__mocks__/server.js +1 -1
  496. package/__commonjs/__mocks__/utils/index.js +1 -1
  497. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  498. package/__commonjs/components/LogoutListener/LogoutListener.js +1 -1
  499. package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
  500. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  501. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  502. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  503. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  504. package/__commonjs/components/LogoutListener/index.js +1 -1
  505. package/__commonjs/components/ProviderInitializer.js +1 -1
  506. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +1 -1
  507. package/__commonjs/components/TransactionsTracker/index.js +1 -1
  508. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  509. package/__commonjs/hooks/index.js +1 -1
  510. package/__commonjs/hooks/login/index.js +1 -1
  511. package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
  512. package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
  513. package/__commonjs/hooks/login/useLoginService.js +1 -1
  514. package/__commonjs/hooks/login/useOperaLogin.js +1 -1
  515. package/__commonjs/hooks/login/useWalletConnectLogin.js +1 -1
  516. package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
  517. package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
  518. package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
  519. package/__commonjs/hooks/signMessage/index.js +1 -1
  520. package/__commonjs/hooks/signMessage/{useVerifyMessage.js → verifyMessage.js} +2 -2
  521. package/__commonjs/hooks/transactions/index.js +1 -1
  522. package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
  523. package/__commonjs/providers/webviewProvider/index.js +1 -1
  524. package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
  525. package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
  526. package/__commonjs/reduxStore/commonActions.js +1 -1
  527. package/__commonjs/reduxStore/persistedRootReducer.js +1 -1
  528. package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
  529. package/__commonjs/services/index.js +1 -1
  530. package/__commonjs/services/nativeAuth/helpers/decodeNativeAuthToken.js +1 -1
  531. package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
  532. package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  533. package/__commonjs/services/nativeAuth/index.js +1 -1
  534. package/__commonjs/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
  535. package/__commonjs/services/nativeAuth/methods/getTokenExpiration.js +1 -1
  536. package/__commonjs/services/nativeAuth/methods/index.js +1 -1
  537. package/__commonjs/services/nativeAuth/nativeAuth.js +1 -1
  538. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  539. package/__commonjs/wrappers/DappProvider/CustomComponents.js +1 -1
  540. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  541. package/__commonjs/wrappers/index.js +1 -1
  542. package/__mocks__/accountConfig.js +1 -1
  543. package/__mocks__/index.js +1 -1
  544. package/__mocks__/server.js +1 -1
  545. package/__mocks__/utils/index.js +1 -1
  546. package/__mocks__/utils/renderWithProvider.js +1 -1
  547. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  548. package/apiCalls/accounts/index.js +1 -1
  549. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  550. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  551. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  552. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  553. package/apiCalls/configuration/index.js +1 -1
  554. package/apiCalls/getScamAddressData.js +1 -1
  555. package/apiCalls/index.js +1 -1
  556. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  557. package/apiCalls/transactions/index.js +1 -1
  558. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  559. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  560. package/apiCalls/utils/index.js +1 -1
  561. package/components/LogoutListener/LogoutListener.js +1 -1
  562. package/components/LogoutListener/helpers/index.js +1 -1
  563. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  564. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  565. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  566. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  567. package/components/LogoutListener/index.js +1 -1
  568. package/components/ProviderInitializer.js +1 -1
  569. package/components/TransactionSender/TransactionSender.js +1 -1
  570. package/components/TransactionSender/index.js +1 -1
  571. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  572. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  573. package/components/TransactionsTracker/index.js +1 -1
  574. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  575. package/constants/index.js +1 -1
  576. package/constants/network.js +1 -1
  577. package/hooks/account/index.js +1 -1
  578. package/hooks/account/useGetAccount.js +1 -1
  579. package/hooks/account/useGetAccountInfo.js +1 -1
  580. package/hooks/account/useGetAccountProvider.js +1 -1
  581. package/hooks/account/useGetIsLoggedIn.js +1 -1
  582. package/hooks/account/useGetLoginInfo.js +1 -1
  583. package/hooks/account/useGetWebsocketEvent.js +1 -1
  584. package/hooks/index.js +1 -1
  585. package/hooks/login/index.js +1 -1
  586. package/hooks/login/useExtensionLogin.js +1 -1
  587. package/hooks/login/useLedgerLogin.js +1 -1
  588. package/hooks/login/useLoginService.d.ts +1 -1
  589. package/hooks/login/useLoginService.js +1 -1
  590. package/hooks/login/useOperaLogin.js +1 -1
  591. package/hooks/login/useWalletConnectLogin.js +1 -1
  592. package/hooks/login/useWalletConnectV2Login.js +1 -1
  593. package/hooks/login/useWebViewLogin.js +1 -1
  594. package/hooks/login/useWebWalletLogin.js +1 -1
  595. package/hooks/signMessage/index.d.ts +1 -1
  596. package/hooks/signMessage/index.js +1 -1
  597. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  598. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  599. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  600. package/hooks/signMessage/useSignMessage.js +1 -1
  601. package/hooks/signMessage/verifyMessage.d.ts +6 -0
  602. package/hooks/signMessage/verifyMessage.js +2 -0
  603. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  604. package/hooks/transactions/helpers/index.js +1 -1
  605. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  606. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  607. package/hooks/transactions/index.js +1 -1
  608. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  609. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  610. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  611. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  612. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  613. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  614. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  615. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  616. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  617. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  618. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  619. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  620. package/hooks/transactions/useGetTokenDetails.js +1 -1
  621. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  622. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  623. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  624. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  625. package/hooks/transactions/useSignTransactions.js +1 -1
  626. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  627. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  628. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  629. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  630. package/hooks/useGetNetworkConfig.js +1 -1
  631. package/hooks/useGetNotification.js +1 -1
  632. package/hooks/userInterface/index.js +1 -1
  633. package/hooks/userInterface/useIsDappModalVisible.js +1 -1
  634. package/hooks/websocketListener/index.js +1 -1
  635. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  636. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  637. package/models/index.js +1 -1
  638. package/models/newTransaction.js +1 -1
  639. package/package.json +2 -2
  640. package/providers/accountProvider.js +1 -1
  641. package/providers/index.js +1 -1
  642. package/providers/utils.js +1 -1
  643. package/providers/webviewProvider/index.js +1 -1
  644. package/providers/webviewProvider/requestMethods.js +1 -1
  645. package/providers/webviewProvider/webviewProvider.js +1 -1
  646. package/reduxStore/DappProviderContext.js +1 -1
  647. package/reduxStore/commonActions.js +1 -1
  648. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  649. package/reduxStore/persistConfig.js +1 -1
  650. package/reduxStore/persistedRootReducer.js +1 -1
  651. package/reduxStore/reducers.js +1 -1
  652. package/reduxStore/rootReducer.js +1 -1
  653. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  654. package/reduxStore/selectors/dappModalsSelectors.js +1 -1
  655. package/reduxStore/selectors/helpers.js +1 -1
  656. package/reduxStore/selectors/index.js +1 -1
  657. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  658. package/reduxStore/selectors/modalsSelectors.js +1 -1
  659. package/reduxStore/selectors/networkConfigSelectors.js +1 -1
  660. package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
  661. package/reduxStore/selectors/toastsSelectors.js +1 -1
  662. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  663. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  664. package/reduxStore/slices/accountInfoSlice.js +1 -1
  665. package/reduxStore/slices/dappModalsSlice.js +1 -1
  666. package/reduxStore/slices/index.js +1 -1
  667. package/reduxStore/slices/loginInfoSlice.js +1 -1
  668. package/reduxStore/slices/modalsSlice.js +1 -1
  669. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  670. package/reduxStore/slices/toastsSlice.js +1 -1
  671. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  672. package/reduxStore/slices/transactionsSlice.js +1 -1
  673. package/reduxStore/store.js +1 -1
  674. package/services/index.js +1 -1
  675. package/services/nativeAuth/helpers/decodeNativeAuthToken.d.ts +1 -1
  676. package/services/nativeAuth/helpers/decodeNativeAuthToken.js +1 -1
  677. package/services/nativeAuth/helpers/index.js +1 -1
  678. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  679. package/services/nativeAuth/index.js +1 -1
  680. package/services/nativeAuth/methods/getNativeAuthConfig.d.ts +1 -1
  681. package/services/nativeAuth/methods/getNativeAuthConfig.js +1 -1
  682. package/services/nativeAuth/methods/getToken.js +1 -1
  683. package/services/nativeAuth/methods/getTokenExpiration.js +1 -1
  684. package/services/nativeAuth/methods/index.js +1 -1
  685. package/services/nativeAuth/nativeAuth.d.ts +1 -1
  686. package/services/nativeAuth/nativeAuth.js +1 -1
  687. package/services/transactions/clearTransactions.js +1 -1
  688. package/services/transactions/index.js +1 -1
  689. package/services/transactions/isCrossShardTransaction.js +1 -1
  690. package/services/transactions/sendTransactions.js +1 -1
  691. package/services/transactions/signTransactions.js +1 -1
  692. package/services/transactions/transformAndSignTransactions.js +1 -1
  693. package/services/transactions/utils.js +1 -1
  694. package/types/index.js +1 -1
  695. package/types/login.types.d.ts +1 -1
  696. package/types/login.types.js +1 -1
  697. package/utils/account/getAccount.js +1 -1
  698. package/utils/account/getAccountBalance.js +1 -1
  699. package/utils/account/getAccountProviderType.js +1 -1
  700. package/utils/account/getAccountShard.js +1 -1
  701. package/utils/account/getAddress.js +1 -1
  702. package/utils/account/getIsProviderEqualTo.js +1 -1
  703. package/utils/account/getLatestNonce.js +1 -1
  704. package/utils/account/getShardOfAddress.js +1 -1
  705. package/utils/account/index.js +1 -1
  706. package/utils/account/loginWithExternalProvider.js +1 -1
  707. package/utils/account/refreshAccount.js +1 -1
  708. package/utils/account/setNonce.js +1 -1
  709. package/utils/account/signMessage.js +1 -1
  710. package/utils/getIsLoggedIn.js +1 -1
  711. package/utils/index.js +1 -1
  712. package/utils/logout.js +1 -1
  713. package/utils/network/getChainID.js +1 -1
  714. package/utils/network/getEgldLabel.js +1 -1
  715. package/utils/network/getNetworkConfig.js +1 -1
  716. package/utils/network/index.js +1 -1
  717. package/utils/operations/calculateFeeLimit.js +1 -1
  718. package/utils/operations/denominate.js +1 -1
  719. package/utils/operations/formatAmount.js +1 -1
  720. package/utils/operations/index.js +1 -1
  721. package/utils/operations/nominate.js +1 -1
  722. package/utils/operations/parseAmount.js +1 -1
  723. package/utils/smartContracts.js +1 -1
  724. package/utils/toasts/customToastsActions.js +1 -1
  725. package/utils/toasts/index.js +1 -1
  726. package/utils/transactions/getAllTransactionsLink.js +1 -1
  727. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  728. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  729. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  730. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  731. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  732. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  733. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  734. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  735. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  736. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  737. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  738. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  739. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  740. package/utils/transactions/getTransactionLink.js +1 -1
  741. package/utils/transactions/index.js +1 -1
  742. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  743. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  744. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  745. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  746. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  747. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  748. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  749. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  750. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  751. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  752. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  753. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  754. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  755. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  756. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  757. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  758. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  759. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  760. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  761. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  762. package/utils/validation/index.js +1 -1
  763. package/utils/validation/maxDecimals.js +1 -1
  764. package/utils/validation/stringIsFloat.js +1 -1
  765. package/web/hooks/index.js +1 -1
  766. package/web/hooks/useIdleTimer.js +1 -1
  767. package/web/index.js +1 -1
  768. package/wrappers/AppInitializer.js +1 -1
  769. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  770. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  771. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  772. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  773. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  774. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  775. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  776. package/wrappers/DappProvider/CustomComponents.js +1 -1
  777. package/wrappers/DappProvider/index.js +1 -1
  778. package/wrappers/index.js +1 -1
  779. package/__chunks__/chunk-23WPUIWM.js +0 -2
  780. package/__chunks__/chunk-2LFAG5UW.js +0 -2
  781. package/__chunks__/chunk-4QMATHBG.js +0 -2
  782. package/__chunks__/chunk-5C5IMDWD.js +0 -2
  783. package/__chunks__/chunk-5VEFV3IS.js +0 -2
  784. package/__chunks__/chunk-7A4X3VND.js +0 -2
  785. package/__chunks__/chunk-AFAUYTFM.js +0 -2
  786. package/__chunks__/chunk-AZVCA6PP.js +0 -2
  787. package/__chunks__/chunk-BMM3EAVE.js +0 -2
  788. package/__chunks__/chunk-BQOOU5JN.js +0 -2
  789. package/__chunks__/chunk-CHTJEAWJ.js +0 -2
  790. package/__chunks__/chunk-CUPMM5UN.js +0 -2
  791. package/__chunks__/chunk-DQ6NMBLV.js +0 -2
  792. package/__chunks__/chunk-DXWP7WID.js +0 -2
  793. package/__chunks__/chunk-EGUQKZHO.js +0 -2
  794. package/__chunks__/chunk-EPODPC7N.js +0 -2
  795. package/__chunks__/chunk-FDNJRVRV.js +0 -2
  796. package/__chunks__/chunk-FZKUX6GT.js +0 -2
  797. package/__chunks__/chunk-GTFL6MTY.js +0 -2
  798. package/__chunks__/chunk-IH6JAQIK.js +0 -2
  799. package/__chunks__/chunk-J5MXYBME.js +0 -2
  800. package/__chunks__/chunk-JRCA2D4O.js +0 -2
  801. package/__chunks__/chunk-JZMR4U4G.js +0 -2
  802. package/__chunks__/chunk-K4JDGZX7.js +0 -2
  803. package/__chunks__/chunk-KK63JPYF.js +0 -2
  804. package/__chunks__/chunk-KL3ZFTGO.js +0 -2
  805. package/__chunks__/chunk-KVKIF44C.js +0 -2
  806. package/__chunks__/chunk-LHMBRPVE.js +0 -2
  807. package/__chunks__/chunk-MNBMZXH4.js +0 -2
  808. package/__chunks__/chunk-N53WBDGP.js +0 -2
  809. package/__chunks__/chunk-NJ2FRDNT.js +0 -2
  810. package/__chunks__/chunk-NJAB7S6U.js +0 -2
  811. package/__chunks__/chunk-NLB665WA.js +0 -2
  812. package/__chunks__/chunk-O3IP5FLJ.js +0 -2
  813. package/__chunks__/chunk-OQLWGB56.js +0 -2
  814. package/__chunks__/chunk-PK3B7MMU.js +0 -2
  815. package/__chunks__/chunk-Q2MHKB63.js +0 -2
  816. package/__chunks__/chunk-QC4HFPGK.js +0 -2
  817. package/__chunks__/chunk-QMD3AU7N.js +0 -2
  818. package/__chunks__/chunk-RNF6NJNX.js +0 -2
  819. package/__chunks__/chunk-T7QMSC3P.js +0 -2
  820. package/__chunks__/chunk-TMCGSBFK.js +0 -2
  821. package/__chunks__/chunk-TMST4RY3.js +0 -2
  822. package/__chunks__/chunk-U2HS3BH7.js +0 -2
  823. package/__chunks__/chunk-XUFBPLE5.js +0 -2
  824. package/__chunks__/chunk-XW4TJUAM.js +0 -2
  825. package/__chunks__/chunk-YHN6UC5D.js +0 -2
  826. package/__chunks__/chunk-YMCJEH4Z.js +0 -2
  827. package/__chunks__/chunk-Z5PKPJRS.js +0 -2
  828. package/__chunks__/chunk-ZTLF7T3Z.js +0 -2
  829. package/hooks/signMessage/useVerifyMessage.d.ts +0 -2
  830. package/hooks/signMessage/useVerifyMessage.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Or=Object.create;var H=Object.defineProperty;var Rr=Object.getOwnPropertyDescriptor;var kr=Object.getOwnPropertyNames;var br=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Pr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Hr=(e,r)=>{for(var t in r)H(e,t,{get:r[t],enumerable:!0})},or=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of kr(r))!Mr.call(e,i)&&i!==t&&H(e,i,{get:()=>r[i],enumerable:!(n=Rr(r,i))||n.enumerable});return e};var J=(e,r,t)=>(t=e!=null?Or(br(e)):{},or(r||!e||!e.__esModule?H(t,"default",{value:e,enumerable:!0}):t,e)),Wr=e=>or(H({},"__esModule",{value:!0}),e);var N=(e,r,t)=>new Promise((n,i)=>{var o=c=>{try{f(t.next(c))}catch(h){i(h)}},u=c=>{try{f(t.throw(c))}catch(h){i(h)}},f=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,u);f((t=t.apply(e,r)).next())});var cr=W(K=>{"use strict";s();K.byteLength=qr;K.toByteArray=Yr;K.fromByteArray=Xr;var I=[],B=[],Kr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,ur=X.length;_<ur;++_)I[_]=X[_],B[X.charCodeAt(_)]=_;var _,ur;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function ar(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 n=t===r?0:4-t%4;return[t,n]}function qr(e){var r=ar(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Gr(e,r,t){return(r+t)*3/4-t}function Yr(e){var r,t=ar(e),n=t[0],i=t[1],o=new Kr(Gr(e,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=B[e.charCodeAt(c)]<<18|B[e.charCodeAt(c+1)]<<12|B[e.charCodeAt(c+2)]<<6|B[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=B[e.charCodeAt(c)]<<2|B[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=B[e.charCodeAt(c)]<<10|B[e.charCodeAt(c+1)]<<4|B[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Vr(e){return I[e>>18&63]+I[e>>12&63]+I[e>>6&63]+I[e&63]}function Jr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Vr(n));return i.join("")}function Xr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,f=t-n;u<f;u+=o)i.push(Jr(e,u,u+o>f?f:u+o));return n===1?(r=e[t-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var fr=W($=>{s();$.read=function(e,r,t,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,h=c>>1,l=-7,p=t?i-1:0,g=t?-1:1,F=e[r+p];for(p+=g,o=F&(1<<-l)-1,F>>=-l,l+=f;l>0;o=o*256+e[r+p],p+=g,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+p],p+=g,l-=8);if(o===0)o=1-h;else{if(o===c)return u?NaN:(F?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-h}return(F?-1:1)*u*Math.pow(2,o-n)};$.write=function(e,r,t,n,i,o){var u,f,c,h=o*8-i-1,l=(1<<h)-1,p=l>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=n?0:o-1,R=n?1:-1,Lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+p>=1?r+=g/c:r+=g*Math.pow(2,1-p),r*c>=2&&(u++,c/=2),u+p>=l?(f=0,u=l):u+p>=1?(f=(r*c-1)*Math.pow(2,i),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+F]=f&255,F+=R,f/=256,i-=8);for(u=u<<i|f,h+=i;h>0;e[t+F]=u&255,F+=R,u/=256,h-=8);e[t+F-R]|=Lr*128}});var Br=W(b=>{"use strict";s();var z=cr(),k=fr(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=a;b.SlowBuffer=rt;b.INSPECT_MAX_BYTES=50;var q=2147483647;b.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=$r();!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 $r(){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 rr(e)}return lr(e,r,t)}a.poolSize=8192;function lr(e,r,t){if(typeof e=="string")return Qr(e,r);if(ArrayBuffer.isView(e))return Zr(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(d(e,ArrayBuffer)||e&&d(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(d(e,SharedArrayBuffer)||e&&d(e.buffer,SharedArrayBuffer)))return Z(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=jr(e);if(i)return i;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 lr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function yr(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 zr(e,r,t){return yr(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 zr(e,r,t)};function rr(e){return yr(e),U(e<0?0:tr(e)|0)}a.allocUnsafe=function(e){return rr(e)};a.allocUnsafeSlow=function(e){return rr(e)};function Qr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=xr(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:tr(e.length)|0,t=U(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Zr(e){if(d(e,Uint8Array)){var r=new Uint8Array(e);return Z(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function Z(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function jr(e){if(a.isBuffer(e)){var r=tr(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"||er(e.length)?U(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function tr(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function rt(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(d(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),d(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(d(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function xr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||d(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(i)return n?-1:j(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=xr;function tt(e,r,t){var n=!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 pt(this,r,t);case"utf8":case"utf-8":return mr(this,r,t);case"ascii":return ft(this,r,t);case"latin1":case"binary":return ht(this,r,t);case"base64":return at(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function D(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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)D(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)D(this,t,t+3),D(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)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?mr(this,0,r):tt.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=b.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(d(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,f=n-t,c=Math.min(u,f),h=this.slice(i,o),l=r.slice(t,n),p=0;p<c;++p)if(h[p]!==l[p]){u=h[p],f=l[p];break}return u<f?-1:f<u?1:0};function wr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,er(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:pr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):pr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function pr(e,r,t,n,i){var o=1,u=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function c(F,R){return o===1?F[R]:F.readUInt16BE(R*o)}var h;if(i){var l=-1;for(h=t;h<u;h++)if(c(e,h)===c(r,l===-1?0:h-l)){if(l===-1&&(l=h),h-l+1===f)return l*o}else l!==-1&&(h-=h-l),l=-1}else for(t+f>u&&(t=u-f),h=t;h>=0;h--){for(var p=!0,g=0;g<f;g++)if(c(e,h+g)!==c(r,g)){p=!1;break}if(p)return h}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return wr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return wr(this,r,t,n,!1)};function et(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(er(f))return u;e[t+u]=f}return u}function nt(e,r,t,n){return G(j(r,e.length-t),e,t,n)}function it(e,r,t,n){return G(xt(r),e,t,n)}function ot(e,r,t,n){return G(Fr(r),e,t,n)}function ut(e,r,t,n){return G(wt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return et(this,r,t,n);case"utf8":case"utf-8":return nt(this,r,t,n);case"ascii":case"latin1":case"binary":return it(this,r,t,n);case"base64":return ot(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function mr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){var c,h,l,p;switch(f){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(p=(o&31)<<6|c&63,p>127&&(u=p));break;case 3:c=e[i+1],h=e[i+2],(c&192)===128&&(h&192)===128&&(p=(o&15)<<12|(c&63)<<6|h&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:c=e[i+1],h=e[i+2],l=e[i+3],(c&192)===128&&(h&192)===128&&(l&192)===128&&(p=(o&15)<<18|(c&63)<<12|(h&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return ct(n)}var sr=4096;function ct(e){var r=e.length;if(r<=sr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=sr));return t}function ft(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function ht(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function pt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=mt[e[o]];return i}function st(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function m(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,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(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||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(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||m(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||m(r,4,this.length),k.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!1,52,8)};function T(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=1,f=0;for(this[t]=r&255;++f<n&&(u*=256);)this[t+f]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=n-1,f=1;for(this[t+u]=r&255;--u>=0&&(f*=256);)this[t+u]=r/f&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=0,f=1,c=0;for(this[t]=r&255;++u<n&&(f*=256);)r<0&&c===0&&this[t+u-1]!==0&&(c=1),this[t+u]=(r/f>>0)-c&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=n-1,f=1,c=0;for(this[t+u]=r&255;--u>=0&&(f*=256);)r<0&&c===0&&this[t+u+1]!==0&&(c=1),this[t+u]=(r/f>>0)-c&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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 Er(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return gr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return gr(this,r,t,!1,n)};function Tr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Tr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Tr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,i),c=f.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=f[u%c]}return this};var lt=/[^+/0-9A-Za-z-_]/g;function yt(e){if(e=e.split("=")[0],e=e.trim().replace(lt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function j(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 xt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function wt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Fr(e){return z.toByteArray(yt(e))}function G(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function d(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function er(e){return e!==e}var mt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Nr=W((Lt,vr)=>{s();var y=vr.exports={},A,v;function nr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=nr}catch(e){A=nr}try{typeof clearTimeout=="function"?v=clearTimeout:v=ir}catch(e){v=ir}})();function Ir(e){if(A===setTimeout)return setTimeout(e,0);if((A===nr||!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 Et(e){if(v===clearTimeout)return clearTimeout(e);if((v===ir||!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 S=[],M=!1,L,Y=-1;function gt(){!M||!L||(M=!1,L.length?S=L.concat(S):Y=-1,S.length&&dr())}function dr(){if(!M){var e=Ir(gt);M=!0;for(var r=S.length;r;){for(L=S,S=[];++Y<r;)L&&L[Y].run();Y=-1,r=S.length}L=null,M=!1,Et(e)}}y.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];S.push(new Ar(e,r)),S.length===1&&!M&&Ir(dr)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function C(){}y.on=C;y.addListener=C;y.once=C;y.off=C;y.removeListener=C;y.removeAllListeners=C;y.emit=C;y.prependListener=C;y.prependOnceListener=C;y.listeners=function(e){return[]};y.binding=function(e){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(e){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var x,w,Ot,s=Pr(()=>{x=J(Br()),w=J(Nr()),Ot=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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 Ut={};Hr(Ut,{decodeNativeAuthToken:()=>Nt,encodeValue:()=>Ft,getLatestBlockHash:()=>At});module.exports=Wr(Ut);s();s();var Tt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),Ft=e=>Tt(x.Buffer.from(e,"utf8").toString("base64"));s();var Dr=J(require("axios"));s();var Ur="blocks";s();s();s();function Sr(e){return N(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}s();var Cr=(e,r,t,n=0)=>N(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield Sr(r.delay)),yield Cr(e,r,t,n+1)):null}}),_r=(e,r={retries:5,delay:500})=>(...t)=>N(void 0,null,function*(){return yield Cr(e,r,t)});var Bt=4,It=3e4,V={current:null},O={current:null},dt=_r((e,r)=>N(void 0,null,function*(){let{data:t}=yield Dr.default.get(`${e}/${Ur}?from=${Bt}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function At(e,r){return N(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(V.current!=null&&t<V.current.timestamp*1e3+It)return V.current;if(O.current!=null)return yield O.current;O.current=dt(e,r);try{let n=yield O.current;if(n==null)throw O.current=null,new Error("could not get block hash");return V.current={hash:n.hash,timestamp:n.timestamp},O.current=null,n}catch(n){return O.current=null,null}})}s();s();s();function P(e){return atob(e)}s();s();s();function vt(e){return Object.prototype.toString.call(e)==="[object String]"}var Nt=e=>{if(!e||!vt(e))return null;try{let[r,t,n]=e.split("."),i=P(r),o=P(t),[u,f,c,h]=o.split("."),l=JSON.parse(P(h)),p=P(u),g={ttl:Number(c),address:i,extraInfo:l,host:p,signature:n,blockHash:f,body:o};return h==="e30"&&delete g.extraInfo,g}catch(r){return null}};0&&(module.exports={decodeNativeAuthToken,encodeValue,getLatestBlockHash});
1
+ "use strict";var Or=Object.create;var H=Object.defineProperty;var Rr=Object.getOwnPropertyDescriptor;var kr=Object.getOwnPropertyNames;var br=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var Pr=(e,r)=>()=>(e&&(r=e(e=0)),r);var W=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Hr=(e,r)=>{for(var t in r)H(e,t,{get:r[t],enumerable:!0})},or=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of kr(r))!Mr.call(e,i)&&i!==t&&H(e,i,{get:()=>r[i],enumerable:!(n=Rr(r,i))||n.enumerable});return e};var J=(e,r,t)=>(t=e!=null?Or(br(e)):{},or(r||!e||!e.__esModule?H(t,"default",{value:e,enumerable:!0}):t,e)),Wr=e=>or(H({},"__esModule",{value:!0}),e);var N=(e,r,t)=>new Promise((n,i)=>{var o=c=>{try{f(t.next(c))}catch(h){i(h)}},u=c=>{try{f(t.throw(c))}catch(h){i(h)}},f=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,u);f((t=t.apply(e,r)).next())});var cr=W(K=>{"use strict";s();K.byteLength=qr;K.toByteArray=Yr;K.fromByteArray=Xr;var I=[],B=[],Kr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,ur=X.length;_<ur;++_)I[_]=X[_],B[X.charCodeAt(_)]=_;var _,ur;B["-".charCodeAt(0)]=62;B["_".charCodeAt(0)]=63;function ar(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 n=t===r?0:4-t%4;return[t,n]}function qr(e){var r=ar(e),t=r[0],n=r[1];return(t+n)*3/4-n}function Gr(e,r,t){return(r+t)*3/4-t}function Yr(e){var r,t=ar(e),n=t[0],i=t[1],o=new Kr(Gr(e,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=B[e.charCodeAt(c)]<<18|B[e.charCodeAt(c+1)]<<12|B[e.charCodeAt(c+2)]<<6|B[e.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=B[e.charCodeAt(c)]<<2|B[e.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=B[e.charCodeAt(c)]<<10|B[e.charCodeAt(c+1)]<<4|B[e.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function Vr(e){return I[e>>18&63]+I[e>>12&63]+I[e>>6&63]+I[e&63]}function Jr(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(Vr(n));return i.join("")}function Xr(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,f=t-n;u<f;u+=o)i.push(Jr(e,u,u+o>f?f:u+o));return n===1?(r=e[t-1],i.push(I[r>>2]+I[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(I[r>>10]+I[r>>4&63]+I[r<<2&63]+"=")),i.join("")}});var fr=W($=>{s();$.read=function(e,r,t,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,h=c>>1,l=-7,p=t?i-1:0,g=t?-1:1,F=e[r+p];for(p+=g,o=F&(1<<-l)-1,F>>=-l,l+=f;l>0;o=o*256+e[r+p],p+=g,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+p],p+=g,l-=8);if(o===0)o=1-h;else{if(o===c)return u?NaN:(F?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-h}return(F?-1:1)*u*Math.pow(2,o-n)};$.write=function(e,r,t,n,i,o){var u,f,c,h=o*8-i-1,l=(1<<h)-1,p=l>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=n?0:o-1,R=n?1:-1,Lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+p>=1?r+=g/c:r+=g*Math.pow(2,1-p),r*c>=2&&(u++,c/=2),u+p>=l?(f=0,u=l):u+p>=1?(f=(r*c-1)*Math.pow(2,i),u=u+p):(f=r*Math.pow(2,p-1)*Math.pow(2,i),u=0));i>=8;e[t+F]=f&255,F+=R,f/=256,i-=8);for(u=u<<i|f,h+=i;h>0;e[t+F]=u&255,F+=R,u/=256,h-=8);e[t+F-R]|=Lr*128}});var Br=W(b=>{"use strict";s();var z=cr(),k=fr(),hr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=a;b.SlowBuffer=rt;b.INSPECT_MAX_BYTES=50;var q=2147483647;b.kMaxLength=q;a.TYPED_ARRAY_SUPPORT=$r();!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 $r(){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 rr(e)}return lr(e,r,t)}a.poolSize=8192;function lr(e,r,t){if(typeof e=="string")return Qr(e,r);if(ArrayBuffer.isView(e))return Zr(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(d(e,ArrayBuffer)||e&&d(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(d(e,SharedArrayBuffer)||e&&d(e.buffer,SharedArrayBuffer)))return Z(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=jr(e);if(i)return i;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 lr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function yr(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 zr(e,r,t){return yr(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 zr(e,r,t)};function rr(e){return yr(e),U(e<0?0:tr(e)|0)}a.allocUnsafe=function(e){return rr(e)};a.allocUnsafeSlow=function(e){return rr(e)};function Qr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=xr(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function Q(e){for(var r=e.length<0?0:tr(e.length)|0,t=U(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function Zr(e){if(d(e,Uint8Array)){var r=new Uint8Array(e);return Z(r.buffer,r.byteOffset,r.byteLength)}return Q(e)}function Z(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function jr(e){if(a.isBuffer(e)){var r=tr(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"||er(e.length)?U(0):Q(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Q(e.data)}function tr(e){if(e>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return e|0}function rt(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(d(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),d(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(d(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function xr(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||d(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(i)return n?-1:j(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=xr;function tt(e,r,t){var n=!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 pt(this,r,t);case"utf8":case"utf-8":return mr(this,r,t);case"ascii":return ft(this,r,t);case"latin1":case"binary":return ht(this,r,t);case"base64":return at(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function D(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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)D(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)D(this,t,t+3),D(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)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?mr(this,0,r):tt.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=b.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};hr&&(a.prototype[hr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(d(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,f=n-t,c=Math.min(u,f),h=this.slice(i,o),l=r.slice(t,n),p=0;p<c;++p)if(h[p]!==l[p]){u=h[p],f=l[p];break}return u<f?-1:f<u?1:0};function wr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,er(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:pr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):pr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function pr(e,r,t,n,i){var o=1,u=e.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,f/=2,t/=2}function c(F,R){return o===1?F[R]:F.readUInt16BE(R*o)}var h;if(i){var l=-1;for(h=t;h<u;h++)if(c(e,h)===c(r,l===-1?0:h-l)){if(l===-1&&(l=h),h-l+1===f)return l*o}else l!==-1&&(h-=h-l),l=-1}else for(t+f>u&&(t=u-f),h=t;h>=0;h--){for(var p=!0,g=0;g<f;g++)if(c(e,h+g)!==c(r,g)){p=!1;break}if(p)return h}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return wr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return wr(this,r,t,n,!1)};function et(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(er(f))return u;e[t+u]=f}return u}function nt(e,r,t,n){return G(j(r,e.length-t),e,t,n)}function it(e,r,t,n){return G(xt(r),e,t,n)}function ot(e,r,t,n){return G(Fr(r),e,t,n)}function ut(e,r,t,n){return G(wt(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return et(this,r,t,n);case"utf8":case"utf-8":return nt(this,r,t,n);case"ascii":case"latin1":case"binary":return it(this,r,t,n);case"base64":return ot(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(e,r,t){return r===0&&t===e.length?z.fromByteArray(e):z.fromByteArray(e.slice(r,t))}function mr(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=t){var c,h,l,p;switch(f){case 1:o<128&&(u=o);break;case 2:c=e[i+1],(c&192)===128&&(p=(o&31)<<6|c&63,p>127&&(u=p));break;case 3:c=e[i+1],h=e[i+2],(c&192)===128&&(h&192)===128&&(p=(o&15)<<12|(c&63)<<6|h&63,p>2047&&(p<55296||p>57343)&&(u=p));break;case 4:c=e[i+1],h=e[i+2],l=e[i+3],(c&192)===128&&(h&192)===128&&(l&192)===128&&(p=(o&15)<<18|(c&63)<<12|(h&63)<<6|l&63,p>65535&&p<1114112&&(u=p))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return ct(n)}var sr=4096;function ct(e){var r=e.length;if(r<=sr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=sr));return t}function ft(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function ht(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function pt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=mt[e[o]];return i}function st(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function m(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,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(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||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(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||m(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||m(r,4,this.length),k.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!1,52,8)};function T(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=1,f=0;for(this[t]=r&255;++f<n&&(u*=256);)this[t+f]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=n-1,f=1;for(this[t+u]=r&255;--u>=0&&(f*=256);)this[t+u]=r/f&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=0,f=1,c=0;for(this[t]=r&255;++u<n&&(f*=256);)r<0&&c===0&&this[t+u-1]!==0&&(c=1),this[t+u]=(r/f>>0)-c&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=n-1,f=1,c=0;for(this[t+u]=r&255;--u>=0&&(f*=256);)r<0&&c===0&&this[t+u+1]!==0&&(c=1),this[t+u]=(r/f>>0)-c&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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 Er(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return gr(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return gr(this,r,t,!1,n)};function Tr(e,r,t,n,i){return r=+r,t=t>>>0,i||Er(e,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Tr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Tr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,i),c=f.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=f[u%c]}return this};var lt=/[^+/0-9A-Za-z-_]/g;function yt(e){if(e=e.split("=")[0],e=e.trim().replace(lt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function j(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 xt(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function wt(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Fr(e){return z.toByteArray(yt(e))}function G(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function d(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function er(e){return e!==e}var mt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Nr=W((Lt,vr)=>{s();var y=vr.exports={},A,v;function nr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=nr}catch(e){A=nr}try{typeof clearTimeout=="function"?v=clearTimeout:v=ir}catch(e){v=ir}})();function Ir(e){if(A===setTimeout)return setTimeout(e,0);if((A===nr||!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 Et(e){if(v===clearTimeout)return clearTimeout(e);if((v===ir||!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 S=[],M=!1,L,Y=-1;function gt(){!M||!L||(M=!1,L.length?S=L.concat(S):Y=-1,S.length&&dr())}function dr(){if(!M){var e=Ir(gt);M=!0;for(var r=S.length;r;){for(L=S,S=[];++Y<r;)L&&L[Y].run();Y=-1,r=S.length}L=null,M=!1,Et(e)}}y.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];S.push(new Ar(e,r)),S.length===1&&!M&&Ir(dr)};function Ar(e,r){this.fun=e,this.array=r}Ar.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function C(){}y.on=C;y.addListener=C;y.once=C;y.off=C;y.removeListener=C;y.removeAllListeners=C;y.emit=C;y.prependListener=C;y.prependOnceListener=C;y.listeners=function(e){return[]};y.binding=function(e){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(e){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var x,w,Ot,s=Pr(()=>{x=J(Br()),w=J(Nr()),Ot=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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 Ut={};Hr(Ut,{decodeNativeAuthToken:()=>Nt,encodeValue:()=>Ft,getLatestBlockHash:()=>At});module.exports=Wr(Ut);s();s();var Tt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),Ft=e=>Tt(x.Buffer.from(e,"utf8").toString("base64"));s();var Dr=J(require("axios"));s();var Ur="blocks";s();s();s();function Sr(e){return N(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}s();var Cr=(e,r,t,n=0)=>N(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield Sr(r.delay)),yield Cr(e,r,t,n+1)):null}}),_r=(e,r={retries:5,delay:500})=>(...t)=>N(void 0,null,function*(){return yield Cr(e,r,t)});var Bt=4,It=3e4,V={current:null},O={current:null},dt=_r((e,r)=>N(void 0,null,function*(){let{data:t}=yield Dr.default.get(`${e}/${Ur}?from=${Bt}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function At(e,r){return N(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(V.current!=null&&t<V.current.timestamp*1e3+It)return V.current;if(O.current!=null)return yield O.current;O.current=dt(e,r);try{let n=yield O.current;if(n==null)throw O.current=null,new Error("could not get block hash");return V.current={hash:n.hash,timestamp:n.timestamp},O.current=null,n}catch(n){return O.current=null,null}})}s();s();s();function P(e){return atob(e)}s();s();s();function vt(e){return Object.prototype.toString.call(e)==="[object String]"}var Nt=e=>{if(!e||!vt(e))return null;try{let[r,t,n]=e.split("."),i=P(r),o=P(t),[u,f,c,h]=o.split("."),l=JSON.parse(P(h)),p=P(u),g={ttl:Number(c),address:i,extraInfo:l,origin:p,signature:n,blockHash:f,body:o};return h==="e30"&&delete g.extraInfo,g}catch(r){return null}};0&&(module.exports={decodeNativeAuthToken,encodeValue,getLatestBlockHash});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var An=Object.create;var ee=Object.defineProperty,kn=Object.defineProperties,En=Object.getOwnPropertyDescriptor,Ln=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,_n=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var yt=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))ht.call(e,r)&&yt(t,r,e[r]);if(mt)for(var r of mt(e))Cn.call(e,r)&&yt(t,r,e[r]);return t},I=(t,e)=>kn(t,Ln(e));var f=(t,e)=>()=>(t&&(e=t(t=0)),e);var pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),H=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})},Tt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Rn(e))!ht.call(t,o)&&o!==r&&ee(t,o,{get:()=>e[o],enumerable:!(n=En(e,o))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?An(_n(t)):{},Tt(e||!t||!t.__esModule?ee(r,"default",{value:t,enumerable:!0}):r,t)),te=t=>Tt(ee({},"__esModule",{value:!0}),t);var wt=pe(ue=>{"use strict";s();ue.byteLength=Mn;ue.toByteArray=Fn;ue.fromByteArray=Un;var R=[],E=[],Nn=typeof Uint8Array!="undefined"?Uint8Array:Array,Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(q=0,xt=Ge.length;q<xt;++q)R[q]=Ge[q],E[Ge.charCodeAt(q)]=q;var q,xt;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function St(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Mn(t){var e=St(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Pn(t,e,r){return(e+r)*3/4-r}function Fn(t){var e,r=St(t),n=r[0],o=r[1],i=new Nn(Pn(t,n,o)),a=0,d=o>0?n-4:n,l;for(l=0;l<d;l+=4)e=E[t.charCodeAt(l)]<<18|E[t.charCodeAt(l+1)]<<12|E[t.charCodeAt(l+2)]<<6|E[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=E[t.charCodeAt(l)]<<2|E[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=E[t.charCodeAt(l)]<<10|E[t.charCodeAt(l+1)]<<4|E[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function Dn(t){return R[t>>18&63]+R[t>>12&63]+R[t>>6&63]+R[t&63]}function Bn(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(Dn(n));return o.join("")}function Un(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,d=r-n;a<d;a+=i)o.push(Bn(t,a,a+i>d?d:a+i));return n===1?(e=t[r-1],o.push(R[e>>2]+R[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(R[e>>10]+R[e>>4&63]+R[e<<2&63]+"=")),o.join("")}});var bt=pe(He=>{s();He.read=function(t,e,r,n,o){var i,a,d=o*8-n-1,l=(1<<d)-1,m=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,v=t[e+y];for(y+=S,i=v&(1<<-h)-1,v>>=-h,h+=d;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(v?-1:1)*a*Math.pow(2,i-n)};He.write=function(t,e,r,n,o,i){var a,d,l,m=i*8-o-1,h=(1<<m)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:i-1,O=n?1:-1,F=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(d=0,a=h):a+y>=1?(d=(e*l-1)*Math.pow(2,o),a=a+y):(d=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+v]=d&255,v+=O,d/=256,o-=8);for(a=a<<o|d,m+=o;m>0;t[r+v]=a&255,v+=O,a/=256,m-=8);t[r+v-O]|=F*128}});var Ft=pe(X=>{"use strict";s();var ze=wt(),Y=bt(),vt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;X.Buffer=c;X.SlowBuffer=Wn;X.INSPECT_MAX_BYTES=50;var de=2147483647;X.kMaxLength=de;c.TYPED_ARRAY_SUPPORT=On();!c.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 On(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>de)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return je(t)}return kt(t,e,r)}c.poolSize=8192;function kt(t,e,r){if(typeof t=="string")return Hn(t,e);if(ArrayBuffer.isView(t))return zn(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return We(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var o=qn(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return kt(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Et(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Gn(t,e,r){return Et(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return Gn(t,e,r)};function je(t){return Et(t),D(t<0?0:Ke(t)|0)}c.allocUnsafe=function(t){return je(t)};c.allocUnsafeSlow=function(t){return je(t)};function Hn(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Lt(t,e)|0,n=D(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function qe(t){for(var e=t.length<0?0:Ke(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function zn(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return We(e.buffer,e.byteOffset,e.byteLength)}return qe(t)}function We(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function qn(t){if(c.isBuffer(t)){var e=Ke(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Ye(t.length)?D(0):qe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return qe(t.data)}function Ke(t){if(t>=de)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de.toString(16)+" bytes");return t|0}function Wn(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(_(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.isEncoding=function(e){switch(String(e).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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Lt(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ve(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pt(t).length;default:if(o)return n?-1:Ve(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Lt;function Vn(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return to(this,e,r);case"utf8":case"utf-8":return _t(this,e,r);case"ascii":return $n(this,e,r);case"latin1":case"binary":return eo(this,e,r);case"base64":return Qn(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ro(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function W(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)W(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)W(this,r,r+3),W(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)W(this,r,r+7),W(this,r+1,r+6),W(this,r+2,r+5),W(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?_t(this,0,e):Vn.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=X.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};vt&&(c.prototype[vt]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(_(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,d=n-r,l=Math.min(a,d),m=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(m[y]!==h[y]){a=m[y],d=h[y];break}return a<d?-1:d<a?1:0};function Rt(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ye(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:It(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):It(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function It(t,e,r,n,o){var i=1,a=t.length,d=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,d/=2,r/=2}function l(v,O){return i===1?v[O]:v.readUInt16BE(O*i)}var m;if(o){var h=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===d)return h*i}else h!==-1&&(m-=m-h),h=-1}else for(r+d>a&&(r=a-d),m=r;m>=0;m--){for(var y=!0,S=0;S<d;S++)if(l(t,m+S)!==l(e,S)){y=!1;break}if(y)return m}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Rt(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Rt(this,e,r,n,!1)};function jn(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var d=parseInt(e.substr(a*2,2),16);if(Ye(d))return a;t[r+a]=d}return a}function Kn(t,e,r,n){return ge(Ve(e,t.length-r),t,r,n)}function Yn(t,e,r,n){return ge(io(e),t,r,n)}function Xn(t,e,r,n){return ge(Pt(e),t,r,n)}function Jn(t,e,r,n){return ge(ao(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return jn(this,e,r,n);case"utf8":case"utf-8":return Kn(this,e,r,n);case"ascii":case"latin1":case"binary":return Yn(this,e,r,n);case"base64":return Xn(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jn(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qn(t,e,r){return e===0&&r===t.length?ze.fromByteArray(t):ze.fromByteArray(t.slice(e,r))}function _t(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,d=i>239?4:i>223?3:i>191?2:1;if(o+d<=r){var l,m,h,y;switch(d){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(y=(i&15)<<12|(l&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],m=t[o+2],h=t[o+3],(l&192)===128&&(m&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=d}return Zn(n)}var At=4096;function Zn(t){var e=t.length;if(e<=At)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=At));return r}function $n(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function eo(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function to(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=so[t[i]];return o}function ro(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),Y.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),Y.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),Y.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),Y.read(this,e,!1,52,8)};function A(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;A(this,e,r,n,i,0)}var a=1,d=0;for(this[r]=e&255;++d<n&&(a*=256);)this[r+d]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;A(this,e,r,n,i,0)}var a=n-1,d=1;for(this[r+a]=e&255;--a>=0&&(d*=256);)this[r+a]=e/d&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);A(this,e,r,n,i-1,-i)}var a=0,d=1,l=0;for(this[r]=e&255;++a<n&&(d*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/d>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);A(this,e,r,n,i-1,-i)}var a=n-1,d=1,l=0;for(this[r+a]=e&255;--a>=0&&(d*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/d>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ct(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nt(t,e,r,n,o){return e=+e,r=r>>>0,o||Ct(t,e,r,4,34028234663852886e22,-34028234663852886e22),Y.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Nt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Nt(this,e,r,!1,n)};function Mt(t,e,r,n,o){return e=+e,r=r>>>0,o||Ct(t,e,r,8,17976931348623157e292,-17976931348623157e292),Y.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Mt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Mt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var d=c.isBuffer(e)?e:c.from(e,o),l=d.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=d[a%l]}return this};var no=/[^+/0-9A-Za-z-_]/g;function oo(t){if(t=t.split("=")[0],t=t.trim().replace(no,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ve(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function io(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ao(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Pt(t){return ze.toByteArray(oo(t))}function ge(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Ye(t){return t!==t}var so=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var Gt=pe((ai,Ot)=>{s();var x=Ot.exports={},C,N;function Xe(){throw new Error("setTimeout has not been defined")}function Je(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?C=setTimeout:C=Xe}catch(t){C=Xe}try{typeof clearTimeout=="function"?N=clearTimeout:N=Je}catch(t){N=Je}})();function Dt(t){if(C===setTimeout)return setTimeout(t,0);if((C===Xe||!C)&&setTimeout)return C=setTimeout,setTimeout(t,0);try{return C(t,0)}catch(e){try{return C.call(null,t,0)}catch(r){return C.call(this,t,0)}}}function co(t){if(N===clearTimeout)return clearTimeout(t);if((N===Je||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch(e){try{return N.call(null,t)}catch(r){return N.call(this,t)}}}var B=[],J=!1,V,fe=-1;function lo(){!J||!V||(J=!1,V.length?B=V.concat(B):fe=-1,B.length&&Bt())}function Bt(){if(!J){var t=Dt(lo);J=!0;for(var e=B.length;e;){for(V=B,B=[];++fe<e;)V&&V[fe].run();fe=-1,e=B.length}V=null,J=!1,co(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];B.push(new Ut(t,e)),B.length===1&&!J&&Dt(Bt)};function Ut(t,e){this.fun=t,this.array=e}Ut.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function U(){}x.on=U;x.addListener=U;x.once=U;x.off=U;x.removeListener=U;x.removeAllListeners=U;x.emit=U;x.prependListener=U;x.prependOnceListener=U;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var p,u,si,s=f(()=>{p=z(Ft()),u=z(Gt()),si=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Ht=f(()=>{"use strict";s()});var zt=f(()=>{"use strict";s()});var qt=f(()=>{"use strict";s()});var Wt=f(()=>{"use strict";s()});var re=f(()=>{"use strict";s()});var Vt=f(()=>{"use strict";s()});var jt=f(()=>{"use strict";s()});var Kt=f(()=>{"use strict";s()});var Yt=f(()=>{"use strict";s()});var Xt=f(()=>{"use strict";s()});var Q=f(()=>{"use strict";s();zt();qt();Wt();re();Vt();jt();Kt();Yt();Xt()});var Qe,Jt,ki,Qt,Ei,Zt,Li,Ri,_i,$t=f(()=>{"use strict";s();Q();Qe={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",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},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",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},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",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Jt,egldLabel:ki}=Qe["devnet"],{chainId:Qt,egldLabel:Ei}=Qe["testnet"],{chainId:Zt,egldLabel:Li}=Qe["mainnet"],Ri={["devnet"]:Jt,["testnet"]:Qt,["mainnet"]:Zt},_i={[Jt]:"devnet",[Qt]:"testnet",[Zt]:"mainnet"}});var Ze=f(()=>{"use strict";s()});var er=f(()=>{"use strict";s()});var tr,$e=f(()=>{"use strict";s();tr="transaction-status-toast-id"});var M,rr=f(()=>{"use strict";s();M=require("@multiversx/sdk-web-wallet-provider")});var me,nr,or,ye=f(()=>{"use strict";s();Ht();$t();Ze();er();$e();rr();me="logout",nr="login",or="0"});var et,b,Z,P=f(()=>{"use strict";s();et=require("@reduxjs/toolkit");ye();b=(0,et.createAction)(me),Z=(0,et.createAction)(nr,t=>({payload:t}))});var he,tt=f(()=>{"use strict";s();he=()=>Date.now()/1e3});var ir=f(()=>{"use strict";s()});var ar=f(()=>{"use strict";s()});var sr=f(()=>{"use strict";s();tt();ir();ar()});var nt={};H(nt,{getItem:()=>uo,localStorageKeys:()=>j,removeItem:()=>go,setItem:()=>po});var j,rt,po,uo,go,ne=f(()=>{"use strict";s();sr();j={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rt=typeof localStorage!="undefined",po=({key:t,data:e,expires:r})=>{!rt||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},uo=t=>{if(!rt)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:he()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},go=t=>{!rt||localStorage.removeItem(String(t))}});var ot={};H(ot,{clear:()=>ur,getItem:()=>lr,removeItem:()=>pr,setItem:()=>cr,storage:()=>fo});var cr,lr,pr,ur,fo,dr=f(()=>{"use strict";s();cr=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},lr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},pr=t=>sessionStorage.removeItem(String(t)),ur=()=>sessionStorage.clear(),fo={setItem:cr,getItem:lr,removeItem:pr,clear:ur}});var $,Te=f(()=>{"use strict";s();ne();dr();$={session:ot,local:nt}});var at,gr,fr,mr,it,yr,hr,aa,Tr,sa,ca,la,pa,ua,da,ga,xe,Se=f(()=>{"use strict";s();at=require("@multiversx/sdk-core"),gr=require("@reduxjs/toolkit"),fr=require("redux-persist");ye();Te();ne();P();mr={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:or},it={address:"",websocketEvent:null,accounts:{"":mr},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yr=(0,gr.createSlice)({name:"accountInfoSlice",initialState:it,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new at.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:mr},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(b,()=>($.local.removeItem(j.loginExpiresAt),it)),t.addCase(Z,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new at.Address(n).hex()}),t.addCase(fr.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:d}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:it.accounts,e.publicKey=d})}}),{setAccount:hr,setAddress:aa,setAccountNonce:Tr,setAccountShard:sa,setLedgerAccount:ca,updateLedgerAccount:la,setWalletConnectAccount:pa,setIsAccountLoading:ua,setAccountLoadingError:da,setWebsocketEvent:ga}=yr.actions,xe=yr.reducer});function oe(){return new Date().setHours(new Date().getHours()+24)}function ie(t){$.local.setItem({key:j.loginExpiresAt,data:t,expires:t})}var st=f(()=>{"use strict";s();Te();ne()});var wr,xr,br,va,Ia,Aa,vr,ka,Ea,Ir,La,we,be=f(()=>{"use strict";s();wr=require("@reduxjs/toolkit");st();re();P();xr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},br=(0,wr.createSlice)({name:"loginInfoSlice",initialState:xr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(b,()=>xr),t.addCase(Z,(e,r)=>{e.loginMethod=r.payload.loginMethod,ie(oe())})}}),{setLoginMethod:va,setWalletConnectLogin:Ia,setLedgerLogin:Aa,setTokenLogin:vr,setTokenLoginSignature:ka,setWalletLogin:Ea,invalidateLoginSession:Ir,setLogoutRoute:La}=br.actions,we=br.reducer});var kr,Ar,Er,Na,Ma,Pa,Fa,ve,Ie=f(()=>{"use strict";s();kr=require("@reduxjs/toolkit");P();Ar={},Er=(0,kr.createSlice)({name:"modalsSlice",initialState:Ar,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(b,()=>Ar)}}),{setTxSubmittedModal:Na,setNotificationModal:Ma,clearTxSubmittedModal:Pa,clearNotificationModal:Fa}=Er.actions,ve=Er.reducer});var Lr=f(()=>{"use strict";s()});var Rr=f(()=>{"use strict";s();Lr()});function ct(t){return t[Math.floor(Math.random()*t.length)]}var _r=f(()=>{"use strict";s()});var Cr=f(()=>{"use strict";s();Ze()});var Nr=f(()=>{"use strict";s();Rr();_r();Cr()});var Mr,Pr,lt,mo,Fr,Qa,Za,Ae,ke=f(()=>{"use strict";s();Mr=require("@reduxjs/toolkit"),Pr=z(require("lodash.omit"));Nr();lt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mo={network:lt,chainID:"-1"},Fr=(0,Mr.createSlice)({name:"appConfig",initialState:mo,reducers:{initializeNetworkConfig:(t,e)=>{let r=ct(e.payload.walletConnectBridgeAddresses),n=ct(e.payload.walletConnectV2RelayAddresses),o=(0,Pr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=I(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Qa,setChainID:Za}=Fr.actions,Ae=Fr.reducer});var Dr,pt,Br,os,is,as,Ee,Le=f(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");Q();P();pt={isSigning:!1,signedSessions:{}},Br=(0,Dr.createSlice)({name:"signedMessageInfoSliceState",initialState:pt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return I(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:I(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>pt},extraReducers:t=>{t.addCase(b,()=>pt)}}),{setSignSession:os,clearSignedMessageInfo:is,setSignSessionState:as}=Br.actions,Ee=Br.reducer});var Or,Gr,Ur,Hr,fs,ms,ys,hs,Ts,xs,Re,_e=f(()=>{"use strict";s();Or=require("@reduxjs/toolkit"),Gr=require("redux-persist");$e();Q();tt();P();Ur={customToasts:[],transactionToasts:[],failTransactionToast:null},Hr=(0,Or.createSlice)({name:"toastsSlice",initialState:Ur,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(I(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:he(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=I(T({},e.payload),{toastId:tr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(b,()=>Ur),t.addCase(Gr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:fs,removeCustomToast:ms,addTransactionToast:ys,removeTransactionToast:hs,addFailTransactionToast:Ts,removeFailTransactionToast:xs}=Hr.actions,Re=Hr.reducer});var zr,yo,ho,To,xo,ut,qr,vs,Is,As,Ce,Ne=f(()=>{"use strict";s();zr=require("@reduxjs/toolkit");P();yo="Transaction failed",ho="Transaction successful",To="Processing transaction",xo="Transaction submitted",ut={},qr=(0,zr.createSlice)({name:"transactionsInfo",initialState:ut,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||yo,successMessage:(n==null?void 0:n.successMessage)||ho,processingMessage:(n==null?void 0:n.processingMessage)||To,submittedMessage:(n==null?void 0:n.submittedMessage)||xo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>ut},extraReducers:t=>{t.addCase(b,()=>ut)}}),{clearTransactionsInfo:vs,setTransactionsDisplayInfo:Is,clearTransactionsInfoForSessionId:As}=qr.actions,Ce=qr.reducer});function Wr(t){return t!=null&&(Ao(t)||Eo(t))}function Vr(t){return t!=null&&(ko(t)||Lo(t))}function Ao(t){return t!=null&&wo.includes(t)}function ko(t){return t!=null&&bo.includes(t)}function Eo(t){return t!=null&&vo.includes(t)}function Lo(t){return t!=null&&Io.includes(t)}var Rs,wo,bo,_s,Cs,vo,Io,jr=f(()=>{"use strict";s();re();Rs=["sent"],wo=["success"],bo=["fail","cancelled","timedOut"],_s=["timedOut"],Cs=["pending"],vo=["success"],Io=["fail","invalid"]});var Kr,Yr,ae,Ro,Xr,Us,Os,Gs,Hs,zs,qs,Ws,Vs,js,Ks,Me,Pe=f(()=>{"use strict";s();Kr=require("@reduxjs/toolkit"),Yr=require("redux-persist");re();jr();P();ae={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ro={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Xr=(0,Kr.createSlice)({name:"transactionsSlice",initialState:ae,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,d=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||Ro;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:d},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=ae.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var d,l,m,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(d=t.signedTransactions)==null?void 0:d[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(F=>F.hash===i?I(T({},F),{status:n,errorMessage:o}):F);let v=(h=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:h.every(F=>Wr(F.status)),O=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(F=>Vr(F.status));v&&(t.signedTransactions[r].status="success"),O&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=ae.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=ae.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(b,()=>ae),t.addCase(Yr.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((d,[l,m])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(d[l]=m),d},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:Us,updateSignedTransactions:Os,setTransactionsToSign:Gs,clearAllTransactionsToSign:Hs,clearAllSignedTransactions:zs,clearSignedTransaction:qs,clearTransactionToSign:Ws,setSignTransactionsError:Vs,setSignTransactionsCancelMessage:js,moveTransactionsToSignedState:Ks}=Xr.actions,Me=Xr.reducer});var se=f(()=>{"use strict";s();Se();be();Ie();ke();Le();_e();Ne();Pe()});var dt=f(()=>{"use strict";s()});var tn,en,rn,Tc,xc,Sc,wc,bc,vc,nn,on=f(()=>{"use strict";s();tn=require("@reduxjs/toolkit");P();en={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},rn=(0,tn.createSlice)({name:"dappModalsSlice",initialState:en,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(b,()=>en)}}),{setDappModalVisibility:Tc,setDappModalHeaderVisibility:xc,setDappModalFooterVisibility:Sc,setDappModalHeaderText:wc,setDappModalFooterText:bc,setDappModalConfig:vc}=rn.actions,nn=rn.reducer});var an,Mo,Po,K,Ue=f(()=>{"use strict";s();an=require("@reduxjs/toolkit");dt();Se();on();be();Ie();ke();Le();_e();Ne();Pe();Mo={["account"]:xe,["dappModal"]:nn,["loginInfo"]:we,["modals"]:ve,["networkConfig"]:Ae,["signedMessageInfo"]:Ee,["toasts"]:Re,["transactionsInfo"]:Ce,["transactions"]:Me},Po=(t={})=>(0,an.combineReducers)(T(T({},Mo),t)),K=Po});var pn={};H(pn,{default:()=>Xo,sessionStorageReducers:()=>gt});function G(t,e=[]){return{key:t,version:1,storage:cn.default,blacklist:e}}var k,sn,cn,Fo,ce,Do,Bo,Uo,Oo,Go,Ho,zo,qo,Wo,ln,Vo,gt,jo,Ko,Yo,Xo,un=f(()=>{"use strict";s();k=require("redux-persist"),sn=z(require("redux-persist/lib/storage")),cn=z(require("redux-persist/lib/storage/session"));Ue();se();Se();be();Ie();ke();Le();_e();Ne();Pe();dt();Fo={persistReducersStorageType:"localStorage"},ce={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Do=G(ce["account"]),Bo=G(ce["loginInfo"]),Uo=G(ce["modals"]),Oo=G(ce["networkConfig"]),Go={2:t=>I(T({},t),{networkConfig:lt})};Ho=G("sdk-dapp-transactionsInfo"),zo=G("sdk-dapp-transactions",["transactionsToSign"]),qo=G("sdk-dapp-toasts"),Wo=G("sdk-dapp-signedMessageInfo"),ln={key:"sdk-dapp-store",version:2,storage:sn.default,whitelist:Object.keys(ce),migrate:(0,k.createMigrate)(Go,{debug:!1})},Vo=I(T({},ln),{whitelist:[]}),gt={["toasts"]:(0,k.persistReducer)(qo,Re),["transactions"]:(0,k.persistReducer)(zo,Me),["transactionsInfo"]:(0,k.persistReducer)(Ho,Ce),["signedMessageInfo"]:(0,k.persistReducer)(Wo,Ee)},jo=I(T({},gt),{["account"]:(0,k.persistReducer)(Do,xe),["loginInfo"]:(0,k.persistReducer)(Bo,we),["modals"]:(0,k.persistReducer)(Uo,ve),["networkConfig"]:(0,k.persistReducer)(Oo,Ae)}),Ko=Fo.persistReducersStorageType==="localStorage",Yo=Ko?(0,k.persistReducer)(ln,K(gt)):(0,k.persistReducer)(Vo,K(jo)),Xo=Yo});var dn={};H(dn,{default:()=>Jo});var Jo,gn=f(()=>{"use strict";s();Ue();Jo=K()});var fn={};H(fn,{default:()=>Zo});var L,Qo,Zo,mn=f(()=>{"use strict";s();L=require("redux-persist"),Qo=[L.FLUSH,L.REHYDRATE,L.PAUSE,L.PERSIST,L.PURGE,L.REGISTER],Zo=Qo});var Tn={};H(Tn,{default:()=>hn});function hn(t){return(0,yn.persistStore)(t)}var yn,xn=f(()=>{"use strict";s();yn=require("redux-persist")});var ti={};H(ti,{loginWithNativeAuthToken:()=>ei});module.exports=te(ti);s();P();se();s();var ft=require("@reduxjs/toolkit"),vn=require("react-redux/lib/utils/Subscription");se();s();var Zr=z(require("lodash.throttle"));ye();s();var Jr=z(require("lodash.isequal")),Fe=require("reselect");Q();var ic=(0,Fe.createSelectorCreator)(Fe.defaultMemoize,Jr.default),Qr=(t,e)=>t!=""&&Boolean(e);se();st();Te();ne();var _o=[me],De=!1,Co=(0,Zr.default)(()=>{ie(oe())},5e3),$r=t=>e=>r=>{var l;if(_o.includes(r.type))return e(r);let n=t.getState(),o=$.local.getItem(j.loginExpiresAt);if(!Qr((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return ie(oe());let a=Date.now();return o-a<0&&!De?setTimeout(()=>{De=!0,t.dispatch(Ir())},1e3):(De&&(De=!1),Co()),e(r)};s();s();function Be(){return typeof sessionStorage!="undefined"}var Sn=Be()?(un(),te(pn)).default:(gn(),te(dn)).default,wn=Be()?(mn(),te(fn)).default:[],bn=Be()?(xn(),te(Tn)).default:t=>t;Ue();var Oe=(0,ft.configureStore)({reducer:Sn,middleware:t=>t({serializableCheck:{ignoredActions:[...wn,Tr.type,hr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat($r)}),el=(0,vn.createSubscription)(Oe),tl=bn(Oe),rl=(0,ft.configureStore)({reducer:K});Q();s();s();s();function le(t){return atob(t)}s();s();s();function $o(t){return Object.prototype.toString.call(t)==="[object String]"}var In=t=>{if(!t||!$o(t))return null;try{let[e,r,n]=t.split("."),o=le(e),i=le(r),[a,d,l,m]=i.split("."),h=JSON.parse(le(m)),y=le(a),S={ttl:Number(l),address:o,extraInfo:h,host:y,signature:n,blockHash:d,body:i};return m==="e30"&&delete S.extraInfo,S}catch(e){return null}};function ei(t,e){let r=In(t);if(r==null)return;let n=e!=null?e:Oe.dispatch,{signature:o,address:i}=r;o&&t&&i&&(n(b()),setTimeout(()=>{n(vr({loginToken:t,signature:o,nativeAuthToken:t})),n(Z({address:i,loginMethod:"extra"}))}))}0&&(module.exports={loginWithNativeAuthToken});
1
+ "use strict";var An=Object.create;var ee=Object.defineProperty,kn=Object.defineProperties,En=Object.getOwnPropertyDescriptor,Ln=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,_n=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var yt=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))ht.call(e,r)&&yt(t,r,e[r]);if(mt)for(var r of mt(e))Cn.call(e,r)&&yt(t,r,e[r]);return t},I=(t,e)=>kn(t,Ln(e));var f=(t,e)=>()=>(t&&(e=t(t=0)),e);var pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),H=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})},Tt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Rn(e))!ht.call(t,o)&&o!==r&&ee(t,o,{get:()=>e[o],enumerable:!(n=En(e,o))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?An(_n(t)):{},Tt(e||!t||!t.__esModule?ee(r,"default",{value:t,enumerable:!0}):r,t)),te=t=>Tt(ee({},"__esModule",{value:!0}),t);var wt=pe(ue=>{"use strict";s();ue.byteLength=Mn;ue.toByteArray=Fn;ue.fromByteArray=Un;var R=[],E=[],Nn=typeof Uint8Array!="undefined"?Uint8Array:Array,Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(q=0,xt=Ge.length;q<xt;++q)R[q]=Ge[q],E[Ge.charCodeAt(q)]=q;var q,xt;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function St(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Mn(t){var e=St(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Pn(t,e,r){return(e+r)*3/4-r}function Fn(t){var e,r=St(t),n=r[0],o=r[1],i=new Nn(Pn(t,n,o)),a=0,d=o>0?n-4:n,l;for(l=0;l<d;l+=4)e=E[t.charCodeAt(l)]<<18|E[t.charCodeAt(l+1)]<<12|E[t.charCodeAt(l+2)]<<6|E[t.charCodeAt(l+3)],i[a++]=e>>16&255,i[a++]=e>>8&255,i[a++]=e&255;return o===2&&(e=E[t.charCodeAt(l)]<<2|E[t.charCodeAt(l+1)]>>4,i[a++]=e&255),o===1&&(e=E[t.charCodeAt(l)]<<10|E[t.charCodeAt(l+1)]<<4|E[t.charCodeAt(l+2)]>>2,i[a++]=e>>8&255,i[a++]=e&255),i}function Dn(t){return R[t>>18&63]+R[t>>12&63]+R[t>>6&63]+R[t&63]}function Bn(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(Dn(n));return o.join("")}function Un(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,d=r-n;a<d;a+=i)o.push(Bn(t,a,a+i>d?d:a+i));return n===1?(e=t[r-1],o.push(R[e>>2]+R[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(R[e>>10]+R[e>>4&63]+R[e<<2&63]+"=")),o.join("")}});var bt=pe(He=>{s();He.read=function(t,e,r,n,o){var i,a,d=o*8-n-1,l=(1<<d)-1,m=l>>1,h=-7,y=r?o-1:0,S=r?-1:1,v=t[e+y];for(y+=S,i=v&(1<<-h)-1,v>>=-h,h+=d;h>0;i=i*256+t[e+y],y+=S,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;h>0;a=a*256+t[e+y],y+=S,h-=8);if(i===0)i=1-m;else{if(i===l)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-m}return(v?-1:1)*a*Math.pow(2,i-n)};He.write=function(t,e,r,n,o,i){var a,d,l,m=i*8-o-1,h=(1<<m)-1,y=h>>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:i-1,O=n?1:-1,F=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+y>=1?e+=S/l:e+=S*Math.pow(2,1-y),e*l>=2&&(a++,l/=2),a+y>=h?(d=0,a=h):a+y>=1?(d=(e*l-1)*Math.pow(2,o),a=a+y):(d=e*Math.pow(2,y-1)*Math.pow(2,o),a=0));o>=8;t[r+v]=d&255,v+=O,d/=256,o-=8);for(a=a<<o|d,m+=o;m>0;t[r+v]=a&255,v+=O,a/=256,m-=8);t[r+v-O]|=F*128}});var Ft=pe(X=>{"use strict";s();var ze=wt(),Y=bt(),vt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;X.Buffer=c;X.SlowBuffer=Wn;X.INSPECT_MAX_BYTES=50;var de=2147483647;X.kMaxLength=de;c.TYPED_ARRAY_SUPPORT=On();!c.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 On(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function D(t){if(t>de)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return je(t)}return kt(t,e,r)}c.poolSize=8192;function kt(t,e,r){if(typeof t=="string")return Hn(t,e);if(ArrayBuffer.isView(t))return zn(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return We(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var o=qn(t);if(o)return o;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return kt(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function Et(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Gn(t,e,r){return Et(t),t<=0?D(t):e!==void 0?typeof r=="string"?D(t).fill(e,r):D(t).fill(e):D(t)}c.alloc=function(t,e,r){return Gn(t,e,r)};function je(t){return Et(t),D(t<0?0:Ke(t)|0)}c.allocUnsafe=function(t){return je(t)};c.allocUnsafeSlow=function(t){return je(t)};function Hn(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Lt(t,e)|0,n=D(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function qe(t){for(var e=t.length<0?0:Ke(t.length)|0,r=D(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function zn(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return We(e.buffer,e.byteOffset,e.byteLength)}return qe(t)}function We(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function qn(t){if(c.isBuffer(t)){var e=Ke(t.length)|0,r=D(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Ye(t.length)?D(0):qe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return qe(t.data)}function Ke(t){if(t>=de)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de.toString(16)+" bytes");return t|0}function Wn(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(_(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};c.isEncoding=function(e){switch(String(e).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}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=c.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))i+a.length>o.length?c.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(c.isBuffer(a))a.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o};function Lt(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ve(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Pt(t).length;default:if(o)return n?-1:Ve(t).length;e=(""+e).toLowerCase(),o=!0}}c.byteLength=Lt;function Vn(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return to(this,e,r);case"utf8":case"utf-8":return _t(this,e,r);case"ascii":return $n(this,e,r);case"latin1":case"binary":return eo(this,e,r);case"base64":return Qn(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ro(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function W(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)W(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)W(this,r,r+3),W(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)W(this,r,r+7),W(this,r+1,r+6),W(this,r+2,r+5),W(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?_t(this,0,e):Vn.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=X.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};vt&&(c.prototype[vt]=c.prototype.inspect);c.prototype.compare=function(e,r,n,o,i){if(_(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,d=n-r,l=Math.min(a,d),m=this.slice(o,i),h=e.slice(r,n),y=0;y<l;++y)if(m[y]!==h[y]){a=m[y],d=h[y];break}return a<d?-1:d<a?1:0};function Rt(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ye(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:It(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):It(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function It(t,e,r,n,o){var i=1,a=t.length,d=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,a/=2,d/=2,r/=2}function l(v,O){return i===1?v[O]:v.readUInt16BE(O*i)}var m;if(o){var h=-1;for(m=r;m<a;m++)if(l(t,m)===l(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===d)return h*i}else h!==-1&&(m-=m-h),h=-1}else for(r+d>a&&(r=a-d),m=r;m>=0;m--){for(var y=!0,S=0;S<d;S++)if(l(t,m+S)!==l(e,S)){y=!1;break}if(y)return m}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return Rt(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return Rt(this,e,r,n,!1)};function jn(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var d=parseInt(e.substr(a*2,2),16);if(Ye(d))return a;t[r+a]=d}return a}function Kn(t,e,r,n){return ge(Ve(e,t.length-r),t,r,n)}function Yn(t,e,r,n){return ge(io(e),t,r,n)}function Xn(t,e,r,n){return ge(Pt(e),t,r,n)}function Jn(t,e,r,n){return ge(ao(e,t.length-r),t,r,n)}c.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return jn(this,e,r,n);case"utf8":case"utf-8":return Kn(this,e,r,n);case"ascii":case"latin1":case"binary":return Yn(this,e,r,n);case"base64":return Xn(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jn(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qn(t,e,r){return e===0&&r===t.length?ze.fromByteArray(t):ze.fromByteArray(t.slice(e,r))}function _t(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,d=i>239?4:i>223?3:i>191?2:1;if(o+d<=r){var l,m,h,y;switch(d){case 1:i<128&&(a=i);break;case 2:l=t[o+1],(l&192)===128&&(y=(i&31)<<6|l&63,y>127&&(a=y));break;case 3:l=t[o+1],m=t[o+2],(l&192)===128&&(m&192)===128&&(y=(i&15)<<12|(l&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:l=t[o+1],m=t[o+2],h=t[o+3],(l&192)===128&&(m&192)===128&&(h&192)===128&&(y=(i&15)<<18|(l&63)<<12|(m&63)<<6|h&63,y>65535&&y<1114112&&(a=y))}}a===null?(a=65533,d=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=d}return Zn(n)}var At=4096;function Zn(t){var e=t.length;if(e<=At)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=At));return r}function $n(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function eo(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function to(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=so[t[i]];return o}function ro(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o=this.subarray(e,r);return Object.setPrototypeOf(o,c.prototype),o};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return o};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e+--r],i=1;r>0&&(i*=256);)o+=this[e+--r]*i;return o};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=this[e],i=1,a=0;++a<r&&(i*=256);)o+=this[e+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var o=r,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};c.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),Y.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),Y.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),Y.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),Y.read(this,e,!1,52,8)};function A(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;A(this,e,r,n,i,0)}var a=1,d=0;for(this[r]=e&255;++d<n&&(a*=256);)this[r+d]=e/a&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;A(this,e,r,n,i,0)}var a=n-1,d=1;for(this[r+a]=e&255;--a>=0&&(d*=256);)this[r+a]=e/d&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);A(this,e,r,n,i-1,-i)}var a=0,d=1,l=0;for(this[r]=e&255;++a<n&&(d*=256);)e<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(e/d>>0)-l&255;return r+n};c.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){var i=Math.pow(2,8*n-1);A(this,e,r,n,i-1,-i)}var a=n-1,d=1,l=0;for(this[r+a]=e&255;--a>=0&&(d*=256);)e<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(e/d>>0)-l&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||A(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ct(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nt(t,e,r,n,o){return e=+e,r=r>>>0,o||Ct(t,e,r,4,34028234663852886e22,-34028234663852886e22),Y.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return Nt(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return Nt(this,e,r,!1,n)};function Mt(t,e,r,n,o){return e=+e,r=r>>>0,o||Ct(t,e,r,8,17976931348623157e292,-17976931348623157e292),Y.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Mt(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Mt(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,o){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};c.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var d=c.isBuffer(e)?e:c.from(e,o),l=d.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=d[a%l]}return this};var no=/[^+/0-9A-Za-z-_]/g;function oo(t){if(t=t.split("=")[0],t=t.trim().replace(no,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ve(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function io(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ao(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Pt(t){return ze.toByteArray(oo(t))}function ge(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Ye(t){return t!==t}var so=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()});var Gt=pe((ai,Ot)=>{s();var x=Ot.exports={},C,N;function Xe(){throw new Error("setTimeout has not been defined")}function Je(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?C=setTimeout:C=Xe}catch(t){C=Xe}try{typeof clearTimeout=="function"?N=clearTimeout:N=Je}catch(t){N=Je}})();function Dt(t){if(C===setTimeout)return setTimeout(t,0);if((C===Xe||!C)&&setTimeout)return C=setTimeout,setTimeout(t,0);try{return C(t,0)}catch(e){try{return C.call(null,t,0)}catch(r){return C.call(this,t,0)}}}function co(t){if(N===clearTimeout)return clearTimeout(t);if((N===Je||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch(e){try{return N.call(null,t)}catch(r){return N.call(this,t)}}}var B=[],J=!1,V,fe=-1;function lo(){!J||!V||(J=!1,V.length?B=V.concat(B):fe=-1,B.length&&Bt())}function Bt(){if(!J){var t=Dt(lo);J=!0;for(var e=B.length;e;){for(V=B,B=[];++fe<e;)V&&V[fe].run();fe=-1,e=B.length}V=null,J=!1,co(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];B.push(new Ut(t,e)),B.length===1&&!J&&Dt(Bt)};function Ut(t,e){this.fun=t,this.array=e}Ut.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function U(){}x.on=U;x.addListener=U;x.once=U;x.off=U;x.removeListener=U;x.removeAllListeners=U;x.emit=U;x.prependListener=U;x.prependOnceListener=U;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var p,u,si,s=f(()=>{p=z(Ft()),u=z(Gt()),si=function(t){function e(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:e});var r=__magic__;return r}(Object)});var Ht=f(()=>{"use strict";s()});var zt=f(()=>{"use strict";s()});var qt=f(()=>{"use strict";s()});var Wt=f(()=>{"use strict";s()});var re=f(()=>{"use strict";s()});var Vt=f(()=>{"use strict";s()});var jt=f(()=>{"use strict";s()});var Kt=f(()=>{"use strict";s()});var Yt=f(()=>{"use strict";s()});var Xt=f(()=>{"use strict";s()});var Q=f(()=>{"use strict";s();zt();qt();Wt();re();Vt();jt();Kt();Yt();Xt()});var Qe,Jt,ki,Qt,Ei,Zt,Li,Ri,_i,$t=f(()=>{"use strict";s();Q();Qe={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",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},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",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},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",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Jt,egldLabel:ki}=Qe["devnet"],{chainId:Qt,egldLabel:Ei}=Qe["testnet"],{chainId:Zt,egldLabel:Li}=Qe["mainnet"],Ri={["devnet"]:Jt,["testnet"]:Qt,["mainnet"]:Zt},_i={[Jt]:"devnet",[Qt]:"testnet",[Zt]:"mainnet"}});var Ze=f(()=>{"use strict";s()});var er=f(()=>{"use strict";s()});var tr,$e=f(()=>{"use strict";s();tr="transaction-status-toast-id"});var M,rr=f(()=>{"use strict";s();M=require("@multiversx/sdk-web-wallet-provider")});var me,nr,or,ye=f(()=>{"use strict";s();Ht();$t();Ze();er();$e();rr();me="logout",nr="login",or="0"});var et,b,Z,P=f(()=>{"use strict";s();et=require("@reduxjs/toolkit");ye();b=(0,et.createAction)(me),Z=(0,et.createAction)(nr,t=>({payload:t}))});var he,tt=f(()=>{"use strict";s();he=()=>Date.now()/1e3});var ir=f(()=>{"use strict";s()});var ar=f(()=>{"use strict";s()});var sr=f(()=>{"use strict";s();tt();ir();ar()});var nt={};H(nt,{getItem:()=>uo,localStorageKeys:()=>j,removeItem:()=>go,setItem:()=>po});var j,rt,po,uo,go,ne=f(()=>{"use strict";s();sr();j={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},rt=typeof localStorage!="undefined",po=({key:t,data:e,expires:r})=>{!rt||localStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},uo=t=>{if(!rt)return;let e=localStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:he()>=r.expires?(localStorage.removeItem(String(t)),null):r.data},go=t=>{!rt||localStorage.removeItem(String(t))}});var ot={};H(ot,{clear:()=>ur,getItem:()=>lr,removeItem:()=>pr,setItem:()=>cr,storage:()=>fo});var cr,lr,pr,ur,fo,dr=f(()=>{"use strict";s();cr=({key:t,data:e,expires:r})=>{sessionStorage.setItem(String(t),JSON.stringify({expires:r,data:e}))},lr=t=>{let e=sessionStorage.getItem(String(t));if(!e)return null;let r=JSON.parse(e);return!r||!r.hasOwnProperty("expires")||!r.hasOwnProperty("data")?null:Date.now()>=r.expires?(sessionStorage.removeItem(String(t)),null):r.data},pr=t=>sessionStorage.removeItem(String(t)),ur=()=>sessionStorage.clear(),fo={setItem:cr,getItem:lr,removeItem:pr,clear:ur}});var $,Te=f(()=>{"use strict";s();ne();dr();$={session:ot,local:nt}});var at,gr,fr,mr,it,yr,hr,aa,Tr,sa,ca,la,pa,ua,da,ga,xe,Se=f(()=>{"use strict";s();at=require("@multiversx/sdk-core"),gr=require("@reduxjs/toolkit"),fr=require("redux-persist");ye();Te();ne();P();mr={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:or},it={address:"",websocketEvent:null,accounts:{"":mr},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},yr=(0,gr.createSlice)({name:"accountInfoSlice",initialState:it,reducers:{setAddress:(t,e)=>{let r=e.payload;t.address=r,t.publicKey=new at.Address(r).hex()},setAccount:(t,e)=>{let r=t.address===e.payload.address;t.accounts={[t.address]:r?e.payload:mr},t.shard=e.payload.shard,t.isAccountLoading=!1,t.accountLoadingError=null},setAccountNonce:(t,e)=>{let{address:r}=t;t.accounts[r].nonce=e.payload},setAccountShard:(t,e)=>{t.shard=e.payload},setLedgerAccount:(t,e)=>{t.ledgerAccount=e.payload},updateLedgerAccount:(t,e)=>{t.ledgerAccount!=null&&(t.ledgerAccount.index=e.payload.index,t.ledgerAccount.address=e.payload.address)},setWalletConnectAccount:(t,e)=>{t.walletConnectAccount=e.payload},setIsAccountLoading:(t,e)=>{t.isAccountLoading=e.payload,t.accountLoadingError=null},setAccountLoadingError:(t,e)=>{t.accountLoadingError=e.payload,t.isAccountLoading=!1},setWebsocketEvent:(t,e)=>{t.websocketEvent={timestamp:Date.now(),message:e.payload}}},extraReducers:t=>{t.addCase(b,()=>($.local.removeItem(j.loginExpiresAt),it)),t.addCase(Z,(e,r)=>{let{address:n}=r.payload;e.address=n,e.publicKey=new at.Address(n).hex()}),t.addCase(fr.REHYDRATE,(e,r)=>{var m;if(!((m=r.payload)!=null&&m.account))return;let{account:n}=r.payload,{address:o,shard:i,accounts:a,publicKey:d}=n;e.address=o,e.shard=i;let l=a&&o in a;e.accounts=l?a:it.accounts,e.publicKey=d})}}),{setAccount:hr,setAddress:aa,setAccountNonce:Tr,setAccountShard:sa,setLedgerAccount:ca,updateLedgerAccount:la,setWalletConnectAccount:pa,setIsAccountLoading:ua,setAccountLoadingError:da,setWebsocketEvent:ga}=yr.actions,xe=yr.reducer});function oe(){return new Date().setHours(new Date().getHours()+24)}function ie(t){$.local.setItem({key:j.loginExpiresAt,data:t,expires:t})}var st=f(()=>{"use strict";s();Te();ne()});var wr,xr,br,va,Ia,Aa,vr,ka,Ea,Ir,La,we,be=f(()=>{"use strict";s();wr=require("@reduxjs/toolkit");st();re();P();xr={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},br=(0,wr.createSlice)({name:"loginInfoSlice",initialState:xr,reducers:{setLoginMethod:(t,e)=>{t.loginMethod=e.payload},setTokenLogin:(t,e)=>{t.tokenLogin=e.payload},setTokenLoginSignature:(t,e)=>{(t==null?void 0:t.tokenLogin)!=null&&(t.tokenLogin.signature=e.payload)},setWalletLogin:(t,e)=>{t.walletLogin=e.payload},setWalletConnectLogin:(t,e)=>{t.walletConnectLogin=e.payload},setLedgerLogin:(t,e)=>{t.ledgerLogin=e.payload},invalidateLoginSession:t=>{t.isLoginSessionInvalid=!0},setLogoutRoute:(t,e)=>{t.logoutRoute=e.payload}},extraReducers:t=>{t.addCase(b,()=>xr),t.addCase(Z,(e,r)=>{e.loginMethod=r.payload.loginMethod,ie(oe())})}}),{setLoginMethod:va,setWalletConnectLogin:Ia,setLedgerLogin:Aa,setTokenLogin:vr,setTokenLoginSignature:ka,setWalletLogin:Ea,invalidateLoginSession:Ir,setLogoutRoute:La}=br.actions,we=br.reducer});var kr,Ar,Er,Na,Ma,Pa,Fa,ve,Ie=f(()=>{"use strict";s();kr=require("@reduxjs/toolkit");P();Ar={},Er=(0,kr.createSlice)({name:"modalsSlice",initialState:Ar,reducers:{setTxSubmittedModal:(t,e)=>{t.txSubmittedModal=e.payload},setNotificationModal:(t,e)=>{t.notificationModal=e.payload},clearTxSubmittedModal:t=>{t.txSubmittedModal=void 0},clearNotificationModal:t=>{t.notificationModal=void 0}},extraReducers:t=>{t.addCase(b,()=>Ar)}}),{setTxSubmittedModal:Na,setNotificationModal:Ma,clearTxSubmittedModal:Pa,clearNotificationModal:Fa}=Er.actions,ve=Er.reducer});var Lr=f(()=>{"use strict";s()});var Rr=f(()=>{"use strict";s();Lr()});function ct(t){return t[Math.floor(Math.random()*t.length)]}var _r=f(()=>{"use strict";s()});var Cr=f(()=>{"use strict";s();Ze()});var Nr=f(()=>{"use strict";s();Rr();_r();Cr()});var Mr,Pr,lt,mo,Fr,Qa,Za,Ae,ke=f(()=>{"use strict";s();Mr=require("@reduxjs/toolkit"),Pr=z(require("lodash.omit"));Nr();lt={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},mo={network:lt,chainID:"-1"},Fr=(0,Mr.createSlice)({name:"appConfig",initialState:mo,reducers:{initializeNetworkConfig:(t,e)=>{let r=ct(e.payload.walletConnectBridgeAddresses),n=ct(e.payload.walletConnectV2RelayAddresses),o=(0,Pr.default)(e.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");t.network=I(T(T({},t.network),o),{walletConnectBridgeAddress:r,walletConnectV2RelayAddress:n})},setChainID:(t,e)=>{t.chainID=e.payload}}}),{initializeNetworkConfig:Qa,setChainID:Za}=Fr.actions,Ae=Fr.reducer});var Dr,pt,Br,os,is,as,Ee,Le=f(()=>{"use strict";s();Dr=require("@reduxjs/toolkit");Q();P();pt={isSigning:!1,signedSessions:{}},Br=(0,Dr.createSlice)({name:"signedMessageInfoSliceState",initialState:pt,reducers:{setSignSession:(t,e)=>{let{sessionId:r,signedSession:n,errorMessage:o}=e.payload;return I(T({},t),{errorMessage:o!=null?o:t.errorMessage,isSigning:n.status==="pending",signedSessions:I(T({},t.signedSessions),{[r]:n})})},setSignSessionState:(t,e)=>T(T({},t),e.payload),clearSignedMessageInfo:()=>pt},extraReducers:t=>{t.addCase(b,()=>pt)}}),{setSignSession:os,clearSignedMessageInfo:is,setSignSessionState:as}=Br.actions,Ee=Br.reducer});var Or,Gr,Ur,Hr,fs,ms,ys,hs,Ts,xs,Re,_e=f(()=>{"use strict";s();Or=require("@reduxjs/toolkit"),Gr=require("redux-persist");$e();Q();tt();P();Ur={customToasts:[],transactionToasts:[],failTransactionToast:null},Hr=(0,Or.createSlice)({name:"toastsSlice",initialState:Ur,reducers:{addCustomToast:(t,e)=>{t.customToasts.push(I(T({},e.payload),{type:"custom",toastId:e.payload.toastId||`custom-toast-${t.customToasts.length+1}`}))},removeCustomToast:(t,e)=>{t.customToasts=t.customToasts.filter(r=>r.toastId!==e.payload)},addTransactionToast:(t,e)=>{t.transactionToasts.push({type:"transaction",startTimestamp:he(),toastId:e.payload||`custom-toast-${t.transactionToasts.length+1}`})},removeTransactionToast:(t,e)=>{t.transactionToasts=t.transactionToasts.filter(r=>r.toastId!==e.payload)},addFailTransactionToast:(t,e)=>{t.failTransactionToast=I(T({},e.payload),{toastId:tr})},removeFailTransactionToast:t=>{t.failTransactionToast=null}},extraReducers:t=>{t.addCase(b,()=>Ur),t.addCase(Gr.REHYDRATE,(e,r)=>{var o,i;let n=(i=(o=r.customToasts)==null?void 0:o.filter(a=>!("component"in a)))!=null?i:[];e.customToasts=n})}}),{addCustomToast:fs,removeCustomToast:ms,addTransactionToast:ys,removeTransactionToast:hs,addFailTransactionToast:Ts,removeFailTransactionToast:xs}=Hr.actions,Re=Hr.reducer});var zr,yo,ho,To,xo,ut,qr,vs,Is,As,Ce,Ne=f(()=>{"use strict";s();zr=require("@reduxjs/toolkit");P();yo="Transaction failed",ho="Transaction successful",To="Processing transaction",xo="Transaction submitted",ut={},qr=(0,zr.createSlice)({name:"transactionsInfo",initialState:ut,reducers:{setTransactionsDisplayInfo(t,e){let{sessionId:r,transactionsDisplayInfo:n}=e.payload;r!=null&&(t[r]={errorMessage:(n==null?void 0:n.errorMessage)||yo,successMessage:(n==null?void 0:n.successMessage)||ho,processingMessage:(n==null?void 0:n.processingMessage)||To,submittedMessage:(n==null?void 0:n.submittedMessage)||xo,transactionDuration:n==null?void 0:n.transactionDuration})},clearTransactionsInfoForSessionId(t,e){e.payload!=null&&delete t[e.payload]},clearTransactionsInfo:()=>ut},extraReducers:t=>{t.addCase(b,()=>ut)}}),{clearTransactionsInfo:vs,setTransactionsDisplayInfo:Is,clearTransactionsInfoForSessionId:As}=qr.actions,Ce=qr.reducer});function Wr(t){return t!=null&&(Ao(t)||Eo(t))}function Vr(t){return t!=null&&(ko(t)||Lo(t))}function Ao(t){return t!=null&&wo.includes(t)}function ko(t){return t!=null&&bo.includes(t)}function Eo(t){return t!=null&&vo.includes(t)}function Lo(t){return t!=null&&Io.includes(t)}var Rs,wo,bo,_s,Cs,vo,Io,jr=f(()=>{"use strict";s();re();Rs=["sent"],wo=["success"],bo=["fail","cancelled","timedOut"],_s=["timedOut"],Cs=["pending"],vo=["success"],Io=["fail","invalid"]});var Kr,Yr,ae,Ro,Xr,Us,Os,Gs,Hs,zs,qs,Ws,Vs,js,Ks,Me,Pe=f(()=>{"use strict";s();Kr=require("@reduxjs/toolkit"),Yr=require("redux-persist");re();jr();P();ae={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Ro={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Xr=(0,Kr.createSlice)({name:"transactionsSlice",initialState:ae,reducers:{moveTransactionsToSignedState:(t,e)=>{var l,m;let{sessionId:r,transactions:n,errorMessage:o,status:i,redirectRoute:a}=e.payload,d=((l=t.customTransactionInformationForSessionId)==null?void 0:l[r])||Ro;t.signedTransactions[r]={transactions:n,status:i,errorMessage:o,redirectRoute:a,customTransactionInformation:d},((m=t==null?void 0:t.transactionsToSign)==null?void 0:m.sessionId)===r&&(t.transactionsToSign=ae.transactionsToSign)},clearSignedTransaction:(t,e)=>{t.signedTransactions[e.payload]&&delete t.signedTransactions[e.payload]},clearTransactionToSign:t=>{t!=null&&t.transactionsToSign&&(t.transactionsToSign=null)},updateSignedTransaction:(t,e)=>{t.signedTransactions=T(T({},t.signedTransactions),e.payload)},updateSignedTransactions:(t,e)=>{let{sessionId:r,status:n,errorMessage:o,transactions:i}=e.payload;t.signedTransactions[r]!=null&&(t.signedTransactions[r].status=n,o!=null&&(t.signedTransactions[r].errorMessage=o),i!=null&&(t.signedTransactions[r].transactions=i))},updateSignedTransactionStatus:(t,e)=>{var d,l,m,h,y,S;let{sessionId:r,status:n,errorMessage:o,transactionHash:i}=e.payload,a=(l=(d=t.signedTransactions)==null?void 0:d[r])==null?void 0:l.transactions;if(a!=null){t.signedTransactions[r].transactions=a.map(F=>F.hash===i?I(T({},F),{status:n,errorMessage:o}):F);let v=(h=(m=t.signedTransactions[r])==null?void 0:m.transactions)==null?void 0:h.every(F=>Wr(F.status)),O=(S=(y=t.signedTransactions[r])==null?void 0:y.transactions)==null?void 0:S.every(F=>Vr(F.status));v&&(t.signedTransactions[r].status="success"),O&&(t.signedTransactions[r].status="fail")}},setTransactionsToSign:(t,e)=>{t.transactionsToSign=e.payload;let{sessionId:r,customTransactionInformation:n}=e.payload;t.customTransactionInformationForSessionId[r]=n,t.signTransactionsError=null},clearAllTransactionsToSign:t=>{t.transactionsToSign=ae.transactionsToSign,t.signTransactionsError=null},clearAllSignedTransactions:t=>{t.signedTransactions=ae.signedTransactions},setSignTransactionsError:(t,e)=>{t.signTransactionsError=e.payload},setSignTransactionsCancelMessage:(t,e)=>{t.signTransactionsCancelMessage=e.payload}},extraReducers:t=>{t.addCase(b,()=>ae),t.addCase(Yr.REHYDRATE,(e,r)=>{var a;if(e.signTransactionsCancelMessage=null,!((a=r.payload)!=null&&a.transactions))return;let{signedTransactions:n,customTransactionInformationForSessionId:o}=r.payload.transactions,i=Object.entries(n).reduce((d,[l,m])=>{let h=new Date(l),y=new Date;return y.setHours(y.getHours()+5),y-h>0||(d[l]=m),d},{});o!=null&&(e.customTransactionInformationForSessionId=o),n!=null&&(e.signedTransactions=i)})}}),{updateSignedTransactionStatus:Us,updateSignedTransactions:Os,setTransactionsToSign:Gs,clearAllTransactionsToSign:Hs,clearAllSignedTransactions:zs,clearSignedTransaction:qs,clearTransactionToSign:Ws,setSignTransactionsError:Vs,setSignTransactionsCancelMessage:js,moveTransactionsToSignedState:Ks}=Xr.actions,Me=Xr.reducer});var se=f(()=>{"use strict";s();Se();be();Ie();ke();Le();_e();Ne();Pe()});var dt=f(()=>{"use strict";s()});var tn,en,rn,Tc,xc,Sc,wc,bc,vc,nn,on=f(()=>{"use strict";s();tn=require("@reduxjs/toolkit");P();en={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},rn=(0,tn.createSlice)({name:"dappModalsSlice",initialState:en,reducers:{setDappModalVisibility:(t,e)=>{t.visible=e.payload},setDappModalHeaderVisibility:(t,e)=>{t.modal.showHeader=e.payload},setDappModalFooterVisibility:(t,e)=>{t.modal.showFooter=e.payload},setDappModalHeaderText:(t,e)=>{t.modal.headerText=e.payload},setDappModalFooterText:(t,e)=>{t.modal.footerText=e.payload},setDappModalConfig:(t,e)=>{t.modal=T({},e.payload)}},extraReducers:t=>{t.addCase(b,()=>en)}}),{setDappModalVisibility:Tc,setDappModalHeaderVisibility:xc,setDappModalFooterVisibility:Sc,setDappModalHeaderText:wc,setDappModalFooterText:bc,setDappModalConfig:vc}=rn.actions,nn=rn.reducer});var an,Mo,Po,K,Ue=f(()=>{"use strict";s();an=require("@reduxjs/toolkit");dt();Se();on();be();Ie();ke();Le();_e();Ne();Pe();Mo={["account"]:xe,["dappModal"]:nn,["loginInfo"]:we,["modals"]:ve,["networkConfig"]:Ae,["signedMessageInfo"]:Ee,["toasts"]:Re,["transactionsInfo"]:Ce,["transactions"]:Me},Po=(t={})=>(0,an.combineReducers)(T(T({},Mo),t)),K=Po});var pn={};H(pn,{default:()=>Xo,sessionStorageReducers:()=>gt});function G(t,e=[]){return{key:t,version:1,storage:cn.default,blacklist:e}}var k,sn,cn,Fo,ce,Do,Bo,Uo,Oo,Go,Ho,zo,qo,Wo,ln,Vo,gt,jo,Ko,Yo,Xo,un=f(()=>{"use strict";s();k=require("redux-persist"),sn=z(require("redux-persist/lib/storage")),cn=z(require("redux-persist/lib/storage/session"));Ue();se();Se();be();Ie();ke();Le();_e();Ne();Pe();dt();Fo={persistReducersStorageType:"localStorage"},ce={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Do=G(ce["account"]),Bo=G(ce["loginInfo"]),Uo=G(ce["modals"]),Oo=G(ce["networkConfig"]),Go={2:t=>I(T({},t),{networkConfig:lt})};Ho=G("sdk-dapp-transactionsInfo"),zo=G("sdk-dapp-transactions",["transactionsToSign"]),qo=G("sdk-dapp-toasts"),Wo=G("sdk-dapp-signedMessageInfo"),ln={key:"sdk-dapp-store",version:2,storage:sn.default,whitelist:Object.keys(ce),migrate:(0,k.createMigrate)(Go,{debug:!1})},Vo=I(T({},ln),{whitelist:[]}),gt={["toasts"]:(0,k.persistReducer)(qo,Re),["transactions"]:(0,k.persistReducer)(zo,Me),["transactionsInfo"]:(0,k.persistReducer)(Ho,Ce),["signedMessageInfo"]:(0,k.persistReducer)(Wo,Ee)},jo=I(T({},gt),{["account"]:(0,k.persistReducer)(Do,xe),["loginInfo"]:(0,k.persistReducer)(Bo,we),["modals"]:(0,k.persistReducer)(Uo,ve),["networkConfig"]:(0,k.persistReducer)(Oo,Ae)}),Ko=Fo.persistReducersStorageType==="localStorage",Yo=Ko?(0,k.persistReducer)(ln,K(gt)):(0,k.persistReducer)(Vo,K(jo)),Xo=Yo});var dn={};H(dn,{default:()=>Jo});var Jo,gn=f(()=>{"use strict";s();Ue();Jo=K()});var fn={};H(fn,{default:()=>Zo});var L,Qo,Zo,mn=f(()=>{"use strict";s();L=require("redux-persist"),Qo=[L.FLUSH,L.REHYDRATE,L.PAUSE,L.PERSIST,L.PURGE,L.REGISTER],Zo=Qo});var Tn={};H(Tn,{default:()=>hn});function hn(t){return(0,yn.persistStore)(t)}var yn,xn=f(()=>{"use strict";s();yn=require("redux-persist")});var ti={};H(ti,{loginWithNativeAuthToken:()=>ei});module.exports=te(ti);s();P();se();s();var ft=require("@reduxjs/toolkit"),vn=require("react-redux/lib/utils/Subscription");se();s();var Zr=z(require("lodash.throttle"));ye();s();var Jr=z(require("lodash.isequal")),Fe=require("reselect");Q();var ic=(0,Fe.createSelectorCreator)(Fe.defaultMemoize,Jr.default),Qr=(t,e)=>t!=""&&Boolean(e);se();st();Te();ne();var _o=[me],De=!1,Co=(0,Zr.default)(()=>{ie(oe())},5e3),$r=t=>e=>r=>{var l;if(_o.includes(r.type))return e(r);let n=t.getState(),o=$.local.getItem(j.loginExpiresAt);if(!Qr((l=n==null?void 0:n.loginInfo)==null?void 0:l.loginMethod,n==null?void 0:n.account.address))return e(r);if(o==null)return ie(oe());let a=Date.now();return o-a<0&&!De?setTimeout(()=>{De=!0,t.dispatch(Ir())},1e3):(De&&(De=!1),Co()),e(r)};s();s();function Be(){return typeof sessionStorage!="undefined"}var Sn=Be()?(un(),te(pn)).default:(gn(),te(dn)).default,wn=Be()?(mn(),te(fn)).default:[],bn=Be()?(xn(),te(Tn)).default:t=>t;Ue();var Oe=(0,ft.configureStore)({reducer:Sn,middleware:t=>t({serializableCheck:{ignoredActions:[...wn,Tr.type,hr.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat($r)}),el=(0,vn.createSubscription)(Oe),tl=bn(Oe),rl=(0,ft.configureStore)({reducer:K});Q();s();s();s();function le(t){return atob(t)}s();s();s();function $o(t){return Object.prototype.toString.call(t)==="[object String]"}var In=t=>{if(!t||!$o(t))return null;try{let[e,r,n]=t.split("."),o=le(e),i=le(r),[a,d,l,m]=i.split("."),h=JSON.parse(le(m)),y=le(a),S={ttl:Number(l),address:o,extraInfo:h,origin:y,signature:n,blockHash:d,body:i};return m==="e30"&&delete S.extraInfo,S}catch(e){return null}};function ei(t,e){let r=In(t);if(r==null)return;let n=e!=null?e:Oe.dispatch,{signature:o,address:i}=r;o&&t&&i&&(n(b()),setTimeout(()=>{n(vr({loginToken:t,signature:o,nativeAuthToken:t})),n(Z({address:i,loginMethod:"extra"}))}))}0&&(module.exports={loginWithNativeAuthToken});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Yr=Object.create;var H=Object.defineProperty;var zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames,pr=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;var cr=(e,r,t)=>r in e?H(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,J=(e,r)=>{for(var t in r||(r={}))hr.call(r,t)&&cr(e,t,r[t]);if(pr)for(var t of pr(r))Qr.call(r,t)&&cr(e,t,r[t]);return e};var Zr=(e,r)=>()=>(e&&(r=e(e=0)),r);var G=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),jr=(e,r)=>{for(var t in r)H(e,t,{get:r[t],enumerable:!0})},fr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Jr(r))!hr.call(e,i)&&i!==t&&H(e,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return e};var X=(e,r,t)=>(t=e!=null?Yr(Xr(e)):{},fr(r||!e||!e.__esModule?H(t,"default",{value:e,enumerable:!0}):t,e)),rt=e=>fr(H({},"__esModule",{value:!0}),e);var F=(e,r,t)=>new Promise((n,i)=>{var o=p=>{try{s(t.next(p))}catch(h){i(h)}},u=p=>{try{s(t.throw(p))}catch(h){i(h)}},s=p=>p.done?n(p.value):Promise.resolve(p.value).then(o,u);s((t=t.apply(e,r)).next())});var yr=G(K=>{"use strict";c();K.byteLength=et;K.toByteArray=it;K.fromByteArray=at;var B=[],A=[],tt=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,lr=Q.length;_<lr;++_)B[_]=Q[_],A[Q.charCodeAt(_)]=_;var _,lr;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function xr(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 n=t===r?0:4-t%4;return[t,n]}function et(e){var r=xr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function nt(e,r,t){return(r+t)*3/4-t}function it(e){var r,t=xr(e),n=t[0],i=t[1],o=new tt(nt(e,n,i)),u=0,s=i>0?n-4:n,p;for(p=0;p<s;p+=4)r=A[e.charCodeAt(p)]<<18|A[e.charCodeAt(p+1)]<<12|A[e.charCodeAt(p+2)]<<6|A[e.charCodeAt(p+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=A[e.charCodeAt(p)]<<2|A[e.charCodeAt(p+1)]>>4,o[u++]=r&255),i===1&&(r=A[e.charCodeAt(p)]<<10|A[e.charCodeAt(p+1)]<<4|A[e.charCodeAt(p+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function ot(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function ut(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(ot(n));return i.join("")}function at(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,s=t-n;u<s;u+=o)i.push(ut(e,u,u+o>s?s:u+o));return n===1?(r=e[t-1],i.push(B[r>>2]+B[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(B[r>>10]+B[r>>4&63]+B[r<<2&63]+"=")),i.join("")}});var mr=G(Z=>{c();Z.read=function(e,r,t,n,i){var o,u,s=i*8-n-1,p=(1<<s)-1,h=p>>1,l=-7,f=t?i-1:0,d=t?-1:1,T=e[r+f];for(f+=d,o=T&(1<<-l)-1,T>>=-l,l+=s;l>0;o=o*256+e[r+f],f+=d,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+f],f+=d,l-=8);if(o===0)o=1-h;else{if(o===p)return u?NaN:(T?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-h}return(T?-1:1)*u*Math.pow(2,o-n)};Z.write=function(e,r,t,n,i,o){var u,s,p,h=o*8-i-1,l=(1<<h)-1,f=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,O=n?1:-1,qr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+f>=1?r+=d/p:r+=d*Math.pow(2,1-f),r*p>=2&&(u++,p/=2),u+f>=l?(s=0,u=l):u+f>=1?(s=(r*p-1)*Math.pow(2,i),u=u+f):(s=r*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;e[t+T]=s&255,T+=O,s/=256,i-=8);for(u=u<<i|s,h+=i;h>0;e[t+T]=u&255,T+=O,u/=256,h-=8);e[t+T-O]|=qr*128}});var Sr=G(R=>{"use strict";c();var j=yr(),b=mr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=lt;R.INSPECT_MAX_BYTES=50;var V=2147483647;R.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=st();!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 st(){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>V)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 nr(e)}return Tr(e,r,t)}a.poolSize=8192;function Tr(e,r,t){if(typeof e=="string")return ct(e,r);if(ArrayBuffer.isView(e))return ht(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(v(e,ArrayBuffer)||e&&v(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(v(e,SharedArrayBuffer)||e&&v(e.buffer,SharedArrayBuffer)))return tr(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=ft(e);if(i)return i;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 Tr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function gr(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 pt(e,r,t){return gr(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 pt(e,r,t)};function nr(e){return gr(e),U(e<0?0:ir(e)|0)}a.allocUnsafe=function(e){return nr(e)};a.allocUnsafeSlow=function(e){return nr(e)};function ct(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Ar(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function rr(e){for(var r=e.length<0?0:ir(e.length)|0,t=U(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function ht(e){if(v(e,Uint8Array)){var r=new Uint8Array(e);return tr(r.buffer,r.byteOffset,r.byteLength)}return rr(e)}function tr(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function ft(e){if(a.isBuffer(e)){var r=ir(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"||or(e.length)?U(0):rr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return rr(e.data)}function ir(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function lt(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(v(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),v(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(v(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Ar(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||v(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ur(e).length;default:if(i)return n?-1:er(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Ar;function xt(e,r,t){var n=!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 Bt(this,r,t);case"utf8":case"utf-8":return Br(this,r,t);case"ascii":return At(this,r,t);case"latin1":case"binary":return Ft(this,r,t);case"base64":return Tt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function k(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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)k(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)k(this,t,t+3),k(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)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Br(this,0,r):xt.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=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};wr&&(a.prototype[wr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(v(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,s=n-t,p=Math.min(u,s),h=this.slice(i,o),l=r.slice(t,n),f=0;f<p;++f)if(h[f]!==l[f]){u=h[f],s=l[f];break}return u<s?-1:s<u?1:0};function Fr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,or(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:Er(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Er(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Er(e,r,t,n,i){var o=1,u=e.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,s/=2,t/=2}function p(T,O){return o===1?T[O]:T.readUInt16BE(O*o)}var h;if(i){var l=-1;for(h=t;h<u;h++)if(p(e,h)===p(r,l===-1?0:h-l)){if(l===-1&&(l=h),h-l+1===s)return l*o}else l!==-1&&(h-=h-l),l=-1}else for(t+s>u&&(t=u-s),h=t;h>=0;h--){for(var f=!0,d=0;d<s;d++)if(p(e,h+d)!==p(r,d)){f=!1;break}if(f)return h}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Fr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Fr(this,r,t,n,!1)};function yt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var s=parseInt(r.substr(u*2,2),16);if(or(s))return u;e[t+u]=s}return u}function mt(e,r,t,n){return q(er(r,e.length-t),e,t,n)}function wt(e,r,t,n){return q(Ut(r),e,t,n)}function Et(e,r,t,n){return q(Ur(r),e,t,n)}function dt(e,r,t,n){return q(St(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return yt(this,r,t,n);case"utf8":case"utf-8":return mt(this,r,t,n);case"ascii":case"latin1":case"binary":return wt(this,r,t,n);case"base64":return Et(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tt(e,r,t){return r===0&&t===e.length?j.fromByteArray(e):j.fromByteArray(e.slice(r,t))}function Br(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=t){var p,h,l,f;switch(s){case 1:o<128&&(u=o);break;case 2:p=e[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(u=f));break;case 3:p=e[i+1],h=e[i+2],(p&192)===128&&(h&192)===128&&(f=(o&15)<<12|(p&63)<<6|h&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:p=e[i+1],h=e[i+2],l=e[i+3],(p&192)===128&&(h&192)===128&&(l&192)===128&&(f=(o&15)<<18|(p&63)<<12|(h&63)<<6|l&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=s}return gt(n)}var dr=4096;function gt(e){var r=e.length;if(r<=dr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=dr));return t}function At(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Ft(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Bt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=Ct[e[o]];return i}function vt(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function E(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,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||E(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||E(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||E(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||E(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||E(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||E(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||E(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||E(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||E(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||E(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||E(r,4,this.length),b.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||E(r,4,this.length),b.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||E(r,8,this.length),b.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||E(r,8,this.length),b.read(this,r,!1,52,8)};function g(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=1,s=0;for(this[t]=r&255;++s<n&&(u*=256);)this[t+s]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;g(this,r,t,n,o,0)}var u=n-1,s=1;for(this[t+u]=r&255;--u>=0&&(s*=256);)this[t+u]=r/s&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(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,n){return r=+r,t=t>>>0,n||g(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,n){return r=+r,t=t>>>0,n||g(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,n){return r=+r,t=t>>>0,n||g(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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=0,s=1,p=0;for(this[t]=r&255;++u<n&&(s*=256);)r<0&&p===0&&this[t+u-1]!==0&&(p=1),this[t+u]=(r/s>>0)-p&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);g(this,r,t,n,o-1,-o)}var u=n-1,s=1,p=0;for(this[t+u]=r&255;--u>=0&&(s*=256);)r<0&&p===0&&this[t+u+1]!==0&&(p=1),this[t+u]=(r/s>>0)-p&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||g(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||g(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,n){return r=+r,t=t>>>0,n||g(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 vr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ir(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,4,34028234663852886e22,-34028234663852886e22),b.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ir(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ir(this,r,t,!1,n)};function Nr(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,8,17976931348623157e292,-17976931348623157e292),b.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Nr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Nr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var s=a.isBuffer(r)?r:a.from(r,i),p=s.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=s[u%p]}return this};var It=/[^+/0-9A-Za-z-_]/g;function Nt(e){if(e=e.split("=")[0],e=e.trim().replace(It,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function er(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 Ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function St(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Ur(e){return j.toByteArray(Nt(e))}function q(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function v(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function or(e){return e!==e}var Ct=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Lr=G((Kt,Dr)=>{c();var w=Dr.exports={},I,N;function ur(){throw new Error("setTimeout has not been defined")}function ar(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=ur}catch(e){I=ur}try{typeof clearTimeout=="function"?N=clearTimeout:N=ar}catch(e){N=ar}})();function Cr(e){if(I===setTimeout)return setTimeout(e,0);if((I===ur||!I)&&setTimeout)return I=setTimeout,setTimeout(e,0);try{return I(e,0)}catch(r){try{return I.call(null,e,0)}catch(t){return I.call(this,e,0)}}}function _t(e){if(N===clearTimeout)return clearTimeout(e);if((N===ar||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(e);try{return N(e)}catch(r){try{return N.call(null,e)}catch(t){return N.call(this,e)}}}var S=[],M=!1,D,Y=-1;function kt(){!M||!D||(M=!1,D.length?S=D.concat(S):Y=-1,S.length&&_r())}function _r(){if(!M){var e=Cr(kt);M=!0;for(var r=S.length;r;){for(D=S,S=[];++Y<r;)D&&D[Y].run();Y=-1,r=S.length}D=null,M=!1,_t(e)}}w.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];S.push(new kr(e,r)),S.length===1&&!M&&Cr(_r)};function kr(e,r){this.fun=e,this.array=r}kr.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function C(){}w.on=C;w.addListener=C;w.once=C;w.off=C;w.removeListener=C;w.removeAllListeners=C;w.emit=C;w.prependListener=C;w.prependOnceListener=C;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var x,y,Vt,c=Zr(()=>{x=X(Sr()),y=X(Lr()),Vt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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 Pt={};jr(Pt,{nativeAuth:()=>Mt});module.exports=rt(Pt);c();c();c();c();var Dt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),P=e=>Dt(x.Buffer.from(e,"utf8").toString("base64"));c();var Pr=X(require("axios"));c();var Or="blocks";c();c();c();function br(e){return F(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}c();var Rr=(e,r,t,n=0)=>F(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield br(r.delay)),yield Rr(e,r,t,n+1)):null}}),Mr=(e,r={retries:5,delay:500})=>(...t)=>F(void 0,null,function*(){return yield Rr(e,r,t)});var Lt=4,Ot=3e4,z={current:null},L={current:null},bt=Mr((e,r)=>F(void 0,null,function*(){let{data:t}=yield Pr.default.get(`${e}/${Or}?from=${Lt}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function Hr(e,r){return F(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(z.current!=null&&t<z.current.timestamp*1e3+Ot)return z.current;if(L.current!=null)return yield L.current;L.current=bt(e,r);try{let n=yield L.current;if(n==null)throw L.current=null,new Error("could not get block hash");return z.current={hash:n.hash,timestamp:n.timestamp},L.current=null,n}catch(n){return L.current=null,null}})}c();c();c();function W(e){return atob(e)}c();c();c();function Rt(e){return Object.prototype.toString.call(e)==="[object String]"}var Wr=e=>{if(!e||!Rt(e))return null;try{let[r,t,n]=e.split("."),i=W(r),o=W(t),[u,s,p,h]=o.split("."),l=JSON.parse(W(h)),f=W(u),d={ttl:Number(p),address:i,extraInfo:l,host:f,signature:n,blockHash:s,body:o};return h==="e30"&&delete d.extraInfo,d}catch(r){return null}};c();c();c();var $r=()=>Date.now()/1e3;var Gr=e=>{let r=Wr(e);if(!r)return{isExpired:!1};let t=$r(),{ttl:n,extraInfo:i}=r,o=i.timestamp;if(!o)return{isExpired:!1};let u=o+n,s=t>u,p=u-t;return{isExpired:s,expiresAt:u,secondsUntilExpires:p}};c();var Kr,$={hostname:typeof window!="undefined"?(Kr=window==null?void 0:window.location)==null?void 0:Kr.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},sr=e=>{var t,n,i,o,u;return e===!0?$:{hostname:(t=e==null?void 0:e.hostname)!=null?t:$.hostname,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:$.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:$.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:$.tokenExpirationToastWarningSeconds}};c();var Vr=({address:e,token:r,signature:t})=>{let n=P(e),i=P(r);return`${n}.${i}.${t}`};var Mt=e=>{let{hostname:r,apiAddress:t,expirySeconds:n,blockHashShard:i}=sr(e);return{getNativeAuthConfig:sr,initialize:(...p)=>F(void 0,[...p],function*(u={},s){if(!t||!r)return"";let h=s!=null?s:yield Hr(t,i),{hash:l,timestamp:f}=h,d=P(JSON.stringify(J(J({},u),f?{timestamp:f}:{})));return`${P(r)}.${l}.${n}.${d}`}),getToken:Vr,getTokenExpiration:Gr}};0&&(module.exports={nativeAuth});
1
+ "use strict";var Yr=Object.create;var H=Object.defineProperty;var zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames,pr=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;var cr=(e,r,t)=>r in e?H(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,J=(e,r)=>{for(var t in r||(r={}))hr.call(r,t)&&cr(e,t,r[t]);if(pr)for(var t of pr(r))Qr.call(r,t)&&cr(e,t,r[t]);return e};var Zr=(e,r)=>()=>(e&&(r=e(e=0)),r);var G=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),jr=(e,r)=>{for(var t in r)H(e,t,{get:r[t],enumerable:!0})},fr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Jr(r))!hr.call(e,i)&&i!==t&&H(e,i,{get:()=>r[i],enumerable:!(n=zr(r,i))||n.enumerable});return e};var X=(e,r,t)=>(t=e!=null?Yr(Xr(e)):{},fr(r||!e||!e.__esModule?H(t,"default",{value:e,enumerable:!0}):t,e)),rt=e=>fr(H({},"__esModule",{value:!0}),e);var F=(e,r,t)=>new Promise((n,i)=>{var o=p=>{try{s(t.next(p))}catch(h){i(h)}},u=p=>{try{s(t.throw(p))}catch(h){i(h)}},s=p=>p.done?n(p.value):Promise.resolve(p.value).then(o,u);s((t=t.apply(e,r)).next())});var yr=G(K=>{"use strict";c();K.byteLength=et;K.toByteArray=it;K.fromByteArray=at;var B=[],A=[],tt=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,lr=Q.length;_<lr;++_)B[_]=Q[_],A[Q.charCodeAt(_)]=_;var _,lr;A["-".charCodeAt(0)]=62;A["_".charCodeAt(0)]=63;function xr(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 n=t===r?0:4-t%4;return[t,n]}function et(e){var r=xr(e),t=r[0],n=r[1];return(t+n)*3/4-n}function nt(e,r,t){return(r+t)*3/4-t}function it(e){var r,t=xr(e),n=t[0],i=t[1],o=new tt(nt(e,n,i)),u=0,s=i>0?n-4:n,p;for(p=0;p<s;p+=4)r=A[e.charCodeAt(p)]<<18|A[e.charCodeAt(p+1)]<<12|A[e.charCodeAt(p+2)]<<6|A[e.charCodeAt(p+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=A[e.charCodeAt(p)]<<2|A[e.charCodeAt(p+1)]>>4,o[u++]=r&255),i===1&&(r=A[e.charCodeAt(p)]<<10|A[e.charCodeAt(p+1)]<<4|A[e.charCodeAt(p+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function ot(e){return B[e>>18&63]+B[e>>12&63]+B[e>>6&63]+B[e&63]}function ut(e,r,t){for(var n,i=[],o=r;o<t;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(ot(n));return i.join("")}function at(e){for(var r,t=e.length,n=t%3,i=[],o=16383,u=0,s=t-n;u<s;u+=o)i.push(ut(e,u,u+o>s?s:u+o));return n===1?(r=e[t-1],i.push(B[r>>2]+B[r<<4&63]+"==")):n===2&&(r=(e[t-2]<<8)+e[t-1],i.push(B[r>>10]+B[r>>4&63]+B[r<<2&63]+"=")),i.join("")}});var mr=G(Z=>{c();Z.read=function(e,r,t,n,i){var o,u,s=i*8-n-1,p=(1<<s)-1,h=p>>1,l=-7,f=t?i-1:0,d=t?-1:1,g=e[r+f];for(f+=d,o=g&(1<<-l)-1,g>>=-l,l+=s;l>0;o=o*256+e[r+f],f+=d,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+e[r+f],f+=d,l-=8);if(o===0)o=1-h;else{if(o===p)return u?NaN:(g?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-h}return(g?-1:1)*u*Math.pow(2,o-n)};Z.write=function(e,r,t,n,i,o){var u,s,p,h=o*8-i-1,l=(1<<h)-1,f=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,O=n?1:-1,qr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+f>=1?r+=d/p:r+=d*Math.pow(2,1-f),r*p>=2&&(u++,p/=2),u+f>=l?(s=0,u=l):u+f>=1?(s=(r*p-1)*Math.pow(2,i),u=u+f):(s=r*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;e[t+g]=s&255,g+=O,s/=256,i-=8);for(u=u<<i|s,h+=i;h>0;e[t+g]=u&255,g+=O,u/=256,h-=8);e[t+g-O]|=qr*128}});var Sr=G(R=>{"use strict";c();var j=yr(),b=mr(),wr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;R.Buffer=a;R.SlowBuffer=lt;R.INSPECT_MAX_BYTES=50;var V=2147483647;R.kMaxLength=V;a.TYPED_ARRAY_SUPPORT=st();!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 st(){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>V)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 nr(e)}return gr(e,r,t)}a.poolSize=8192;function gr(e,r,t){if(typeof e=="string")return ct(e,r);if(ArrayBuffer.isView(e))return ht(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(v(e,ArrayBuffer)||e&&v(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(v(e,SharedArrayBuffer)||e&&v(e.buffer,SharedArrayBuffer)))return tr(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);var i=ft(e);if(i)return i;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 gr(e,r,t)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function Tr(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 pt(e,r,t){return Tr(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 pt(e,r,t)};function nr(e){return Tr(e),U(e<0?0:ir(e)|0)}a.allocUnsafe=function(e){return nr(e)};a.allocUnsafeSlow=function(e){return nr(e)};function ct(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=Ar(e,r)|0,n=U(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function rr(e){for(var r=e.length<0?0:ir(e.length)|0,t=U(r),n=0;n<r;n+=1)t[n]=e[n]&255;return t}function ht(e){if(v(e,Uint8Array)){var r=new Uint8Array(e);return tr(r.buffer,r.byteOffset,r.byteLength)}return rr(e)}function tr(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 n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function ft(e){if(a.isBuffer(e)){var r=ir(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"||or(e.length)?U(0):rr(e);if(e.type==="Buffer"&&Array.isArray(e.data))return rr(e.data)}function ir(e){if(e>=V)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V.toString(16)+" bytes");return e|0}function lt(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(v(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),v(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 n=r.length,i=t.length,o=0,u=Math.min(n,i);o<u;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?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 n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=a.allocUnsafe(t),o=0;for(n=0;n<r.length;++n){var u=r[n];if(v(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function Ar(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||v(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ur(e).length;default:if(i)return n?-1:er(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=Ar;function xt(e,r,t){var n=!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 Bt(this,r,t);case"utf8":case"utf-8":return Br(this,r,t);case"ascii":return At(this,r,t);case"latin1":case"binary":return Ft(this,r,t);case"base64":return gt(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function k(e,r,t){var n=e[r];e[r]=e[t],e[t]=n}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)k(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)k(this,t,t+3),k(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)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?Br(this,0,r):xt.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=R.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};wr&&(a.prototype[wr]=a.prototype.inspect);a.prototype.compare=function(r,t,n,i,o){if(v(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),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var u=o-i,s=n-t,p=Math.min(u,s),h=this.slice(i,o),l=r.slice(t,n),f=0;f<p;++f)if(h[f]!==l[f]){u=h[f],s=l[f];break}return u<s?-1:s<u?1:0};function Fr(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,or(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:Er(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Er(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Er(e,r,t,n,i){var o=1,u=e.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,u/=2,s/=2,t/=2}function p(g,O){return o===1?g[O]:g.readUInt16BE(O*o)}var h;if(i){var l=-1;for(h=t;h<u;h++)if(p(e,h)===p(r,l===-1?0:h-l)){if(l===-1&&(l=h),h-l+1===s)return l*o}else l!==-1&&(h-=h-l),l=-1}else for(t+s>u&&(t=u-s),h=t;h>=0;h--){for(var f=!0,d=0;d<s;d++)if(p(e,h+d)!==p(r,d)){f=!1;break}if(f)return h}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1};a.prototype.indexOf=function(r,t,n){return Fr(this,r,t,n,!0)};a.prototype.lastIndexOf=function(r,t,n){return Fr(this,r,t,n,!1)};function yt(e,r,t,n){t=Number(t)||0;var i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var u=0;u<n;++u){var s=parseInt(r.substr(u*2,2),16);if(or(s))return u;e[t+u]=s}return u}function mt(e,r,t,n){return q(er(r,e.length-t),e,t,n)}function wt(e,r,t,n){return q(Ut(r),e,t,n)}function Et(e,r,t,n){return q(Ur(r),e,t,n)}function dt(e,r,t,n){return q(St(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return yt(this,r,t,n);case"utf8":case"utf-8":return mt(this,r,t,n);case"ascii":case"latin1":case"binary":return wt(this,r,t,n);case"base64":return Et(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function gt(e,r,t){return r===0&&t===e.length?j.fromByteArray(e):j.fromByteArray(e.slice(r,t))}function Br(e,r,t){t=Math.min(e.length,t);for(var n=[],i=r;i<t;){var o=e[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=t){var p,h,l,f;switch(s){case 1:o<128&&(u=o);break;case 2:p=e[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(u=f));break;case 3:p=e[i+1],h=e[i+2],(p&192)===128&&(h&192)===128&&(f=(o&15)<<12|(p&63)<<6|h&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:p=e[i+1],h=e[i+2],l=e[i+3],(p&192)===128&&(h&192)===128&&(l&192)===128&&(f=(o&15)<<18|(p&63)<<12|(h&63)<<6|l&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,s=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=s}return Tt(n)}var dr=4096;function Tt(e){var r=e.length;if(r<=dr)return String.fromCharCode.apply(String,e);for(var t="",n=0;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=dr));return t}function At(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function Ft(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Bt(e,r,t){var n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);for(var i="",o=r;o<t;++o)i+=Ct[e[o]];return i}function vt(e,r,t){for(var n=e.slice(r,t),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(r,t){var n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);var i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function E(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,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r+--t],o=1;t>0&&(o*=256);)i+=this[r+--t]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||E(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||E(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||E(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||E(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||E(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=this[r],o=1,u=0;++u<t&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i};a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||E(r,t,this.length);for(var i=t,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*t)),u};a.prototype.readInt8=function(r,t){return r=r>>>0,t||E(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,t){r=r>>>0,t||E(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(r,t){r=r>>>0,t||E(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||E(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||E(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||E(r,4,this.length),b.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||E(r,4,this.length),b.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||E(r,8,this.length),b.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||E(r,8,this.length),b.read(this,r,!1,52,8)};function T(e,r,t,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=1,s=0;for(this[t]=r&255;++s<n&&(u*=256);)this[t+s]=r/u&255;return t+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;T(this,r,t,n,o,0)}var u=n-1,s=1;for(this[t+u]=r&255;--u>=0&&(s*=256);)this[t+u]=r/s&255;return t+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,255,0),this[t]=r&255,t+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=0,s=1,p=0;for(this[t]=r&255;++u<n&&(s*=256);)r<0&&p===0&&this[t+u-1]!==0&&(p=1),this[t+u]=(r/s>>0)-p&255;return t+n};a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){var o=Math.pow(2,8*n-1);T(this,r,t,n,o-1,-o)}var u=n-1,s=1,p=0;for(this[t+u]=r&255;--u>=0&&(s*=256);)r<0&&p===0&&this[t+u+1]!==0&&(p=1),this[t+u]=(r/s>>0)-p&255;return t+n};a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||T(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||T(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,n){return r=+r,t=t>>>0,n||T(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 vr(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ir(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,4,34028234663852886e22,-34028234663852886e22),b.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return Ir(this,r,t,!0,n)};a.prototype.writeFloatBE=function(r,t,n){return Ir(this,r,t,!1,n)};function Nr(e,r,t,n,i){return r=+r,t=t>>>0,i||vr(e,r,t,8,17976931348623157e292,-17976931348623157e292),b.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return Nr(this,r,t,!0,n)};a.prototype.writeDoubleBE=function(r,t,n){return Nr(this,r,t,!1,n)};a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o};a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{var s=a.isBuffer(r)?r:a.from(r,i),p=s.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=s[u%p]}return this};var It=/[^+/0-9A-Za-z-_]/g;function Nt(e){if(e=e.split("=")[0],e=e.trim().replace(It,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function er(e,r){r=r||1/0;for(var t,n=e.length,i=null,o=[],u=0;u<n;++u){if(t=e.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=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 Ut(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function St(e,r){for(var t,n,i,o=[],u=0;u<e.length&&!((r-=2)<0);++u)t=e.charCodeAt(u),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function Ur(e){return j.toByteArray(Nt(e))}function q(e,r,t,n){for(var i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function v(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function or(e){return e!==e}var Ct=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)r[n+i]=e[t]+e[i];return r}()});var Lr=G((Kt,Dr)=>{c();var w=Dr.exports={},I,N;function ur(){throw new Error("setTimeout has not been defined")}function ar(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=ur}catch(e){I=ur}try{typeof clearTimeout=="function"?N=clearTimeout:N=ar}catch(e){N=ar}})();function Cr(e){if(I===setTimeout)return setTimeout(e,0);if((I===ur||!I)&&setTimeout)return I=setTimeout,setTimeout(e,0);try{return I(e,0)}catch(r){try{return I.call(null,e,0)}catch(t){return I.call(this,e,0)}}}function _t(e){if(N===clearTimeout)return clearTimeout(e);if((N===ar||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(e);try{return N(e)}catch(r){try{return N.call(null,e)}catch(t){return N.call(this,e)}}}var S=[],M=!1,D,Y=-1;function kt(){!M||!D||(M=!1,D.length?S=D.concat(S):Y=-1,S.length&&_r())}function _r(){if(!M){var e=Cr(kt);M=!0;for(var r=S.length;r;){for(D=S,S=[];++Y<r;)D&&D[Y].run();Y=-1,r=S.length}D=null,M=!1,_t(e)}}w.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];S.push(new kr(e,r)),S.length===1&&!M&&Cr(_r)};function kr(e,r){this.fun=e,this.array=r}kr.prototype.run=function(){this.fun.apply(null,this.array)};w.title="browser";w.browser=!0;w.env={};w.argv=[];w.version="";w.versions={};function C(){}w.on=C;w.addListener=C;w.once=C;w.off=C;w.removeListener=C;w.removeAllListeners=C;w.emit=C;w.prependListener=C;w.prependOnceListener=C;w.listeners=function(e){return[]};w.binding=function(e){throw new Error("process.binding is not supported")};w.cwd=function(){return"/"};w.chdir=function(e){throw new Error("process.chdir is not supported")};w.umask=function(){return 0}});var x,y,Vt,c=Zr(()=>{x=X(Sr()),y=X(Lr()),Vt=function(e){function r(){var n=this||self;return delete e.prototype.__magic__,n}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 Pt={};jr(Pt,{nativeAuth:()=>Mt});module.exports=rt(Pt);c();c();c();c();var Dt=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),P=e=>Dt(x.Buffer.from(e,"utf8").toString("base64"));c();var Pr=X(require("axios"));c();var Or="blocks";c();c();c();function br(e){return F(this,null,function*(){return yield new Promise(r=>{setTimeout(()=>r(),e)})})}c();var Rr=(e,r,t,n=0)=>F(void 0,null,function*(){try{return yield e(...t)}catch(i){return n<r.retries?((r==null?void 0:r.delay)!=null&&(yield br(r.delay)),yield Rr(e,r,t,n+1)):null}}),Mr=(e,r={retries:5,delay:500})=>(...t)=>F(void 0,null,function*(){return yield Rr(e,r,t)});var Lt=4,Ot=3e4,z={current:null},L={current:null},bt=Mr((e,r)=>F(void 0,null,function*(){let{data:t}=yield Pr.default.get(`${e}/${Or}?from=${Lt}&size=1&fields=hash,timestamp${r?"&shard="+r:""}`),[n]=t;return n}));function Hr(e,r){return F(this,null,function*(){if(e==null)throw new Error("missing api url");let t=Date.now();if(z.current!=null&&t<z.current.timestamp*1e3+Ot)return z.current;if(L.current!=null)return yield L.current;L.current=bt(e,r);try{let n=yield L.current;if(n==null)throw L.current=null,new Error("could not get block hash");return z.current={hash:n.hash,timestamp:n.timestamp},L.current=null,n}catch(n){return L.current=null,null}})}c();c();c();function W(e){return atob(e)}c();c();c();function Rt(e){return Object.prototype.toString.call(e)==="[object String]"}var Wr=e=>{if(!e||!Rt(e))return null;try{let[r,t,n]=e.split("."),i=W(r),o=W(t),[u,s,p,h]=o.split("."),l=JSON.parse(W(h)),f=W(u),d={ttl:Number(p),address:i,extraInfo:l,origin:f,signature:n,blockHash:s,body:o};return h==="e30"&&delete d.extraInfo,d}catch(r){return null}};c();c();c();var $r=()=>Date.now()/1e3;var Gr=e=>{let r=Wr(e);if(!r)return{isExpired:!1};let t=$r(),{ttl:n,extraInfo:i}=r,o=i.timestamp;if(!o)return{isExpired:!1};let u=o+n,s=t>u,p=u-t;return{isExpired:s,expiresAt:u,secondsUntilExpires:p}};c();var Kr,$={origin:typeof window!="undefined"?(Kr=window==null?void 0:window.location)==null?void 0:Kr.hostname:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60},sr=e=>{var t,n,i,o,u;return e===!0?$:{origin:(t=e==null?void 0:e.origin)!=null?t:$.origin,blockHashShard:(n=e==null?void 0:e.blockHashShard)!=null?n:null,expirySeconds:(i=e==null?void 0:e.expirySeconds)!=null?i:$.expirySeconds,apiAddress:(o=e==null?void 0:e.apiAddress)!=null?o:$.apiAddress,tokenExpirationToastWarningSeconds:(u=e==null?void 0:e.tokenExpirationToastWarningSeconds)!=null?u:$.tokenExpirationToastWarningSeconds}};c();var Vr=({address:e,token:r,signature:t})=>{let n=P(e),i=P(r);return`${n}.${i}.${t}`};var Mt=e=>{let{origin:r,apiAddress:t,expirySeconds:n,blockHashShard:i}=sr(e);return{getNativeAuthConfig:sr,initialize:(...p)=>F(void 0,[...p],function*(u={},s){if(!t||!r)return"";let h=s!=null?s:yield Hr(t,i),{hash:l,timestamp:f}=h,d=P(JSON.stringify(J(J({},u),f?{timestamp:f}:{})));return`${P(r)}.${l}.${n}.${d}`}),getToken:Vr,getTokenExpiration:Gr}};0&&(module.exports={nativeAuth});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *