@multiversx/sdk-dapp 2.38.1-alpha.1 → 2.38.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1085) hide show
  1. package/UI/DappModal/components/DappModal.js +1 -1
  2. package/UI/DappModal/components/index.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/NotificationModal.js +1 -1
  12. package/UI/NotificationModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
  15. package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
  16. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  17. package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  18. package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
  19. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
  20. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
  21. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
  22. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/ConfirmAmountLabel.js +1 -1
  23. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/index.js +1 -1
  24. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
  25. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
  26. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
  27. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
  28. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
  29. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
  30. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
  31. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
  32. package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
  33. package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
  34. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  35. package/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.js +1 -1
  36. package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
  37. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  38. package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  39. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  40. package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
  41. package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  42. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  43. package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
  44. package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
  45. package/UI/SignTransactionsModals/SignWithMetamaskProxyModal/SignWithMetamaskProxyModal.js +1 -1
  46. package/UI/SignTransactionsModals/SignWithMetamaskProxyModal/index.js +1 -1
  47. package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
  48. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  49. package/UI/SignTransactionsModals/SignWithWalletConnectModal/SignWithWalletConnectModal.js +1 -1
  50. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  51. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  52. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  53. package/UI/SignTransactionsModals/components/SignWaitingScreenModal/SignWaitingScreenModal.js +1 -1
  54. package/UI/SignTransactionsModals/components/SignWaitingScreenModal/index.js +1 -1
  55. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  56. package/UI/SignTransactionsModals/components/index.js +1 -1
  57. package/UI/SignTransactionsModals/index.js +1 -1
  58. package/UI/TokenDetails/index.js +1 -1
  59. package/UI/TransactionData/TransactionData.js +1 -1
  60. package/UI/TransactionData/index.js +1 -1
  61. package/UI/TransactionDetails/TransactionDetails.js +1 -1
  62. package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  63. package/UI/TransactionDetails/components/index.js +1 -1
  64. package/UI/TransactionDetails/index.js +1 -1
  65. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  66. package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
  67. package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
  68. package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
  69. package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
  70. package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
  71. package/UI/TransactionInfo/components/DataField/components/ModalLink/ModalLink.js +1 -1
  72. package/UI/TransactionInfo/components/DataField/components/ModalLink/index.js +1 -1
  73. package/UI/TransactionInfo/components/DataField/components/index.js +1 -1
  74. package/UI/TransactionInfo/components/DataField/index.js +1 -1
  75. package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
  76. package/UI/TransactionInfo/components/EventsList/index.js +1 -1
  77. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  78. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  79. package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
  80. package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
  81. package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
  82. package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
  83. package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
  84. package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
  85. package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
  86. package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
  87. package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
  88. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  89. package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  90. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
  91. package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
  92. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
  93. package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
  94. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
  95. package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
  96. package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
  97. package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
  98. package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
  99. package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
  100. package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
  101. package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
  102. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
  103. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
  104. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
  105. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
  106. package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
  107. package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
  108. package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
  109. package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
  110. package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
  111. package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
  112. package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
  113. package/UI/TransactionInfo/components/index.js +1 -1
  114. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
  115. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
  116. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
  117. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
  118. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
  119. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
  120. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
  121. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
  122. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
  123. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
  124. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
  125. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
  126. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
  127. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
  128. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
  129. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
  130. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
  131. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
  132. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
  133. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
  134. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  135. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  136. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
  137. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
  138. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
  139. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
  140. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
  141. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
  142. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
  143. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
  144. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
  145. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
  146. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  147. package/UI/TransactionInfo/index.js +1 -1
  148. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  149. package/UI/TransactionsTable/components/AccountName.js +1 -1
  150. package/UI/TransactionsTable/components/FailedTransactions.js +1 -1
  151. package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
  152. package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
  153. package/UI/TransactionsTable/components/ShardSpan.js +1 -1
  154. package/UI/TransactionsTable/components/TransactionHash.js +1 -1
  155. package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
  156. package/UI/TransactionsTable/components/TransactionMethod.js +1 -1
  157. package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
  158. package/UI/TransactionsTable/components/TransactionRow.js +1 -1
  159. package/UI/TransactionsTable/components/TransactionSender.js +1 -1
  160. package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
  161. package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
  162. package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
  163. package/UI/TransactionsTable/components/index.js +1 -1
  164. package/UI/TransactionsTable/index.js +1 -1
  165. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  166. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  167. package/UI/TransactionsToastList/components/CustomToast/components/CustomComponentToast.js +1 -1
  168. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  169. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  170. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
  171. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  172. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  173. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  174. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  175. package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
  176. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  177. package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
  178. package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
  179. package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
  180. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  181. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  182. package/UI/TransactionsToastList/components/TransactionToast/components/DefaultToastDeleteButton.js +1 -1
  183. package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
  184. package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
  185. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  186. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  187. package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  188. package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
  189. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  190. package/UI/TransactionsToastList/components/index.js +1 -1
  191. package/UI/TransactionsToastList/index.js +1 -1
  192. package/UI/Trim/Trim.js +1 -1
  193. package/UI/Trim/index.js +1 -1
  194. package/UI/UsdValue/UsdValue.js +1 -1
  195. package/UI/UsdValue/index.js +1 -1
  196. package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
  197. package/UI/extension/ExtensionLoginButton/index.js +1 -1
  198. package/UI/index.js +1 -1
  199. package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
  200. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  201. package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
  202. package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
  203. package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
  204. package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
  205. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
  206. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/getAuthTokenText.js +1 -1
  207. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/index.js +1 -1
  208. package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
  209. package/UI/ledger/LedgerLoginContainer/LedgerConnect/LedgerConnect.js +1 -1
  210. package/UI/ledger/LedgerLoginContainer/LedgerConnect/index.js +1 -1
  211. package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
  212. package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
  213. package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
  214. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
  215. package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
  216. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
  217. package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
  218. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
  219. package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
  220. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  221. package/UI/ledger/index.js +1 -1
  222. package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
  223. package/UI/metamask/MetamaskLoginButton/index.js +1 -1
  224. package/UI/metamaskProxy/MetamaskProxyLoginButton/MetamaskProxyButton.js +1 -1
  225. package/UI/metamaskProxy/MetamaskProxyLoginButton/index.js +1 -1
  226. package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.js +1 -1
  227. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  228. package/UI/pages/UnlockPage/index.js +1 -1
  229. package/UI/pages/index.js +1 -1
  230. package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
  231. package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
  232. package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
  233. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  234. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
  235. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
  236. package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
  237. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  238. package/UI/walletConnect/index.js +1 -1
  239. package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
  240. package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
  241. package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
  242. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  243. package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
  244. package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
  245. package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
  246. package/UI/webWallet/XaliasLoginButton/index.js +1 -1
  247. package/__chunks__/chunk-25ONWZV3.js +2 -0
  248. package/__chunks__/{chunk-UVW43JTP.js → chunk-2A3OOO4N.js} +2 -2
  249. package/__chunks__/{chunk-QAE2QX2I.js → chunk-2KBILVBP.js} +2 -2
  250. package/__chunks__/chunk-2LZQZV6T.js +2 -0
  251. package/__chunks__/{chunk-YS4BB3WI.js → chunk-2NIPW24L.js} +2 -2
  252. package/__chunks__/{chunk-77IGYVJY.js → chunk-2NSN26TH.js} +2 -2
  253. package/__chunks__/{chunk-AW3P44VD.js → chunk-2QIMN7EA.js} +2 -2
  254. package/__chunks__/{chunk-KF5NQSQP.js → chunk-2TNGJ23Z.js} +2 -2
  255. package/__chunks__/chunk-2XHD6T57.js +2 -0
  256. package/__chunks__/{chunk-5QUDLTVY.js → chunk-334WX6O3.js} +2 -2
  257. package/__chunks__/{chunk-6I5HHMDP.js → chunk-377D4Y6P.js} +2 -2
  258. package/__chunks__/{chunk-BACF4TMO.js → chunk-37FNY4AD.js} +2 -2
  259. package/__chunks__/{chunk-IYQ52O3I.js → chunk-3E24I2YQ.js} +2 -2
  260. package/__chunks__/{chunk-KOKVKIKU.js → chunk-3GXJYKHZ.js} +2 -2
  261. package/__chunks__/{chunk-LVNXGFKU.js → chunk-3K5QWNBO.js} +2 -2
  262. package/__chunks__/{chunk-QAMHCADN.js → chunk-3UCLRDEE.js} +2 -2
  263. package/__chunks__/{chunk-2TEBOHE5.js → chunk-3YUD7SXH.js} +2 -2
  264. package/__chunks__/{chunk-O5Y5Y67Q.js → chunk-3Z6EMFV2.js} +2 -2
  265. package/__chunks__/chunk-42MX672P.js +2 -0
  266. package/__chunks__/{chunk-GGSYV7LB.js → chunk-4BGBEYTB.js} +2 -2
  267. package/__chunks__/{chunk-F542MKCU.js → chunk-4BLQM6RD.js} +2 -2
  268. package/__chunks__/{chunk-HALDRIKD.js → chunk-4BSNKW7K.js} +2 -2
  269. package/__chunks__/{chunk-RRXYXHRZ.js → chunk-4BWE4OVW.js} +2 -2
  270. package/__chunks__/{chunk-3APJNLJK.js → chunk-4CAZFQRQ.js} +2 -2
  271. package/__chunks__/{chunk-GYWAS4V7.js → chunk-4G7IMJUN.js} +2 -2
  272. package/__chunks__/{chunk-DBWZHSCN.js → chunk-4H6HHTGW.js} +2 -2
  273. package/__chunks__/{chunk-ZNZID5SD.js → chunk-4LGXF7Y4.js} +2 -2
  274. package/__chunks__/{chunk-UJJVNOF2.js → chunk-4PZP6U5I.js} +2 -2
  275. package/__chunks__/{chunk-VGQ2YSZH.js → chunk-4S3FP6JL.js} +2 -2
  276. package/__chunks__/{chunk-V4SRXP3T.js → chunk-4VALQR5B.js} +2 -2
  277. package/__chunks__/{chunk-AL5XHZ2U.js → chunk-4VR5XZ73.js} +2 -2
  278. package/__chunks__/{chunk-4ZTT5OYY.js → chunk-4WG65CBQ.js} +2 -2
  279. package/__chunks__/{chunk-IPZXOD7N.js → chunk-4YUBQMGV.js} +2 -2
  280. package/__chunks__/chunk-55F7NN3S.js +2 -0
  281. package/__chunks__/{chunk-NO6XXY3B.js → chunk-57OXPOPV.js} +2 -2
  282. package/__chunks__/{chunk-RIPPDT75.js → chunk-57SFKXD6.js} +2 -2
  283. package/__chunks__/{chunk-RFMMECAT.js → chunk-57WFFPUJ.js} +2 -2
  284. package/__chunks__/{chunk-R5GPFABR.js → chunk-5BPNXNME.js} +2 -2
  285. package/__chunks__/{chunk-3O274UD2.js → chunk-5CLFZFKR.js} +2 -2
  286. package/__chunks__/{chunk-SCZUPWQM.js → chunk-5CVFQATZ.js} +2 -2
  287. package/__chunks__/{chunk-I7EZXIQ2.js → chunk-5F74LPEE.js} +2 -2
  288. package/__chunks__/chunk-5GGMWJQY.js +2 -0
  289. package/__chunks__/{chunk-IMIFRJSU.js → chunk-5H37FDFI.js} +2 -2
  290. package/__chunks__/chunk-5K7LTNIX.js +2 -0
  291. package/__chunks__/{chunk-VDGC6MKD.js → chunk-5PTO3OMZ.js} +2 -2
  292. package/__chunks__/{chunk-UZQHQWKT.js → chunk-5R25CR6H.js} +2 -2
  293. package/__chunks__/{chunk-MLYF4FZT.js → chunk-5ROD3CWT.js} +2 -2
  294. package/__chunks__/{chunk-4532UP56.js → chunk-5SFQC42Y.js} +2 -2
  295. package/__chunks__/chunk-64BHWALL.js +2 -0
  296. package/__chunks__/{chunk-4NO6VCQ5.js → chunk-64GSDGPL.js} +2 -2
  297. package/__chunks__/chunk-64OKYPRN.js +2 -0
  298. package/__chunks__/{chunk-UQWKMU76.js → chunk-64ZVG7CY.js} +2 -2
  299. package/__chunks__/{chunk-WIINEKTU.js → chunk-6ACKIDAI.js} +2 -2
  300. package/__chunks__/chunk-6BTTI33M.js +2 -0
  301. package/__chunks__/{chunk-B2NOH53Y.js → chunk-6CBK72WF.js} +2 -2
  302. package/__chunks__/{chunk-6RQ7VNTO.js → chunk-6CWSMG4U.js} +2 -2
  303. package/__chunks__/{chunk-45MICGHL.js → chunk-6EVQ7XOI.js} +2 -2
  304. package/__chunks__/{chunk-7FPT772H.js → chunk-6FQBNOV5.js} +2 -2
  305. package/__chunks__/{chunk-MBPEHWKN.js → chunk-6LD3BWLP.js} +2 -2
  306. package/__chunks__/chunk-6RLGJ42T.js +2 -0
  307. package/__chunks__/{chunk-DQMGVIQY.js → chunk-6SWH5D44.js} +2 -2
  308. package/__chunks__/{chunk-F5J5SZ6U.js → chunk-6VOHYVOG.js} +2 -2
  309. package/__chunks__/{chunk-BJRN4GCT.js → chunk-72EUQY4V.js} +2 -2
  310. package/__chunks__/{chunk-74WSGSPA.js → chunk-76F4VLB5.js} +2 -2
  311. package/__chunks__/{chunk-JYQSFGDG.js → chunk-7EKMGDOK.js} +2 -2
  312. package/__chunks__/chunk-7HH4ZUYP.js +2 -0
  313. package/__chunks__/{chunk-6GZQXKKP.js → chunk-7O7SVFV4.js} +2 -2
  314. package/__chunks__/chunk-7R2QNBH6.js +2 -0
  315. package/__chunks__/chunk-7RFEXF75.js +2 -0
  316. package/__chunks__/{chunk-VOULDEW6.js → chunk-7TRJXA5X.js} +2 -2
  317. package/__chunks__/{chunk-SXQGRKKN.js → chunk-7UG4ZGYG.js} +2 -2
  318. package/__chunks__/{chunk-RJFZ2ZAG.js → chunk-7UTFZX7S.js} +2 -2
  319. package/__chunks__/{chunk-PS5OLCVD.js → chunk-7YEBE7DP.js} +2 -2
  320. package/__chunks__/{chunk-ZWN5N7RD.js → chunk-A2LF4UUO.js} +2 -2
  321. package/__chunks__/chunk-A2VVPYTH.js +2 -0
  322. package/__chunks__/{chunk-SSC5QKGX.js → chunk-A7S3UL3M.js} +2 -2
  323. package/__chunks__/{chunk-I6O733I4.js → chunk-AC77W52F.js} +2 -2
  324. package/__chunks__/{chunk-LKYUEF5X.js → chunk-ADGU3NYQ.js} +2 -2
  325. package/__chunks__/{chunk-Q7DHQD52.js → chunk-AFDSBE7E.js} +2 -2
  326. package/__chunks__/{chunk-3TBLOHW2.js → chunk-ALBUHGFU.js} +2 -2
  327. package/__chunks__/{chunk-V65QHBEM.js → chunk-AO636GH7.js} +2 -2
  328. package/__chunks__/{chunk-GGK4GRDZ.js → chunk-AOOGOFWR.js} +2 -2
  329. package/__chunks__/{chunk-YQ3CL4HT.js → chunk-ASPF6WFC.js} +2 -2
  330. package/__chunks__/{chunk-YRLJRPEH.js → chunk-ASU3JS26.js} +2 -2
  331. package/__chunks__/{chunk-Z5WSW2RI.js → chunk-ATS33IZA.js} +2 -2
  332. package/__chunks__/chunk-AVMOJPGK.js +2 -0
  333. package/__chunks__/{chunk-TXI3TAS7.js → chunk-AXFWQ323.js} +2 -2
  334. package/__chunks__/{chunk-2XNAPH2G.js → chunk-AYJMXZTY.js} +2 -2
  335. package/__chunks__/{chunk-5JZLYVUE.js → chunk-B2XBO6J7.js} +2 -2
  336. package/__chunks__/{chunk-ZYG7H2C5.js → chunk-B3NALJL3.js} +2 -2
  337. package/__chunks__/chunk-BFNMSQSZ.js +2 -0
  338. package/__chunks__/{chunk-TLIOQGNF.js → chunk-BGENICOG.js} +2 -2
  339. package/__chunks__/{chunk-FUHJVNTO.js → chunk-BII77MYK.js} +2 -2
  340. package/__chunks__/{chunk-7BOJVVO6.js → chunk-BMT5DX4S.js} +2 -2
  341. package/__chunks__/{chunk-GHYNSO5S.js → chunk-BPBM3SZP.js} +2 -2
  342. package/__chunks__/{chunk-EOWCAK4X.js → chunk-C3Q74FNK.js} +2 -2
  343. package/__chunks__/{chunk-HUYBBECK.js → chunk-C3W2OC7P.js} +2 -2
  344. package/__chunks__/{chunk-JIVDJCJR.js → chunk-C6WY5M7E.js} +2 -2
  345. package/__chunks__/chunk-CBUKBPBN.js +2 -0
  346. package/__chunks__/{chunk-UYQATNAW.js → chunk-CI4U22RB.js} +2 -2
  347. package/__chunks__/{chunk-DV3NKQH7.js → chunk-CIB45TY5.js} +2 -2
  348. package/__chunks__/chunk-CK3N34LI.js +2 -0
  349. package/__chunks__/{chunk-GKW6OD2Z.js → chunk-CO7NDIWJ.js} +2 -2
  350. package/__chunks__/{chunk-7OKD5EXC.js → chunk-CPPO4BO6.js} +2 -2
  351. package/__chunks__/{chunk-OX3T35EN.js → chunk-CRCMKVOE.js} +2 -2
  352. package/__chunks__/chunk-CYYQ2EPG.js +2 -0
  353. package/__chunks__/{chunk-DH242RQG.js → chunk-D2MMWBDZ.js} +2 -2
  354. package/__chunks__/{chunk-VL6TZUKH.js → chunk-D7LI7EOY.js} +2 -2
  355. package/__chunks__/{chunk-WTS6EQVW.js → chunk-DBCEW46F.js} +2 -2
  356. package/__chunks__/{chunk-HYN6QKJ4.js → chunk-DBMZD7TQ.js} +2 -2
  357. package/__chunks__/{chunk-HLHIKDIM.js → chunk-DE7GN3TT.js} +2 -2
  358. package/__chunks__/{chunk-U4E25A42.js → chunk-DIPR3EVQ.js} +2 -2
  359. package/__chunks__/{chunk-ORU2ZC7X.js → chunk-DOWTGNNF.js} +2 -2
  360. package/__chunks__/{chunk-SNMLPRE5.js → chunk-DPSYNXWL.js} +2 -2
  361. package/__chunks__/{chunk-EGJVF2EB.js → chunk-DR3GKR3S.js} +2 -2
  362. package/__chunks__/chunk-DRSK26QN.js +2 -0
  363. package/__chunks__/{chunk-XSAZTF3E.js → chunk-DWYFS7YA.js} +2 -2
  364. package/__chunks__/{chunk-OAJWGA6J.js → chunk-DX6MXOL3.js} +2 -2
  365. package/__chunks__/chunk-E2DVYVFL.js +2 -0
  366. package/__chunks__/{chunk-ZHD5OA4B.js → chunk-E4RJANC6.js} +2 -2
  367. package/__chunks__/{chunk-CPHA2PYU.js → chunk-E4VMFULQ.js} +2 -2
  368. package/__chunks__/{chunk-V4PXI5AW.js → chunk-E6RMSDGP.js} +2 -2
  369. package/__chunks__/{chunk-HYAXG4WF.js → chunk-EAJF3LOQ.js} +2 -2
  370. package/__chunks__/{chunk-2BN2GIOS.js → chunk-EBL4F6EG.js} +2 -2
  371. package/__chunks__/chunk-EEUP6SQL.js +2 -0
  372. package/__chunks__/{chunk-LCNEHLPG.js → chunk-EI4M3YNV.js} +2 -2
  373. package/__chunks__/chunk-EJY2WU2T.js +2 -0
  374. package/__chunks__/{chunk-55GCUERG.js → chunk-EPU2S4NS.js} +2 -2
  375. package/__chunks__/{chunk-UELCKWMT.js → chunk-EQ7JSMKL.js} +2 -2
  376. package/__chunks__/{chunk-JGNG3BZZ.js → chunk-EXF6JCAS.js} +2 -2
  377. package/__chunks__/{chunk-IAD2HOAO.js → chunk-F2VSNGKP.js} +2 -2
  378. package/__chunks__/{chunk-YMIM5HZU.js → chunk-F3SCLSHV.js} +2 -2
  379. package/__chunks__/{chunk-KT5ZGPMN.js → chunk-F622Q4WG.js} +2 -2
  380. package/__chunks__/chunk-FDCTVCCL.js +2 -0
  381. package/__chunks__/{chunk-Y3PV5ZKU.js → chunk-FDKBWYTB.js} +2 -2
  382. package/__chunks__/{chunk-CD3CPTHP.js → chunk-FJKUQCOD.js} +2 -2
  383. package/__chunks__/{chunk-6TWPFLGB.js → chunk-FWSQESPG.js} +2 -2
  384. package/__chunks__/chunk-G4JUZ6ZV.js +2 -0
  385. package/__chunks__/{chunk-ZQVTKOB7.js → chunk-G5HESV24.js} +2 -2
  386. package/__chunks__/chunk-G64JHCEP.js +2 -0
  387. package/__chunks__/chunk-G653YYXG.js +2 -0
  388. package/__chunks__/{chunk-QE4J7WNW.js → chunk-G67HBKAM.js} +2 -2
  389. package/__chunks__/{chunk-Y5YN66ZM.js → chunk-GGCF6MCD.js} +2 -2
  390. package/__chunks__/{chunk-SQL4D5SJ.js → chunk-GM4WOP3D.js} +2 -2
  391. package/__chunks__/{chunk-DK7ASQKB.js → chunk-GNJ5XM4X.js} +2 -2
  392. package/__chunks__/{chunk-HF6N63PN.js → chunk-GO2ZDGAQ.js} +2 -2
  393. package/__chunks__/{chunk-CZ6GQ7OP.js → chunk-GQW5H33I.js} +2 -2
  394. package/__chunks__/{chunk-C2EOMFFG.js → chunk-GR7SKQTT.js} +2 -2
  395. package/__chunks__/{chunk-ONOLWZ55.js → chunk-GREPLCAU.js} +2 -2
  396. package/__chunks__/chunk-GSVWLVPH.js +2 -0
  397. package/__chunks__/{chunk-ZJHZLWLP.js → chunk-GVZCDPSU.js} +2 -2
  398. package/__chunks__/{chunk-DZUQSQJC.js → chunk-H5Z33SMT.js} +2 -2
  399. package/__chunks__/{chunk-T7TLDQQM.js → chunk-H6NIROGY.js} +2 -2
  400. package/__chunks__/{chunk-HW64BUNG.js → chunk-HAJ6WC45.js} +2 -2
  401. package/__chunks__/{chunk-ZSPIPZH4.js → chunk-HEV32P3T.js} +2 -2
  402. package/__chunks__/{chunk-63YEMGRV.js → chunk-HJOCOWHY.js} +2 -2
  403. package/__chunks__/{chunk-YQ7Q3UO2.js → chunk-HYLRSP34.js} +2 -2
  404. package/__chunks__/chunk-I3W6QJGL.js +2 -0
  405. package/__chunks__/{chunk-5XL4MKTV.js → chunk-I3YDBPLE.js} +2 -2
  406. package/__chunks__/chunk-I6EPBIXX.js +2 -0
  407. package/__chunks__/{chunk-ZLRZLINX.js → chunk-I6PHK6EZ.js} +2 -2
  408. package/__chunks__/{chunk-7S7AJZBG.js → chunk-IACFRPXB.js} +2 -2
  409. package/__chunks__/{chunk-74IRUNXU.js → chunk-IHDSJSAF.js} +2 -2
  410. package/__chunks__/{chunk-MS63MM74.js → chunk-IKRY7BAV.js} +2 -2
  411. package/__chunks__/chunk-IKVFBSKP.js +2 -0
  412. package/__chunks__/{chunk-TJPTLBVO.js → chunk-IWH754PM.js} +2 -2
  413. package/__chunks__/{chunk-JDSLDQYY.js → chunk-IYNM4XCP.js} +2 -2
  414. package/__chunks__/{chunk-ZUPVYE33.js → chunk-IZ4L6YPR.js} +2 -2
  415. package/__chunks__/chunk-IZR3MD5I.js +2 -0
  416. package/__chunks__/{chunk-YETUJKNY.js → chunk-J5RC5FOI.js} +2 -2
  417. package/__chunks__/{chunk-QALBKVT2.js → chunk-JALFN6WM.js} +2 -2
  418. package/__chunks__/{chunk-GBFY546A.js → chunk-JEHMSMO2.js} +2 -2
  419. package/__chunks__/{chunk-SBBFPMW4.js → chunk-JFC3UEZC.js} +2 -2
  420. package/__chunks__/{chunk-WHMVNDZ7.js → chunk-JGEHKKCH.js} +2 -2
  421. package/__chunks__/{chunk-WOXES4SE.js → chunk-JLVJEWGI.js} +2 -2
  422. package/__chunks__/{chunk-WZJR6U36.js → chunk-JXEAX4VM.js} +2 -2
  423. package/__chunks__/chunk-JYKPCMVJ.js +2 -0
  424. package/__chunks__/{chunk-I7R7VBQN.js → chunk-K3OG7MQM.js} +2 -2
  425. package/__chunks__/{chunk-DYA4BHPN.js → chunk-K7UTI2NA.js} +2 -2
  426. package/__chunks__/chunk-KC4XJ5AH.js +2 -0
  427. package/__chunks__/{chunk-4PGLIZK3.js → chunk-KEZEYBSU.js} +2 -2
  428. package/__chunks__/{chunk-7EA2KGSK.js → chunk-KG3PV2YV.js} +2 -2
  429. package/__chunks__/{chunk-ZHO7WZDD.js → chunk-KPTSOEKT.js} +2 -2
  430. package/__chunks__/{chunk-JBMRJD3U.js → chunk-KSVNY63E.js} +2 -2
  431. package/__chunks__/{chunk-SBYCT2MO.js → chunk-KT2USGB2.js} +2 -2
  432. package/__chunks__/chunk-KT5RRFJS.js +2 -0
  433. package/__chunks__/{chunk-BPDKFUZP.js → chunk-KVQGMANS.js} +2 -2
  434. package/__chunks__/{chunk-2VBBPK4E.js → chunk-L47LF4QT.js} +2 -2
  435. package/__chunks__/chunk-L5FU5MHG.js +2 -0
  436. package/__chunks__/{chunk-ZGFCWHWH.js → chunk-LGF5FN36.js} +2 -2
  437. package/__chunks__/{chunk-TRE7RNOF.js → chunk-LHB2JQTW.js} +2 -2
  438. package/__chunks__/{chunk-4XBC5W2B.js → chunk-LI7Q7BYH.js} +2 -2
  439. package/__chunks__/{chunk-R7C77BLV.js → chunk-LIFMIKHQ.js} +2 -2
  440. package/__chunks__/{chunk-CEATH2VD.js → chunk-LKTSVK5C.js} +2 -2
  441. package/__chunks__/{chunk-DVVWEADA.js → chunk-LPCM3UFK.js} +2 -2
  442. package/__chunks__/{chunk-E5BCAOXF.js → chunk-LPYPYPVB.js} +2 -2
  443. package/__chunks__/{chunk-6YUF54YB.js → chunk-LRENECQC.js} +2 -2
  444. package/__chunks__/chunk-LSZOIFVE.js +2 -0
  445. package/__chunks__/chunk-LYZAXA4R.js +2 -0
  446. package/__chunks__/{chunk-RPGSJCVE.js → chunk-M57SBHEH.js} +2 -2
  447. package/__chunks__/{chunk-UCWACLHR.js → chunk-M5SWFZ7X.js} +2 -2
  448. package/__chunks__/{chunk-35XITYXP.js → chunk-MDF4BEOL.js} +2 -2
  449. package/__chunks__/chunk-MRLBS4QM.js +2 -0
  450. package/__chunks__/chunk-MSRHA3BD.js +2 -0
  451. package/__chunks__/{chunk-NN7NMPYL.js → chunk-MZSO7FDC.js} +2 -2
  452. package/__chunks__/{chunk-VWUY66YN.js → chunk-N2UHQG5V.js} +2 -2
  453. package/__chunks__/{chunk-YV6XVIQ6.js → chunk-N2ZJQHPK.js} +2 -2
  454. package/__chunks__/{chunk-Y53GOAF2.js → chunk-N3CCST3N.js} +2 -2
  455. package/__chunks__/{chunk-HFE2NNRQ.js → chunk-NCNKHB5C.js} +2 -2
  456. package/__chunks__/{chunk-24EKLZVH.js → chunk-NJ6MU2EU.js} +2 -2
  457. package/__chunks__/chunk-NNFDBY7D.js +2 -0
  458. package/__chunks__/{chunk-3XKQJT3Q.js → chunk-NQEXKQ7B.js} +2 -2
  459. package/__chunks__/{chunk-5WBV7V5C.js → chunk-NQWKBYCD.js} +2 -2
  460. package/__chunks__/{chunk-FEC5AZSS.js → chunk-NRGPVOVC.js} +2 -2
  461. package/__chunks__/{chunk-VT23WB4O.js → chunk-OBJ5MLS3.js} +2 -2
  462. package/__chunks__/{chunk-HZDSREVW.js → chunk-OBXVMKUP.js} +1 -1
  463. package/__chunks__/{chunk-K3FVG3VC.js → chunk-OKV44XY7.js} +2 -2
  464. package/__chunks__/chunk-OPHIUK5C.js +2 -0
  465. package/__chunks__/{chunk-FPBPYIFI.js → chunk-OUAANZJZ.js} +2 -2
  466. package/__chunks__/{chunk-Y3VJPFZS.js → chunk-OUUBZVL7.js} +2 -2
  467. package/__chunks__/{chunk-7MCOOH2E.js → chunk-OWTOOSJF.js} +2 -2
  468. package/__chunks__/{chunk-C4UYVG6H.js → chunk-OYRIANVB.js} +2 -2
  469. package/__chunks__/{chunk-CAFBEVOA.js → chunk-PA4TELOT.js} +2 -2
  470. package/__chunks__/{chunk-ZGVVZZNZ.js → chunk-PAUXCIY4.js} +2 -2
  471. package/__chunks__/{chunk-CI3CDAFI.js → chunk-PBPLOFZI.js} +2 -2
  472. package/__chunks__/{chunk-NO2BLAZP.js → chunk-PFLLSLLZ.js} +2 -2
  473. package/__chunks__/{chunk-ABJOAZ4W.js → chunk-PITYHD7S.js} +2 -2
  474. package/__chunks__/{chunk-UCG3KP2Z.js → chunk-PKPVUD5L.js} +2 -2
  475. package/__chunks__/{chunk-BRGHJFL4.js → chunk-PLYJHLE6.js} +2 -2
  476. package/__chunks__/{chunk-36YM4J3O.js → chunk-PMCWQ7AY.js} +2 -2
  477. package/__chunks__/{chunk-2WCSKO6I.js → chunk-PMIP26KN.js} +2 -2
  478. package/__chunks__/{chunk-3LFMJ4J4.js → chunk-PMROE73H.js} +2 -2
  479. package/__chunks__/{chunk-QJEUHRZC.js → chunk-PNQXOSM5.js} +2 -2
  480. package/__chunks__/{chunk-YRLVEGZZ.js → chunk-PR7P2ULH.js} +2 -2
  481. package/__chunks__/chunk-PTRGD3CU.js +2 -0
  482. package/__chunks__/chunk-PXHO3BEJ.js +2 -0
  483. package/__chunks__/chunk-PZVZZFPY.js +2 -0
  484. package/__chunks__/{chunk-6O4TSLEB.js → chunk-Q5KITURU.js} +2 -2
  485. package/__chunks__/{chunk-UYREKEXP.js → chunk-Q5NNBQAV.js} +2 -2
  486. package/__chunks__/{chunk-OJ6ZKEKH.js → chunk-Q5W5AFGS.js} +2 -2
  487. package/__chunks__/chunk-Q627GIUA.js +2 -0
  488. package/__chunks__/chunk-QACG53JG.js +2 -0
  489. package/__chunks__/{chunk-V7AFF4JI.js → chunk-QAT6C25N.js} +2 -2
  490. package/__chunks__/{chunk-TUG7YY33.js → chunk-QCHR5HEG.js} +2 -2
  491. package/__chunks__/{chunk-E63JPJZK.js → chunk-QDAVZ7OA.js} +2 -2
  492. package/__chunks__/chunk-QDHF4SER.js +2 -0
  493. package/__chunks__/{chunk-SSXLVERH.js → chunk-QDV4ZP2M.js} +2 -2
  494. package/__chunks__/{chunk-IAXMRUR5.js → chunk-QGCBUZMI.js} +2 -2
  495. package/__chunks__/{chunk-RKINNYL5.js → chunk-QHAENUJB.js} +2 -2
  496. package/__chunks__/{chunk-EJA6DPVS.js → chunk-QIKU3HHV.js} +2 -2
  497. package/__chunks__/{chunk-UUKOZZQ3.js → chunk-QJKF6GHP.js} +2 -2
  498. package/__chunks__/chunk-QL24CJTQ.js +2 -0
  499. package/__chunks__/{chunk-DM3ARLHC.js → chunk-QMPEJJVN.js} +2 -2
  500. package/__chunks__/{chunk-LOYED3BS.js → chunk-QRM43PJ7.js} +2 -2
  501. package/__chunks__/{chunk-GMRMYYT3.js → chunk-QS2J5Y5S.js} +2 -2
  502. package/__chunks__/chunk-QZONUVAE.js +2 -0
  503. package/__chunks__/chunk-R5ZSOXWN.js +2 -0
  504. package/__chunks__/{chunk-IHYLEJ2Y.js → chunk-RCWJYPHG.js} +2 -2
  505. package/__chunks__/chunk-RFJ5GESB.js +2 -0
  506. package/__chunks__/{chunk-T5LLSLIS.js → chunk-RFV2ZX42.js} +2 -2
  507. package/__chunks__/{chunk-6WYIWDO6.js → chunk-RHLPZKDL.js} +2 -2
  508. package/__chunks__/{chunk-5RHZGVRM.js → chunk-RLA3KS3C.js} +2 -2
  509. package/__chunks__/{chunk-KCY6PM5H.js → chunk-RMRB4PG7.js} +2 -2
  510. package/__chunks__/{chunk-KAPHRPVZ.js → chunk-RQEQNDPR.js} +2 -2
  511. package/__chunks__/{chunk-FW22ZABE.js → chunk-RURHW26N.js} +2 -2
  512. package/__chunks__/{chunk-JGB3LPUJ.js → chunk-RZA2QVJJ.js} +2 -2
  513. package/__chunks__/{chunk-HIUR254L.js → chunk-SAU3GV5S.js} +2 -2
  514. package/__chunks__/{chunk-LFOZOY7D.js → chunk-SCF2X64R.js} +2 -2
  515. package/__chunks__/chunk-SEG5HF52.js +2 -0
  516. package/__chunks__/{chunk-4HXZGUCY.js → chunk-SIWOU7VR.js} +2 -2
  517. package/__chunks__/chunk-SP4QKH32.js +2 -0
  518. package/__chunks__/{chunk-P3DCKAUJ.js → chunk-ST2RCY5I.js} +2 -2
  519. package/__chunks__/{chunk-7MI5MVOV.js → chunk-STH5LUWT.js} +2 -2
  520. package/__chunks__/{chunk-GYPY6DJT.js → chunk-SUJVWOKE.js} +2 -2
  521. package/__chunks__/{chunk-EALKP26X.js → chunk-SUYGYV6S.js} +2 -2
  522. package/__chunks__/{chunk-4V227JGD.js → chunk-SWLNOKJR.js} +2 -2
  523. package/__chunks__/{chunk-2GQOBC7J.js → chunk-SXGN3IUH.js} +2 -2
  524. package/__chunks__/{chunk-CQP4T6OW.js → chunk-SXMVV4S4.js} +2 -2
  525. package/__chunks__/{chunk-74M7H363.js → chunk-SYID4H73.js} +2 -2
  526. package/__chunks__/{chunk-DGO6OSB5.js → chunk-T42QAHB6.js} +2 -2
  527. package/__chunks__/chunk-T55HUATV.js +2 -0
  528. package/__chunks__/{chunk-WP7JGJT6.js → chunk-TCPXGP5C.js} +2 -2
  529. package/__chunks__/{chunk-ZWHTJQU3.js → chunk-TI4J3CAV.js} +2 -2
  530. package/__chunks__/{chunk-FOODUX53.js → chunk-TMIXNEEZ.js} +2 -2
  531. package/__chunks__/{chunk-ZBSSK6EE.js → chunk-TUIBLRVN.js} +2 -2
  532. package/__chunks__/{chunk-24A5WUDO.js → chunk-TW3JWVIN.js} +2 -2
  533. package/__chunks__/chunk-TXGE7LK5.js +2 -0
  534. package/__chunks__/chunk-U2MQ2NIR.js +2 -0
  535. package/__chunks__/{chunk-GO5IJGSN.js → chunk-U6Q5QMWK.js} +2 -2
  536. package/__chunks__/{chunk-QBRKIE2K.js → chunk-UHFUVOIC.js} +2 -2
  537. package/__chunks__/{chunk-ZUTF5TKZ.js → chunk-UIE5UGIX.js} +2 -2
  538. package/__chunks__/{chunk-DHDTIRKF.js → chunk-UMX3Z2Z3.js} +2 -2
  539. package/__chunks__/{chunk-44ILNGCJ.js → chunk-UPEB63DH.js} +2 -2
  540. package/__chunks__/{chunk-PYOG57YQ.js → chunk-UQTM2ZQV.js} +2 -2
  541. package/__chunks__/{chunk-SENC42SX.js → chunk-UXL76O4N.js} +2 -2
  542. package/__chunks__/{chunk-MDZTAYV3.js → chunk-V3PBXWHW.js} +2 -2
  543. package/__chunks__/{chunk-CPOITXSZ.js → chunk-VCLJHKKN.js} +2 -2
  544. package/__chunks__/chunk-VEK7KCUM.js +2 -0
  545. package/__chunks__/{chunk-7QD6A3WA.js → chunk-VFIW3ER2.js} +2 -2
  546. package/__chunks__/{chunk-JXKRW7Q2.js → chunk-VHPWTNZY.js} +2 -2
  547. package/__chunks__/{chunk-5AXQ4E5C.js → chunk-VIHVI5XJ.js} +2 -2
  548. package/__chunks__/{chunk-UF3IVPHW.js → chunk-VINXWKBD.js} +2 -2
  549. package/__chunks__/{chunk-X3G46H4K.js → chunk-VLM35UCP.js} +2 -2
  550. package/__chunks__/chunk-VQBPXNF2.js +2 -0
  551. package/__chunks__/{chunk-XGCL5XNF.js → chunk-VQMFXLQK.js} +2 -2
  552. package/__chunks__/{chunk-M56IOFGM.js → chunk-VQSVDLAN.js} +2 -2
  553. package/__chunks__/{chunk-ZYECSDDT.js → chunk-VSKTYG2D.js} +2 -2
  554. package/__chunks__/{chunk-WO7J73MR.js → chunk-VVOQAMMU.js} +2 -2
  555. package/__chunks__/{chunk-75HYUZKE.js → chunk-VZSENX24.js} +2 -2
  556. package/__chunks__/chunk-W3JGVHNE.js +2 -0
  557. package/__chunks__/{chunk-3O7X7LN3.js → chunk-W5FSOXAZ.js} +2 -2
  558. package/__chunks__/{chunk-VOF2ZG4V.js → chunk-W6ZILZNE.js} +2 -2
  559. package/__chunks__/{chunk-GV72WDLK.js → chunk-W73UU7Y7.js} +2 -2
  560. package/__chunks__/{chunk-SRGHVLIJ.js → chunk-WB4FYIDB.js} +2 -2
  561. package/__chunks__/{chunk-DR3247LH.js → chunk-WB536AFQ.js} +2 -2
  562. package/__chunks__/{chunk-2NFWONSO.js → chunk-WCDQECOZ.js} +2 -2
  563. package/__chunks__/{chunk-7CRWRYXT.js → chunk-WCOEJXIQ.js} +2 -2
  564. package/__chunks__/{chunk-PLXPG432.js → chunk-WDYQ7MCZ.js} +2 -2
  565. package/__chunks__/{chunk-Z6VTM6SV.js → chunk-WEWVNK3P.js} +2 -2
  566. package/__chunks__/{chunk-IFWV76SP.js → chunk-WFMW6BEJ.js} +2 -2
  567. package/__chunks__/{chunk-AIUO5JWY.js → chunk-WFOUUCRH.js} +2 -2
  568. package/__chunks__/chunk-WJEQNUAL.js +2 -0
  569. package/__chunks__/chunk-WKZA3HHK.js +2 -0
  570. package/__chunks__/{chunk-VAIXGPA2.js → chunk-WLJQ5F4Q.js} +2 -2
  571. package/__chunks__/{chunk-YPOQHBKB.js → chunk-WMEDQ4UN.js} +2 -2
  572. package/__chunks__/{chunk-A2EWZWIA.js → chunk-WOE2F5QC.js} +2 -2
  573. package/__chunks__/chunk-WQZOIG6J.js +2 -0
  574. package/__chunks__/{chunk-NO7L5F75.js → chunk-WRQUUQP7.js} +2 -2
  575. package/__chunks__/{chunk-DKKQ4PJR.js → chunk-WVBEDWEP.js} +2 -2
  576. package/__chunks__/chunk-X57YN4T7.js +2 -0
  577. package/__chunks__/{chunk-WID7W5E4.js → chunk-XB52F5LP.js} +2 -2
  578. package/__chunks__/{chunk-BVS3UC7Y.js → chunk-XBTVUOHE.js} +2 -2
  579. package/__chunks__/{chunk-YFU6WUEB.js → chunk-XCCJS4FI.js} +2 -2
  580. package/__chunks__/{chunk-EBENIERS.js → chunk-XE4RMOGX.js} +2 -2
  581. package/__chunks__/{chunk-YMOBP752.js → chunk-XE5BTZIL.js} +2 -2
  582. package/__chunks__/{chunk-R5YLDIFZ.js → chunk-XNMEPYLW.js} +2 -2
  583. package/__chunks__/{chunk-46FDO47N.js → chunk-XP4XFIWP.js} +2 -2
  584. package/__chunks__/chunk-XT3QFIFF.js +2 -0
  585. package/__chunks__/{chunk-HQ67ZLOD.js → chunk-XTFF6G4Q.js} +2 -2
  586. package/__chunks__/{chunk-RGNSDRWU.js → chunk-XU3W2FES.js} +2 -2
  587. package/__chunks__/chunk-XUF4W5KE.js +2 -0
  588. package/__chunks__/chunk-XXD5XRR7.js +2 -0
  589. package/__chunks__/chunk-XZCW7JHJ.js +2 -0
  590. package/__chunks__/{chunk-4D5UWOVI.js → chunk-XZIJNAWV.js} +2 -2
  591. package/__chunks__/{chunk-QPR5I2H4.js → chunk-Y4QS7CQT.js} +2 -2
  592. package/__chunks__/{chunk-YWM62O2B.js → chunk-Y74LAEH5.js} +2 -2
  593. package/__chunks__/{chunk-MCUFKNBQ.js → chunk-YBNFTO5N.js} +2 -2
  594. package/__chunks__/{chunk-NAJ3XHWI.js → chunk-YMPN4N2M.js} +2 -2
  595. package/__chunks__/chunk-YMT4ZUYK.js +2 -0
  596. package/__chunks__/{chunk-EKXGKN5W.js → chunk-YNHECQ3O.js} +2 -2
  597. package/__chunks__/{chunk-GCK3W6HO.js → chunk-YPVIFNXR.js} +2 -2
  598. package/__chunks__/{chunk-YEELKGXG.js → chunk-YRF7TVLD.js} +2 -2
  599. package/__chunks__/{chunk-26MDEIIP.js → chunk-YZYYJF52.js} +2 -2
  600. package/__chunks__/{chunk-H57J7HDK.js → chunk-Z3IAFUDX.js} +2 -2
  601. package/__chunks__/{chunk-MPPXC32I.js → chunk-Z4QCHI6K.js} +2 -2
  602. package/__chunks__/{chunk-4S2JPO6R.js → chunk-Z6O3W5SA.js} +2 -2
  603. package/__chunks__/{chunk-ZYARFROL.js → chunk-ZCIKETKE.js} +2 -2
  604. package/__chunks__/{chunk-Z5QNZWPF.js → chunk-ZDKXRSOJ.js} +2 -2
  605. package/__chunks__/{chunk-A57CFVMI.js → chunk-ZEBB6JN4.js} +2 -2
  606. package/__chunks__/{chunk-XZ36INBS.js → chunk-ZHRMN7JE.js} +2 -2
  607. package/__chunks__/{chunk-O45WIZLC.js → chunk-ZIKUXOGF.js} +2 -2
  608. package/__chunks__/{chunk-RZRO4ZNS.js → chunk-ZK7IKT5K.js} +2 -2
  609. package/__chunks__/{chunk-S3VWIED2.js → chunk-ZLVHNYWH.js} +2 -2
  610. package/__chunks__/{chunk-JSNZD3UN.js → chunk-ZNDF6L3J.js} +2 -2
  611. package/__chunks__/{chunk-QVLXNXDC.js → chunk-ZRGPYVWH.js} +2 -2
  612. package/__chunks__/{chunk-BH5RQMPG.js → chunk-ZUE2JTL5.js} +2 -2
  613. package/__chunks__/chunk-ZX4ZQJIT.js +2 -0
  614. package/__chunks__/{chunk-4SH36YOD.js → chunk-ZY6TBGCN.js} +2 -2
  615. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  616. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
  617. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  618. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/signWithDeviceModal.types.js +1 -1
  619. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
  620. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  621. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
  622. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  623. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +3 -3
  624. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +3 -3
  625. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  626. package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
  627. package/__commonjs/UI/SignTransactionsModals/index.js +1 -1
  628. package/__commonjs/UI/TransactionData/TransactionData.js +2 -2
  629. package/__commonjs/UI/TransactionData/index.js +2 -2
  630. package/__commonjs/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
  631. package/__commonjs/UI/TransactionDetails/components/index.js +1 -1
  632. package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +2 -2
  633. package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +2 -2
  634. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +3 -3
  635. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +3 -3
  636. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +11 -11
  637. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +15 -15
  638. package/__commonjs/UI/TransactionInfo/components/OperationsList/components/index.js +11 -11
  639. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
  640. package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
  641. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +3 -3
  642. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +3 -3
  643. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +11 -11
  644. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +11 -11
  645. package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
  646. package/__commonjs/UI/TransactionsTable/components/TransactionMethod.js +2 -2
  647. package/__commonjs/UI/TransactionsTable/components/TransactionReceiver.js +4 -4
  648. package/__commonjs/UI/TransactionsTable/components/TransactionSender.js +4 -4
  649. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  650. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +7 -7
  651. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  652. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +6 -6
  653. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/components/DefaultToastDeleteButton.js +1 -1
  654. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +6 -6
  655. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
  656. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +7 -7
  657. package/__commonjs/UI/index.js +81 -81
  658. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +14 -14
  659. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +14 -14
  660. package/__commonjs/UI/metamaskProxy/MetamaskProxyLoginButton/MetamaskProxyButton.js +4 -4
  661. package/__commonjs/UI/metamaskProxy/MetamaskProxyLoginButton/index.js +4 -4
  662. package/__commonjs/UI/pages/UnlockPage/index.js +23 -23
  663. package/__commonjs/UI/pages/index.js +23 -23
  664. package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +2 -2
  665. package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/index.js +2 -2
  666. package/__commonjs/__mocks__/index.js +2 -2
  667. package/__commonjs/__mocks__/server.js +1 -1
  668. package/__commonjs/__mocks__/utils/index.js +1 -1
  669. package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
  670. package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  671. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +3 -3
  672. package/__commonjs/components/ProviderInitializer/ProviderInitializer.js +1 -1
  673. package/__commonjs/components/ProviderInitializer/index.js +1 -1
  674. package/__commonjs/components/TransactionSender/utils/handleSendBatchTransactionsErrors.js +1 -1
  675. package/__commonjs/components/TransactionSender/utils/handleSendTransactionsErrors.js +1 -1
  676. package/__commonjs/hooks/account/useGetBatchWebsocketEvent.js +1 -1
  677. package/__commonjs/hooks/account/useGetWebsocketEvent.js +1 -1
  678. package/__commonjs/hooks/index.js +1 -1
  679. package/__commonjs/hooks/login/useMetamaskProxyLogin.js +1 -1
  680. package/__commonjs/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
  681. package/__commonjs/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
  682. package/__commonjs/hooks/transactions/helpers/buildBatchId.js +1 -1
  683. package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  684. package/__commonjs/hooks/transactions/helpers/extractSessionId.js +1 -1
  685. package/__commonjs/hooks/transactions/helpers/index.js +1 -1
  686. package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  687. package/__commonjs/hooks/transactions/index.js +1 -1
  688. package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  689. package/__commonjs/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  690. package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  691. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  692. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  693. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  694. package/__commonjs/hooks/websocketListener/index.js +1 -1
  695. package/__commonjs/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  696. package/__commonjs/reduxStore/DappProviderContext.js +1 -1
  697. package/__commonjs/reduxStore/slices/batchTransactionsSlice.js +1 -1
  698. package/__commonjs/services/transactions/sendBatchTransactions.test.js +1 -1
  699. package/__commonjs/types/network.types.d.ts +2 -0
  700. package/__commonjs/types/network.types.js +1 -1
  701. package/__commonjs/utils/account/loginWithExternalProvider.js +1 -1
  702. package/__commonjs/utils/account/setNonce.js +1 -1
  703. package/__commonjs/utils/index.js +1 -1
  704. package/__commonjs/utils/smartContracts.js +1 -1
  705. package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
  706. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +2 -2
  707. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  708. package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +2 -2
  709. package/__commonjs/utils/transactions/index.js +1 -1
  710. package/__commonjs/utils/transactions/isGuardianTx.js +1 -1
  711. package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  712. package/__commonjs/utils/transactions/parseMultiEsdtTransferDataForMultipleTransactions.js +1 -1
  713. package/__commonjs/utils/transactions/parseTransactionAfterSigning.js +1 -1
  714. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +3 -3
  715. package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +3 -3
  716. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  717. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  718. package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  719. package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  720. package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  721. package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  722. package/__commonjs/utils/validation/index.js +1 -1
  723. package/__commonjs/utils/validation/maxDecimals.js +1 -1
  724. package/__commonjs/utils/validation/stringIsFloat.js +1 -1
  725. package/__commonjs/wrappers/AppInitializer.js +1 -1
  726. package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  727. package/__commonjs/wrappers/DappProvider/DappProvider.js +1 -1
  728. package/__commonjs/wrappers/DappProvider/index.js +1 -1
  729. package/__commonjs/wrappers/index.js +1 -1
  730. package/__mocks__/accountConfig.js +1 -1
  731. package/__mocks__/index.js +1 -1
  732. package/__mocks__/server.js +1 -1
  733. package/__mocks__/utils/index.js +1 -1
  734. package/__mocks__/utils/renderWithProvider.js +1 -1
  735. package/apiCalls/accounts/getAccountFromApi.js +1 -1
  736. package/apiCalls/accounts/index.js +1 -1
  737. package/apiCalls/accounts/useGetAccountFromApi.js +1 -1
  738. package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
  739. package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
  740. package/apiCalls/configuration/getNetworkConfig.js +1 -1
  741. package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
  742. package/apiCalls/configuration/index.js +1 -1
  743. package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
  744. package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
  745. package/apiCalls/economics/getEconomicsInfo.js +1 -1
  746. package/apiCalls/economics/index.js +1 -1
  747. package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
  748. package/apiCalls/index.js +1 -1
  749. package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
  750. package/apiCalls/transactions/index.js +1 -1
  751. package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
  752. package/apiCalls/transactions/sendSignedTransactions.js +1 -1
  753. package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
  754. package/apiCalls/utils/getCleanApiAddress.js +1 -1
  755. package/apiCalls/utils/getScamAddressData.js +1 -1
  756. package/apiCalls/utils/index.js +1 -1
  757. package/apiCalls/utils/useApiFetch.js +1 -1
  758. package/components/LogoutListener/LogoutListener.js +1 -1
  759. package/components/LogoutListener/helpers/index.js +1 -1
  760. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  761. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  762. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  763. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  764. package/components/LogoutListener/index.js +1 -1
  765. package/components/ProviderInitializer/ProviderInitializer.js +1 -1
  766. package/components/ProviderInitializer/helpers/index.js +1 -1
  767. package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
  768. package/components/ProviderInitializer/hooks/index.js +1 -1
  769. package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
  770. package/components/ProviderInitializer/index.js +1 -1
  771. package/components/TransactionSender/TransactionSender.js +1 -1
  772. package/components/TransactionSender/index.js +1 -1
  773. package/components/TransactionSender/utils/handleSendBatchTransactionsErrors.js +1 -1
  774. package/components/TransactionSender/utils/handleSendTransactionsErrors.js +1 -1
  775. package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
  776. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  777. package/components/TransactionsTracker/index.js +1 -1
  778. package/constants/index.js +1 -1
  779. package/constants/network.js +1 -1
  780. package/hooks/account/index.js +1 -1
  781. package/hooks/account/useGetAccount.js +1 -1
  782. package/hooks/account/useGetAccountInfo.js +1 -1
  783. package/hooks/account/useGetAccountProvider.js +1 -1
  784. package/hooks/account/useGetBatchWebsocketEvent.js +1 -1
  785. package/hooks/account/useGetIsLoggedIn.js +1 -1
  786. package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
  787. package/hooks/account/useGetLoginInfo.js +1 -1
  788. package/hooks/account/useGetWebsocketEvent.js +1 -1
  789. package/hooks/economics/index.js +1 -1
  790. package/hooks/economics/useGetEgldPrice.js +1 -1
  791. package/hooks/index.js +1 -1
  792. package/hooks/login/index.js +1 -1
  793. package/hooks/login/useCrossWindowLogin.js +1 -1
  794. package/hooks/login/useExtensionLogin.js +1 -1
  795. package/hooks/login/useGetModalLoginMethods.js +1 -1
  796. package/hooks/login/useLedgerLogin.js +1 -1
  797. package/hooks/login/useLoginService.js +1 -1
  798. package/hooks/login/useMetamaskLogin.js +1 -1
  799. package/hooks/login/useMetamaskProxyLogin.js +1 -1
  800. package/hooks/login/useOperaLogin.js +1 -1
  801. package/hooks/login/useWalletConnectV2Login.js +1 -1
  802. package/hooks/login/useWebViewLogin.js +1 -1
  803. package/hooks/login/useWebWalletLogin.js +1 -1
  804. package/hooks/login/useXaliasLogin.js +1 -1
  805. package/hooks/signMessage/index.js +1 -1
  806. package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
  807. package/hooks/signMessage/useGetSignMessageSession.js +1 -1
  808. package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
  809. package/hooks/signMessage/useSignMessage.js +1 -1
  810. package/hooks/toasts/index.js +1 -1
  811. package/hooks/toasts/useGetToasts.js +1 -1
  812. package/hooks/toasts/useTransactionsToasts.js +1 -1
  813. package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
  814. package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
  815. package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
  816. package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
  817. package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
  818. package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
  819. package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
  820. package/hooks/transactions/batch/useGetBatches.js +1 -1
  821. package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
  822. package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
  823. package/hooks/transactions/helpers/buildBatchId.js +1 -1
  824. package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
  825. package/hooks/transactions/helpers/extractSessionId.js +1 -1
  826. package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
  827. package/hooks/transactions/helpers/index.js +1 -1
  828. package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
  829. package/hooks/transactions/helpers/useGetLedgerProvider.js +1 -1
  830. package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
  831. package/hooks/transactions/index.js +1 -1
  832. package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
  833. package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
  834. package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
  835. package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
  836. package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
  837. package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
  838. package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
  839. package/hooks/transactions/useGetFailedTransactions.js +1 -1
  840. package/hooks/transactions/useGetLastPendingTransactionHash.js +1 -1
  841. package/hooks/transactions/useGetPendingTransactions.js +1 -1
  842. package/hooks/transactions/useGetPollingInterval.js +1 -1
  843. package/hooks/transactions/useGetSignTransactionsError.js +1 -1
  844. package/hooks/transactions/useGetSignedTransactions.js +1 -1
  845. package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
  846. package/hooks/transactions/useGetTokenDetails.js +1 -1
  847. package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
  848. package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
  849. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  850. package/hooks/transactions/useSignMultipleTransactions.js +1 -1
  851. package/hooks/transactions/useSignTransactions.js +1 -1
  852. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  853. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  854. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  855. package/hooks/transactions/useTrackTransactionStatus.js +1 -1
  856. package/hooks/transactions/useTransactionsTracker.js +1 -1
  857. package/hooks/useGetNetworkConfig.js +1 -1
  858. package/hooks/useGetNotification.js +1 -1
  859. package/hooks/websocketListener/index.js +1 -1
  860. package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
  861. package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
  862. package/models/index.js +1 -1
  863. package/models/newTransaction.js +1 -1
  864. package/package.json +2 -2
  865. package/providers/accountProvider.js +1 -1
  866. package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
  867. package/providers/experimentalWebViewProvider/index.js +1 -1
  868. package/providers/index.js +1 -1
  869. package/providers/utils.js +1 -1
  870. package/providers/webviewProvider/index.js +1 -1
  871. package/providers/webviewProvider/requestMethods.js +1 -1
  872. package/providers/webviewProvider/webviewProvider.js +1 -1
  873. package/reduxStore/DappProviderContext.js +1 -1
  874. package/reduxStore/commonActions.js +1 -1
  875. package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
  876. package/reduxStore/persistConfig.js +1 -1
  877. package/reduxStore/persistedRootReducer.js +1 -1
  878. package/reduxStore/reducers.js +1 -1
  879. package/reduxStore/rootReducer.js +1 -1
  880. package/reduxStore/selectors/accountInfoSelectors.js +1 -1
  881. package/reduxStore/selectors/index.js +1 -1
  882. package/reduxStore/selectors/loginInfoSelectors.js +1 -1
  883. package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
  884. package/reduxStore/selectors/transactionsSelectors.js +1 -1
  885. package/reduxStore/slices/accountInfoSlice.js +1 -1
  886. package/reduxStore/slices/batchTransactionsSlice.js +1 -1
  887. package/reduxStore/slices/dappConfigSlice.js +1 -1
  888. package/reduxStore/slices/index.js +1 -1
  889. package/reduxStore/slices/loginInfoSlice.js +1 -1
  890. package/reduxStore/slices/modalsSlice.js +1 -1
  891. package/reduxStore/slices/networkConfigSlice.js +1 -1
  892. package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
  893. package/reduxStore/slices/toastsSlice.js +1 -1
  894. package/reduxStore/slices/transactionsInfoSlice.js +1 -1
  895. package/reduxStore/slices/transactionsSlice.js +1 -1
  896. package/reduxStore/store.js +1 -1
  897. package/services/index.js +1 -1
  898. package/services/nativeAuth/helpers/getAuthorizationInfo.js +1 -1
  899. package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
  900. package/services/nativeAuth/helpers/index.js +1 -1
  901. package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
  902. package/services/transactions/clearTransactions.js +1 -1
  903. package/services/transactions/getBatchTransactionsStatus.js +1 -1
  904. package/services/transactions/getTransactionsDetails.js +1 -1
  905. package/services/transactions/index.js +1 -1
  906. package/services/transactions/isCrossShardTransaction.js +1 -1
  907. package/services/transactions/sendBatchTransactions.js +1 -1
  908. package/services/transactions/sendBatchTransactions.test.js +1 -1
  909. package/services/transactions/sendTransactions.js +1 -1
  910. package/services/transactions/signTransactions.js +1 -1
  911. package/services/transactions/transformAndSignTransactions.js +1 -1
  912. package/services/transactions/updateSignedTransactions.js +1 -1
  913. package/services/transactions/utils/transformTransactionsToSign.js +1 -1
  914. package/services/transactions/utils.js +1 -1
  915. package/types/index.js +1 -1
  916. package/types/network.types.d.ts +2 -0
  917. package/types/network.types.js +1 -1
  918. package/utils/account/getAccount.js +1 -1
  919. package/utils/account/getAccountBalance.js +1 -1
  920. package/utils/account/getAccountProviderType.js +1 -1
  921. package/utils/account/getAccountShard.js +1 -1
  922. package/utils/account/getAddress.js +1 -1
  923. package/utils/account/getIsProviderEqualTo.js +1 -1
  924. package/utils/account/getLatestNonce.js +1 -1
  925. package/utils/account/getShardOfAddress.js +1 -1
  926. package/utils/account/getWebviewToken.js +1 -1
  927. package/utils/account/index.js +1 -1
  928. package/utils/account/loginWithExternalProvider.js +1 -1
  929. package/utils/account/refreshAccount.js +1 -1
  930. package/utils/account/setNonce.js +1 -1
  931. package/utils/account/signMessage.js +1 -1
  932. package/utils/getIsLoggedIn.js +1 -1
  933. package/utils/index.js +1 -1
  934. package/utils/logout.js +1 -1
  935. package/utils/network/getChainID.js +1 -1
  936. package/utils/network/getEgldLabel.js +1 -1
  937. package/utils/network/getNetworkConfig.js +1 -1
  938. package/utils/network/index.js +1 -1
  939. package/utils/operations/calculateFeeInFiat.js +1 -1
  940. package/utils/operations/calculateFeeLimit.js +1 -1
  941. package/utils/operations/denominate.js +1 -1
  942. package/utils/operations/formatAmount.js +1 -1
  943. package/utils/operations/index.js +1 -1
  944. package/utils/operations/ledger/getLedgerVersionOptions.js +1 -1
  945. package/utils/operations/ledger/index.js +1 -1
  946. package/utils/operations/nominate.js +1 -1
  947. package/utils/operations/parseAmount.js +1 -1
  948. package/utils/smartContracts.js +1 -1
  949. package/utils/toasts/customToastsActions.js +1 -1
  950. package/utils/toasts/index.js +1 -1
  951. package/utils/transactions/batch/getTransactionsStatus.js +1 -1
  952. package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
  953. package/utils/transactions/builtCallbackUrl.js +1 -1
  954. package/utils/transactions/getAllTransactionsLink.js +1 -1
  955. package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
  956. package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
  957. package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
  958. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
  959. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
  960. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
  961. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
  962. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
  963. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
  964. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
  965. package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
  966. package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
  967. package/utils/transactions/getInterpretedTransaction/index.js +1 -1
  968. package/utils/transactions/getOperationsDetails.js +1 -1
  969. package/utils/transactions/getTransactionLink.js +1 -1
  970. package/utils/transactions/index.js +1 -1
  971. package/utils/transactions/isGuardianTx.js +1 -1
  972. package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
  973. package/utils/transactions/parseMultiEsdtTransferDataForMultipleTransactions.js +1 -1
  974. package/utils/transactions/parseTransactionAfterSigning.js +1 -1
  975. package/utils/transactions/removeTransactionParamsFromUrl.js +1 -1
  976. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
  977. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
  978. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
  979. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
  980. package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
  981. package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
  982. package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
  983. package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
  984. package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
  985. package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
  986. package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
  987. package/utils/transactions/transactionInfoHelpers/index.js +1 -1
  988. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
  989. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
  990. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
  991. package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
  992. package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
  993. package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
  994. package/utils/validation/index.js +1 -1
  995. package/utils/validation/maxDecimals.js +1 -1
  996. package/utils/validation/stringIsFloat.js +1 -1
  997. package/utils/waitForChainID.js +1 -1
  998. package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
  999. package/web/hooks/index.js +1 -1
  1000. package/web/hooks/useIdleTimer.js +1 -1
  1001. package/web/index.js +1 -1
  1002. package/wrappers/AppInitializer.js +1 -1
  1003. package/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper.js +1 -1
  1004. package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
  1005. package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
  1006. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
  1007. package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
  1008. package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
  1009. package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
  1010. package/wrappers/AxiosInterceptorContext/index.js +1 -1
  1011. package/wrappers/DappProvider/CustomComponents.js +1 -1
  1012. package/wrappers/DappProvider/DappProvider.js +1 -1
  1013. package/wrappers/DappProvider/index.js +1 -1
  1014. package/wrappers/index.js +1 -1
  1015. package/__chunks__/chunk-2CY5GUK2.js +0 -2
  1016. package/__chunks__/chunk-2FL7QR5T.js +0 -2
  1017. package/__chunks__/chunk-2R5BODN3.js +0 -2
  1018. package/__chunks__/chunk-2ZJSD44I.js +0 -2
  1019. package/__chunks__/chunk-3DTWVXOA.js +0 -2
  1020. package/__chunks__/chunk-3OHJNWGX.js +0 -2
  1021. package/__chunks__/chunk-4VIGZBCO.js +0 -2
  1022. package/__chunks__/chunk-5CZ2ELHD.js +0 -2
  1023. package/__chunks__/chunk-5GBGYHG4.js +0 -2
  1024. package/__chunks__/chunk-7FUNECIK.js +0 -2
  1025. package/__chunks__/chunk-7GQYWSWO.js +0 -2
  1026. package/__chunks__/chunk-7MECGIFH.js +0 -2
  1027. package/__chunks__/chunk-7NIJSSAX.js +0 -2
  1028. package/__chunks__/chunk-A7ZJS5KP.js +0 -2
  1029. package/__chunks__/chunk-AQR42WCN.js +0 -2
  1030. package/__chunks__/chunk-CEVP5XYQ.js +0 -2
  1031. package/__chunks__/chunk-CL33WWUP.js +0 -2
  1032. package/__chunks__/chunk-CUSOGIOX.js +0 -2
  1033. package/__chunks__/chunk-DUZUYHDS.js +0 -2
  1034. package/__chunks__/chunk-DXRT4CRT.js +0 -2
  1035. package/__chunks__/chunk-ELCUZ75F.js +0 -2
  1036. package/__chunks__/chunk-EQFSC6TK.js +0 -2
  1037. package/__chunks__/chunk-FFT6WXEW.js +0 -2
  1038. package/__chunks__/chunk-FOAITZEO.js +0 -2
  1039. package/__chunks__/chunk-GKNYCTOB.js +0 -2
  1040. package/__chunks__/chunk-GU35CEXE.js +0 -2
  1041. package/__chunks__/chunk-H24VHWQP.js +0 -2
  1042. package/__chunks__/chunk-HKWLUGC6.js +0 -2
  1043. package/__chunks__/chunk-HVPDUMWF.js +0 -2
  1044. package/__chunks__/chunk-I76LZZTZ.js +0 -2
  1045. package/__chunks__/chunk-IRKBX6DD.js +0 -2
  1046. package/__chunks__/chunk-JGSAQGXP.js +0 -2
  1047. package/__chunks__/chunk-JJ4XECYP.js +0 -2
  1048. package/__chunks__/chunk-KALBDWE6.js +0 -2
  1049. package/__chunks__/chunk-KN5PVI4K.js +0 -2
  1050. package/__chunks__/chunk-KYHRJQM5.js +0 -2
  1051. package/__chunks__/chunk-LJ2T33E3.js +0 -2
  1052. package/__chunks__/chunk-LNJ3HFWD.js +0 -2
  1053. package/__chunks__/chunk-LPQI66S3.js +0 -2
  1054. package/__chunks__/chunk-LQNCXVJM.js +0 -2
  1055. package/__chunks__/chunk-LSY2HJTQ.js +0 -2
  1056. package/__chunks__/chunk-MIWBUGWY.js +0 -2
  1057. package/__chunks__/chunk-ML542R3V.js +0 -2
  1058. package/__chunks__/chunk-MLX5UI5O.js +0 -2
  1059. package/__chunks__/chunk-NT2T6JKO.js +0 -2
  1060. package/__chunks__/chunk-NVWTNDEE.js +0 -2
  1061. package/__chunks__/chunk-PI5NXZUX.js +0 -2
  1062. package/__chunks__/chunk-RHOHFJ43.js +0 -2
  1063. package/__chunks__/chunk-RPANWBS7.js +0 -2
  1064. package/__chunks__/chunk-RWDCF23E.js +0 -2
  1065. package/__chunks__/chunk-SC4K7A34.js +0 -2
  1066. package/__chunks__/chunk-STSR7UIJ.js +0 -2
  1067. package/__chunks__/chunk-SUC4JB2Y.js +0 -2
  1068. package/__chunks__/chunk-TFARS2WQ.js +0 -2
  1069. package/__chunks__/chunk-TTJRL2R5.js +0 -2
  1070. package/__chunks__/chunk-UIN4P36H.js +0 -2
  1071. package/__chunks__/chunk-VA3DUEFD.js +0 -2
  1072. package/__chunks__/chunk-VEXNJK4I.js +0 -2
  1073. package/__chunks__/chunk-VHJ72XE6.js +0 -2
  1074. package/__chunks__/chunk-VR5CNK6P.js +0 -2
  1075. package/__chunks__/chunk-VVNFK6FB.js +0 -2
  1076. package/__chunks__/chunk-WD225GVR.js +0 -2
  1077. package/__chunks__/chunk-WO76YEG3.js +0 -2
  1078. package/__chunks__/chunk-XG5ZIYZZ.js +0 -2
  1079. package/__chunks__/chunk-XGEGWTM5.js +0 -2
  1080. package/__chunks__/chunk-XLP5ARGZ.js +0 -2
  1081. package/__chunks__/chunk-Z6XFR3LH.js +0 -2
  1082. package/__chunks__/chunk-Z7R3Q3JG.js +0 -2
  1083. package/__chunks__/chunk-ZGHWOPQ6.js +0 -2
  1084. package/__chunks__/chunk-ZNU6QK2M.js +0 -2
  1085. package/__chunks__/chunk-ZR5DOV7T.js +0 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Nr=Object.create;var M=Object.defineProperty;var Pr=Object.getOwnPropertyDescriptor;var Mr=Object.getOwnPropertyNames,ir=Object.getOwnPropertySymbols,Wr=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var or=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))ar.call(r,e)&&or(t,e,r[e]);if(ir)for(var e of ir(r))Gr.call(r,e)&&or(t,e,r[e]);return t};var Hr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Or=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},sr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Mr(r))!ar.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Pr(r,i))||n.enumerable});return t};var Y=(t,r,e)=>(e=t!=null?Nr(Wr(t)):{},sr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),qr=t=>sr(M({},"__esModule",{value:!0}),t);var cr=G(H=>{"use strict";l();H.byteLength=Yr;H.toByteArray=Xr;H.fromByteArray=jr;var k=[],b=[],Vr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,ur=z.length;_<ur;++_)k[_]=z[_],b[z.charCodeAt(_)]=_;var _,ur;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function pr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Yr(t){var r=pr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function zr(t,r,e){return(r+e)*3/4-e}function Xr(t){var r,e=pr(t),n=e[0],i=e[1],o=new Vr(zr(t,n,i)),a=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=b[t.charCodeAt(p)]<<18|b[t.charCodeAt(p+1)]<<12|b[t.charCodeAt(p+2)]<<6|b[t.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=b[t.charCodeAt(p)]<<2|b[t.charCodeAt(p+1)]>>4,o[a++]=r&255),i===1&&(r=b[t.charCodeAt(p)]<<10|b[t.charCodeAt(p+1)]<<4|b[t.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function $r(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Jr(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push($r(n));return i.join("")}function jr(t){for(var r,e=t.length,n=e%3,i=[],o=16383,a=0,u=e-n;a<u;a+=o)i.push(Jr(t,a,a+o>u?u:a+o));return n===1?(r=t[e-1],i.push(k[r>>2]+k[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),i.join("")}});var lr=G(X=>{l();X.read=function(t,r,e,n,i){var o,a,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,T=t[r+c];for(c+=d,o=T&(1<<-g)-1,T>>=-g,g+=u;g>0;o=o*256+t[r+c],c+=d,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[r+c],c+=d,g-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(T?-1:1)*a*Math.pow(2,o-n)};X.write=function(t,r,e,n,i,o){var a,u,p,f=o*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,F=n?1:-1,Dr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=g):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(a++,p/=2),a+c>=g?(u=0,a=g):a+c>=1?(u=(r*p-1)*Math.pow(2,i),a=a+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+T]=u&255,T+=F,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+T]=a&255,T+=F,a/=256,f-=8);t[e+T-F]|=Dr*128}});var kr=G(D=>{"use strict";l();var $=cr(),E=lr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=te;D.INSPECT_MAX_BYTES=50;var O=2147483647;D.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=Kr();!s.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 Kr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return hr(t,r,e)}s.poolSize=8192;function hr(t,r,e){if(typeof t=="string")return Zr(t,r);if(ArrayBuffer.isView(t))return re(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(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return j(t,r,e);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 s.from(n,r,e);var i=ee(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return hr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function yr(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 Qr(t,r,e){return yr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Qr(t,r,e)};function Q(t){return yr(t),B(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function Zr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=mr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function J(t){for(var r=t.length<0?0:Z(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function re(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return j(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function j(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ee(t){if(s.isBuffer(t)){var r=Z(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||rr(t.length)?B(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function Z(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function te(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function mr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Fr(t).length;default:if(i)return n?-1:K(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=mr;function ne(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ge(this,r,e);case"utf8":case"utf-8":return wr(this,r,e);case"ascii":return le(this,r,e);case"latin1":case"binary":return fe(this,r,e);case"base64":return pe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.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 e=0;e<r;e+=2)U(this,e,e+1);return this};s.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 e=0;e<r;e+=4)U(this,e,e+3),U(this,e+1,e+2);return this};s.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 e=0;e<r;e+=8)U(this,e,e+7),U(this,e+1,e+6),U(this,e+2,e+5),U(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):ne.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};fr&&(s.prototype[fr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,o){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,u=n-e,p=Math.min(a,u),f=this.slice(i,o),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){a=f[c],u=g[c];break}return a<u?-1:u<a?1:0};function xr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,rr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:gr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):gr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function gr(t,r,e,n,i){var o=1,a=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,u/=2,e/=2}function p(T,F){return o===1?T[F]:T.readUInt16BE(F*o)}var f;if(i){var g=-1;for(f=e;f<a;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*o}else g!==-1&&(f-=f-g),g=-1}else for(e+u>a&&(e=a-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return xr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return xr(this,r,e,n,!1)};function ie(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(a*2,2),16);if(rr(u))return a;t[e+a]=u}return a}function oe(t,r,e,n){return q(K(r,t.length-e),t,e,n)}function ae(t,r,e,n){return q(me(r),t,e,n)}function se(t,r,e,n){return q(Fr(r),t,e,n)}function ue(t,r,e,n){return q(xe(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return ie(this,r,e,n);case"utf8":case"utf-8":return oe(this,r,e,n);case"ascii":case"latin1":case"binary":return ae(this,r,e,n);case"base64":return se(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(t,r,e){return r===0&&e===t.length?$.fromByteArray(t):$.fromByteArray(t.slice(r,e))}function wr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(a=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(o&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(o&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=u}return ce(n)}var dr=4096;function ce(t){var r=t.length;if(r<=dr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=dr));return e}function le(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function fe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ge(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=we[t[o]];return i}function de(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),E.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),E.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),E.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),E.read(this,r,!1,52,8)};function v(t,r,e,n,i,o){if(!s.isBuffer(t))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(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=1,u=0;for(this[e]=r&255;++u<n&&(a*=256);)this[e+u]=r/a&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=n-1,u=1;for(this[e+a]=r&255;--a>=0&&(u*=256);)this[e+a]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=0,u=1,p=0;for(this[e]=r&255;++a<n&&(u*=256);)r<0&&p===0&&this[e+a-1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=n-1,u=1,p=0;for(this[e+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[e+a+1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Tr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function vr(t,r,e,n,i){return r=+r,e=e>>>0,i||Tr(t,r,e,4,34028234663852886e22,-34028234663852886e22),E.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return vr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return vr(this,r,e,!1,n)};function br(t,r,e,n,i){return r=+r,e=e>>>0,i||Tr(t,r,e,8,17976931348623157e292,-17976931348623157e292),E.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return br(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return br(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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"&&!s.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(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=u[a%p]}return this};var he=/[^+/0-9A-Za-z-_]/g;function ye(t){if(t=t.split("=")[0],t=t.trim().replace(he,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function xe(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Fr(t){return $.toByteArray(ye(t))}function q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function rr(t){return t!==t}var we=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Rr=G((Re,Br)=>{l();var y=Br.exports={},S,A;function er(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=er}catch(t){S=er}try{typeof clearTimeout=="function"?A=clearTimeout:A=tr}catch(t){A=tr}})();function Ir(t){if(S===setTimeout)return setTimeout(t,0);if((S===er||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Te(t){if(A===clearTimeout)return clearTimeout(t);if((A===tr||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(r){try{return A.call(null,t)}catch(e){return A.call(this,t)}}}var R=[],N=!1,L,V=-1;function ve(){!N||!L||(N=!1,L.length?R=L.concat(R):V=-1,R.length&&Sr())}function Sr(){if(!N){var t=Ir(ve);N=!0;for(var r=R.length;r;){for(L=R,R=[];++V<r;)L&&L[V].run();V=-1,r=R.length}L=null,N=!1,Te(t)}}y.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ar(t,r)),R.length===1&&!N&&Ir(Sr)};function Ar(t,r){this.fun=t,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(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var h,m,Ce,l=Hr(()=>{h=Y(kr()),m=Y(Rr()),Ce=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var ke={};Or(ke,{parseMultiEsdtTransferData:()=>Fe});module.exports=qr(ke);l();var nr=Y(require("bignumber.js"));l();l();l();l();l();l();var be=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Cr=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Cr||{}),De=W(W({},P.CrossWindowProviderRequestEnums),Cr),_r=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(_r||{}),Ne=W(W({},P.CrossWindowProviderResponseEnums),_r);l();l();l();l();l();l();l();l();function Ur(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function Lr(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Ur(e)&&e.length>1&&(r=e)}catch(e){}return r}l();var Er=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Fe(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...o]=t==null?void 0:t.split("@");if(n){let a=new nr.default(i,16).toNumber();if(a>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<a;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let T=0;T<3;T++){switch(T){case 0:d.token=Lr(o[u]),d.data=o[u];break;case 1:{let F=o[u]&&o[u].length?o[u]:"";F&&F!=="00"?d.nonce=F:d.type="esdtTransaction",d.data=`${d.data}@${o[u]}`;break}case 2:d.amount=new nr.default(o[u],16).toString(10),d.data=`${d.data}@${o[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==a,f=r.some(c=>Er(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(o[e]){let c=o[e];for(let d=e+1;d<o.length;d++)c+="@"+o[d];r[a]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}0&&(module.exports={parseMultiEsdtTransferData});
1
+ "use strict";var Nr=Object.create;var M=Object.defineProperty;var Pr=Object.getOwnPropertyDescriptor;var Mr=Object.getOwnPropertyNames,ir=Object.getOwnPropertySymbols,Wr=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var ar=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))or.call(r,e)&&ar(t,e,r[e]);if(ir)for(var e of ir(r))Gr.call(r,e)&&ar(t,e,r[e]);return t};var Hr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Or=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},sr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Mr(r))!or.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=Pr(r,i))||n.enumerable});return t};var Y=(t,r,e)=>(e=t!=null?Nr(Wr(t)):{},sr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),qr=t=>sr(M({},"__esModule",{value:!0}),t);var cr=G(H=>{"use strict";l();H.byteLength=Yr;H.toByteArray=Xr;H.fromByteArray=jr;var k=[],b=[],Vr=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_=0,ur=z.length;_<ur;++_)k[_]=z[_],b[z.charCodeAt(_)]=_;var _,ur;b["-".charCodeAt(0)]=62;b["_".charCodeAt(0)]=63;function pr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function Yr(t){var r=pr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function zr(t,r,e){return(r+e)*3/4-e}function Xr(t){var r,e=pr(t),n=e[0],i=e[1],a=new Vr(zr(t,n,i)),o=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=b[t.charCodeAt(p)]<<18|b[t.charCodeAt(p+1)]<<12|b[t.charCodeAt(p+2)]<<6|b[t.charCodeAt(p+3)],a[o++]=r>>16&255,a[o++]=r>>8&255,a[o++]=r&255;return i===2&&(r=b[t.charCodeAt(p)]<<2|b[t.charCodeAt(p+1)]>>4,a[o++]=r&255),i===1&&(r=b[t.charCodeAt(p)]<<10|b[t.charCodeAt(p+1)]<<4|b[t.charCodeAt(p+2)]>>2,a[o++]=r>>8&255,a[o++]=r&255),a}function $r(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function Jr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($r(n));return i.join("")}function jr(t){for(var r,e=t.length,n=e%3,i=[],a=16383,o=0,u=e-n;o<u;o+=a)i.push(Jr(t,o,o+a>u?u:o+a));return n===1?(r=t[e-1],i.push(k[r>>2]+k[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(k[r>>10]+k[r>>4&63]+k[r<<2&63]+"=")),i.join("")}});var lr=G(X=>{l();X.read=function(t,r,e,n,i){var a,o,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,T=t[r+c];for(c+=d,a=T&(1<<-g)-1,T>>=-g,g+=u;g>0;a=a*256+t[r+c],c+=d,g-=8);for(o=a&(1<<-g)-1,a>>=-g,g+=n;g>0;o=o*256+t[r+c],c+=d,g-=8);if(a===0)a=1-f;else{if(a===p)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(T?-1:1)*o*Math.pow(2,a-n)};X.write=function(t,r,e,n,i,a){var o,u,p,f=a*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:a-1,F=n?1:-1,Dr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(o++,p/=2),o+c>=g?(u=0,o=g):o+c>=1?(u=(r*p-1)*Math.pow(2,i),o=o+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+T]=u&255,T+=F,u/=256,i-=8);for(o=o<<i|u,f+=i;f>0;t[e+T]=o&255,T+=F,o/=256,f-=8);t[e+T-F]|=Dr*128}});var kr=G(D=>{"use strict";l();var $=cr(),E=lr(),fr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=s;D.SlowBuffer=te;D.INSPECT_MAX_BYTES=50;var O=2147483647;D.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=Kr();!s.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 Kr(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function B(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Q(t)}return hr(t,r,e)}s.poolSize=8192;function hr(t,r,e){if(typeof t=="string")return Zr(t,r);if(ArrayBuffer.isView(t))return re(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(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return j(t,r,e);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 s.from(n,r,e);var i=ee(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return hr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function yr(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 Qr(t,r,e){return yr(t),t<=0?B(t):r!==void 0?typeof e=="string"?B(t).fill(r,e):B(t).fill(r):B(t)}s.alloc=function(t,r,e){return Qr(t,r,e)};function Q(t){return yr(t),B(t<0?0:Z(t)|0)}s.allocUnsafe=function(t){return Q(t)};s.allocUnsafeSlow=function(t){return Q(t)};function Zr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=mr(t,r)|0,n=B(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function J(t){for(var r=t.length<0?0:Z(t.length)|0,e=B(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function re(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return j(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function j(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ee(t){if(s.isBuffer(t)){var r=Z(t.length)|0,e=B(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||rr(t.length)?B(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function Z(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function te(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(I(o,Uint8Array))a+o.length>i.length?s.from(o).copy(i,a):Uint8Array.prototype.set.call(i,o,a);else if(s.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function mr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Fr(t).length;default:if(i)return n?-1:K(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=mr;function ne(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ge(this,r,e);case"utf8":case"utf-8":return wr(this,r,e);case"ascii":return le(this,r,e);case"latin1":case"binary":return fe(this,r,e);case"base64":return pe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function U(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.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 e=0;e<r;e+=2)U(this,e,e+1);return this};s.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 e=0;e<r;e+=4)U(this,e,e+3),U(this,e+1,e+2);return this};s.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 e=0;e<r;e+=8)U(this,e,e+7),U(this,e+1,e+6),U(this,e+2,e+5),U(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?wr(this,0,r):ne.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};fr&&(s.prototype[fr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,a){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,u=n-e,p=Math.min(o,u),f=this.slice(i,a),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){o=f[c],u=g[c];break}return o<u?-1:u<o?1:0};function xr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,rr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:gr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):gr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function gr(t,r,e,n,i){var a=1,o=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,u/=2,e/=2}function p(T,F){return a===1?T[F]:T.readUInt16BE(F*a)}var f;if(i){var g=-1;for(f=e;f<o;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*a}else g!==-1&&(f-=f-g),g=-1}else for(e+u>o&&(e=o-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return xr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return xr(this,r,e,n,!1)};function ie(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(rr(u))return o;t[e+o]=u}return o}function ae(t,r,e,n){return q(K(r,t.length-e),t,e,n)}function oe(t,r,e,n){return q(me(r),t,e,n)}function se(t,r,e,n){return q(Fr(r),t,e,n)}function ue(t,r,e,n){return q(xe(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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 a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return ie(this,r,e,n);case"utf8":case"utf-8":return ae(this,r,e,n);case"ascii":case"latin1":case"binary":return oe(this,r,e,n);case"base64":return se(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(t,r,e){return r===0&&e===t.length?$.fromByteArray(t):$.fromByteArray(t.slice(r,e))}function wr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,u=a>239?4:a>223?3:a>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:a<128&&(o=a);break;case 2:p=t[i+1],(p&192)===128&&(c=(a&31)<<6|p&63,c>127&&(o=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(a&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(a&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=u}return ce(n)}var dr=4096;function ce(t){var r=t.length;if(r<=dr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=dr));return e}function le(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function fe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ge(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=we[t[a]];return i}function de(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};s.prototype.readInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),E.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),E.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),E.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),E.read(this,r,!1,52,8)};function v(t,r,e,n,i,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;v(this,r,e,n,a,0)}var o=1,u=0;for(this[e]=r&255;++u<n&&(o*=256);)this[e+u]=r/o&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;v(this,r,e,n,a,0)}var o=n-1,u=1;for(this[e+o]=r&255;--o>=0&&(u*=256);)this[e+o]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);v(this,r,e,n,a-1,-a)}var o=0,u=1,p=0;for(this[e]=r&255;++o<n&&(u*=256);)r<0&&p===0&&this[e+o-1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var a=Math.pow(2,8*n-1);v(this,r,e,n,a-1,-a)}var o=n-1,u=1,p=0;for(this[e+o]=r&255;--o>=0&&(u*=256);)r<0&&p===0&&this[e+o+1]!==0&&(p=1),this[e+o]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Tr(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function vr(t,r,e,n,i){return r=+r,e=e>>>0,i||Tr(t,r,e,4,34028234663852886e22,-34028234663852886e22),E.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return vr(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return vr(this,r,e,!1,n)};function br(t,r,e,n,i){return r=+r,e=e>>>0,i||Tr(t,r,e,8,17976931348623157e292,-17976931348623157e292),E.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return br(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return br(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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-e<i-n&&(i=r.length-e+n);var a=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),a};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=u[o%p]}return this};var he=/[^+/0-9A-Za-z-_]/g;function ye(t){if(t=t.split("=")[0],t=t.trim().replace(he,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function xe(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function Fr(t){return $.toByteArray(ye(t))}function q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function rr(t){return t!==t}var we=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var Rr=G((Re,Br)=>{l();var y=Br.exports={},S,A;function er(){throw new Error("setTimeout has not been defined")}function tr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=er}catch(t){S=er}try{typeof clearTimeout=="function"?A=clearTimeout:A=tr}catch(t){A=tr}})();function Ir(t){if(S===setTimeout)return setTimeout(t,0);if((S===er||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Te(t){if(A===clearTimeout)return clearTimeout(t);if((A===tr||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch(r){try{return A.call(null,t)}catch(e){return A.call(this,t)}}}var R=[],N=!1,L,V=-1;function ve(){!N||!L||(N=!1,L.length?R=L.concat(R):V=-1,R.length&&Sr())}function Sr(){if(!N){var t=Ir(ve);N=!0;for(var r=R.length;r;){for(L=R,R=[];++V<r;)L&&L[V].run();V=-1,r=R.length}L=null,N=!1,Te(t)}}y.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Ar(t,r)),R.length===1&&!N&&Ir(Sr)};function Ar(t,r){this.fun=t,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(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var h,m,Ce,l=Hr(()=>{h=Y(kr()),m=Y(Rr()),Ce=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var ke={};Or(ke,{parseMultiEsdtTransferData:()=>Fe});module.exports=qr(ke);l();var nr=Y(require("bignumber.js"));l();l();l();l();l();l();var be=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Cr=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Cr||{}),De=W(W({},P.CrossWindowProviderRequestEnums),Cr),_r=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(_r||{}),Ne=W(W({},P.CrossWindowProviderResponseEnums),_r);l();l();l();l();l();l();l();l();function Ur(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function Lr(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Ur(e)&&e.length>1&&(r=e)}catch(e){}return r}l();var Er=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function Fe(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...a]=t==null?void 0:t.split("@");if(n){let o=new nr.default(i,16).toNumber();if(o>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<o;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let T=0;T<3;T++){switch(T){case 0:d.token=Lr(a[u]),d.data=a[u];break;case 1:{let F=a[u]&&a[u].length?a[u]:"";F&&F!=="00"?d.nonce=F:d.type="esdtTransaction",d.data=`${d.data}@${a[u]}`;break}case 2:d.amount=new nr.default(a[u],16).toString(10),d.data=`${d.data}@${a[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==o,f=r.some(c=>Er(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(a[e]){let c=a[e];for(let d=e+1;d<a.length;d++)c+="@"+a[d];r[o]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}0&&(module.exports={parseMultiEsdtTransferData});
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 M=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var zr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Jr.call(r,e)&&pr(t,e,r[e]);return t};var Kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),jr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},lr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zr(r))!cr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=$r(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Yr(Xr(t)):{},lr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>lr(M({},"__esModule",{value:!0}),t);var dr=G(q=>{"use strict";l();q.byteLength=re;q.toByteArray=te;q.fromByteArray=oe;var F=[],k=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,fr=X.length;C<fr;++C)F[C]=X[C],k[X.charCodeAt(C)]=C;var C,fr;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function gr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=gr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=gr(t),n=e[0],i=e[1],o=new Zr(ee(t,n,i)),a=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=k[t.charCodeAt(p)]<<18|k[t.charCodeAt(p+1)]<<12|k[t.charCodeAt(p+2)]<<6|k[t.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=k[t.charCodeAt(p)]<<2|k[t.charCodeAt(p+1)]>>4,o[a++]=r&255),i===1&&(r=k[t.charCodeAt(p)]<<10|k[t.charCodeAt(p+1)]<<4|k[t.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function ne(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function ie(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ne(n));return i.join("")}function oe(t){for(var r,e=t.length,n=e%3,i=[],o=16383,a=0,u=e-n;a<u;a+=o)i.push(ie(t,a,a+o>u?u:a+o));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var hr=G(J=>{l();J.read=function(t,r,e,n,i){var o,a,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,w=t[r+c];for(c+=d,o=w&(1<<-g)-1,w>>=-g,g+=u;g>0;o=o*256+t[r+c],c+=d,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[r+c],c+=d,g-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,r,e,n,i,o){var a,u,p,f=o*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,b=n?1:-1,Vr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=g):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(a++,p/=2),a+c>=g?(u=0,a=g):a+c>=1?(u=(r*p-1)*Math.pow(2,i),a=a+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+w]=u&255,w+=b,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+w]=a&255,w+=b,a/=256,f-=8);t[e+w-b]|=Vr*128}});var Rr=G(L=>{"use strict";l();var K=dr(),U=hr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L.Buffer=s;L.SlowBuffer=le;L.INSPECT_MAX_BYTES=50;var O=2147483647;L.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=ae();!s.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 ae(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function R(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rr(t)}return Tr(t,r,e)}s.poolSize=8192;function Tr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(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(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Q(t,r,e);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 s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return Tr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function wr(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 se(t,r,e){return wr(t),t<=0?R(t):r!==void 0?typeof e=="string"?R(t).fill(r,e):R(t).fill(r):R(t)}s.alloc=function(t,r,e){return se(t,r,e)};function rr(t){return wr(t),R(t<0?0:er(t)|0)}s.allocUnsafe=function(t){return rr(t)};s.allocUnsafeSlow=function(t){return rr(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=vr(t,r)|0,n=R(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function j(t){for(var r=t.length<0?0:er(t.length)|0,e=R(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return j(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=er(t.length)|0,e=R(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||tr(t.length)?R(0):j(t);if(t.type==="Buffer"&&Array.isArray(t.data))return j(t.data)}function er(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function vr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Br(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=vr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return br(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.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 e=0;e<r;e+=2)E(this,e,e+1);return this};s.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 e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.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 e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?br(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=L.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};mr&&(s.prototype[mr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,o){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,u=n-e,p=Math.min(a,u),f=this.slice(i,o),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){a=f[c],u=g[c];break}return a<u?-1:u<a?1:0};function kr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,tr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:yr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):yr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function yr(t,r,e,n,i){var o=1,a=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,u/=2,e/=2}function p(w,b){return o===1?w[b]:w.readUInt16BE(b*o)}var f;if(i){var g=-1;for(f=e;f<a;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*o}else g!==-1&&(f-=f-g),g=-1}else for(e+u>a&&(e=a-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return kr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return kr(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(a*2,2),16);if(tr(u))return a;t[e+a]=u}return a}function de(t,r,e,n){return V(Z(r,t.length-e),t,e,n)}function he(t,r,e,n){return V(Se(r),t,e,n)}function me(t,r,e,n){return V(Br(r),t,e,n)}function ye(t,r,e,n){return V(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return de(this,r,e,n);case"ascii":case"latin1":case"binary":return he(this,r,e,n);case"base64":return me(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function br(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(a=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(o&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(o&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=u}return Te(n)}var xr=4096;function Te(t){var r=t.length;if(r<=xr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=xr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Re[t[o]];return i}function be(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function T(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};s.prototype.readInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||T(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||T(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||T(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||T(r,8,this.length),U.read(this,r,!1,52,8)};function v(t,r,e,n,i,o){if(!s.isBuffer(t))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(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=1,u=0;for(this[e]=r&255;++u<n&&(a*=256);)this[e+u]=r/a&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=n-1,u=1;for(this[e+a]=r&255;--a>=0&&(u*=256);)this[e+a]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=0,u=1,p=0;for(this[e]=r&255;++a<n&&(u*=256);)r<0&&p===0&&this[e+a-1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=n-1,u=1,p=0;for(this[e+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[e+a+1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Fr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ir(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Ir(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Ir(this,r,e,!1,n)};function Sr(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Sr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Sr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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"&&!s.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(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=u[a%p]}return this};var Fe=/[^+/0-9A-Za-z-_]/g;function Ie(t){if(t=t.split("=")[0],t=t.trim().replace(Fe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function Se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Br(t){return K.toByteArray(Ie(t))}function V(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function tr(t){return t!==t}var Re=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var _r=G((Ge,Er)=>{l();var x=Er.exports={},S,B;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"?S=setTimeout:S=nr}catch(t){S=nr}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(t){B=ir}})();function Ar(t){if(S===setTimeout)return setTimeout(t,0);if((S===nr||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Ae(t){if(B===clearTimeout)return clearTimeout(t);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var A=[],N=!1,_,Y=-1;function De(){!N||!_||(N=!1,_.length?A=_.concat(A):Y=-1,A.length&&Dr())}function Dr(){if(!N){var t=Ar(De);N=!0;for(var r=A.length;r;){for(_=A,A=[];++Y<r;)_&&_[Y].run();Y=-1,r=A.length}_=null,N=!1,Ae(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];A.push(new Cr(t,r)),A.length===1&&!N&&Ar(Dr)};function Cr(t,r){this.fun=t,this.array=r}Cr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function D(){}x.on=D;x.addListener=D;x.once=D;x.off=D;x.removeListener=D;x.removeAllListeners=D;x.emit=D;x.prependListener=D;x.prependOnceListener=D;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 h,m,He,l=Kr(()=>{h=H(Rr()),m=H(_r()),He=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Le={};jr(Le,{parseMultiEsdtTransferDataForMultipleTransactions:()=>Ue});module.exports=Qr(Le);l();l();var ar=require("@multiversx/sdk-core"),z=H(require("bignumber.js"));l();l();var Ce=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Ur=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Ur||{}),Ye=W(W({},P.CrossWindowProviderRequestEnums),Ur),Lr=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(Lr||{}),$e=W(W({},P.CrossWindowProviderResponseEnums),Lr);l();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}l();l();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function $(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var or={tokenId:"",amount:""},Wr=t=>t.split("@").map((o,a)=>[2,3].includes(a)?o:$(o));function Gr(t){if(!t)return or;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(r){let[,i,o]=t.split("@");try{let a=h.Buffer.from(i,"hex").toString("ascii");if(!a)return or;let u=new z.default("0x"+o.replace("0x","")).toString(10);return{tokenId:a,amount:u}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,i,o,a,u]=Wr(t);if([i,o,a,u].every(p=>Boolean(p))&&Pr(new ar.Address(u).bech32()))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o,receiver:new ar.Address(u).bech32()}}catch(i){}if(n)try{let[,i,o,a]=Wr(t);if([i,o,a].every(u=>Boolean(u)))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o}}catch(i){}return or}l();var sr=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function qr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...o]=t==null?void 0:t.split("@");if(n){let a=new sr.default(i,16).toNumber();if(a>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<a;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let w=0;w<3;w++){switch(w){case 0:d.token=$(o[u]),d.data=o[u];break;case 1:{let b=o[u]&&o[u].length?o[u]:"";b&&b!=="00"?d.nonce=b:d.type="esdtTransaction",d.data=`${d.data}@${o[u]}`;break}case 2:d.amount=new sr.default(o[u],16).toString(10),d.data=`${d.data}@${o[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==a,f=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(o[e]){let c=o[e];for(let d=e+1;d<o.length;d++)c+="@"+o[d];r[a]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}function Or({parsedTransactionsByDataField:t,data:r,txInfo:e}){!t||(t[r]=e)}function Ue({transactions:t}){let r={},e=[];return!t||t.length===0?{allTransactions:e,parsedTransactionsByDataField:r}:(t.forEach((n,i)=>{let o=n.getData().toString(),a=qr(o);if(a.length>0)a.forEach((u,p)=>{let f={transaction:n,multiTxData:u.data,transactionIndex:p};Or({parsedTransactionsByDataField:r,data:u.data,txInfo:{tokenId:u.token?u.token:"",amount:u.amount?u.amount:"",type:u.type,nonce:u.nonce?u.nonce:"",multiTxData:u.data,receiver:u.receiver}}),e.push(f)});else{let u=n.getData().toString(),{tokenId:p,amount:f}=Gr(u);p&&Or({parsedTransactionsByDataField:r,data:u,txInfo:{tokenId:p,amount:f,receiver:n.getReceiver().bech32()}}),e.push({transaction:n,transactionIndex:i,multiTxData:u})}}),{allTransactions:e,parsedTransactionsByDataField:r})}0&&(module.exports={parseMultiEsdtTransferDataForMultipleTransactions});
1
+ "use strict";var Yr=Object.create;var M=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var zr=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Xr=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var pr=(t,r,e)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,W=(t,r)=>{for(var e in r||(r={}))cr.call(r,e)&&pr(t,e,r[e]);if(ur)for(var e of ur(r))Jr.call(r,e)&&pr(t,e,r[e]);return t};var Kr=(t,r)=>()=>(t&&(r=t(t=0)),r);var G=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),jr=(t,r)=>{for(var e in r)M(t,e,{get:r[e],enumerable:!0})},lr=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zr(r))!cr.call(t,i)&&i!==e&&M(t,i,{get:()=>r[i],enumerable:!(n=$r(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?Yr(Xr(t)):{},lr(r||!t||!t.__esModule?M(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>lr(M({},"__esModule",{value:!0}),t);var dr=G(q=>{"use strict";l();q.byteLength=re;q.toByteArray=te;q.fromByteArray=oe;var F=[],k=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,fr=X.length;C<fr;++C)F[C]=X[C],k[X.charCodeAt(C)]=C;var C,fr;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function gr(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=r);var n=e===r?0:4-e%4;return[e,n]}function re(t){var r=gr(t),e=r[0],n=r[1];return(e+n)*3/4-n}function ee(t,r,e){return(r+e)*3/4-e}function te(t){var r,e=gr(t),n=e[0],i=e[1],o=new Zr(ee(t,n,i)),a=0,u=i>0?n-4:n,p;for(p=0;p<u;p+=4)r=k[t.charCodeAt(p)]<<18|k[t.charCodeAt(p+1)]<<12|k[t.charCodeAt(p+2)]<<6|k[t.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return i===2&&(r=k[t.charCodeAt(p)]<<2|k[t.charCodeAt(p+1)]>>4,o[a++]=r&255),i===1&&(r=k[t.charCodeAt(p)]<<10|k[t.charCodeAt(p+1)]<<4|k[t.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function ne(t){return F[t>>18&63]+F[t>>12&63]+F[t>>6&63]+F[t&63]}function ie(t,r,e){for(var n,i=[],o=r;o<e;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(ne(n));return i.join("")}function oe(t){for(var r,e=t.length,n=e%3,i=[],o=16383,a=0,u=e-n;a<u;a+=o)i.push(ie(t,a,a+o>u?u:a+o));return n===1?(r=t[e-1],i.push(F[r>>2]+F[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(F[r>>10]+F[r>>4&63]+F[r<<2&63]+"=")),i.join("")}});var hr=G(J=>{l();J.read=function(t,r,e,n,i){var o,a,u=i*8-n-1,p=(1<<u)-1,f=p>>1,g=-7,c=e?i-1:0,d=e?-1:1,w=t[r+c];for(c+=d,o=w&(1<<-g)-1,w>>=-g,g+=u;g>0;o=o*256+t[r+c],c+=d,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[r+c],c+=d,g-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,r,e,n,i,o){var a,u,p,f=o*8-i-1,g=(1<<f)-1,c=g>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,b=n?1:-1,Vr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=g):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+c>=1?r+=d/p:r+=d*Math.pow(2,1-c),r*p>=2&&(a++,p/=2),a+c>=g?(u=0,a=g):a+c>=1?(u=(r*p-1)*Math.pow(2,i),a=a+c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+w]=u&255,w+=b,u/=256,i-=8);for(a=a<<i|u,f+=i;f>0;t[e+w]=a&255,w+=b,a/=256,f-=8);t[e+w-b]|=Vr*128}});var Ar=G(L=>{"use strict";l();var K=dr(),U=hr(),mr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L.Buffer=s;L.SlowBuffer=le;L.INSPECT_MAX_BYTES=50;var O=2147483647;L.kMaxLength=O;s.TYPED_ARRAY_SUPPORT=ae();!s.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 ae(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch(e){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function A(t){if(t>O)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,s.prototype),r}function s(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return rr(t)}return Tr(t,r,e)}s.poolSize=8192;function Tr(t,r,e){if(typeof t=="string")return ue(t,r);if(ArrayBuffer.isView(t))return pe(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(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return Q(t,r,e);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 s.from(n,r,e);var i=ce(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,r,e){return Tr(t,r,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function wr(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 se(t,r,e){return wr(t),t<=0?A(t):r!==void 0?typeof e=="string"?A(t).fill(r,e):A(t).fill(r):A(t)}s.alloc=function(t,r,e){return se(t,r,e)};function rr(t){return wr(t),A(t<0?0:er(t)|0)}s.allocUnsafe=function(t){return rr(t)};s.allocUnsafeSlow=function(t){return rr(t)};function ue(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=vr(t,r)|0,n=A(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function j(t){for(var r=t.length<0?0:er(t.length)|0,e=A(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pe(t){if(I(t,Uint8Array)){var r=new Uint8Array(t);return Q(r.buffer,r.byteOffset,r.byteLength)}return j(t)}function Q(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&e===void 0?n=new Uint8Array(t):e===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,e),Object.setPrototypeOf(n,s.prototype),n}function ce(t){if(s.isBuffer(t)){var r=er(t.length)|0,e=A(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||tr(t.length)?A(0):j(t);if(t.type==="Buffer"&&Array.isArray(t.data))return j(t.data)}function er(t){if(t>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return t|0}function le(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==s.prototype};s.compare=function(r,e){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(r)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,i=e.length,o=0,a=Math.min(n,i);o<a;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return s.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=s.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var a=r[n];if(I(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function vr(t,r){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(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 e=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Br(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}s.byteLength=vr;function fe(t,r,e){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ke(this,r,e);case"utf8":case"utf-8":return br(this,r,e);case"ascii":return we(this,r,e);case"latin1":case"binary":return ve(this,r,e);case"base64":return xe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function E(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}s.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 e=0;e<r;e+=2)E(this,e,e+1);return this};s.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 e=0;e<r;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this};s.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 e=0;e<r;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this};s.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?br(this,0,r):fe.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(r){if(!s.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:s.compare(this,r)===0};s.prototype.inspect=function(){var r="",e=L.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};mr&&(s.prototype[mr]=s.prototype.inspect);s.prototype.compare=function(r,e,n,i,o){if(I(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;for(var a=o-i,u=n-e,p=Math.min(a,u),f=this.slice(i,o),g=r.slice(e,n),c=0;c<p;++c)if(f[c]!==g[c]){a=f[c],u=g[c];break}return a<u?-1:u<a?1:0};function kr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,tr(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=s.from(r,n)),s.isBuffer(r))return r.length===0?-1:yr(t,r,e,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):yr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function yr(t,r,e,n,i){var o=1,a=t.length,u=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,a/=2,u/=2,e/=2}function p(w,b){return o===1?w[b]:w.readUInt16BE(b*o)}var f;if(i){var g=-1;for(f=e;f<a;f++)if(p(t,f)===p(r,g===-1?0:f-g)){if(g===-1&&(g=f),f-g+1===u)return g*o}else g!==-1&&(f-=f-g),g=-1}else for(e+u>a&&(e=a-u),f=e;f>=0;f--){for(var c=!0,d=0;d<u;d++)if(p(t,f+d)!==p(r,d)){c=!1;break}if(c)return f}return-1}s.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};s.prototype.indexOf=function(r,e,n){return kr(this,r,e,n,!0)};s.prototype.lastIndexOf=function(r,e,n){return kr(this,r,e,n,!1)};function ge(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(a*2,2),16);if(tr(u))return a;t[e+a]=u}return a}function de(t,r,e,n){return V(Z(r,t.length-e),t,e,n)}function he(t,r,e,n){return V(Se(r),t,e,n)}function me(t,r,e,n){return V(Br(r),t,e,n)}function ye(t,r,e,n){return V(Be(r,t.length-e),t,e,n)}s.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>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-e;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return ge(this,r,e,n);case"utf8":case"utf-8":return de(this,r,e,n);case"ascii":case"latin1":case"binary":return he(this,r,e,n);case"base64":return me(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,r,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xe(t,r,e){return r===0&&e===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(r,e))}function br(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=e){var p,f,g,c;switch(u){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(a=c));break;case 3:p=t[i+1],f=t[i+2],(p&192)===128&&(f&192)===128&&(c=(o&15)<<12|(p&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:p=t[i+1],f=t[i+2],g=t[i+3],(p&192)===128&&(f&192)===128&&(g&192)===128&&(c=(o&15)<<18|(p&63)<<12|(f&63)<<6|g&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=u}return Te(n)}var xr=4096;function Te(t){var r=t.length;if(r<=xr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=xr));return e}function we(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function ve(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ke(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Ae[t[o]];return i}function be(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i=this.subarray(r,e);return Object.setPrototypeOf(i,s.prototype),i};function T(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r+--e],o=1;e>0&&(o*=256);)i+=this[r+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]|this[r+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||T(r,2,this.length),this[r]<<8|this[r+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};s.prototype.readIntLE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=this[r],o=1,a=0;++a<e&&(o*=256);)i+=this[r+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||T(r,e,this.length);for(var i=e,o=1,a=this[r+--i];i>0&&(o*=256);)a+=this[r+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*e)),a};s.prototype.readInt8=function(r,e){return r=r>>>0,e||T(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};s.prototype.readInt16LE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(r,e){r=r>>>0,e||T(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};s.prototype.readInt32BE=function(r,e){return r=r>>>0,e||T(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};s.prototype.readFloatLE=function(r,e){return r=r>>>0,e||T(r,4,this.length),U.read(this,r,!0,23,4)};s.prototype.readFloatBE=function(r,e){return r=r>>>0,e||T(r,4,this.length),U.read(this,r,!1,23,4)};s.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||T(r,8,this.length),U.read(this,r,!0,52,8)};s.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||T(r,8,this.length),U.read(this,r,!1,52,8)};function v(t,r,e,n,i,o){if(!s.isBuffer(t))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(e+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=1,u=0;for(this[e]=r&255;++u<n&&(a*=256);)this[e+u]=r/a&255;return e+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;v(this,r,e,n,o,0)}var a=n-1,u=1;for(this[e+a]=r&255;--a>=0&&(u*=256);)this[e+a]=r/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,255,0),this[e]=r&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};s.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=0,u=1,p=0;for(this[e]=r&255;++a<n&&(u*=256);)r<0&&p===0&&this[e+a-1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);v(this,r,e,n,o-1,-o)}var a=n-1,u=1,p=0;for(this[e+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[e+a+1]!==0&&(p=1),this[e+a]=(r/u>>0)-p&255;return e+n};s.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};s.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};s.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};s.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4};s.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||v(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function Fr(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ir(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,4,34028234663852886e22,-34028234663852886e22),U.write(t,r,e,n,23,4),e+4}s.prototype.writeFloatLE=function(r,e,n){return Ir(this,r,e,!0,n)};s.prototype.writeFloatBE=function(r,e,n){return Ir(this,r,e,!1,n)};function Sr(t,r,e,n,i){return r=+r,e=e>>>0,i||Fr(t,r,e,8,17976931348623157e292,-17976931348623157e292),U.write(t,r,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(r,e,n){return Sr(this,r,e,!0,n)};s.prototype.writeDoubleBE=function(r,e,n){return Sr(this,r,e,!1,n)};s.prototype.copy=function(r,e,n,i){if(!s.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<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-e<i-n&&(i=r.length-e+n);var o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),e),o};s.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=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"&&!s.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(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var a;if(typeof r=="number")for(a=e;a<n;++a)this[a]=r;else{var u=s.isBuffer(r)?r:s.from(r,i),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=u[a%p]}return this};var Fe=/[^+/0-9A-Za-z-_]/g;function Ie(t){if(t=t.split("=")[0],t=t.trim().replace(Fe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Z(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;a<n;++a){if(e=t.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function Se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Be(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Br(t){return K.toByteArray(Ie(t))}function V(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function I(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function tr(t){return t!==t}var Ae=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()});var _r=G((Ge,Er)=>{l();var x=Er.exports={},S,B;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"?S=setTimeout:S=nr}catch(t){S=nr}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(t){B=ir}})();function Rr(t){if(S===setTimeout)return setTimeout(t,0);if((S===nr||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function Re(t){if(B===clearTimeout)return clearTimeout(t);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(t);try{return B(t)}catch(r){try{return B.call(null,t)}catch(e){return B.call(this,t)}}}var R=[],N=!1,_,Y=-1;function De(){!N||!_||(N=!1,_.length?R=_.concat(R):Y=-1,R.length&&Dr())}function Dr(){if(!N){var t=Rr(De);N=!0;for(var r=R.length;r;){for(_=R,R=[];++Y<r;)_&&_[Y].run();Y=-1,r=R.length}_=null,N=!1,Re(t)}}x.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new Cr(t,r)),R.length===1&&!N&&Rr(Dr)};function Cr(t,r){this.fun=t,this.array=r}Cr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function D(){}x.on=D;x.addListener=D;x.once=D;x.off=D;x.removeListener=D;x.removeAllListeners=D;x.emit=D;x.prependListener=D;x.prependOnceListener=D;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 h,m,He,l=Kr(()=>{h=H(Ar()),m=H(_r()),He=function(t){function r(){var n=this||self;return delete t.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return r();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:r});var e=__magic__;return e}(Object)});var Le={};jr(Le,{parseMultiEsdtTransferDataForMultipleTransactions:()=>Ue});module.exports=Qr(Le);l();l();var ar=require("@multiversx/sdk-core"),z=H(require("bignumber.js"));l();l();var Ce=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),P=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Ur=(e=>(e.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",e.reloginRequest="RELOGIN_REQUEST",e))(Ur||{}),Ye=W(W({},P.CrossWindowProviderRequestEnums),Ur),Lr=(r=>(r.reloginResponse="RELOGIN_RESPONSE",r))(Lr||{}),$e=W(W({},P.CrossWindowProviderResponseEnums),Lr);l();var Nr=require("@multiversx/sdk-core");function Ee(t){try{let r=new Nr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Pr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Ee(t)}l();l();function Mr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function $(t){let r=t;try{let e=h.Buffer.from(t,"hex").toString();Mr(e)&&e.length>1&&(r=e)}catch(e){}return r}var or={tokenId:"",amount:""},Wr=t=>t.split("@").map((o,a)=>[2,3].includes(a)?o:$(o));function Gr(t){if(!t)return or;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(r){let[,i,o]=t.split("@");try{let a=h.Buffer.from(i,"hex").toString("ascii");if(!a)return or;let u=new z.default("0x"+o.replace("0x","")).toString(10);return{tokenId:a,amount:u}}catch(a){console.error("Error getting token from transaction data",a)}}if(e)try{let[,i,o,a,u]=Wr(t);if([i,o,a,u].every(p=>Boolean(p))&&Pr(new ar.Address(u).bech32()))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o,receiver:new ar.Address(u).bech32()}}catch(i){}if(n)try{let[,i,o,a]=Wr(t);if([i,o,a].every(u=>Boolean(u)))return{tokenId:`${i}-${o}`,amount:new z.default(a,16).toString(10),collection:i,nonce:o}}catch(i){}return or}l();var sr=H(require("bignumber.js"));l();l();l();l();l();l();l();l();l();l();l();var Hr=(t,r)=>{let e=[],n=t.indexOf(r,0);for(;n>=0;)e.push(n),n=t.indexOf(r,n+1);return e};function qr(t){let r=[],e=0;try{if((t==null?void 0:t.startsWith("MultiESDTNFTTransfer"))&&(t==null?void 0:t.includes("@"))){let[,n,i,...o]=t==null?void 0:t.split("@");if(n){let a=new sr.default(i,16).toNumber();if(a>=Number.MAX_SAFE_INTEGER)return[];let u=0;for(let c=0;c<a;c++){let d={type:"nftTransaction",data:"",receiver:n};for(let w=0;w<3;w++){switch(w){case 0:d.token=$(o[u]),d.data=o[u];break;case 1:{let b=o[u]&&o[u].length?o[u]:"";b&&b!=="00"?d.nonce=b:d.type="esdtTransaction",d.data=`${d.data}@${o[u]}`;break}case 2:d.amount=new sr.default(o[u],16).toString(10),d.data=`${d.data}@${o[u]}`;break;default:break}e=u+1,u++}r[c]=d}let p=r.length!==a,f=r.some(c=>Hr(c.data,"@").length!==2),g=r.some(c=>c.data.startsWith("@"));if(p||f||g)return[];if(o[e]){let c=o[e];for(let d=e+1;d<o.length;d++)c+="@"+o[d];r[a]={type:"scCall",data:c,receiver:n}}}}}catch(n){return console.error("failed parsing tx",n),r}return r}function Or({parsedTransactionsByDataField:t,data:r,txInfo:e}){!t||(t[r]=e)}function Ue({transactions:t}){let r={},e=[];return!t||t.length===0?{allTransactions:e,parsedTransactionsByDataField:r}:(t.forEach((n,i)=>{let o=n.getData().toString(),a=qr(o);if(a.length>0)a.forEach((u,p)=>{let f={transaction:n,multiTxData:u.data,transactionIndex:p};Or({parsedTransactionsByDataField:r,data:u.data,txInfo:{tokenId:u.token?u.token:"",amount:u.amount?u.amount:"",type:u.type,nonce:u.nonce?u.nonce:"",multiTxData:u.data,receiver:u.receiver}}),e.push(f)});else{let u=n.getData().toString(),{tokenId:p,amount:f}=Gr(u);p&&Or({parsedTransactionsByDataField:r,data:u,txInfo:{tokenId:p,amount:f,receiver:n.getReceiver().bech32()}}),e.push({transaction:n,transactionIndex:i,multiTxData:u})}}),{allTransactions:e,parsedTransactionsByDataField:r})}0&&(module.exports={parseMultiEsdtTransferDataForMultipleTransactions});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";var Qe=Object.create;var W=Object.defineProperty,$e=Object.defineProperties,er=Object.getOwnPropertyDescriptor,rr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var de=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e)=>{for(var r in e||(e={}))ge.call(e,r)&&de(t,r,e[r]);if(ue)for(var r of ue(e))ir.call(e,r)&&de(t,r,e[r]);return t},V=(t,e)=>$e(t,rr(e));var or=(t,e)=>()=>(t&&(e=t(t=0)),e);var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ar=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},fe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tr(e))!ge.call(t,i)&&i!==r&&W(t,i,{get:()=>e[i],enumerable:!(n=er(e,i))||n.enumerable});return t};var me=(t,e,r)=>(r=t!=null?Qe(nr(t)):{},fe(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),sr=t=>fe(W({},"__esModule",{value:!0}),t);var xe=H(q=>{"use strict";c();q.byteLength=lr;q.toByteArray=ur;q.fromByteArray=fr;var A=[],T=[],cr=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,he=K.length;C<he;++C)A[C]=K[C],T[K.charCodeAt(C)]=C;var C,he;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ye(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 lr(t){var e=ye(t),r=e[0],n=e[1];return(r+n)*3/4-n}function pr(t,e,r){return(e+r)*3/4-r}function ur(t){var e,r=ye(t),n=r[0],i=r[1],o=new cr(pr(t,n,i)),a=0,l=i>0?n-4:n,p;for(p=0;p<l;p+=4)e=T[t.charCodeAt(p)]<<18|T[t.charCodeAt(p+1)]<<12|T[t.charCodeAt(p+2)]<<6|T[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=T[t.charCodeAt(p)]<<2|T[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=T[t.charCodeAt(p)]<<10|T[t.charCodeAt(p+1)]<<4|T[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function dr(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function gr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(dr(n));return i.join("")}function fr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,l=r-n;a<l;a+=o)i.push(gr(t,a,a+o>l?l:a+o));return n===1?(e=t[r-1],i.push(A[e>>2]+A[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(A[e>>10]+A[e>>4&63]+A[e<<2&63]+"=")),i.join("")}});var we=H(J=>{c();J.read=function(t,e,r,n,i){var o,a,l=i*8-n-1,p=(1<<l)-1,m=p>>1,h=-7,f=r?i-1:0,k=r?-1:1,b=t[e+f];for(f+=k,o=b&(1<<-h)-1,b>>=-h,h+=l;h>0;o=o*256+t[e+f],f+=k,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=k,h-=8);if(o===0)o=1-m;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-m}return(b?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,e,r,n,i,o){var a,l,p,m=o*8-i-1,h=(1<<m)-1,f=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,D=n?1:-1,Ze=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+f>=1?e+=k/p:e+=k*Math.pow(2,1-f),e*p>=2&&(a++,p/=2),a+f>=h?(l=0,a=h):a+f>=1?(l=(e*p-1)*Math.pow(2,i),a=a+f):(l=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=l&255,b+=D,l/=256,i-=8);for(a=a<<i|l,m+=i;m>0;t[r+b]=a&255,b+=D,a/=256,m-=8);t[r+b-D]|=Ze*128}});var Fe=H(O=>{"use strict";c();var Z=xe(),P=we(),be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=s;O.SlowBuffer=br;O.INSPECT_MAX_BYTES=50;var j=2147483647;O.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=mr();!s.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 mr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function E(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 re(t)}return ke(t,e,r)}s.poolSize=8192;function ke(t,e,r){if(typeof t=="string")return yr(t,e);if(ArrayBuffer.isView(t))return xr(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 $(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 s.from(n,e,r);var i=wr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return ke(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Ae(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 hr(t,e,r){return Ae(t),t<=0?E(t):e!==void 0?typeof r=="string"?E(t).fill(e,r):E(t).fill(e):E(t)}s.alloc=function(t,e,r){return hr(t,e,r)};function re(t){return Ae(t),E(t<0?0:te(t)|0)}s.allocUnsafe=function(t){return re(t)};s.allocUnsafeSlow=function(t){return re(t)};function yr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=_e(t,e)|0,n=E(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Q(t){for(var e=t.length<0?0:te(t.length)|0,r=E(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function xr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Q(t)}function $(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,s.prototype),n}function wr(t){if(s.isBuffer(t)){var e=te(t.length)|0,r=E(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ne(t.length)?E(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function te(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function br(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function _e(t,e){if(s.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ne(t).length;default:if(i)return n?-1:ee(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=_e;function vr(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 Nr(this,e,r);case"utf8":case"utf-8":return Re(this,e,r);case"ascii":return Lr(this,e,r);case"latin1":case"binary":return Er(this,e,r);case"base64":return Rr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)B(this,r,r+1);return this};s.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)B(this,r,r+3),B(this,r+1,r+2);return this};s.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)B(this,r,r+7),B(this,r+1,r+6),B(this,r+2,r+5),B(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Re(this,0,e):vr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=O.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};be&&(s.prototype[be]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,l=n-r,p=Math.min(a,l),m=this.slice(i,o),h=e.slice(r,n),f=0;f<p;++f)if(m[f]!==h[f]){a=m[f],l=h[f];break}return a<l?-1:l<a?1:0};function Se(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ne(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ve(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ve(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ve(t,e,r,n,i){var o=1,a=t.length,l=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;o=2,a/=2,l/=2,r/=2}function p(b,D){return o===1?b[D]:b.readUInt16BE(D*o)}var m;if(i){var h=-1;for(m=r;m<a;m++)if(p(t,m)===p(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===l)return h*o}else h!==-1&&(m-=m-h),h=-1}else for(r+l>a&&(r=a-l),m=r;m>=0;m--){for(var f=!0,k=0;k<l;k++)if(p(t,m+k)!==p(e,k)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Se(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Se(this,e,r,n,!1)};function Tr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var l=parseInt(e.substr(a*2,2),16);if(ne(l))return a;t[r+a]=l}return a}function kr(t,e,r,n){return z(ee(e,t.length-r),t,r,n)}function Ar(t,e,r,n){return z(Ur(e),t,r,n)}function _r(t,e,r,n){return z(Ne(e),t,r,n)}function Sr(t,e,r,n){return z(Dr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Tr(this,e,r,n);case"utf8":case"utf-8":return kr(this,e,r,n);case"ascii":case"latin1":case"binary":return Ar(this,e,r,n);case"base64":return _r(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Rr(t,e,r){return e===0&&r===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,r))}function Re(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,l=o>239?4:o>223?3:o>191?2:1;if(i+l<=r){var p,m,h,f;switch(l){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(a=f));break;case 3:p=t[i+1],m=t[i+2],(p&192)===128&&(m&192)===128&&(f=(o&15)<<12|(p&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:p=t[i+1],m=t[i+2],h=t[i+3],(p&192)===128&&(m&192)===128&&(h&192)===128&&(f=(o&15)<<18|(p&63)<<12|(m&63)<<6|h&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=l}return Ir(n)}var Te=4096;function Ir(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function Lr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Nr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Pr[t[o]];return i}function Fr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.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 i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),P.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),P.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),P.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),P.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,l=0;for(this[r]=e&255;++l<n&&(a*=256);)this[r+l]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,l=1;for(this[r+a]=e&255;--a>=0&&(l*=256);)this[r+a]=e/l&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,l=1,p=0;for(this[r]=e&255;++a<n&&(l*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/l>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,l=1,p=0;for(this[r+a]=e&255;--a>=0&&(l*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/l>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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 Ie(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Le(t,e,r,n,i){return e=+e,r=r>>>0,i||Ie(t,e,r,4,34028234663852886e22,-34028234663852886e22),P.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Le(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Le(this,e,r,!1,n)};function Ee(t,e,r,n,i){return e=+e,r=r>>>0,i||Ie(t,e,r,8,17976931348623157e292,-17976931348623157e292),P.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ee(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ee(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}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 l=s.isBuffer(e)?e:s.from(e,i),p=l.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=l[a%p]}return this};var Cr=/[^+/0-9A-Za-z-_]/g;function Br(t){if(t=t.split("=")[0],t=t.trim().replace(Cr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ee(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Ur(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Dr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ne(t){return Z.toByteArray(Br(t))}function z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ne(t){return t!==t}var Pr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Pe=H((zr,De)=>{c();var y=De.exports={},S,R;function ie(){throw new Error("setTimeout has not been defined")}function oe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ie}catch(t){S=ie}try{typeof clearTimeout=="function"?R=clearTimeout:R=oe}catch(t){R=oe}})();function Ce(t){if(S===setTimeout)return setTimeout(t,0);if((S===ie||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(e){try{return S.call(null,t,0)}catch(r){return S.call(this,t,0)}}}function Or(t){if(R===clearTimeout)return clearTimeout(t);if((R===oe||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var N=[],M=!1,U,X=-1;function Mr(){!M||!U||(M=!1,U.length?N=U.concat(N):X=-1,N.length&&Be())}function Be(){if(!M){var t=Ce(Mr);M=!0;for(var e=N.length;e;){for(U=N,N=[];++X<e;)U&&U[X].run();X=-1,e=N.length}U=null,M=!1,Or(t)}}y.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];N.push(new Ue(t,e)),N.length===1&&!M&&Ce(Be)};function Ue(t,e){this.fun=t,this.array=e}Ue.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function F(){}y.on=F;y.addListener=F;y.once=F;y.off=F;y.removeListener=F;y.removeAllListeners=F;y.emit=F;y.prependListener=F;y.prependOnceListener=F;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var u,d,Xr,c=or(()=>{u=me(Fe()),d=me(Pe()),Xr=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 Wr={};ar(Wr,{parseTransactionAfterSigning:()=>Gr});module.exports=sr(Wr);c();c();c();c();var L=require("@multiversx/sdk-core");c();c();c();c();c();var ae=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(ae||{});c();c();c();c();c();c();c();c();c();c();var se=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),G=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Oe=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Oe||{}),at=v(v({},G.CrossWindowProviderRequestEnums),Oe),Me=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Me||{}),st=v(v({},G.CrossWindowProviderResponseEnums),Me);c();c();c();c();c();c();var ce={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Ge,egldLabel:At}=ce["devnet"],{chainId:We,egldLabel:_t}=ce["testnet"],{chainId:Ve,egldLabel:St}=ce["mainnet"];var Rt={["devnet"]:Ge,["testnet"]:We,["mainnet"]:Ve},It={[Ge]:"devnet",[We]:"testnet",[Ve]:"mainnet"};c();c();var I=require("@multiversx/sdk-web-wallet-provider");c();var He,qe,le=String((qe=(He=se.safeWindow)==null?void 0:He.navigator)==null?void 0:qe.userAgent),Ct=/^((?!chrome|android).)*safari/i.test(le),Bt=/firefox/i.test(le)&&/windows/i.test(le);var je=5e4;var ze=1e9;var Xe=1;c();var pe=require("@multiversx/sdk-core/out");c();c();function Ye(t){try{let e=atob(t),r=btoa(e),n=u.Buffer.from(t,"base64").toString(),i=u.Buffer.from(n).toString("base64"),o=t===r||r.startsWith(t),a=t===i||i.startsWith(t);if(o&&a)return!0}catch(e){return!1}return!1}c();c();c();c();var Ke=t=>{let e=t!=null?t:"";return Ye(e)?pe.TransactionPayload.fromEncoded(e):new pe.TransactionPayload(e)};c();var Y=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(ae).some(r=>t.startsWith(r)):!1;function Je(t){var n,i,o;let e=v({},t);Y({data:e.data,onlySetGuardian:!0})&&(delete e.senderUsername,delete e.receiverUsername);let r=new L.Transaction(v(v(V(v(V(v({value:e.value.valueOf(),data:Ke(e.data),nonce:e.nonce.valueOf(),receiver:new L.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new L.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(n=e.gasLimit.valueOf())!=null?n:je,gasPrice:(i=e.gasPrice.valueOf())!=null?i:ze,chainID:e.chainID.valueOf(),version:new L.TransactionVersion((o=e.version)!=null?o:Xe)}),e.options?{options:new L.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new L.Address(e.guardian)}:{}));return e.guardianSignature&&r.applyGuardianSignature(u.Buffer.from(e.guardianSignature,"hex")),e.signature&&r.applySignature(u.Buffer.from(e.signature,"hex")),r}function Gr(t){let r=Object.getPrototypeOf(t).toPlainObject!=null?t:Je(t),n=V(v({},r.toPlainObject()),{hash:r.getHash().hex(),senderUsername:r.getSenderUsername().valueOf(),receiverUsername:r.getReceiverUsername().valueOf(),status:"pending"});return Y({data:n.data,onlySetGuardian:!0})&&(delete n.senderUsername,delete n.receiverUsername),n}0&&(module.exports={parseTransactionAfterSigning});
1
+ "use strict";var Qe=Object.create;var W=Object.defineProperty,$e=Object.defineProperties,er=Object.getOwnPropertyDescriptor,rr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var de=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,v=(t,e)=>{for(var r in e||(e={}))ge.call(e,r)&&de(t,r,e[r]);if(ue)for(var r of ue(e))ir.call(e,r)&&de(t,r,e[r]);return t},V=(t,e)=>$e(t,rr(e));var or=(t,e)=>()=>(t&&(e=t(t=0)),e);var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ar=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},fe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tr(e))!ge.call(t,i)&&i!==r&&W(t,i,{get:()=>e[i],enumerable:!(n=er(e,i))||n.enumerable});return t};var me=(t,e,r)=>(r=t!=null?Qe(nr(t)):{},fe(e||!t||!t.__esModule?W(r,"default",{value:t,enumerable:!0}):r,t)),sr=t=>fe(W({},"__esModule",{value:!0}),t);var xe=H(q=>{"use strict";l();q.byteLength=cr;q.toByteArray=ur;q.fromByteArray=fr;var A=[],T=[],lr=typeof Uint8Array!="undefined"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,he=K.length;C<he;++C)A[C]=K[C],T[K.charCodeAt(C)]=C;var C,he;T["-".charCodeAt(0)]=62;T["_".charCodeAt(0)]=63;function ye(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 cr(t){var e=ye(t),r=e[0],n=e[1];return(r+n)*3/4-n}function pr(t,e,r){return(e+r)*3/4-r}function ur(t){var e,r=ye(t),n=r[0],i=r[1],o=new lr(pr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=T[t.charCodeAt(p)]<<18|T[t.charCodeAt(p+1)]<<12|T[t.charCodeAt(p+2)]<<6|T[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=T[t.charCodeAt(p)]<<2|T[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=T[t.charCodeAt(p)]<<10|T[t.charCodeAt(p+1)]<<4|T[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function dr(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function gr(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(dr(n));return i.join("")}function fr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(gr(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(A[e>>2]+A[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(A[e>>10]+A[e>>4&63]+A[e<<2&63]+"=")),i.join("")}});var we=H(J=>{l();J.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,m=p>>1,h=-7,f=r?i-1:0,k=r?-1:1,b=t[e+f];for(f+=k,o=b&(1<<-h)-1,b>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=k,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=k,h-=8);if(o===0)o=1-m;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-m}return(b?-1:1)*a*Math.pow(2,o-n)};J.write=function(t,e,r,n,i,o){var a,c,p,m=o*8-i-1,h=(1<<m)-1,f=h>>1,k=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,D=n?1:-1,Ze=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+f>=1?e+=k/p:e+=k*Math.pow(2,1-f),e*p>=2&&(a++,p/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*p-1)*Math.pow(2,i),a=a+f):(c=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=D,c/=256,i-=8);for(a=a<<i|c,m+=i;m>0;t[r+b]=a&255,b+=D,a/=256,m-=8);t[r+b-D]|=Ze*128}});var Fe=H(O=>{"use strict";l();var Z=xe(),P=we(),be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=s;O.SlowBuffer=br;O.INSPECT_MAX_BYTES=50;var j=2147483647;O.kMaxLength=j;s.TYPED_ARRAY_SUPPORT=mr();!s.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 mr(){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(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function E(t){if(t>j)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 re(t)}return ke(t,e,r)}s.poolSize=8192;function ke(t,e,r){if(typeof t=="string")return yr(t,e);if(ArrayBuffer.isView(t))return xr(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 $(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 s.from(n,e,r);var i=wr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.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)}s.from=function(t,e,r){return ke(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function Ae(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 hr(t,e,r){return Ae(t),t<=0?E(t):e!==void 0?typeof r=="string"?E(t).fill(e,r):E(t).fill(e):E(t)}s.alloc=function(t,e,r){return hr(t,e,r)};function re(t){return Ae(t),E(t<0?0:te(t)|0)}s.allocUnsafe=function(t){return re(t)};s.allocUnsafeSlow=function(t){return re(t)};function yr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=_e(t,e)|0,n=E(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Q(t){for(var e=t.length<0?0:te(t.length)|0,r=E(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function xr(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Q(t)}function $(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,s.prototype),n}function wr(t){if(s.isBuffer(t)){var e=te(t.length)|0,r=E(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ne(t.length)?E(0):Q(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Q(t.data)}function te(t){if(t>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return t|0}function br(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype};s.compare=function(e,r){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),_(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.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,i=r.length,o=0,a=Math.min(n,i);o<a;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};s.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}};s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=s.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(_(a,Uint8Array))o+a.length>i.length?s.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(s.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function _e(t,e){if(s.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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ee(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ne(t).length;default:if(i)return n?-1:ee(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=_e;function vr(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 Nr(this,e,r);case"utf8":case"utf-8":return Re(this,e,r);case"ascii":return Lr(this,e,r);case"latin1":case"binary":return Er(this,e,r);case"base64":return Rr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}s.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)B(this,r,r+1);return this};s.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)B(this,r,r+3),B(this,r+1,r+2);return this};s.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)B(this,r,r+7),B(this,r+1,r+6),B(this,r+2,r+5),B(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Re(this,0,e):vr.apply(this,arguments)};s.prototype.toLocaleString=s.prototype.toString;s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0};s.prototype.inspect=function(){var e="",r=O.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};be&&(s.prototype[be]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(_(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),m=this.slice(i,o),h=e.slice(r,n),f=0;f<p;++f)if(m[f]!==h[f]){a=m[f],c=h[f];break}return a<c?-1:c<a?1:0};function Se(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ne(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,n)),s.isBuffer(e))return e.length===0?-1:ve(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ve(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ve(t,e,r,n,i){var o=1,a=t.length,c=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;o=2,a/=2,c/=2,r/=2}function p(b,D){return o===1?b[D]:b.readUInt16BE(D*o)}var m;if(i){var h=-1;for(m=r;m<a;m++)if(p(t,m)===p(e,h===-1?0:m-h)){if(h===-1&&(h=m),m-h+1===c)return h*o}else h!==-1&&(m-=m-h),h=-1}else for(r+c>a&&(r=a-c),m=r;m>=0;m--){for(var f=!0,k=0;k<c;k++)if(p(t,m+k)!==p(e,k)){f=!1;break}if(f)return m}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return Se(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Se(this,e,r,n,!1)};function Tr(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(a*2,2),16);if(ne(c))return a;t[r+a]=c}return a}function kr(t,e,r,n){return z(ee(e,t.length-r),t,r,n)}function Ar(t,e,r,n){return z(Ur(e),t,r,n)}function _r(t,e,r,n){return z(Ne(e),t,r,n)}function Sr(t,e,r,n){return z(Dr(e,t.length-r),t,r,n)}s.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>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-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return Tr(this,e,r,n);case"utf8":case"utf-8":return kr(this,e,r,n);case"ascii":case"latin1":case"binary":return Ar(this,e,r,n);case"base64":return _r(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Rr(t,e,r){return e===0&&r===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,r))}function Re(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=r){var p,m,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(a=f));break;case 3:p=t[i+1],m=t[i+2],(p&192)===128&&(m&192)===128&&(f=(o&15)<<12|(p&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:p=t[i+1],m=t[i+2],h=t[i+3],(p&192)===128&&(m&192)===128&&(h&192)===128&&(f=(o&15)<<18|(p&63)<<12|(m&63)<<6|h&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=c}return Ir(n)}var Te=4096;function Ir(t){var e=t.length;if(e<=Te)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Te));return r}function Lr(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Er(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Nr(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Pr[t[o]];return i}function Fr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.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 i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(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")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),P.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),P.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),P.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),P.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(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};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(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 Ie(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Le(t,e,r,n,i){return e=+e,r=r>>>0,i||Ie(t,e,r,4,34028234663852886e22,-34028234663852886e22),P.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Le(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Le(this,e,r,!1,n)};function Ee(t,e,r,n,i){return e=+e,r=r>>>0,i||Ie(t,e,r,8,17976931348623157e292,-17976931348623157e292),P.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ee(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ee(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=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"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}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 c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var Cr=/[^+/0-9A-Za-z-_]/g;function Br(t){if(t=t.split("=")[0],t=t.trim().replace(Cr,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ee(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Ur(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Dr(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Ne(t){return Z.toByteArray(Br(t))}function z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ne(t){return t!==t}var Pr=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=r*16,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()});var Pe=H((zr,De)=>{l();var y=De.exports={},S,R;function ie(){throw new Error("setTimeout has not been defined")}function oe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ie}catch(t){S=ie}try{typeof clearTimeout=="function"?R=clearTimeout:R=oe}catch(t){R=oe}})();function Ce(t){if(S===setTimeout)return setTimeout(t,0);if((S===ie||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(e){try{return S.call(null,t,0)}catch(r){return S.call(this,t,0)}}}function Or(t){if(R===clearTimeout)return clearTimeout(t);if((R===oe||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var N=[],M=!1,U,X=-1;function Mr(){!M||!U||(M=!1,U.length?N=U.concat(N):X=-1,N.length&&Be())}function Be(){if(!M){var t=Ce(Mr);M=!0;for(var e=N.length;e;){for(U=N,N=[];++X<e;)U&&U[X].run();X=-1,e=N.length}U=null,M=!1,Or(t)}}y.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];N.push(new Ue(t,e)),N.length===1&&!M&&Ce(Be)};function Ue(t,e){this.fun=t,this.array=e}Ue.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function F(){}y.on=F;y.addListener=F;y.once=F;y.off=F;y.removeListener=F;y.removeAllListeners=F;y.emit=F;y.prependListener=F;y.prependOnceListener=F;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var u,d,Xr,l=or(()=>{u=me(Fe()),d=me(Pe()),Xr=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 Wr={};ar(Wr,{parseTransactionAfterSigning:()=>Gr});module.exports=sr(Wr);l();l();l();l();var L=require("@multiversx/sdk-core");l();l();l();l();l();var ae=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(ae||{});l();l();l();l();l();l();l();l();l();l();var se=require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants"),G=require("@multiversx/sdk-dapp-utils/out/enums/crossWindowProviderEnums");var Oe=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Oe||{}),at=v(v({},G.CrossWindowProviderRequestEnums),Oe),Me=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Me||{}),st=v(v({},G.CrossWindowProviderResponseEnums),Me);l();l();l();l();l();l();var le={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Ge,egldLabel:At}=le["devnet"],{chainId:We,egldLabel:_t}=le["testnet"],{chainId:Ve,egldLabel:St}=le["mainnet"];var Rt={["devnet"]:Ge,["testnet"]:We,["mainnet"]:Ve},It={[Ge]:"devnet",[We]:"testnet",[Ve]:"mainnet"};l();l();var I=require("@multiversx/sdk-web-wallet-provider");l();var He,qe,ce=String((qe=(He=se.safeWindow)==null?void 0:He.navigator)==null?void 0:qe.userAgent),Ct=/^((?!chrome|android).)*safari/i.test(ce),Bt=/firefox/i.test(ce)&&/windows/i.test(ce);var je=5e4;var ze=1e9;var Xe=1;l();var pe=require("@multiversx/sdk-core/out");l();l();function Ye(t){try{let e=atob(t),r=btoa(e),n=u.Buffer.from(t,"base64").toString(),i=u.Buffer.from(n).toString("base64"),o=t===r||r.startsWith(t),a=t===i||i.startsWith(t);if(o&&a)return!0}catch(e){return!1}return!1}l();l();l();l();var Ke=t=>{let e=t!=null?t:"";return Ye(e)?pe.TransactionPayload.fromEncoded(e):new pe.TransactionPayload(e)};l();var Y=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(ae).some(r=>t.startsWith(r)):!1;function Je(t){var n,i,o;let e=v({},t);Y({data:e.data,onlySetGuardian:!0})&&(delete e.senderUsername,delete e.receiverUsername);let r=new L.Transaction(v(v(V(v(V(v({value:e.value.valueOf(),data:Ke(e.data),nonce:e.nonce.valueOf(),receiver:new L.Address(e.receiver)},e.receiverUsername?{receiverUsername:e.receiverUsername}:{}),{sender:new L.Address(e.sender)}),e.senderUsername?{senderUsername:e.senderUsername}:{}),{gasLimit:(n=e.gasLimit.valueOf())!=null?n:je,gasPrice:(i=e.gasPrice.valueOf())!=null?i:ze,chainID:e.chainID.valueOf(),version:new L.TransactionVersion((o=e.version)!=null?o:Xe)}),e.options?{options:new L.TransactionOptions(e.options)}:{}),e.guardian?{guardian:new L.Address(e.guardian)}:{}));return e.guardianSignature&&r.applyGuardianSignature(u.Buffer.from(e.guardianSignature,"hex")),e.signature&&r.applySignature(u.Buffer.from(e.signature,"hex")),r}function Gr(t){let r=Object.getPrototypeOf(t).toPlainObject!=null?t:Je(t),n=V(v({},r.toPlainObject()),{hash:r.getHash().hex(),senderUsername:r.getSenderUsername().valueOf(),receiverUsername:r.getReceiverUsername().valueOf(),status:"pending"});return Y({data:n.data,onlySetGuardian:!0})&&(delete n.senderUsername,delete n.receiverUsername),n}0&&(module.exports={parseTransactionAfterSigning});
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *