@multiversx/sdk-dapp 2.8.8 → 2.9.0-alpha.1
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.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/Denominate/index.js +1 -1
- package/UI/ExplorerLink/ExplorerLink.js +1 -1
- package/UI/ExplorerLink/index.js +1 -1
- package/UI/FormatAmount/FormatAmount.js +1 -1
- package/UI/FormatAmount/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TokenDetails/index.js +1 -1
- package/UI/TransactionData/index.js +1 -1
- package/UI/TransactionDetails/TransactionDetails.js +1 -1
- package/UI/TransactionDetails/components/TransactionDetailsBody.js +1 -1
- package/UI/TransactionDetails/components/index.js +1 -1
- package/UI/TransactionDetails/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/AddressDetailitem.js +1 -1
- package/UI/TransactionInfo/components/AddressDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/DataDecode.js +1 -1
- package/UI/TransactionInfo/components/DataDecode/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/DataField.js +1 -1
- package/UI/TransactionInfo/components/DataField/index.js +1 -1
- package/UI/TransactionInfo/components/EventsList/EventsList.js +1 -1
- package/UI/TransactionInfo/components/EventsList/index.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/OperationList.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/DetailedItem.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationRow.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationText.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/components/index.js +1 -1
- package/UI/TransactionInfo/components/OperationsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/ScResultsList.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/ResultHash.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultHash/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/ResultReceiver.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultReceiver/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/ResultSender.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/components/ResultSender/index.js +1 -1
- package/UI/TransactionInfo/components/ScResultsList/index.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/ScrDetailItem.js +1 -1
- package/UI/TransactionInfo/components/ScrDetailItem/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/TransactionAction.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionToken.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/components/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionAction/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/TransactionLogs.js +1 -1
- package/UI/TransactionInfo/components/TransactionLogs/index.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/TransactionStatus.js +1 -1
- package/UI/TransactionInfo/components/TransactionStatus/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/TransactionInfoAge.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoAge/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/TransactionInfoFee.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFee/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/TransactionInfoFrom.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoFrom/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/TransactionInfoMethod.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMethod/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/TransactionInfoScResults.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoScResults/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/TransactionInfoStatus.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoStatus/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/TransactionInfoTo.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTo/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/TransactionInfoTokenOperations.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoTokenOperations/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/components/LockedTokenAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ScAddressIcon.js +1 -1
- package/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/UI/TransactionsTable/components/TransactionHash.js +1 -1
- package/UI/TransactionsTable/components/TransactionIcon.js +1 -1
- package/UI/TransactionsTable/components/TransactionReceiver.js +1 -1
- package/UI/TransactionsTable/components/TransactionRow.js +1 -1
- package/UI/TransactionsTable/components/TransactionSender.js +1 -1
- package/UI/TransactionsTable/components/TransactionShardsTransition.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/TransactionValue.js +1 -1
- package/UI/TransactionsTable/components/TransactionValue/index.js +1 -1
- package/UI/TransactionsTable/components/index.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/helpers/useMemoizedCloseButton.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/TransactionToastContent.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-2DKPFSTT.js → chunk-25LYYPSL.js} +2 -2
- package/__chunks__/{chunk-NB6RUSDN.js → chunk-2DAZJTY7.js} +2 -2
- package/__chunks__/{chunk-ZXXEZGKT.js → chunk-2G7BO52P.js} +2 -2
- package/__chunks__/{chunk-UC3BL6OL.js → chunk-2JGSECMC.js} +2 -2
- package/__chunks__/{chunk-I6WCVWCL.js → chunk-2MN2JEL5.js} +2 -2
- package/__chunks__/{chunk-LLJWVYQI.js → chunk-2QEIR6TS.js} +2 -2
- package/__chunks__/{chunk-NQ25VRP6.js → chunk-2UFNSJOJ.js} +2 -2
- package/__chunks__/{chunk-OHZF3UCF.js → chunk-32HLRTV3.js} +2 -2
- package/__chunks__/{chunk-TF5GKSWN.js → chunk-33B2EA3V.js} +2 -2
- package/__chunks__/{chunk-JUFYXNHH.js → chunk-343YDU2S.js} +2 -2
- package/__chunks__/{chunk-QCA255CH.js → chunk-346RZSEQ.js} +2 -2
- package/__chunks__/chunk-37OCRXKG.js +2 -0
- package/__chunks__/{chunk-CUXSI37S.js → chunk-3ADB74GU.js} +2 -2
- package/__chunks__/{chunk-A2UYY3JW.js → chunk-3BQODYHQ.js} +2 -2
- package/__chunks__/{chunk-QVCVZLRQ.js → chunk-3CRW4ZUP.js} +2 -2
- package/__chunks__/{chunk-XHKQRSQL.js → chunk-3D56FBAG.js} +2 -2
- package/__chunks__/{chunk-BS36A7LR.js → chunk-3DOTBYW5.js} +2 -2
- package/__chunks__/{chunk-2EA2VIB5.js → chunk-3OTU3LGP.js} +2 -2
- package/__chunks__/{chunk-AASOI2YB.js → chunk-3VNANIQN.js} +2 -2
- package/__chunks__/chunk-3ZPW6NBW.js +2 -0
- package/__chunks__/{chunk-6OGZDOZO.js → chunk-4AXBEAVW.js} +2 -2
- package/__chunks__/{chunk-ZMSSS4XY.js → chunk-4CUEYG5L.js} +2 -2
- package/__chunks__/{chunk-4NUCA54E.js → chunk-4DXDAPGH.js} +2 -2
- package/__chunks__/{chunk-W5XV2MWO.js → chunk-4E4GWX4K.js} +2 -2
- package/__chunks__/{chunk-KN33FON4.js → chunk-4EUXBDOP.js} +2 -2
- package/__chunks__/chunk-4MGGEDE4.js +2 -0
- package/__chunks__/{chunk-VZTQJF5K.js → chunk-4YGLWJYP.js} +2 -2
- package/__chunks__/{chunk-C4IGVF3G.js → chunk-4ZPZ6AIU.js} +2 -2
- package/__chunks__/{chunk-5L64ER7E.js → chunk-54NEP2BY.js} +2 -2
- package/__chunks__/{chunk-2TL4GHIJ.js → chunk-57KTNTD4.js} +2 -2
- package/__chunks__/{chunk-QZVP3TCG.js → chunk-5A4BF2DQ.js} +2 -2
- package/__chunks__/{chunk-DXSPO7EM.js → chunk-5BOZYUAE.js} +2 -2
- package/__chunks__/chunk-5E3Y7WDX.js +2 -0
- package/__chunks__/{chunk-FCAEZL4W.js → chunk-5IU2LKSN.js} +2 -2
- package/__chunks__/{chunk-BBPTFRVE.js → chunk-5JSXSHFD.js} +2 -2
- package/__chunks__/{chunk-4A25I5EO.js → chunk-5LIDVEDY.js} +2 -2
- package/__chunks__/{chunk-F6GZHJMJ.js → chunk-5LIPZK7I.js} +2 -2
- package/__chunks__/{chunk-CMG3PZXL.js → chunk-5SFT27AY.js} +2 -2
- package/__chunks__/chunk-5T2INUJ2.js +2 -0
- package/__chunks__/{chunk-4JAU6EN6.js → chunk-62SL73B6.js} +2 -2
- package/__chunks__/chunk-65MQPHO4.js +2 -0
- package/__chunks__/chunk-6A6EWHUH.js +2 -0
- package/__chunks__/{chunk-I5GXT2NM.js → chunk-6ALJIJJR.js} +2 -2
- package/__chunks__/{chunk-GQPWCE2U.js → chunk-6CPLHN5F.js} +2 -2
- package/__chunks__/{chunk-SKUZQREX.js → chunk-6NPKQKN5.js} +2 -2
- package/__chunks__/{chunk-2UFASAE6.js → chunk-6O5L57GH.js} +2 -2
- package/__chunks__/{chunk-DUYNNDUF.js → chunk-6PSLWD7K.js} +2 -2
- package/__chunks__/{chunk-DSXLBCJZ.js → chunk-6QQMWPZL.js} +2 -2
- package/__chunks__/{chunk-GMVQCQ3Y.js → chunk-6T4HLUJ5.js} +2 -2
- package/__chunks__/{chunk-EDUYDVLW.js → chunk-6TWOJZGW.js} +2 -2
- package/__chunks__/chunk-6W7S3EE3.js +2 -0
- package/__chunks__/{chunk-BWYB6R6W.js → chunk-73F5VFES.js} +2 -2
- package/__chunks__/{chunk-3RPV34NB.js → chunk-7CR6PT46.js} +2 -2
- package/__chunks__/{chunk-OQIVIERX.js → chunk-7G3CGRHQ.js} +2 -2
- package/__chunks__/{chunk-6DTOQEIQ.js → chunk-7NYPVHED.js} +2 -2
- package/__chunks__/{chunk-ZF6KDUMI.js → chunk-7RDCJEBM.js} +2 -2
- package/__chunks__/{chunk-X6LCE6DY.js → chunk-7S2XISHG.js} +2 -2
- package/__chunks__/{chunk-W4D7AG72.js → chunk-7UD2BXEK.js} +2 -2
- package/__chunks__/{chunk-3SGMXEQG.js → chunk-7XH5QF3M.js} +2 -2
- package/__chunks__/chunk-A3YTVQRT.js +2 -0
- package/__chunks__/chunk-A453JAS3.js +2 -0
- package/__chunks__/{chunk-KDE7GIIV.js → chunk-A6UEBWYM.js} +2 -2
- package/__chunks__/chunk-ABVMFLA3.js +2 -0
- package/__chunks__/{chunk-FOSUR33Y.js → chunk-AJBKM66B.js} +2 -2
- package/__chunks__/{chunk-4PGVVXDY.js → chunk-AK245ZB2.js} +2 -2
- package/__chunks__/{chunk-JYF2TWOA.js → chunk-ALP3UNP6.js} +2 -2
- package/__chunks__/{chunk-54UVT7XD.js → chunk-AMFO52WL.js} +2 -2
- package/__chunks__/{chunk-L6O2YAE3.js → chunk-AOEAP24C.js} +2 -2
- package/__chunks__/{chunk-QHROAYMM.js → chunk-ARBTLT3C.js} +2 -2
- package/__chunks__/chunk-B3TAZ7VX.js +2 -0
- package/__chunks__/{chunk-RRJM3255.js → chunk-B4DRNYML.js} +2 -2
- package/__chunks__/chunk-BAT5BA5V.js +2 -0
- package/__chunks__/{chunk-SLKZO7VS.js → chunk-BKMSVP62.js} +2 -2
- package/__chunks__/{chunk-GIZIGQZP.js → chunk-BKSSTINX.js} +2 -2
- package/__chunks__/{chunk-JJGJCN5V.js → chunk-BMG5SADY.js} +2 -2
- package/__chunks__/chunk-BRPCFDIZ.js +2 -0
- package/__chunks__/{chunk-5IKM5Q2S.js → chunk-BTUNYV43.js} +2 -2
- package/__chunks__/{chunk-OHTQWFS7.js → chunk-BVRV3PPZ.js} +2 -2
- package/__chunks__/chunk-BZONU76B.js +2 -0
- package/__chunks__/{chunk-NY463RKX.js → chunk-C3S2OS2F.js} +2 -2
- package/__chunks__/{chunk-WUF7FKNG.js → chunk-C54IH7AJ.js} +2 -2
- package/__chunks__/{chunk-UWE6TJ47.js → chunk-C7BZLCLN.js} +2 -2
- package/__chunks__/chunk-CDW2662X.js +2 -0
- package/__chunks__/{chunk-HJGXNUQZ.js → chunk-CFAUACCS.js} +2 -2
- package/__chunks__/{chunk-POFMPPLE.js → chunk-CJEHVP77.js} +2 -2
- package/__chunks__/{chunk-XHBL2F6G.js → chunk-CNNCGA7P.js} +2 -2
- package/__chunks__/chunk-COL2EXNW.js +2 -0
- package/__chunks__/{chunk-62DW3AHE.js → chunk-CPACYSUZ.js} +2 -2
- package/__chunks__/chunk-CSS5DPJE.js +2 -0
- package/__chunks__/{chunk-22AVS7E3.js → chunk-CTO4KDRF.js} +2 -2
- package/__chunks__/{chunk-ZJECAQPC.js → chunk-CWZS67S7.js} +2 -2
- package/__chunks__/{chunk-AF4A42IE.js → chunk-CXXTFRHA.js} +2 -2
- package/__chunks__/{chunk-MMCZ3ASQ.js → chunk-CZZL3SSJ.js} +2 -2
- package/__chunks__/{chunk-AO6HRN56.js → chunk-D6AVFA2D.js} +2 -2
- package/__chunks__/{chunk-XDH6CNY3.js → chunk-DLO34CIZ.js} +2 -2
- package/__chunks__/{chunk-OIT7AZTZ.js → chunk-DQML7BH2.js} +2 -2
- package/__chunks__/{chunk-ZJQA5LBM.js → chunk-DTN6DYVS.js} +2 -2
- package/__chunks__/chunk-DXE4AAU7.js +2 -0
- package/__chunks__/{chunk-PYO6CNJL.js → chunk-E36MIU6P.js} +2 -2
- package/__chunks__/chunk-E4X4P3T6.js +2 -0
- package/__chunks__/{chunk-IAU7HZOA.js → chunk-EFMJXVWX.js} +2 -2
- package/__chunks__/{chunk-XP6VAPF7.js → chunk-EHIOPQMM.js} +2 -2
- package/__chunks__/chunk-EPJMBI2O.js +2 -0
- package/__chunks__/{chunk-BTPNQ5FQ.js → chunk-ESLOIYNE.js} +2 -2
- package/__chunks__/{chunk-WEXCOWWF.js → chunk-EXCSAEHQ.js} +2 -2
- package/__chunks__/chunk-EZWQ7DMD.js +2 -0
- package/__chunks__/{chunk-OMSJSEKB.js → chunk-F2HBY53M.js} +2 -2
- package/__chunks__/{chunk-ATNLLNOK.js → chunk-FIPS3NHS.js} +2 -2
- package/__chunks__/chunk-FPDWY2JO.js +2 -0
- package/__chunks__/{chunk-GPLG6N3Y.js → chunk-G3RFZTTV.js} +2 -2
- package/__chunks__/{chunk-CSUG3NQC.js → chunk-GRYUK7ET.js} +2 -2
- package/__chunks__/{chunk-IDNYXXUU.js → chunk-H3R6VXAV.js} +2 -2
- package/__chunks__/{chunk-OMBMT76D.js → chunk-HACCGAKC.js} +2 -2
- package/__chunks__/chunk-HIX6QXZ4.js +2 -0
- package/__chunks__/{chunk-ZPNSZFF2.js → chunk-HJ7GDMMX.js} +2 -2
- package/__chunks__/{chunk-5ZHWPLU6.js → chunk-HOM67ZP7.js} +2 -2
- package/__chunks__/{chunk-B3LFKKXC.js → chunk-HPXVUIJL.js} +2 -2
- package/__chunks__/{chunk-34MJDZ4X.js → chunk-HWLMQLGK.js} +2 -2
- package/__chunks__/{chunk-HLAK3KWC.js → chunk-I4BUST3H.js} +2 -2
- package/__chunks__/{chunk-MCPXAAQH.js → chunk-I6GRLA2C.js} +2 -2
- package/__chunks__/{chunk-NY3SRBV3.js → chunk-IB6Q7I2M.js} +2 -2
- package/__chunks__/{chunk-Q5JVMVSG.js → chunk-IMJ3U2BY.js} +2 -2
- package/__chunks__/{chunk-Q2LHZHWH.js → chunk-IOQUQ7V7.js} +2 -2
- package/__chunks__/chunk-IYGHEIZB.js +2 -0
- package/__chunks__/{chunk-YPLFH5NC.js → chunk-J3Q7UDAZ.js} +2 -2
- package/__chunks__/{chunk-PFP32GAJ.js → chunk-J6HSKOGJ.js} +2 -2
- package/__chunks__/{chunk-6K3QMAWT.js → chunk-J7NMG22C.js} +2 -2
- package/__chunks__/chunk-JCD6DJSC.js +2 -0
- package/__chunks__/{chunk-3AWXVQPI.js → chunk-JDVLHQF6.js} +2 -2
- package/__chunks__/{chunk-K2TOOZFP.js → chunk-JIXAK2AC.js} +2 -2
- package/__chunks__/{chunk-SY4VVHFA.js → chunk-JJWH3JYM.js} +2 -2
- package/__chunks__/{chunk-FFSZJG62.js → chunk-JK6ABF64.js} +2 -2
- package/__chunks__/{chunk-IOSHQZNU.js → chunk-JK6EDPQT.js} +2 -2
- package/__chunks__/{chunk-CURMR3DQ.js → chunk-JRJFNQAZ.js} +2 -2
- package/__chunks__/chunk-JWP3WLIN.js +2 -0
- package/__chunks__/{chunk-F4OB26CT.js → chunk-JWSBC5DB.js} +2 -2
- package/__chunks__/{chunk-JKQBUYK2.js → chunk-K5UIZVZV.js} +2 -2
- package/__chunks__/{chunk-ZAKI6HUY.js → chunk-KAKTGT5L.js} +2 -2
- package/__chunks__/{chunk-E63OT5BJ.js → chunk-KDEQ2GAX.js} +2 -2
- package/__chunks__/{chunk-2CN5KU25.js → chunk-KEIOQVXN.js} +2 -2
- package/__chunks__/{chunk-QDCY7OOZ.js → chunk-KG3U55NF.js} +2 -2
- package/__chunks__/{chunk-QN46IB4K.js → chunk-KHHNKZRB.js} +2 -2
- package/__chunks__/{chunk-VCAA4VGH.js → chunk-KV6GSWNL.js} +2 -2
- package/__chunks__/{chunk-XIS6CC4U.js → chunk-KVNDDYVB.js} +2 -2
- package/__chunks__/{chunk-JKA54IGW.js → chunk-KYC5JNJB.js} +2 -2
- package/__chunks__/{chunk-6QZHGHIR.js → chunk-KYVILTBF.js} +2 -2
- package/__chunks__/chunk-L5DW2DTN.js +2 -0
- package/__chunks__/chunk-L5UKH2NP.js +2 -0
- package/__chunks__/{chunk-TIXHEZXL.js → chunk-LES3U47Z.js} +2 -2
- package/__chunks__/{chunk-U2U4MUGT.js → chunk-LF6FN6K3.js} +2 -2
- package/__chunks__/{chunk-FHE5FVE7.js → chunk-LGPEIIM7.js} +2 -2
- package/__chunks__/{chunk-B47CQIA7.js → chunk-LJ2OXL2R.js} +2 -2
- package/__chunks__/{chunk-HYYC56WM.js → chunk-LLTQNIPQ.js} +2 -2
- package/__chunks__/{chunk-TMWKLAQA.js → chunk-LRZYNP4X.js} +2 -2
- package/__chunks__/{chunk-WGZ6HMXJ.js → chunk-LSJH4COT.js} +2 -2
- package/__chunks__/{chunk-FKFPHPFX.js → chunk-LU3DM6HR.js} +2 -2
- package/__chunks__/chunk-LWC25W2W.js +2 -0
- package/__chunks__/{chunk-AY5CRAVB.js → chunk-LWE4XOKK.js} +2 -2
- package/__chunks__/{chunk-HHGHERF3.js → chunk-M4KXOW7P.js} +2 -2
- package/__chunks__/{chunk-JCYM4TK6.js → chunk-MC4SKRI3.js} +2 -2
- package/__chunks__/{chunk-SIEJ3BGE.js → chunk-MCGMQBME.js} +2 -2
- package/__chunks__/{chunk-QANWJPQL.js → chunk-MCX4AA63.js} +2 -2
- package/__chunks__/{chunk-5RS2KBDW.js → chunk-MDGIGD6R.js} +2 -2
- package/__chunks__/{chunk-ZU7HQJ2E.js → chunk-MIKIMQR2.js} +2 -2
- package/__chunks__/{chunk-KGF5QO63.js → chunk-MOA4IRT5.js} +2 -2
- package/__chunks__/{chunk-ITRHXPQX.js → chunk-MWHEEN6B.js} +2 -2
- package/__chunks__/chunk-MYN7DB3X.js +2 -0
- package/__chunks__/{chunk-4KWGNHHC.js → chunk-N45VBFNK.js} +2 -2
- package/__chunks__/chunk-NA2AEGMU.js +2 -0
- package/__chunks__/{chunk-35CA4MUL.js → chunk-NEHGYCY2.js} +2 -2
- package/__chunks__/{chunk-JWAY75CZ.js → chunk-NJQRX7E2.js} +2 -2
- package/__chunks__/{chunk-PNLICGB5.js → chunk-NQ247DLE.js} +2 -2
- package/__chunks__/chunk-NTCEKYNN.js +2 -0
- package/__chunks__/{chunk-WFUHPFAH.js → chunk-NYNRNXOR.js} +2 -2
- package/__chunks__/{chunk-7HKAHQUX.js → chunk-O4ZYTYXZ.js} +2 -2
- package/__chunks__/{chunk-LZ4RLZRI.js → chunk-OAXLOJDD.js} +2 -2
- package/__chunks__/chunk-OE5DHTVR.js +2 -0
- package/__chunks__/chunk-OGZP3W4S.js +2 -0
- package/__chunks__/{chunk-CDZFXCBL.js → chunk-OPNNXGAJ.js} +2 -2
- package/__chunks__/chunk-OXJW5VJL.js +2 -0
- package/__chunks__/{chunk-OARRFKEW.js → chunk-P6MRRO6I.js} +2 -2
- package/__chunks__/{chunk-XRA7MBOO.js → chunk-PCHRWVXC.js} +2 -2
- package/__chunks__/{chunk-FOTIYLGS.js → chunk-PGYJ74AD.js} +2 -2
- package/__chunks__/{chunk-67CWWMJV.js → chunk-PHYN544Z.js} +2 -2
- package/__chunks__/{chunk-DF2AQYO7.js → chunk-PMREAIGI.js} +2 -2
- package/__chunks__/{chunk-NTZ4J3ZX.js → chunk-PNSNXL7L.js} +2 -2
- package/__chunks__/{chunk-RDJETZ3F.js → chunk-PXUGFT47.js} +2 -2
- package/__chunks__/{chunk-L4OGNGVR.js → chunk-Q3OVBMP3.js} +2 -2
- package/__chunks__/{chunk-R5Z4JV3X.js → chunk-Q5WC7I3O.js} +2 -2
- package/__chunks__/{chunk-QZWFDZZ3.js → chunk-QD5QDTC3.js} +2 -2
- package/__chunks__/{chunk-42I454QK.js → chunk-QGGGF3OX.js} +2 -2
- package/__chunks__/{chunk-GW6MOKMY.js → chunk-QNUO32JN.js} +2 -2
- package/__chunks__/{chunk-3WJ37IJQ.js → chunk-QOZBVOHT.js} +2 -2
- package/__chunks__/{chunk-ANAT47NF.js → chunk-R4B6ID2N.js} +2 -2
- package/__chunks__/{chunk-RNVBV4W2.js → chunk-R6AS2UYG.js} +2 -2
- package/__chunks__/{chunk-5F5AUJIV.js → chunk-RLVLE6UU.js} +2 -2
- package/__chunks__/{chunk-SBWX3IYZ.js → chunk-S2KUPUGA.js} +2 -2
- package/__chunks__/chunk-S4BLIW3B.js +2 -0
- package/__chunks__/{chunk-GSH4BYXB.js → chunk-S653XWKA.js} +2 -2
- package/__chunks__/{chunk-PWZQTMIM.js → chunk-SBN47C2G.js} +2 -2
- package/__chunks__/{chunk-J36BPK32.js → chunk-SFP5Q2SB.js} +2 -2
- package/__chunks__/{chunk-GG736LLW.js → chunk-SGNT3E2X.js} +2 -2
- package/__chunks__/{chunk-7C6XIICR.js → chunk-SLZBO3FX.js} +2 -2
- package/__chunks__/{chunk-L6CEZHRZ.js → chunk-SXJLOBGK.js} +2 -2
- package/__chunks__/{chunk-CDWLWJH3.js → chunk-SYT2T7G2.js} +2 -2
- package/__chunks__/{chunk-SN6WAH6B.js → chunk-SZ3VLYKT.js} +2 -2
- package/__chunks__/{chunk-IPE5DLSE.js → chunk-T2CFMPMF.js} +2 -2
- package/__chunks__/{chunk-GBQ5D4O5.js → chunk-T2MFBGAA.js} +2 -2
- package/__chunks__/{chunk-E7PHXPI7.js → chunk-T2MIRLFN.js} +2 -2
- package/__chunks__/{chunk-AM7A2OOW.js → chunk-T34J5F2S.js} +2 -2
- package/__chunks__/chunk-T37QL64L.js +2 -0
- package/__chunks__/{chunk-KMTJAVQJ.js → chunk-T3NGVEED.js} +2 -2
- package/__chunks__/{chunk-AZWOFPFX.js → chunk-T4Q37HLR.js} +2 -2
- package/__chunks__/{chunk-ULRLEVOX.js → chunk-TAYARQBC.js} +2 -2
- package/__chunks__/{chunk-3P3MCUKK.js → chunk-TFQXTJWG.js} +2 -2
- package/__chunks__/chunk-TFVFRNSM.js +2 -0
- package/__chunks__/{chunk-JRM3LDSG.js → chunk-TGPRRERJ.js} +2 -2
- package/__chunks__/{chunk-4HLBQPQN.js → chunk-TJUHE354.js} +2 -2
- package/__chunks__/chunk-TKQGS7L2.js +2 -0
- package/__chunks__/{chunk-E66WVYJC.js → chunk-TTBVJAYG.js} +2 -2
- package/__chunks__/{chunk-GJLPTW4K.js → chunk-TTZVNWAK.js} +2 -2
- package/__chunks__/{chunk-Y6PJXZ2E.js → chunk-TWSAY73D.js} +2 -2
- package/__chunks__/{chunk-EDAS6Z7S.js → chunk-TZ6IR7KY.js} +2 -2
- package/__chunks__/{chunk-TZY5QRK7.js → chunk-U2ELIFGD.js} +2 -2
- package/__chunks__/{chunk-GSUIWNNM.js → chunk-U7BHVZDF.js} +2 -2
- package/__chunks__/{chunk-A2D7YVXP.js → chunk-UB7XMLMC.js} +2 -2
- package/__chunks__/{chunk-QM7QGMRH.js → chunk-UFE22DXI.js} +2 -2
- package/__chunks__/chunk-UGAJ6X3Z.js +2 -0
- package/__chunks__/chunk-UGJIORNP.js +2 -0
- package/__chunks__/{chunk-25PTVHEB.js → chunk-UIXYMFD4.js} +2 -2
- package/__chunks__/{chunk-4QHVTLCL.js → chunk-UM2Z6I3Z.js} +2 -2
- package/__chunks__/{chunk-QWB6ASJZ.js → chunk-UNW4PYCC.js} +2 -2
- package/__chunks__/{chunk-UIRTEEAJ.js → chunk-UPCMC3JF.js} +2 -2
- package/__chunks__/{chunk-ZUJVT2UK.js → chunk-UWZL6MUF.js} +2 -2
- package/__chunks__/{chunk-U53EBQ6E.js → chunk-UZ5EL5IA.js} +2 -2
- package/__chunks__/{chunk-W6TJJEHF.js → chunk-VGVAZOOL.js} +2 -2
- package/__chunks__/{chunk-MDNDUSGB.js → chunk-VHHIARAI.js} +2 -2
- package/__chunks__/{chunk-AWP342D7.js → chunk-VOS5AZ4K.js} +2 -2
- package/__chunks__/{chunk-Z7JWZURJ.js → chunk-VZZVQSTN.js} +2 -2
- package/__chunks__/{chunk-ZOMDIW6A.js → chunk-W4GD6OCO.js} +2 -2
- package/__chunks__/{chunk-VU5G7W7V.js → chunk-W5D3A5ES.js} +2 -2
- package/__chunks__/{chunk-6XRDVX6C.js → chunk-WB2WVDZA.js} +2 -2
- package/__chunks__/{chunk-LBJUKBPW.js → chunk-WCGXNTPB.js} +2 -2
- package/__chunks__/{chunk-SUHRUIOX.js → chunk-WJHMRQCO.js} +2 -2
- package/__chunks__/chunk-WR6IIZFW.js +2 -0
- package/__chunks__/{chunk-EKK5P7LA.js → chunk-WRKOOEXZ.js} +2 -2
- package/__chunks__/{chunk-OR4L5DIF.js → chunk-WRKQTXD4.js} +2 -2
- package/__chunks__/{chunk-5XAXZ3NX.js → chunk-WU2RFM5A.js} +2 -2
- package/__chunks__/{chunk-7CGLDJOD.js → chunk-X7SBGOMA.js} +2 -2
- package/__chunks__/{chunk-BB5K7AMG.js → chunk-XACM7U6A.js} +2 -2
- package/__chunks__/{chunk-OOZSFHYH.js → chunk-XARXYP2R.js} +2 -2
- package/__chunks__/{chunk-DCYIMALR.js → chunk-XGTZDEYC.js} +2 -2
- package/__chunks__/{chunk-UKVVZZPC.js → chunk-XRHEAXKK.js} +2 -2
- package/__chunks__/{chunk-OYAY4A6E.js → chunk-XVZERATD.js} +2 -2
- package/__chunks__/{chunk-TXM7RATR.js → chunk-Y5PCCHR4.js} +2 -2
- package/__chunks__/{chunk-L4RGRP2I.js → chunk-Y7U5PXM4.js} +2 -2
- package/__chunks__/chunk-YABBPNUR.js +2 -0
- package/__chunks__/{chunk-6PZJ6OYX.js → chunk-YCWMLUF4.js} +2 -2
- package/__chunks__/{chunk-5X3T3BM4.js → chunk-YGKDW2MQ.js} +2 -2
- package/__chunks__/{chunk-ZCM6OSDK.js → chunk-YJXND7MN.js} +2 -2
- package/__chunks__/{chunk-X3JF7AJ7.js → chunk-YLMQQGTH.js} +2 -2
- package/__chunks__/{chunk-RVD7ASJL.js → chunk-YRIWEATY.js} +2 -2
- package/__chunks__/{chunk-NYM7F3NU.js → chunk-YRLJP2A7.js} +2 -2
- package/__chunks__/{chunk-O7TAHBTL.js → chunk-YRR6KBN2.js} +2 -2
- package/__chunks__/{chunk-WZ4T4C6J.js → chunk-YRS6U35R.js} +2 -2
- package/__chunks__/chunk-YW6K2R7N.js +2 -0
- package/__chunks__/chunk-YWMWYHIA.js +2 -0
- package/__chunks__/{chunk-EVWIXAZV.js → chunk-YYBTFRCM.js} +2 -2
- package/__chunks__/{chunk-FNE7PA64.js → chunk-Z2VZSXDK.js} +2 -2
- package/__chunks__/{chunk-RNUOTUNR.js → chunk-Z3ZWK4EM.js} +2 -2
- package/__chunks__/{chunk-PEYRK6DJ.js → chunk-Z4ABT7NG.js} +2 -2
- package/__chunks__/{chunk-Z56HIYKS.js → chunk-ZCM6WCXA.js} +2 -2
- package/__chunks__/{chunk-LO2RKWHN.js → chunk-ZMRSOKUW.js} +2 -2
- package/__chunks__/chunk-ZQIOXJ4W.js +2 -0
- package/__chunks__/chunk-ZTWKQMJR.js +2 -0
- package/__chunks__/chunk-ZX7JX6JP.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +1 -1
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +22 -22
- package/__commonjs/UI/TransactionInfo/components/DataDecode/DataDecode.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataDecode/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/DataField/DataField.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/DataField/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/OperationsList/OperationList.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationText.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationToken.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/OperationsList/index.js +10 -10
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionText/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionNft.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/TransactionInfoGasPrice.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasPrice/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/TransactionInfoValue.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoValue/index.js +4 -4
- package/__commonjs/UI/TransactionsTable/components/LockedTokenAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ScAddressIcon.js +2 -2
- package/__commonjs/UI/TransactionsTable/components/ShardSpan.js +1 -1
- package/__commonjs/UI/TransactionsTable/components/TransactionHash.js +6 -6
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +9 -9
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/ComponentToastFooter.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/SimpleToast.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/helpers/getIsTransaction.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/getToastDataStateByStatus.js +1 -1
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/utils/index.js +1 -1
- package/__commonjs/UI/TransactionsToastList/index.js +9 -9
- package/__commonjs/UI/UsdValue/UsdValue.js +2 -2
- package/__commonjs/UI/UsdValue/index.js +2 -2
- package/__commonjs/UI/index.js +74 -74
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +7 -7
- package/__commonjs/UI/pages/UnlockPage/index.js +10 -10
- package/__commonjs/UI/pages/index.js +10 -10
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +5 -5
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +5 -5
- package/__commonjs/UI/walletConnect/index.js +5 -5
- package/__commonjs/__mocks__/accountConfig.js +1 -1
- package/__commonjs/__mocks__/index.js +1 -1
- package/__commonjs/__mocks__/server.js +1 -1
- package/__commonjs/__mocks__/utils/index.js +1 -1
- package/__commonjs/__mocks__/utils/renderWithProvider.js +1 -1
- package/__commonjs/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/__commonjs/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/__commonjs/apiCalls/configuration/index.js +1 -1
- package/__commonjs/components/LogoutListener/helpers/index.js +1 -1
- package/__commonjs/components/ProviderInitializer.js +1 -1
- package/__commonjs/constants/network.js +1 -1
- package/__commonjs/hooks/account/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/index.js +1 -1
- package/__commonjs/hooks/login/useExtensionLogin.js +1 -1
- package/__commonjs/hooks/login/useLedgerLogin.js +1 -1
- package/__commonjs/hooks/login/useLoginService.js +1 -1
- package/__commonjs/hooks/login/useOperaLogin.js +1 -1
- package/__commonjs/hooks/login/useWalletConnectV2Login.js +1 -1
- package/__commonjs/hooks/login/useWebViewLogin.js +1 -1
- package/__commonjs/hooks/login/useWebWalletLogin.js +1 -1
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/__commonjs/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/__commonjs/hooks/userInterface/index.js +1 -1
- package/__commonjs/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/__commonjs/providers/accountProvider.js +1 -1
- package/__commonjs/providers/index.js +1 -1
- package/__commonjs/providers/utils.js +1 -1
- package/__commonjs/providers/webviewProvider/index.js +1 -1
- package/__commonjs/providers/webviewProvider/requestMethods.js +1 -1
- package/__commonjs/providers/webviewProvider/webviewProvider.js +1 -1
- package/__commonjs/reduxStore/DappProviderContext.js +1 -1
- package/__commonjs/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/__commonjs/reduxStore/persistConfig.js +1 -1
- package/__commonjs/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/helpers.js +1 -1
- package/__commonjs/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/modalsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/toastsSelectors.js +1 -1
- package/__commonjs/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/__commonjs/reduxStore/slices/accountInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/dappModalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/index.js +1 -1
- package/__commonjs/reduxStore/slices/modalsSlice.js +1 -1
- package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/__commonjs/reduxStore/store.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/transactions/isCrossShardTransaction.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/services/transactions/utils.js +1 -1
- package/__commonjs/types/enums.types.js +1 -1
- package/__commonjs/types/index.js +1 -1
- package/__commonjs/utils/account/getAccount.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/getAddress.js +1 -1
- package/__commonjs/utils/account/getIsProviderEqualTo.js +1 -1
- package/__commonjs/utils/account/getLatestNonce.js +1 -1
- package/__commonjs/utils/account/index.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/account/setNonce.js +1 -1
- package/__commonjs/utils/account/signMessage.js +1 -1
- package/__commonjs/utils/index.js +2 -2
- package/__commonjs/utils/logout.js +1 -1
- package/__commonjs/utils/operations/calculateFeeLimit.js +1 -1
- package/__commonjs/utils/operations/denominate.js +1 -1
- package/__commonjs/utils/operations/formatAmount.js +1 -1
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/operations/nominate.js +1 -1
- package/__commonjs/utils/platform/detectCurrentPlatform.js +1 -1
- package/__commonjs/utils/smartContracts.js +1 -1
- package/__commonjs/utils/toasts/customToastsActions.js +1 -1
- package/__commonjs/utils/toasts/index.js +1 -1
- package/__commonjs/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getTokenFromData.js +1 -1
- package/__commonjs/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecode.js +3 -3
- package/__commonjs/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/__commonjs/utils/transactions/transactionStateByStatus.js +1 -1
- package/__commonjs/utils/validation/maxDecimals.js +1 -1
- package/__commonjs/web/hooks/index.js +1 -1
- package/__commonjs/web/hooks/useIdleTimer.js +1 -1
- package/__commonjs/web/index.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/__commonjs/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/__commonjs/wrappers/DappProvider/index.js +1 -1
- package/__commonjs/wrappers/index.js +1 -1
- package/__mocks__/accountConfig.js +1 -1
- package/__mocks__/index.js +1 -1
- package/__mocks__/server.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/apiCalls/accounts/getAccountFromApi.js +1 -1
- package/apiCalls/accounts/index.js +1 -1
- package/apiCalls/configuration/getApiAddressForChainId.js +1 -1
- package/apiCalls/configuration/getEnvironmentForChainId.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/getServerConfigurationForEnvironment.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/getScamAddressData.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/constants/index.js +1 -1
- package/constants/network.js +1 -1
- package/hooks/account/index.js +1 -1
- package/hooks/account/useGetAccount.js +1 -1
- package/hooks/account/useGetAccountInfo.js +1 -1
- package/hooks/account/useGetAccountProvider.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/useWalletConnectLogin.js +1 -1
- package/hooks/login/useWalletConnectV2Login.js +1 -1
- package/hooks/login/useWebViewLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useGetLastSignedMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignMessageSession.js +1 -1
- package/hooks/signMessage/useGetSignedMessageStatus.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/helpers/getShouldMoveTransactionsToSignedState.js +1 -1
- package/hooks/transactions/helpers/index.js +1 -1
- package/hooks/transactions/helpers/useClearTransactionsToSignWithWarning.js +1 -1
- package/hooks/transactions/helpers/useSetTransactionNonces.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useCancelWalletConnectAction.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/checkBatch.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/getPendingTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/index.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageFailedTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/manageTimedOutTransactions.js +1 -1
- package/hooks/transactions/useCheckTransactionStatus/useCheckTransactionStatus.js +1 -1
- package/hooks/transactions/useGetActiveTransactionsStatus.js +1 -1
- package/hooks/transactions/useGetFailedTransactions.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetSignTransactionsError.js +1 -1
- package/hooks/transactions/useGetSignedTransactions.js +1 -1
- package/hooks/transactions/useGetSuccessfulTransactions.js +1 -1
- package/hooks/transactions/useGetTokenDetails.js +1 -1
- package/hooks/transactions/useGetTransactionDisplayInfo.js +1 -1
- package/hooks/transactions/useParseMultiEsdtTransferData.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignMultipleTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/hooks/transactions/useTrackTransactionStatus.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.js +1 -1
- package/hooks/userInterface/index.js +1 -1
- package/hooks/userInterface/useIsDappModalVisible.js +1 -1
- package/hooks/websocketListener/index.js +1 -1
- package/hooks/websocketListener/useInitializeWebsocketConnection.js +1 -1
- package/hooks/websocketListener/useRegisterWebsocketListener.js +1 -1
- package/models/index.js +1 -1
- package/models/newTransaction.js +1 -1
- package/package.json +2 -2
- package/providers/accountProvider.js +1 -1
- package/providers/index.js +1 -1
- package/providers/utils.js +1 -1
- package/providers/webviewProvider/index.js +1 -1
- package/providers/webviewProvider/requestMethods.js +1 -1
- package/providers/webviewProvider/webviewProvider.js +1 -1
- package/reduxStore/DappProviderContext.js +1 -1
- package/reduxStore/commonActions.js +1 -1
- package/reduxStore/middlewares/loginSessionMiddleware.js +1 -1
- package/reduxStore/persistConfig.js +1 -1
- package/reduxStore/persistedRootReducer.d.ts +1 -1
- package/reduxStore/persistedRootReducer.js +1 -1
- package/reduxStore/reducers.js +1 -1
- package/reduxStore/rootReducer.js +1 -1
- package/reduxStore/selectors/accountInfoSelectors.js +1 -1
- package/reduxStore/selectors/dappModalsSelectors.js +1 -1
- package/reduxStore/selectors/helpers.js +1 -1
- package/reduxStore/selectors/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.js +1 -1
- package/reduxStore/selectors/modalsSelectors.js +1 -1
- package/reduxStore/selectors/networkConfigSelectors.js +1 -1
- package/reduxStore/selectors/signedMessageInfoSelectors.js +1 -1
- package/reduxStore/selectors/toastsSelectors.js +1 -1
- package/reduxStore/selectors/transactionsInfoSelectors.js +1 -1
- package/reduxStore/selectors/transactionsSelectors.js +1 -1
- package/reduxStore/slices/accountInfoSlice.js +1 -1
- package/reduxStore/slices/dappModalsSlice.js +1 -1
- package/reduxStore/slices/index.js +1 -1
- package/reduxStore/slices/loginInfoSlice.js +1 -1
- package/reduxStore/slices/modalsSlice.js +1 -1
- package/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/reduxStore/slices/toastsSlice.js +1 -1
- package/reduxStore/slices/transactionsInfoSlice.js +1 -1
- package/reduxStore/slices/transactionsSlice.js +1 -1
- package/reduxStore/store.js +1 -1
- package/services/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendTransactions.js +1 -1
- package/services/transactions/signTransactions.js +1 -1
- package/services/transactions/transformAndSignTransactions.js +1 -1
- package/services/transactions/utils.js +1 -1
- package/types/enums.types.d.ts +2 -1
- package/types/enums.types.js +1 -1
- package/types/index.js +1 -1
- package/utils/account/getAccount.js +1 -1
- package/utils/account/getAccountBalance.js +1 -1
- package/utils/account/getAccountProviderType.js +1 -1
- package/utils/account/getAccountShard.js +1 -1
- package/utils/account/getAddress.js +1 -1
- package/utils/account/getIsProviderEqualTo.js +1 -1
- package/utils/account/getLatestNonce.js +1 -1
- package/utils/account/getShardOfAddress.js +1 -1
- package/utils/account/index.js +1 -1
- package/utils/account/loginWithExternalProvider.js +1 -1
- package/utils/account/refreshAccount.js +1 -1
- package/utils/account/setNonce.js +1 -1
- package/utils/account/signMessage.js +1 -1
- package/utils/getIsLoggedIn.js +1 -1
- package/utils/index.js +1 -1
- package/utils/logout.js +1 -1
- package/utils/network/getChainID.js +1 -1
- package/utils/network/getEgldLabel.js +1 -1
- package/utils/network/getNetworkConfig.js +1 -1
- package/utils/network/index.js +1 -1
- package/utils/operations/calculateFeeLimit.js +1 -1
- package/utils/operations/denominate.js +1 -1
- package/utils/operations/formatAmount.js +1 -1
- package/utils/operations/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/platform/detectCurrentPlatform.js +1 -1
- package/utils/smartContracts.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/getAllTransactionsLink.js +1 -1
- package/utils/transactions/getAreTransactionsOnSameShard.js +1 -1
- package/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/getTransactionValue.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getEgldValueData.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getTitleText.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromActions.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromDataField.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/getValueFromOperations.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/utils/transactions/getInterpretedTransaction/index.js +1 -1
- package/utils/transactions/getTokenFromData.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/parseMultiEsdtTransferData.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/decodeForDisplay.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getDisplayValueAndValidationWarnings.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/getSmartDecodedParts.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/decodeForDisplay/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getScResultsInitialDecodeMethod.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getShardText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionNftText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionActionTokenText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionLinkWithLabel.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionMessages.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatus.js +1 -1
- package/utils/transactions/transactionInfoHelpers/getTransactionStatusText.js +1 -1
- package/utils/transactions/transactionInfoHelpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/mexUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/index.js +1 -1
- package/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/transactionActionUnwrapper.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecode.js +1 -1
- package/utils/transactions/transactionInfoHelpers/useDataDecodeMethod.js +1 -1
- package/utils/transactions/transactionStateByStatus.js +1 -1
- package/utils/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/web/hooks/index.js +1 -1
- package/web/hooks/useIdleTimer.js +1 -1
- package/web/index.js +1 -1
- package/wrappers/AppInitializer.js +1 -1
- package/wrappers/AuthenticatedRoutesWrapper/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/AxiosInterceptorContext.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptor.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/AxiosInterceptorContextProvider.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/LoginInfoListener.js +1 -1
- package/wrappers/AxiosInterceptorContext/components/index.js +1 -1
- package/wrappers/AxiosInterceptorContext/index.js +1 -1
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-2ZTVJLOJ.js +0 -2
- package/__chunks__/chunk-37KH4Z57.js +0 -2
- package/__chunks__/chunk-3O4GBHR3.js +0 -2
- package/__chunks__/chunk-43CTUMZY.js +0 -2
- package/__chunks__/chunk-4DKSPOQC.js +0 -2
- package/__chunks__/chunk-52LWAKUU.js +0 -2
- package/__chunks__/chunk-66VVLQWA.js +0 -2
- package/__chunks__/chunk-6E7UMUAT.js +0 -2
- package/__chunks__/chunk-7PMD4JRS.js +0 -2
- package/__chunks__/chunk-A274U45O.js +0 -2
- package/__chunks__/chunk-A6R7V6U3.js +0 -2
- package/__chunks__/chunk-AJX7U6NK.js +0 -2
- package/__chunks__/chunk-BBDZAYAU.js +0 -2
- package/__chunks__/chunk-BFSRVA3J.js +0 -2
- package/__chunks__/chunk-BQ4N52MW.js +0 -2
- package/__chunks__/chunk-DKQCBXAE.js +0 -2
- package/__chunks__/chunk-EIE6T4QD.js +0 -2
- package/__chunks__/chunk-F7E7BINB.js +0 -2
- package/__chunks__/chunk-FA2UEZM2.js +0 -2
- package/__chunks__/chunk-FLZGZET2.js +0 -2
- package/__chunks__/chunk-FRNVGEYR.js +0 -2
- package/__chunks__/chunk-GNEQWXJE.js +0 -2
- package/__chunks__/chunk-GZIWNMCW.js +0 -2
- package/__chunks__/chunk-IL5JDJWD.js +0 -2
- package/__chunks__/chunk-IUPXRKIH.js +0 -2
- package/__chunks__/chunk-JDGBXBDB.js +0 -2
- package/__chunks__/chunk-KW6HYOXT.js +0 -2
- package/__chunks__/chunk-LIOPBJAR.js +0 -2
- package/__chunks__/chunk-LLFZUOHV.js +0 -2
- package/__chunks__/chunk-LNMQ6RED.js +0 -2
- package/__chunks__/chunk-MBF7VDMJ.js +0 -2
- package/__chunks__/chunk-MQNEHNFG.js +0 -2
- package/__chunks__/chunk-OEMRN6RA.js +0 -2
- package/__chunks__/chunk-OWV63OFS.js +0 -2
- package/__chunks__/chunk-P7ETYQLM.js +0 -2
- package/__chunks__/chunk-PJU2UKAU.js +0 -2
- package/__chunks__/chunk-QWA762UQ.js +0 -2
- package/__chunks__/chunk-RLBSVH7A.js +0 -2
- package/__chunks__/chunk-UXUA2YCT.js +0 -2
- package/__chunks__/chunk-VLFWEDOB.js +0 -2
- package/__chunks__/chunk-VMEHK3CK.js +0 -2
- package/__chunks__/chunk-VRE5TYWU.js +0 -2
- package/__chunks__/chunk-W5XMZRTH.js +0 -2
- package/__chunks__/chunk-WDVYNUMZ.js +0 -2
- package/__chunks__/chunk-Y4MABHXD.js +0 -2
- package/__chunks__/chunk-YR7YPWTF.js +0 -2
- package/__chunks__/chunk-ZJPGJ7QI.js +0 -2
- package/__chunks__/chunk-ZSB5Q3QB.js +0 -2
package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/getTransactionValue/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Gr=Object.create;var Z=Object.defineProperty,$r=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Wr=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable;var Ce=(t,e,r)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,re=(t,e)=>{for(var r in e||(e={}))Oe.call(e,r)&&Ce(t,r,e[r]);if(Fe)for(var r of Fe(e))jr.call(e,r)&&Ce(t,r,e[r]);return t},te=(t,e)=>$r(t,Hr(e));var qr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Yr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},Ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zr(e))!Oe.call(t,i)&&i!==r&&Z(t,i,{get:()=>e[i],enumerable:!(n=Vr(e,i))||n.enumerable});return t};var P=(t,e,r)=>(r=t!=null?Gr(Wr(t)):{},Ue(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),Kr=t=>Ue(Z({},"__esModule",{value:!0}),t);var Me=ne(ie=>{"use strict";l();ie.byteLength=Xr;ie.toByteArray=Jr;ie.fromByteArray=tt;var N=[],v=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,Be=de.length;M<Be;++M)N[M]=de[M],v[de.charCodeAt(M)]=M;var M,Be;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Pe(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 Xr(t){var e=Pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Qr(t,e,r){return(e+r)*3/4-r}function Jr(t){var e,r=Pe(t),n=r[0],i=r[1],o=new Zr(Qr(t,n,i)),a=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function et(t){return N[t>>18&63]+N[t>>12&63]+N[t>>6&63]+N[t&63]}function rt(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(et(n));return i.join("")}function tt(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(rt(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(N[e>>2]+N[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(N[e>>10]+N[e>>4&63]+N[e<<2&63]+"=")),i.join("")}});var Ge=ne(fe=>{l();fe.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=-7,f=r?i-1:0,y=r?-1:1,x=t[e+f];for(f+=y,o=x&(1<<-h)-1,x>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=y,h-=8);if(o===0)o=1-d;else{if(o===u)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(x?-1:1)*a*Math.pow(2,o-n)};fe.write=function(t,e,r,n,i,o){var a,c,u,d=o*8-i-1,h=(1<<d)-1,f=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,b=n?1:-1,z=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*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?e+=y/u:e+=y*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*u-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+x]=c&255,x+=b,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+x]=a&255,x+=b,a/=256,d-=8);t[r+x-b]|=z*128}});var Je=ne(j=>{"use strict";l();var he=Me(),W=Ge(),$e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=s;j.SlowBuffer=lt;j.INSPECT_MAX_BYTES=50;var oe=2147483647;j.kMaxLength=oe;s.TYPED_ARRAY_SUPPORT=nt();!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 nt(){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 L(t){if(t>oe)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 we(t)}return ze(t,e,r)}s.poolSize=8192;function ze(t,e,r){if(typeof t=="string")return ot(t,e);if(ArrayBuffer.isView(t))return at(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 Te(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=st(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 ze(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function We(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 it(t,e,r){return We(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return it(t,e,r)};function we(t){return We(t),L(t<0?0:be(t)|0)}s.allocUnsafe=function(t){return we(t)};s.allocUnsafeSlow=function(t){return we(t)};function ot(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=je(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ye(t){for(var e=t.length<0?0:be(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function at(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Te(e.buffer,e.byteOffset,e.byteLength)}return ye(t)}function Te(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 st(t){if(s.isBuffer(t)){var e=be(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?L(0):ye(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ye(t.data)}function be(t){if(t>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return t|0}function lt(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 je(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 xe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Qe(t).length;default:if(i)return n?-1:xe(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=je;function ct(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 xt(this,e,r);case"utf8":case"utf-8":return Ye(this,e,r);case"ascii":return yt(this,e,r);case"latin1":case"binary":return Tt(this,e,r);case"base64":return ft(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function G(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)G(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)G(this,r,r+3),G(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)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ye(this,0,e):ct.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=j.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};$e&&(s.prototype[$e]=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,u=Math.min(a,c),d=this.slice(i,o),h=e.slice(r,n),f=0;f<u;++f)if(d[f]!==h[f]){a=d[f],c=h[f];break}return a<c?-1:c<a?1:0};function qe(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,ke(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 u(x,b){return o===1?x[b]:x.readUInt16BE(b*o)}var d;if(i){var h=-1;for(d=r;d<a;d++)if(u(t,d)===u(e,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===c)return h*o}else h!==-1&&(d-=d-h),h=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var f=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){f=!1;break}if(f)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return qe(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return qe(this,e,r,n,!1)};function ut(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(ke(c))return a;t[r+a]=c}return a}function pt(t,e,r,n){return ae(xe(e,t.length-r),t,r,n)}function gt(t,e,r,n){return ae(vt(e),t,r,n)}function mt(t,e,r,n){return ae(Qe(e),t,r,n)}function dt(t,e,r,n){return ae(It(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 ut(this,e,r,n);case"utf8":case"utf-8":return pt(this,e,r,n);case"ascii":case"latin1":case"binary":return gt(this,e,r,n);case"base64":return mt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(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 ft(t,e,r){return e===0&&r===t.length?he.fromByteArray(t):he.fromByteArray(t.slice(e,r))}function Ye(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 u,d,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:u=t[i+1],(u&192)===128&&(f=(o&31)<<6|u&63,f>127&&(a=f));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(f=(o&15)<<12|(u&63)<<6|d&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=t[i+1],d=t[i+2],h=t[i+3],(u&192)===128&&(d&192)===128&&(h&192)===128&&(f=(o&15)<<18|(u&63)<<12|(d&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 ht(n)}var He=4096;function ht(t){var e=t.length;if(e<=He)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=He));return r}function yt(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 Tt(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 xt(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+=Et[t[o]];return i}function wt(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 w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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||w(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||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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||w(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||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),W.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),W.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),W.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),W.read(this,e,!1,52,8)};function k(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;k(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;k(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||k(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||k(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||k(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||k(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||k(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);k(this,e,r,n,o-1,-o)}var a=0,c=1,u=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&u===0&&this[r+a-1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&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);k(this,e,r,n,o-1,-o)}var a=n-1,c=1,u=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&u===0&&this[r+a+1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(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||k(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||k(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||k(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||k(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 Ke(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 Ze(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),W.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ze(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ze(this,e,r,!1,n)};function Xe(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),W.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Xe(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),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%u]}return this};var bt=/[^+/0-9A-Za-z-_]/g;function kt(t){if(t=t.split("=")[0],t=t.trim().replace(bt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function xe(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 vt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function It(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 Qe(t){return he.toByteArray(kt(t))}function ae(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 ke(t){return t!==t}var Et=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 ir=ne((Pt,nr)=>{l();var T=nr.exports={},S,D;function ve(){throw new Error("setTimeout has not been defined")}function Ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ve}catch(t){S=ve}try{typeof clearTimeout=="function"?D=clearTimeout:D=Ie}catch(t){D=Ie}})();function er(t){if(S===setTimeout)return setTimeout(t,0);if((S===ve||!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 At(t){if(D===clearTimeout)return clearTimeout(t);if((D===Ie||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var F=[],q=!1,$,se=-1;function Nt(){!q||!$||(q=!1,$.length?F=$.concat(F):se=-1,F.length&&rr())}function rr(){if(!q){var t=er(Nt);q=!0;for(var e=F.length;e;){for($=F,F=[];++se<e;)$&&$[se].run();se=-1,e=F.length}$=null,q=!1,At(t)}}T.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];F.push(new tr(t,e)),F.length===1&&!q&&er(rr)};function tr(t,e){this.fun=t,this.array=e}tr.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function C(){}T.on=C;T.addListener=C;T.once=C;T.off=C;T.removeListener=C;T.removeAllListeners=C;T.emit=C;T.prependListener=C;T.prependOnceListener=C;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var p,g,Mt,l=qr(()=>{p=P(Je()),g=P(ir()),Mt=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 Lt={};Yr(Lt,{getTransactionValue:()=>Rt});module.exports=Kr(Lt);l();l();l();l();l();l();l();l();l();l();l();l();l();var Ee=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Ee||{});l();l();var Ae={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:or,egldLabel:on}=Ae["devnet"],{chainId:ar,egldLabel:an}=Ae["testnet"],{chainId:sr,egldLabel:sn}=Ae["mainnet"];var ln={["devnet"]:or,["testnet"]:ar,["mainnet"]:sr},cn={[or]:"devnet",[ar]:"testnet",[sr]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var I=18,Ne=4;var le="0";l();var ce=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(ce||{});l();var lr=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(c=>c!=null);return[].concat(...o)}return[]};l();l();l();l();var ur=require("@multiversx/sdk-core"),U=P(require("bignumber.js"));l();var cr=P(require("bignumber.js")),_e=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new cr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function O(t){return{if:function(e){return e?{then:r=>r instanceof Function?O(r(t)):O(r)}:{then:()=>O(t)}},then:e=>e instanceof Function?O(e(t)):O(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function V({input:t,decimals:e=I,digits:r=Ne,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!_e(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),O(c).then(()=>ur.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let d=new U.default(u);if(d.isZero())return le;let h=d.toString(10),[f,y]=h.split("."),x=new U.default(y||0),b=O(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(x.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&x.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),me=d.toFormat(b);return O(h).if(o).then(me).if(Boolean(z)).then(Q=>{let K=new U.default(f).isZero(),[A,J]=Q.split("."),ee=new Array(r-1).fill(0),Pr=[...ee,0].join(""),Mr=[...ee,1].join("");return K?i?`<${A}.${Mr}`:n?`${A}.${J}`:A:`${A}.${Pr}`}).if(Boolean(!z&&y)).then(Q=>{let[K]=Q.split("."),A=y.substring(0,b);if(n){let J=r-A.length;if(J>0){let ee=Array(J).fill(0).join("");return A=`${A}${ee}`,`${K}.${A}`}return Q}return A?`${K}.${A}`:K}).valueOf()}).if(a).then(u=>`-${u}`).valueOf()}l();l();var _t=require("@multiversx/sdk-core");l();var X=require("@multiversx/sdk-core"),Dt=require("@multiversx/sdk-network-providers");l();l();var St=P(require("bignumber.js"));l();l();var Se={isEsdt:!1,isNft:!1,isEgld:!1};function pr(t){let e=t==null?void 0:t.split("-").length;return e===2?te(re({},Se),{isEsdt:!0}):e===3?te(re({},Se),{isNft:!0}):te(re({},Se),{isEgld:!0})}l();l();l();l();l();var B="accounts",H="transactions";var Y="tokens",gr="blocks",mr="miniblocks",dr="nodes",fr="identities",hr="collections",De="nfts",Re="providers",Le="sc-results",yr="contracts",Tr="logs",xr="code",wr="locked-accounts",br="roles";var ue={shard:t=>`/${gr}?shard=${t}`,receiverShard:t=>`/${H}?receivershard=${t}`,senderShard:t=>`/${H}?sendershard=${t}`,transactionDetails:t=>`/${H}/${t}`,transactionDetailsScResults:t=>`/${H}/${t}/${Le}`,transactionDetailsLogs:t=>`/${H}/${t}/${Tr}`,nodeDetails:t=>`/${dr}/${t}`,accountDetails:t=>`/${B}/${t}`,accountDetailsContractCode:t=>`/${B}/${t}/${xr}`,accountDetailsTokens:t=>`/${B}/${t}/${Y}`,accountDetailsNfts:t=>`/${B}/${t}/${De}`,accountDetailsScResults:t=>`/${B}/${t}/${Le}`,accountDetailsContracts:t=>`/${B}/${t}/${yr}`,identityDetails:t=>`/${fr}/${t}`,tokenDetails:t=>`/${Y}/${t}`,tokenDetailsAccounts:t=>`/${Y}/${t}/${B}`,tokenDetailsLockedAccounts:t=>`/${Y}/${t}/${wr}`,tokenDetailsRoles:t=>`/${Y}/${t}/${br}`,collectionDetails:t=>`/${hr}/${t}`,nftDetails:t=>`/${De}/${t}`,providerDetails:t=>`/${Re}/${t}`,providerDetailsTransactions:t=>`/${Re}/${t}/${H}`,miniblockDetails:t=>`/${mr}/${t}`};function pe({token:t,noValue:e,showLastNonZeroDecimal:r}){var d;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?V({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=ue.nftDetails(String(t.identifier)),u=t.ticker===t.collection&&(d=t.identifier)!=null?d:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:u,token:t,noValue:e,showLastNonZeroDecimal:r}}l();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?V({input:t.value,decimals:(c=t.decimals)!=null?c:I,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=ue.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}l();var kr=["reDelegateRewards","claimRewards","unBond"],vr=["wrapEgld","unwrapEgld"],Ir=["unStake"],Er=["unDelegate"];l();l();var Ar=t=>{let e=t.map(n=>{let{isNft:i}=pr(n.type);if(i){let{badgeText:h,tokenFormattedAmount:f,tokenLinkText:y}=pe({token:n});return`${h!=null?`(${h}) `:""}${f} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=ge({token:n}),u=c.collection?c.identifier:c.token;return`${o} ${a} (${u})`});return decodeURI(e.join("%0A"))};l();var E=t=>({egldValueData:{value:t,formattedValue:V({input:t}),decimals:I}});l();var Sr=P(require("bignumber.js"));l();l();l();l();function Nr(t){return atob(t)}var _r=!1;function Dr(t){var e;try{let n=Nr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Sr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){_r||(console.error(`Unable to extract value for txHash: ${t.txHash}`),_r=!0)}return E(t.value)}l();l();var Rr=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Ee).includes(i.type)))!=null?n:[]};var Lr=!1,Fr=t=>{Lr||(console.error(`Operations field missing for txHash: ${t}.
|
|
1
|
+
"use strict";var Gr=Object.create;var Z=Object.defineProperty,$r=Object.defineProperties,Vr=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,jr=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Ce=(t,e,r)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,re=(t,e)=>{for(var r in e||(e={}))Oe.call(e,r)&&Ce(t,r,e[r]);if(Fe)for(var r of Fe(e))qr.call(e,r)&&Ce(t,r,e[r]);return t},te=(t,e)=>$r(t,Hr(e));var Wr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Yr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},Ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zr(e))!Oe.call(t,i)&&i!==r&&Z(t,i,{get:()=>e[i],enumerable:!(n=Vr(e,i))||n.enumerable});return t};var P=(t,e,r)=>(r=t!=null?Gr(jr(t)):{},Ue(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),Kr=t=>Ue(Z({},"__esModule",{value:!0}),t);var Me=ne(ie=>{"use strict";l();ie.byteLength=Xr;ie.toByteArray=Jr;ie.fromByteArray=tt;var N=[],v=[],Zr=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,Be=de.length;M<Be;++M)N[M]=de[M],v[de.charCodeAt(M)]=M;var M,Be;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Pe(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 Xr(t){var e=Pe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Qr(t,e,r){return(e+r)*3/4-r}function Jr(t){var e,r=Pe(t),n=r[0],i=r[1],o=new Zr(Qr(t,n,i)),a=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=v[t.charCodeAt(u)]<<18|v[t.charCodeAt(u+1)]<<12|v[t.charCodeAt(u+2)]<<6|v[t.charCodeAt(u+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(u)]<<2|v[t.charCodeAt(u+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(u)]<<10|v[t.charCodeAt(u+1)]<<4|v[t.charCodeAt(u+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function et(t){return N[t>>18&63]+N[t>>12&63]+N[t>>6&63]+N[t&63]}function rt(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(et(n));return i.join("")}function tt(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(rt(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(N[e>>2]+N[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(N[e>>10]+N[e>>4&63]+N[e<<2&63]+"=")),i.join("")}});var Ge=ne(fe=>{l();fe.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=-7,f=r?i-1:0,y=r?-1:1,x=t[e+f];for(f+=y,o=x&(1<<-h)-1,x>>=-h,h+=c;h>0;o=o*256+t[e+f],f+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+f],f+=y,h-=8);if(o===0)o=1-d;else{if(o===u)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(x?-1:1)*a*Math.pow(2,o-n)};fe.write=function(t,e,r,n,i,o){var a,c,u,d=o*8-i-1,h=(1<<d)-1,f=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,b=n?1:-1,z=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*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?e+=y/u:e+=y*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=h?(c=0,a=h):a+f>=1?(c=(e*u-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+x]=c&255,x+=b,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+x]=a&255,x+=b,a/=256,d-=8);t[r+x-b]|=z*128}});var Je=ne(q=>{"use strict";l();var he=Me(),j=Ge(),$e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=lt;q.INSPECT_MAX_BYTES=50;var oe=2147483647;q.kMaxLength=oe;s.TYPED_ARRAY_SUPPORT=nt();!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 nt(){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 L(t){if(t>oe)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 we(t)}return ze(t,e,r)}s.poolSize=8192;function ze(t,e,r){if(typeof t=="string")return ot(t,e);if(ArrayBuffer.isView(t))return at(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 Te(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=st(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 ze(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function je(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 it(t,e,r){return je(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}s.alloc=function(t,e,r){return it(t,e,r)};function we(t){return je(t),L(t<0?0:be(t)|0)}s.allocUnsafe=function(t){return we(t)};s.allocUnsafeSlow=function(t){return we(t)};function ot(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=qe(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ye(t){for(var e=t.length<0?0:be(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function at(t){if(_(t,Uint8Array)){var e=new Uint8Array(t);return Te(e.buffer,e.byteOffset,e.byteLength)}return ye(t)}function Te(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 st(t){if(s.isBuffer(t)){var e=be(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?L(0):ye(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ye(t.data)}function be(t){if(t>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return t|0}function lt(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 qe(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 xe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Qe(t).length;default:if(i)return n?-1:xe(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=qe;function ct(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 xt(this,e,r);case"utf8":case"utf-8":return Ye(this,e,r);case"ascii":return yt(this,e,r);case"latin1":case"binary":return Tt(this,e,r);case"base64":return ft(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function G(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)G(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)G(this,r,r+3),G(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)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ye(this,0,e):ct.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=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};$e&&(s.prototype[$e]=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,u=Math.min(a,c),d=this.slice(i,o),h=e.slice(r,n),f=0;f<u;++f)if(d[f]!==h[f]){a=d[f],c=h[f];break}return a<c?-1:c<a?1:0};function We(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,ke(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 u(x,b){return o===1?x[b]:x.readUInt16BE(b*o)}var d;if(i){var h=-1;for(d=r;d<a;d++)if(u(t,d)===u(e,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===c)return h*o}else h!==-1&&(d-=d-h),h=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var f=!0,y=0;y<c;y++)if(u(t,d+y)!==u(e,y)){f=!1;break}if(f)return d}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return We(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return We(this,e,r,n,!1)};function ut(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(ke(c))return a;t[r+a]=c}return a}function pt(t,e,r,n){return ae(xe(e,t.length-r),t,r,n)}function gt(t,e,r,n){return ae(vt(e),t,r,n)}function mt(t,e,r,n){return ae(Qe(e),t,r,n)}function dt(t,e,r,n){return ae(It(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 ut(this,e,r,n);case"utf8":case"utf-8":return pt(this,e,r,n);case"ascii":case"latin1":case"binary":return gt(this,e,r,n);case"base64":return mt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(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 ft(t,e,r){return e===0&&r===t.length?he.fromByteArray(t):he.fromByteArray(t.slice(e,r))}function Ye(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 u,d,h,f;switch(c){case 1:o<128&&(a=o);break;case 2:u=t[i+1],(u&192)===128&&(f=(o&31)<<6|u&63,f>127&&(a=f));break;case 3:u=t[i+1],d=t[i+2],(u&192)===128&&(d&192)===128&&(f=(o&15)<<12|(u&63)<<6|d&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:u=t[i+1],d=t[i+2],h=t[i+3],(u&192)===128&&(d&192)===128&&(h&192)===128&&(f=(o&15)<<18|(u&63)<<12|(d&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 ht(n)}var He=4096;function ht(t){var e=t.length;if(e<=He)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=He));return r}function yt(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 Tt(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 xt(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+=Et[t[o]];return i}function wt(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 w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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||w(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||w(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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||w(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||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!1,52,8)};function k(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;k(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;k(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||k(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||k(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||k(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||k(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||k(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);k(this,e,r,n,o-1,-o)}var a=0,c=1,u=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&u===0&&this[r+a-1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&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);k(this,e,r,n,o-1,-o)}var a=n-1,c=1,u=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&u===0&&this[r+a+1]!==0&&(u=1),this[r+a]=(e/c>>0)-u&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||k(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||k(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||k(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||k(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||k(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 Ke(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 Ze(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,4,34028234663852886e22,-34028234663852886e22),j.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ze(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ze(this,e,r,!1,n)};function Xe(t,e,r,n,i){return e=+e,r=r>>>0,i||Ke(t,e,r,8,17976931348623157e292,-17976931348623157e292),j.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Xe(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Xe(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),u=c.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%u]}return this};var bt=/[^+/0-9A-Za-z-_]/g;function kt(t){if(t=t.split("=")[0],t=t.trim().replace(bt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function xe(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 vt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function It(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 Qe(t){return he.toByteArray(kt(t))}function ae(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 ke(t){return t!==t}var Et=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 ir=ne((Pt,nr)=>{l();var T=nr.exports={},S,D;function ve(){throw new Error("setTimeout has not been defined")}function Ie(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=ve}catch(t){S=ve}try{typeof clearTimeout=="function"?D=clearTimeout:D=Ie}catch(t){D=Ie}})();function er(t){if(S===setTimeout)return setTimeout(t,0);if((S===ve||!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 At(t){if(D===clearTimeout)return clearTimeout(t);if((D===Ie||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var F=[],W=!1,$,se=-1;function Nt(){!W||!$||(W=!1,$.length?F=$.concat(F):se=-1,F.length&&rr())}function rr(){if(!W){var t=er(Nt);W=!0;for(var e=F.length;e;){for($=F,F=[];++se<e;)$&&$[se].run();se=-1,e=F.length}$=null,W=!1,At(t)}}T.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];F.push(new tr(t,e)),F.length===1&&!W&&er(rr)};function tr(t,e){this.fun=t,this.array=e}tr.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function C(){}T.on=C;T.addListener=C;T.once=C;T.off=C;T.removeListener=C;T.removeAllListeners=C;T.emit=C;T.prependListener=C;T.prependOnceListener=C;T.listeners=function(t){return[]};T.binding=function(t){throw new Error("process.binding is not supported")};T.cwd=function(){return"/"};T.chdir=function(t){throw new Error("process.chdir is not supported")};T.umask=function(){return 0}});var p,g,Mt,l=Wr(()=>{p=P(Je()),g=P(ir()),Mt=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 Lt={};Yr(Lt,{getTransactionValue:()=>Rt});module.exports=Kr(Lt);l();l();l();l();l();l();l();l();l();l();l();l();l();var Ee=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Ee||{});l();l();var Ae={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:or,egldLabel:on}=Ae["devnet"],{chainId:ar,egldLabel:an}=Ae["testnet"],{chainId:sr,egldLabel:sn}=Ae["mainnet"];var ln={["devnet"]:or,["testnet"]:ar,["mainnet"]:sr},cn={[or]:"devnet",[ar]:"testnet",[sr]:"mainnet"};l();l();l();l();var R=require("@multiversx/sdk-web-wallet-provider");var I=18,Ne=4;var le="0";l();var ce=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(ce||{});l();var lr=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(c=>c!=null);return[].concat(...o)}return[]};l();l();l();l();var ur=require("@multiversx/sdk-core"),U=P(require("bignumber.js"));l();var cr=P(require("bignumber.js")),_e=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new cr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function O(t){return{if:function(e){return e?{then:r=>r instanceof Function?O(r(t)):O(r)}:{then:()=>O(t)}},then:e=>e instanceof Function?O(e(t)):O(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function V({input:t,decimals:e=I,digits:r=Ne,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!_e(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),O(c).then(()=>ur.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(u=>{let d=new U.default(u);if(d.isZero())return le;let h=d.toString(10),[f,y]=h.split("."),x=new U.default(y||0),b=O(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(x.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),z=y&&r>=1&&r<=y.length&&x.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),me=d.toFormat(b);return O(h).if(o).then(me).if(Boolean(z)).then(Q=>{let K=new U.default(f).isZero(),[A,J]=Q.split("."),ee=new Array(r-1).fill(0),Pr=[...ee,0].join(""),Mr=[...ee,1].join("");return K?i?`<${A}.${Mr}`:n?`${A}.${J}`:A:`${A}.${Pr}`}).if(Boolean(!z&&y)).then(Q=>{let[K]=Q.split("."),A=y.substring(0,b);if(n){let J=r-A.length;if(J>0){let ee=Array(J).fill(0).join("");return A=`${A}${ee}`,`${K}.${A}`}return Q}return A?`${K}.${A}`:K}).valueOf()}).if(a).then(u=>`-${u}`).valueOf()}l();l();var _t=require("@multiversx/sdk-core");l();var X=require("@multiversx/sdk-core"),Dt=require("@multiversx/sdk-network-providers");l();l();var St=P(require("bignumber.js"));l();l();var Se={isEsdt:!1,isNft:!1,isEgld:!1};function pr(t){let e=t==null?void 0:t.split("-").length;return e===2?te(re({},Se),{isEsdt:!0}):e===3?te(re({},Se),{isNft:!0}):te(re({},Se),{isEgld:!0})}l();l();l();l();l();var B="accounts",H="transactions";var Y="tokens",gr="blocks",mr="miniblocks",dr="nodes",fr="identities",hr="collections",De="nfts",Re="providers",Le="sc-results",yr="contracts",Tr="logs",xr="code",wr="locked-accounts",br="roles";var ue={shard:t=>`/${gr}?shard=${t}`,receiverShard:t=>`/${H}?receivershard=${t}`,senderShard:t=>`/${H}?sendershard=${t}`,transactionDetails:t=>`/${H}/${t}`,transactionDetailsScResults:t=>`/${H}/${t}/${Le}`,transactionDetailsLogs:t=>`/${H}/${t}/${Tr}`,nodeDetails:t=>`/${dr}/${t}`,accountDetails:t=>`/${B}/${t}`,accountDetailsContractCode:t=>`/${B}/${t}/${xr}`,accountDetailsTokens:t=>`/${B}/${t}/${Y}`,accountDetailsNfts:t=>`/${B}/${t}/${De}`,accountDetailsScResults:t=>`/${B}/${t}/${Le}`,accountDetailsContracts:t=>`/${B}/${t}/${yr}`,identityDetails:t=>`/${fr}/${t}`,tokenDetails:t=>`/${Y}/${t}`,tokenDetailsAccounts:t=>`/${Y}/${t}/${B}`,tokenDetailsLockedAccounts:t=>`/${Y}/${t}/${wr}`,tokenDetailsRoles:t=>`/${Y}/${t}/${br}`,collectionDetails:t=>`/${hr}/${t}`,nftDetails:t=>`/${De}/${t}`,providerDetails:t=>`/${Re}/${t}`,providerDetailsTransactions:t=>`/${Re}/${t}/${H}`,miniblockDetails:t=>`/${mr}/${t}`};function pe({token:t,noValue:e,showLastNonZeroDecimal:r}){var d;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?V({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=ue.nftDetails(String(t.identifier)),u=t.ticker===t.collection&&(d=t.identifier)!=null?d:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:u,token:t,noValue:e,showLastNonZeroDecimal:r}}l();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?V({input:t.value,decimals:(c=t.decimals)!=null?c:I,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=ue.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}l();var kr=["reDelegateRewards","claimRewards","unBond"],vr=["wrapEgld","unwrapEgld"],Ir=["unStake"],Er=["unDelegate"];l();l();var Ar=t=>{let e=t.map(n=>{let{isNft:i}=pr(n.type);if(i){let{badgeText:h,tokenFormattedAmount:f,tokenLinkText:y}=pe({token:n});return`${h!=null?`(${h}) `:""}${f} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=ge({token:n}),u=c.collection?c.identifier:c.token;return`${o} ${a} (${u})`});return decodeURI(e.join("%0A"))};l();var E=t=>({egldValueData:{value:t,formattedValue:V({input:t}),decimals:I}});l();var Sr=P(require("bignumber.js"));l();l();l();l();function Nr(t){return atob(t)}var _r=!1;function Dr(t){var e;try{let n=Nr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Sr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){_r||(console.error(`Unable to extract value for txHash: ${t.txHash}`),_r=!0)}return E(t.value)}l();l();var Rr=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Ee).includes(i.type)))!=null?n:[]};var Lr=!1,Fr=t=>{Lr||(console.error(`Operations field missing for txHash: ${t}.
|
|
2
2
|
Unable to compute value field.`),Lr=!0)};function Cr(t){try{if(t.operations){let[e]=Rr(t);return E(e==null?void 0:e.value)}else Fr(t.txHash)}catch(e){Fr(t.txHash)}return E(t.value)}l();var Ur=P(require("bignumber.js"));var Or=!1;function Br(t){var r,n,i,o,a;return new Ur.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(Or||(console.error(`Unable to interpret ${(a=t.action)==null?void 0:a.name} data for txHash: ${t.txHash}`),Or=!0),E(t.value)):E((o=(i=t.action)==null?void 0:i.arguments)==null?void 0:o.value)}var Rt=({transaction:t,hideMultipleBadge:e})=>{var r;if(t.action){if(vr.includes(t.action.name))return E(t.value);if(Ir.includes(t.action.name))return Dr(t);if(kr.includes(t.action.name))return Cr(t);if(Er.includes(t.action.name))return Br(t);let n=lr(t);if(n.length){let i=n[0],o=Object.values(ce).includes(i.type),c=!e&&n.length>1?Ar(n):"";if(o){let{badgeText:x,tokenFormattedAmount:b,tokenExplorerLink:z,tokenLinkText:me}=pe({token:i});return{nftValueData:{badgeText:x,tokenFormattedAmount:b,tokenExplorerLink:z,tokenLinkText:me,transactionTokens:n,token:i,value:b!=null?i.value:null,decimals:b!=null?i.decimals:null,titleText:c}}}let{tokenExplorerLink:u,showFormattedAmount:d,tokenFormattedAmount:h,tokenLinkText:f,token:y}=ge({token:i});return{tokenValueData:{tokenExplorerLink:u,showFormattedAmount:d,tokenFormattedAmount:h,tokenLinkText:f,transactionTokens:n,token:y,value:i.value,decimals:(r=i.decimals)!=null?r:I,titleText:c}}}}return E(t.value)};0&&(module.exports={getTransactionValue});
|
|
3
3
|
/*!
|
|
4
4
|
* The buffer module from node.js, for the browser.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var zr=Object.create;var Q=Object.defineProperty,jr=Object.defineProperties,qr=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Kr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Ue=(t,e,r)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ie=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Ue(t,r,e[r]);if(Oe)for(var r of Oe(e))Xr.call(e,r)&&Ue(t,r,e[r]);return t},oe=(t,e)=>jr(t,Yr(e));var Qr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ae=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Jr=(t,e)=>{for(var r in e)Q(t,r,{get:e[r],enumerable:!0})},Pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Zr(e))!Be.call(t,i)&&i!==r&&Q(t,i,{get:()=>e[i],enumerable:!(n=qr(e,i))||n.enumerable});return t};var P=(t,e,r)=>(r=t!=null?zr(Kr(t)):{},Pe(e||!t||!t.__esModule?Q(r,"default",{value:t,enumerable:!0}):r,t)),et=t=>Pe(Q({},"__esModule",{value:!0}),t);var Ge=ae(se=>{"use strict";s();se.byteLength=tt;se.toByteArray=it;se.fromByteArray=st;var S=[],I=[],rt=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(V=0,Me=de.length;V<Me;++V)S[V]=de[V],I[de.charCodeAt(V)]=V;var V,Me;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function $e(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 tt(t){var e=$e(t),r=e[0],n=e[1];return(r+n)*3/4-n}function nt(t,e,r){return(e+r)*3/4-r}function it(t){var e,r=$e(t),n=r[0],i=r[1],o=new rt(nt(t,n,i)),a=0,c=i>0?n-4:n,m;for(m=0;m<c;m+=4)e=I[t.charCodeAt(m)]<<18|I[t.charCodeAt(m+1)]<<12|I[t.charCodeAt(m+2)]<<6|I[t.charCodeAt(m+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(m)]<<2|I[t.charCodeAt(m+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(m)]<<10|I[t.charCodeAt(m+1)]<<4|I[t.charCodeAt(m+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function ot(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function at(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(ot(n));return i.join("")}function st(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(at(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(S[e>>2]+S[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(S[e>>10]+S[e>>4&63]+S[e<<2&63]+"=")),i.join("")}});var Ve=ae(he=>{s();he.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,m=(1<<c)-1,f=m>>1,h=-7,d=r?i-1:0,y=r?-1:1,T=t[e+d];for(d+=y,o=T&(1<<-h)-1,T>>=-h,h+=c;h>0;o=o*256+t[e+d],d+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+d],d+=y,h-=8);if(o===0)o=1-f;else{if(o===m)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)};he.write=function(t,e,r,n,i,o){var a,c,m,f=o*8-i-1,h=(1<<f)-1,d=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,b=n?1:-1,B=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*(m=Math.pow(2,-a))<1&&(a--,m*=2),a+d>=1?e+=y/m:e+=y*Math.pow(2,1-d),e*m>=2&&(a++,m/=2),a+d>=h?(c=0,a=h):a+d>=1?(c=(e*m-1)*Math.pow(2,i),a=a+d):(c=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=b,c/=256,i-=8);for(a=a<<i|c,f+=i;f>0;t[r+T]=a&255,T+=b,a/=256,f-=8);t[r+T-b]|=B*128}});var rr=ae(q=>{"use strict";s();var ye=Ge(),j=Ve(),He=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=l;q.SlowBuffer=gt;q.INSPECT_MAX_BYTES=50;var le=2147483647;q.kMaxLength=le;l.TYPED_ARRAY_SUPPORT=lt();!l.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 lt(){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(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function L(t){if(t>le)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(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 be(t)}return je(t,e,r)}l.poolSize=8192;function je(t,e,r){if(typeof t=="string")return ut(t,e);if(ArrayBuffer.isView(t))return pt(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(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return xe(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 l.from(n,e,r);var i=mt(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.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)}l.from=function(t,e,r){return je(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function qe(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 ct(t,e,r){return qe(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}l.alloc=function(t,e,r){return ct(t,e,r)};function be(t){return qe(t),L(t<0?0:ve(t)|0)}l.allocUnsafe=function(t){return be(t)};l.allocUnsafeSlow=function(t){return be(t)};function ut(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ye(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Te(t){for(var e=t.length<0?0:ve(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function pt(t){if(N(t,Uint8Array)){var e=new Uint8Array(t);return xe(e.buffer,e.byteOffset,e.byteLength)}return Te(t)}function xe(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,l.prototype),n}function mt(t){if(l.isBuffer(t)){var e=ve(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?L(0):Te(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Te(t.data)}function ve(t){if(t>=le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+le.toString(16)+" bytes");return t|0}function gt(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),N(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.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};l.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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(N(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Ye(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(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 we(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return er(t).length;default:if(i)return n?-1:we(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ye;function ft(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 It(this,e,r);case"utf8":case"utf-8":return Ke(this,e,r);case"ascii":return vt(this,e,r);case"latin1":case"binary":return kt(this,e,r);case"base64":return wt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function H(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.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)H(this,r,r+1);return this};l.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)H(this,r,r+3),H(this,r+1,r+2);return this};l.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)H(this,r,r+7),H(this,r+1,r+6),H(this,r+2,r+5),H(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ke(this,0,e):ft.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};He&&(l.prototype[He]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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,m=Math.min(a,c),f=this.slice(i,o),h=e.slice(r,n),d=0;d<m;++d)if(f[d]!==h[d]){a=f[d],c=h[d];break}return a<c?-1:c<a?1:0};function Ze(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,ke(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=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:We(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):We(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function We(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 m(T,b){return o===1?T[b]:T.readUInt16BE(b*o)}var f;if(i){var h=-1;for(f=r;f<a;f++)if(m(t,f)===m(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===c)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+c>a&&(r=a-c),f=r;f>=0;f--){for(var d=!0,y=0;y<c;y++)if(m(t,f+y)!==m(e,y)){d=!1;break}if(d)return f}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ze(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ze(this,e,r,n,!1)};function dt(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(ke(c))return a;t[r+a]=c}return a}function ht(t,e,r,n){return ce(we(e,t.length-r),t,r,n)}function yt(t,e,r,n){return ce(Nt(e),t,r,n)}function Tt(t,e,r,n){return ce(er(e),t,r,n)}function xt(t,e,r,n){return ce(_t(e,t.length-r),t,r,n)}l.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 dt(this,e,r,n);case"utf8":case"utf-8":return ht(this,e,r,n);case"ascii":case"latin1":case"binary":return yt(this,e,r,n);case"base64":return Tt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(t,e,r){return e===0&&r===t.length?ye.fromByteArray(t):ye.fromByteArray(t.slice(e,r))}function Ke(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 m,f,h,d;switch(c){case 1:o<128&&(a=o);break;case 2:m=t[i+1],(m&192)===128&&(d=(o&31)<<6|m&63,d>127&&(a=d));break;case 3:m=t[i+1],f=t[i+2],(m&192)===128&&(f&192)===128&&(d=(o&15)<<12|(m&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:m=t[i+1],f=t[i+2],h=t[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(m&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(a=d))}}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 bt(n)}var ze=4096;function bt(t){var e=t.length;if(e<=ze)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=ze));return r}function vt(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 kt(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 It(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+=Dt[t[o]];return i}function Et(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}l.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,l.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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};l.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!1,52,8)};function v(t,e,r,n,i,o){if(!l.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")}l.prototype.writeUintLE=l.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;v(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};l.prototype.writeUintBE=l.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;v(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};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=0,c=1,m=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&m===0&&this[r+a-1]!==0&&(m=1),this[r+a]=(e/c>>0)-m&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=n-1,c=1,m=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&m===0&&this[r+a+1]!==0&&(m=1),this[r+a]=(e/c>>0)-m&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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 Xe(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 Qe(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),j.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return Qe(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return Qe(this,e,r,!1,n)};function Je(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),j.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return Je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return Je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.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};l.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"&&!l.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=l.isBuffer(e)?e:l.from(e,i),m=c.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%m]}return this};var At=/[^+/0-9A-Za-z-_]/g;function St(t){if(t=t.split("=")[0],t=t.trim().replace(At,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function we(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 Nt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _t(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 er(t){return ye.toByteArray(St(t))}function ce(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 N(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ke(t){return t!==t}var Dt=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 ar=ae((Qt,or)=>{s();var x=or.exports={},_,D;function Ie(){throw new Error("setTimeout has not been defined")}function Ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=Ie}catch(t){_=Ie}try{typeof clearTimeout=="function"?D=clearTimeout:D=Ee}catch(t){D=Ee}})();function tr(t){if(_===setTimeout)return setTimeout(t,0);if((_===Ie||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Rt(t){if(D===clearTimeout)return clearTimeout(t);if((D===Ee||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var F=[],Y=!1,W,ue=-1;function Lt(){!Y||!W||(Y=!1,W.length?F=W.concat(F):ue=-1,F.length&&nr())}function nr(){if(!Y){var t=tr(Lt);Y=!0;for(var e=F.length;e;){for(W=F,F=[];++ue<e;)W&&W[ue].run();ue=-1,e=F.length}W=null,Y=!1,Rt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new ir(t,e)),F.length===1&&!Y&&tr(nr)};function ir(t,e){this.fun=t,this.array=e}ir.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;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 u,p,Jt,s=Qr(()=>{u=P(rr()),p=P(ar()),Jt=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 qt={};Jr(qt,{explorerUrlBuilder:()=>J,getExplorerLink:()=>Bt,getHumanReadableTimeFormat:()=>Mt,getOperationsMessages:()=>$t,getReceiptMessage:()=>Vt,getTransactionMethod:()=>Ot,getTransactionReceiver:()=>De,getTransactionReceiverAssets:()=>Ft,getTransactionTokens:()=>_e,getTransactionTransferType:()=>Pt,getTransactionValue:()=>jt});module.exports=et(qt);s();s();s();var M="accounts",z="transactions";var Z="tokens",sr="blocks",lr="miniblocks",cr="nodes",ur="identities",pr="collections",Ae="nfts",Se="providers",Ne="sc-results",mr="contracts",gr="logs",fr="code",dr="locked-accounts",hr="roles";var J={shard:t=>`/${sr}?shard=${t}`,receiverShard:t=>`/${z}?receivershard=${t}`,senderShard:t=>`/${z}?sendershard=${t}`,transactionDetails:t=>`/${z}/${t}`,transactionDetailsScResults:t=>`/${z}/${t}/${Ne}`,transactionDetailsLogs:t=>`/${z}/${t}/${gr}`,nodeDetails:t=>`/${cr}/${t}`,accountDetails:t=>`/${M}/${t}`,accountDetailsContractCode:t=>`/${M}/${t}/${fr}`,accountDetailsTokens:t=>`/${M}/${t}/${Z}`,accountDetailsNfts:t=>`/${M}/${t}/${Ae}`,accountDetailsScResults:t=>`/${M}/${t}/${Ne}`,accountDetailsContracts:t=>`/${M}/${t}/${mr}`,identityDetails:t=>`/${ur}/${t}`,tokenDetails:t=>`/${Z}/${t}`,tokenDetailsAccounts:t=>`/${Z}/${t}/${M}`,tokenDetailsLockedAccounts:t=>`/${Z}/${t}/${dr}`,tokenDetailsRoles:t=>`/${Z}/${t}/${hr}`,collectionDetails:t=>`/${pr}/${t}`,nftDetails:t=>`/${Ae}/${t}`,providerDetails:t=>`/${Se}/${t}`,providerDetailsTransactions:t=>`/${Se}/${t}/${z}`,miniblockDetails:t=>`/${lr}/${t}`};s();var _e=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(c=>c!=null);return[].concat(...o)}return[]};s();s();function De(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function Ft(t){let e=De(t);return t.receiver===e?t.receiverAssets:void 0}s();s();var Re=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Re||{});var Ot=t=>{var n,i,o,a,c,m;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((a=t.action)==null?void 0:a.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(m=(c=t.action)==null?void 0:c.arguments)!=null&&m.functionName&&(e=t.action.arguments.functionName)),e};s();var yr=!1;function Ut(t){yr||(console.error(t),yr=!0)}function Bt({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Ut(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}s();function Pt(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,a=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case a:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}s();function Mt({value:t,noSeconds:e,utc:r,meridiem:n=!0}){let i=new Date(t*1e3),[,o]=i.toLocaleString("en-US",{hour:"numeric",hour12:n}).split(" "),a=i.toUTCString(),[,c]=a.split(","),[m,f,h,d]=c.trim().split(" "),[y,T,b]=d.split(":"),B=`:${b}`,K=`${y}:${T}${e?"":B}`,G=`${n?o:""} ${r?"UTC":""}`.trim();return`${f} ${m}, ${h} ${K} ${G}`.trim()}s();function $t(t){var e,r;return(r=(e=t==null?void 0:t.operations)==null?void 0:e.map(n=>n.message).filter(n=>Boolean(n)))!=null?r:[]}s();var Ir=P(require("bignumber.js"));s();s();s();s();s();s();s();s();s();s();s();s();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",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Tr,egldLabel:Pn}=Le["devnet"],{chainId:xr,egldLabel:Mn}=Le["testnet"],{chainId:wr,egldLabel:$n}=Le["mainnet"];var Gn={["devnet"]:Tr,["testnet"]:xr,["mainnet"]:wr},Vn={[Tr]:"devnet",[xr]:"testnet",[wr]:"mainnet"};s();s();s();s();var R=require("@multiversx/sdk-web-wallet-provider");var k=18,ee=4;var br="refundedGas";var pe="0";s();var kr=require("@multiversx/sdk-core"),$=P(require("bignumber.js"));s();var vr=P(require("bignumber.js")),Fe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new vr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function O(t){return{if:function(e){return e?{then:r=>r instanceof Function?O(r(t)):O(r)}:{then:()=>O(t)}},then:e=>e instanceof Function?O(e(t)):O(e),valueOf:function(){return t}}}$.default.config({ROUNDING_MODE:$.default.ROUND_FLOOR});function U({input:t,decimals:e=k,digits:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Fe(t,!1))throw new Error("Invalid input");let a=new $.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),O(c).then(()=>kr.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(m=>{let f=new $.default(m);if(f.isZero())return pe;let h=f.toString(10),[d,y]=h.split("."),T=new $.default(y||0),b=O(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),B=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new $.default(y.substring(0,r)).isZero(),K=f.toFormat(b);return O(h).if(o).then(K).if(Boolean(B)).then(X=>{let G=new $.default(d).isZero(),[A,te]=X.split("."),ne=new Array(r-1).fill(0),Hr=[...ne,0].join(""),Wr=[...ne,1].join("");return G?i?`<${A}.${Wr}`:n?`${A}.${te}`:A:`${A}.${Hr}`}).if(Boolean(!B&&y)).then(X=>{let[G]=X.split("."),A=y.substring(0,b);if(n){let te=r-A.length;if(te>0){let ne=Array(te).fill(0).join("");return A=`${A}${ne}`,`${G}.${A}`}return X}return A?`${G}.${A}`:G}).valueOf()}).if(a).then(m=>`-${m}`).valueOf()}var Gt=t=>{var e,r;if(!((e=t.receipt)!=null&&e.value))return"";if(((r=t.receipt)==null?void 0:r.data)===br){let n=U({input:t.receipt.value,decimals:k,digits:ee,showLastNonZeroDecimal:!0});return new Ir.default(n).times(t.gasPrice).times(100).toFixed()}return t.receipt.value};function Vt(t){var i;let e=(i=t.receipt)==null?void 0:i.data;if(!e)return"";let r=Gt(t),n=r?`: ${r}`:"";return`${e}${n}`}s();s();s();s();var me=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(me||{});s();s();s();s();s();var Ht=require("@multiversx/sdk-core");s();var re=require("@multiversx/sdk-core"),zt=require("@multiversx/sdk-network-providers");s();s();var Wt=P(require("bignumber.js"));s();s();var Ce={isEsdt:!1,isNft:!1,isEgld:!1};function Er(t){let e=t==null?void 0:t.split("-").length;return e===2?oe(ie({},Ce),{isEsdt:!0}):e===3?oe(ie({},Ce),{isNft:!0}):oe(ie({},Ce),{isEgld:!0})}s();s();s();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var f;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?U({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=J.nftDetails(String(t.identifier)),m=t.ticker===t.collection&&(f=t.identifier)!=null?f:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:m,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function fe({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?U({input:t.value,decimals:(c=t.decimals)!=null?c:k,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=J.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}s();var Ar=["reDelegateRewards","claimRewards","unBond"],Sr=["wrapEgld","unwrapEgld"],Nr=["unStake"],_r=["unDelegate"];s();s();var Dr=t=>{let e=t.map(n=>{let{isNft:i}=Er(n.type);if(i){let{badgeText:h,tokenFormattedAmount:d,tokenLinkText:y}=ge({token:n});return`${h!=null?`(${h}) `:""}${d} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=fe({token:n}),m=c.collection?c.identifier:c.token;return`${o} ${a} (${m})`});return decodeURI(e.join("%0A"))};s();var E=t=>({egldValueData:{value:t,formattedValue:U({input:t}),decimals:k}});s();var Fr=P(require("bignumber.js"));s();s();s();s();function Rr(t){return atob(t)}var Lr=!1;function Cr(t){var e;try{let n=Rr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Fr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){Lr||(console.error(`Unable to extract value for txHash: ${t.txHash}`),Lr=!0)}return E(t.value)}s();s();var Or=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Re).includes(i.type)))!=null?n:[]};var Ur=!1,Br=t=>{Ur||(console.error(`Operations field missing for txHash: ${t}.
|
|
1
|
+
"use strict";var Wr=Object.create;var Q=Object.defineProperty,jr=Object.defineProperties,qr=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols,Kr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Ue=(t,e,r)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ie=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Ue(t,r,e[r]);if(Oe)for(var r of Oe(e))Xr.call(e,r)&&Ue(t,r,e[r]);return t},oe=(t,e)=>jr(t,Yr(e));var Qr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ae=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Jr=(t,e)=>{for(var r in e)Q(t,r,{get:e[r],enumerable:!0})},Pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Zr(e))!Be.call(t,i)&&i!==r&&Q(t,i,{get:()=>e[i],enumerable:!(n=qr(e,i))||n.enumerable});return t};var P=(t,e,r)=>(r=t!=null?Wr(Kr(t)):{},Pe(e||!t||!t.__esModule?Q(r,"default",{value:t,enumerable:!0}):r,t)),et=t=>Pe(Q({},"__esModule",{value:!0}),t);var Ge=ae(se=>{"use strict";s();se.byteLength=tt;se.toByteArray=it;se.fromByteArray=st;var S=[],I=[],rt=typeof Uint8Array!="undefined"?Uint8Array:Array,de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(V=0,Me=de.length;V<Me;++V)S[V]=de[V],I[de.charCodeAt(V)]=V;var V,Me;I["-".charCodeAt(0)]=62;I["_".charCodeAt(0)]=63;function $e(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 tt(t){var e=$e(t),r=e[0],n=e[1];return(r+n)*3/4-n}function nt(t,e,r){return(e+r)*3/4-r}function it(t){var e,r=$e(t),n=r[0],i=r[1],o=new rt(nt(t,n,i)),a=0,c=i>0?n-4:n,m;for(m=0;m<c;m+=4)e=I[t.charCodeAt(m)]<<18|I[t.charCodeAt(m+1)]<<12|I[t.charCodeAt(m+2)]<<6|I[t.charCodeAt(m+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=I[t.charCodeAt(m)]<<2|I[t.charCodeAt(m+1)]>>4,o[a++]=e&255),i===1&&(e=I[t.charCodeAt(m)]<<10|I[t.charCodeAt(m+1)]<<4|I[t.charCodeAt(m+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function ot(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function at(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(ot(n));return i.join("")}function st(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(at(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(S[e>>2]+S[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(S[e>>10]+S[e>>4&63]+S[e<<2&63]+"=")),i.join("")}});var Ve=ae(he=>{s();he.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,m=(1<<c)-1,f=m>>1,h=-7,d=r?i-1:0,y=r?-1:1,T=t[e+d];for(d+=y,o=T&(1<<-h)-1,T>>=-h,h+=c;h>0;o=o*256+t[e+d],d+=y,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=a*256+t[e+d],d+=y,h-=8);if(o===0)o=1-f;else{if(o===m)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)};he.write=function(t,e,r,n,i,o){var a,c,m,f=o*8-i-1,h=(1<<f)-1,d=h>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:o-1,b=n?1:-1,B=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*(m=Math.pow(2,-a))<1&&(a--,m*=2),a+d>=1?e+=y/m:e+=y*Math.pow(2,1-d),e*m>=2&&(a++,m/=2),a+d>=h?(c=0,a=h):a+d>=1?(c=(e*m-1)*Math.pow(2,i),a=a+d):(c=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+T]=c&255,T+=b,c/=256,i-=8);for(a=a<<i|c,f+=i;f>0;t[r+T]=a&255,T+=b,a/=256,f-=8);t[r+T-b]|=B*128}});var rr=ae(q=>{"use strict";s();var ye=Ge(),j=Ve(),He=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=l;q.SlowBuffer=gt;q.INSPECT_MAX_BYTES=50;var le=2147483647;q.kMaxLength=le;l.TYPED_ARRAY_SUPPORT=lt();!l.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 lt(){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(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function L(t){if(t>le)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(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 be(t)}return je(t,e,r)}l.poolSize=8192;function je(t,e,r){if(typeof t=="string")return ut(t,e);if(ArrayBuffer.isView(t))return pt(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(N(t,ArrayBuffer)||t&&N(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(N(t,SharedArrayBuffer)||t&&N(t.buffer,SharedArrayBuffer)))return xe(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 l.from(n,e,r);var i=mt(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return l.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)}l.from=function(t,e,r){return je(t,e,r)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function qe(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 ct(t,e,r){return qe(t),t<=0?L(t):e!==void 0?typeof r=="string"?L(t).fill(e,r):L(t).fill(e):L(t)}l.alloc=function(t,e,r){return ct(t,e,r)};function be(t){return qe(t),L(t<0?0:ve(t)|0)}l.allocUnsafe=function(t){return be(t)};l.allocUnsafeSlow=function(t){return be(t)};function ut(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=Ye(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Te(t){for(var e=t.length<0?0:ve(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function pt(t){if(N(t,Uint8Array)){var e=new Uint8Array(t);return xe(e.buffer,e.byteOffset,e.byteLength)}return Te(t)}function xe(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,l.prototype),n}function mt(t){if(l.isBuffer(t)){var e=ve(t.length)|0,r=L(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||ke(t.length)?L(0):Te(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Te(t.data)}function ve(t){if(t>=le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+le.toString(16)+" bytes");return t|0}function gt(t){return+t!=t&&(t=0),l.alloc(+t)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,r){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),N(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(e)||!l.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};l.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}};l.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=l.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(N(a,Uint8Array))o+a.length>i.length?l.from(a).copy(i,o):Uint8Array.prototype.set.call(i,a,o);else if(l.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function Ye(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||N(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 we(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return er(t).length;default:if(i)return n?-1:we(t).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ye;function ft(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 It(this,e,r);case"utf8":case"utf-8":return Ke(this,e,r);case"ascii":return vt(this,e,r);case"latin1":case"binary":return kt(this,e,r);case"base64":return wt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function H(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}l.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)H(this,r,r+1);return this};l.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)H(this,r,r+3),H(this,r+1,r+2);return this};l.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)H(this,r,r+7),H(this,r+1,r+6),H(this,r+2,r+5),H(this,r+3,r+4);return this};l.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Ke(this,0,e):ft.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){var e="",r=q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};He&&(l.prototype[He]=l.prototype.inspect);l.prototype.compare=function(e,r,n,i,o){if(N(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.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,m=Math.min(a,c),f=this.slice(i,o),h=e.slice(r,n),d=0;d<m;++d)if(f[d]!==h[d]){a=f[d],c=h[d];break}return a<c?-1:c<a?1:0};function Ze(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,ke(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=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:ze(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):ze(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ze(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 m(T,b){return o===1?T[b]:T.readUInt16BE(b*o)}var f;if(i){var h=-1;for(f=r;f<a;f++)if(m(t,f)===m(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===c)return h*o}else h!==-1&&(f-=f-h),h=-1}else for(r+c>a&&(r=a-c),f=r;f>=0;f--){for(var d=!0,y=0;y<c;y++)if(m(t,f+y)!==m(e,y)){d=!1;break}if(d)return f}return-1}l.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};l.prototype.indexOf=function(e,r,n){return Ze(this,e,r,n,!0)};l.prototype.lastIndexOf=function(e,r,n){return Ze(this,e,r,n,!1)};function dt(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(ke(c))return a;t[r+a]=c}return a}function ht(t,e,r,n){return ce(we(e,t.length-r),t,r,n)}function yt(t,e,r,n){return ce(Nt(e),t,r,n)}function Tt(t,e,r,n){return ce(er(e),t,r,n)}function xt(t,e,r,n){return ce(_t(e,t.length-r),t,r,n)}l.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 dt(this,e,r,n);case"utf8":case"utf-8":return ht(this,e,r,n);case"ascii":case"latin1":case"binary":return yt(this,e,r,n);case"base64":return Tt(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(t,e,r){return e===0&&r===t.length?ye.fromByteArray(t):ye.fromByteArray(t.slice(e,r))}function Ke(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 m,f,h,d;switch(c){case 1:o<128&&(a=o);break;case 2:m=t[i+1],(m&192)===128&&(d=(o&31)<<6|m&63,d>127&&(a=d));break;case 3:m=t[i+1],f=t[i+2],(m&192)===128&&(f&192)===128&&(d=(o&15)<<12|(m&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:m=t[i+1],f=t[i+2],h=t[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(m&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(a=d))}}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 bt(n)}var We=4096;function bt(t){var e=t.length;if(e<=We)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=We));return r}function vt(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 kt(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 It(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+=Dt[t[o]];return i}function Et(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}l.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,l.prototype),i};function w(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||w(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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};l.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||w(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};l.prototype.readInt8=function(e,r){return e=e>>>0,r||w(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,r){e=e>>>0,r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,r){return e=e>>>0,r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,r){return e=e>>>0,r||w(e,4,this.length),j.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||w(e,8,this.length),j.read(this,e,!1,52,8)};function v(t,e,r,n,i,o){if(!l.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")}l.prototype.writeUintLE=l.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;v(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};l.prototype.writeUintBE=l.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;v(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};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,255,0),this[r]=e&255,r+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=0,c=1,m=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&m===0&&this[r+a-1]!==0&&(m=1),this[r+a]=(e/c>>0)-m&255;return r+n};l.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);v(this,e,r,n,o-1,-o)}var a=n-1,c=1,m=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&m===0&&this[r+a+1]!==0&&(m=1),this[r+a]=(e/c>>0)-m&255;return r+n};l.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};l.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};l.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||v(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};l.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||v(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};l.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||v(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 Xe(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 Qe(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),j.write(t,e,r,n,23,4),r+4}l.prototype.writeFloatLE=function(e,r,n){return Qe(this,e,r,!0,n)};l.prototype.writeFloatBE=function(e,r,n){return Qe(this,e,r,!1,n)};function Je(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),j.write(t,e,r,n,52,8),r+8}l.prototype.writeDoubleLE=function(e,r,n){return Je(this,e,r,!0,n)};l.prototype.writeDoubleBE=function(e,r,n){return Je(this,e,r,!1,n)};l.prototype.copy=function(e,r,n,i){if(!l.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};l.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"&&!l.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=l.isBuffer(e)?e:l.from(e,i),m=c.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%m]}return this};var At=/[^+/0-9A-Za-z-_]/g;function St(t){if(t=t.split("=")[0],t=t.trim().replace(At,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function we(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 Nt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _t(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 er(t){return ye.toByteArray(St(t))}function ce(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 N(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ke(t){return t!==t}var Dt=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 ar=ae((Qt,or)=>{s();var x=or.exports={},_,D;function Ie(){throw new Error("setTimeout has not been defined")}function Ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=Ie}catch(t){_=Ie}try{typeof clearTimeout=="function"?D=clearTimeout:D=Ee}catch(t){D=Ee}})();function tr(t){if(_===setTimeout)return setTimeout(t,0);if((_===Ie||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(r){return _.call(this,t,0)}}}function Rt(t){if(D===clearTimeout)return clearTimeout(t);if((D===Ee||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(t);try{return D(t)}catch(e){try{return D.call(null,t)}catch(r){return D.call(this,t)}}}var F=[],Y=!1,z,ue=-1;function Lt(){!Y||!z||(Y=!1,z.length?F=z.concat(F):ue=-1,F.length&&nr())}function nr(){if(!Y){var t=tr(Lt);Y=!0;for(var e=F.length;e;){for(z=F,F=[];++ue<e;)z&&z[ue].run();ue=-1,e=F.length}z=null,Y=!1,Rt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];F.push(new ir(t,e)),F.length===1&&!Y&&tr(nr)};function ir(t,e){this.fun=t,this.array=e}ir.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function C(){}x.on=C;x.addListener=C;x.once=C;x.off=C;x.removeListener=C;x.removeAllListeners=C;x.emit=C;x.prependListener=C;x.prependOnceListener=C;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 u,p,Jt,s=Qr(()=>{u=P(rr()),p=P(ar()),Jt=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 qt={};Jr(qt,{explorerUrlBuilder:()=>J,getExplorerLink:()=>Bt,getHumanReadableTimeFormat:()=>Mt,getOperationsMessages:()=>$t,getReceiptMessage:()=>Vt,getTransactionMethod:()=>Ot,getTransactionReceiver:()=>De,getTransactionReceiverAssets:()=>Ft,getTransactionTokens:()=>_e,getTransactionTransferType:()=>Pt,getTransactionValue:()=>jt});module.exports=et(qt);s();s();s();var M="accounts",W="transactions";var Z="tokens",sr="blocks",lr="miniblocks",cr="nodes",ur="identities",pr="collections",Ae="nfts",Se="providers",Ne="sc-results",mr="contracts",gr="logs",fr="code",dr="locked-accounts",hr="roles";var J={shard:t=>`/${sr}?shard=${t}`,receiverShard:t=>`/${W}?receivershard=${t}`,senderShard:t=>`/${W}?sendershard=${t}`,transactionDetails:t=>`/${W}/${t}`,transactionDetailsScResults:t=>`/${W}/${t}/${Ne}`,transactionDetailsLogs:t=>`/${W}/${t}/${gr}`,nodeDetails:t=>`/${cr}/${t}`,accountDetails:t=>`/${M}/${t}`,accountDetailsContractCode:t=>`/${M}/${t}/${fr}`,accountDetailsTokens:t=>`/${M}/${t}/${Z}`,accountDetailsNfts:t=>`/${M}/${t}/${Ae}`,accountDetailsScResults:t=>`/${M}/${t}/${Ne}`,accountDetailsContracts:t=>`/${M}/${t}/${mr}`,identityDetails:t=>`/${ur}/${t}`,tokenDetails:t=>`/${Z}/${t}`,tokenDetailsAccounts:t=>`/${Z}/${t}/${M}`,tokenDetailsLockedAccounts:t=>`/${Z}/${t}/${dr}`,tokenDetailsRoles:t=>`/${Z}/${t}/${hr}`,collectionDetails:t=>`/${pr}/${t}`,nftDetails:t=>`/${Ae}/${t}`,providerDetails:t=>`/${Se}/${t}`,providerDetailsTransactions:t=>`/${Se}/${t}/${W}`,miniblockDetails:t=>`/${lr}/${t}`};s();var _e=t=>{var e,r,n,i;if(t.action){let o=[(e=t.action.arguments)==null?void 0:e.token,(r=t.action.arguments)==null?void 0:r.token1,(n=t.action.arguments)==null?void 0:n.token2,(i=t.action.arguments)==null?void 0:i.transfers].filter(c=>c!=null);return[].concat(...o)}return[]};s();s();function De(t){var r,n;let e=t.receiver;return(n=(r=t.action)==null?void 0:r.arguments)!=null&&n.receiver&&(e=t.action.arguments.receiver),e}function Ft(t){let e=De(t);return t.receiver===e?t.receiverAssets:void 0}s();s();var Re=(n=>(n.nft="nft",n.esdt="esdt",n.egld="egld",n))(Re||{});var Ot=t=>{var n,i,o,a,c,m;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((o=t.action)==null?void 0:o.category)==="esdtNft"&&((a=t.action)==null?void 0:a.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(m=(c=t.action)==null?void 0:c.arguments)!=null&&m.functionName&&(e=t.action.arguments.functionName)),e};s();var yr=!1;function Ut(t){yr||(console.error(t),yr=!0)}function Bt({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Ut(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}s();function Pt(t,e,r){let n=t===e.sender,i=t===r,o=n&&i,a=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case a:return"Internal";case o:return"Self";case i:return"In";case n:default:return"Out"}}s();function Mt({value:t,noSeconds:e,utc:r,meridiem:n=!0}){let i=new Date(t*1e3),[,o]=i.toLocaleString("en-US",{hour:"numeric",hour12:n}).split(" "),a=i.toUTCString(),[,c]=a.split(","),[m,f,h,d]=c.trim().split(" "),[y,T,b]=d.split(":"),B=`:${b}`,K=`${y}:${T}${e?"":B}`,G=`${n?o:""} ${r?"UTC":""}`.trim();return`${f} ${m}, ${h} ${K} ${G}`.trim()}s();function $t(t){var e,r;return(r=(e=t==null?void 0:t.operations)==null?void 0:e.map(n=>n.message).filter(n=>Boolean(n)))!=null?r:[]}s();var Ir=P(require("bignumber.js"));s();s();s();s();s();s();s();s();s();s();s();s();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",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:Tr,egldLabel:Pn}=Le["devnet"],{chainId:xr,egldLabel:Mn}=Le["testnet"],{chainId:wr,egldLabel:$n}=Le["mainnet"];var Gn={["devnet"]:Tr,["testnet"]:xr,["mainnet"]:wr},Vn={[Tr]:"devnet",[xr]:"testnet",[wr]:"mainnet"};s();s();s();s();var R=require("@multiversx/sdk-web-wallet-provider");var k=18,ee=4;var br="refundedGas";var pe="0";s();var kr=require("@multiversx/sdk-core"),$=P(require("bignumber.js"));s();var vr=P(require("bignumber.js")),Fe=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new vr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};s();function O(t){return{if:function(e){return e?{then:r=>r instanceof Function?O(r(t)):O(r)}:{then:()=>O(t)}},then:e=>e instanceof Function?O(e(t)):O(e),valueOf:function(){return t}}}$.default.config({ROUNDING_MODE:$.default.ROUND_FLOOR});function U({input:t,decimals:e=k,digits:r=ee,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!Fe(t,!1))throw new Error("Invalid input");let a=new $.default(t).isNegative(),c=t;return a&&(c=t.substring(1)),O(c).then(()=>kr.TokenPayment.fungibleFromBigInteger("",c,e).toRationalNumber()).then(m=>{let f=new $.default(m);if(f.isZero())return pe;let h=f.toString(10),[d,y]=h.split("."),T=new $.default(y||0),b=O(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(T.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),B=y&&r>=1&&r<=y.length&&T.isGreaterThan(0)&&new $.default(y.substring(0,r)).isZero(),K=f.toFormat(b);return O(h).if(o).then(K).if(Boolean(B)).then(X=>{let G=new $.default(d).isZero(),[A,te]=X.split("."),ne=new Array(r-1).fill(0),Hr=[...ne,0].join(""),zr=[...ne,1].join("");return G?i?`<${A}.${zr}`:n?`${A}.${te}`:A:`${A}.${Hr}`}).if(Boolean(!B&&y)).then(X=>{let[G]=X.split("."),A=y.substring(0,b);if(n){let te=r-A.length;if(te>0){let ne=Array(te).fill(0).join("");return A=`${A}${ne}`,`${G}.${A}`}return X}return A?`${G}.${A}`:G}).valueOf()}).if(a).then(m=>`-${m}`).valueOf()}var Gt=t=>{var e,r;if(!((e=t.receipt)!=null&&e.value))return"";if(((r=t.receipt)==null?void 0:r.data)===br){let n=U({input:t.receipt.value,decimals:k,digits:ee,showLastNonZeroDecimal:!0});return new Ir.default(n).times(t.gasPrice).times(100).toFixed()}return t.receipt.value};function Vt(t){var i;let e=(i=t.receipt)==null?void 0:i.data;if(!e)return"";let r=Gt(t),n=r?`: ${r}`:"";return`${e}${n}`}s();s();s();s();var me=(n=>(n.NonFungibleESDT="NonFungibleESDT",n.SemiFungibleESDT="SemiFungibleESDT",n.MetaESDT="MetaESDT",n))(me||{});s();s();s();s();s();var Ht=require("@multiversx/sdk-core");s();var re=require("@multiversx/sdk-core"),Wt=require("@multiversx/sdk-network-providers");s();s();var zt=P(require("bignumber.js"));s();s();var Ce={isEsdt:!1,isNft:!1,isEgld:!1};function Er(t){let e=t==null?void 0:t.split("-").length;return e===2?oe(ie({},Ce),{isEsdt:!0}):e===3?oe(ie({},Ce),{isNft:!0}):oe(ie({},Ce),{isEgld:!0})}s();s();s();function ge({token:t,noValue:e,showLastNonZeroDecimal:r}){var f;let n=!e&&t.value&&t.type!=="NonFungibleESDT",i=t.decimals!=null,o="";t.type==="NonFungibleESDT"&&(o="NFT"),t.type==="SemiFungibleESDT"&&(o="SFT"),t.type==="MetaESDT"&&(o="Meta-ESDT");let a="";n&&i&&(a=i?U({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:r}):Number(t.value).toLocaleString("en"));let c=J.nftDetails(String(t.identifier)),m=t.ticker===t.collection&&(f=t.identifier)!=null?f:t.ticker;return{badgeText:o,tokenFormattedAmount:n?a:null,tokenExplorerLink:c,tokenLinkText:m,token:t,noValue:e,showLastNonZeroDecimal:r}}s();function fe({token:t,noValue:e,showLastNonZeroDecimal:r}){var c;let n=Boolean(!e&&t.value),i=n?U({input:t.value,decimals:(c=t.decimals)!=null?c:k,digits:2,showLastNonZeroDecimal:r,addCommas:!0}):null,o=J.tokenDetails(String(t.token)),a=t.ticker;return{tokenExplorerLink:o,tokenFormattedAmount:i,showFormattedAmount:n,tokenLinkText:a,token:t,showLastNonZeroDecimal:r}}s();var Ar=["reDelegateRewards","claimRewards","unBond"],Sr=["wrapEgld","unwrapEgld"],Nr=["unStake"],_r=["unDelegate"];s();s();var Dr=t=>{let e=t.map(n=>{let{isNft:i}=Er(n.type);if(i){let{badgeText:h,tokenFormattedAmount:d,tokenLinkText:y}=ge({token:n});return`${h!=null?`(${h}) `:""}${d} ${y}`}let{tokenFormattedAmount:o,tokenLinkText:a,token:c}=fe({token:n}),m=c.collection?c.identifier:c.token;return`${o} ${a} (${m})`});return decodeURI(e.join("%0A"))};s();var E=t=>({egldValueData:{value:t,formattedValue:U({input:t}),decimals:k}});s();var Fr=P(require("bignumber.js"));s();s();s();s();function Rr(t){return atob(t)}var Lr=!1;function Cr(t){var e;try{let n=Rr(t.data).replace(`${(e=t.action)==null?void 0:e.name}@`,""),i=new Fr.default(n,16);if(!i.isNaN())return E(i.toString(10))}catch(r){Lr||(console.error(`Unable to extract value for txHash: ${t.txHash}`),Lr=!0)}return E(t.value)}s();s();var Or=t=>{var r,n;return(n=(r=t==null?void 0:t.operations)==null?void 0:r.filter(i=>Object.values(Re).includes(i.type)))!=null?n:[]};var Ur=!1,Br=t=>{Ur||(console.error(`Operations field missing for txHash: ${t}.
|
|
2
2
|
Unable to compute value field.`),Ur=!0)};function Pr(t){try{if(t.operations){let[e]=Or(t);return E(e==null?void 0:e.value)}else Br(t.txHash)}catch(e){Br(t.txHash)}return E(t.value)}s();var $r=P(require("bignumber.js"));var Mr=!1;function Gr(t){var r,n,i,o,a;return new $r.default((n=(r=t.action)==null?void 0:r.arguments)==null?void 0:n.value).isNaN()?(Mr||(console.error(`Unable to interpret ${(a=t.action)==null?void 0:a.name} data for txHash: ${t.txHash}`),Mr=!0),E(t.value)):E((o=(i=t.action)==null?void 0:i.arguments)==null?void 0:o.value)}var jt=({transaction:t,hideMultipleBadge:e})=>{var r;if(t.action){if(Sr.includes(t.action.name))return E(t.value);if(Nr.includes(t.action.name))return Cr(t);if(Ar.includes(t.action.name))return Pr(t);if(_r.includes(t.action.name))return Gr(t);let n=_e(t);if(n.length){let i=n[0],o=Object.values(me).includes(i.type),c=!e&&n.length>1?Dr(n):"";if(o){let{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:K}=ge({token:i});return{nftValueData:{badgeText:T,tokenFormattedAmount:b,tokenExplorerLink:B,tokenLinkText:K,transactionTokens:n,token:i,value:b!=null?i.value:null,decimals:b!=null?i.decimals:null,titleText:c}}}let{tokenExplorerLink:m,showFormattedAmount:f,tokenFormattedAmount:h,tokenLinkText:d,token:y}=fe({token:i});return{tokenValueData:{tokenExplorerLink:m,showFormattedAmount:f,tokenFormattedAmount:h,tokenLinkText:d,transactionTokens:n,token:y,value:i.value,decimals:(r=i.decimals)!=null?r:k,titleText:c}}}}return E(t.value)};0&&(module.exports={explorerUrlBuilder,getExplorerLink,getHumanReadableTimeFormat,getOperationsMessages,getReceiptMessage,getTransactionMethod,getTransactionReceiver,getTransactionReceiverAssets,getTransactionTokens,getTransactionTransferType,getTransactionValue});
|
|
3
3
|
/*!
|
|
4
4
|
* The buffer module from node.js, for the browser.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var kr=Object.create;var b=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty;var Gr=(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)b(t,e,{get:r[e],enumerable:!0})},ir=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Lr(r))!br.call(t,i)&&i!==e&&b(t,i,{get:()=>r[i],enumerable:!(n=Dr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?kr(Mr(t)):{},ir(r||!t||!t.__esModule?b(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>ir(b({},"__esModule",{value:!0}),t);var ar=G(O=>{"use strict";x();O.byteLength=Yr;O.toByteArray=Xr;O.fromByteArray=Jr;var A=[],m=[],qr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,or=X.length;R<or;++R)A[R]=X[R],m[X.charCodeAt(R)]=R;var R,or;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ur(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=ur(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Hr(t,r,e){return(r+e)*3/4-e}function Xr(t){var r,e=ur(t),n=e[0],i=e[1],o=new qr(Hr(t,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=m[t.charCodeAt(c)]<<18|m[t.charCodeAt(c+1)]<<12|m[t.charCodeAt(c+2)]<<6|m[t.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[t.charCodeAt(c)]<<2|m[t.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=m[t.charCodeAt(c)]<<10|m[t.charCodeAt(c+1)]<<4|m[t.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function $r(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function zr(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,u=0,f=e-n;u<f;u+=o)i.push(zr(t,u,u+o>f?f:u+o));return n===1?(r=t[e-1],i.push(A[r>>2]+A[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),i.join("")}});var fr=G($=>{x();$.read=function(t,r,e,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,p=c>>1,l=-7,h=e?i-1:0,F=e?-1:1,g=t[r+h];for(h+=F,o=g&(1<<-l)-1,g>>=-l,l+=f;l>0;o=o*256+t[r+h],h+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+t[r+h],h+=F,l-=8);if(o===0)o=1-p;else{if(o===c)return u?NaN:(g?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-p}return(g?-1:1)*u*Math.pow(2,o-n)};$.write=function(t,r,e,n,i,o){var u,f,c,p=o*8-i-1,l=(1<<p)-1,h=l>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,k=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+h>=1?r+=F/c:r+=F*Math.pow(2,1-h),r*c>=2&&(u++,c/=2),u+h>=l?(f=0,u=l):u+h>=1?(f=(r*c-1)*Math.pow(2,i),u=u+h):(f=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;t[e+g]=f&255,g+=k,f/=256,i-=8);for(u=u<<i|f,p+=i;p>0;t[e+g]=u&255,g+=k,u/=256,p-=8);t[e+g-k]|=Cr*128}});var Ar=G(L=>{"use strict";x();var z=ar(),D=fr(),cr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L.Buffer=a;L.SlowBuffer=jr;L.INSPECT_MAX_BYTES=50;var Q=2147483647;L.kMaxLength=Q;a.TYPED_ARRAY_SUPPORT=Kr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function 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(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(t){if(t>Q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(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 W(t)}return lr(t,r,e)}a.poolSize=8192;function lr(t,r,e){if(typeof t=="string")return Wr(t,r);if(ArrayBuffer.isView(t))return Pr(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(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(t,SharedArrayBuffer)||t&&B(t.buffer,SharedArrayBuffer)))return K(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 a.from(n,r,e);var i=Vr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return a.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)}a.from=function(t,r,e){return lr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(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 Zr(t,r,e){return sr(t),t<=0?U(t):r!==void 0?typeof e=="string"?U(t).fill(r,e):U(t).fill(r):U(t)}a.alloc=function(t,r,e){return Zr(t,r,e)};function W(t){return sr(t),U(t<0?0:P(t)|0)}a.allocUnsafe=function(t){return W(t)};a.allocUnsafeSlow=function(t){return W(t)};function Wr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=xr(t,r)|0,n=U(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:P(t.length)|0,e=U(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Pr(t){if(B(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function K(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,a.prototype),n}function Vr(t){if(a.isBuffer(t)){var r=P(t.length)|0,e=U(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||V(t.length)?U(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function P(t){if(t>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return t|0}function jr(t){return+t!=t&&(t=0),a.alloc(+t)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,e){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(r)||!a.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,u=Math.min(n,i);o<u;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=a.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function xr(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(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 Er(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=xr;function re(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 he(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return fe(this,r,e);case"latin1":case"binary":return ce(this,r,e);case"base64":return ue(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function N(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):re.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",e=L.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};cr&&(a.prototype[cr]=a.prototype.inspect);a.prototype.compare=function(r,e,n,i,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(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 u=o-i,f=n-e,c=Math.min(u,f),p=this.slice(i,o),l=r.slice(e,n),h=0;h<c;++h)if(p[h]!==l[h]){u=p[h],f=l[h];break}return u<f?-1:f<u?1:0};function wr(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,V(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=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:hr(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):hr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function hr(t,r,e,n,i){var o=1,u=t.length,f=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,u/=2,f/=2,e/=2}function c(g,k){return o===1?g[k]:g.readUInt16BE(k*o)}var p;if(i){var l=-1;for(p=e;p<u;p++)if(c(t,p)===c(r,l===-1?0:p-l)){if(l===-1&&(l=p),p-l+1===f)return l*o}else l!==-1&&(p-=p-l),l=-1}else for(e+f>u&&(e=u-f),p=e;p>=0;p--){for(var h=!0,F=0;F<f;F++)if(c(t,p+F)!==c(r,F)){h=!1;break}if(h)return p}return-1}a.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};a.prototype.indexOf=function(r,e,n){return wr(this,r,e,n,!0)};a.prototype.lastIndexOf=function(r,e,n){return wr(this,r,e,n,!1)};function ee(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 u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(V(f))return u;t[e+u]=f}return u}function te(t,r,e,n){return q(Z(r,t.length-e),t,e,n)}function ne(t,r,e,n){return q(xe(r),t,e,n)}function ie(t,r,e,n){return q(Er(r),t,e,n)}function oe(t,r,e,n){return q(we(r,t.length-e),t,e,n)}a.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 u=!1;;)switch(i){case"hex":return ee(this,r,e,n);case"utf8":case"utf-8":return te(this,r,e,n);case"ascii":case"latin1":case"binary":return ne(this,r,e,n);case"base64":return ie(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(t,r,e){return r===0&&e===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=e){var c,p,l,h;switch(f){case 1:o<128&&(u=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(u=h));break;case 3:c=t[i+1],p=t[i+2],(c&192)===128&&(p&192)===128&&(h=(o&15)<<12|(c&63)<<6|p&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:c=t[i+1],p=t[i+2],l=t[i+3],(c&192)===128&&(p&192)===128&&(l&192)===128&&(h=(o&15)<<18|(c&63)<<12|(p&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return ae(n)}var pr=4096;function ae(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}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]&127);return n}function ce(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 he(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+=ye[t[o]];return i}function pe(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}a.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,a.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")}a.prototype.readUintLE=a.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,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.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};a.prototype.readUint8=a.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.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};a.prototype.readUint32BE=a.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])};a.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,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};a.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};a.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]};a.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};a.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};a.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};a.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]};a.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),D.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),D.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),D.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),D.read(this,r,!1,52,8)};function y(t,r,e,n,i,o){if(!a.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")}a.prototype.writeUintLE=a.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;y(this,r,e,n,o,0)}var u=1,f=0;for(this[e]=r&255;++f<n&&(u*=256);)this[e+f]=r/u&255;return e+n};a.prototype.writeUintBE=a.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;y(this,r,e,n,o,0)}var u=n-1,f=1;for(this[e+u]=r&255;--u>=0&&(f*=256);)this[e+u]=r/f&255;return e+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,1,255,0),this[e]=r&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,e,n,o-1,-o)}var u=0,f=1,c=0;for(this[e]=r&255;++u<n&&(f*=256);)r<0&&c===0&&this[e+u-1]!==0&&(c=1),this[e+u]=(r/f>>0)-c&255;return e+n};a.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,e,n,o-1,-o)}var u=n-1,f=1,c=0;for(this[e+u]=r&255;--u>=0&&(f*=256);)r<0&&c===0&&this[e+u+1]!==0&&(c=1),this[e+u]=(r/f>>0)-c&255;return e+n};a.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||y(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 gr(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 mr(t,r,e,n,i){return r=+r,e=e>>>0,i||gr(t,r,e,4,34028234663852886e22,-34028234663852886e22),D.write(t,r,e,n,23,4),e+4}a.prototype.writeFloatLE=function(r,e,n){return mr(this,r,e,!0,n)};a.prototype.writeFloatBE=function(r,e,n){return mr(this,r,e,!1,n)};function Fr(t,r,e,n,i){return r=+r,e=e>>>0,i||gr(t,r,e,8,17976931348623157e292,-17976931348623157e292),D.write(t,r,e,n,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,n){return Fr(this,r,e,!0,n)};a.prototype.writeDoubleBE=function(r,e,n){return Fr(this,r,e,!1,n)};a.prototype.copy=function(r,e,n,i){if(!a.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};a.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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(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 u;if(typeof r=="number")for(u=e;u<n;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,i),c=f.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-e;++u)this[u+e]=f[u%c]}return this};var le=/[^+/0-9A-Za-z-_]/g;function se(t){if(t=t.split("=")[0],t=t.trim().replace(le,""),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=[],u=0;u<n;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=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 xe(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function we(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Er(t){return z.toByteArray(se(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 B(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function V(t){return t!==t}var ye=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 Ur=G((Ue,Ir)=>{x();var s=Ir.exports={},d,T;function j(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=j}catch(t){d=j}try{typeof clearTimeout=="function"?T=clearTimeout:T=rr}catch(t){T=rr}})();function Br(t){if(d===setTimeout)return setTimeout(t,0);if((d===j||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(r){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function ge(t){if(T===clearTimeout)return clearTimeout(t);if((T===rr||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(t);try{return T(t)}catch(r){try{return T.call(null,t)}catch(e){return T.call(this,t)}}}var v=[],M=!1,C,Y=-1;function me(){!M||!C||(M=!1,C.length?v=C.concat(v):Y=-1,v.length&&dr())}function dr(){if(!M){var t=Br(me);M=!0;for(var r=v.length;r;){for(C=v,v=[];++Y<r;)C&&C[Y].run();Y=-1,r=v.length}C=null,M=!1,ge(t)}}s.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];v.push(new Tr(t,r)),v.length===1&&!M&&Br(dr)};function Tr(t,r){this.fun=t,this.array=r}Tr.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function S(){}s.on=S;s.addListener=S;s.once=S;s.off=S;s.removeListener=S;s.removeAllListeners=S;s.emit=S;s.prependListener=S;s.prependOnceListener=S;s.listeners=function(t){return[]};s.binding=function(t){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(t){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var E,I,ve,x=Gr(()=>{E=H(Ar()),I=H(Ur()),ve=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 Ae={};Or(Ae,{decodeData:()=>Nr,getTokenFromData:()=>Ee});module.exports=Qr(Ae);x();var tr=require("@multiversx/sdk-core"),nr=H(require("bignumber.js"));x();x();var vr=require("@multiversx/sdk-core");function Fe(t){try{let r=new vr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function Sr(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Fe(t)}x();x();function _r(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function Rr(t){let r=t;try{let e=E.Buffer.from(t,"hex").toString();_r(e)&&e.length>1&&(r=e)}catch(e){}return r}var er={tokenId:"",amount:""},Nr=t=>t.split("@").map((o,u)=>[2,3].includes(u)?o:Rr(o));function Ee(t){if(!t)return er;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let o=E.Buffer.from(n,"hex").toString("ascii");if(!o)return er;let u=new nr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:u}}catch(o){console.error("Error getting token from transaction data",o)}}if(e)try{let[,n,i,o,u]=Nr(t);if([n,i,o,u].every(f=>Boolean(f))&&Sr(new tr.Address(u).bech32()))return{tokenId:`${n}-${i}`,amount:new nr.default(o,16).toString(10),collection:n,nonce:i,receiver:new tr.Address(u).bech32()}}catch(n){}return er}0&&(module.exports={decodeData,getTokenFromData});
|
|
1
|
+
"use strict";var kr=Object.create;var b=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty;var Gr=(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)b(t,e,{get:r[e],enumerable:!0})},ir=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Lr(r))!br.call(t,i)&&i!==e&&b(t,i,{get:()=>r[i],enumerable:!(n=Dr(r,i))||n.enumerable});return t};var H=(t,r,e)=>(e=t!=null?kr(Mr(t)):{},ir(r||!t||!t.__esModule?b(e,"default",{value:t,enumerable:!0}):e,t)),Qr=t=>ir(b({},"__esModule",{value:!0}),t);var ar=G(O=>{"use strict";x();O.byteLength=Yr;O.toByteArray=Xr;O.fromByteArray=Jr;var A=[],m=[],qr=typeof Uint8Array!="undefined"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(R=0,or=X.length;R<or;++R)A[R]=X[R],m[X.charCodeAt(R)]=R;var R,or;m["-".charCodeAt(0)]=62;m["_".charCodeAt(0)]=63;function ur(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=ur(t),e=r[0],n=r[1];return(e+n)*3/4-n}function Hr(t,r,e){return(r+e)*3/4-e}function Xr(t){var r,e=ur(t),n=e[0],i=e[1],o=new qr(Hr(t,n,i)),u=0,f=i>0?n-4:n,c;for(c=0;c<f;c+=4)r=m[t.charCodeAt(c)]<<18|m[t.charCodeAt(c+1)]<<12|m[t.charCodeAt(c+2)]<<6|m[t.charCodeAt(c+3)],o[u++]=r>>16&255,o[u++]=r>>8&255,o[u++]=r&255;return i===2&&(r=m[t.charCodeAt(c)]<<2|m[t.charCodeAt(c+1)]>>4,o[u++]=r&255),i===1&&(r=m[t.charCodeAt(c)]<<10|m[t.charCodeAt(c+1)]<<4|m[t.charCodeAt(c+2)]>>2,o[u++]=r>>8&255,o[u++]=r&255),o}function $r(t){return A[t>>18&63]+A[t>>12&63]+A[t>>6&63]+A[t&63]}function zr(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,u=0,f=e-n;u<f;u+=o)i.push(zr(t,u,u+o>f?f:u+o));return n===1?(r=t[e-1],i.push(A[r>>2]+A[r<<4&63]+"==")):n===2&&(r=(t[e-2]<<8)+t[e-1],i.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),i.join("")}});var fr=G($=>{x();$.read=function(t,r,e,n,i){var o,u,f=i*8-n-1,c=(1<<f)-1,p=c>>1,l=-7,h=e?i-1:0,F=e?-1:1,g=t[r+h];for(h+=F,o=g&(1<<-l)-1,g>>=-l,l+=f;l>0;o=o*256+t[r+h],h+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+t[r+h],h+=F,l-=8);if(o===0)o=1-p;else{if(o===c)return u?NaN:(g?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-p}return(g?-1:1)*u*Math.pow(2,o-n)};$.write=function(t,r,e,n,i,o){var u,f,c,p=o*8-i-1,l=(1<<p)-1,h=l>>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,k=n?1:-1,Cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+h>=1?r+=F/c:r+=F*Math.pow(2,1-h),r*c>=2&&(u++,c/=2),u+h>=l?(f=0,u=l):u+h>=1?(f=(r*c-1)*Math.pow(2,i),u=u+h):(f=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;t[e+g]=f&255,g+=k,f/=256,i-=8);for(u=u<<i|f,p+=i;p>0;t[e+g]=u&255,g+=k,u/=256,p-=8);t[e+g-k]|=Cr*128}});var Ar=G(L=>{"use strict";x();var z=ar(),D=fr(),cr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L.Buffer=a;L.SlowBuffer=Vr;L.INSPECT_MAX_BYTES=50;var Q=2147483647;L.kMaxLength=Q;a.TYPED_ARRAY_SUPPORT=Kr();!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function 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(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function U(t){if(t>Q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(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 W(t)}return lr(t,r,e)}a.poolSize=8192;function lr(t,r,e){if(typeof t=="string")return Wr(t,r);if(ArrayBuffer.isView(t))return Pr(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(B(t,ArrayBuffer)||t&&B(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(B(t,SharedArrayBuffer)||t&&B(t.buffer,SharedArrayBuffer)))return K(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 a.from(n,r,e);var i=jr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return a.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)}a.from=function(t,r,e){return lr(t,r,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function sr(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 Zr(t,r,e){return sr(t),t<=0?U(t):r!==void 0?typeof e=="string"?U(t).fill(r,e):U(t).fill(r):U(t)}a.alloc=function(t,r,e){return Zr(t,r,e)};function W(t){return sr(t),U(t<0?0:P(t)|0)}a.allocUnsafe=function(t){return W(t)};a.allocUnsafeSlow=function(t){return W(t)};function Wr(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=xr(t,r)|0,n=U(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:P(t.length)|0,e=U(r),n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Pr(t){if(B(t,Uint8Array)){var r=new Uint8Array(t);return K(r.buffer,r.byteOffset,r.byteLength)}return J(t)}function K(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,a.prototype),n}function jr(t){if(a.isBuffer(t)){var r=P(t.length)|0,e=U(r);return e.length===0||t.copy(e,0,0,r),e}if(t.length!==void 0)return typeof t.length!="number"||j(t.length)?U(0):J(t);if(t.type==="Buffer"&&Array.isArray(t.data))return J(t.data)}function P(t){if(t>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return t|0}function Vr(t){return+t!=t&&(t=0),a.alloc(+t)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype};a.compare=function(r,e){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(r)||!a.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,u=Math.min(n,i);o<u;++o)if(r[o]!==e[o]){n=r[o],i=e[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=a.allocUnsafe(e),o=0;for(n=0;n<r.length;++n){var u=r[n];if(B(u,Uint8Array))o+u.length>i.length?a.from(u).copy(i,o):Uint8Array.prototype.set.call(i,u,o);else if(a.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function xr(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(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 Er(t).length;default:if(i)return n?-1:Z(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=xr;function re(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 he(this,r,e);case"utf8":case"utf-8":return yr(this,r,e);case"ascii":return fe(this,r,e);case"latin1":case"binary":return ce(this,r,e);case"base64":return ue(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function N(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?yr(this,0,r):re.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.inspect=function(){var r="",e=L.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"};cr&&(a.prototype[cr]=a.prototype.inspect);a.prototype.compare=function(r,e,n,i,o){if(B(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(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 u=o-i,f=n-e,c=Math.min(u,f),p=this.slice(i,o),l=r.slice(e,n),h=0;h<c;++h)if(p[h]!==l[h]){u=p[h],f=l[h];break}return u<f?-1:f<u?1:0};function wr(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,j(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=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:hr(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):hr(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function hr(t,r,e,n,i){var o=1,u=t.length,f=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,u/=2,f/=2,e/=2}function c(g,k){return o===1?g[k]:g.readUInt16BE(k*o)}var p;if(i){var l=-1;for(p=e;p<u;p++)if(c(t,p)===c(r,l===-1?0:p-l)){if(l===-1&&(l=p),p-l+1===f)return l*o}else l!==-1&&(p-=p-l),l=-1}else for(e+f>u&&(e=u-f),p=e;p>=0;p--){for(var h=!0,F=0;F<f;F++)if(c(t,p+F)!==c(r,F)){h=!1;break}if(h)return p}return-1}a.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};a.prototype.indexOf=function(r,e,n){return wr(this,r,e,n,!0)};a.prototype.lastIndexOf=function(r,e,n){return wr(this,r,e,n,!1)};function ee(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 u=0;u<n;++u){var f=parseInt(r.substr(u*2,2),16);if(j(f))return u;t[e+u]=f}return u}function te(t,r,e,n){return q(Z(r,t.length-e),t,e,n)}function ne(t,r,e,n){return q(xe(r),t,e,n)}function ie(t,r,e,n){return q(Er(r),t,e,n)}function oe(t,r,e,n){return q(we(r,t.length-e),t,e,n)}a.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 u=!1;;)switch(i){case"hex":return ee(this,r,e,n);case"utf8":case"utf-8":return te(this,r,e,n);case"ascii":case"latin1":case"binary":return ne(this,r,e,n);case"base64":return ie(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(t,r,e){return r===0&&e===t.length?z.fromByteArray(t):z.fromByteArray(t.slice(r,e))}function yr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o=t[i],u=null,f=o>239?4:o>223?3:o>191?2:1;if(i+f<=e){var c,p,l,h;switch(f){case 1:o<128&&(u=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(u=h));break;case 3:c=t[i+1],p=t[i+2],(c&192)===128&&(p&192)===128&&(h=(o&15)<<12|(c&63)<<6|p&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:c=t[i+1],p=t[i+2],l=t[i+3],(c&192)===128&&(p&192)===128&&(l&192)===128&&(h=(o&15)<<18|(c&63)<<12|(p&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=f}return ae(n)}var pr=4096;function ae(t){var r=t.length;if(r<=pr)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=pr));return e}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]&127);return n}function ce(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 he(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+=ye[t[o]];return i}function pe(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}a.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,a.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")}a.prototype.readUintLE=a.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,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return i};a.prototype.readUintBE=a.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};a.prototype.readUint8=a.prototype.readUInt8=function(r,e){return r=r>>>0,e||w(r,1,this.length),this[r]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||w(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUint32LE=a.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};a.prototype.readUint32BE=a.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])};a.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,u=0;++u<e&&(o*=256);)i+=this[r+u]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};a.prototype.readIntBE=function(r,e,n){r=r>>>0,e=e>>>0,n||w(r,e,this.length);for(var i=e,o=1,u=this[r+--i];i>0&&(o*=256);)u+=this[r+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};a.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]};a.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};a.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};a.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};a.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]};a.prototype.readFloatLE=function(r,e){return r=r>>>0,e||w(r,4,this.length),D.read(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return r=r>>>0,e||w(r,4,this.length),D.read(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||w(r,8,this.length),D.read(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||w(r,8,this.length),D.read(this,r,!1,52,8)};function y(t,r,e,n,i,o){if(!a.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")}a.prototype.writeUintLE=a.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;y(this,r,e,n,o,0)}var u=1,f=0;for(this[e]=r&255;++f<n&&(u*=256);)this[e+f]=r/u&255;return e+n};a.prototype.writeUintBE=a.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;y(this,r,e,n,o,0)}var u=n-1,f=1;for(this[e+u]=r&255;--u>=0&&(f*=256);)this[e+u]=r/f&255;return e+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,1,255,0),this[e]=r&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,e,n,o-1,-o)}var u=0,f=1,c=0;for(this[e]=r&255;++u<n&&(f*=256);)r<0&&c===0&&this[e+u-1]!==0&&(c=1),this[e+u]=(r/f>>0)-c&255;return e+n};a.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e>>>0,!i){var o=Math.pow(2,8*n-1);y(this,r,e,n,o-1,-o)}var u=n-1,f=1,c=0;for(this[e+u]=r&255;--u>=0&&(f*=256);)r<0&&c===0&&this[e+u+1]!==0&&(c=1),this[e+u]=(r/f>>0)-c&255;return e+n};a.prototype.writeInt8=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2};a.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e>>>0,n||y(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2};a.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e>>>0,n||y(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};a.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e>>>0,n||y(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 gr(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 mr(t,r,e,n,i){return r=+r,e=e>>>0,i||gr(t,r,e,4,34028234663852886e22,-34028234663852886e22),D.write(t,r,e,n,23,4),e+4}a.prototype.writeFloatLE=function(r,e,n){return mr(this,r,e,!0,n)};a.prototype.writeFloatBE=function(r,e,n){return mr(this,r,e,!1,n)};function Fr(t,r,e,n,i){return r=+r,e=e>>>0,i||gr(t,r,e,8,17976931348623157e292,-17976931348623157e292),D.write(t,r,e,n,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,n){return Fr(this,r,e,!0,n)};a.prototype.writeDoubleBE=function(r,e,n){return Fr(this,r,e,!1,n)};a.prototype.copy=function(r,e,n,i){if(!a.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};a.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"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){var o=r.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(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 u;if(typeof r=="number")for(u=e;u<n;++u)this[u]=r;else{var f=a.isBuffer(r)?r:a.from(r,i),c=f.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-e;++u)this[u+e]=f[u%c]}return this};var le=/[^+/0-9A-Za-z-_]/g;function se(t){if(t=t.split("=")[0],t=t.trim().replace(le,""),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=[],u=0;u<n;++u){if(e=t.charCodeAt(u),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=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 xe(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function we(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Er(t){return z.toByteArray(se(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 B(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function j(t){return t!==t}var ye=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 Ur=G((Ue,Ir)=>{x();var s=Ir.exports={},T,d;function V(){throw new Error("setTimeout has not been defined")}function rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?T=setTimeout:T=V}catch(t){T=V}try{typeof clearTimeout=="function"?d=clearTimeout:d=rr}catch(t){d=rr}})();function Br(t){if(T===setTimeout)return setTimeout(t,0);if((T===V||!T)&&setTimeout)return T=setTimeout,setTimeout(t,0);try{return T(t,0)}catch(r){try{return T.call(null,t,0)}catch(e){return T.call(this,t,0)}}}function ge(t){if(d===clearTimeout)return clearTimeout(t);if((d===rr||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(r){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}var v=[],M=!1,C,Y=-1;function me(){!M||!C||(M=!1,C.length?v=C.concat(v):Y=-1,v.length&&Tr())}function Tr(){if(!M){var t=Br(me);M=!0;for(var r=v.length;r;){for(C=v,v=[];++Y<r;)C&&C[Y].run();Y=-1,r=v.length}C=null,M=!1,ge(t)}}s.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];v.push(new dr(t,r)),v.length===1&&!M&&Br(Tr)};function dr(t,r){this.fun=t,this.array=r}dr.prototype.run=function(){this.fun.apply(null,this.array)};s.title="browser";s.browser=!0;s.env={};s.argv=[];s.version="";s.versions={};function _(){}s.on=_;s.addListener=_;s.once=_;s.off=_;s.removeListener=_;s.removeAllListeners=_;s.emit=_;s.prependListener=_;s.prependOnceListener=_;s.listeners=function(t){return[]};s.binding=function(t){throw new Error("process.binding is not supported")};s.cwd=function(){return"/"};s.chdir=function(t){throw new Error("process.chdir is not supported")};s.umask=function(){return 0}});var E,I,ve,x=Gr(()=>{E=H(Ar()),I=H(Ur()),ve=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 Ae={};Or(Ae,{decodeData:()=>Nr,getTokenFromData:()=>Ee});module.exports=Qr(Ae);x();var tr=require("@multiversx/sdk-core"),nr=H(require("bignumber.js"));x();x();var vr=require("@multiversx/sdk-core");function Fe(t){try{let r=new vr.Address(t);return Boolean(r.bech32())}catch(r){return!1}}function _r(t){return(t==null?void 0:t.startsWith("erd"))&&t.length===62&&/^\w+$/.test(t)&&Fe(t)}x();x();function Sr(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>127)return!1;return!0}function Rr(t){let r=t;try{let e=E.Buffer.from(t,"hex").toString();Sr(e)&&e.length>1&&(r=e)}catch(e){}return r}var er={tokenId:"",amount:""},Nr=t=>t.split("@").map((o,u)=>[2,3].includes(u)?o:Rr(o));function Ee(t){if(!t)return er;let r=t.startsWith("ESDTTransfer"),e=t.startsWith("ESDTNFTTransfer")&&t.includes("@");if(r){let[,n,i]=t.split("@");try{let o=E.Buffer.from(n,"hex").toString("ascii");if(!o)return er;let u=new nr.default("0x"+i.replace("0x","")).toString(10);return{tokenId:o,amount:u}}catch(o){console.error("Error getting token from transaction data",o)}}if(e)try{let[,n,i,o,u]=Nr(t);if([n,i,o,u].every(f=>Boolean(f))&&_r(new tr.Address(u).bech32()))return{tokenId:`${n}-${i}`,amount:new nr.default(o,16).toString(10),collection:n,nonce:i,receiver:new tr.Address(u).bech32()}}catch(n){}return er}0&&(module.exports={decodeData,getTokenFromData});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|