@multiversx/sdk-dapp 3.0.17 → 3.0.18
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/components/DappModal.js +1 -1
- package/UI/DappModal/components/index.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/NotificationModal.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/SignWithCrossWindowWalletModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithCrossWindowWalletModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/ConfirmAmount.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/ConfirmAmountData.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountData/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/ConfirmAmountLabel.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountLabel/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/ConfirmAmountNftSft.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/ConfirmAmountNftSft/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/ConfirmFee.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmFee/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/ConfirmReceiver.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmReceiver/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/SignWithExtensionModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithIframeModal/SignWithIframeModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithIframeModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/LedgerGuardianSigningModalError.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/SignWithOperaModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithPasskeyModal/SignWithPasskeyModal.js +1 -1
- package/UI/SignTransactionsModals/SignWithPasskeyModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/SignWithWalletConnectModal.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/SignWaitingScreenModal/SignWaitingScreenModal.js +1 -1
- package/UI/SignTransactionsModals/components/SignWaitingScreenModal/index.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/TransactionData.js +1 -1
- package/UI/TransactionData/components/TransactionDataDecode.js +1 -1
- package/UI/TransactionData/components/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/components/ModalLink/ModalLink.js +1 -1
- package/UI/TransactionInfo/components/DataField/components/ModalLink/index.js +1 -1
- package/UI/TransactionInfo/components/DataField/components/index.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/AccountName.js +1 -1
- package/UI/TransactionsTable/components/FailedTransactions.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/TransactionMethod.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/CustomComponentToast.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/DefaultToastDeleteButton.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/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/Trim/Trim.js +1 -1
- package/UI/Trim/index.js +1 -1
- package/UI/UsdValue/UsdValue.js +1 -1
- package/UI/UsdValue/index.js +1 -1
- package/UI/extension/ExtensionLoginButton/ExtensionLoginButton.js +1 -1
- package/UI/extension/ExtensionLoginButton/index.js +1 -1
- package/UI/iframe/IframeLoginButton/IframeButton.js +1 -1
- package/UI/iframe/IframeLoginButton/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/LedgerLoginButton.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/AddressRow.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressRow/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/getAuthTokenText.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/helpers/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect/LedgerConnect.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerConnect/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoading/LedgerLoading.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoading/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContainer.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/LedgerLoginContent.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContent/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/LedgerLoginContentBody.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerLoginContentBody/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/LedgerScamPhishingAlert.js +1 -1
- package/UI/ledger/LedgerLoginContainer/LedgerScamPhishingAlert/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/metamask/MetamaskLoginButton/MetamaskLoginButton.js +1 -1
- package/UI/metamask/MetamaskLoginButton/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/OperaWalletLoginButton.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/passkey/PasskeyLoginButton/PasskeyLoginButton.js +1 -1
- package/UI/passkey/PasskeyLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +1 -1
- package/UI/walletConnect/WalletConnectConnectionStatus/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContainer.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/WalletConnectLoginContent.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/WalletConnectLoginContent/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton.js +1 -1
- package/UI/webWallet/CrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +1 -1
- package/UI/webWallet/XaliasCrossWindowLoginButton/index.js +1 -1
- package/UI/webWallet/XaliasLoginButton/XaliasLoginButton.js +1 -1
- package/UI/webWallet/XaliasLoginButton/index.js +1 -1
- package/__chunks__/chunk-27FH5G67.js +2 -0
- package/__chunks__/{chunk-WT3FGIIY.js → chunk-2AIEU6LZ.js} +2 -2
- package/__chunks__/{chunk-YLFYQYD3.js → chunk-2GRCIZYF.js} +2 -2
- package/__chunks__/{chunk-XWSSWFTD.js → chunk-2HIUA3PT.js} +2 -2
- package/__chunks__/{chunk-RMNLKAFR.js → chunk-2IP7PG2N.js} +2 -2
- package/__chunks__/{chunk-IFCEM2UW.js → chunk-2JGKGQC4.js} +2 -2
- package/__chunks__/{chunk-A2CBNGN4.js → chunk-2KGXFHHC.js} +2 -2
- package/__chunks__/{chunk-MRNCVD3U.js → chunk-2KLEV5AU.js} +2 -2
- package/__chunks__/{chunk-BFRGEQGK.js → chunk-2NCVBO6D.js} +2 -2
- package/__chunks__/{chunk-YWFYVD4G.js → chunk-2OGUKUYW.js} +2 -2
- package/__chunks__/{chunk-KSK7DKUN.js → chunk-2RG4XFAN.js} +2 -2
- package/__chunks__/{chunk-5IJ6LP4I.js → chunk-2SCHD7Y5.js} +2 -2
- package/__chunks__/{chunk-NLKVPZDS.js → chunk-2VM6SFLZ.js} +2 -2
- package/__chunks__/{chunk-YBAE7GFQ.js → chunk-2Y7KT3FW.js} +2 -2
- package/__chunks__/{chunk-LZQZJU3W.js → chunk-33ZQXWGC.js} +2 -2
- package/__chunks__/{chunk-OKIOGBK3.js → chunk-366BFEAQ.js} +2 -2
- package/__chunks__/{chunk-NXKTQZRX.js → chunk-36ZXKKNC.js} +2 -2
- package/__chunks__/{chunk-U7DVMPTX.js → chunk-3AOUWDRN.js} +2 -2
- package/__chunks__/{chunk-VYQ6IUMX.js → chunk-3B4DWW6O.js} +2 -2
- package/__chunks__/{chunk-3A4GVG6U.js → chunk-3CINYBP7.js} +2 -2
- package/__chunks__/{chunk-P7WESPEI.js → chunk-3D2KUB25.js} +2 -2
- package/__chunks__/{chunk-TW45XY74.js → chunk-3FRL7P2E.js} +2 -2
- package/__chunks__/{chunk-22JN6N73.js → chunk-3L3N56FB.js} +2 -2
- package/__chunks__/{chunk-3WVAONFD.js → chunk-3NXEJBK7.js} +2 -2
- package/__chunks__/{chunk-O6NULEHL.js → chunk-3QAMKN76.js} +2 -2
- package/__chunks__/{chunk-OEE4AKVK.js → chunk-3VDMQS32.js} +2 -2
- package/__chunks__/{chunk-K27V442V.js → chunk-42M6IY4Z.js} +2 -2
- package/__chunks__/chunk-443DT25B.js +2 -0
- package/__chunks__/{chunk-ORLHMIEC.js → chunk-4EMUKO3O.js} +2 -2
- package/__chunks__/chunk-4H47G34Q.js +2 -0
- package/__chunks__/{chunk-TI3ANIQU.js → chunk-4MYDIG2C.js} +2 -2
- package/__chunks__/{chunk-MY244MYG.js → chunk-4QMNIBLK.js} +2 -2
- package/__chunks__/{chunk-5C2GZIUZ.js → chunk-4YP6ER5C.js} +2 -2
- package/__chunks__/{chunk-7SETDCR4.js → chunk-52FCCIBT.js} +2 -2
- package/__chunks__/chunk-52IXS66S.js +2 -0
- package/__chunks__/{chunk-3VDW6P23.js → chunk-5B3VR2FV.js} +2 -2
- package/__chunks__/{chunk-NQWDBVCU.js → chunk-5IFIHV7J.js} +2 -2
- package/__chunks__/{chunk-L3PFBTYT.js → chunk-5PD4V7PN.js} +2 -2
- package/__chunks__/{chunk-XYG2GT62.js → chunk-5Q4NNIXY.js} +2 -2
- package/__chunks__/{chunk-WGJCID34.js → chunk-5TQ6M4FL.js} +2 -2
- package/__chunks__/chunk-5YK22TET.js +2 -0
- package/__chunks__/{chunk-UNXXYSEH.js → chunk-5YOFTA6Z.js} +2 -2
- package/__chunks__/{chunk-6MVSRKSW.js → chunk-5ZE4DETZ.js} +2 -2
- package/__chunks__/chunk-5ZEU6QMA.js +2 -0
- package/__chunks__/{chunk-HGJG26HB.js → chunk-6AJXQNY4.js} +2 -2
- package/__chunks__/{chunk-G3WMM467.js → chunk-6DGZJKY3.js} +2 -2
- package/__chunks__/chunk-6E3DEOH3.js +2 -0
- package/__chunks__/{chunk-YDTXMKIU.js → chunk-6IOVE2XD.js} +2 -2
- package/__chunks__/{chunk-TQH47APX.js → chunk-6JKT3JAV.js} +2 -2
- package/__chunks__/{chunk-USLL3BF7.js → chunk-6KOTAMEE.js} +2 -2
- package/__chunks__/{chunk-KHW6DXSV.js → chunk-6QMORR5K.js} +2 -2
- package/__chunks__/{chunk-GMMNKNOR.js → chunk-6VEYADOE.js} +2 -2
- package/__chunks__/chunk-6W7DVGIL.js +2 -0
- package/__chunks__/{chunk-GY4NLIXS.js → chunk-73TBJORY.js} +2 -2
- package/__chunks__/{chunk-EY67IUVU.js → chunk-75T2I3S5.js} +2 -2
- package/__chunks__/{chunk-65IDFVWB.js → chunk-7ICEDXUF.js} +2 -2
- package/__chunks__/{chunk-QU55M6V5.js → chunk-7IKDWUZY.js} +2 -2
- package/__chunks__/{chunk-XNTBUCLS.js → chunk-7MEQWRNH.js} +2 -2
- package/__chunks__/chunk-7OACEH3X.js +2 -0
- package/__chunks__/{chunk-U3XNHBKX.js → chunk-7UV4S7IL.js} +2 -2
- package/__chunks__/{chunk-EIPIMQWF.js → chunk-7XPJPXQF.js} +2 -2
- package/__chunks__/{chunk-HC2LFFDZ.js → chunk-A4X2GOUI.js} +2 -2
- package/__chunks__/{chunk-HJV3S3GA.js → chunk-A5DQLJGX.js} +2 -2
- package/__chunks__/{chunk-LVFD76RL.js → chunk-A6Z6LN54.js} +2 -2
- package/__chunks__/{chunk-U4AJKPBS.js → chunk-A6ZSNFXP.js} +2 -2
- package/__chunks__/{chunk-YO7XRCO7.js → chunk-ABDJB5G2.js} +2 -2
- package/__chunks__/{chunk-RJ5NZ6AO.js → chunk-ACV6ZBKI.js} +2 -2
- package/__chunks__/{chunk-LGVKJWOE.js → chunk-AFOBGIC6.js} +2 -2
- package/__chunks__/{chunk-Y2RCTKBX.js → chunk-AHFVMJ7X.js} +2 -2
- package/__chunks__/{chunk-7OFHGTYC.js → chunk-AIKFVFQ3.js} +2 -2
- package/__chunks__/{chunk-ICXOCZAA.js → chunk-AMFNXVCM.js} +2 -2
- package/__chunks__/{chunk-YCJWST4I.js → chunk-AN3PVYB6.js} +2 -2
- package/__chunks__/{chunk-62STDYU4.js → chunk-AS43CSOP.js} +2 -2
- package/__chunks__/{chunk-MVQ5M2I7.js → chunk-ASQ3U46M.js} +2 -2
- package/__chunks__/{chunk-O5WZCBNH.js → chunk-ASSEYEJJ.js} +2 -2
- package/__chunks__/{chunk-S4F4I3EL.js → chunk-ATGKNVBX.js} +2 -2
- package/__chunks__/chunk-AVGGN2LY.js +2 -0
- package/__chunks__/{chunk-2V3E3WRB.js → chunk-B2XE3XO6.js} +2 -2
- package/__chunks__/chunk-BFHMV5A6.js +2 -0
- package/__chunks__/chunk-BG5F4VLD.js +2 -0
- package/__chunks__/{chunk-3CUOMC2D.js → chunk-BHK3YIYA.js} +2 -2
- package/__chunks__/{chunk-3KHT75N2.js → chunk-BK3F643X.js} +2 -2
- package/__chunks__/{chunk-OBWRRQFF.js → chunk-BL3YCAIK.js} +2 -2
- package/__chunks__/chunk-BMV2L5DM.js +2 -0
- package/__chunks__/{chunk-BRXIN6O6.js → chunk-BNAILBH3.js} +2 -2
- package/__chunks__/{chunk-O5X5ZJ2X.js → chunk-BNDLAUUS.js} +2 -2
- package/__chunks__/{chunk-NUAT4GP2.js → chunk-BPUHN7WW.js} +2 -2
- package/__chunks__/{chunk-LB35NEGJ.js → chunk-BQZAL57Q.js} +2 -2
- package/__chunks__/{chunk-ZV5KFJQG.js → chunk-BRMDGFCG.js} +2 -2
- package/__chunks__/{chunk-XYIINX7L.js → chunk-BUXN3GSA.js} +2 -2
- package/__chunks__/chunk-BWI6T72S.js +2 -0
- package/__chunks__/{chunk-S74OWSEP.js → chunk-C4I5OLSZ.js} +2 -2
- package/__chunks__/{chunk-2KDYG3SO.js → chunk-C64OHZJI.js} +2 -2
- package/__chunks__/{chunk-QAXYRYC4.js → chunk-C66BVUKM.js} +2 -2
- package/__chunks__/{chunk-BBWWGDQW.js → chunk-CDJPQRSF.js} +2 -2
- package/__chunks__/{chunk-IV77VRKI.js → chunk-CG2QJHSL.js} +2 -2
- package/__chunks__/{chunk-UYTH5YHT.js → chunk-CKNPVVRA.js} +2 -2
- package/__chunks__/chunk-CL6IW7IS.js +2 -0
- package/__chunks__/{chunk-TMS47H5N.js → chunk-CLMGL2UV.js} +2 -2
- package/__chunks__/{chunk-ODC7QWD2.js → chunk-CN2BS3Z5.js} +2 -2
- package/__chunks__/{chunk-YUAQJODP.js → chunk-CPTGXWUV.js} +2 -2
- package/__chunks__/chunk-CQYDQFE4.js +2 -0
- package/__chunks__/chunk-CS3BFVVL.js +2 -0
- package/__chunks__/{chunk-KM22PKZI.js → chunk-CUYJAD7W.js} +2 -2
- package/__chunks__/{chunk-UK6TMYAE.js → chunk-CYSLBY5U.js} +2 -2
- package/__chunks__/chunk-D4NANPZS.js +2 -0
- package/__chunks__/{chunk-YYK62RW6.js → chunk-D62OYHN4.js} +2 -2
- package/__chunks__/{chunk-PWN2GZNT.js → chunk-D75WP7GF.js} +2 -2
- package/__chunks__/{chunk-C4VT2ERW.js → chunk-DBEM42SR.js} +2 -2
- package/__chunks__/{chunk-FPLYKLXQ.js → chunk-DBRTYYBP.js} +2 -2
- package/__chunks__/{chunk-LE6E76JC.js → chunk-DEZFV57Q.js} +2 -2
- package/__chunks__/{chunk-PO5AWVDZ.js → chunk-DFXCBJPX.js} +2 -2
- package/__chunks__/{chunk-TIEZXLF2.js → chunk-DHRUNZEK.js} +2 -2
- package/__chunks__/chunk-DL6ZH3ZM.js +2 -0
- package/__chunks__/{chunk-GIRJIZEX.js → chunk-DOSMNWM2.js} +2 -2
- package/__chunks__/{chunk-TKAZPDQD.js → chunk-DPD3XJBG.js} +2 -2
- package/__chunks__/chunk-DSNZ6WWJ.js +2 -0
- package/__chunks__/{chunk-7P4DCZH2.js → chunk-DYVTV6RQ.js} +2 -2
- package/__chunks__/{chunk-4NEPCTFX.js → chunk-E4VQH6BK.js} +2 -2
- package/__chunks__/{chunk-ATHPZDJE.js → chunk-E5O47KXV.js} +2 -2
- package/__chunks__/{chunk-NHOS36NE.js → chunk-E663HYOF.js} +2 -2
- package/__chunks__/{chunk-WEOGIT34.js → chunk-EB7KSHVC.js} +2 -2
- package/__chunks__/{chunk-EU5ABVL3.js → chunk-ELUYAFQH.js} +2 -2
- package/__chunks__/chunk-EMIZYMPZ.js +2 -0
- package/__chunks__/{chunk-LBOSXJ4J.js → chunk-EQ6O7XYT.js} +2 -2
- package/__chunks__/{chunk-EF2UXIU4.js → chunk-EZ2PLUR5.js} +2 -2
- package/__chunks__/{chunk-VIQBMB7R.js → chunk-F4PPWPLD.js} +2 -2
- package/__chunks__/{chunk-BZ5ZNPRL.js → chunk-F74R22JL.js} +2 -2
- package/__chunks__/{chunk-BPULXLJZ.js → chunk-FERW6O6J.js} +2 -2
- package/__chunks__/{chunk-UXCGROP3.js → chunk-FFPSOIDK.js} +2 -2
- package/__chunks__/{chunk-IS3UGNWF.js → chunk-FLNPSKM5.js} +2 -2
- package/__chunks__/chunk-FOV4YAAN.js +2 -0
- package/__chunks__/{chunk-NWH3BG5P.js → chunk-FUNIQ52G.js} +2 -2
- package/__chunks__/{chunk-5RSAZX46.js → chunk-FXTYNVIR.js} +2 -2
- package/__chunks__/{chunk-BWGJEGRO.js → chunk-FY6ENH4F.js} +2 -2
- package/__chunks__/{chunk-YXZHP6AI.js → chunk-G2GEDE5X.js} +2 -2
- package/__chunks__/{chunk-TWKW7IAP.js → chunk-G2TQCLY5.js} +2 -2
- package/__chunks__/{chunk-O4AMG7HZ.js → chunk-G7NPLNV6.js} +2 -2
- package/__chunks__/{chunk-XG22CTWL.js → chunk-GAMY5LR7.js} +2 -2
- package/__chunks__/{chunk-GIMVUCZB.js → chunk-GC24T2RU.js} +2 -2
- package/__chunks__/{chunk-RTG6UTB2.js → chunk-GC3IMAFY.js} +2 -2
- package/__chunks__/{chunk-RYJAJ56G.js → chunk-GCNH3RZR.js} +2 -2
- package/__chunks__/{chunk-SSCQNJ5T.js → chunk-GDIJ3VWC.js} +2 -2
- package/__chunks__/{chunk-3FBESZUW.js → chunk-GDUQ43F2.js} +2 -2
- package/__chunks__/chunk-GE6AWBV7.js +2 -0
- package/__chunks__/{chunk-EOBC3SGK.js → chunk-GNYH4SPT.js} +2 -2
- package/__chunks__/{chunk-DYQCW5KD.js → chunk-GPRQNTUG.js} +2 -2
- package/__chunks__/{chunk-ZA3EOZGC.js → chunk-GSIGCMHA.js} +2 -2
- package/__chunks__/{chunk-S7M2FS7P.js → chunk-GSQ6RX24.js} +2 -2
- package/__chunks__/{chunk-BKKRTXC4.js → chunk-GUBGMHIC.js} +2 -2
- package/__chunks__/{chunk-P7P5UUFA.js → chunk-GWK5BOR4.js} +2 -2
- package/__chunks__/chunk-GYFGZGPB.js +2 -0
- package/__chunks__/{chunk-LRYZZFQK.js → chunk-H2MQCKDV.js} +2 -2
- package/__chunks__/{chunk-OLOMMKEU.js → chunk-H7F7QSSU.js} +2 -2
- package/__chunks__/{chunk-N7ADAEPB.js → chunk-HAKH2P4P.js} +2 -2
- package/__chunks__/{chunk-DUNXCYMV.js → chunk-HEV2DLYP.js} +2 -2
- package/__chunks__/{chunk-MT3Y2HBI.js → chunk-HFGBJ5GL.js} +2 -2
- package/__chunks__/chunk-HGBHLYSY.js +2 -0
- package/__chunks__/{chunk-AFDBN25I.js → chunk-HI6OFQF5.js} +2 -2
- package/__chunks__/{chunk-O2ZEL6NT.js → chunk-HK3BL5WJ.js} +2 -2
- package/__chunks__/chunk-HK3IGHZP.js +2 -0
- package/__chunks__/chunk-HL5YGNOT.js +2 -0
- package/__chunks__/{chunk-5NULPHFT.js → chunk-HLTYS3PQ.js} +2 -2
- package/__chunks__/{chunk-FKBZ5UQI.js → chunk-HV7MRP6D.js} +2 -2
- package/__chunks__/{chunk-BYMJYEHI.js → chunk-HWKORQ2K.js} +2 -2
- package/__chunks__/{chunk-4GFEXTZD.js → chunk-I5OGC7V5.js} +2 -2
- package/__chunks__/{chunk-FNDDL6TB.js → chunk-IAKCDH5D.js} +2 -2
- package/__chunks__/{chunk-APY6NMJV.js → chunk-IE3IVXRG.js} +2 -2
- package/__chunks__/{chunk-ZENU2WFM.js → chunk-IGORY6G3.js} +2 -2
- package/__chunks__/{chunk-T4VQSZEL.js → chunk-IJKIVSOH.js} +2 -2
- package/__chunks__/{chunk-KQ7RVOIZ.js → chunk-IN4SP3V2.js} +2 -2
- package/__chunks__/{chunk-V76FYMTO.js → chunk-IOK2AYLN.js} +2 -2
- package/__chunks__/{chunk-JRTEZHT3.js → chunk-IOL6OMHE.js} +2 -2
- package/__chunks__/{chunk-RZKCPVPQ.js → chunk-IUMHVMTK.js} +2 -2
- package/__chunks__/chunk-IXUNCHI4.js +2 -0
- package/__chunks__/{chunk-TFFWE4BT.js → chunk-IZ2LTUAS.js} +2 -2
- package/__chunks__/{chunk-B3QOKO5I.js → chunk-J5WQX5EE.js} +2 -2
- package/__chunks__/{chunk-YTK76YT2.js → chunk-JA3SLGX2.js} +2 -2
- package/__chunks__/{chunk-TQT5YUX5.js → chunk-JMTSXEZ3.js} +2 -2
- package/__chunks__/{chunk-6N4RLQ5C.js → chunk-JN4X6QCT.js} +2 -2
- package/__chunks__/{chunk-SOT46JZ4.js → chunk-JSANEGSJ.js} +2 -2
- package/__chunks__/{chunk-M2ZPVVVY.js → chunk-JTMWMYCS.js} +2 -2
- package/__chunks__/{chunk-NP4OVEKX.js → chunk-JUNOVW6Y.js} +2 -2
- package/__chunks__/{chunk-S7QUPUT2.js → chunk-JVKY75JG.js} +2 -2
- package/__chunks__/{chunk-LBNVU6PX.js → chunk-K34NQEQO.js} +2 -2
- package/__chunks__/{chunk-5FOAU3JX.js → chunk-K6Q3BCRA.js} +2 -2
- package/__chunks__/{chunk-725DQS6I.js → chunk-K7ITUXHA.js} +2 -2
- package/__chunks__/{chunk-6DQ7WJGR.js → chunk-KACXL2VQ.js} +2 -2
- package/__chunks__/{chunk-QFGYD6TB.js → chunk-KBWCG46F.js} +2 -2
- package/__chunks__/{chunk-IJUEBJAF.js → chunk-KKHZHP3E.js} +2 -2
- package/__chunks__/{chunk-OD662V2W.js → chunk-KPFB6TA7.js} +2 -2
- package/__chunks__/{chunk-QU7CA45V.js → chunk-KRAXDXND.js} +2 -2
- package/__chunks__/chunk-KSBIKCRA.js +2 -0
- package/__chunks__/{chunk-ABCTLPKE.js → chunk-KSXK7ZQS.js} +2 -2
- package/__chunks__/{chunk-TWTHHNTM.js → chunk-KY6VRMZ7.js} +2 -2
- package/__chunks__/{chunk-CGWAXN6N.js → chunk-L5MDW727.js} +2 -2
- package/__chunks__/{chunk-A4LWJRGO.js → chunk-L5QBPZ5I.js} +2 -2
- package/__chunks__/{chunk-5LRIVXCH.js → chunk-L6WTPOV5.js} +2 -2
- package/__chunks__/{chunk-FAKD6TQU.js → chunk-L7JIR6OV.js} +2 -2
- package/__chunks__/{chunk-MEVXHA66.js → chunk-LEKYTY2K.js} +2 -2
- package/__chunks__/{chunk-L2MNSAH6.js → chunk-LMMPVJHS.js} +2 -2
- package/__chunks__/{chunk-KRA5K2CA.js → chunk-LPRQ2IYP.js} +2 -2
- package/__chunks__/chunk-LTQQHGJA.js +2 -0
- package/__chunks__/{chunk-YMBGOTL7.js → chunk-LUGGITMH.js} +2 -2
- package/__chunks__/{chunk-E4B3E3AR.js → chunk-LX7I6YEI.js} +2 -2
- package/__chunks__/{chunk-OJE3TJIQ.js → chunk-LYB2N5RS.js} +2 -2
- package/__chunks__/{chunk-WJR6UK3M.js → chunk-LZM7JQGH.js} +2 -2
- package/__chunks__/{chunk-NHRIRJWC.js → chunk-M3I2BY6B.js} +2 -2
- package/__chunks__/chunk-M3KZ5ZCM.js +2 -0
- package/__chunks__/chunk-M7QUL4WU.js +2 -0
- package/__chunks__/{chunk-UJ5NQGFL.js → chunk-MBNT47JC.js} +2 -2
- package/__chunks__/{chunk-PRVH5LV4.js → chunk-MCBGUPUJ.js} +2 -2
- package/__chunks__/{chunk-FKPR7F7N.js → chunk-MFPKPOZT.js} +2 -2
- package/__chunks__/{chunk-M56LZ3W7.js → chunk-MG4D5Y35.js} +2 -2
- package/__chunks__/{chunk-ZHI6VDK3.js → chunk-MJJOJ7DA.js} +2 -2
- package/__chunks__/{chunk-SVN5HNM2.js → chunk-MTF3EZIB.js} +2 -2
- package/__chunks__/{chunk-WPFAZXYU.js → chunk-MYP4XQY5.js} +2 -2
- package/__chunks__/{chunk-UJP5XOCK.js → chunk-N2CCCYOS.js} +2 -2
- package/__chunks__/{chunk-CCWOG6MB.js → chunk-N2M34KLB.js} +2 -2
- package/__chunks__/chunk-N5OGU3OY.js +2 -0
- package/__chunks__/{chunk-QIF4RAQV.js → chunk-N6NWN72A.js} +2 -2
- package/__chunks__/chunk-NGSXPTM7.js +2 -0
- package/__chunks__/{chunk-QJ7HFUDR.js → chunk-NMC25ZUJ.js} +2 -2
- package/__chunks__/{chunk-C3ZPT2ID.js → chunk-NNNZOKRA.js} +2 -2
- package/__chunks__/chunk-NOFGMWJX.js +2 -0
- package/__chunks__/{chunk-GEH3ZXZJ.js → chunk-NPOQRA75.js} +2 -2
- package/__chunks__/{chunk-SFYZHJUF.js → chunk-NRUQYCRY.js} +2 -2
- package/__chunks__/chunk-NSUEKEPT.js +2 -0
- package/__chunks__/{chunk-N2XOKZ5I.js → chunk-NTZB4F5Z.js} +2 -2
- package/__chunks__/{chunk-SIVLWB4D.js → chunk-NVVUEWXN.js} +2 -2
- package/__chunks__/{chunk-SX5YBID4.js → chunk-NW56V3MY.js} +2 -2
- package/__chunks__/{chunk-VOVGM76A.js → chunk-OGQJGQSH.js} +2 -2
- package/__chunks__/{chunk-RW52YTWK.js → chunk-OHDOIVLS.js} +2 -2
- package/__chunks__/chunk-OJDKSNKS.js +2 -0
- package/__chunks__/{chunk-W6DYGRIO.js → chunk-OR42DSOO.js} +2 -2
- package/__chunks__/{chunk-SBUSN3HF.js → chunk-OT7M3OPU.js} +2 -2
- package/__chunks__/{chunk-IS2TKLNE.js → chunk-OUSIKRNJ.js} +2 -2
- package/__chunks__/{chunk-AOHMQPZL.js → chunk-OVTUQNFB.js} +2 -2
- package/__chunks__/{chunk-GBKWCLTK.js → chunk-PAIRJY2N.js} +2 -2
- package/__chunks__/{chunk-NPCALBS3.js → chunk-PBD3PMQ6.js} +2 -2
- package/__chunks__/{chunk-I4E2LF4E.js → chunk-PQQY2VA2.js} +2 -2
- package/__chunks__/{chunk-IPXTANOK.js → chunk-PTP4ZK4E.js} +2 -2
- package/__chunks__/{chunk-XXOINCQR.js → chunk-PXO3KXPV.js} +2 -2
- package/__chunks__/chunk-Q4L3J62S.js +2 -0
- package/__chunks__/chunk-Q7G6IS5N.js +2 -0
- package/__chunks__/{chunk-PBCZXHIJ.js → chunk-QGCSWJ3J.js} +2 -2
- package/__chunks__/chunk-QQGKX76V.js +2 -0
- package/__chunks__/chunk-QSQMERZY.js +2 -0
- package/__chunks__/{chunk-N3TKVWQ6.js → chunk-QZD5N7RZ.js} +2 -2
- package/__chunks__/chunk-R4NOSGSY.js +2 -0
- package/__chunks__/{chunk-IZT5M3NI.js → chunk-R53SJ3NZ.js} +2 -2
- package/__chunks__/{chunk-II4JTXXI.js → chunk-R666NKD7.js} +2 -2
- package/__chunks__/{chunk-YS264G4H.js → chunk-RBG6ZS7K.js} +2 -2
- package/__chunks__/{chunk-5FHEIYXO.js → chunk-RC7NBVBT.js} +2 -2
- package/__chunks__/chunk-RMSI2KAF.js +2 -0
- package/__chunks__/{chunk-DBXSYSN3.js → chunk-RORU34DN.js} +2 -2
- package/__chunks__/chunk-ROVLCWLB.js +2 -0
- package/__chunks__/{chunk-BNTCTEV4.js → chunk-RPRH53SN.js} +2 -2
- package/__chunks__/{chunk-3PQESL5F.js → chunk-RWKKUCND.js} +2 -2
- package/__chunks__/chunk-S6WU7FIP.js +2 -0
- package/__chunks__/{chunk-T56U5SCF.js → chunk-SD2ZJL4Z.js} +2 -2
- package/__chunks__/{chunk-U73ZTPDU.js → chunk-SIBZP36W.js} +2 -2
- package/__chunks__/{chunk-BSDAN6CW.js → chunk-SJFNSQDE.js} +2 -2
- package/__chunks__/chunk-SKQHXYAY.js +2 -0
- package/__chunks__/{chunk-WRX3NWCT.js → chunk-SKX4EJGO.js} +2 -2
- package/__chunks__/chunk-SMD3P2QU.js +2 -0
- package/__chunks__/chunk-SNJ63XJS.js +2 -0
- package/__chunks__/{chunk-X5ICOU7C.js → chunk-SOOZPADC.js} +2 -2
- package/__chunks__/chunk-SUNJRNCA.js +2 -0
- package/__chunks__/{chunk-YHUPKAM7.js → chunk-SUPKMGBY.js} +2 -2
- package/__chunks__/{chunk-MAV57NWH.js → chunk-SUY4WMMQ.js} +2 -2
- package/__chunks__/chunk-SYEARPKN.js +2 -0
- package/__chunks__/chunk-SYYNFXUN.js +2 -0
- package/__chunks__/{chunk-YPMP62YX.js → chunk-T24YSU7I.js} +2 -2
- package/__chunks__/{chunk-NOMYSJLF.js → chunk-T3SLPLBT.js} +2 -2
- package/__chunks__/chunk-TELFM4OQ.js +2 -0
- package/__chunks__/{chunk-ABVIX57I.js → chunk-TFZRV4WV.js} +2 -2
- package/__chunks__/{chunk-LSB7OMSQ.js → chunk-TIMS5S2C.js} +2 -2
- package/__chunks__/{chunk-HVQFYTGW.js → chunk-TLG4GXZW.js} +2 -2
- package/__chunks__/{chunk-FATBVCBP.js → chunk-TLR5RFIN.js} +2 -2
- package/__chunks__/{chunk-6FPX673H.js → chunk-TOCSIKJA.js} +2 -2
- package/__chunks__/{chunk-266G5JQJ.js → chunk-TPMTRTYF.js} +2 -2
- package/__chunks__/{chunk-CYSDZCF5.js → chunk-TRUASFOC.js} +2 -2
- package/__chunks__/{chunk-ATPUAU7X.js → chunk-U7I66IZO.js} +2 -2
- package/__chunks__/{chunk-2YLBTMG6.js → chunk-UDMQAGTD.js} +2 -2
- package/__chunks__/{chunk-64HD2IJE.js → chunk-UES4R3TC.js} +2 -2
- package/__chunks__/{chunk-FE6U2NQN.js → chunk-UH2U3I5W.js} +2 -2
- package/__chunks__/{chunk-C4CGIKHQ.js → chunk-UPRCDBIL.js} +2 -2
- package/__chunks__/{chunk-B7HYNARA.js → chunk-UTY6BZUT.js} +2 -2
- package/__chunks__/{chunk-XKIHSHRR.js → chunk-UXY5WZPX.js} +2 -2
- package/__chunks__/{chunk-TA6KXPDS.js → chunk-V3TVICHS.js} +2 -2
- package/__chunks__/{chunk-YUFTIAXC.js → chunk-VLCJAOJZ.js} +2 -2
- package/__chunks__/chunk-VUAMGFOX.js +2 -0
- package/__chunks__/chunk-VYUSRJOU.js +2 -0
- package/__chunks__/{chunk-RDD3H2JW.js → chunk-W6MOVXXY.js} +2 -2
- package/__chunks__/{chunk-BTK7EQXR.js → chunk-W6YGSEZ4.js} +2 -2
- package/__chunks__/{chunk-KRZC3JQ2.js → chunk-WANC2RXX.js} +2 -2
- package/__chunks__/{chunk-VXQEK23G.js → chunk-WJSEVDZX.js} +2 -2
- package/__chunks__/{chunk-MHWNNEJG.js → chunk-WLELEAGK.js} +2 -2
- package/__chunks__/{chunk-JRZH7GPF.js → chunk-WNUN6H4T.js} +2 -2
- package/__chunks__/{chunk-PWSOJTA4.js → chunk-WOXPP5OG.js} +2 -2
- package/__chunks__/{chunk-PFVDDVOD.js → chunk-WP6VM5J2.js} +2 -2
- package/__chunks__/{chunk-MWTZ7DNL.js → chunk-WQDTUJFG.js} +2 -2
- package/__chunks__/{chunk-PQ24WIES.js → chunk-WQPYK64A.js} +2 -2
- package/__chunks__/{chunk-AVJDCB7V.js → chunk-WRXNJQIY.js} +2 -2
- package/__chunks__/chunk-WWSMEEPR.js +2 -0
- package/__chunks__/{chunk-HCRA3RAT.js → chunk-XBNVZQA4.js} +2 -2
- package/__chunks__/{chunk-TKR4FVIS.js → chunk-XCEBI3EQ.js} +2 -2
- package/__chunks__/{chunk-X7AZT6CA.js → chunk-XCETJVG5.js} +2 -2
- package/__chunks__/{chunk-GSKFIRV6.js → chunk-XDRLF7XB.js} +2 -2
- package/__chunks__/{chunk-IMQ4I6WW.js → chunk-XECVYP4E.js} +2 -2
- package/__chunks__/{chunk-M56Y4AHA.js → chunk-XEEY3HDK.js} +2 -2
- package/__chunks__/{chunk-HJUPUIOO.js → chunk-XL7XIOJR.js} +2 -2
- package/__chunks__/{chunk-CN47U3Z4.js → chunk-XLNHVIPK.js} +2 -2
- package/__chunks__/{chunk-N7AWBBNE.js → chunk-XNYEQEU6.js} +2 -2
- package/__chunks__/{chunk-OEND4E23.js → chunk-XP6N4TB2.js} +2 -2
- package/__chunks__/{chunk-VJYHC2IC.js → chunk-XPMQVAXE.js} +2 -2
- package/__chunks__/{chunk-DUE4NORV.js → chunk-XRNT76UY.js} +2 -2
- package/__chunks__/chunk-XSCEIJSP.js +2 -0
- package/__chunks__/{chunk-VV4EKABW.js → chunk-XSPP3G57.js} +2 -2
- package/__chunks__/chunk-XUEKGCYZ.js +2 -0
- package/__chunks__/chunk-XVIPFZ65.js +2 -0
- package/__chunks__/{chunk-YE4P3ZZ7.js → chunk-Y36G3HGF.js} +2 -2
- package/__chunks__/{chunk-YGZXGGKB.js → chunk-Y4OZCVUZ.js} +2 -2
- package/__chunks__/chunk-YGWO7L5T.js +2 -0
- package/__chunks__/{chunk-5VE2X5PQ.js → chunk-YH4AUJVA.js} +2 -2
- package/__chunks__/chunk-YHUSZC3I.js +2 -0
- package/__chunks__/{chunk-4Q52MB5B.js → chunk-YIMSX4VD.js} +2 -2
- package/__chunks__/{chunk-OZDL46NA.js → chunk-YLPK7HAX.js} +2 -2
- package/__chunks__/{chunk-XYNRMMQW.js → chunk-YNW5XE5N.js} +2 -2
- package/__chunks__/{chunk-YOBVDDDP.js → chunk-YOZHK36J.js} +2 -2
- package/__chunks__/{chunk-LJKUHO7G.js → chunk-YPOZU6Y3.js} +2 -2
- package/__chunks__/{chunk-HZLQIFYM.js → chunk-YR74VMN6.js} +2 -2
- package/__chunks__/{chunk-NQUPSQWU.js → chunk-YSAZC3FJ.js} +2 -2
- package/__chunks__/chunk-YVGR3MVT.js +2 -0
- package/__chunks__/{chunk-3WJYDELU.js → chunk-YVH24RZH.js} +2 -2
- package/__chunks__/chunk-YWRTTCYK.js +2 -0
- package/__chunks__/chunk-ZDIO44CA.js +2 -0
- package/__chunks__/{chunk-DOSMTMSA.js → chunk-ZF27ANY4.js} +2 -2
- package/__chunks__/{chunk-F47KH2MF.js → chunk-ZHHX65UY.js} +2 -2
- package/__chunks__/{chunk-XIJOWM33.js → chunk-ZIHDYJLL.js} +2 -2
- package/__chunks__/{chunk-IZYPU3LW.js → chunk-ZIIQ5MFR.js} +2 -2
- package/__chunks__/{chunk-NPBAPU5Z.js → chunk-ZP4YU52T.js} +2 -2
- package/__chunks__/{chunk-4I7NHD4D.js → chunk-ZPAVSH7G.js} +2 -2
- package/__chunks__/{chunk-KB6S7Q6T.js → chunk-ZPB3ZJ2J.js} +2 -2
- package/__chunks__/{chunk-JMDO47UU.js → chunk-ZPEVRMR3.js} +2 -2
- package/__chunks__/{chunk-GU7IUTXI.js → chunk-ZQBSKR72.js} +2 -2
- package/__chunks__/{chunk-YT7A5JWD.js → chunk-ZVNBY4BK.js} +2 -2
- package/__chunks__/{chunk-P32QGFY7.js → chunk-ZWAI37XZ.js} +2 -2
- package/__chunks__/{chunk-I3EOPXZH.js → chunk-ZZ3PILAG.js} +2 -2
- package/__commonjs/UI/Denominate/index.js +3 -3
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +21 -21
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignWithDeviceModal.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/SignStepBody.js +18 -18
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/components/ConfirmAmount/components/index.js +5 -5
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/components/index.js +18 -18
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/SignWithExtraModal.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/SignWithLedgerModal.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +22 -22
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/SignWithMetamaskModal.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/SignWithMetamaskModal/index.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/components/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/index.js +21 -21
- package/__commonjs/UI/TransactionData/TransactionData.js +4 -4
- package/__commonjs/UI/TransactionData/components/TransactionDataDecode.js +4 -4
- package/__commonjs/UI/TransactionData/components/index.js +4 -4
- package/__commonjs/UI/TransactionData/index.js +5 -5
- package/__commonjs/UI/TransactionDetails/TransactionDetails.js +4 -4
- package/__commonjs/UI/TransactionDetails/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/OperationsList/components/OperationBlock.js +13 -13
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/ResultData.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/ScResultsList/components/ResultData/index.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/ActionToken.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/TransactionAction/components/TransactionActionBlock/components/TransactionActionCollection.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/TransactionInfoEgldPrice.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoEgldPrice/index.js +1 -1
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/TransactionInfoGasLimit.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasLimit/index.js +2 -2
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/TransactionInfoGasUsed.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoGasUsed/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/TransactionInfoInputData.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoInputData/index.js +5 -5
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/TransactionInfoMiniblock.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoMiniblock/index.js +4 -4
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +3 -3
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +3 -3
- package/__commonjs/UI/TransactionsTable/components/TransactionIcon.js +3 -3
- package/__commonjs/UI/TransactionsTable/components/TransactionSender.js +4 -4
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +6 -6
- package/__commonjs/UI/index.js +10 -10
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/WalletConnectConnectionStatus.js +2 -2
- package/__commonjs/UI/walletConnect/WalletConnectConnectionStatus/index.js +2 -2
- package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/XaliasCrossWindowLoginButton.js +3 -3
- package/__commonjs/UI/webWallet/XaliasCrossWindowLoginButton/index.js +3 -3
- package/__commonjs/constants/dataTestIds.enum.d.ts +1 -0
- package/__commonjs/constants/dataTestIds.enum.js +1 -1
- package/__commonjs/constants/index.js +1 -1
- package/__commonjs/hooks/account/useGetAccountProvider.js +1 -1
- package/__commonjs/hooks/index.js +1 -1
- package/__commonjs/hooks/login/useCrossWindowLogin.js +1 -1
- package/__commonjs/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/__commonjs/hooks/transactions/batch/useGetBatches.js +1 -1
- package/__commonjs/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/__commonjs/hooks/transactions/helpers/index.js +1 -1
- package/__commonjs/hooks/transactions/index.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.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/reduxStore/slices/networkConfigSlice.js +1 -1
- package/__commonjs/reduxStore/slices/signedMessageInfoSlice.js +1 -1
- package/__commonjs/reduxStore/slices/transactionsSlice.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/index.js +1 -1
- package/__commonjs/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/__commonjs/services/transactions/signTransactions.js +1 -1
- package/__commonjs/utils/account/getAccountProviderType.js +1 -1
- package/__commonjs/utils/account/refreshAccount.js +1 -1
- package/__commonjs/utils/index.js +5 -5
- package/__commonjs/utils/operations/index.js +1 -1
- package/__commonjs/utils/transactions/builtCallbackUrl.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/helpers/index.js +1 -1
- package/__commonjs/utils/transactions/getInterpretedTransaction/index.js +2 -2
- package/__commonjs/utils/transactions/index.js +1 -1
- package/__commonjs/utils/transactions/transactionInfoHelpers/transactionActionUnwrapper/helpers/index.js +1 -1
- package/__commonjs/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +1 -1
- package/__commonjs/wrappers/index.js +3 -3
- package/__mocks__/index.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/accounts/useGetAccountFromApi.js +1 -1
- package/apiCalls/configuration/getNetworkConfig.js +1 -1
- package/apiCalls/configuration/index.js +1 -1
- package/apiCalls/configuration/useGetNetworkConfigFromApi.js +1 -1
- package/apiCalls/configuration/useGetServerConfigurationFromApi.js +1 -1
- package/apiCalls/economics/getEconomicsInfo.js +1 -1
- package/apiCalls/economics/index.js +1 -1
- package/apiCalls/economics/useGetEconomicsInfoFromApi.js +1 -1
- package/apiCalls/index.js +1 -1
- package/apiCalls/tokens/getPersistedToken.js +1 -1
- package/apiCalls/transactions/getTransactionsByHashes.js +1 -1
- package/apiCalls/transactions/index.js +1 -1
- package/apiCalls/transactions/sendSignedBatchTransactions.js +1 -1
- package/apiCalls/transactions/sendSignedTransactions.js +1 -1
- package/apiCalls/transactions/useGetTransactionsFromApi.js +1 -1
- package/apiCalls/utils/getCleanApiAddress.js +1 -1
- package/apiCalls/utils/getScamAddressData.js +1 -1
- package/apiCalls/utils/index.js +1 -1
- package/apiCalls/utils/useApiFetch.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/ProviderInitializer.js +1 -1
- package/components/ProviderInitializer/helpers/index.js +1 -1
- package/components/ProviderInitializer/helpers/processModifiedAccount.js +1 -1
- package/components/ProviderInitializer/hooks/index.js +1 -1
- package/components/ProviderInitializer/hooks/useSetLedgerProvider.js +1 -1
- package/components/ProviderInitializer/index.js +1 -1
- package/components/TransactionSender/TransactionSender.js +1 -1
- package/components/TransactionSender/index.js +1 -1
- package/components/TransactionSender/utils/handleSendBatchTransactionsErrors.js +1 -1
- package/components/TransactionSender/utils/handleSendTransactionsErrors.js +1 -1
- package/components/TransactionSender/utils/invokeSendTransactions.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/constants/dataTestIds.enum.d.ts +1 -0
- package/constants/dataTestIds.enum.js +1 -1
- package/constants/index.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/useGetBatchWebsocketEvent.js +1 -1
- package/hooks/account/useGetIsLoggedIn.js +1 -1
- package/hooks/account/useGetIsWalletConnectV2Initialized.js +1 -1
- package/hooks/account/useGetLoginInfo.js +1 -1
- package/hooks/account/useGetWebsocketEvent.js +1 -1
- package/hooks/economics/index.js +1 -1
- package/hooks/economics/useGetEgldPrice.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useCrossWindowLogin.js +1 -1
- package/hooks/login/useExtensionLogin.js +1 -1
- package/hooks/login/useGetModalLoginMethods.js +1 -1
- package/hooks/login/useIframeLogin.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useLoginService.js +1 -1
- package/hooks/login/useMetamaskLogin.js +1 -1
- package/hooks/login/useOperaLogin.js +1 -1
- package/hooks/login/usePasskeyLogin.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/login/useXaliasLogin.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/toasts/index.js +1 -1
- package/hooks/toasts/useGetToasts.js +1 -1
- package/hooks/toasts/useTransactionsToasts.js +1 -1
- package/hooks/transactions/batch/tracker/useBatchTransactionsTracker.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckBatchesOnWsFailureFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useCheckHangingBatchesFallback.js +1 -1
- package/hooks/transactions/batch/tracker/useUpdateBatch.js +1 -1
- package/hooks/transactions/batch/tracker/useVerifyBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatchStatus.js +1 -1
- package/hooks/transactions/batch/useGetBatches.js +1 -1
- package/hooks/transactions/batch/useResolveBatchStatusResponse.js +1 -1
- package/hooks/transactions/batch/useSendBatchTransactions.js +1 -1
- package/hooks/transactions/helpers/buildBatchId.js +1 -1
- package/hooks/transactions/helpers/checkNeedsGuardianSigning.js +1 -1
- package/hooks/transactions/helpers/extractSessionId.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/useGetLedgerProvider.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/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/useGetLastPendingTransactionHash.js +1 -1
- package/hooks/transactions/useGetPendingTransactions.js +1 -1
- package/hooks/transactions/useGetPollingInterval.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/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/transactions/useTransactionsTracker.js +1 -1
- package/hooks/useGetNetworkConfig.js +1 -1
- package/hooks/useGetNotification.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 +1 -1
- package/providers/accountProvider.js +1 -1
- package/providers/experimentalWebViewProvider/ExperimentalWebviewProvider.js +1 -1
- package/providers/experimentalWebViewProvider/index.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.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/index.js +1 -1
- package/reduxStore/selectors/loginInfoSelectors.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/batchTransactionsSlice.js +1 -1
- package/reduxStore/slices/dappConfigSlice.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/networkConfigSlice.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/getAuthorizationInfo.js +1 -1
- package/services/nativeAuth/helpers/getIsNativeAuthSingingForbidden.js +1 -1
- package/services/nativeAuth/helpers/index.js +1 -1
- package/services/nativeAuth/helpers/loginWithNativeAuthToken.js +1 -1
- package/services/transactions/clearTransactions.js +1 -1
- package/services/transactions/getBatchTransactionsStatus.js +1 -1
- package/services/transactions/getTransactionsDetails.js +1 -1
- package/services/transactions/index.js +1 -1
- package/services/transactions/isCrossShardTransaction.js +1 -1
- package/services/transactions/sendBatchTransactions.js +1 -1
- package/services/transactions/sendBatchTransactions.test.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/updateSignedTransactions.js +1 -1
- package/services/transactions/utils/transformTransactionsToSign.js +1 -1
- package/services/transactions/utils.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/getWebviewToken.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/calculateFeeInFiat.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/ledger/getLedgerVersionOptions.js +1 -1
- package/utils/operations/ledger/index.js +1 -1
- package/utils/operations/nominate.js +1 -1
- package/utils/operations/parseAmount.js +1 -1
- package/utils/toasts/customToastsActions.js +1 -1
- package/utils/toasts/index.js +1 -1
- package/utils/transactions/batch/updateBatchTransactionsStatuses.js +1 -1
- package/utils/transactions/builtCallbackUrl.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/getOperationsDetails.js +1 -1
- package/utils/transactions/getTransactionLink.js +1 -1
- package/utils/transactions/index.js +1 -1
- package/utils/transactions/isGuardianTx.js +1 -1
- package/utils/transactions/parseTransactionAfterSigning.js +1 -1
- package/utils/transactions/removeTransactionParamsFromUrl.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/getTransactionMessages.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/validation/index.js +1 -1
- package/utils/validation/maxDecimals.js +1 -1
- package/utils/validation/stringIsFloat.js +1 -1
- package/utils/waitForChainID.js +1 -1
- package/utils/walletconnect/__mocks__/sdkWalletconnectProvider.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/AuthenticatedRoutesWrapper.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/DappProvider.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-2CIKILAW.js +0 -2
- package/__chunks__/chunk-2OYU5WPX.js +0 -2
- package/__chunks__/chunk-374SPKUP.js +0 -2
- package/__chunks__/chunk-3ENWF7YR.js +0 -2
- package/__chunks__/chunk-4PV7B6OC.js +0 -2
- package/__chunks__/chunk-5CUNBDJS.js +0 -2
- package/__chunks__/chunk-5GZQ4REB.js +0 -2
- package/__chunks__/chunk-5ON2ZU5O.js +0 -2
- package/__chunks__/chunk-6CAO2NGV.js +0 -2
- package/__chunks__/chunk-6IQIPHJS.js +0 -2
- package/__chunks__/chunk-6NIELLKI.js +0 -2
- package/__chunks__/chunk-6U55E5BU.js +0 -2
- package/__chunks__/chunk-6YTBMA3L.js +0 -2
- package/__chunks__/chunk-742UIH6M.js +0 -2
- package/__chunks__/chunk-7PNWS3GR.js +0 -2
- package/__chunks__/chunk-ANAR4IRU.js +0 -2
- package/__chunks__/chunk-B7LFYDED.js +0 -2
- package/__chunks__/chunk-BMO5RCC5.js +0 -2
- package/__chunks__/chunk-BP52J7CD.js +0 -2
- package/__chunks__/chunk-CJAPWZXN.js +0 -2
- package/__chunks__/chunk-DFR7P23J.js +0 -2
- package/__chunks__/chunk-DUV2RGVU.js +0 -2
- package/__chunks__/chunk-E5DSKAV7.js +0 -2
- package/__chunks__/chunk-G4XEIEOD.js +0 -2
- package/__chunks__/chunk-GHFRCWZU.js +0 -2
- package/__chunks__/chunk-GMEPYWSN.js +0 -2
- package/__chunks__/chunk-HPW4LYHW.js +0 -2
- package/__chunks__/chunk-IOIPFMWK.js +0 -2
- package/__chunks__/chunk-J4LEZDHO.js +0 -2
- package/__chunks__/chunk-JBFTLTH7.js +0 -2
- package/__chunks__/chunk-LCTNXSYB.js +0 -2
- package/__chunks__/chunk-LZU4AQRM.js +0 -2
- package/__chunks__/chunk-MDJ2PLT3.js +0 -2
- package/__chunks__/chunk-MIFW35FG.js +0 -2
- package/__chunks__/chunk-NPRONW74.js +0 -2
- package/__chunks__/chunk-O3JF5Q7D.js +0 -2
- package/__chunks__/chunk-O4HAQEWQ.js +0 -2
- package/__chunks__/chunk-OS3KFYDU.js +0 -2
- package/__chunks__/chunk-OZ7ANBS3.js +0 -2
- package/__chunks__/chunk-PAX7M4ZA.js +0 -2
- package/__chunks__/chunk-PCYE2DXE.js +0 -2
- package/__chunks__/chunk-PHQZ5JGB.js +0 -2
- package/__chunks__/chunk-PJTUBBED.js +0 -2
- package/__chunks__/chunk-PYXNU6FU.js +0 -2
- package/__chunks__/chunk-QGQKCL7C.js +0 -2
- package/__chunks__/chunk-RLTGJLTK.js +0 -2
- package/__chunks__/chunk-RQLQURWN.js +0 -2
- package/__chunks__/chunk-SB5OER4G.js +0 -2
- package/__chunks__/chunk-TGN5MZTJ.js +0 -2
- package/__chunks__/chunk-TNBTG7EY.js +0 -2
- package/__chunks__/chunk-TW3W4TEQ.js +0 -2
- package/__chunks__/chunk-U3F4YV5C.js +0 -2
- package/__chunks__/chunk-UANI2K3E.js +0 -2
- package/__chunks__/chunk-UUZWA5KU.js +0 -2
- package/__chunks__/chunk-W3LC3DJ3.js +0 -2
- package/__chunks__/chunk-WD34FATV.js +0 -2
- package/__chunks__/chunk-XC2TOXRS.js +0 -2
- package/__chunks__/chunk-XSEH43PQ.js +0 -2
- package/__chunks__/chunk-Y2KGN2FJ.js +0 -2
- package/__chunks__/chunk-YMQ3LJXF.js +0 -2
- package/__chunks__/chunk-YTYYPK7N.js +0 -2
- package/__chunks__/chunk-ZCKZ2UUI.js +0 -2
- package/__chunks__/chunk-ZJWWEHIM.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Rr=Object.create;var K=Object.defineProperty;var Er=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ce=(t,e,r)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,W=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Ce(t,r,e[r]);if(Fe)for(var r of Fe(e))Fr.call(e,r)&&Ce(t,r,e[r]);return t};var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Br=(t,e)=>{for(var r in e)K(t,r,{get:e[r],enumerable:!0})},Ue=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Lr(e))!Be.call(t,i)&&i!==r&&K(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?Rr(Nr(t)):{},Ue(e||!t||!t.__esModule?K(r,"default",{value:t,enumerable:!0}):r,t)),Ur=t=>Ue(K({},"__esModule",{value:!0}),t);var Oe=re(te=>{"use strict";l();te.byteLength=Mr;te.toByteArray=Pr;te.fromByteArray=Vr;var S=[],k=[],Dr=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,De=se.length;M<De;++M)S[M]=se[M],k[se.charCodeAt(M)]=M;var M,De;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function Me(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 Mr(t){var e=Me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Pr(t){var e,r=Me(t),n=r[0],i=r[1],o=new Dr(Or(t,n,i)),a=0,p=i>0?n-4:n,c;for(c=0;c<p;c+=4)e=k[t.charCodeAt(c)]<<18|k[t.charCodeAt(c+1)]<<12|k[t.charCodeAt(c+2)]<<6|k[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=k[t.charCodeAt(c)]<<2|k[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=k[t.charCodeAt(c)]<<10|k[t.charCodeAt(c+1)]<<4|k[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Gr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Wr(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(Gr(n));return i.join("")}function Vr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,p=r-n;a<p;a+=o)i.push(Wr(t,a,a+o>p?p: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 Pe=re(le=>{l();le.read=function(t,e,r,n,i){var o,a,p=i*8-n-1,c=(1<<p)-1,f=c>>1,m=-7,h=r?i-1:0,y=r?-1:1,w=t[e+h];for(h+=y,o=w&(1<<-m)-1,w>>=-m,m+=p;m>0;o=o*256+t[e+h],h+=y,m-=8);for(a=o&(1<<-m)-1,o>>=-m,m+=n;m>0;a=a*256+t[e+h],h+=y,m-=8);if(o===0)o=1-f;else{if(o===c)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};le.write=function(t,e,r,n,i,o){var a,p,c,f=o*8-i-1,m=(1<<f)-1,h=m>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=m):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=y/c:e+=y*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=m?(p=0,a=m):a+h>=1?(p=(e*c-1)*Math.pow(2,i),a=a+h):(p=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+w]=p&255,w+=v,p/=256,i-=8);for(a=a<<i|p,f+=i;f>0;t[r+w]=a&255,w+=v,a/=256,f-=8);t[r+w-v]|=Z*128}});var Je=re(q=>{"use strict";l();var ce=Oe(),H=Pe(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Xr;q.INSPECT_MAX_BYTES=50;var ne=2147483647;q.kMaxLength=ne;s.TYPED_ARRAY_SUPPORT=Hr();!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 Hr(){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 C(t){if(t>ne)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 ge(t)}return He(t,e,r)}s.poolSize=8192;function He(t,e,r){if(typeof t=="string")return jr(t,e);if(ArrayBuffer.isView(t))return zr(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(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return ue(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=$r(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 He(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,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 qr(t,e,r){return qe(t),t<=0?C(t):e!==void 0?typeof r=="string"?C(t).fill(e,r):C(t).fill(e):C(t)}s.alloc=function(t,e,r){return qr(t,e,r)};function ge(t){return qe(t),C(t<0?0:fe(t)|0)}s.allocUnsafe=function(t){return ge(t)};s.allocUnsafeSlow=function(t){return ge(t)};function jr(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=C(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function pe(t){for(var e=t.length<0?0:fe(t.length)|0,r=C(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function zr(t){if(R(t,Uint8Array)){var e=new Uint8Array(t);return ue(e.buffer,e.byteOffset,e.byteLength)}return pe(t)}function ue(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 $r(t){if(s.isBuffer(t)){var e=fe(t.length)|0,r=C(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||me(t.length)?C(0):pe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return pe(t.data)}function fe(t){if(t>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return t|0}function Xr(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(R(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),R(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(R(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)||R(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 de(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ze(t).length;default:if(i)return n?-1:de(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=je;function Kr(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 ot(this,e,r);case"utf8":case"utf-8":return $e(this,e,r);case"ascii":return nt(this,e,r);case"latin1":case"binary":return it(this,e,r);case"base64":return rt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(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)O(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)O(this,r,r+3),O(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)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?$e(this,0,e):Kr.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+">"};Ge&&(s.prototype[Ge]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(R(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,p=n-r,c=Math.min(a,p),f=this.slice(i,o),m=e.slice(r,n),h=0;h<c;++h)if(f[h]!==m[h]){a=f[h],p=m[h];break}return a<p?-1:p<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,me(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: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,p=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,p/=2,r/=2}function c(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var f;if(i){var m=-1;for(f=r;f<a;f++)if(c(t,f)===c(e,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===p)return m*o}else m!==-1&&(f-=f-m),m=-1}else for(r+p>a&&(r=a-p),f=r;f>=0;f--){for(var h=!0,y=0;y<p;y++)if(c(t,f+y)!==c(e,y)){h=!1;break}if(h)return f}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ze(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ze(this,e,r,n,!1)};function Yr(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 p=parseInt(e.substr(a*2,2),16);if(me(p))return a;t[r+a]=p}return a}function Zr(t,e,r,n){return ie(de(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return ie(ct(e),t,r,n)}function Qr(t,e,r,n){return ie(Ze(e),t,r,n)}function et(t,e,r,n){return ie(pt(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 Yr(this,e,r,n);case"utf8":case"utf-8":return Zr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return Qr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(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 rt(t,e,r){return e===0&&r===t.length?ce.fromByteArray(t):ce.fromByteArray(t.slice(e,r))}function $e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,f,m,h;switch(p){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(a=h));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|m&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=p}return tt(n)}var Ve=4096;function tt(t){var e=t.length;if(e<=Ve)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ve));return r}function nt(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 it(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 ot(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+=ut[t[o]];return i}function at(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 b(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||b(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||b(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||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(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||b(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||b(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||b(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||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(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||b(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||b(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||b(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||b(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!1,52,8)};function T(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;T(this,e,r,n,o,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=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;T(this,e,r,n,o,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(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||T(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||T(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||T(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||T(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);T(this,e,r,n,o-1,-o)}var a=0,p=1,c=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&c===0&&this[r+a-1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&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);T(this,e,r,n,o-1,-o)}var a=n-1,p=1,c=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&c===0&&this[r+a+1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(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||T(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||T(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||T(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||T(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 Ke(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ke(this,e,r,!1,n)};function Ye(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ye(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 p=s.isBuffer(e)?e:s.from(e,i),c=p.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%c]}return this};var st=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(st,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function de(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 ct(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(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 Ze(t){return ce.toByteArray(lt(t))}function ie(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 R(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function me(t){return t!==t}var ut=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 nr=re((Ft,tr)=>{l();var x=tr.exports={},E,L;function he(){throw new Error("setTimeout has not been defined")}function ye(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=he}catch(t){E=he}try{typeof clearTimeout=="function"?L=clearTimeout:L=ye}catch(t){L=ye}})();function Qe(t){if(E===setTimeout)return setTimeout(t,0);if((E===he||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function dt(t){if(L===clearTimeout)return clearTimeout(t);if((L===ye||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(t);try{return L(t)}catch(e){try{return L.call(null,t)}catch(r){return L.call(this,t)}}}var B=[],j=!1,P,oe=-1;function gt(){!j||!P||(j=!1,P.length?B=P.concat(B):oe=-1,B.length&&er())}function er(){if(!j){var t=Qe(gt);j=!0;for(var e=B.length;e;){for(P=B,B=[];++oe<e;)P&&P[oe].run();oe=-1,e=B.length}P=null,j=!1,dt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];B.push(new rr(t,e)),B.length===1&&!j&&Qe(er)};function rr(t,e){this.fun=t,this.array=e}rr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function U(){}x.on=U;x.addListener=U;x.once=U;x.off=U;x.removeListener=U;x.removeAllListeners=U;x.emit=U;x.prependListener=U;x.prependOnceListener=U;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var u,d,Ct,l=Cr(()=>{u=V(Je()),d=V(nr()),Ct=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 It={};Br(It,{calculateFeeInFiat:()=>_t,calculateFeeLimit:()=>yt,denominate:()=>mt,formatAmount:()=>Y,getLedgerVersionOptions:()=>At,getRemainingTime:()=>Ne,getUsdValue:()=>Le,nominate:()=>ht,parseAmount:()=>Re,pipe:()=>F,timeAgo:()=>Tt,timeRemaining:()=>wt,truncate:()=>vt});module.exports=Ur(It);l();l();l();l();l();l();l();var xe=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(xe||{});l();var we="1.0.8",be="1.0.11",Te="1.0.15",ve="1.0.17",ke="1.0.22",Ae="1.0.23";l();l();l();l();l();l();l();l();l();var ft=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),z=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var ir=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(ir||{}),jt=W(W({},z.WindowProviderRequestEnums),ir),or=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(or||{}),zt=W(W({},z.WindowProviderResponseEnums),or);l();l();l();l();l();l();var _e={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:ar,egldLabel:pn}=_e["devnet"],{chainId:sr,egldLabel:un}=_e["testnet"],{chainId:lr,egldLabel:dn}=_e["mainnet"];var gn={["devnet"]:ar,["testnet"]:sr,["mainnet"]:lr},fn={[ar]:"devnet",[sr]:"testnet",[lr]:"mainnet"};l();l();var N=require("@multiversx/sdk-web-wallet-provider");l();l();var Ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var cr,pr,Se=String((pr=(cr=Ie.safeWindow)==null?void 0:cr.navigator)==null?void 0:pr.userAgent),bn=/^((?!chrome|android).)*safari/i.test(Se),Tn=/firefox/i.test(Se)&&/windows/i.test(Se);var ur=5e4,dr=5e4,gr=1e9,_=18,G=4;var $="0";l();var mr=require("@multiversx/sdk-core"),D=V(require("bignumber.js"));l();var fr=V(require("bignumber.js")),ae=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new fr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function F(t){return{if:function(e){return e?{then:r=>r instanceof Function?F(r(t)):F(r)}:{then:()=>F(t)}},then:e=>e instanceof Function?F(e(t)):F(e),valueOf:function(){return t}}}D.default.config({ROUNDING_MODE:D.default.ROUND_FLOOR});function Y({input:t,decimals:e=_,digits:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!ae(t,!1))throw new Error("Invalid input");let a=new D.default(t).isNegative(),p=t;return a&&(p=t.substring(1)),F(p).then(()=>mr.TokenTransfer.fungibleFromBigInteger("",p,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(c=>{let f=new D.default(c);if(f.isZero())return $;let m=f.toString(10),[h,y]=m.split("."),w=new D.default(y||0),v=F(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),Z=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new D.default(y.substring(0,r)).isZero(),_r=f.toFormat(v);return F(m).if(o).then(_r).if(Boolean(Z)).then(J=>{let X=new D.default(h).isZero(),[A,Q]=J.split("."),ee=new Array(r-1).fill(0),Ir=[...ee,0].join(""),Sr=[...ee,1].join("");return X?i?`<${A}.${Sr}`:n?`${A}.${Q}`:A:`${A}.${Ir}`}).if(Boolean(!Z&&y)).then(J=>{let[X]=J.split("."),A=y.substring(0,v);if(n){let Q=r-A.length;if(Q>0){let ee=Array(Q).fill(0).join("");return A=`${A}${ee}`,`${X}.${A}`}return J}return A?`${X}.${A}`:X}).valueOf()}).if(a).then(c=>`-${c}`).valueOf()}var hr=!1;function mt({input:t,denomination:e=_,decimals:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){return hr||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),hr=!0),Y({input:t,decimals:e,addCommas:o,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var yr=require("@multiversx/sdk-core");function Re(t,e=_){return yr.TokenPayment.fungibleFromAmount("",t,e).toString()}var xr=!1;function ht(t,e=_){return xr||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),xr=!0),Re(t,e)}l();var I=require("@multiversx/sdk-core"),vr=V(require("bignumber.js"));l();var wr=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(xe).some(r=>t.startsWith(r)):!1;l();l();var Ee=V(require("bignumber.js"));var br=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split("."),n=Ee.default.clone();if(r){let p=r.split("").every(c=>!isNaN(parseInt(c)));for(n.set({DECIMAL_PLACES:p?r.length:Ee.default.config().DECIMAL_PLACES});r.charAt(r.length-1)===$;)r=r.slice(0,-1)}let i=r?[e,r].join("."):e,o=n(i);return o.toString(10)===i&&o.comparedTo(0)>=0};l();l();var Tr={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function yt({minGasLimit:t=String(ur),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:o,defaultGasPrice:a=String(gr),chainId:p}){let c=n||"",f=ae(e)?e:t,m=wr({data:c})?dr:0,h=new vr.default(f).plus(m).toNumber(),y=br(r)?r:a,w=new I.Transaction({nonce:0,value:I.TokenPayment.egldFromAmount("0"),receiver:new I.Address(Tr.to),sender:new I.Address(Tr.to),gasPrice:parseInt(y),gasLimit:h,data:new I.TransactionPayload(c.trim()),chainID:p,version:new I.TransactionVersion(1)});try{return w.computeFee({GasPerDataByte:parseInt(i),MinGasLimit:parseInt(t),GasPriceModifier:parseFloat(o),ChainID:p}).toString(10)}catch(v){return console.error(v),$}}l();var Le=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),o=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),a=parseFloat(t)>0?"\u2248":"=";return`${n?`${a} `:""}$${o}`};l();function Ne(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),o=Math.floor(i/(60*1e3)),a=i%(60*1e3),p=Math.floor(a/1e3),c=p+" sec",f=o+" min",m=n+" hr",h=e+" day";if(p>1&&(c=p+" sec"),o>1&&(f=o+" min"),n>1&&(m=n+" hrs"),e>1&&(h=e+" days"),e>=1)return h+" "+m;if(n>=1){let y=o===0?"":" "+f;return m+y}if(o>=1){let y=p===0?"":" "+c;return f+y}return c}function Ar(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var kr=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function xt(t){let e=new Date,r=kr(e),n=kr(e,t);return Math.max(n-r,0)}function wt(t,e=!0){let r=xt(t),n=Ne(r);return e?Ar(n):n}function bt(t){let r=new Date().getTime()-t;return Math.max(r,0)}function Tt(t,e=!0){let r=bt(t),n=Ne(r);return e?Ar(n):n}l();function vt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}l();l();function kt(t,e){let r,n,i=/(\.0+)+$/,o=t.replace(i,"").split("."),a=e.replace(i,"").split("."),p=Math.min(o.length,a.length);for(r=0;r<p;r++)if(n=parseInt(o[r],10)-parseInt(a[r],10),n)return n;return o.length-a.length}function At(t){let e=[we,be,Te,ve,ke,Ae,t].sort((f,m)=>kt(f,m)),r=e.indexOf(we),n=e.indexOf(be),i=e.indexOf(Te),o=e.indexOf(ve),a=e.indexOf(ke),p=e.indexOf(Ae),c=e.indexOf(t);return{ledgerWithMultiAccount:c>=r,ledgerWithHashSign:c>=n,ledgerWithSignAuthToken:c>=i,ledgerWithWhitelistedTokens:c>=o,ledgerWithGuardians:c>=a,ledgerWithUsernames:c>=p}}l();var _t=({feeLimit:t,egldPriceInUsd:e,hideEqualSign:r})=>{let n=Y({input:t,decimals:_,digits:G,showLastNonZeroDecimal:!0}),i=Le({amount:n,usd:e,decimals:G});return r?i:`\u2248 ${i}`};0&&(module.exports={calculateFeeInFiat,calculateFeeLimit,denominate,formatAmount,getLedgerVersionOptions,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
|
|
1
|
+
"use strict";var Rr=Object.create;var K=Object.defineProperty;var Er=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Nr=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ce=(t,e,r)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,W=(t,e)=>{for(var r in e||(e={}))Be.call(e,r)&&Ce(t,r,e[r]);if(Fe)for(var r of Fe(e))Fr.call(e,r)&&Ce(t,r,e[r]);return t};var Cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Br=(t,e)=>{for(var r in e)K(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Lr(e))!Be.call(t,i)&&i!==r&&K(t,i,{get:()=>e[i],enumerable:!(n=Er(e,i))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?Rr(Nr(t)):{},De(e||!t||!t.__esModule?K(r,"default",{value:t,enumerable:!0}):r,t)),Dr=t=>De(K({},"__esModule",{value:!0}),t);var Oe=re(te=>{"use strict";l();te.byteLength=Mr;te.toByteArray=Pr;te.fromByteArray=Vr;var S=[],k=[],Ur=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(M=0,Ue=se.length;M<Ue;++M)S[M]=se[M],k[se.charCodeAt(M)]=M;var M,Ue;k["-".charCodeAt(0)]=62;k["_".charCodeAt(0)]=63;function Me(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 Mr(t){var e=Me(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Or(t,e,r){return(e+r)*3/4-r}function Pr(t){var e,r=Me(t),n=r[0],i=r[1],o=new Ur(Or(t,n,i)),a=0,p=i>0?n-4:n,c;for(c=0;c<p;c+=4)e=k[t.charCodeAt(c)]<<18|k[t.charCodeAt(c+1)]<<12|k[t.charCodeAt(c+2)]<<6|k[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=k[t.charCodeAt(c)]<<2|k[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=k[t.charCodeAt(c)]<<10|k[t.charCodeAt(c+1)]<<4|k[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Gr(t){return S[t>>18&63]+S[t>>12&63]+S[t>>6&63]+S[t&63]}function Wr(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(Gr(n));return i.join("")}function Vr(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,p=r-n;a<p;a+=o)i.push(Wr(t,a,a+o>p?p: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 Pe=re(le=>{l();le.read=function(t,e,r,n,i){var o,a,p=i*8-n-1,c=(1<<p)-1,f=c>>1,m=-7,h=r?i-1:0,y=r?-1:1,w=t[e+h];for(h+=y,o=w&(1<<-m)-1,w>>=-m,m+=p;m>0;o=o*256+t[e+h],h+=y,m-=8);for(a=o&(1<<-m)-1,o>>=-m,m+=n;m>0;a=a*256+t[e+h],h+=y,m-=8);if(o===0)o=1-f;else{if(o===c)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(w?-1:1)*a*Math.pow(2,o-n)};le.write=function(t,e,r,n,i,o){var a,p,c,f=o*8-i-1,m=(1<<f)-1,h=m>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(p=isNaN(e)?1:0,a=m):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=y/c:e+=y*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=m?(p=0,a=m):a+h>=1?(p=(e*c-1)*Math.pow(2,i),a=a+h):(p=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+w]=p&255,w+=v,p/=256,i-=8);for(a=a<<i|p,f+=i;f>0;t[r+w]=a&255,w+=v,a/=256,f-=8);t[r+w-v]|=Z*128}});var Je=re(q=>{"use strict";l();var ce=Oe(),H=Pe(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=s;q.SlowBuffer=Xr;q.INSPECT_MAX_BYTES=50;var ne=2147483647;q.kMaxLength=ne;s.TYPED_ARRAY_SUPPORT=Hr();!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 Hr(){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 C(t){if(t>ne)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 ge(t)}return He(t,e,r)}s.poolSize=8192;function He(t,e,r){if(typeof t=="string")return jr(t,e);if(ArrayBuffer.isView(t))return zr(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(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return ue(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=$r(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 He(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,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 qr(t,e,r){return qe(t),t<=0?C(t):e!==void 0?typeof r=="string"?C(t).fill(e,r):C(t).fill(e):C(t)}s.alloc=function(t,e,r){return qr(t,e,r)};function ge(t){return qe(t),C(t<0?0:fe(t)|0)}s.allocUnsafe=function(t){return ge(t)};s.allocUnsafeSlow=function(t){return ge(t)};function jr(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=C(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function pe(t){for(var e=t.length<0?0:fe(t.length)|0,r=C(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function zr(t){if(R(t,Uint8Array)){var e=new Uint8Array(t);return ue(e.buffer,e.byteOffset,e.byteLength)}return pe(t)}function ue(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 $r(t){if(s.isBuffer(t)){var e=fe(t.length)|0,r=C(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||me(t.length)?C(0):pe(t);if(t.type==="Buffer"&&Array.isArray(t.data))return pe(t.data)}function fe(t){if(t>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return t|0}function Xr(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(R(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),R(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(R(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)||R(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 de(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ze(t).length;default:if(i)return n?-1:de(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=je;function Kr(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 ot(this,e,r);case"utf8":case"utf-8":return $e(this,e,r);case"ascii":return nt(this,e,r);case"latin1":case"binary":return it(this,e,r);case"base64":return rt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function O(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)O(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)O(this,r,r+3),O(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)O(this,r,r+7),O(this,r+1,r+6),O(this,r+2,r+5),O(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?$e(this,0,e):Kr.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+">"};Ge&&(s.prototype[Ge]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(R(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,p=n-r,c=Math.min(a,p),f=this.slice(i,o),m=e.slice(r,n),h=0;h<c;++h)if(f[h]!==m[h]){a=f[h],p=m[h];break}return a<p?-1:p<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,me(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: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,p=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,p/=2,r/=2}function c(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var f;if(i){var m=-1;for(f=r;f<a;f++)if(c(t,f)===c(e,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===p)return m*o}else m!==-1&&(f-=f-m),m=-1}else for(r+p>a&&(r=a-p),f=r;f>=0;f--){for(var h=!0,y=0;y<p;y++)if(c(t,f+y)!==c(e,y)){h=!1;break}if(h)return f}return-1}s.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};s.prototype.indexOf=function(e,r,n){return ze(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return ze(this,e,r,n,!1)};function Yr(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 p=parseInt(e.substr(a*2,2),16);if(me(p))return a;t[r+a]=p}return a}function Zr(t,e,r,n){return ie(de(e,t.length-r),t,r,n)}function Jr(t,e,r,n){return ie(ct(e),t,r,n)}function Qr(t,e,r,n){return ie(Ze(e),t,r,n)}function et(t,e,r,n){return ie(pt(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 Yr(this,e,r,n);case"utf8":case"utf-8":return Zr(this,e,r,n);case"ascii":case"latin1":case"binary":return Jr(this,e,r,n);case"base64":return Qr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(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 rt(t,e,r){return e===0&&r===t.length?ce.fromByteArray(t):ce.fromByteArray(t.slice(e,r))}function $e(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,p=o>239?4:o>223?3:o>191?2:1;if(i+p<=r){var c,f,m,h;switch(p){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(a=h));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(h=(o&15)<<12|(c&63)<<6|f&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(h=(o&15)<<18|(c&63)<<12|(f&63)<<6|m&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=p}return tt(n)}var Ve=4096;function tt(t){var e=t.length;if(e<=Ve)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ve));return r}function nt(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 it(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 ot(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+=ut[t[o]];return i}function at(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 b(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||b(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||b(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||b(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||b(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||b(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||b(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||b(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||b(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||b(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||b(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||b(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||b(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||b(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||b(e,4,this.length),H.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||b(e,4,this.length),H.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||b(e,8,this.length),H.read(this,e,!1,52,8)};function T(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;T(this,e,r,n,o,0)}var a=1,p=0;for(this[r]=e&255;++p<n&&(a*=256);)this[r+p]=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;T(this,e,r,n,o,0)}var a=n-1,p=1;for(this[r+a]=e&255;--a>=0&&(p*=256);)this[r+a]=e/p&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(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||T(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||T(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||T(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||T(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);T(this,e,r,n,o-1,-o)}var a=0,p=1,c=0;for(this[r]=e&255;++a<n&&(p*=256);)e<0&&c===0&&this[r+a-1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&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);T(this,e,r,n,o-1,-o)}var a=n-1,p=1,c=0;for(this[r+a]=e&255;--a>=0&&(p*=256);)e<0&&c===0&&this[r+a+1]!==0&&(c=1),this[r+a]=(e/p>>0)-c&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||T(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||T(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||T(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||T(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||T(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 Ke(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,4,34028234663852886e22,-34028234663852886e22),H.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return Ke(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return Ke(this,e,r,!1,n)};function Ye(t,e,r,n,i){return e=+e,r=r>>>0,i||Xe(t,e,r,8,17976931348623157e292,-17976931348623157e292),H.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Ye(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Ye(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 p=s.isBuffer(e)?e:s.from(e,i),c=p.length;if(c===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=p[a%c]}return this};var st=/[^+/0-9A-Za-z-_]/g;function lt(t){if(t=t.split("=")[0],t=t.trim().replace(st,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function de(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 ct(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pt(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 Ze(t){return ce.toByteArray(lt(t))}function ie(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 R(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function me(t){return t!==t}var ut=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 nr=re((Ft,tr)=>{l();var x=tr.exports={},E,L;function he(){throw new Error("setTimeout has not been defined")}function ye(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=he}catch(t){E=he}try{typeof clearTimeout=="function"?L=clearTimeout:L=ye}catch(t){L=ye}})();function Qe(t){if(E===setTimeout)return setTimeout(t,0);if((E===he||!E)&&setTimeout)return E=setTimeout,setTimeout(t,0);try{return E(t,0)}catch(e){try{return E.call(null,t,0)}catch(r){return E.call(this,t,0)}}}function dt(t){if(L===clearTimeout)return clearTimeout(t);if((L===ye||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(t);try{return L(t)}catch(e){try{return L.call(null,t)}catch(r){return L.call(this,t)}}}var B=[],j=!1,P,oe=-1;function gt(){!j||!P||(j=!1,P.length?B=P.concat(B):oe=-1,B.length&&er())}function er(){if(!j){var t=Qe(gt);j=!0;for(var e=B.length;e;){for(P=B,B=[];++oe<e;)P&&P[oe].run();oe=-1,e=B.length}P=null,j=!1,dt(t)}}x.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];B.push(new rr(t,e)),B.length===1&&!j&&Qe(er)};function rr(t,e){this.fun=t,this.array=e}rr.prototype.run=function(){this.fun.apply(null,this.array)};x.title="browser";x.browser=!0;x.env={};x.argv=[];x.version="";x.versions={};function D(){}x.on=D;x.addListener=D;x.once=D;x.off=D;x.removeListener=D;x.removeAllListeners=D;x.emit=D;x.prependListener=D;x.prependOnceListener=D;x.listeners=function(t){return[]};x.binding=function(t){throw new Error("process.binding is not supported")};x.cwd=function(){return"/"};x.chdir=function(t){throw new Error("process.chdir is not supported")};x.umask=function(){return 0}});var u,d,Ct,l=Cr(()=>{u=V(Je()),d=V(nr()),Ct=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 It={};Br(It,{calculateFeeInFiat:()=>_t,calculateFeeLimit:()=>yt,denominate:()=>mt,formatAmount:()=>Y,getLedgerVersionOptions:()=>At,getRemainingTime:()=>Ne,getUsdValue:()=>Le,nominate:()=>ht,parseAmount:()=>Re,pipe:()=>F,timeAgo:()=>Tt,timeRemaining:()=>wt,truncate:()=>vt});module.exports=Dr(It);l();l();l();l();l();l();l();var xe=(n=>(n.SetGuardian="SetGuardian",n.GuardAccount="GuardAccount",n.UnGuardAccount="UnGuardAccount",n))(xe||{});l();var we="1.0.8",be="1.0.11",Te="1.0.15",ve="1.0.17",ke="1.0.22",Ae="1.0.23";l();l();l();l();l();l();l();l();l();var ft=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),z=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var ir=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(ir||{}),jt=W(W({},z.WindowProviderRequestEnums),ir),or=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(or||{}),zt=W(W({},z.WindowProviderResponseEnums),or);l();l();l();l();l();l();var _e={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:ar,egldLabel:pn}=_e["devnet"],{chainId:sr,egldLabel:un}=_e["testnet"],{chainId:lr,egldLabel:dn}=_e["mainnet"];var gn={["devnet"]:ar,["testnet"]:sr,["mainnet"]:lr},fn={[ar]:"devnet",[sr]:"testnet",[lr]:"mainnet"};l();l();var N=require("@multiversx/sdk-web-wallet-provider");l();l();var Ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var cr,pr,Se=String((pr=(cr=Ie.safeWindow)==null?void 0:cr.navigator)==null?void 0:pr.userAgent),bn=/^((?!chrome|android).)*safari/i.test(Se),Tn=/firefox/i.test(Se)&&/windows/i.test(Se);var ur=5e4,dr=5e4,gr=1e9,_=18,G=4;var $="0";l();var mr=require("@multiversx/sdk-core"),U=V(require("bignumber.js"));l();var fr=V(require("bignumber.js")),ae=(t,e=!0)=>{let r=String(t);if(!r.match(/^[-]?\d+$/))return!1;let n=new fr.default(r),i=e?0:-1;return n.toString(10)===r&&n.comparedTo(0)>=i};l();function F(t){return{if:function(e){return e?{then:r=>r instanceof Function?F(r(t)):F(r)}:{then:()=>F(t)}},then:e=>e instanceof Function?F(e(t)):F(e),valueOf:function(){return t}}}U.default.config({ROUNDING_MODE:U.default.ROUND_FLOOR});function Y({input:t,decimals:e=_,digits:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){if(!ae(t,!1))throw new Error("Invalid input");let a=new U.default(t).isNegative(),p=t;return a&&(p=t.substring(1)),F(p).then(()=>mr.TokenTransfer.fungibleFromBigInteger("",p,e).amountAsBigInteger.shiftedBy(-e).toFixed(e)).then(c=>{let f=new U.default(c);if(f.isZero())return $;let m=f.toString(10),[h,y]=m.split("."),w=new U.default(y||0),v=F(0).if(Boolean(y&&n)).then(()=>Math.max(y.length,r)).if(w.isZero()&&!n).then(0).if(Boolean(y&&!n)).then(()=>Math.min(y.length,r)).valueOf(),Z=y&&r>=1&&r<=y.length&&w.isGreaterThan(0)&&new U.default(y.substring(0,r)).isZero(),_r=f.toFormat(v);return F(m).if(o).then(_r).if(Boolean(Z)).then(J=>{let X=new U.default(h).isZero(),[A,Q]=J.split("."),ee=new Array(r-1).fill(0),Ir=[...ee,0].join(""),Sr=[...ee,1].join("");return X?i?`<${A}.${Sr}`:n?`${A}.${Q}`:A:`${A}.${Ir}`}).if(Boolean(!Z&&y)).then(J=>{let[X]=J.split("."),A=y.substring(0,v);if(n){let Q=r-A.length;if(Q>0){let ee=Array(Q).fill(0).join("");return A=`${A}${ee}`,`${X}.${A}`}return J}return A?`${X}.${A}`:X}).valueOf()}).if(a).then(c=>`-${c}`).valueOf()}var hr=!1;function mt({input:t,denomination:e=_,decimals:r=G,showLastNonZeroDecimal:n=!0,showIsLessThanDecimalsLabel:i=!1,addCommas:o=!1}){return hr||(console.warn('!!! Be aware !!! The "denominate" function is deprecated. Please use "formatAmount" instead.'),hr=!0),Y({input:t,decimals:e,addCommas:o,digits:r,showIsLessThanDecimalsLabel:i,showLastNonZeroDecimal:n})}l();l();var yr=require("@multiversx/sdk-core");function Re(t,e=_){return yr.TokenPayment.fungibleFromAmount("",t,e).toString()}var xr=!1;function ht(t,e=_){return xr||(console.warn('!!! Be aware !!! The "nominate" function is deprecated. Please use "parseAmount" instead.'),xr=!0),Re(t,e)}l();var I=require("@multiversx/sdk-core"),vr=V(require("bignumber.js"));l();var wr=({data:t,onlySetGuardian:e})=>t?e?t.startsWith("SetGuardian"):Object.values(xe).some(r=>t.startsWith(r)):!1;l();l();var Ee=V(require("bignumber.js"));var br=t=>{if(isNaN(t)||t==null||String(t).includes("Infinity"))return!1;let[e,r]=t.split("."),n=Ee.default.clone();if(r){let p=r.split("").every(c=>!isNaN(parseInt(c)));for(n.set({DECIMAL_PLACES:p?r.length:Ee.default.config().DECIMAL_PLACES});r.charAt(r.length-1)===$;)r=r.slice(0,-1)}let i=r?[e,r].join("."):e,o=n(i);return o.toString(10)===i&&o.comparedTo(0)>=0};l();l();var Tr={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function yt({minGasLimit:t=String(ur),gasLimit:e,gasPrice:r,data:n,gasPerDataByte:i,gasPriceModifier:o,defaultGasPrice:a=String(gr),chainId:p}){let c=n||"",f=ae(e)?e:t,m=wr({data:c})?dr:0,h=new vr.default(f).plus(m).toNumber(),y=br(r)?r:a,w=new I.Transaction({nonce:0,value:I.TokenPayment.egldFromAmount("0"),receiver:new I.Address(Tr.to),sender:new I.Address(Tr.to),gasPrice:parseInt(y),gasLimit:h,data:new I.TransactionPayload(c.trim()),chainID:p,version:new I.TransactionVersion(1)});try{return w.computeFee({GasPerDataByte:parseInt(i),MinGasLimit:parseInt(t),GasPriceModifier:parseFloat(o),ChainID:p}).toString(10)}catch(v){return console.error(v),$}}l();var Le=({amount:t,usd:e,decimals:r=2,addEqualSign:n})=>{let i=(parseFloat(t)*e).toFixed(r),o=parseFloat(i).toLocaleString("en",{maximumFractionDigits:r,minimumFractionDigits:r}),a=parseFloat(t)>0?"\u2248":"=";return`${n?`${a} `:""}$${o}`};l();function Ne(t){let e=Math.floor(t/864e5),r=t%(24*60*60*1e3),n=Math.floor(r/(60*60*1e3)),i=r%(60*60*1e3),o=Math.floor(i/(60*1e3)),a=i%(60*1e3),p=Math.floor(a/1e3),c=p+" sec",f=o+" min",m=n+" hr",h=e+" day";if(p>1&&(c=p+" sec"),o>1&&(f=o+" min"),n>1&&(m=n+" hrs"),e>1&&(h=e+" days"),e>=1)return h+" "+m;if(n>=1){let y=o===0?"":" "+f;return m+y}if(o>=1){let y=p===0?"":" "+c;return f+y}return c}function Ar(t){let e=t.split(" ");return e.length>1?`${e[0]} ${e[1]}`:t}var kr=(t=new Date,e=0)=>Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()+e,t.getUTCMilliseconds());function xt(t){let e=new Date,r=kr(e),n=kr(e,t);return Math.max(n-r,0)}function wt(t,e=!0){let r=xt(t),n=Ne(r);return e?Ar(n):n}function bt(t){let r=new Date().getTime()-t;return Math.max(r,0)}function Tt(t,e=!0){let r=bt(t),n=Ne(r);return e?Ar(n):n}l();function vt(t,e,r="..."){return isNaN(e)&&(e=10),r||(r="..."),t!=null&&(t.length<=e||t.length-r.length<=e)?t:String(t).substring(0,e-r.length)+r}l();l();function kt(t,e){let r,n,i=/(\.0+)+$/,o=t.replace(i,"").split("."),a=e.replace(i,"").split("."),p=Math.min(o.length,a.length);for(r=0;r<p;r++)if(n=parseInt(o[r],10)-parseInt(a[r],10),n)return n;return o.length-a.length}function At(t){let e=[we,be,Te,ve,ke,Ae,t].sort((f,m)=>kt(f,m)),r=e.indexOf(we),n=e.indexOf(be),i=e.indexOf(Te),o=e.indexOf(ve),a=e.indexOf(ke),p=e.indexOf(Ae),c=e.indexOf(t);return{ledgerWithMultiAccount:c>=r,ledgerWithHashSign:c>=n,ledgerWithSignAuthToken:c>=i,ledgerWithWhitelistedTokens:c>=o,ledgerWithGuardians:c>=a,ledgerWithUsernames:c>=p}}l();var _t=({feeLimit:t,egldPriceInUsd:e,hideEqualSign:r})=>{let n=Y({input:t,decimals:_,digits:G,showLastNonZeroDecimal:!0}),i=Le({amount:n,usd:e,decimals:G});return r?i:`\u2248 ${i}`};0&&(module.exports={calculateFeeInFiat,calculateFeeLimit,denominate,formatAmount,getLedgerVersionOptions,getRemainingTime,getUsdValue,nominate,parseAmount,pipe,timeAgo,timeRemaining,truncate});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var He=Object.create;var G=Object.defineProperty,qe=Object.defineProperties,ze=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(ae)for(var r of ae(e))Ye.call(e,r)&&se(t,r,e[r]);return t},ce=(t,e)=>qe(t,je(e));var $e=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!le.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?He(Ke(t)):{},pe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>pe(G({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=er;V.toByteArray=tr;V.fromByteArray=or;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,de=j.length;F<de;++F)k[F]=j[F],v[j.charCodeAt(F)]=F;var F,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(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 er(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function rr(t,e,r){return(e+r)*3/4-r}function tr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(rr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function nr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function ir(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(nr(n));return i.join("")}function or(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(ir(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(X=>{l();X.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};X.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,U=n?1:-1,Ve=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=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=U,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=U,a/=256,d-=8);t[r+b-U]|=Ve*128}});var Ie=W(P=>{"use strict";l();var K=fe(),D=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var H=2147483647;P.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=ar();!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 ar(){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>H)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 Z(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return lr(t,e);if(ArrayBuffer.isView(t))return cr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return $(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=pr(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 we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(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 sr(t,e,r){return be(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 sr(t,e,r)};function Z(t){return be(t),L(t<0?0:Q(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function lr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Q(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function cr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function pr(t){if(s.isBuffer(t)){var e=Q(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"||ee(t.length)?L(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Q(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function ur(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(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(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(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 ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function dr(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 Tr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return br(this,e,r);case"latin1":case"binary":return vr(this,e,r);case"base64":return xr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(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)C(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)C(this,r,r+3),C(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)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):dr.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=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(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,ee(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:ye(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):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,U){return o===1?b[U]:b.readUInt16BE(U*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)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 Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function gr(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(ee(c))return a;t[r+a]=c}return a}function fr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function mr(t,e,r,n){return q(Rr(e),t,r,n)}function hr(t,e,r,n){return q(Se(e),t,r,n)}function yr(t,e,r,n){return q(Sr(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 gr(this,e,r,n);case"utf8":case"utf-8":return fr(this,e,r,n);case"ascii":case"latin1":case"binary":return mr(this,e,r,n);case"base64":return hr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(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 xr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.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 p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}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 wr(n)}var xe=4096;function wr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function br(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 vr(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 Tr(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+=Ir[t[o]];return i}function kr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ae(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 _e(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,4,34028234663852886e22,-34028234663852886e22),D.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return _e(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,8,17976931348623157e292,-17976931348623157e292),D.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var Ar=/[^+/0-9A-Za-z-_]/g;function _r(t){if(t=t.split("=")[0],t=t.trim().replace(Ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(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 Rr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Sr(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 Se(t){return K.toByteArray(_r(t))}function q(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ee(t){return t!==t}var Ir=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 Ce=W((Gr,Fe)=>{l();var y=Fe.exports={},_,R;function re(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=re}catch(t){_=re}try{typeof clearTimeout=="function"?R=clearTimeout:R=te}catch(t){R=te}})();function Le(t){if(_===setTimeout)return setTimeout(t,0);if((_===re||!_)&&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 Lr(t){if(R===clearTimeout)return clearTimeout(t);if((R===te||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var E=[],O=!1,B,z=-1;function Er(){!O||!B||(O=!1,B.length?E=B.concat(E):z=-1,E.length&&Ee())}function Ee(){if(!O){var t=Le(Er);O=!0;for(var e=E.length;e;){for(B=E,E=[];++z<e;)B&&B[z].run();z=-1,e=E.length}B=null,O=!1,Lr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];E.push(new Ne(t,e)),E.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Wr,l=$e(()=>{f=ue(Ie()),m=ue(Ce()),Wr=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 Ur={};Je(Ur,{builtCallbackUrl:()=>Br});module.exports=Ze(Ur);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Nr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),M=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Qr=I(I({},M.WindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),et=I(I({},M.WindowProviderResponseEnums),Ue);l();l();l();l();l();l();var ne={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:yt}=ne["devnet"],{chainId:Pe,egldLabel:xt}=ne["testnet"],{chainId:Oe,egldLabel:wt}=ne["mainnet"];var bt={["devnet"]:De,["testnet"]:Pe,["mainnet"]:Oe},vt={[De]:"devnet",[Pe]:"testnet",[Oe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Me,Ge,oe=String((Ge=(Me=ie.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),St=/^((?!chrome|android).)*safari/i.test(oe),It=/firefox/i.test(oe)&&/windows/i.test(oe);var We="sdk-dapp-version";function Fr(t,e){let r=new URLSearchParams(t),n=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(I(I({},n),e)).toString(),params:n}}var Cr="3.0.17";function Br({callbackUrl:t,urlParams:e={}}){let r=t;if(Object.entries(e).length>0)try{let{search:n,origin:i,pathname:o,hash:a}=new URL(t),c=ce(I({},e),{[We]:Cr}),{nextUrlParams:p}=Fr(n,c);r=`${i}${o}?${p}${a}`}catch(n){return console.error("Unable to construct URL from: ",t,n),r}return r}0&&(module.exports={builtCallbackUrl});
|
|
1
|
+
"use strict";var He=Object.create;var G=Object.defineProperty,qe=Object.defineProperties,ze=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,Ke=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var se=(t,e,r)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I=(t,e)=>{for(var r in e||(e={}))le.call(e,r)&&se(t,r,e[r]);if(ae)for(var r of ae(e))Ye.call(e,r)&&se(t,r,e[r]);return t},ce=(t,e)=>qe(t,je(e));var $e=(t,e)=>()=>(t&&(e=t(t=0)),e);var W=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Je=(t,e)=>{for(var r in e)G(t,r,{get:e[r],enumerable:!0})},pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!le.call(t,i)&&i!==r&&G(t,i,{get:()=>e[i],enumerable:!(n=ze(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?He(Ke(t)):{},pe(e||!t||!t.__esModule?G(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>pe(G({},"__esModule",{value:!0}),t);var fe=W(V=>{"use strict";l();V.byteLength=er;V.toByteArray=tr;V.fromByteArray=or;var k=[],v=[],Qe=typeof Uint8Array!="undefined"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,de=j.length;F<de;++F)k[F]=j[F],v[j.charCodeAt(F)]=F;var F,de;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function ge(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 er(t){var e=ge(t),r=e[0],n=e[1];return(r+n)*3/4-n}function rr(t,e,r){return(e+r)*3/4-r}function tr(t){var e,r=ge(t),n=r[0],i=r[1],o=new Qe(rr(t,n,i)),a=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)e=v[t.charCodeAt(p)]<<18|v[t.charCodeAt(p+1)]<<12|v[t.charCodeAt(p+2)]<<6|v[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=v[t.charCodeAt(p)]<<2|v[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=v[t.charCodeAt(p)]<<10|v[t.charCodeAt(p+1)]<<4|v[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function nr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function ir(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(nr(n));return i.join("")}function or(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,c=r-n;a<c;a+=o)i.push(ir(t,a,a+o>c?c:a+o));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var me=W(X=>{l();X.read=function(t,e,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,d=p>>1,g=-7,u=r?i-1:0,T=r?-1:1,b=t[e+u];for(u+=T,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+t[e+u],u+=T,g-=8);for(a=o&(1<<-g)-1,o>>=-g,g+=n;g>0;a=a*256+t[e+u],u+=T,g-=8);if(o===0)o=1-d;else{if(o===p)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-d}return(b?-1:1)*a*Math.pow(2,o-n)};X.write=function(t,e,r,n,i,o){var a,c,p,d=o*8-i-1,g=(1<<d)-1,u=g>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:o-1,U=n?1:-1,Ve=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=g):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+u>=1?e+=T/p:e+=T*Math.pow(2,1-u),e*p>=2&&(a++,p/=2),a+u>=g?(c=0,a=g):a+u>=1?(c=(e*p-1)*Math.pow(2,i),a=a+u):(c=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+b]=c&255,b+=U,c/=256,i-=8);for(a=a<<i|c,d+=i;d>0;t[r+b]=a&255,b+=U,a/=256,d-=8);t[r+b-U]|=Ve*128}});var Ie=W(P=>{"use strict";l();var K=fe(),D=me(),he=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P.Buffer=s;P.SlowBuffer=ur;P.INSPECT_MAX_BYTES=50;var H=2147483647;P.kMaxLength=H;s.TYPED_ARRAY_SUPPORT=ar();!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 ar(){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>H)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 Z(t)}return we(t,e,r)}s.poolSize=8192;function we(t,e,r){if(typeof t=="string")return lr(t,e);if(ArrayBuffer.isView(t))return cr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return $(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return s.from(n,e,r);var i=pr(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 we(t,e,r)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function be(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 sr(t,e,r){return be(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 sr(t,e,r)};function Z(t){return be(t),L(t<0?0:Q(t)|0)}s.allocUnsafe=function(t){return Z(t)};s.allocUnsafeSlow=function(t){return Z(t)};function lr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=ve(t,e)|0,n=L(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Y(t){for(var e=t.length<0?0:Q(t.length)|0,r=L(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function cr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return $(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function $(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function pr(t){if(s.isBuffer(t)){var e=Q(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"||ee(t.length)?L(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function Q(t){if(t>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return t|0}function ur(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(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),A(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(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 ve(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Se(t).length;default:if(i)return n?-1:J(t).length;e=(""+e).toLowerCase(),i=!0}}s.byteLength=ve;function dr(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 Tr(this,e,r);case"utf8":case"utf-8":return ke(this,e,r);case"ascii":return br(this,e,r);case"latin1":case"binary":return vr(this,e,r);case"base64":return xr(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function C(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)C(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)C(this,r,r+3),C(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)C(this,r,r+7),C(this,r+1,r+6),C(this,r+2,r+5),C(this,r+3,r+4);return this};s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ke(this,0,e):dr.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=P.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};he&&(s.prototype[he]=s.prototype.inspect);s.prototype.compare=function(e,r,n,i,o){if(A(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,c=n-r,p=Math.min(a,c),d=this.slice(i,o),g=e.slice(r,n),u=0;u<p;++u)if(d[u]!==g[u]){a=d[u],c=g[u];break}return a<c?-1:c<a?1:0};function Te(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,ee(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:ye(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):ye(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ye(t,e,r,n,i){var o=1,a=t.length,c=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function p(b,U){return o===1?b[U]:b.readUInt16BE(U*o)}var d;if(i){var g=-1;for(d=r;d<a;d++)if(p(t,d)===p(e,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===c)return g*o}else g!==-1&&(d-=d-g),g=-1}else for(r+c>a&&(r=a-c),d=r;d>=0;d--){for(var u=!0,T=0;T<c;T++)if(p(t,d+T)!==p(e,T)){u=!1;break}if(u)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 Te(this,e,r,n,!0)};s.prototype.lastIndexOf=function(e,r,n){return Te(this,e,r,n,!1)};function gr(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(ee(c))return a;t[r+a]=c}return a}function fr(t,e,r,n){return q(J(e,t.length-r),t,r,n)}function mr(t,e,r,n){return q(Rr(e),t,r,n)}function hr(t,e,r,n){return q(Se(e),t,r,n)}function yr(t,e,r,n){return q(Sr(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 gr(this,e,r,n);case"utf8":case"utf-8":return fr(this,e,r,n);case"ascii":case"latin1":case"binary":return mr(this,e,r,n);case"base64":return hr(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(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 xr(t,e,r){return e===0&&r===t.length?K.fromByteArray(t):K.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 p,d,g,u;switch(c){case 1:o<128&&(a=o);break;case 2:p=t[i+1],(p&192)===128&&(u=(o&31)<<6|p&63,u>127&&(a=u));break;case 3:p=t[i+1],d=t[i+2],(p&192)===128&&(d&192)===128&&(u=(o&15)<<12|(p&63)<<6|d&63,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:p=t[i+1],d=t[i+2],g=t[i+3],(p&192)===128&&(d&192)===128&&(g&192)===128&&(u=(o&15)<<18|(p&63)<<12|(d&63)<<6|g&63,u>65535&&u<1114112&&(a=u))}}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 wr(n)}var xe=4096;function wr(t){var e=t.length;if(e<=xe)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=xe));return r}function br(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 vr(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 Tr(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+=Ir[t[o]];return i}function kr(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}s.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,s.prototype),i};function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return i};s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]|this[e+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||x(e,2,this.length),this[e]<<8|this[e+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};s.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=this[e],o=1,a=0;++a<r&&(o*=256);)i+=this[e+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};s.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||x(e,r,this.length);for(var i=r,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};s.prototype.readInt8=function(e,r){return e=e>>>0,r||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};s.prototype.readInt16LE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(e,r){e=e>>>0,r||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!0,23,4)};s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||x(e,4,this.length),D.read(this,e,!1,23,4)};s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!0,52,8)};s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||x(e,8,this.length),D.read(this,e,!1,52,8)};function w(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=1,c=0;for(this[r]=e&255;++c<n&&(a*=256);)this[r+c]=e/a&255;return r+n};s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;w(this,e,r,n,o,0)}var a=n-1,c=1;for(this[r+a]=e&255;--a>=0&&(c*=256);)this[r+a]=e/c&255;return r+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,255,0),this[r]=e&255,r+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};s.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=0,c=1,p=0;for(this[r]=e&255;++a<n&&(c*=256);)e<0&&p===0&&this[r+a-1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var o=Math.pow(2,8*n-1);w(this,e,r,n,o-1,-o)}var a=n-1,c=1,p=0;for(this[r+a]=e&255;--a>=0&&(c*=256);)e<0&&p===0&&this[r+a+1]!==0&&(p=1),this[r+a]=(e/c>>0)-p&255;return r+n};s.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};s.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};s.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};s.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};s.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||w(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ae(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 _e(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,4,34028234663852886e22,-34028234663852886e22),D.write(t,e,r,n,23,4),r+4}s.prototype.writeFloatLE=function(e,r,n){return _e(this,e,r,!0,n)};s.prototype.writeFloatBE=function(e,r,n){return _e(this,e,r,!1,n)};function Re(t,e,r,n,i){return e=+e,r=r>>>0,i||Ae(t,e,r,8,17976931348623157e292,-17976931348623157e292),D.write(t,e,r,n,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,n){return Re(this,e,r,!0,n)};s.prototype.writeDoubleBE=function(e,r,n){return Re(this,e,r,!1,n)};s.prototype.copy=function(e,r,n,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};s.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var a;if(typeof e=="number")for(a=r;a<n;++a)this[a]=e;else{var c=s.isBuffer(e)?e:s.from(e,i),p=c.length;if(p===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=c[a%p]}return this};var Ar=/[^+/0-9A-Za-z-_]/g;function _r(t){if(t=t.split("=")[0],t=t.trim().replace(Ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function J(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 Rr(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Sr(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 Se(t){return K.toByteArray(_r(t))}function q(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function ee(t){return t!==t}var Ir=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 Ce=W((Gr,Fe)=>{l();var y=Fe.exports={},_,R;function re(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=re}catch(t){_=re}try{typeof clearTimeout=="function"?R=clearTimeout:R=te}catch(t){R=te}})();function Le(t){if(_===setTimeout)return setTimeout(t,0);if((_===re||!_)&&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 Lr(t){if(R===clearTimeout)return clearTimeout(t);if((R===te||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch(e){try{return R.call(null,t)}catch(r){return R.call(this,t)}}}var E=[],O=!1,B,z=-1;function Er(){!O||!B||(O=!1,B.length?E=B.concat(E):z=-1,E.length&&Ee())}function Ee(){if(!O){var t=Le(Er);O=!0;for(var e=E.length;e;){for(B=E,E=[];++z<e;)B&&B[z].run();z=-1,e=E.length}B=null,O=!1,Lr(t)}}y.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];E.push(new Ne(t,e)),E.length===1&&!O&&Le(Ee)};function Ne(t,e){this.fun=t,this.array=e}Ne.prototype.run=function(){this.fun.apply(null,this.array)};y.title="browser";y.browser=!0;y.env={};y.argv=[];y.version="";y.versions={};function N(){}y.on=N;y.addListener=N;y.once=N;y.off=N;y.removeListener=N;y.removeAllListeners=N;y.emit=N;y.prependListener=N;y.prependOnceListener=N;y.listeners=function(t){return[]};y.binding=function(t){throw new Error("process.binding is not supported")};y.cwd=function(){return"/"};y.chdir=function(t){throw new Error("process.chdir is not supported")};y.umask=function(){return 0}});var f,m,Wr,l=$e(()=>{f=ue(Ie()),m=ue(Ce()),Wr=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 Ur={};Je(Ur,{builtCallbackUrl:()=>Br});module.exports=Ze(Ur);l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Nr=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),M=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var Be=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(Be||{}),Qr=I(I({},M.WindowProviderRequestEnums),Be),Ue=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(Ue||{}),et=I(I({},M.WindowProviderResponseEnums),Ue);l();l();l();l();l();l();var ne={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:De,egldLabel:yt}=ne["devnet"],{chainId:Pe,egldLabel:xt}=ne["testnet"],{chainId:Oe,egldLabel:wt}=ne["mainnet"];var bt={["devnet"]:De,["testnet"]:Pe,["mainnet"]:Oe},vt={[De]:"devnet",[Pe]:"testnet",[Oe]:"mainnet"};l();l();var S=require("@multiversx/sdk-web-wallet-provider");l();l();var ie=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Me,Ge,oe=String((Ge=(Me=ie.safeWindow)==null?void 0:Me.navigator)==null?void 0:Ge.userAgent),St=/^((?!chrome|android).)*safari/i.test(oe),It=/firefox/i.test(oe)&&/windows/i.test(oe);var We="sdk-dapp-version";function Fr(t,e){let r=new URLSearchParams(t),n=Object.fromEntries(r);return{nextUrlParams:new URLSearchParams(I(I({},n),e)).toString(),params:n}}var Cr="3.0.18";function Br({callbackUrl:t,urlParams:e={}}){let r=t;if(Object.entries(e).length>0)try{let{search:n,origin:i,pathname:o,hash:a}=new URL(t),c=ce(I({},e),{[We]:Cr}),{nextUrlParams:p}=Fr(n,c);r=`${i}${o}?${p}${a}`}catch(n){return console.error("Unable to construct URL from: ",t,n),r}return r}0&&(module.exports={builtCallbackUrl});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
package/__commonjs/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Lr=Object.create;var z=Object.defineProperty,Dr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertyNames,Re=Object.getOwnPropertySymbols,Br=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var Le=(t,e,r)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))De.call(e,r)&&Le(t,r,e[r]);if(Re)for(var r of Re(e))Ur.call(e,r)&&Le(t,r,e[r]);return t},ae=(t,e)=>Dr(t,Fr(e));var Pr=(t,e)=>()=>(t&&(e=t(t=0)),e);var J=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(var r in e)z(t,r,{get:e[r],enumerable:!0})},Ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Or(e))!De.call(t,i)&&i!==r&&z(t,i,{get:()=>e[i],enumerable:!(n=Cr(e,i))||n.enumerable});return t};var S=(t,e,r)=>(r=t!=null?Lr(Br(t)):{},Ce(e||!t||!t.__esModule?z(r,"default",{value:t,enumerable:!0}):r,t)),Gr=t=>Ce(z({},"__esModule",{value:!0}),t);var Be=J(Q=>{"use strict";o();Q.byteLength=$r;Q.toByteArray=Hr;Q.fromByteArray=zr;var k=[],v=[],Vr=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,Fe=se.length;U<Fe;++U)k[U]=se[U],v[se.charCodeAt(U)]=U;var U,Fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Oe(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 $r(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Wr(t,e,r){return(e+r)*3/4-r}function Hr(t){var e,r=Oe(t),n=r[0],i=r[1],a=new Vr(Wr(t,n,i)),s=0,d=i>0?n-4:n,m;for(m=0;m<d;m+=4)e=v[t.charCodeAt(m)]<<18|v[t.charCodeAt(m+1)]<<12|v[t.charCodeAt(m+2)]<<6|v[t.charCodeAt(m+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=e&255;return i===2&&(e=v[t.charCodeAt(m)]<<2|v[t.charCodeAt(m+1)]>>4,a[s++]=e&255),i===1&&(e=v[t.charCodeAt(m)]<<10|v[t.charCodeAt(m+1)]<<4|v[t.charCodeAt(m+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function qr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function jr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(qr(n));return i.join("")}function zr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,s=0,d=r-n;s<d;s+=a)i.push(jr(t,s,s+a>d?d:s+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Ue=J(ce=>{o();ce.read=function(t,e,r,n,i){var a,s,d=i*8-n-1,m=(1<<d)-1,f=m>>1,h=-7,g=r?i-1:0,w=r?-1:1,x=t[e+g];for(g+=w,a=x&(1<<-h)-1,x>>=-h,h+=d;h>0;a=a*256+t[e+g],g+=w,h-=8);for(s=a&(1<<-h)-1,a>>=-h,h+=n;h>0;s=s*256+t[e+g],g+=w,h-=8);if(a===0)a=1-f;else{if(a===m)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-f}return(x?-1:1)*s*Math.pow(2,a-n)};ce.write=function(t,e,r,n,i,a){var s,d,m,f=a*8-i-1,h=(1<<f)-1,g=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:a-1,C=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(m=Math.pow(2,-s))<1&&(s--,m*=2),s+g>=1?e+=w/m:e+=w*Math.pow(2,1-g),e*m>=2&&(s++,m/=2),s+g>=h?(d=0,s=h):s+g>=1?(d=(e*m-1)*Math.pow(2,i),s=s+g):(d=e*Math.pow(2,g-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=d&255,x+=C,d/=256,i-=8);for(s=s<<i|d,f+=i;f>0;t[r+x]=s&255,x+=C,s/=256,f-=8);t[r+x-C]|=Z*128}});var Ye=J($=>{"use strict";o();var le=Be(),V=Ue(),Pe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=c;$.SlowBuffer=Qr;$.INSPECT_MAX_BYTES=50;var ee=2147483647;$.kMaxLength=ee;c.TYPED_ARRAY_SUPPORT=Kr();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Kr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function _(t){if(t>ee)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return me(t)}return Ve(t,e,r)}c.poolSize=8192;function Ve(t,e,r){if(typeof t=="string")return Yr(t,e);if(ArrayBuffer.isView(t))return Zr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return pe(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Jr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ve(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function $e(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 Xr(t,e,r){return $e(t),t<=0?_(t):e!==void 0?typeof r=="string"?_(t).fill(e,r):_(t).fill(e):_(t)}c.alloc=function(t,e,r){return Xr(t,e,r)};function me(t){return $e(t),_(t<0?0:ge(t)|0)}c.allocUnsafe=function(t){return me(t)};c.allocUnsafeSlow=function(t){return me(t)};function Yr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=We(t,e)|0,n=_(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ue(t){for(var e=t.length<0?0:ge(t.length)|0,r=_(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Zr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return pe(e.buffer,e.byteOffset,e.byteLength)}return ue(t)}function pe(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Jr(t){if(c.isBuffer(t)){var e=ge(t.length)|0,r=_(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||fe(t.length)?_(0):ue(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ue(t.data)}function ge(t){if(t>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,s=Math.min(n,i);a<s;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var s=e[n];if(A(s,Uint8Array))a+s.length>i.length?c.from(s).copy(i,a):Uint8Array.prototype.set.call(i,s,a);else if(c.isBuffer(s))s.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=s.length}return i};function We(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 de(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Xe(t).length;default:if(i)return n?-1:de(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=We;function et(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 ut(this,e,r);case"utf8":case"utf-8":return qe(this,e,r);case"ascii":return ct(this,e,r);case"latin1":case"binary":return lt(this,e,r);case"base64":return at(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function P(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)P(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)P(this,r,r+3),P(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)P(this,r,r+7),P(this,r+1,r+6),P(this,r+2,r+5),P(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?qe(this,0,e):et.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=$.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Pe&&(c.prototype[Pe]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,a){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var s=a-i,d=n-r,m=Math.min(s,d),f=this.slice(i,a),h=e.slice(r,n),g=0;g<m;++g)if(f[g]!==h[g]){s=f[g],d=h[g];break}return s<d?-1:d<s?1:0};function He(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,fe(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=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Me(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):Me(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Me(t,e,r,n,i){var a=1,s=t.length,d=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,s/=2,d/=2,r/=2}function m(x,C){return a===1?x[C]:x.readUInt16BE(C*a)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(m(t,f)===m(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===d)return h*a}else h!==-1&&(f-=f-h),h=-1}else for(r+d>s&&(r=s-d),f=r;f>=0;f--){for(var g=!0,w=0;w<d;w++)if(m(t,f+w)!==m(e,w)){g=!1;break}if(g)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return He(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return He(this,e,r,n,!1)};function rt(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var d=parseInt(e.substr(s*2,2),16);if(fe(d))return s;t[r+s]=d}return s}function tt(t,e,r,n){return re(de(e,t.length-r),t,r,n)}function nt(t,e,r,n){return re(gt(e),t,r,n)}function it(t,e,r,n){return re(Xe(e),t,r,n)}function ot(t,e,r,n){return re(ft(e,t.length-r),t,r,n)}c.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return rt(this,e,r,n);case"utf8":case"utf-8":return tt(this,e,r,n);case"ascii":case"latin1":case"binary":return nt(this,e,r,n);case"base64":return it(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(t,e,r){return e===0&&r===t.length?le.fromByteArray(t):le.fromByteArray(t.slice(e,r))}function qe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],s=null,d=a>239?4:a>223?3:a>191?2:1;if(i+d<=r){var m,f,h,g;switch(d){case 1:a<128&&(s=a);break;case 2:m=t[i+1],(m&192)===128&&(g=(a&31)<<6|m&63,g>127&&(s=g));break;case 3:m=t[i+1],f=t[i+2],(m&192)===128&&(f&192)===128&&(g=(a&15)<<12|(m&63)<<6|f&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:m=t[i+1],f=t[i+2],h=t[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(g=(a&15)<<18|(m&63)<<12|(f&63)<<6|h&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,d=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=d}return st(n)}var Ge=4096;function st(t){var e=t.length;if(e<=Ge)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ge));return r}function ct(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 lt(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 ut(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=ht[t[a]];return i}function pt(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],a=1,s=0;++s<r&&(a*=256);)i+=this[e+s]*a;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],a=1,s=0;++s<r&&(a*=256);)i+=this[e+s]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,a=1,s=this[e+--i];i>0&&(a*=256);)s+=this[e+--i]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),V.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),V.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),V.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),V.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var s=1,d=0;for(this[r]=e&255;++d<n&&(s*=256);)this[r+d]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var s=n-1,d=1;for(this[r+s]=e&255;--s>=0&&(d*=256);)this[r+s]=e/d&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var s=0,d=1,m=0;for(this[r]=e&255;++s<n&&(d*=256);)e<0&&m===0&&this[r+s-1]!==0&&(m=1),this[r+s]=(e/d>>0)-m&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var s=n-1,d=1,m=0;for(this[r+s]=e&255;--s>=0&&(d*=256);)e<0&&m===0&&this[r+s+1]!==0&&(m=1),this[r+s]=(e/d>>0)-m&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(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 je(t,e,r,n,i,a){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||je(t,e,r,4,34028234663852886e22,-34028234663852886e22),V.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return ze(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return ze(this,e,r,!1,n)};function Ke(t,e,r,n,i){return e=+e,r=r>>>0,i||je(t,e,r,8,17976931348623157e292,-17976931348623157e292),V.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Ke(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Ke(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.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 a=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),a};c.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"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var d=c.isBuffer(e)?e:c.from(e,i),m=d.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=d[s%m]}return this};var dt=/[^+/0-9A-Za-z-_]/g;function mt(t){if(t=t.split("=")[0],t=t.trim().replace(dt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function de(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function gt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ft(t,e){for(var r,n,i,a=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Xe(t){return le.toByteArray(mt(t))}function re(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function fe(t){return t!==t}var ht=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 rr=J((Zt,er)=>{o();var T=er.exports={},I,N;function he(){throw new Error("setTimeout has not been defined")}function Te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=he}catch(t){I=he}try{typeof clearTimeout=="function"?N=clearTimeout:N=Te}catch(t){N=Te}})();function Ze(t){if(I===setTimeout)return setTimeout(t,0);if((I===he||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Tt(t){if(N===clearTimeout)return clearTimeout(t);if((N===Te||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch(e){try{return N.call(null,t)}catch(r){return N.call(this,t)}}}var R=[],W=!1,M,te=-1;function yt(){!W||!M||(W=!1,M.length?R=M.concat(R):te=-1,R.length&&Je())}function Je(){if(!W){var t=Ze(yt);W=!0;for(var e=R.length;e;){for(M=R,R=[];++te<e;)M&&M[te].run();te=-1,e=R.length}M=null,W=!1,Tt(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];R.push(new Qe(t,e)),R.length===1&&!W&&Ze(Je)};function Qe(t,e){this.fun=t,this.array=e}Qe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function L(){}T.on=L;T.addListener=L;T.once=L;T.off=L;T.removeListener=L;T.removeAllListeners=L;T.emit=L;T.prependListener=L;T.prependOnceListener=L;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 l,u,Jt,o=Pr(()=>{l=S(Ye()),u=S(rr()),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 jt={};Mr(jt,{getInterpretedTransaction:()=>qt});module.exports=Gr(jt);o();o();var K=require("@multiversx/sdk-core");o();o();o();o();o();o();var xt=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),H=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var tr=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(tr||{}),nn=F(F({},H.WindowProviderRequestEnums),tr),nr=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(nr||{}),on=F(F({},H.WindowProviderResponseEnums),nr);o();o();o();o();o();o();o();var ir=require("@multiversx/sdk-core");function bt(t){try{let e=new ir.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ne(t){return(t==null?void 0:t.length)===62&&/^\w+$/.test(t)&&bt(t)}o();function or(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64"),a=t===r||r.startsWith(t),s=t===i||i.startsWith(t);if(a&&s)return!0}catch(e){return!1}return!1}var wt=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function ar(t,e,r=""){if(!ne(t))return!1;if(new K.Address(t).isContractAddress())return!0;let a=At({receiver:t,data:r});return a?new K.Address(a).isContractAddress()||kt(t,e,r):!1}var vt=t=>t.toLowerCase().match(/[0-9a-f]/g),St=t=>t.length%2===0;function kt(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...a]=n,s=e!=null&&t!=null&&t===e,d=wt.includes(i),m=a.every(f=>vt(f)&&St(f));return s&&d&&m}function At({receiver:t,data:e}){try{if(!e)return t;let r=or(e)?K.TransactionPayload.fromEncoded(e).toString():e,n=It(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function It(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}o();var xe=require("@multiversx/sdk-core"),ie=S(require("bignumber.js"));o();o();function sr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function cr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();sr(r)&&r.length>1&&(e=r)}catch(r){}return e}var ye={tokenId:"",amount:""},lr=t=>t.split("@").map((a,s)=>[2,3].includes(s)?a:cr(a));function ur(t){if(!t)return ye;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(e){let[,i,a]=t.split("@");try{let s=l.Buffer.from(i,"hex").toString("ascii");if(!s)return ye;let d=new ie.default("0x"+a.replace("0x","")).toString(10);return{tokenId:s,amount:d}}catch(s){console.error("Error getting token from transaction data",s)}}if(r)try{let[,i,a,s,d]=lr(t);if([i,a,s,d].every(m=>Boolean(m))&&ne(new xe.Address(d).bech32()))return{tokenId:`${i}-${a}`,amount:new ie.default(s,16).toString(10),collection:i,nonce:a,receiver:new xe.Address(d).bech32()}}catch(i){}if(n)try{let[,i,a,s]=lr(t);if([i,a,s].every(d=>Boolean(d)))return{tokenId:`${i}-${a}`,amount:new ie.default(s,16).toString(10),collection:i,nonce:a}}catch(i){}return ye}o();o();o();var O="accounts";var pr="blocks",dr="code",mr="collections";var gr="contracts";var fr="identities";var hr="locked-accounts",Tr="logs",yr="miniblocks";var be="nfts",xr="nodes",we="providers",br="roles",ve="sc-results";var q="tokens";var G="transactions";var B={shard:t=>`/${pr}?shard=${t}`,receiverShard:t=>`/${G}?receivershard=${t}`,senderShard:t=>`/${G}?sendershard=${t}`,transactionDetails:t=>`/${G}/${t}`,transactionDetailsScResults:t=>`/${G}/${t}/${ve}`,transactionDetailsLogs:t=>`/${G}/${t}/${Tr}`,nodeDetails:t=>`/${xr}/${t}`,accountDetails:t=>`/${O}/${t}`,accountDetailsContractCode:t=>`/${O}/${t}/${dr}`,accountDetailsTokens:t=>`/${O}/${t}/${q}`,accountDetailsNfts:t=>`/${O}/${t}/${be}`,accountDetailsScResults:t=>`/${O}/${t}/${ve}`,accountDetailsContracts:t=>`/${O}/${t}/${gr}`,identityDetails:t=>`/${fr}/${t}`,tokenDetails:t=>`/${q}/${t}`,tokenDetailsAccounts:t=>`/${q}/${t}/${O}`,tokenDetailsLockedAccounts:t=>`/${q}/${t}/${hr}`,tokenDetailsRoles:t=>`/${q}/${t}/${br}`,collectionDetails:t=>`/${mr}/${t}`,nftDetails:t=>`/${be}/${t}`,providerDetails:t=>`/${we}/${t}`,providerDetailsTransactions:t=>`/${we}/${t}/${G}`,miniblockDetails:t=>`/${yr}/${t}`};o();var Se=t=>{var e,r,n,i;if(t.action){let a=[(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(d=>d!=null);return[].concat(...a)}return[]};o();o();function oe(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 wr(t){let e=oe(t);return t.receiver===e?t.receiverAssets:void 0}o();var vr=t=>{var n,i,a,s,d,m;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((a=t.action)==null?void 0:a.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(m=(d=t.action)==null?void 0:d.arguments)!=null&&m.functionName&&(e=t.action.arguments.functionName)),e};o();var Sr=!1;function Et(t){Sr||(console.error(t),Sr=!0)}function j({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Et(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}o();function kr(t,e,r){let n=t===e.sender,i=t===r,a=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case a:return"Self";case i:return"In";case n:default:return"Out"}}o();o();o();var Dt=S(require("bignumber.js"));o();o();o();o();o();o();o();o();o();var ke={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Ar,egldLabel:li}=ke["devnet"],{chainId:Ir,egldLabel:ui}=ke["testnet"],{chainId:Nr,egldLabel:pi}=ke["mainnet"];var di={["devnet"]:Ar,["testnet"]:Ir,["mainnet"]:Nr},mi={[Ar]:"devnet",[Ir]:"testnet",[Nr]:"mainnet"};o();o();var E=require("@multiversx/sdk-web-wallet-provider");o();o();var Ae=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Er,_r,Ie=String((_r=(Er=Ae.safeWindow)==null?void 0:Er.navigator)==null?void 0:_r.userAgent),xi=/^((?!chrome|android).)*safari/i.test(Ie),bi=/firefox/i.test(Ie)&&/windows/i.test(Ie);o();var Lt=require("@multiversx/sdk-core"),Ne=S(require("bignumber.js"));o();var _t=S(require("bignumber.js"));o();Ne.default.config({ROUNDING_MODE:Ne.default.ROUND_FLOOR});o();o();o();o();o();o();o();o();o();var Ct=require("@multiversx/sdk-core");o();var Y=require("@multiversx/sdk-core"),Ot=S(require("bignumber.js"));o();o();o();var Ft=S(require("bignumber.js"));o();o();o();o();o();o();o();o();o();o();var Ut=["reDelegateRewards","claimRewards","unBond"],Pt=["wrapEgld","unwrapEgld"],Mt=["unStake"],Gt=["unDelegate"];o();o();o();o();var Wt=S(require("bignumber.js"));o();o();o();o();o();o();var Ht=S(require("bignumber.js"));function qt({transaction:t,address:e,explorerAddress:r}){var Z;let n=(Z=t.tokenIdentifier)!=null?Z:ur(t.data).tokenId,i=oe(t),a=wr(t),s=kr(e,t,i),d=vr(t),m=Se(t),f=j({explorerAddress:r,to:B.accountDetails(t.sender)}),h=j({explorerAddress:r,to:B.accountDetails(i)}),g=j({explorerAddress:r,to:B.senderShard(t.senderShard)}),w=j({explorerAddress:r,to:B.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,C=j({explorerAddress:r,to:B.transactionDetails(x)});return ae(F({},t),{tokenIdentifier:n,receiver:i,receiverAssets:a,transactionDetails:{direction:s,method:d,transactionTokens:m,isContract:ar(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:g,receiverShardLink:w,transactionLink:C}})}0&&(module.exports={getInterpretedTransaction});
|
|
1
|
+
"use strict";var Dr=Object.create;var z=Object.defineProperty,Lr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertyNames,Re=Object.getOwnPropertySymbols,Br=Object.getPrototypeOf,Le=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable;var De=(t,e,r)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F=(t,e)=>{for(var r in e||(e={}))Le.call(e,r)&&De(t,r,e[r]);if(Re)for(var r of Re(e))Ur.call(e,r)&&De(t,r,e[r]);return t},ae=(t,e)=>Lr(t,Fr(e));var Pr=(t,e)=>()=>(t&&(e=t(t=0)),e);var J=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(var r in e)z(t,r,{get:e[r],enumerable:!0})},Ce=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Or(e))!Le.call(t,i)&&i!==r&&z(t,i,{get:()=>e[i],enumerable:!(n=Cr(e,i))||n.enumerable});return t};var S=(t,e,r)=>(r=t!=null?Dr(Br(t)):{},Ce(e||!t||!t.__esModule?z(r,"default",{value:t,enumerable:!0}):r,t)),Gr=t=>Ce(z({},"__esModule",{value:!0}),t);var Be=J(Q=>{"use strict";o();Q.byteLength=$r;Q.toByteArray=Hr;Q.fromByteArray=zr;var k=[],v=[],Vr=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,Fe=se.length;U<Fe;++U)k[U]=se[U],v[se.charCodeAt(U)]=U;var U,Fe;v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function Oe(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 $r(t){var e=Oe(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Wr(t,e,r){return(e+r)*3/4-r}function Hr(t){var e,r=Oe(t),n=r[0],i=r[1],a=new Vr(Wr(t,n,i)),s=0,d=i>0?n-4:n,m;for(m=0;m<d;m+=4)e=v[t.charCodeAt(m)]<<18|v[t.charCodeAt(m+1)]<<12|v[t.charCodeAt(m+2)]<<6|v[t.charCodeAt(m+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=e&255;return i===2&&(e=v[t.charCodeAt(m)]<<2|v[t.charCodeAt(m+1)]>>4,a[s++]=e&255),i===1&&(e=v[t.charCodeAt(m)]<<10|v[t.charCodeAt(m+1)]<<4|v[t.charCodeAt(m+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function qr(t){return k[t>>18&63]+k[t>>12&63]+k[t>>6&63]+k[t&63]}function jr(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push(qr(n));return i.join("")}function zr(t){for(var e,r=t.length,n=r%3,i=[],a=16383,s=0,d=r-n;s<d;s+=a)i.push(jr(t,s,s+a>d?d:s+a));return n===1?(e=t[r-1],i.push(k[e>>2]+k[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(k[e>>10]+k[e>>4&63]+k[e<<2&63]+"=")),i.join("")}});var Ue=J(ce=>{o();ce.read=function(t,e,r,n,i){var a,s,d=i*8-n-1,m=(1<<d)-1,f=m>>1,h=-7,g=r?i-1:0,w=r?-1:1,x=t[e+g];for(g+=w,a=x&(1<<-h)-1,x>>=-h,h+=d;h>0;a=a*256+t[e+g],g+=w,h-=8);for(s=a&(1<<-h)-1,a>>=-h,h+=n;h>0;s=s*256+t[e+g],g+=w,h-=8);if(a===0)a=1-f;else{if(a===m)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-f}return(x?-1:1)*s*Math.pow(2,a-n)};ce.write=function(t,e,r,n,i,a){var s,d,m,f=a*8-i-1,h=(1<<f)-1,g=h>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:a-1,C=n?1:-1,Z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(m=Math.pow(2,-s))<1&&(s--,m*=2),s+g>=1?e+=w/m:e+=w*Math.pow(2,1-g),e*m>=2&&(s++,m/=2),s+g>=h?(d=0,s=h):s+g>=1?(d=(e*m-1)*Math.pow(2,i),s=s+g):(d=e*Math.pow(2,g-1)*Math.pow(2,i),s=0));i>=8;t[r+x]=d&255,x+=C,d/=256,i-=8);for(s=s<<i|d,f+=i;f>0;t[r+x]=s&255,x+=C,s/=256,f-=8);t[r+x-C]|=Z*128}});var Ye=J($=>{"use strict";o();var le=Be(),V=Ue(),Pe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=c;$.SlowBuffer=Qr;$.INSPECT_MAX_BYTES=50;var ee=2147483647;$.kMaxLength=ee;c.TYPED_ARRAY_SUPPORT=Kr();!c.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Kr(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch(r){return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.buffer}});Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(!!c.isBuffer(this))return this.byteOffset}});function _(t){if(t>ee)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return me(t)}return Ve(t,e,r)}c.poolSize=8192;function Ve(t,e,r){if(typeof t=="string")return Yr(t,e);if(ArrayBuffer.isView(t))return Zr(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(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return pe(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return c.from(n,e,r);var i=Jr(t);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}c.from=function(t,e,r){return Ve(t,e,r)};Object.setPrototypeOf(c.prototype,Uint8Array.prototype);Object.setPrototypeOf(c,Uint8Array);function $e(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 Xr(t,e,r){return $e(t),t<=0?_(t):e!==void 0?typeof r=="string"?_(t).fill(e,r):_(t).fill(e):_(t)}c.alloc=function(t,e,r){return Xr(t,e,r)};function me(t){return $e(t),_(t<0?0:ge(t)|0)}c.allocUnsafe=function(t){return me(t)};c.allocUnsafeSlow=function(t){return me(t)};function Yr(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=We(t,e)|0,n=_(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function ue(t){for(var e=t.length<0?0:ge(t.length)|0,r=_(e),n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Zr(t){if(A(t,Uint8Array)){var e=new Uint8Array(t);return pe(e.buffer,e.byteOffset,e.byteLength)}return ue(t)}function pe(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function Jr(t){if(c.isBuffer(t)){var e=ge(t.length)|0,r=_(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||fe(t.length)?_(0):ue(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ue(t.data)}function ge(t){if(t>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return t|0}function Qr(t){return+t!=t&&(t=0),c.alloc(+t)}c.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==c.prototype};c.compare=function(e,r){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(e)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,a=0,s=Math.min(n,i);a<s;++a)if(e[a]!==r[a]){n=e[a],i=r[a];break}return n<i?-1:i<n?1:0};c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};c.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return c.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var i=c.allocUnsafe(r),a=0;for(n=0;n<e.length;++n){var s=e[n];if(A(s,Uint8Array))a+s.length>i.length?c.from(s).copy(i,a):Uint8Array.prototype.set.call(i,s,a);else if(c.isBuffer(s))s.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=s.length}return i};function We(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(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 de(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Xe(t).length;default:if(i)return n?-1:de(t).length;e=(""+e).toLowerCase(),i=!0}}c.byteLength=We;function et(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 ut(this,e,r);case"utf8":case"utf-8":return qe(this,e,r);case"ascii":return ct(this,e,r);case"latin1":case"binary":return lt(this,e,r);case"base64":return at(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}c.prototype._isBuffer=!0;function P(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)P(this,r,r+1);return this};c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)P(this,r,r+3),P(this,r+1,r+2);return this};c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)P(this,r,r+7),P(this,r+1,r+6),P(this,r+2,r+5),P(this,r+3,r+4);return this};c.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?qe(this,0,e):et.apply(this,arguments)};c.prototype.toLocaleString=c.prototype.toString;c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:c.compare(this,e)===0};c.prototype.inspect=function(){var e="",r=$.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Pe&&(c.prototype[Pe]=c.prototype.inspect);c.prototype.compare=function(e,r,n,i,a){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var s=a-i,d=n-r,m=Math.min(s,d),f=this.slice(i,a),h=e.slice(r,n),g=0;g<m;++g)if(f[g]!==h[g]){s=f[g],d=h[g];break}return s<d?-1:d<s?1:0};function He(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,fe(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=c.from(e,n)),c.isBuffer(e))return e.length===0?-1:Me(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):Me(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Me(t,e,r,n,i){var a=1,s=t.length,d=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,s/=2,d/=2,r/=2}function m(x,C){return a===1?x[C]:x.readUInt16BE(C*a)}var f;if(i){var h=-1;for(f=r;f<s;f++)if(m(t,f)===m(e,h===-1?0:f-h)){if(h===-1&&(h=f),f-h+1===d)return h*a}else h!==-1&&(f-=f-h),h=-1}else for(r+d>s&&(r=s-d),f=r;f>=0;f--){for(var g=!0,w=0;w<d;w++)if(m(t,f+w)!==m(e,w)){g=!1;break}if(g)return f}return-1}c.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};c.prototype.indexOf=function(e,r,n){return He(this,e,r,n,!0)};c.prototype.lastIndexOf=function(e,r,n){return He(this,e,r,n,!1)};function rt(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var d=parseInt(e.substr(s*2,2),16);if(fe(d))return s;t[r+s]=d}return s}function tt(t,e,r,n){return re(de(e,t.length-r),t,r,n)}function nt(t,e,r,n){return re(gt(e),t,r,n)}function it(t,e,r,n){return re(Xe(e),t,r,n)}function ot(t,e,r,n){return re(ft(e,t.length-r),t,r,n)}c.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 a=this.length-r;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return rt(this,e,r,n);case"utf8":case"utf-8":return tt(this,e,r,n);case"ascii":case"latin1":case"binary":return nt(this,e,r,n);case"base64":return it(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function at(t,e,r){return e===0&&r===t.length?le.fromByteArray(t):le.fromByteArray(t.slice(e,r))}function qe(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a=t[i],s=null,d=a>239?4:a>223?3:a>191?2:1;if(i+d<=r){var m,f,h,g;switch(d){case 1:a<128&&(s=a);break;case 2:m=t[i+1],(m&192)===128&&(g=(a&31)<<6|m&63,g>127&&(s=g));break;case 3:m=t[i+1],f=t[i+2],(m&192)===128&&(f&192)===128&&(g=(a&15)<<12|(m&63)<<6|f&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:m=t[i+1],f=t[i+2],h=t[i+3],(m&192)===128&&(f&192)===128&&(h&192)===128&&(g=(a&15)<<18|(m&63)<<12|(f&63)<<6|h&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,d=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=d}return st(n)}var Ge=4096;function st(t){var e=t.length;if(e<=Ge)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Ge));return r}function ct(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 lt(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 ut(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=ht[t[a]];return i}function pt(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}c.prototype.slice=function(e,r){var n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var i=this.subarray(e,r);return Object.setPrototypeOf(i,c.prototype),i};function y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],a=1,s=0;++s<r&&(a*=256);)i+=this[e+s]*a;return i};c.prototype.readUintBE=c.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e+--r],a=1;r>0&&(a*=256);)i+=this[e+--r]*a;return i};c.prototype.readUint8=c.prototype.readUInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]};c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]|this[e+1]<<8};c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||y(e,2,this.length),this[e]<<8|this[e+1]};c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};c.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=this[e],a=1,s=0;++s<r&&(a*=256);)i+=this[e+s]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};c.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||y(e,r,this.length);for(var i=r,a=1,s=this[e+--i];i>0&&(a*=256);)s+=this[e+--i]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*r)),s};c.prototype.readInt8=function(e,r){return e=e>>>0,r||y(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};c.prototype.readInt16LE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};c.prototype.readInt16BE=function(e,r){e=e>>>0,r||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};c.prototype.readInt32LE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};c.prototype.readInt32BE=function(e,r){return e=e>>>0,r||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};c.prototype.readFloatLE=function(e,r){return e=e>>>0,r||y(e,4,this.length),V.read(this,e,!0,23,4)};c.prototype.readFloatBE=function(e,r){return e=e>>>0,r||y(e,4,this.length),V.read(this,e,!1,23,4)};c.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||y(e,8,this.length),V.read(this,e,!0,52,8)};c.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||y(e,8,this.length),V.read(this,e,!1,52,8)};function b(t,e,r,n,i,a){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var s=1,d=0;for(this[r]=e&255;++d<n&&(s*=256);)this[r+d]=e/s&255;return r+n};c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){var a=Math.pow(2,8*n)-1;b(this,e,r,n,a,0)}var s=n-1,d=1;for(this[r+s]=e&255;--s>=0&&(d*=256);)this[r+s]=e/d&255;return r+n};c.prototype.writeUint8=c.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,255,0),this[r]=e&255,r+1};c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var s=0,d=1,m=0;for(this[r]=e&255;++s<n&&(d*=256);)e<0&&m===0&&this[r+s-1]!==0&&(m=1),this[r+s]=(e/d>>0)-m&255;return r+n};c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){var a=Math.pow(2,8*n-1);b(this,e,r,n,a-1,-a)}var s=n-1,d=1,m=0;for(this[r+s]=e&255;--s>=0&&(d*=256);)e<0&&m===0&&this[r+s+1]!==0&&(m=1),this[r+s]=(e/d>>0)-m&255;return r+n};c.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};c.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};c.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};c.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||b(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};c.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||b(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 je(t,e,r,n,i,a){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||je(t,e,r,4,34028234663852886e22,-34028234663852886e22),V.write(t,e,r,n,23,4),r+4}c.prototype.writeFloatLE=function(e,r,n){return ze(this,e,r,!0,n)};c.prototype.writeFloatBE=function(e,r,n){return ze(this,e,r,!1,n)};function Ke(t,e,r,n,i){return e=+e,r=r>>>0,i||je(t,e,r,8,17976931348623157e292,-17976931348623157e292),V.write(t,e,r,n,52,8),r+8}c.prototype.writeDoubleLE=function(e,r,n){return Ke(this,e,r,!0,n)};c.prototype.writeDoubleBE=function(e,r,n){return Ke(this,e,r,!1,n)};c.prototype.copy=function(e,r,n,i){if(!c.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 a=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),a};c.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"&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 s;if(typeof e=="number")for(s=r;s<n;++s)this[s]=e;else{var d=c.isBuffer(e)?e:c.from(e,i),m=d.length;if(m===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=d[s%m]}return this};var dt=/[^+/0-9A-Za-z-_]/g;function mt(t){if(t=t.split("=")[0],t=t.trim().replace(dt,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function de(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function gt(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function ft(t,e){for(var r,n,i,a=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Xe(t){return le.toByteArray(mt(t))}function re(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 A(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function fe(t){return t!==t}var ht=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 rr=J((Zt,er)=>{o();var T=er.exports={},I,N;function he(){throw new Error("setTimeout has not been defined")}function Te(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?I=setTimeout:I=he}catch(t){I=he}try{typeof clearTimeout=="function"?N=clearTimeout:N=Te}catch(t){N=Te}})();function Ze(t){if(I===setTimeout)return setTimeout(t,0);if((I===he||!I)&&setTimeout)return I=setTimeout,setTimeout(t,0);try{return I(t,0)}catch(e){try{return I.call(null,t,0)}catch(r){return I.call(this,t,0)}}}function Tt(t){if(N===clearTimeout)return clearTimeout(t);if((N===Te||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch(e){try{return N.call(null,t)}catch(r){return N.call(this,t)}}}var R=[],W=!1,M,te=-1;function yt(){!W||!M||(W=!1,M.length?R=M.concat(R):te=-1,R.length&&Je())}function Je(){if(!W){var t=Ze(yt);W=!0;for(var e=R.length;e;){for(M=R,R=[];++te<e;)M&&M[te].run();te=-1,e=R.length}M=null,W=!1,Tt(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];R.push(new Qe(t,e)),R.length===1&&!W&&Ze(Je)};function Qe(t,e){this.fun=t,this.array=e}Qe.prototype.run=function(){this.fun.apply(null,this.array)};T.title="browser";T.browser=!0;T.env={};T.argv=[];T.version="";T.versions={};function D(){}T.on=D;T.addListener=D;T.once=D;T.off=D;T.removeListener=D;T.removeAllListeners=D;T.emit=D;T.prependListener=D;T.prependOnceListener=D;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 l,u,Jt,o=Pr(()=>{l=S(Ye()),u=S(rr()),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 jt={};Mr(jt,{getInterpretedTransaction:()=>qt});module.exports=Gr(jt);o();o();var K=require("@multiversx/sdk-core");o();o();o();o();o();o();var xt=require("@multiversx/sdk-web-wallet-cross-window-provider/out/CrossWindowProvider/CrossWindowProvider"),H=require("@multiversx/sdk-web-wallet-cross-window-provider/out/enums");var tr=(r=>(r.signTransactionsWithGuardianResponse="SIGN_TRANSACTIONS_WITH_GUARDIAN_RESPONSE",r.reloginRequest="RELOGIN_REQUEST",r))(tr||{}),nn=F(F({},H.WindowProviderRequestEnums),tr),nr=(e=>(e.reloginResponse="RELOGIN_RESPONSE",e))(nr||{}),on=F(F({},H.WindowProviderResponseEnums),nr);o();o();o();o();o();o();o();var ir=require("@multiversx/sdk-core");function bt(t){try{let e=new ir.Address(t);return Boolean(e.bech32())}catch(e){return!1}}function ne(t){return(t==null?void 0:t.length)===62&&/^\w+$/.test(t)&&bt(t)}o();function or(t){try{let e=atob(t),r=btoa(e),n=l.Buffer.from(t,"base64").toString(),i=l.Buffer.from(n).toString("base64"),a=t===r||r.startsWith(t),s=t===i||i.startsWith(t);if(a&&s)return!0}catch(e){return!1}return!1}var wt=["ESDTNFTTransfer","ESDTNFTBurn","ESDTNFTAddQuantity","ESDTNFTCreate","MultiESDTNFTTransfer","ESDTTransfer","ESDTBurn","ESDTLocalMint","ESDTLocalBurn","ESDTWipe","ESDTFreeze"];function ar(t,e,r=""){if(!ne(t))return!1;if(new K.Address(t).isContractAddress())return!0;let a=At({receiver:t,data:r});return a?new K.Address(a).isContractAddress()||kt(t,e,r):!1}var vt=t=>t.toLowerCase().match(/[0-9a-f]/g),St=t=>t.length%2===0;function kt(t,e,r){let n=r==null?void 0:r.split("@");if(n==null)return!1;let[i,...a]=n,s=e!=null&&t!=null&&t===e,d=wt.includes(i),m=a.every(f=>vt(f)&&St(f));return s&&d&&m}function At({receiver:t,data:e}){try{if(!e)return t;let r=or(e)?K.TransactionPayload.fromEncoded(e).toString():e,n=It(r),i=r.split("@");return n>-1?i[n]:t}catch(r){console.log(r);return}}function It(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}o();var xe=require("@multiversx/sdk-core"),ie=S(require("bignumber.js"));o();o();function sr(t){for(let e=0;e<t.length;e++)if(t.charCodeAt(e)>127)return!1;return!0}function cr(t){let e=t;try{let r=l.Buffer.from(t,"hex").toString();sr(r)&&r.length>1&&(e=r)}catch(r){}return e}var ye={tokenId:"",amount:""},lr=t=>t.split("@").map((a,s)=>[2,3].includes(s)?a:cr(a));function ur(t){if(!t)return ye;let e=t.startsWith("ESDTTransfer"),r=t.startsWith("ESDTNFTTransfer")&&t.includes("@"),n=t.startsWith("ESDTNFTBurn")&&t.includes("@");if(e){let[,i,a]=t.split("@");try{let s=l.Buffer.from(i,"hex").toString("ascii");if(!s)return ye;let d=new ie.default("0x"+a.replace("0x","")).toString(10);return{tokenId:s,amount:d}}catch(s){console.error("Error getting token from transaction data",s)}}if(r)try{let[,i,a,s,d]=lr(t);if([i,a,s,d].every(m=>Boolean(m))&&ne(new xe.Address(d).bech32()))return{tokenId:`${i}-${a}`,amount:new ie.default(s,16).toString(10),collection:i,nonce:a,receiver:new xe.Address(d).bech32()}}catch(i){}if(n)try{let[,i,a,s]=lr(t);if([i,a,s].every(d=>Boolean(d)))return{tokenId:`${i}-${a}`,amount:new ie.default(s,16).toString(10),collection:i,nonce:a}}catch(i){}return ye}o();o();o();var O="accounts";var pr="blocks",dr="code",mr="collections";var gr="contracts";var fr="identities";var hr="locked-accounts",Tr="logs",yr="miniblocks";var be="nfts",xr="nodes",we="providers",br="roles",ve="sc-results";var q="tokens";var G="transactions";var B={shard:t=>`/${pr}?shard=${t}`,receiverShard:t=>`/${G}?receivershard=${t}`,senderShard:t=>`/${G}?sendershard=${t}`,transactionDetails:t=>`/${G}/${t}`,transactionDetailsScResults:t=>`/${G}/${t}/${ve}`,transactionDetailsLogs:t=>`/${G}/${t}/${Tr}`,nodeDetails:t=>`/${xr}/${t}`,accountDetails:t=>`/${O}/${t}`,accountDetailsContractCode:t=>`/${O}/${t}/${dr}`,accountDetailsTokens:t=>`/${O}/${t}/${q}`,accountDetailsNfts:t=>`/${O}/${t}/${be}`,accountDetailsScResults:t=>`/${O}/${t}/${ve}`,accountDetailsContracts:t=>`/${O}/${t}/${gr}`,identityDetails:t=>`/${fr}/${t}`,tokenDetails:t=>`/${q}/${t}`,tokenDetailsAccounts:t=>`/${q}/${t}/${O}`,tokenDetailsLockedAccounts:t=>`/${q}/${t}/${hr}`,tokenDetailsRoles:t=>`/${q}/${t}/${br}`,collectionDetails:t=>`/${mr}/${t}`,nftDetails:t=>`/${be}/${t}`,providerDetails:t=>`/${we}/${t}`,providerDetailsTransactions:t=>`/${we}/${t}/${G}`,miniblockDetails:t=>`/${yr}/${t}`};o();var Se=t=>{var e,r,n,i;if(t.action){let a=[(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(d=>d!=null);return[].concat(...a)}return[]};o();o();function oe(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 wr(t){let e=oe(t);return t.receiver===e?t.receiverAssets:void 0}o();var vr=t=>{var n,i,a,s,d,m;let e="Transaction";return((n=t.action)==null?void 0:n.name)&&((i=t.action)==null?void 0:i.category)&&(((a=t.action)==null?void 0:a.category)==="esdtNft"&&((s=t.action)==null?void 0:s.name)==="transfer"?e="Transaction":t.action&&(e=t.action.name),(m=(d=t.action)==null?void 0:d.arguments)!=null&&m.functionName&&(e=t.action.arguments.functionName)),e};o();var Sr=!1;function Et(t){Sr||(console.error(t),Sr=!0)}function j({explorerAddress:t,to:e}){try{return new URL(e).href}catch(r){return e.startsWith("/")||(Et(`Link not prepended by / : ${e}`),e=`/${e}`),t?`${t}${e}`:e}}o();function kr(t,e,r){let n=t===e.sender,i=t===r,a=n&&i,s=(e==null?void 0:e.type)==="SmartContractResult";switch(!0){case s:return"Internal";case a:return"Self";case i:return"In";case n:default:return"Out"}}o();o();o();var Lt=S(require("bignumber.js"));o();o();o();o();o();o();o();o();o();var ke={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",xAliasAddress:"https://devnet.xalias.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://devnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",xAliasAddress:"https://testnet.xalias.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",metamaskSnapWalletAddress:"https://testnet-iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",xAliasAddress:"https://xalias.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",metamaskSnapWalletAddress:"https://iframe-wallet.multiversx.com",apiTimeout:"4000",roundDuration:6e3}},{chainId:Ar,egldLabel:li}=ke["devnet"],{chainId:Ir,egldLabel:ui}=ke["testnet"],{chainId:Nr,egldLabel:pi}=ke["mainnet"];var di={["devnet"]:Ar,["testnet"]:Ir,["mainnet"]:Nr},mi={[Ar]:"devnet",[Ir]:"testnet",[Nr]:"mainnet"};o();o();var E=require("@multiversx/sdk-web-wallet-provider");o();o();var Ae=require("@multiversx/sdk-dapp-utils/out/constants/browserConstants");var Er,_r,Ie=String((_r=(Er=Ae.safeWindow)==null?void 0:Er.navigator)==null?void 0:_r.userAgent),xi=/^((?!chrome|android).)*safari/i.test(Ie),bi=/firefox/i.test(Ie)&&/windows/i.test(Ie);o();var Dt=require("@multiversx/sdk-core"),Ne=S(require("bignumber.js"));o();var _t=S(require("bignumber.js"));o();Ne.default.config({ROUNDING_MODE:Ne.default.ROUND_FLOOR});o();o();o();o();o();o();o();o();o();var Ct=require("@multiversx/sdk-core");o();var Y=require("@multiversx/sdk-core"),Ot=S(require("bignumber.js"));o();o();o();var Ft=S(require("bignumber.js"));o();o();o();o();o();o();o();o();o();o();var Ut=["reDelegateRewards","claimRewards","unBond"],Pt=["wrapEgld","unwrapEgld"],Mt=["unStake"],Gt=["unDelegate"];o();o();o();o();var Wt=S(require("bignumber.js"));o();o();o();o();o();o();var Ht=S(require("bignumber.js"));function qt({transaction:t,address:e,explorerAddress:r}){var Z;let n=(Z=t.tokenIdentifier)!=null?Z:ur(t.data).tokenId,i=oe(t),a=wr(t),s=kr(e,t,i),d=vr(t),m=Se(t),f=j({explorerAddress:r,to:B.accountDetails(t.sender)}),h=j({explorerAddress:r,to:B.accountDetails(i)}),g=j({explorerAddress:r,to:B.senderShard(t.senderShard)}),w=j({explorerAddress:r,to:B.receiverShard(t.receiverShard)}),x=t.originalTxHash?`${t.originalTxHash}#${t.txHash}`:t.txHash,C=j({explorerAddress:r,to:B.transactionDetails(x)});return ae(F({},t),{tokenIdentifier:n,receiver:i,receiverAssets:a,transactionDetails:{direction:s,method:d,transactionTokens:m,isContract:ar(t.sender)},links:{senderLink:f,receiverLink:h,senderShardLink:g,receiverShardLink:w,transactionLink:C}})}0&&(module.exports={getInterpretedTransaction});
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|